:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-2: #cbd5e1;
    --amber: #f59e0b;
    --amber-bright: #fbbf24;
    --orange: #f97316;
    --red: #ef4444;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 32rem),
        radial-gradient(circle at top right, rgba(239, 68, 68, 0.12), transparent 34rem),
        linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
    color: var(--text);
    min-height: 100vh;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    background: linear-gradient(135deg, var(--amber-bright), var(--orange));
    box-shadow: 0 0 28px rgba(245, 158, 11, 0.42);
    font-size: 14px;
}

.brand-text {
    font-size: 21px;
    background: linear-gradient(90deg, #fbbf24, #fb923c, #fef3c7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--muted-2);
    font-size: 14px;
}

.nav-link {
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-hot {
    color: var(--amber-bright);
}

.nav-link:hover {
    transform: translateY(-1px);
}

.menu-toggle {
    width: 42px;
    height: 42px;
    display: none;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.7);
    cursor: pointer;
    color: var(--text);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: var(--text);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    padding: 12px 24px 18px;
    background: rgba(15, 23, 42, 0.98);
}

.mobile-nav.is-open {
    display: grid;
    gap: 12px;
}

.mobile-link {
    color: var(--muted-2);
    padding: 10px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.hero {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero-slider {
    position: relative;
    min-height: 650px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.03);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) brightness(0.55);
}

.hero-layer {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.74) 42%, rgba(2, 6, 23, 0.35) 100%),
        linear-gradient(0deg, #020617 0%, transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 1;
    min-height: 650px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 84px 24px 116px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    align-items: center;
    gap: 58px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--amber-bright);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.hero p {
    margin: 24px 0 0;
    max-width: 760px;
    color: var(--muted-2);
    font-size: 18px;
    line-height: 1.85;
}

.hero-tags,
.detail-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 28px;
}

.hero-tags span,
.detail-tags a,
.tag-row span {
    border: 1px solid rgba(245, 158, 11, 0.26);
    color: #fde68a;
    background: rgba(245, 158, 11, 0.10);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
    color: #111827;
    background: linear-gradient(135deg, var(--amber-bright), var(--orange));
    box-shadow: 0 18px 44px rgba(245, 158, 11, 0.28);
}

.secondary-btn {
    color: var(--text);
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(251, 191, 36, 0.28);
}

.primary-btn:hover,
.secondary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.22);
}

.hero-poster {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.8);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transform: rotate(1.5deg);
}

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

.hero-poster span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.76);
    color: var(--amber-bright);
    text-align: center;
    font-weight: 800;
    backdrop-filter: blur(14px);
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 126px;
    z-index: 3;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 34px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.26);
    cursor: pointer;
}

.hero-dot.is-active {
    background: var(--amber-bright);
}

.hero-search-wrap {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 4;
    transform: translateX(-50%);
    width: min(1080px, calc(100% - 36px));
    padding: 16px;
    border: 1px solid rgba(251, 191, 36, 0.18);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.76);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-search,
.search-box {
    display: flex;
    gap: 12px;
}

.hero-search input,
.search-box input {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, 0.2);
    outline: none;
    color: var(--text);
    background: rgba(2, 6, 23, 0.72);
    border-radius: 999px;
    padding: 0 18px;
    min-height: 48px;
}

.hero-search button,
.search-box button {
    border: 0;
    color: #111827;
    background: linear-gradient(135deg, var(--amber-bright), var(--orange));
    border-radius: 999px;
    padding: 0 20px;
    font-weight: 800;
    cursor: pointer;
}

.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.hero-links a {
    color: var(--muted-2);
    font-size: 13px;
}

.section-block {
    max-width: 1280px;
    margin: 0 auto;
    padding: 76px 24px;
}

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

.section-heading span {
    color: var(--amber-bright);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 12px;
}

.section-heading h2 {
    margin: 4px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.04em;
}

.section-heading p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

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

.category-tile,
.category-panel,
.movie-card,
.rank-item,
.side-panel,
.search-panel,
.content-section,
.player-section {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.84));
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
}

.category-tile {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: 24px;
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.category-tile:hover img {
    transform: scale(1.06);
    opacity: 0.62;
}

.category-tile span {
    position: absolute;
    inset: auto 16px 16px 16px;
}

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

.category-tile small {
    color: var(--muted-2);
    line-height: 1.65;
}

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

.movie-card {
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 191, 36, 0.34);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #0f172a;
    transition: transform 0.3s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.04);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 45%);
}

.poster-year {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #111827;
    background: var(--amber-bright);
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    padding: 18px;
}

.card-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

.card-meta a,
.detail-meta a {
    color: var(--amber-bright);
}

.movie-card h2,
.rank-item h2,
.category-panel h2 {
    margin: 10px 0 8px;
    font-size: 20px;
    line-height: 1.35;
}

.movie-card h2 a:hover,
.rank-item h2 a:hover,
.category-panel h2 a:hover {
    color: var(--amber-bright);
}

.movie-card p,
.rank-item p,
.category-panel p {
    color: var(--muted-2);
    line-height: 1.75;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 18px;
    border-radius: 24px;
    padding: 14px;
}

.rank-cover {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

.rank-cover img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.rank-cover span {
    position: absolute;
    left: 8px;
    top: 8px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    background: var(--amber-bright);
    border-radius: 12px;
    font-weight: 900;
}

.center-action {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.search-panel {
    border-radius: 24px;
    padding: 18px;
    margin-bottom: 28px;
}

.search-panel label {
    display: block;
    margin-bottom: 10px;
    color: var(--amber-bright);
    font-weight: 800;
}

.page-hero {
    position: relative;
    max-width: 1280px;
    margin: 32px auto 0;
    border-radius: 34px;
    padding: 58px;
    overflow: hidden;
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.22), transparent 26rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.92));
    box-shadow: var(--shadow);
}

.slim-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
}

.page-hero p {
    max-width: 760px;
    color: var(--muted-2);
    font-size: 18px;
    line-height: 1.8;
}

.category-hero {
    min-height: 360px;
    display: flex;
    align-items: center;
}

.category-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.24;
}

.category-hero > div {
    position: relative;
    z-index: 1;
}

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

.category-panel {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
    border-radius: 24px;
    padding: 16px;
}

.category-panel-cover {
    overflow: hidden;
    border-radius: 18px;
}

.category-panel-cover img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.category-panel-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-panel-links a {
    color: var(--muted-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
}

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

.side-panel {
    position: sticky;
    top: 92px;
    border-radius: 24px;
    padding: 20px;
}

.side-panel h2 {
    margin: 0 0 18px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    color: var(--muted-2);
}

.compact-card img {
    width: 62px;
    height: 82px;
    border-radius: 12px;
    object-fit: cover;
}

.compact-card strong {
    display: block;
    color: var(--text);
    margin-bottom: 4px;
}

.compact-card small {
    color: var(--muted);
}

.detail-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 26px 24px 0;
}

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

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

.detail-hero {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 34px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 24rem),
        rgba(15, 23, 42, 0.76);
    box-shadow: var(--shadow);
}

.detail-cover {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
}

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

.detail-info {
    align-self: center;
}

.detail-one-line {
    color: var(--muted-2);
    font-size: 20px;
    line-height: 1.8;
    margin: 22px 0;
}

.detail-tags {
    margin: 22px 0 28px;
}

.video-player-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow);
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text);
    background:
        linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.24)),
        rgba(2, 6, 23, 0.34);
    cursor: pointer;
    transition: opacity 0.22s ease;
}

.player-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.play-circle {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #111827;
    background: linear-gradient(135deg, var(--amber-bright), var(--orange));
    font-size: 26px;
    box-shadow: 0 18px 50px rgba(245, 158, 11, 0.32);
}

.player-overlay strong {
    font-size: clamp(22px, 4vw, 38px);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.content-section {
    border-radius: 28px;
}

.content-section h2,
.player-section h2 {
    margin: 0 0 16px;
    font-size: 30px;
}

.content-section p {
    color: var(--muted-2);
    line-height: 1.95;
    font-size: 17px;
    margin: 0 0 28px;
}

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

.site-footer {
    margin-top: 58px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.88);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 30px;
}

.footer-inner p {
    color: var(--muted);
    line-height: 1.8;
    max-width: 440px;
}

.footer-inner h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

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

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

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

.footer-copy {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    color: var(--muted);
    text-align: center;
    padding: 20px 24px;
    font-size: 14px;
}

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

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

    .menu-toggle {
        display: inline-block;
    }

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

    .hero-poster {
        max-width: 280px;
    }

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

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

    .side-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .header-inner {
        height: 62px;
        padding: 0 16px;
    }

    .brand-text {
        font-size: 18px;
    }

    .hero {
        min-height: 760px;
    }

    .hero-slider,
    .hero-content {
        min-height: 690px;
    }

    .hero-content {
        padding: 58px 18px 168px;
        gap: 24px;
    }

    .hero p,
    .page-hero p,
    .detail-one-line {
        font-size: 16px;
    }

    .hero-poster {
        display: none;
    }

    .hero-search,
    .search-box,
    .slim-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-search button,
    .search-box button {
        min-height: 46px;
    }

    .section-block,
    .detail-page {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section-heading {
        display: block;
    }

    .category-grid,
    .movie-grid,
    .rank-grid,
    .category-panel-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .category-panel,
    .rank-item {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .category-panel-cover img,
    .rank-cover img {
        height: 130px;
    }

    .page-hero,
    .detail-hero {
        margin-top: 18px;
        padding: 26px;
        border-radius: 24px;
    }

    .detail-cover {
        max-width: 240px;
    }
}
