:root {
    --bg: #f8fafc;
    --bg-soft: #f1f5f9;
    --surface: #ffffff;
    --surface-strong: #0f172a;
    --text: #0f172a;
    --muted: #64748b;
    --muted-light: #cbd5e1;
    --line: #e2e8f0;
    --teal: #14b8a6;
    --teal-dark: #0f766e;
    --cyan: #06b6d4;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #f8fafc 0%, #eef8fb 55%, #f8fafc 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.site-header-inner {
    width: min(var(--container), calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(20, 184, 166, 0.32);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 14px;
    color: #dbeafe;
    border-radius: 999px;
    font-weight: 600;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(20, 184, 166, 0.2);
    transform: translateY(-1px);
}

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

.hero-slider {
    position: relative;
    background: #020617;
}

.hero-stage {
    position: relative;
    height: 620px;
    overflow: hidden;
}

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

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

.hero-link,
.hero-link img,
.hero-shadow {
    position: absolute;
    inset: 0;
}

.hero-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    transition: transform 5s ease;
}

.hero-slide.is-active .hero-link img {
    transform: scale(1.08);
}

.hero-shadow {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.68) 42%, rgba(2, 6, 23, 0.15) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.1) 46%, rgba(2, 6, 23, 0.7) 100%);
}

.hero-copy {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #ffffff;
    padding-top: 30px;
}

.hero-eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0 0 14px;
    color: var(--teal);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
    max-width: 780px;
    margin: 0 0 14px;
    font-size: clamp(42px, 8vw, 80px);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.hero-feature-title {
    margin: 0 0 12px;
    color: #ccfbf1;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 24px;
    color: #e2e8f0;
    font-size: 19px;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    color: #0f766e;
    background: #ccfbf1;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(20, 184, 166, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.hero-action {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    margin-top: 26px;
    padding: 0 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 20px 38px rgba(20, 184, 166, 0.32);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 52px;
    height: 52px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 38px;
    line-height: 1;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-50%) scale(1.04);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

.hero-dot.active {
    width: 34px;
    background: #ffffff;
}

.hero-quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: -42px;
    position: relative;
    z-index: 5;
}

.hero-quick-links a,
.search-panel,
.content-section,
.detail-card,
.side-box,
.side-cta,
.category-overview-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-quick-links a {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f766e;
    font-size: 18px;
    font-weight: 800;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-quick-links a:hover {
    border-color: var(--teal);
    transform: translateY(-4px);
}

.main-stack,
.listing-section,
.ranking-page {
    padding: 56px 0 78px;
}

.main-stack {
    display: grid;
    gap: 42px;
}

.search-panel {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 16px;
    padding: 18px;
}

.search-label {
    color: var(--teal-dark);
    font-weight: 800;
}

.movie-search {
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    color: var(--text);
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-search:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

.content-section {
    padding: 28px;
}

.highlight-section {
    background: linear-gradient(135deg, #ffffff 0%, #ecfeff 100%);
}

.channel-section {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 48%, #ecfeff 100%);
}

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

.section-title-row h2,
.side-box h2,
.side-cta h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.compact-row {
    align-items: center;
    margin-bottom: 18px;
}

.section-more,
.text-link,
.compact-row a,
.side-cta a {
    color: var(--teal-dark);
    font-weight: 800;
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

.movie-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    border-color: rgba(20, 184, 166, 0.45);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
    transform: translateY(-6px);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #0f766e);
}

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

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

.poster-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.74) 0%, rgba(2, 6, 23, 0.02) 60%);
}

.movie-year {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 4px 10px;
    color: #ffffff;
    background: rgba(20, 184, 166, 0.84);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

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

.movie-meta {
    margin: 0 0 6px;
    color: var(--teal-dark);
    font-size: 13px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.movie-card h3 a:hover {
    color: var(--teal-dark);
}

.movie-desc {
    min-height: 46px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
}

.movie-card.compact .movie-desc {
    min-height: 0;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 26px;
    align-items: stretch;
}

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

.category-tile {
    display: grid;
    gap: 8px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc, #ecfeff);
    border: 1px solid var(--line);
    border-radius: 18px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
    border-color: var(--teal);
    transform: translateY(-3px);
}

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

.category-tile span {
    color: var(--muted);
    font-size: 14px;
}

.ranking-box {
    padding: 24px;
    color: var(--text);
    background: linear-gradient(160deg, #ffffff 0%, #ecfeff 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 42px 82px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
    border-color: var(--teal);
    transform: translateX(4px);
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    border-radius: 12px;
    font-weight: 900;
}

.rank-item img {
    width: 82px;
    height: 52px;
    object-fit: cover;
    border-radius: 12px;
    background: #0f172a;
}

.rank-content {
    min-width: 0;
}

.rank-content strong,
.rank-content em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-content strong {
    color: var(--text);
    font-size: 15px;
}

.rank-content em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

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

.sub-page {
    min-height: 70vh;
}

.page-hero {
    padding: 78px 0 64px;
    color: #ffffff;
    background:
        radial-gradient(circle at 20% 0%, rgba(20, 184, 166, 0.36), transparent 34%),
        linear-gradient(135deg, #020617 0%, #0f172a 56%, #134e4a 100%);
}

.small-hero {
    padding: 68px 0 52px;
}

.page-hero h1 {
    max-width: 780px;
    margin: 0 0 16px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: #dbeafe;
    font-size: 18px;
}

.page-hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.page-hero-links a {
    padding: 8px 13px;
    color: #ccfbf1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

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

.category-overview-card {
    overflow: hidden;
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 12px;
    background: #0f172a;
}

.category-covers img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
}

.category-overview-body {
    padding: 22px;
}

.category-overview-body p {
    margin: 0 0 10px;
    color: var(--muted);
}

.category-overview-body h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.detail-page {
    background: #f8fafc;
}

.player-section {
    padding: 28px 0 46px;
    background: #020617;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    color: #cbd5e1;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #2dd4bf;
}

.video-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: 20px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #ffffff;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.28), rgba(0, 0, 0, 0.36));
    border: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    border-radius: 50%;
    box-shadow: 0 18px 38px rgba(20, 184, 166, 0.38);
    font-size: 34px;
}

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

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

.detail-main,
.detail-side {
    display: grid;
    align-content: start;
    gap: 24px;
}

.detail-card,
.side-box,
.side-cta {
    padding: 24px;
}

.detail-heading {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 26px;
}

.detail-heading > img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
    background: #0f172a;
}

.detail-heading h1 {
    margin: 0 0 14px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.detail-one-line {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 18px;
}

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

.detail-meta span {
    padding: 7px 11px;
    color: #0f766e;
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    border-radius: 12px;
    font-weight: 700;
}

.prose-card h2,
.related-block h2 {
    margin: 0 0 16px;
    font-size: 26px;
    font-weight: 900;
}

.prose-card p {
    margin: 0 0 18px;
    color: #334155;
    font-size: 17px;
    line-height: 1.9;
}

.side-cta {
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    border: 0;
}

.side-cta h2,
.side-cta p,
.side-cta a {
    color: #ffffff;
}

.side-cta p {
    margin: 10px 0 20px;
}

.side-cta a {
    display: inline-flex;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    font-weight: 800;
}

.site-footer {
    padding: 42px 0;
    color: #cbd5e1;
    background: #0f172a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
}

.footer-grid p {
    max-width: 660px;
    margin: 14px 0 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.footer-links a {
    padding: 8px 12px;
    color: #ccfbf1;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

[hidden],
.is-filter-hidden {
    display: none !important;
}

@media (max-width: 1080px) {
    .movie-grid.four,
    .movie-grid.three,
    .rank-list.full {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

@media (max-width: 820px) {
    .site-header-inner {
        min-height: 64px;
    }

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

    .site-nav {
        position: absolute;
        top: 64px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        background: rgba(15, 23, 42, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 18px;
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-link {
        border-radius: 12px;
    }

    .hero-stage {
        height: 560px;
    }

    .hero-copy {
        justify-content: flex-end;
        padding-bottom: 94px;
    }

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

    .hero-control {
        display: none;
    }

    .hero-quick-links,
    .category-overview-grid,
    .category-tile-grid,
    .detail-heading,
    .detail-side,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-quick-links {
        margin-top: 18px;
    }

    .content-section,
    .detail-card,
    .side-box,
    .side-cta {
        padding: 20px;
    }

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

@media (max-width: 560px) {
    .brand-name {
        font-size: 20px;
    }

    .movie-grid.four,
    .movie-grid.three,
    .rank-list.full {
        grid-template-columns: 1fr;
    }

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

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

    .detail-heading > img {
        max-width: 240px;
    }

    .section-title-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
