:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --orange-500: #f97316;
    --blue-500: #3b82f6;
    --green-500: #22c55e;
    --radius-lg: 18px;
    --radius-md: 14px;
    --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--gray-900);
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fff;
    background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.28);
}

.top-nav {
    max-width: 1240px;
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

.brand span:last-child,
.footer-brand {
    background: linear-gradient(90deg, #fbbf24, var(--orange-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark,
.footer-brand span {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: var(--slate-900);
    background: linear-gradient(135deg, #fbbf24, var(--orange-500));
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.35);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.95rem;
    font-weight: 600;
}

.desktop-nav a,
.mobile-nav a,
.site-footer a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.site-footer a:hover {
    color: #fbbf24;
}

.menu-button {
    display: none;
    border: 0;
    border-radius: 10px;
    padding: 8px 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 12px 22px 22px;
    background: var(--slate-800);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav a {
    display: block;
    padding: 10px 0;
}

.mobile-nav.is-open {
    display: block;
}

.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    color: #fff;
    background: var(--slate-950);
}

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

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.08);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 35%, rgba(245, 158, 11, 0.28), transparent 28%), linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(15, 23, 42, 0.82) 42%, rgba(15, 23, 42, 0.4) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent 45%);
}

.hero-content {
    position: absolute;
    inset: 0;
    max-width: 1240px;
    margin: 0 auto;
    padding: 80px 22px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.62fr);
    align-items: center;
    gap: 42px;
}

.hero-kicker,
.section-heading span,
.page-hero span,
.rank-strip span {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    background: rgba(245, 158, 11, 0.88);
}

.hero-copy h1,
.hero-copy h2 {
    margin: 18px 0 0;
    max-width: 860px;
    font-size: clamp(2.4rem, 6vw, 5.1rem);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-copy h2 + p,
.hero-copy h1 + h2 + p {
    margin-top: 18px;
}

.hero-copy p {
    max-width: 720px;
    color: #e5e7eb;
    font-size: clamp(1rem, 2vw, 1.24rem);
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.primary-button,
.ghost-button,
.home-search button,
.tile-link,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    padding: 12px 22px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button,
.home-search button,
.tile-link {
    color: #fff;
    background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.3);
}

.ghost-button {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover,
.home-search button:hover,
.tile-link:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-chips a {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 8px 13px;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.1);
}

.hero-poster {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
    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;
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 800;
    color: #fff;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(10px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    font-size: 2rem;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--amber-500);
}

.search-band {
    margin-top: -38px;
    position: relative;
    z-index: 7;
    padding: 0 22px;
}

.home-search {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-card);
}

.home-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--gray-200);
    border-radius: 13px;
    padding: 0 14px;
    color: var(--gray-900);
    background: #fff;
    outline: none;
}

.content-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 72px 22px 0;
}

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

.section-heading h2,
.page-hero h1,
.rank-strip h2,
.detail-card h1 {
    margin: 10px 0 0;
    color: var(--gray-900);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.035em;
}

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

.large-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.movie-card,
.category-tile,
.category-overview-card,
.detail-card,
.side-card,
.rank-item,
.prose-card {
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.movie-card {
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
}

.movie-card-wide {
    display: grid;
    grid-template-columns: 44% 1fr;
}

.movie-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--slate-900);
}

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

.movie-card:hover .movie-cover img,
.category-cover:hover img,
.rank-thumb:hover img {
    transform: scale(1.08);
}

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

.cover-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(245, 158, 11, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.cover-duration,
.cover-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    padding: 5px 9px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.65);
}

.cover-duration {
    right: 10px;
    bottom: 10px;
}

.cover-badge {
    left: 10px;
    top: 10px;
    background: rgba(245, 158, 11, 0.92);
}

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

.movie-card-body h3 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.35;
    font-weight: 850;
}

.movie-card-body h3 a:hover,
.rank-item h2 a:hover,
.category-overview-card h2 a:hover {
    color: var(--amber-600);
}

.movie-card-body p {
    min-height: 44px;
    margin: 10px 0;
    color: var(--gray-500);
    line-height: 1.65;
    font-size: 0.92rem;
}

.movie-meta,
.tag-row,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.movie-meta span,
.tag-row span,
.detail-meta span {
    border-radius: 999px;
    padding: 5px 9px;
    color: var(--gray-700);
    background: var(--gray-100);
    font-size: 0.78rem;
    font-weight: 650;
}

.tag-row {
    margin-top: 12px;
}

.tag-row span {
    color: var(--amber-600);
    background: #fff7ed;
}

.highlight-section {
    padding-top: 82px;
}

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

.category-tile {
    padding: 22px;
}

.category-tile h3 {
    margin: 0 0 10px;
    font-size: 1.18rem;
    font-weight: 850;
}

.category-tile p,
.rank-strip p,
.page-hero p,
.prose-card p {
    color: var(--gray-500);
    line-height: 1.8;
}

.mini-links {
    display: grid;
    gap: 8px;
    margin: 18px 0;
    color: var(--gray-700);
    font-size: 0.92rem;
}

.text-link {
    padding: 0;
    color: var(--amber-600);
}

.rank-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 26px;
    margin-top: 72px;
    margin-bottom: 72px;
    padding: 34px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(90deg, var(--slate-900), var(--slate-800));
    box-shadow: var(--shadow-card);
}

.rank-strip h2,
.rank-strip p {
    color: #fff;
}

.page-hero {
    color: #fff;
    background: radial-gradient(circle at 80% 25%, rgba(245, 158, 11, 0.34), transparent 28%), linear-gradient(100deg, var(--slate-950), var(--slate-800));
}

.page-hero > div {
    max-width: 1240px;
    margin: 0 auto;
    padding: 82px 22px;
}

.compact-hero > div {
    padding: 66px 22px;
}

.page-hero h1,
.page-hero p {
    color: #fff;
}

.page-hero p {
    max-width: 760px;
    font-size: 1.08rem;
}

.filter-panel {
    margin-bottom: 28px;
    padding: 14px;
    display: grid;
    grid-template-columns: 1.5fr 0.55fr 0.55fr 0.65fr;
    gap: 12px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.filter-panel select:empty {
    display: none;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
    overflow: hidden;
    padding: 16px;
}

.category-cover {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--slate-900);
}

.category-cover img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-cover span {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 12px;
    padding: 9px;
    color: #fff;
    font-weight: 800;
    background: rgba(2, 6, 23, 0.68);
}

.category-overview-card h2,
.rank-item h2 {
    margin: 0;
    font-size: 1.25rem;
}

.category-overview-card ul {
    margin: 12px 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
    color: var(--gray-700);
}

.ranking-section {
    max-width: 980px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 62px 168px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px;
}

.rank-num {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

.rank-thumb {
    border-radius: 14px;
    overflow: hidden;
    background: var(--slate-900);
}

.rank-thumb img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.rank-item p {
    margin: 9px 0;
    color: var(--gray-500);
    line-height: 1.65;
}

.detail-main {
    background: linear-gradient(180deg, #0f172a 0%, #f8fafc 38%);
}

.detail-hero {
    max-width: 1240px;
    margin: 0 auto;
    padding: 34px 22px 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 24px;
    color: #e5e7eb;
    font-size: 0.92rem;
}

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

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
    cursor: pointer;
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    gap: 14px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.58));
    cursor: pointer;
}

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

.player-circle {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--slate-900);
    background: linear-gradient(135deg, #fbbf24, var(--orange-500));
    box-shadow: 0 18px 38px rgba(245, 158, 11, 0.35);
    font-size: 2rem;
}

.detail-card {
    margin-top: 24px;
    padding: 28px;
}

.detail-badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 12px;
    color: #fff;
    background: var(--amber-500);
    font-weight: 800;
}

.lead-text {
    color: var(--gray-700);
    font-size: 1.1rem;
    line-height: 1.8;
}

.detail-card h2 {
    margin: 28px 0 10px;
    font-size: 1.45rem;
}

.detail-card p {
    color: var(--gray-700);
    line-height: 1.95;
    text-align: justify;
}

.detail-sidebar {
    position: sticky;
    top: 90px;
    display: grid;
    gap: 18px;
}

.detail-poster {
    width: 100%;
    border-radius: 24px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    box-shadow: var(--shadow-card);
}

.side-card {
    padding: 20px;
}

.side-card h2 {
    margin: 0 0 14px;
    font-size: 1.15rem;
}

.side-card dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px;
    margin: 0;
}

.side-card dt {
    color: var(--gray-500);
}

.side-card dd {
    margin: 0;
    color: var(--gray-900);
    font-weight: 700;
}

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

.side-links a {
    color: var(--gray-700);
}

.side-links a:hover {
    color: var(--amber-600);
}

.prose-card {
    margin-top: 72px;
    padding: 34px;
}

.info-link-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.info-link-grid a {
    border-radius: 13px;
    padding: 10px 16px;
    color: var(--amber-600);
    background: #fff7ed;
    font-weight: 800;
}

.site-footer {
    margin-top: 88px;
    color: #cbd5e1;
    background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 52px 22px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 1rem;
}

.site-footer p {
    color: #94a3b8;
    line-height: 1.8;
}

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

.footer-bottom {
    padding: 20px 22px 28px;
    color: #64748b;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

    .menu-button {
        display: inline-flex;
    }

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

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

@media (max-width: 860px) {
    .hero {
        min-height: 760px;
    }

    .hero-content,
    .detail-layout,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

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

    .hero-arrow {
        display: none;
    }

    .movie-grid,
    .large-list,
    .feature-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .rank-strip,
    .home-search {
        flex-direction: column;
        align-items: stretch;
    }

    .rank-item {
        grid-template-columns: 48px 110px 1fr;
        gap: 12px;
    }

    .detail-sidebar {
        position: static;
    }
}

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

    .brand span:last-child {
        font-size: 0.98rem;
    }

    .hero-content {
        padding: 58px 16px;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: 2.4rem;
    }

    .movie-grid,
    .large-list,
    .feature-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-wide {
        grid-template-columns: 1fr;
    }

    .content-section,
    .detail-hero,
    .page-hero > div {
        padding-left: 16px;
        padding-right: 16px;
    }

    .rank-item {
        grid-template-columns: 42px 1fr;
    }

    .rank-thumb {
        display: none;
    }

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