:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --orange-600: #ea580c;
    --orange-500: #f97316;
    --orange-400: #fb923c;
    --amber-300: #fcd34d;
    --white: #ffffff;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    --radius-xl: 24px;
    --radius-lg: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--slate-800);
    background: linear-gradient(135deg, var(--slate-50), var(--slate-100));
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--slate-800), var(--slate-950));
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.28);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
}

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

.brand-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange-500), var(--amber-300));
    color: var(--slate-950);
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 15px;
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.82);
    transition: color 0.2s ease;
}

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

.nav-link.active::after {
    position: absolute;
    right: 0;
    bottom: -10px;
    left: 0;
    height: 2px;
    border-radius: 4px;
    background: var(--orange-400);
    content: "";
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

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

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 0 16px 18px;
    background: var(--slate-950);
}

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

.hero-carousel {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    background: var(--slate-950);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: none;
}

.hero-slide.active {
    display: block;
}

.hero-image-layer {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.68), rgba(2, 6, 23, 0.42)), var(--hero-image);
    background-position: center;
    background-size: cover;
    filter: saturate(1.1);
    transform: scale(1.04);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 610px;
    grid-template-columns: minmax(0, 1.2fr) 360px;
    align-items: center;
    gap: 60px;
}

.hero-copy {
    color: var(--white);
}

.kicker,
.hero-kicker {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--orange-400);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 780px;
    margin: 0 0 22px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 720px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.7;
}

.hero-tags,
.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-tags span,
.detail-badges span {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

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

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

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.35);
}

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

.btn-ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 32px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

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

.hero-poster:hover img {
    transform: scale(1.05);
}

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

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

.hero-dot.active {
    width: 34px;
    background: var(--orange-400);
}

.search-band {
    margin-top: -42px;
    position: relative;
    z-index: 8;
}

.search-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.search-panel h2,
.split-side h2,
.section-head h2 {
    margin: 0;
    color: var(--slate-800);
    font-size: clamp(24px, 3vw, 36px);
    letter-spacing: -0.03em;
}

.site-search {
    display: flex;
    min-width: min(520px, 100%);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: var(--white);
}

.site-search input {
    width: 100%;
    min-height: 48px;
    border: 0;
    padding: 0 18px;
    color: var(--slate-800);
    font-size: 15px;
    outline: 0;
}

.site-search button {
    border: 0;
    padding: 0 18px;
    color: var(--white);
    background: var(--slate-900);
    font-weight: 700;
    cursor: pointer;
}

.category-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 42px 0 10px;
}

.category-strip a,
.side-links a,
.tag-cloud a {
    display: inline-flex;
    padding: 10px 15px;
    border-radius: 999px;
    color: var(--slate-700);
    background: var(--white);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, color 0.2s ease;
}

.category-strip a:hover,
.side-links a:hover,
.tag-cloud a:hover {
    color: var(--orange-600);
    transform: translateY(-2px);
}

.content-section,
.split-section {
    padding: 54px 0;
}

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

.section-head p,
.split-side p,
.page-hero p {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--slate-500);
    line-height: 1.75;
}

.section-more {
    flex: 0 0 auto;
    color: var(--orange-600);
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 62px rgba(15, 23, 42, 0.16);
}

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

.poster-wrap img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-badge,
.poster-duration {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: var(--white);
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(10px);
}

.poster-badge {
    top: 12px;
    left: 12px;
    padding: 7px 10px;
    color: var(--amber-300);
    font-weight: 900;
}

.poster-duration {
    right: 12px;
    bottom: 12px;
    padding: 5px 8px;
    font-size: 12px;
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--slate-500);
    font-size: 12px;
}

.movie-meta-line a {
    color: var(--orange-600);
    font-weight: 700;
}

.movie-card h3 {
    margin: 0 0 10px;
    color: var(--slate-900);
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--orange-600);
}

.movie-card p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--slate-600);
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--slate-600);
    background: var(--slate-100);
    font-size: 12px;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.65fr);
    gap: 28px;
}

.split-side,
.side-box,
.detail-card,
.player-card {
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.split-side,
.side-box {
    padding: 26px;
}

.side-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 54px 84px minmax(0, 1fr) 56px;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease;
}

.rank-row:hover {
    transform: translateX(4px);
}

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

.rank-no {
    color: var(--orange-500);
    font-size: 20px;
    font-weight: 900;
    text-align: center;
}

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

.rank-main strong {
    margin-bottom: 4px;
    color: var(--slate-900);
}

.rank-main em {
    overflow: hidden;
    color: var(--slate-500);
    font-size: 13px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-score {
    color: var(--orange-600);
    font-size: 18px;
    font-weight: 900;
    text-align: right;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.72)), var(--page-image, none);
    background-position: center;
    background-size: cover;
}

.page-hero .container {
    padding: 82px 0;
}

.page-hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.76);
    font-size: 18px;
}

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

.category-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.category-card a {
    position: relative;
    display: block;
    overflow: hidden;
}

.category-card img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    filter: brightness(0.76);
    transition: transform 0.3s ease;
}

.category-card:hover img {
    transform: scale(1.06);
}

.category-card span {
    position: absolute;
    right: 16px;
    bottom: 14px;
    left: 16px;
    color: var(--white);
    font-size: 22px;
    font-weight: 900;
}

.category-card p {
    margin: 0;
    padding: 16px;
    color: var(--slate-600);
    font-size: 14px;
    line-height: 1.65;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.sort-box {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--slate-600);
    font-weight: 700;
}

.sort-box select {
    min-height: 44px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0 16px;
    background: var(--white);
    color: var(--slate-800);
    outline: 0;
}

.detail-hero {
    background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.35)), var(--detail-image);
}

.detail-hero-inner {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: center;
    gap: 42px;
    padding: 58px 0;
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.44);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

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

.detail-headline h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 70px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-headline p {
    max-width: 780px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 20px;
    line-height: 1.8;
}

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

.detail-main {
    display: grid;
    gap: 24px;
}

.player-card,
.detail-card {
    padding: 20px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #000000;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    border: 0;
    place-items: center;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.08), rgba(2, 6, 23, 0.48));
    cursor: pointer;
}

.play-overlay.hidden {
    display: none;
}

.play-overlay span {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    box-shadow: 0 18px 42px rgba(249, 115, 22, 0.38);
    font-size: 34px;
    transform: translateX(3px);
}

.detail-card h2,
.side-box h2 {
    margin: 0 0 16px;
    color: var(--slate-900);
    font-size: 24px;
}

.detail-card p {
    margin: 0 0 14px;
    color: var(--slate-600);
    line-height: 1.9;
}

.lead-text {
    color: var(--slate-800) !important;
    font-weight: 700;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 18px;
}

.info-list div {
    padding: 14px;
    border-radius: 16px;
    background: var(--slate-50);
}

.info-list dt {
    margin-bottom: 4px;
    color: var(--slate-500);
    font-size: 13px;
}

.info-list dd {
    margin: 0;
    color: var(--slate-900);
    font-weight: 800;
}

.detail-side {
    align-self: start;
    position: sticky;
    top: 90px;
}

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

.small-card {
    display: grid;
    grid-template-columns: 106px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 16px;
    transition: background 0.2s ease;
}

.small-card:hover {
    background: var(--slate-50);
}

.small-card img {
    width: 106px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
}

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

.small-card strong {
    margin-bottom: 6px;
    overflow: hidden;
    color: var(--slate-900);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.small-card em {
    color: var(--slate-500);
    font-size: 13px;
    font-style: normal;
}

.site-footer {
    color: rgba(255, 255, 255, 0.76);
    background: var(--slate-950);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 30px;
    padding: 48px 0;
}

.footer-logo,
.site-footer h3 {
    margin-bottom: 14px;
    color: var(--white);
    font-size: 18px;
    font-weight: 900;
}

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.site-footer a:hover {
    color: var(--orange-400);
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 8px;
}

.footer-bottom {
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.no-results {
    grid-column: 1 / -1;
    padding: 42px;
    border-radius: var(--radius-xl);
    color: var(--slate-500);
    background: var(--white);
    text-align: center;
}

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

    .menu-toggle {
        display: block;
    }

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

    .hero-content {
        gap: 28px;
        padding: 86px 0 70px;
    }

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

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

    .search-panel,
    .toolbar,
    .section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .site-search {
        min-width: 100%;
    }

    .detail-side {
        position: static;
    }
}

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

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

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

    .hero-copy h1,
    .detail-headline h1,
    .page-hero h1 {
        font-size: 38px;
    }

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

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

    .rank-score {
        display: none;
    }

    .rank-row img {
        width: 72px;
        height: 54px;
    }

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

    .player-card,
    .detail-card,
    .side-box,
    .split-side {
        padding: 16px;
    }
}
