:root {
    --sky-50: #eff6ff;
    --sky-100: #dbeafe;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --blue-700: #1d4ed8;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --white: #ffffff;
    --orange: #f97316;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #111827;
    background: var(--slate-50);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "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;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.88);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    width: min(1200px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--sky-500), var(--blue-700));
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.32);
    font-size: 14px;
}

.brand-name {
    font-size: 21px;
}

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

.nav-link {
    position: relative;
    color: var(--slate-700);
    font-size: 15px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--sky-600);
}

.nav-link.active::after,
.nav-link:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 3px;
    border-radius: 99px;
    background: var(--sky-500);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: var(--slate-700);
    background: var(--slate-100);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 8px 0 18px;
    border-top: 1px solid #e2e8f0;
}

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

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

.hero::before {
    content: "";
    position: absolute;
    inset: auto -15% -28% auto;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.34);
    filter: blur(30px);
    pointer-events: none;
}

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

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

.hero-backdrop,
.detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-backdrop::after,
.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.92));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    min-height: 650px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) 380px;
    align-items: center;
    gap: 64px;
    padding: 96px 0 116px;
}

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

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #075985;
    background: rgba(224, 242, 254, 0.92);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero p,
.detail-one-line {
    margin: 22px 0 0;
    color: #dbeafe;
    font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags,
.detail-tags {
    margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.genre-row span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 13px;
    font-weight: 700;
}

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

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

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

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--sky-500), var(--blue-700));
    box-shadow: 0 16px 32px rgba(14, 165, 233, 0.32);
}

.btn-ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.hero-poster span {
    position: absolute;
    left: 22px;
    bottom: 22px;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(14, 165, 233, 0.86);
    font-weight: 800;
}

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

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

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

.hero-search {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 72px;
    width: min(760px, calc(100% - 32px));
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(18px);
}

.hero-search input,
.hero-search button,
.filter-bar input,
.filter-bar select {
    border: 0;
    outline: 0;
}

.hero-search input {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    color: var(--slate-900);
    background: var(--white);
}

.hero-search button {
    border-radius: 12px;
    color: var(--white);
    background: var(--sky-600);
    font-weight: 800;
    cursor: pointer;
}

.section {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.section-light,
.section-soft {
    width: 100%;
    padding-left: max(16px, calc((100% - 1200px) / 2));
    padding-right: max(16px, calc((100% - 1200px) / 2));
}

.section-light {
    background: var(--white);
}

.section-soft {
    background: linear-gradient(180deg, #f8fafc, #eef6ff);
}

.section-head {
    margin-bottom: 32px;
}

.section-head.center {
    text-align: center;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

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

.section-head h2,
.category-panel h2,
.ranking-top h2,
.content-card h2 {
    margin: 0;
    color: var(--slate-900);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.14;
    letter-spacing: -0.04em;
}

.section-head p,
.category-panel p,
.page-hero p,
.content-card p {
    margin: 10px 0 0;
    color: var(--slate-600);
    font-size: 17px;
}

.section-link {
    color: var(--sky-600);
    font-weight: 800;
}

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

.category-tile,
.category-panel,
.movie-card,
.content-card,
.ranking-top,
.filter-bar {
    background: var(--white);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-soft);
}

.category-tile {
    display: flex;
    min-height: 190px;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    border-radius: 24px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-panel:hover {
    transform: translateY(-6px);
    border-color: rgba(14, 165, 233, 0.36);
    box-shadow: var(--shadow);
}

.category-icon {
    font-size: 44px;
}

.category-tile strong {
    color: var(--slate-900);
    font-size: 20px;
}

.category-tile span:last-child {
    color: var(--slate-600);
    font-size: 14px;
}

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

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

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

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

.movie-thumb img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.movie-year,
.rank-badge {
    position: absolute;
    top: 12px;
    border-radius: 999px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
}

.movie-year {
    right: 12px;
    padding: 5px 10px;
    background: rgba(249, 115, 22, 0.9);
}

.rank-badge {
    left: 12px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 132, 199, 0.92);
}

.movie-info {
    padding: 17px;
}

.movie-title {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: var(--slate-900);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.movie-title:hover {
    color: var(--sky-600);
}

.movie-meta {
    margin: 8px 0 0;
    color: var(--slate-600);
    font-size: 13px;
}

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

.movie-tags {
    margin-top: 12px;
}

.movie-tags span {
    padding: 4px 8px;
    border-radius: 999px;
    color: #0369a1;
    background: var(--sky-100);
    font-size: 12px;
    font-weight: 700;
}

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

.movie-card-small {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    min-height: 168px;
}

.movie-card-small .movie-thumb img {
    height: 100%;
    min-height: 168px;
}

.movie-card-small .movie-title {
    min-height: 0;
}

.page-hero {
    position: relative;
    padding: 86px max(16px, calc((100% - 1200px) / 2));
    color: var(--white);
    background: linear-gradient(135deg, var(--sky-600), var(--blue-700));
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -140px;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.page-hero .section-kicker {
    position: relative;
    z-index: 1;
}

.page-hero h1,
.page-hero p {
    position: relative;
    z-index: 1;
    max-width: 760px;
    color: var(--white);
}

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

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

.category-panel {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 20px;
    padding: 26px;
    border-radius: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-panel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 24px;
    background: var(--sky-100);
    font-size: 36px;
}

.category-panel h2 {
    font-size: 25px;
}

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

.category-samples a {
    padding: 6px 10px;
    border-radius: 999px;
    color: #0369a1;
    background: var(--sky-100);
    font-size: 13px;
    font-weight: 700;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 14px;
    border-radius: 20px;
}

.filter-input-wrap {
    position: relative;
}

.filter-input-wrap span {
    position: absolute;
    top: 50%;
    left: 14px;
    color: var(--slate-600);
    transform: translateY(-50%);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    background: var(--slate-50);
    border: 1px solid #e2e8f0;
}

.filter-bar input {
    padding: 0 14px 0 42px;
}

.filter-bar select {
    padding: 0 12px;
    color: var(--slate-700);
}

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

.ranking-top {
    position: sticky;
    top: 96px;
    padding: 22px;
    border-radius: 24px;
}

.ranking-top h2 {
    margin-bottom: 18px;
    font-size: 26px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 28px 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.ranking-row:last-child {
    border-bottom: 0;
}

.ranking-row span {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--sky-600);
    font-weight: 800;
    font-size: 13px;
}

.ranking-row img {
    width: 56px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
}

.ranking-row strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--slate-900);
}

.ranking-row em {
    color: var(--slate-600);
    font-style: normal;
    font-size: 13px;
}

.detail-hero {
    position: relative;
    min-height: 620px;
    color: var(--white);
    background: var(--slate-950);
    overflow: hidden;
}

.detail-inner {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    padding: 72px 0;
}

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

.detail-poster img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: #bae6fd;
    font-weight: 700;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.detail-meta li {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.detail-meta strong,
.detail-meta span {
    display: block;
}

.detail-meta strong {
    color: #bae6fd;
    font-size: 12px;
}

.detail-meta span {
    margin-top: 3px;
    color: var(--white);
    font-weight: 800;
}

.detail-copy .btn {
    margin-top: 30px;
}

.detail-section {
    padding-bottom: 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
    cursor: pointer;
}

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

.player-button {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: radial-gradient(circle, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.68));
    cursor: pointer;
    z-index: 3;
}

.player-button span {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--sky-500), var(--blue-700));
    box-shadow: 0 22px 44px rgba(14, 165, 233, 0.36);
    font-size: 32px;
    padding-left: 4px;
    transition: transform 0.2s ease;
}

.player-button:hover span {
    transform: scale(1.08);
}

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

.article-section {
    padding-top: 44px;
}

.content-card {
    padding: clamp(24px, 4vw, 42px);
    border-radius: 28px;
}

.content-card h2 + p {
    margin-top: 12px;
}

.content-card h2:not(:first-child) {
    margin-top: 30px;
}

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

.genre-row {
    margin-top: 28px;
}

.genre-row span {
    color: #0369a1;
    background: var(--sky-100);
    border: 0;
}

[hidden] {
    display: none !important;
}

.site-footer {
    color: #cbd5e1;
    background: var(--slate-900);
}

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 44px;
    padding: 56px 0 36px;
}

.footer-logo {
    color: var(--white);
    margin-bottom: 16px;
    font-size: 22px;
}

.site-footer p {
    max-width: 460px;
    margin: 0;
    color: #94a3b8;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: var(--white);
    font-size: 18px;
}

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

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

.site-footer a {
    color: #cbd5e1;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #7dd3fc;
}

.footer-bottom {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #94a3b8;
    text-align: center;
    font-size: 14px;
}

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

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

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

    .hero-content {
        grid-template-columns: 1fr 300px;
        gap: 36px;
    }

    .hero-poster img {
        height: 440px;
    }
}

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

    .menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu.open {
        display: block;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 72px;
        padding-bottom: 170px;
    }

    .hero-poster {
        display: none;
    }

    .hero-search {
        grid-template-columns: 1fr;
        bottom: 72px;
    }

    .section-head.between {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-grid,
    .category-panel-grid,
    .movie-grid,
    .compact-grid,
    .hot-list,
    .ranking-layout,
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .ranking-top {
        position: static;
    }

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

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

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

@media (max-width: 620px) {
    .nav-wrap {
        width: min(100% - 24px, 1200px);
    }

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

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

    .category-grid,
    .category-panel-grid,
    .movie-grid,
    .compact-grid,
    .hot-list,
    .ranking-layout,
    .filter-bar,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .movie-card-small {
        grid-template-columns: 118px minmax(0, 1fr);
    }

    .movie-thumb img {
        height: 250px;
    }

    .movie-card-small .movie-thumb img {
        min-height: 150px;
    }

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

    .detail-poster img {
        height: 420px;
    }

    .player-button span {
        width: 70px;
        height: 70px;
        font-size: 26px;
    }

    .ranking-row {
        grid-template-columns: 28px 48px minmax(0, 1fr);
    }

    .ranking-row em {
        display: none;
    }
}
