:root {
    --bg: #fffaf0;
    --bg-soft: #fff7ed;
    --text: #111827;
    --muted: #6b7280;
    --line: rgba(17, 24, 39, 0.12);
    --white: #ffffff;
    --dark: #111827;
    --amber: #f59e0b;
    --amber-deep: #d97706;
    --rose: #f43f5e;
    --sky: #0ea5e9;
    --purple: #8b5cf6;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    --radius: 24px;
    --radius-sm: 14px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.20), transparent 34rem),
        radial-gradient(circle at 85% 8%, rgba(244, 63, 94, 0.16), transparent 26rem),
        linear-gradient(180deg, #fffaf0 0%, #ffffff 42%, #fff7ed 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

.container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(245, 158, 11, 0.20);
}

.header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #1f2937;
}

.logo {
    font-size: 22px;
    white-space: nowrap;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--rose));
    box-shadow: 0 12px 26px rgba(245, 158, 11, 0.35);
    font-size: 15px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link,
.nav-dropdown > button {
    border: 0;
    background: transparent;
    color: #374151;
    font: inherit;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active,
.nav-dropdown:hover > button {
    color: #9a3412;
    background: #ffedd5;
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    right: 0;
    top: 46px;
    width: 220px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
}

.nav-dropdown:hover .dropdown-panel {
    display: grid;
    gap: 4px;
}

.dropdown-panel a {
    padding: 10px 12px;
    border-radius: 12px;
    color: #374151;
}

.dropdown-panel a:hover {
    background: #fff7ed;
    color: #c2410c;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    padding: 10px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #1f2937;
    border-radius: 999px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    color: #ffffff;
    background:
        linear-gradient(120deg, rgba(17, 24, 39, 0.94), rgba(127, 29, 29, 0.74)),
        radial-gradient(circle at 80% 12%, rgba(245, 158, 11, 0.52), transparent 24rem),
        radial-gradient(circle at 30% 90%, rgba(14, 165, 233, 0.28), transparent 26rem),
        #111827;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.98), rgba(17, 24, 39, 0.58), rgba(17, 24, 39, 0.92)),
        var(--hero-image, none);
    background-size: cover;
    background-position: center;
    opacity: 0.72;
    transform: scale(1.02);
    transition: opacity 0.6s ease;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -8% -18% -8%;
    height: 260px;
    background: linear-gradient(180deg, transparent, #fffaf0 78%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    min-height: 640px;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.72fr);
    align-items: center;
    gap: 42px;
    padding: 74px 0 92px;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fde68a;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    font-weight: 800;
    margin-bottom: 20px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-subtitle {
    max-width: 660px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    margin: 24px 0 28px;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--rose));
    box-shadow: 0 18px 34px rgba(244, 63, 94, 0.32);
}

.button-light {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.hero-search {
    margin-top: 30px;
    display: flex;
    width: min(100%, 620px);
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(16px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    font: inherit;
    padding: 0 18px;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.62);
}

.hero-search button {
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    font: inherit;
    font-weight: 900;
    color: #7c2d12;
    background: #fef3c7;
    cursor: pointer;
}

.hero-panel {
    position: relative;
}

.hero-poster {
    overflow: hidden;
    min-height: 520px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(16px);
}

.hero-poster img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    background: linear-gradient(135deg, #f59e0b, #f43f5e);
}

.hero-card-content {
    padding: 22px;
}

.hero-card-content h2 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.16;
}

.hero-card-content p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.76);
}

.hero-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.hero-tabs button {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    padding: 10px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.10);
    cursor: pointer;
    text-align: left;
}

.hero-tabs button.active {
    color: #ffffff;
    background: rgba(245, 158, 11, 0.32);
    border-color: rgba(245, 158, 11, 0.52);
}

main {
    position: relative;
    z-index: 1;
}

.section {
    padding: 72px 0;
}

.section.compact {
    padding: 42px 0;
}

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

.section-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-kicker {
    color: #c2410c;
    font-weight: 900;
    margin: 0 0 8px;
}

.section-desc {
    margin: 10px 0 0;
    color: var(--muted);
    max-width: 680px;
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(245, 158, 11, 0.18);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.40);
    box-shadow: var(--shadow);
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fef3c7, #fee2e2, #dbeafe);
}

.poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover .poster-wrap img {
    transform: scale(1.05);
}

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 54%, rgba(15, 23, 42, 0.72));
    pointer-events: none;
}

.play-chip {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    border-radius: 999px;
    padding: 7px 12px;
    color: #ffffff;
    background: rgba(244, 63, 94, 0.92);
    font-weight: 900;
    font-size: 13px;
    box-shadow: 0 10px 22px rgba(244, 63, 94, 0.34);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--rose));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.card-body {
    padding: 18px;
}

.card-body h3 {
    margin: 0;
    line-height: 1.28;
    font-size: 19px;
}

.card-body h3 a:hover {
    color: #c2410c;
}

.card-meta,
.card-desc {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.card-desc {
    min-height: 46px;
}

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

.tag-row span,
.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    padding: 5px 9px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 800;
}

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

.category-card {
    min-height: 180px;
    padding: 22px;
    border-radius: var(--radius);
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.25), transparent 7rem),
        linear-gradient(135deg, #f59e0b, #f43f5e);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-card:nth-child(2n) {
    background:
        radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.24), transparent 7rem),
        linear-gradient(135deg, #0ea5e9, #8b5cf6);
}

.category-card:nth-child(3n) {
    background:
        radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.24), transparent 7rem),
        linear-gradient(135deg, #111827, #d97706);
}

.category-card h3 {
    margin: 0 0 8px;
    font-size: 24px;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.category-card strong {
    margin-top: 20px;
}

.filter-box {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(245, 158, 11, 0.18);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
    margin-bottom: 28px;
}

.filter-box input {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--line);
    outline: 0;
    border-radius: 999px;
    padding: 0 18px;
    font: inherit;
    background: #ffffff;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chips button {
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 999px;
    padding: 9px 14px;
    color: #9a3412;
    background: #fff7ed;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.filter-chips button.active,
.filter-chips button:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--rose));
}

.no-results {
    display: none;
    padding: 28px;
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--muted);
    text-align: center;
    border: 1px solid var(--line);
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 52px 76px minmax(0, 1fr) 60px;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(245, 158, 11, 0.16);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.rank-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.rank-num {
    font-size: 22px;
    font-weight: 950;
    color: #d97706;
    text-align: center;
}

.rank-row img {
    width: 76px;
    height: 96px;
    object-fit: cover;
    border-radius: 14px;
    background: linear-gradient(135deg, #fef3c7, #fee2e2);
}

.rank-info {
    min-width: 0;
}

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

.rank-info strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
}

.rank-info em {
    margin-top: 4px;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.rank-score {
    justify-self: end;
    color: #f59e0b;
    font-size: 22px;
    font-weight: 950;
}

.side-panel {
    position: sticky;
    top: 92px;
    padding: 20px;
    border-radius: var(--radius);
    background: rgba(17, 24, 39, 0.96);
    color: #ffffff;
    box-shadow: var(--shadow);
}

.side-panel h3 {
    margin: 0 0 12px;
}

.side-panel a {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.page-hero {
    padding: 78px 0 42px;
    color: #ffffff;
    background:
        radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.42), transparent 18rem),
        radial-gradient(circle at 80% 30%, rgba(244, 63, 94, 0.30), transparent 18rem),
        linear-gradient(135deg, #111827, #7c2d12);
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.78);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.74);
    margin-bottom: 16px;
}

.breadcrumb a:hover {
    color: #fde68a;
}

.detail-hero {
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.70)),
        var(--detail-bg, none);
    background-size: cover;
    background-position: center;
}

.detail-inner {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
    min-height: 520px;
    padding: 72px 0 54px;
}

.detail-poster {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
    background: linear-gradient(135deg, #fef3c7, #fee2e2);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-copy h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 74px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.detail-intro {
    max-width: 860px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.player-shell {
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: var(--shadow);
}

.player-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.56)),
        var(--poster, none);
    background-size: cover;
    background-position: center;
}

.player-stage video {
    width: 100%;
    height: 100%;
    background: #000000;
    display: block;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at center, rgba(244, 63, 94, 0.18), rgba(2, 6, 23, 0.70));
}

.player-overlay.is-hidden {
    display: none;
}

.play-button {
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--rose));
    box-shadow: 0 18px 46px rgba(244, 63, 94, 0.36);
    cursor: pointer;
    font-size: 32px;
}

.player-info {
    padding: 18px 22px;
    color: rgba(255, 255, 255, 0.72);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.article-panel {
    padding: 28px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(245, 158, 11, 0.18);
    box-shadow: 0 16px 46px rgba(15, 23, 42, 0.08);
}

.article-panel h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.article-panel p {
    color: #374151;
}

.info-list {
    display: grid;
    gap: 10px;
}

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.info-list dt {
    color: var(--muted);
}

.info-list dd {
    margin: 0;
    text-align: right;
    font-weight: 800;
}

.site-footer {
    padding: 54px 0;
    background: #111827;
    color: rgba(255, 255, 255, 0.68);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 32px;
}

.footer-logo {
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 12px;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a:hover {
    color: #fbbf24;
}

.is-missing-image {
    opacity: 0;
}

@media (max-width: 980px) {
    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 78px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 14px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .site-nav.open {
        display: flex;
    }

    .nav-link,
    .nav-dropdown > button {
        width: 100%;
        text-align: left;
    }

    .nav-dropdown:hover .dropdown-panel,
    .dropdown-panel {
        position: static;
        width: 100%;
        display: grid;
        box-shadow: none;
        border-radius: 16px;
        background: #fff7ed;
    }

    .hero-inner,
    .detail-inner,
    .rank-layout,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        min-height: auto;
        padding: 58px 0 72px;
    }

    .hero-poster {
        min-height: auto;
    }

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

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

    .side-panel {
        position: static;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 22px, var(--container));
    }

    .header-inner {
        height: 66px;
    }

    .logo {
        font-size: 18px;
    }

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

    .hero-search {
        border-radius: 24px;
        flex-direction: column;
    }

    .hero-search input {
        min-height: 46px;
    }

    .movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .card-body {
        padding: 14px;
    }

    .card-desc {
        min-height: auto;
    }

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

    .rank-row {
        grid-template-columns: 42px 60px minmax(0, 1fr);
    }

    .rank-row img {
        width: 60px;
        height: 78px;
    }

    .rank-score {
        display: none;
    }

    .detail-inner {
        padding-top: 46px;
    }

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

    .article-panel {
        padding: 20px;
    }
}
