:root {
    --page-bg: #f8fafc;
    --panel-bg: #ffffff;
    --dark-bg: #020617;
    --slate-bg: #0f172a;
    --text-main: #0f172a;
    --text-soft: #475569;
    --text-muted: #64748b;
    --line-soft: #e2e8f0;
    --emerald: #10b981;
    --emerald-dark: #059669;
    --cyan: #06b6d4;
    --amber: #f59e0b;
    --radius-lg: 24px;
    --radius-md: 18px;
    --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 18px 40px rgba(15, 23, 42, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

img {
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.97), rgba(30, 41, 59, 0.97), rgba(15, 23, 42, 0.97));
    color: #ffffff;
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.22);
    backdrop-filter: blur(16px);
}

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

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

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.35);
    font-size: 14px;
}

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

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

.nav-link,
.mobile-nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-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);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

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

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

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

.hero-shell {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: var(--dark-bg);
}

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

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

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.cover-image.is-hidden,
.hero-image.is-hidden {
    opacity: 0;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 28%, rgba(16, 185, 129, 0.35), transparent 28%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.70) 44%, rgba(2, 6, 23, 0.18) 100%);
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 72vh;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 72px 0 96px;
}

.hero-content {
    max-width: 720px;
    color: #ffffff;
}

.hero-kicker,
.section-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.14);
    color: #059669;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.06em;
    padding: 7px 13px;
}

.hero-kicker {
    color: #a7f3d0;
    background: rgba(16, 185, 129, 0.22);
    border: 1px solid rgba(167, 243, 208, 0.28);
}

.hero-content h1 {
    margin: 20px 0 16px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.hero-content h1 span {
    color: #34d399;
}

.hero-content p {
    max-width: 650px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-meta span,
.meta-pills span,
.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
}

.hero-meta span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-actions,
.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.primary-button,
.secondary-button,
.section-more,
.card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.secondary-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
}

.primary-button:hover,
.secondary-button:hover,
.section-more:hover,
.card-button:hover {
    transform: translateY(-2px);
}

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

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

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

main {
    min-height: 60vh;
}

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

.home-content,
.page-content {
    padding: 64px 0;
}

.section-block {
    margin-bottom: 72px;
}

.section-heading,
.page-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.section-heading h2,
.page-heading h1 {
    margin: 8px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.page-heading {
    padding: 52px 0 30px;
    align-items: start;
}

.page-heading p {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.8;
}

.section-more,
.card-button {
    color: #047857;
    background: #d1fae5;
}

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

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

.movie-card {
    position: relative;
    min-width: 0;
}

.movie-card-link {
    display: grid;
    min-height: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--panel-bg);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.09);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background:
        radial-gradient(circle at 35% 20%, rgba(34, 211, 238, 0.38), transparent 32%),
        linear-gradient(135deg, #0f172a, #064e3b 48%, #0e7490);
}

.is-featured .poster-frame {
    aspect-ratio: 16 / 9;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.25s ease;
}

.movie-card-link:hover .cover-image,
.wide-card-link:hover .cover-image,
.category-card:hover .cover-image {
    transform: scale(1.08);
}

.poster-glow {
    position: absolute;
    inset: auto 0 0 0;
    height: 58%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), transparent);
}

.rank-mark {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-weight: 950;
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.28);
}

.movie-card-body {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.movie-card-title {
    color: var(--text-main);
    font-size: 18px;
    font-weight: 950;
    line-height: 1.35;
}

.movie-card-desc {
    min-height: 46px;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.65;
}

.meta-pills,
.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-row span,
.detail-tags span {
    color: #047857;
    background: #d1fae5;
}

.feature-panel,
.category-strip,
.search-panel {
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.95), rgba(224, 242, 254, 0.95));
    padding: clamp(24px, 4vw, 42px);
    box-shadow: var(--shadow-soft);
}

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

.category-chip {
    display: grid;
    gap: 8px;
    min-height: 116px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-chip:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.category-chip strong {
    font-size: 18px;
    color: var(--text-main);
}

.category-chip span {
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.6;
}

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

.category-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.10);
}

.category-card-cover {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #047857, #0891b2);
}

.category-card-body {
    display: grid;
    gap: 14px;
    padding: 22px;
}

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

.category-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.75;
}

.category-card ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-card li a {
    color: #047857;
    font-weight: 800;
}

.wide-list {
    display: grid;
    gap: 16px;
}

.wide-card-link {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 22px;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.09);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wide-card-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.wide-poster {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #064e3b, #0e7490);
}

.wide-content {
    display: grid;
    align-content: center;
    gap: 12px;
    padding: 20px 22px 20px 0;
}

.wide-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 950;
}

.wide-rank {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-size: 15px;
}

.wide-desc {
    color: var(--text-soft);
    line-height: 1.75;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    margin-bottom: 26px;
}

.search-input {
    width: 100%;
    height: 52px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    padding: 0 20px;
    outline: none;
    background: #ffffff;
    color: var(--text-main);
    font-size: 16px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.search-input:focus {
    border-color: #34d399;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.select-input {
    height: 52px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    padding: 0 18px;
    background: #ffffff;
    color: var(--text-main);
    font-weight: 800;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    color: var(--text-muted);
    font-weight: 800;
    margin-bottom: 22px;
}

.breadcrumb a {
    color: #047857;
}

.detail-hero {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 38px;
    align-items: stretch;
    padding: 42px;
    border-radius: 34px;
    background:
        radial-gradient(circle at 88% 10%, rgba(34, 211, 238, 0.24), transparent 30%),
        linear-gradient(135deg, #0f172a, #111827 55%, #064e3b);
    color: #ffffff;
    box-shadow: var(--shadow-soft);
}

.detail-poster {
    display: block;
    overflow: hidden;
    border-radius: 28px;
    min-height: 420px;
    background: linear-gradient(135deg, #0f172a, #047857, #0891b2);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.35);
}

.detail-poster .cover-image {
    height: 100%;
}

.detail-info {
    display: grid;
    align-content: center;
    gap: 20px;
}

.detail-info h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.detail-info p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.85;
}

.detail-tags span {
    color: #dcfce7;
    background: rgba(16, 185, 129, 0.22);
    border: 1px solid rgba(167, 243, 208, 0.20);
}

.player-section,
.content-panel {
    margin-top: 38px;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.movie-player {
    position: relative;
    overflow: hidden;
    border-radius: 30px 30px 0 0;
    background: #020617;
    aspect-ratio: 16 / 9;
}

.player-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #020617;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    width: 100%;
    height: 100%;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.24), rgba(2, 6, 23, 0.58));
    font-size: 18px;
    font-weight: 950;
}

.player-start span:first-child {
    display: inline-grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.38);
    font-size: 30px;
}

.movie-player.is-playing .player-start {
    display: none;
}

.player-copy {
    display: grid;
    gap: 10px;
    padding: 24px 28px 28px;
}

.player-copy h2,
.content-panel h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 950;
}

.player-copy p,
.content-panel p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.9;
}

.content-panel {
    padding: 30px;
}

.content-panel + .content-panel {
    margin-top: 26px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.empty-state {
    display: none;
    padding: 26px;
    border-radius: 24px;
    background: #ffffff;
    color: var(--text-soft);
    text-align: center;
    font-weight: 800;
}

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

@media (max-width: 1024px) {
    .movie-grid,
    .movie-grid.feature-grid,
    .category-grid,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .detail-hero {
        grid-template-columns: 280px 1fr;
        padding: 30px;
    }
}

@media (max-width: 760px) {
    .site-nav {
        height: 64px;
    }

    .nav-links {
        display: none;
    }

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

    .brand-text {
        font-size: 19px;
    }

    .hero-inner {
        min-height: 70vh;
        padding: 52px 0 84px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .section-heading,
    .page-heading,
    .filter-bar {
        display: grid;
        grid-template-columns: 1fr;
        align-items: start;
    }

    .movie-grid,
    .movie-grid.feature-grid,
    .category-grid,
    .category-strip-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .wide-card-link {
        grid-template-columns: 1fr;
    }

    .wide-content {
        padding: 0 18px 20px;
    }

    .detail-hero {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 22px;
    }

    .detail-poster {
        min-height: auto;
        aspect-ratio: 16 / 10;
    }

    .content-panel,
    .player-copy {
        padding: 22px;
    }
}
