:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.74);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-2: #cbd5e1;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --radius: 24px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 34rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.65;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    min-height: 72px;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), #fde68a);
    color: #111827;
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.28);
}

.brand-text,
.footer-brand {
    background: linear-gradient(135deg, #fff 20%, #fbbf24 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.search-box,
.mobile-search,
.local-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-box input,
.mobile-search input,
.local-filter input {
    width: 250px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.92);
    color: var(--text);
    outline: none;
    padding: 10px 14px;
}

.local-filter input {
    width: min(520px, 100%);
    margin-top: 22px;
}

.search-box input:focus,
.mobile-search input:focus,
.local-filter input:focus {
    border-color: rgba(245, 158, 11, 0.72);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.search-box button,
.mobile-search button {
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #111827;
    padding: 10px 16px;
    font-weight: 800;
}

.mobile-menu-button {
    display: none;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
    padding: 8px 12px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    padding: 16px;
    background: rgba(2, 6, 23, 0.96);
}

.mobile-nav {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.mobile-nav a {
    color: var(--muted-2);
    padding: 10px 0;
}

.hero {
    position: relative;
    height: 620px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.58) 42%, rgba(0, 0, 0, 0.12) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.96) 0%, transparent 44%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.14);
    color: #fbbf24;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.sub-hero h1,
.detail-title-block h1 {
    margin: 18px 0 16px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero p,
.sub-hero p,
.detail-title-block p {
    max-width: 720px;
    margin: 0;
    color: var(--muted-2);
    font-size: clamp(18px, 2.3vw, 24px);
}

.hero-tags,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 26px 0 32px;
}

.hero-tags span,
.detail-meta span,
.tag-list span {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.76);
    color: #e2e8f0;
    padding: 7px 12px;
    font-size: 14px;
}

.hero-actions,
.section-heading,
.category-overview-head,
.detail-title-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-actions {
    flex-wrap: wrap;
}

.primary-button,
.ghost-button,
.text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    padding: 12px 20px;
    font-weight: 900;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
    background: var(--accent);
    color: #111827;
    box-shadow: 0 18px 42px rgba(245, 158, 11, 0.26);
}

.primary-button:hover,
.search-box button:hover,
.mobile-search button:hover {
    background: #fbbf24;
    transform: translateY(-1px);
}

.ghost-button,
.text-button {
    border: 1px solid var(--line);
    color: #fff;
    background: rgba(15, 23, 42, 0.58);
}

.ghost-button:hover,
.text-button:hover {
    border-color: rgba(245, 158, 11, 0.62);
    color: var(--accent);
}

.primary-button.full {
    width: 100%;
    margin-top: 16px;
}

.hero-controls {
    position: absolute;
    right: max(24px, calc((100% - 1180px) / 2));
    bottom: 34px;
    z-index: 10;
    display: flex;
    gap: 12px;
}

.hero-controls button {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.74);
    color: #fff;
    font-size: 28px;
}

.quick-panel {
    border-bottom: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.58);
}

.quick-panel-inner {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    padding: 30px 0;
}

.quick-panel h2,
.section-heading h2,
.panel-card h2,
.article-card h2,
.side-card h2,
.category-overview-head h2 {
    margin: 8px 0 0;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.15;
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.category-chips a {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.55);
    color: #dbeafe;
    padding: 11px 16px;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.category-chips a:hover {
    border-color: rgba(245, 158, 11, 0.6);
    color: var(--accent);
    transform: translateY(-1px);
}

.content-section {
    padding: 72px 0;
}

.search-results-section {
    padding: 64px 0 0;
}

.section-heading {
    justify-content: space-between;
    margin-bottom: 28px;
}

.section-heading.tight {
    display: block;
    margin-bottom: 20px;
}

.section-heading a {
    color: var(--accent);
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.62);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #334155);
}

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

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

.poster-mask {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.poster-mask span {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.92);
    color: #111827;
    font-weight: 900;
}

.movie-card:hover .poster-mask {
    opacity: 1;
}

.type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 9px;
    font-size: 12px;
}

.card-body {
    padding: 18px;
}

.card-body h2 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.card-body h2 a:hover,
.ranking-body h2 a:hover,
.category-overview-head h2 a:hover {
    color: var(--accent);
}

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

.card-line,
.ranking-body p,
.category-overview-head p,
.site-footer p {
    color: var(--muted-2);
}

.split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
    gap: 28px;
}

.panel-card,
.article-card,
.side-card,
.category-overview-card,
.ranking-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.56));
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.2);
}

.panel-card,
.article-card,
.side-card,
.category-overview-card {
    padding: 26px;
}

.hot-card {
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.24), transparent 24rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.64));
}

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

.media-row {
    display: grid;
    grid-template-columns: 96px 1fr;
    align-items: center;
    gap: 14px;
    border-radius: 18px;
    padding: 10px;
    background: rgba(2, 6, 23, 0.34);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-list .media-row {
    grid-template-columns: 42px 88px 1fr;
}

.media-row:hover {
    background: rgba(245, 158, 11, 0.12);
    transform: translateX(4px);
}

.media-row img {
    width: 96px;
    height: 58px;
    object-fit: cover;
    border-radius: 12px;
}

.media-row strong {
    display: block;
    color: #fff;
    line-height: 1.35;
}

.media-row em {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.rank-num {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 12px;
    background: var(--accent);
    color: #111827;
    font-weight: 900;
}

.year-layout,
.category-overview-grid {
    display: grid;
    gap: 28px;
}

.year-block {
    border-left: 4px solid var(--accent);
    padding-left: 24px;
}

.year-block h3 {
    margin: 0 0 18px;
    font-size: 26px;
}

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

.category-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.62);
    padding: 20px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    border-color: rgba(245, 158, 11, 0.5);
    transform: translateY(-4px);
}

.category-card span {
    display: block;
    color: var(--accent);
    font-size: 20px;
    font-weight: 900;
}

.category-card strong {
    display: block;
    margin-top: 8px;
    color: var(--muted-2);
    font-size: 14px;
    font-weight: 500;
}

.category-samples {
    display: grid;
    gap: 6px;
    margin-top: 16px;
}

.category-samples a {
    color: var(--muted);
    font-size: 13px;
}

.category-samples a:hover {
    color: var(--accent);
}

.sub-hero {
    padding: 88px 0 64px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 28rem),
        linear-gradient(135deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.82));
}

.category-hero,
.ranking-hero {
    padding-bottom: 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.category-overview-card {
    display: grid;
    grid-template-columns: 1fr 1.3fr auto;
    align-items: center;
    gap: 24px;
}

.category-overview-head {
    display: block;
}

.ranking-list-page {
    display: grid;
    gap: 16px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 160px 72px 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 18px;
}

.ranking-cover {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
    background: #111827;
}

.ranking-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-number {
    color: var(--accent);
    font-size: 30px;
    font-weight: 1000;
}

.ranking-body h2 {
    margin: 0 0 7px;
    font-size: 22px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.detail-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    padding: 78px 0 64px;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.56)),
        var(--detail-bg) center / cover no-repeat;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 180px;
    background: linear-gradient(0deg, var(--bg), transparent);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
}

.detail-title-block {
    display: block;
    max-width: 860px;
}

.detail-section {
    padding-top: 0;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
}

.detail-main,
.detail-side {
    display: grid;
    gap: 24px;
    align-content: start;
}

.player-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #000;
    box-shadow: var(--shadow);
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-shell video {
    width: 100%;
    height: 100%;
    background: #000;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.08));
    color: #111827;
    transition: opacity 0.2s ease;
}

.player-start span {
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: #111827;
    font-size: 32px;
    box-shadow: 0 18px 46px rgba(245, 158, 11, 0.32);
}

.player-card.is-playing .player-start {
    opacity: 0;
    pointer-events: none;
}

.article-card h2,
.side-card h2 {
    margin-bottom: 14px;
    font-size: 24px;
}

.article-card p {
    margin: 0;
    color: #e2e8f0;
    font-size: 17px;
}

.poster-side img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 18px;
    background: #111827;
}

.info-list {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 12px 14px;
    margin: 0;
}

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

.info-list dd {
    margin: 0;
    color: #fff;
}

.info-list a {
    color: var(--accent);
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 46px 0;
    background: rgba(2, 6, 23, 0.92);
}

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

.site-footer h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.footer-links a {
    color: var(--muted-2);
}

.footer-links a:hover {
    color: var(--accent);
}

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

@media (max-width: 1080px) {
    .desktop-nav,
    .search-box {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .mobile-panel.open {
        display: block;
    }

    .quick-panel-inner,
    .split-grid,
    .detail-layout,
    .footer-grid,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

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

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

    .ranking-item {
        grid-template-columns: 140px 56px 1fr;
    }

    .ranking-item .text-button {
        grid-column: 3;
        width: fit-content;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .hero {
        height: 560px;
    }

    .hero h1,
    .sub-hero h1,
    .detail-title-block h1 {
        font-size: clamp(34px, 12vw, 52px);
    }

    .hero p,
    .sub-hero p,
    .detail-title-block p {
        font-size: 17px;
    }

    .hero-controls {
        right: 16px;
        bottom: 18px;
    }

    .content-section {
        padding: 48px 0;
    }

    .section-heading {
        display: block;
    }

    .section-heading a {
        display: inline-flex;
        margin-top: 12px;
    }

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

    .mobile-search {
        align-items: stretch;
    }

    .mobile-search input {
        width: 100%;
    }

    .media-row,
    .rank-list .media-row {
        grid-template-columns: 88px 1fr;
    }

    .rank-num {
        display: none;
    }

    .ranking-item {
        grid-template-columns: 112px 1fr;
        gap: 16px;
    }

    .ranking-number {
        grid-row: 1;
        grid-column: 2;
        font-size: 22px;
    }

    .ranking-body {
        grid-column: 1 / -1;
    }

    .ranking-item .text-button {
        grid-column: 1 / -1;
    }

    .detail-hero {
        min-height: 440px;
        padding-bottom: 44px;
    }

    .player-start span {
        width: 72px;
        height: 72px;
        font-size: 28px;
    }
}
