:root {
    --bg: #f8fafc;
    --bg-soft: #eef2ff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --panel: #ffffff;
    --panel-dark: #0f172a;
    --emerald: #10b981;
    --emerald-dark: #047857;
    --cyan: #22d3ee;
    --amber: #f59e0b;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 48%, #f8fafc 100%);
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(15, 23, 42, 0.92);
    color: #ffffff;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    backdrop-filter: blur(18px);
}

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

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.logo {
    font-size: 22px;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.35);
}

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

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

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
    background: rgba(16, 185, 129, 0.18);
    transform: translateY(-1px);
}

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

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 99px;
    background: #ffffff;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 690px;
    color: #ffffff;
    background:
        radial-gradient(circle at 18% 18%, rgba(16, 185, 129, 0.3), transparent 26%),
        radial-gradient(circle at 78% 18%, rgba(34, 211, 238, 0.2), transparent 30%),
        linear-gradient(135deg, #020617 0%, #0f172a 48%, #111827 100%);
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(15, 23, 42, 0.68) 46%, rgba(2, 6, 23, 0.78) 100%),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 120px);
    pointer-events: none;
}

.hero-shell {
    position: relative;
    min-height: 690px;
    padding: 84px 0 72px;
}

.hero-slide {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    position: absolute;
    inset: 84px 0 118px;
}

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

.hero-media {
    height: 450px;
    border-radius: 34px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.46);
    transform: perspective(900px) rotateY(-5deg);
    background: rgba(255, 255, 255, 0.08);
}

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

.hero-label,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--emerald);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 16px 0 18px;
    font-size: clamp(42px, 6vw, 82px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

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

.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: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: #bbf7d0;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.28);
}

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

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

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
    box-shadow: 0 14px 34px rgba(16, 185, 129, 0.34);
}

.ghost-btn {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.1);
}

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

.hero-controls {
    position: absolute;
    left: 0;
    bottom: 72px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 14px;
    height: 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 42px;
    background: var(--emerald);
}

.hero-search {
    position: absolute;
    right: 0;
    bottom: 56px;
    display: flex;
    width: min(520px, 100%);
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
}

.hero-search input,
.filter-panel input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    border-radius: 999px;
    padding: 0 18px;
}

.hero-search input {
    color: #ffffff;
    background: transparent;
}

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

.hero-search button {
    border: 0;
    border-radius: 999px;
    padding: 0 22px;
    min-height: 44px;
    color: #ffffff;
    background: var(--emerald);
    font-weight: 800;
    cursor: pointer;
}

.category-strip {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-top: -42px;
}

.category-tile,
.category-card a {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 134px;
    padding: 22px;
    border-radius: var(--radius-lg);
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(4, 120, 87, 0.9)),
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.34), transparent 42%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-card a:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

.category-tile strong,
.category-card h2 {
    font-size: 20px;
}

.category-tile span,
.category-card p,
.footer-links a,
.site-footer p {
    color: #cbd5e1;
    line-height: 1.7;
}

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

.section-block.container {
    padding-left: 0;
    padding-right: 0;
}

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

.section-head h2,
.page-hero h1,
.detail-copy h1,
.content-card h2 {
    margin: 8px 0 10px;
    color: var(--text);
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

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

.section-link {
    color: var(--emerald-dark);
    background: #d1fae5;
}

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

.catalog-grid {
    padding-bottom: 64px;
}

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--panel);
    border: 1px solid rgba(226, 232, 240, 0.78);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(16, 185, 129, 0.36);
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f172a;
}

.movie-card:not(.compact-card) .poster-wrap {
    aspect-ratio: 3 / 4;
}

.poster-wrap img {
    transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .poster-wrap img {
    transform: scale(1.06);
    filter: saturate(1.1) contrast(1.04);
}

.play-dot,
.rank-badge {
    position: absolute;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 900;
}

.play-dot {
    right: 14px;
    bottom: 14px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.92);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transform: scale(0.84);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .play-dot {
    opacity: 1;
    transform: scale(1);
}

.rank-badge {
    left: 14px;
    top: 14px;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--amber), #ef4444);
    box-shadow: 0 14px 28px rgba(239, 68, 68, 0.24);
}

.movie-info {
    padding: 18px;
}

.meta-row,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.meta-row a,
.detail-meta span {
    color: var(--emerald-dark);
}

.movie-info h3 {
    margin: 10px 0 8px;
    font-size: 19px;
    line-height: 1.35;
}

.movie-info h3 a:hover {
    color: var(--emerald-dark);
}

.movie-info p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.page-main {
    padding: 38px 0 0;
}

.page-hero {
    margin-bottom: 30px;
    padding: 52px;
    border-radius: var(--radius-xl);
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(4, 120, 87, 0.9)),
        radial-gradient(circle at right top, rgba(34, 211, 238, 0.28), transparent 38%);
    box-shadow: var(--shadow);
}

.page-hero h1,
.page-hero p {
    color: #ffffff;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    color: #cbd5e1;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.filter-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(226, 232, 240, 0.82);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.filter-panel input {
    min-height: 52px;
    background: #f8fafc;
    color: var(--text);
    border: 1px solid var(--line);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip-row button,
.chip-row a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: 999px;
    padding: 0 14px;
    color: var(--emerald-dark);
    background: #ecfdf5;
    cursor: pointer;
    font-weight: 750;
}

.chip-row button.is-active,
.chip-row button:hover,
.chip-row a.is-active,
.chip-row a:hover {
    color: #ffffff;
    background: var(--emerald);
}

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

.category-card a {
    min-height: 220px;
}

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

.category-samples span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ecfeff;
    font-size: 13px;
}

.detail-main {
    background: #020617;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: #ffffff;
    background: #020617;
}

.detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(18px) saturate(1.15);
    transform: scale(1.08);
    opacity: 0.34;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.94)),
        linear-gradient(0deg, #020617 0%, transparent 44%);
}

.detail-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    padding: 72px 0 84px;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.44);
    background: #111827;
}

.detail-copy h1 {
    max-width: 820px;
    color: #ffffff;
    font-size: clamp(40px, 6vw, 76px);
}

.detail-copy .lead {
    max-width: 760px;
    color: #dbeafe;
    font-size: 20px;
    line-height: 1.8;
}

.detail-meta {
    margin: 22px 0;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #d1fae5;
    background: rgba(16, 185, 129, 0.16);
}

.detail-tags {
    margin-bottom: 28px;
}

.detail-tags span {
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.1);
}

.player-section {
    margin-top: -70px;
    position: relative;
    z-index: 4;
}

.video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.44);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.player-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
    cursor: pointer;
    text-align: center;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-ring {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    margin: 0 auto;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
    box-shadow: 0 24px 60px rgba(16, 185, 129, 0.32);
    font-size: 34px;
}

.player-layer strong {
    font-size: clamp(22px, 4vw, 38px);
}

.player-layer small {
    color: #cbd5e1;
    font-size: 16px;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    padding-top: 42px;
}

.content-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.content-card p {
    color: #334155;
    line-height: 1.95;
    font-size: 16px;
}

.detail-main .section-block {
    color: var(--text);
}

.detail-main .section-head h2 {
    color: #ffffff;
}

.detail-main .section-head p {
    color: #cbd5e1;
}

.site-footer {
    margin-top: 0;
    padding: 54px 0 24px;
    color: #cbd5e1;
    background: linear-gradient(180deg, #0f172a, #020617);
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 34px;
}

.footer-logo {
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 22px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 17px;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a:hover {
    color: #6ee7b7;
}

.copyright {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
}

[data-card].is-hidden {
    display: none;
}

@media (max-width: 1024px) {
    .hero-slide,
    .detail-shell {
        grid-template-columns: 1fr;
    }

    .hero-slide {
        gap: 28px;
    }

    .hero-media {
        height: 340px;
        transform: none;
    }

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

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

    .detail-poster {
        width: min(330px, 100%);
    }

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

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

    .header-inner {
        min-height: 64px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        left: 12px;
        right: 12px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 18px;
        background: rgba(15, 23, 42, 0.98);
        box-shadow: var(--shadow);
    }

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

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

    .hero,
    .hero-shell {
        min-height: 820px;
    }

    .hero-shell {
        padding-top: 42px;
    }

    .hero-slide {
        inset: 42px 0 176px;
        align-content: start;
    }

    .hero-media {
        height: 280px;
        border-radius: 24px;
    }

    .hero-copy h1 {
        font-size: 40px;
    }

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

    .hero-controls {
        left: 0;
        bottom: 126px;
    }

    .hero-search {
        left: 0;
        right: auto;
        bottom: 42px;
        flex-direction: column;
        gap: 8px;
        border-radius: 22px;
    }

    .hero-search input,
    .hero-search button {
        min-height: 46px;
    }

    .category-strip,
    .category-grid-large,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .movie-info {
        padding: 14px;
    }

    .movie-info h3 {
        font-size: 16px;
    }

    .movie-info p {
        font-size: 13px;
    }

    .page-hero {
        padding: 32px 22px;
    }

    .filter-panel {
        padding: 12px;
    }

    .detail-shell {
        gap: 28px;
        padding: 42px 0 96px;
    }

    .detail-copy .lead {
        font-size: 16px;
    }

    .player-section {
        margin-top: -52px;
    }

    .video-frame {
        border-radius: 20px;
    }

    .play-ring {
        width: 68px;
        height: 68px;
        font-size: 26px;
    }

    .content-card {
        padding: 22px;
    }
}

@media (max-width: 460px) {
    .movie-grid {
        grid-template-columns: 1fr;
    }

    .category-strip {
        margin-top: -24px;
    }
}
