:root {
    --bg: #f8fafc;
    --paper: #ffffff;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --brand: #059669;
    --brand-2: #06b6d4;
    --brand-dark: #064e3b;
    --slate: #0f172a;
    --slate-2: #1e293b;
    --amber: #f59e0b;
    --radius: 18px;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    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,
video {
    display: block;
    max-width: 100%;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    color: #fff;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.97), rgba(30, 41, 59, 0.97), rgba(15, 23, 42, 0.97));
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.25);
    backdrop-filter: blur(14px);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    height: 68px;
}

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

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: #04111f;
    background: linear-gradient(135deg, #34d399, #22d3ee);
    box-shadow: 0 0 24px rgba(52, 211, 153, 0.38);
}

.brand-text {
    font-size: 1.18rem;
    background: linear-gradient(90deg, #34d399, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.nav-link {
    padding: 8px 12px;
    border-radius: 10px;
    color: #cbd5e1;
    font-size: 0.95rem;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(5, 150, 105, 0.95);
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-form input,
.big-search input,
.quick-search input,
.filter-panel input,
.filter-panel select,
.ranking-tools input,
.ranking-tools select {
    width: 220px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    color: #fff;
    background: rgba(51, 65, 85, 0.86);
    outline: none;
    padding: 10px 14px;
    transition: 0.2s ease;
}

.search-form input:focus {
    width: 280px;
    border-color: rgba(52, 211, 153, 0.9);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.search-form button,
.quick-search button,
.big-search button,
.filter-panel button,
.ranking-tools button {
    border: none;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: none;
    color: #fff;
    background: rgba(148, 163, 184, 0.18);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 1.2rem;
}

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

.mobile-panel.is-open {
    display: grid;
    gap: 8px;
}

.mobile-link {
    display: block;
    color: #cbd5e1;
    background: rgba(51, 65, 85, 0.7);
    border-radius: 12px;
    padding: 10px 12px;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 900ms ease;
}

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    filter: saturate(1.05) contrast(1.05);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 15%, rgba(6, 182, 212, 0.28), transparent 34%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.55) 45%, rgba(2, 6, 23, 0.12) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding-bottom: 78px;
    z-index: 2;
}

.hero-copy {
    max-width: 780px;
    color: #fff;
}

.hero-kicker,
.detail-meta,
.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-kicker span,
.detail-meta span {
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    color: #d1fae5;
    padding: 6px 12px;
    font-size: 0.92rem;
    backdrop-filter: blur(8px);
}

.hero-copy h1 {
    margin: 18px 0 12px;
    font-size: clamp(2.2rem, 7vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

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

.hero-tags span,
.tag-row span {
    border: 1px solid rgba(5, 150, 105, 0.25);
    border-radius: 999px;
    color: var(--brand-dark);
    background: #ecfdf5;
    padding: 5px 10px;
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-tags span {
    color: #a7f3d0;
    background: rgba(5, 150, 105, 0.22);
    border-color: rgba(52, 211, 153, 0.34);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
    color: #fff;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    box-shadow: 0 14px 30px rgba(5, 150, 105, 0.28);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    color: #fff;
    background: rgba(15, 23, 42, 0.58);
    font-size: 2rem;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    cursor: pointer;
    transition: 0.2s ease;
}

.hero-dot.is-active {
    width: 30px;
    background: #34d399;
}

.quick-panel {
    display: grid;
    grid-template-columns: 1fr 1fr 1.3fr;
    gap: 18px;
    margin-top: -44px;
    position: relative;
    z-index: 8;
}

.quick-tile,
.quick-search {
    min-height: 110px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    padding: 22px;
    backdrop-filter: blur(14px);
}

.quick-tile {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quick-tile.hot {
    color: #fff;
    background: linear-gradient(135deg, #059669, #0891b2);
}

.quick-tile strong {
    font-size: 1.28rem;
}

.quick-tile span {
    margin-top: 4px;
    color: inherit;
    opacity: 0.82;
}

.quick-search {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quick-search input,
.big-search input {
    flex: 1;
    width: auto;
    color: var(--ink);
    background: #fff;
    border-color: var(--line);
}

.section-block {
    padding: 64px 0 0;
}

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

.section-head.compact {
    align-items: center;
}

.eyebrow {
    display: inline-block;
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-head h2,
.page-hero h1,
.detail-title-block h1 {
    margin: 6px 0 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

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

.section-head > a {
    color: var(--brand);
    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;
    border: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: 0.28s ease;
}

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

.poster-frame {
    position: relative;
    display: block;
    height: 250px;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(6, 182, 212, 0.25), transparent 40%),
        linear-gradient(135deg, #0f172a, #064e3b);
}

.movie-card--small .poster-frame {
    height: 190px;
}

.movie-card--large .poster-frame {
    height: 320px;
}

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

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

.poster-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-frame::after {
    opacity: 1;
}

.poster-badge,
.poster-play {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
}

.poster-badge {
    top: 12px;
    right: 12px;
    background: rgba(5, 150, 105, 0.92);
    padding: 5px 10px;
}

.poster-play {
    left: 12px;
    bottom: 12px;
    background: rgba(15, 23, 42, 0.7);
    padding: 6px 12px;
    opacity: 0;
    transform: translateY(6px);
    transition: 0.25s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translateY(0);
}

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

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 1.06rem;
    line-height: 1.35;
}

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

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

.movie-meta {
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.86rem;
}

.movie-meta span:first-child {
    color: var(--amber);
    font-weight: 900;
}

.feature-band {
    margin-top: 72px;
    padding: 64px 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(52, 211, 153, 0.22), transparent 28%),
        linear-gradient(135deg, #ecfdf5, #ecfeff);
}

.feature-inner {
    display: grid;
    grid-template-columns: 0.8fr 1.6fr;
    gap: 34px;
    align-items: center;
}

.feature-inner h2 {
    margin: 8px 0;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1;
}

.feature-inner p {
    color: var(--muted);
    font-size: 1.05rem;
}

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

.category-showcase-card,
.category-card-large,
.content-card,
.side-card,
.prose-card,
.filter-panel,
.player-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    padding: 22px;
}

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

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

.compact-card {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 150px;
    border-radius: 14px;
    background: #0f172a;
}

.compact-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    opacity: 0.88;
}

.compact-card span {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 8px;
    color: #fff;
    font-weight: 800;
    font-size: 0.86rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0;
    background:
        radial-gradient(circle at 80% 0%, rgba(6, 182, 212, 0.18), transparent 32%),
        linear-gradient(135deg, #ffffff, #ecfdf5);
}

.page-hero.gradient {
    color: #fff;
    background: linear-gradient(135deg, #059669, #0891b2);
}

.page-hero.dark {
    color: #fff;
    background:
        radial-gradient(circle at 78% 15%, rgba(6, 182, 212, 0.32), transparent 30%),
        linear-gradient(135deg, #020617, #0f172a 55%, #064e3b);
}

.page-hero.gradient p,
.page-hero.dark p,
.page-hero.gradient .eyebrow,
.page-hero.dark .eyebrow {
    color: rgba(255, 255, 255, 0.86);
}

.back-link {
    display: inline-block;
    margin-bottom: 14px;
    color: inherit;
    opacity: 0.86;
    font-weight: 800;
}

.filter-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 28px;
    padding-top: 42px;
}

.filter-panel {
    position: sticky;
    top: 92px;
    height: max-content;
}

.filter-panel h2 {
    margin: 0 0 18px;
}

.filter-panel label {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--muted);
    font-weight: 700;
}

.filter-panel input,
.filter-panel select,
.ranking-tools input,
.ranking-tools select {
    width: 100%;
    color: var(--ink);
    background: #fff;
    border-color: var(--line);
}

.result-count {
    color: var(--muted);
    font-weight: 800;
}

.top-three {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 28px;
}

.ranking-tools {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.ranking-list {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.ranking-row {
    display: grid;
    grid-template-columns: 64px 56px minmax(0, 1fr) 120px 90px 90px;
    gap: 14px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    transition: 0.2s ease;
}

.ranking-row:hover {
    background: #f0fdfa;
}

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

.rank-no {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--brand);
}

.rank-title {
    display: grid;
    font-weight: 900;
}

.rank-title small {
    color: var(--muted);
    font-weight: 500;
}

.detail-hero {
    min-height: 520px;
    padding: 0;
    background: #020617;
}

.detail-hero > img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    opacity: 0.82;
}

.detail-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.45), rgba(2, 6, 23, 0.2));
}

.detail-hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    padding-bottom: 48px;
}

.detail-title-block {
    max-width: 860px;
}

.detail-title-block p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.1rem;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 340px;
    gap: 28px;
    padding-top: 42px;
}

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

.player-card {
    padding: 0;
    overflow: hidden;
    background: #000;
}

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

.player-help {
    color: #cbd5e1;
    background: #020617;
    padding: 12px 16px;
    font-size: 0.9rem;
}

.content-card h2,
.side-card h2 {
    margin: 0 0 12px;
}

.content-card p {
    margin: 0;
    color: #334155;
    font-size: 1.02rem;
}

.info-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

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

.info-list dt {
    color: var(--muted);
    font-weight: 800;
}

.info-list dd {
    margin: 0;
}

.side-link {
    display: block;
    border-radius: 12px;
    background: #f0fdfa;
    color: var(--brand-dark);
    margin-top: 8px;
    padding: 12px 14px;
    font-weight: 800;
}

.big-search {
    display: flex;
    gap: 12px;
    max-width: 720px;
    margin-top: 24px;
}

.prose-card {
    margin-top: 42px;
    font-size: 1.05rem;
}

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

@media (max-width: 1024px) {
    .desktop-nav,
    .search-form {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .quick-panel,
    .feature-inner,
    .filter-layout,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

    .filter-panel {
        position: static;
    }
}

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

    .hero {
        height: 78vh;
        min-height: 620px;
    }

    .hero-content {
        padding-bottom: 70px;
    }

    .hero-arrow {
        display: none;
    }

    .quick-panel,
    .movie-grid.four,
    .movie-grid.three,
    .top-three,
    .category-showcase-grid,
    .category-large-grid,
    .compact-grid {
        grid-template-columns: 1fr;
    }

    .section-head,
    .ranking-tools,
    .big-search,
    .quick-search {
        flex-direction: column;
        align-items: stretch;
    }

    .ranking-row {
        grid-template-columns: 42px 48px 1fr;
    }

    .ranking-row > span:nth-of-type(3),
    .ranking-row > span:nth-of-type(4),
    .ranking-row > strong {
        display: none;
    }

    .poster-frame {
        height: 280px;
    }
}
