:root {
    --emerald: #059669;
    --teal: #0d9488;
    --cyan: #0891b2;
    --rose: #f43f5e;
    --amber: #f59e0b;
    --ink: #0f172a;
    --muted: #64748b;
    --line: rgba(15, 23, 42, 0.1);
    --soft: #f8fafc;
    --white: #ffffff;
    --shadow: 0 24px 80px rgba(15, 23, 42, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.16), transparent 34rem),
        radial-gradient(circle at top right, rgba(8, 145, 178, 0.16), transparent 32rem),
        linear-gradient(180deg, #ecfeff 0%, #f8fafc 36%, #ffffff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--emerald), var(--teal), var(--cyan));
    box-shadow: 0 16px 40px rgba(8, 145, 178, 0.28);
}

.nav-shell {
    width: min(1280px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
}

.desktop-nav a,
.mobile-panel a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
    color: #fde68a;
}

.nav-search,
.mobile-panel form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search input,
.mobile-panel input,
.filter-controls input,
.filter-controls select {
    border: 0;
    outline: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 16px;
    color: var(--ink);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.nav-search input {
    width: 260px;
}

.nav-search button,
.mobile-panel button {
    border: 0;
    border-radius: 999px;
    color: #0f766e;
    background: #fef3c7;
    padding: 11px 18px;
    font-weight: 800;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    color: #fff;
}

.mobile-panel.is-open {
    display: block;
}

.mobile-panel form {
    margin-bottom: 16px;
}

.mobile-panel input {
    flex: 1;
}

.mobile-panel nav {
    display: grid;
    gap: 12px;
    font-weight: 800;
}

main {
    overflow: hidden;
}

.hero-carousel {
    width: min(1280px, calc(100% - 32px));
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
}

.hero-stage {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border-radius: 34px;
    background: #020617;
    box-shadow: var(--shadow);
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
    transform: scale(1.04);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.58) 48%, rgba(2, 6, 23, 0.18) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.55), transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: center;
    gap: 36px;
    padding: 56px;
}

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

.eyebrow {
    margin: 0 0 10px;
    color: #06b6d4;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 66px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.hero-copy h2 {
    margin: 20px 0 14px;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.1;
    font-weight: 900;
}

.hero-copy p,
.page-hero p,
.detail-copy .lead {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.8;
}

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

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

.hero-tags span,
.detail-tags span,
.tag-line span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

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

.hero-actions.centered {
    justify-content: center;
}

.primary-button,
.ghost-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #fff;
    background: linear-gradient(90deg, var(--rose), var(--amber));
    box-shadow: 0 14px 34px rgba(244, 63, 94, 0.28);
}

.primary-button.small {
    padding: 10px 18px;
    font-size: 14px;
}

.ghost-button {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.ghost-button.light {
    color: #0f766e;
    background: #fff;
}

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

.hero-poster {
    align-self: center;
    overflow: hidden;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(16px);
}

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

.hero-poster span {
    display: block;
    padding: 14px 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.hero-dots {
    position: absolute;
    left: 56px;
    bottom: 34px;
    z-index: 4;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 28px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 48px;
    background: #fbbf24;
}

.hero-rail {
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-radius: 32px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.rail-title,
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.rail-title span,
.section-heading h2,
.filter-panel h2,
.story-card h2 {
    color: var(--ink);
    font-size: 28px;
    font-weight: 950;
    line-height: 1.1;
}

.rail-title a,
.section-link {
    color: #0e7490;
    background: #ecfeff;
}

.mini-movie {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border-radius: 20px;
    padding: 10px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.mini-movie img {
    width: 74px;
    height: 96px;
    object-fit: cover;
    border-radius: 16px;
}

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

.mini-movie strong {
    font-size: 15px;
    font-weight: 900;
}

.mini-movie em {
    margin-top: 8px;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.content-section,
.filter-panel,
.page-hero,
.detail-hero,
.player-section {
    width: min(1280px, calc(100% - 32px));
    margin: 34px auto 0;
}

.content-section {
    padding: 10px 0 20px;
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading h2 {
    margin: 0;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #0f172a;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.card-badge,
.card-score,
.rank-mark {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.card-badge {
    top: 10px;
    left: 10px;
    padding: 6px 10px;
    background: rgba(15, 118, 110, 0.92);
}

.card-score {
    right: 10px;
    bottom: 10px;
    padding: 6px 10px;
    background: rgba(244, 63, 94, 0.92);
}

.rank-mark {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--rose), var(--amber));
    box-shadow: 0 10px 28px rgba(244, 63, 94, 0.35);
}

.card-body {
    padding: 16px;
}

.card-meta {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-body h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 950;
}

.card-desc {
    min-height: 44px;
    margin: 10px 0 14px;
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-line span {
    color: #0f766e;
    background: #ecfdf5;
    padding: 5px 9px;
    font-size: 12px;
}

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

.category-chip,
.category-card-large,
.story-card,
.filter-panel {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 52px rgba(15, 23, 42, 0.1);
}

.category-chip {
    min-height: 150px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(8, 145, 178, 0.12)),
        rgba(255, 255, 255, 0.92);
}

.category-chip span {
    font-size: 22px;
    font-weight: 950;
}

.category-chip em {
    color: #475569;
    font-style: normal;
    line-height: 1.7;
}

.page-hero,
.detail-hero {
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(5, 150, 105, 0.95), rgba(13, 148, 136, 0.92), rgba(8, 145, 178, 0.95)),
        #0f766e;
    color: #fff;
    box-shadow: var(--shadow);
}

.page-hero {
    padding: 62px 48px;
    text-align: center;
}

.compact-hero p {
    max-width: 820px;
    margin: 18px auto 0;
}

.ranking-hero {
    text-align: left;
}

.ranking-feature-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.ranking-feature {
    overflow: hidden;
    position: relative;
    min-height: 240px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.ranking-feature img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    opacity: 0.72;
}

.ranking-feature span,
.ranking-feature strong,
.ranking-feature em {
    position: absolute;
    z-index: 2;
    color: #fff;
}

.ranking-feature span {
    top: 14px;
    left: 14px;
    font-size: 22px;
    font-weight: 950;
}

.ranking-feature strong {
    left: 16px;
    right: 16px;
    bottom: 44px;
    font-size: 18px;
}

.ranking-feature em {
    left: 16px;
    right: 16px;
    bottom: 18px;
    font-size: 13px;
    font-style: normal;
}

.filter-panel {
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.filter-panel h2 {
    margin: 0;
}

.filter-controls {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 160px;
    gap: 12px;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    background: #f8fafc;
}

.empty-state {
    display: none;
    margin: 0;
    color: var(--rose);
    font-weight: 900;
}

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

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

.category-card-large {
    padding: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: center;
    gap: 20px;
}

.category-card-large h2 {
    margin: 0 0 12px;
    font-size: 30px;
    font-weight: 950;
}

.category-card-large p {
    margin: 0;
    color: #475569;
    line-height: 1.7;
}

.category-samples {
    display: grid;
    gap: 8px;
}

.category-samples a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #0f766e;
    font-weight: 800;
}

.detail-hero {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 44px;
}

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

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 800;
}

.breadcrumb em {
    color: #fff;
    font-style: normal;
}

.detail-copy .lead {
    max-width: 900px;
    margin-top: 18px;
}

.detail-tags {
    margin-top: 22px;
}

.detail-meta-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.detail-meta-grid span {
    border-radius: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.detail-meta-grid strong {
    display: block;
    margin-bottom: 4px;
    color: #cffafe;
    font-size: 12px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: #020617;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    background: #020617;
}

.player-mask {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    background: #020617;
}

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

.player-mask img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    filter: blur(1px);
}

.player-start {
    position: relative;
    z-index: 4;
    border: 0;
    border-radius: 999px;
    padding: 18px 28px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    background: linear-gradient(90deg, var(--rose), var(--amber));
    font-weight: 950;
    box-shadow: 0 18px 48px rgba(244, 63, 94, 0.34);
    cursor: pointer;
}

.player-start span {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 22px;
}

.story-card {
    padding: 30px;
}

.story-card h2 {
    margin: 0 0 16px;
}

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

.accent-card {
    background:
        linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(236, 253, 245, 0.96)),
        #fff;
}

.site-footer {
    margin-top: 56px;
    padding: 46px 0 30px;
    color: #cbd5e1;
    background: #0f172a;
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 1fr 1fr;
    gap: 32px;
}

.footer-brand {
    color: #fff;
}

.site-footer p {
    color: #94a3b8;
    line-height: 1.8;
}

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

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

.footer-links a:hover {
    color: #67e8f9;
}

.copyright {
    width: min(1280px, calc(100% - 32px));
    margin: 30px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    text-align: center;
    font-size: 14px;
}

@media (max-width: 1180px) {
    .hero-carousel {
        grid-template-columns: 1fr;
    }

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

    .rail-title {
        grid-column: 1 / -1;
    }

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

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

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

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

    .hero-stage {
        min-height: 760px;
    }

    .hero-content,
    .detail-hero,
    .detail-content,
    .footer-inner,
    .category-card-large,
    .category-overview {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 34px;
    }

    .hero-poster {
        max-width: 240px;
    }

    .filter-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-controls {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 680px) {
    .nav-shell,
    .mobile-panel,
    .hero-carousel,
    .content-section,
    .filter-panel,
    .page-hero,
    .detail-hero,
    .player-section,
    .footer-inner,
    .copyright {
        width: min(100% - 22px, 1280px);
    }

    .brand {
        font-size: 20px;
    }

    .hero-stage {
        min-height: 720px;
        border-radius: 24px;
    }

    .hero-content {
        display: block;
        padding: 26px;
    }

    .hero-poster {
        margin-top: 26px;
    }

    .hero-dots {
        left: 26px;
        bottom: 24px;
    }

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

    .mini-movie {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .mini-movie img {
        width: 58px;
        height: 78px;
    }

    .page-hero,
    .detail-hero {
        padding: 30px 22px;
        border-radius: 24px;
    }

    .player-box {
        border-radius: 22px;
    }

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

    .card-body {
        padding: 12px;
    }

    .card-body h3 {
        font-size: 16px;
    }

    .card-desc {
        font-size: 13px;
    }
}

@media (max-width: 460px) {
    .hero-rail,
    .movie-grid,
    .category-grid,
    .ranking-feature-grid {
        grid-template-columns: 1fr;
    }

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