:root {
    --page-bg: #0f172a;
    --page-bg-soft: #111827;
    --panel: #1e293b;
    --panel-soft: #273449;
    --border: #334155;
    --text: #f8fafc;
    --muted: #cbd5e1;
    --muted-deep: #94a3b8;
    --red: #ef4444;
    --red-deep: #dc2626;
    --orange: #f97316;
    --gold: #fbbf24;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --max-width: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(239, 68, 68, 0.18), transparent 30rem),
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.14), transparent 28rem),
        linear-gradient(180deg, #0f172a 0%, #111827 45%, #0f172a 100%);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video {
    max-width: 100%;
    display: block;
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.97), rgba(30, 41, 59, 0.97));
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(16px);
}

.nav-wrap {
    max-width: var(--max-width);
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.4);
    font-size: 13px;
}

.brand-name {
    font-size: 24px;
    line-height: 1;
    background: linear-gradient(90deg, var(--red), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    position: relative;
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--red), var(--orange));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.menu-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.65);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
}

.mobile-menu {
    display: none;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    padding: 12px 22px 20px;
    background: rgba(15, 23, 42, 0.98);
}

.mobile-menu.open {
    display: grid;
    gap: 10px;
}

.mobile-link {
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--muted);
    background: rgba(30, 41, 59, 0.66);
}

.container,
.section,
.footer-inner {
    width: min(var(--max-width), calc(100% - 44px));
    margin: 0 auto;
}

.hero {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    background: linear-gradient(90deg, #7f1d1d 0%, #991b1b 45%, #9a3412 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    opacity: 0.22;
    transform: scale(1.04);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.2)),
        linear-gradient(0deg, var(--page-bg), transparent 24%);
}

.hero-grid {
    position: relative;
    z-index: 2;
    min-height: 600px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
    align-items: center;
    gap: 44px;
    padding: 70px 0 90px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #fecaca;
    background: rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(14px);
}

.hero h1 {
    margin: 0 0 20px;
    font-size: clamp(42px, 8vw, 78px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero h1 span {
    display: block;
    margin-top: 14px;
    font-size: clamp(24px, 4vw, 42px);
    color: #fecaca;
    letter-spacing: -0.02em;
}

.hero p {
    max-width: 740px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(17px, 2.1vw, 23px);
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 13px 22px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--red-deep), var(--orange));
    box-shadow: 0 16px 35px rgba(220, 38, 38, 0.35);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
}

.hero-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: rgba(15, 23, 42, 0.56);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.hero-card-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.88));
}

.hero-card-text strong {
    display: block;
    font-size: 24px;
    line-height: 1.24;
}

.hero-card-text em {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-style: normal;
}

.section {
    padding: 74px 0 0;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-heading h2,
.page-title h1,
.detail-info h1,
.content-block h2 {
    margin: 0;
    letter-spacing: -0.03em;
}

.section-heading h2,
.page-title h1 {
    font-size: clamp(30px, 4vw, 44px);
}

.section-heading p,
.page-title p {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--muted-deep);
}

.more-link {
    color: #fca5a5;
    font-weight: 800;
    white-space: nowrap;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.movie-card {
    min-width: 0;
    border-radius: var(--radius-xl);
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.movie-card-link,
.poster-wrap,
.movie-card-body {
    display: block;
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    background: #0b1120;
}

.poster-wrap img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover img {
    transform: scale(1.08);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(239, 68, 68, 0.88);
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-badge {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.year-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.movie-card-body {
    padding: 18px;
}

.movie-card-body strong {
    display: block;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card-body em {
    display: -webkit-box;
    min-height: 48px;
    margin: 9px 0 12px;
    color: var(--muted);
    font-style: normal;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-line {
    display: block;
    color: var(--muted-deep);
    font-size: 13px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.tag-row span,
.info-pill,
.breadcrumbs a,
.breadcrumbs span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #fecaca;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.18);
    font-size: 12px;
    font-weight: 700;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.category-tile {
    position: relative;
    min-height: 170px;
    padding: 22px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(249, 115, 22, 0.1)),
        rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 115, 22, 0.45);
}

.category-tile strong {
    display: block;
    font-size: 22px;
    margin-bottom: 10px;
}

.category-tile span {
    color: var(--muted);
    font-size: 14px;
}

.rank-list {
    display: grid;
    gap: 14px;
}

.rank-item a {
    display: grid;
    grid-template-columns: 58px 112px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: var(--radius-xl);
    background: rgba(30, 41, 59, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.16);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item a:hover {
    transform: translateX(4px);
    border-color: rgba(239, 68, 68, 0.42);
}

.rank-number {
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
    background: linear-gradient(135deg, var(--red), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rank-item img {
    width: 112px;
    height: 70px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-info strong,
.rank-info em,
.rank-info span {
    display: block;
}

.rank-info strong {
    font-size: 18px;
}

.rank-info em {
    margin: 2px 0;
    color: var(--muted);
    font-style: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-info span,
.hot-score {
    color: var(--muted-deep);
    font-size: 13px;
}

.hot-score {
    padding: 7px 11px;
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.13);
    white-space: nowrap;
}

.filter-section {
    padding-top: 32px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 14px;
    margin-bottom: 24px;
    padding: 16px;
    border-radius: var(--radius-xl);
    background: rgba(15, 23, 42, 0.74);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.filter-bar label {
    display: grid;
    gap: 8px;
    color: var(--muted-deep);
    font-size: 13px;
    font-weight: 800;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    outline: none;
    color: #ffffff;
    background: rgba(30, 41, 59, 0.86);
    padding: 13px 14px;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(239, 68, 68, 0.65);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14);
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0 52px;
    background:
        linear-gradient(135deg, rgba(127, 29, 29, 0.78), rgba(154, 52, 18, 0.54)),
        rgba(15, 23, 42, 0.86);
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -45% 35%;
    height: 280px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.18), transparent 68%);
}

.page-title {
    position: relative;
    z-index: 2;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 24px 0 0;
}

.detail-page {
    padding-top: 34px;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 28px;
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(239, 68, 68, 0.16), transparent 42%),
        rgba(30, 41, 59, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.detail-info h1 {
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.08;
}

.detail-info p {
    color: var(--muted);
    font-size: 18px;
}

.info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 24px;
}

.watch-section,
.content-block,
.related-section {
    margin-top: 34px;
    padding: 28px;
    border-radius: 30px;
    background: rgba(30, 41, 59, 0.74);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.watch-section h2,
.content-block h2,
.related-section h2 {
    margin: 0 0 18px;
    font-size: clamp(24px, 3vw, 34px);
}

.video-stage {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #030712;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.video-stage video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle, rgba(239, 68, 68, 0.28), transparent 32%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.82));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-cover .play-mark {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 22px 55px rgba(239, 68, 68, 0.45);
    font-size: 28px;
}

.play-cover strong {
    font-size: clamp(22px, 4vw, 34px);
}

.play-cover small {
    color: #fecaca;
    font-size: 15px;
    font-weight: 800;
}

.content-block p {
    color: var(--muted);
    font-size: 17px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.slim-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.64);
    border: 1px solid rgba(148, 163, 184, 0.12);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.slim-card:hover {
    transform: translateY(-3px);
    border-color: rgba(239, 68, 68, 0.36);
}

.slim-card img {
    width: 96px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
}

.slim-card strong,
.slim-card em {
    display: block;
}

.slim-card strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slim-card em {
    color: var(--muted-deep);
    font-size: 13px;
    font-style: normal;
}

.site-footer {
    margin-top: 76px;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(3, 7, 18, 0.98));
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.35fr 0.8fr 0.8fr 1fr;
    gap: 34px;
    padding: 48px 0 34px;
}

.footer-brand p,
.footer-column p,
.footer-column a {
    color: var(--muted-deep);
}

.footer-column h2 {
    margin: 0 0 14px;
    font-size: 17px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.footer-column a:hover {
    color: #fca5a5;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    padding: 20px;
    color: #64748b;
    text-align: center;
    font-size: 14px;
}

.hidden-card {
    display: none !important;
}

@media (max-width: 1100px) {
    .card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        max-width: 420px;
    }
}

@media (max-width: 820px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .brand-name {
        font-size: 20px;
    }

    .container,
    .section,
    .footer-inner {
        width: min(100% - 32px, var(--max-width));
    }

    .hero,
    .hero-grid {
        min-height: 560px;
    }

    .hero-grid {
        padding: 48px 0 80px;
    }

    .card-grid,
    .category-grid,
    .related-grid,
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .rank-item a {
        grid-template-columns: 46px 84px minmax(0, 1fr);
    }

    .hot-score {
        grid-column: 3;
        justify-self: start;
    }

    .detail-hero {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 340px;
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .nav-wrap {
        height: 62px;
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-card-text {
        padding: 20px;
    }

    .section {
        padding-top: 54px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .card-grid,
    .category-grid,
    .related-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .rank-item a {
        grid-template-columns: 38px 78px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-item img {
        width: 78px;
        height: 58px;
    }

    .rank-info em {
        display: none;
    }

    .detail-hero,
    .watch-section,
    .content-block,
    .related-section {
        padding: 18px;
        border-radius: 22px;
    }

    .slim-card {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .slim-card img {
        width: 82px;
        height: 58px;
    }
}
