:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-850: #142033;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --teal-900: #134e4a;
    --text-dark: #0f172a;
    --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.16);
    --shadow-strong: 0 32px 70px rgba(2, 6, 23, 0.36);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--stone-50);
    color: var(--text-dark);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: #fff;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
    border-bottom: 1px solid rgba(217, 119, 6, 0.28);
    box-shadow: 0 12px 35px rgba(2, 6, 23, 0.28);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    box-shadow: 0 12px 26px rgba(217, 119, 6, 0.35);
}

.brand-text {
    display: grid;
    gap: 1px;
}

.brand-text strong {
    font-size: 22px;
    letter-spacing: 0.03em;
}

.brand-text small {
    color: var(--stone-300);
    font-size: 12px;
}

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

.desktop-nav a {
    position: relative;
    color: var(--stone-200);
    transition: color 0.24s ease;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--amber-500);
    transition: width 0.24s ease;
}

.desktop-nav a:hover {
    color: var(--amber-500);
}

.desktop-nav a:hover::after {
    width: 100%;
}

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

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
    border-radius: 999px;
}

.mobile-menu {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--stone-200);
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--amber-500);
}

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

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

.hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.97), rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.25));
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    z-index: 1;
    height: 180px;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0), rgba(2, 6, 23, 0.88));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    align-content: center;
    min-height: 620px;
    padding: 110px 0 80px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    margin-bottom: 18px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 999px;
    color: #fff;
    background: rgba(217, 119, 6, 0.86);
    box-shadow: 0 16px 34px rgba(217, 119, 6, 0.24);
}

.hero h1,
.hero h2 {
    margin: 0 0 18px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 670px;
    margin: 0 0 28px;
    color: var(--stone-200);
    font-size: clamp(17px, 2vw, 22px);
}

.hero-actions,
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 13px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    box-shadow: 0 16px 34px rgba(217, 119, 6, 0.32);
}

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

.btn-ghost {
    color: #fff;
    background: rgba(15, 23, 42, 0.42);
    border-color: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
}

.hero-panel {
    position: absolute;
    right: max(32px, calc((100vw - 1180px) / 2));
    bottom: 46px;
    z-index: 5;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100% - 64px));
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(15, 23, 42, 0.62);
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(18px);
}

.hero-panel h3 {
    margin: 0;
    color: #fff;
}

.hero-mini-list {
    display: grid;
    gap: 10px;
}

.hero-mini-list a {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.24s ease, transform 0.24s ease;
}

.hero-mini-list a:hover {
    transform: translateX(4px);
    background: rgba(245, 158, 11, 0.18);
}

.hero-mini-list img {
    width: 52px;
    height: 66px;
    border-radius: 10px;
    object-fit: cover;
}

.hero-mini-list strong {
    display: block;
    color: #fff;
    font-size: 14px;
}

.hero-mini-list small {
    color: var(--stone-300);
}

.hero-arrow,
.hero-dot {
    position: absolute;
    z-index: 8;
    border: 0;
    color: #fff;
    cursor: pointer;
}

.hero-arrow {
    top: 50%;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.42);
    backdrop-filter: blur(12px);
    transform: translateY(-50%);
}

.hero-arrow:hover {
    background: rgba(217, 119, 6, 0.82);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    position: static;
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    transition: width 0.24s ease, background 0.24s ease;
}

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

.section {
    padding: 72px 0;
}

.section-dark {
    color: #fff;
    background: linear-gradient(180deg, var(--slate-900), var(--slate-800));
}

.section-teal {
    color: #fff;
    background: linear-gradient(120deg, var(--teal-900), var(--slate-900), var(--slate-800));
}

.section-amber {
    background: linear-gradient(180deg, #fff7ed, #fef3c7);
}

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

.section-head.center {
    display: block;
    text-align: center;
}

.section-head h2,
.page-title h1,
.content-block h2,
.detail-copy h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.16;
    letter-spacing: -0.03em;
}

.section-head p,
.page-title p {
    margin: 0;
    color: var(--slate-600);
}

.section-dark .section-head p,
.section-teal .section-head p {
    color: var(--stone-300);
}

.scroller {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 6px 0 20px;
    scroll-snap-type: x mandatory;
}

.scroller .movie-card {
    min-width: 290px;
    scroll-snap-align: start;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.22);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--slate-900), var(--slate-700));
}

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

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

.score-badge,
.type-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(2, 6, 23, 0.68);
    box-shadow: 0 12px 26px rgba(2, 6, 23, 0.22);
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 800;
}

.card-body {
    padding: 18px;
}

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

.meta-row span {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--stone-100);
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.3;
}

.movie-card h3 a:hover {
    color: var(--amber-700);
}

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

.section-dark .movie-card,
.section-teal .movie-card {
    color: #fff;
    background: rgba(30, 41, 59, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.section-dark .movie-card p,
.section-teal .movie-card p,
.section-dark .meta-row,
.section-teal .meta-row {
    color: var(--stone-300);
}

.section-dark .meta-row span,
.section-teal .meta-row span {
    background: rgba(255, 255, 255, 0.08);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list span {
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--amber-700);
    background: #fff7ed;
    font-size: 12px;
    font-weight: 700;
}

.section-dark .tag-list span,
.section-teal .tag-list span {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.14);
}

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

.category-card {
    display: grid;
    gap: 14px;
    min-height: 160px;
    padding: 22px;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--slate-800), var(--teal-900));
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, var(--slate-900), var(--amber-700));
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.category-card strong {
    font-size: 22px;
}

.category-card span {
    color: var(--stone-200);
    font-size: 14px;
}

.rank-panel {
    display: grid;
    gap: 10px;
}

.rank-item {
    display: grid;
    grid-template-columns: 58px 1fr auto auto;
    gap: 16px;
    align-items: center;
    min-height: 58px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.24s ease, transform 0.24s ease;
}

.rank-item:hover {
    transform: translateX(6px);
    background: rgba(245, 158, 11, 0.18);
}

.rank-num {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    font-weight: 900;
}

.rank-name {
    font-weight: 800;
}

.rank-meta {
    color: var(--stone-300);
    font-size: 13px;
}

.rank-score {
    color: #fde68a;
    font-weight: 900;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(3, 160px);
    gap: 12px;
    padding: 18px;
    margin: 24px 0 30px;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.search-panel input,
.search-panel select {
    min-height: 46px;
    width: 100%;
    border: 1px solid var(--stone-200);
    border-radius: 13px;
    padding: 0 14px;
    color: var(--slate-900);
    background: var(--stone-50);
    outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.page-hero {
    padding: 78px 0 46px;
    color: #fff;
    background: radial-gradient(circle at 18% 0%, rgba(245, 158, 11, 0.28), transparent 36%), linear-gradient(120deg, var(--slate-900), var(--slate-800), var(--teal-900));
}

.page-title {
    max-width: 760px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: var(--stone-300);
    font-size: 14px;
}

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

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0;
    color: #fff;
    background: var(--slate-900);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.24;
    filter: blur(3px) saturate(1.1);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.42));
}

.detail-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 34px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow-strong);
    background: linear-gradient(135deg, var(--slate-900), var(--slate-700));
}

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

.detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
}

.detail-copy p {
    max-width: 760px;
    color: var(--stone-200);
    font-size: 18px;
}

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

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    box-shadow: var(--shadow-strong);
}

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

.watch-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: radial-gradient(circle at center, rgba(2, 6, 23, 0.26), rgba(2, 6, 23, 0.66));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.watch-layer.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.watch-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 999px;
    padding: 16px 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    box-shadow: 0 22px 50px rgba(217, 119, 6, 0.44);
    cursor: pointer;
    font-weight: 900;
}

.watch-card,
.content-block {
    border-radius: 24px;
    padding: 24px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.watch-card h2,
.content-block h2 {
    margin-top: 0;
}

.info-list {
    display: grid;
    gap: 13px;
    margin-top: 18px;
}

.info-list div {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--stone-200);
}

.info-list span:first-child {
    color: var(--slate-600);
}

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

.content-block p {
    color: var(--slate-700);
    font-size: 17px;
}

.empty-state {
    display: none;
    padding: 36px;
    margin-top: 24px;
    border-radius: 22px;
    text-align: center;
    color: var(--slate-600);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

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

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

.site-footer {
    color: var(--stone-300);
    background: linear-gradient(90deg, var(--slate-950), var(--slate-900), var(--slate-950));
    border-top: 1px solid rgba(217, 119, 6, 0.25);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 34px;
    padding: 52px 0;
}

.footer-brand {
    margin-bottom: 16px;
    color: #fff;
}

.site-footer p {
    max-width: 540px;
    color: var(--stone-400);
}

.site-footer h3 {
    margin: 0 0 16px;
    color: #fff;
}

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

.site-footer a:hover {
    color: var(--amber-500);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--stone-400);
    font-size: 13px;
}

@media (max-width: 1024px) {
    .desktop-nav {
        gap: 15px;
        font-size: 13px;
    }

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

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

    .watch-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        display: none;
    }
}

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

    .nav-toggle {
        display: block;
    }

    .mobile-menu.is-open {
        display: grid;
        gap: 4px;
    }

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

    .hero-arrow {
        display: none;
    }

    .section-head {
        display: grid;
        align-items: start;
    }

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

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

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

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

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

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

    .footer-bottom {
        display: grid;
    }
}

@media (max-width: 560px) {
    .brand-text strong {
        font-size: 18px;
    }

    .brand-text small {
        font-size: 11px;
    }

    .hero {
        min-height: 540px;
    }

    .hero-content {
        min-height: 540px;
        padding-top: 92px;
    }

    .hero h1,
    .hero h2 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

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

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

    .rank-meta {
        display: none;
    }

    .section {
        padding: 54px 0;
    }
}
