:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-850: #142033;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --orange-600: #ea580c;
    --orange-500: #f97316;
    --orange-400: #fb923c;
    --amber-300: #fcd34d;
    --text: #172033;
    --muted: #64748b;
    --card: #ffffff;
    --line: rgba(15, 23, 42, 0.1);
    --shadow: 0 22px 60px rgba(15, 23, 42, 0.14);
    --shadow-soft: 0 12px 32px rgba(15, 23, 42, 0.1);
    --radius: 24px;
}

* {
    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(--text);
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 48%, #fff7ed 100%);
    line-height: 1.65;
}

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;
    background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
    color: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.logo-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    box-shadow: 0 16px 32px rgba(249, 115, 22, 0.35);
}

.logo-title {
    display: block;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.logo-subtitle {
    display: block;
    margin-top: 1px;
    color: #cbd5e1;
    font-size: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 10px 18px;
    border-radius: 14px;
    color: #e2e8f0;
    font-weight: 700;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    background: var(--orange-500);
    color: #fff;
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 24px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 0 0 18px;
}

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

.mobile-nav .nav-link {
    display: block;
    margin-top: 8px;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.28), transparent 35%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.hero-track {
    position: relative;
    min-height: 680px;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.93) 0%, rgba(15, 23, 42, 0.78) 42%, rgba(15, 23, 42, 0.38) 100%), var(--hero-image);
    background-position: center;
    background-size: cover;
    transform: scale(1.03);
    filter: saturate(1.05);
}

.hero-content {
    position: relative;
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
    gap: 52px;
    align-items: center;
    padding: 76px 0;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.16);
    color: #fed7aa;
    border: 1px solid rgba(251, 146, 60, 0.28);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero h1,
.page-hero h1,
.detail-title {
    margin: 20px 0 16px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.hero-desc {
    max-width: 680px;
    color: #e2e8f0;
    font-size: clamp(17px, 2vw, 22px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 14px;
    border: 0;
    cursor: pointer;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
    color: #fff;
    box-shadow: 0 18px 34px rgba(234, 88, 12, 0.32);
}

.btn-primary:hover {
    box-shadow: 0 22px 44px rgba(234, 88, 12, 0.42);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.hero-search {
    display: flex;
    max-width: 620px;
    margin-top: 30px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    padding: 0 14px;
    font-size: 16px;
}

.hero-search input::placeholder {
    color: #cbd5e1;
}

.hero-search .btn {
    min-height: 42px;
}

.hero-poster {
    position: relative;
    display: grid;
    gap: 18px;
}

.poster-shell {
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 0 34px 80px rgba(2, 6, 23, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transform: rotate(1.5deg);
}

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

.hero-mini-card {
    position: absolute;
    left: -28px;
    bottom: 34px;
    width: min(260px, 80%);
    padding: 18px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 50px rgba(2, 6, 23, 0.32);
}

.hero-mini-card strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-size: 18px;
}

.hero-mini-card span {
    color: #cbd5e1;
    font-size: 14px;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 30px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(-50%);
}

.hero-dot,
.hero-arrow {
    border: 0;
    cursor: pointer;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 999px;
}

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

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 24px;
}

.hero-arrow:hover,
.hero-dot:hover {
    background: var(--orange-500);
    transform: translateY(-1px);
}

.main-section {
    padding: 70px 0;
}

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

.section-kicker {
    color: var(--orange-600);
    font-weight: 950;
    letter-spacing: 0.08em;
}

.section-head h2,
.block-title {
    margin: 6px 0 0;
    color: var(--slate-900);
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.04em;
    font-weight: 950;
}

.section-head p,
.page-hero p {
    margin: 10px 0 0;
    max-width: 680px;
    color: var(--muted);
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: var(--card);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(249, 115, 22, 0.32);
}

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

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

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

.movie-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, 0.76);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 900;
}

.movie-score {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--slate-900);
    background: linear-gradient(135deg, #fde68a, #fb923c);
    font-size: 12px;
    font-weight: 950;
}

.movie-info {
    padding: 16px;
}

.movie-title {
    margin: 0 0 8px;
    min-height: 52px;
    color: var(--slate-900);
    font-size: 18px;
    line-height: 1.42;
    font-weight: 950;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
}

.movie-line {
    margin: 0;
    color: #475569;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag {
    padding: 4px 9px;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 12px;
    font-weight: 800;
}

.filter-card {
    margin-bottom: 28px;
    padding: 22px;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.filter-row {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(150px, 1fr));
    gap: 14px;
}

.filter-row input,
.filter-row select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    background: #fff;
    color: var(--text);
    padding: 0 14px;
    outline: none;
    font-size: 15px;
}

.filter-row input:focus,
.filter-row select:focus {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.empty-state {
    display: none;
    padding: 34px;
    text-align: center;
    color: var(--muted);
    border-radius: 22px;
    background: #fff;
    border: 1px dashed rgba(15, 23, 42, 0.18);
}

.empty-state.is-visible {
    display: block;
}

.page-hero {
    padding: 58px 0;
    color: #fff;
    background: radial-gradient(circle at 78% 12%, rgba(249, 115, 22, 0.32), transparent 32%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.page-hero h1 {
    margin-top: 0;
}

.page-hero p {
    color: #cbd5e1;
}

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

.category-card,
.info-card,
.related-card {
    display: block;
    padding: 24px;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-card:hover,
.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: rgba(249, 115, 22, 0.35);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    color: var(--slate-900);
    font-size: 23px;
    font-weight: 950;
}

.category-card p {
    margin: 0;
    color: var(--muted);
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.category-samples span {
    padding: 5px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 76px 96px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.rank-number {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--slate-800), var(--slate-950));
    font-size: 24px;
    font-weight: 950;
}

.rank-card:nth-child(-n + 3) .rank-number {
    background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
}

.rank-thumb img {
    width: 96px;
    height: 128px;
    border-radius: 16px;
    object-fit: cover;
}

.rank-main h2,
.rank-main h3 {
    margin: 0 0 8px;
    color: var(--slate-900);
    font-size: 21px;
    font-weight: 950;
}

.rank-main p {
    margin: 0;
    color: var(--muted);
}

.rank-score {
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-weight: 950;
}

.breadcrumb {
    padding: 18px 0;
    color: #64748b;
    font-size: 14px;
}

.breadcrumb a {
    color: #c2410c;
    font-weight: 800;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    gap: 32px;
    align-items: start;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    background: var(--slate-900);
    box-shadow: var(--shadow);
}

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

.detail-panel {
    padding: 28px;
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.detail-title {
    margin-top: 0;
    color: var(--slate-900);
    font-size: clamp(32px, 4vw, 54px);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-weight: 800;
}

.detail-lead {
    color: #334155;
    font-size: 18px;
}

.content-block {
    margin-top: 24px;
}

.content-block h2 {
    margin: 0 0 12px;
    color: var(--slate-900);
    font-size: 24px;
    font-weight: 950;
}

.content-block p {
    margin: 0;
    color: #475569;
}

.player-wrap {
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    box-shadow: 0 32px 80px rgba(2, 6, 23, 0.3);
}

.player-stage {
    position: relative;
    background: #000;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.72), rgba(15, 23, 42, 0.24));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
    box-shadow: 0 18px 46px rgba(234, 88, 12, 0.44);
    font-size: 38px;
    padding-left: 6px;
}

.player-caption {
    padding: 20px 24px;
    color: #e2e8f0;
    background: linear-gradient(90deg, var(--slate-900), var(--slate-800));
}

.player-caption h2 {
    margin: 0 0 6px;
    color: #fff;
}

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

.related-card {
    padding: 14px;
}

.related-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 12px;
}

.related-card h3 {
    margin: 0 0 6px;
    color: var(--slate-900);
    font-size: 17px;
    font-weight: 950;
}

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

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

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 32px;
    padding: 44px 0;
}

.footer-title {
    margin: 0 0 12px;
    color: #fff;
    font-size: 22px;
    font-weight: 950;
}

.footer-col h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 16px;
}

.footer-col a {
    display: block;
    margin: 8px 0;
    color: #cbd5e1;
}

.footer-col a:hover {
    color: #fb923c;
}

.footer-bottom {
    padding: 18px 0;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

@media (max-width: 1024px) {
    .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

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

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

    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero,
    .hero-track,
    .hero-content {
        min-height: 760px;
    }

    .hero-content {
        gap: 28px;
        padding: 48px 0 92px;
    }

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

    .poster-shell {
        transform: none;
    }

    .hero-mini-card {
        left: 16px;
        right: 16px;
        width: auto;
    }

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

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

    .rank-card {
        grid-template-columns: 54px 74px minmax(0, 1fr);
    }

    .rank-score {
        grid-column: 3;
        width: max-content;
    }

    .rank-number {
        width: 48px;
        height: 48px;
        border-radius: 15px;
        font-size: 20px;
    }

    .rank-thumb img {
        width: 74px;
        height: 96px;
    }

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

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

    .logo-subtitle {
        display: none;
    }

    .logo-title {
        font-size: 18px;
    }

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

    .movie-title {
        min-height: auto;
    }
}
