:root {
    --brand-start: #10b981;
    --brand-end: #06b6d4;
    --brand-deep: #065f46;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #f3f4f6;
    --line: #e5e7eb;
    --white: #ffffff;
    --dark: #020617;
    --shadow: 0 22px 60px rgba(15, 23, 42, 0.14);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #f8fafc;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.78);
}

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

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

.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: white;
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    box-shadow: 0 14px 30px rgba(16, 185, 129, 0.28);
}

.logo-text {
    font-size: 1.28rem;
    background: linear-gradient(135deg, #059669, #0891b2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

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

.nav-link:hover,
.nav-link.is-active {
    color: #047857;
    background: rgba(16, 185, 129, 0.1);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #ecfeff;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: #047857;
}

.hero {
    background: #ecfeff;
}

.hero-slider {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: linear-gradient(135deg, #022c22, #083344);
}

.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;
    background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(6, 95, 70, 0.72), rgba(8, 145, 178, 0.36)), var(--hero-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    filter: saturate(1.05);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 56px;
    padding: 72px 0 110px;
}

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

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    color: #047857;
    background: rgba(16, 185, 129, 0.12);
    font-size: 0.85rem;
    font-weight: 800;
}

.hero-copy .eyebrow,
.detail-info .eyebrow,
.page-hero .eyebrow {
    color: #a7f3d0;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

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

.hero-copy p {
    margin: 0;
    max-width: 640px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.1rem;
    line-height: 1.9;
}

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

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

.hero-tags span,
.tag-list span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    font-weight: 700;
}

.tag-list span {
    background: #ecfdf5;
    color: #047857;
}

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

.primary-button,
.ghost-button,
.home-search button,
.search-panel button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    border: 0;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.home-search button,
.search-panel button {
    color: white;
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    box-shadow: 0 18px 36px rgba(6, 182, 212, 0.25);
}

.ghost-button {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover,
.home-search button:hover,
.search-panel button:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: inherit;
    pointer-events: none;
}

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

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 34px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.hero-arrow,
.hero-dot {
    pointer-events: auto;
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    color: white;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    font-size: 2rem;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 9px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.28);
    backdrop-filter: blur(10px);
}

.hero-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.44);
}

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

.band-white {
    background: white;
}

.quick-search-inner {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 430px);
    align-items: center;
    gap: 28px;
    padding: 30px 0;
}

.quick-search h2 {
    margin: 0 0 6px;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.quick-search p {
    margin: 0;
    color: var(--muted);
}

.home-search,
.search-panel {
    display: flex;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f9fafb;
}

.home-search input,
.search-panel input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 46px;
    border: 0;
    outline: 0;
    border-radius: 999px;
    color: var(--ink);
    background: white;
    padding: 0 16px;
}

.content-section {
    padding: 72px 0;
}

.soft-bg {
    background: linear-gradient(180deg, #ffffff 0%, #ecfeff 100%);
}

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

.section-heading h2 {
    margin: 12px 0 8px;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 0;
    max-width: 650px;
    color: var(--muted);
    line-height: 1.8;
}

.section-heading > a,
.ranking-title a,
.category-more a {
    color: #047857;
    font-weight: 900;
}

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

.featured-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.compact-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

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

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 22px;
    background: white;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-poster {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #022c22, #083344);
    aspect-ratio: 2 / 3;
}

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

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

.poster-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    max-width: calc(100% - 20px);
    padding: 5px 9px;
    border-radius: 999px;
    color: white;
    background: rgba(16, 185, 129, 0.9);
    font-size: 0.75rem;
    font-weight: 800;
}

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

.movie-card-body h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta,
.movie-one-line {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.6;
}

.movie-one-line {
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-body .tag-list {
    margin-top: 10px;
}

.movie-card-body .tag-list span {
    padding: 4px 8px;
    font-size: 0.74rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.category-grid-large {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.category-card a {
    position: relative;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 26px;
    border-radius: 26px;
    color: white;
    background: linear-gradient(135deg, #047857, #0891b2);
    box-shadow: 0 20px 46px rgba(6, 95, 70, 0.18);
}

.category-card:nth-child(2n) a {
    background: linear-gradient(135deg, #0f766e, #2563eb);
}

.category-card:nth-child(3n) a {
    background: linear-gradient(135deg, #065f46, #0e7490);
}

.category-orb {
    position: absolute;
    top: -52px;
    right: -42px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.category-card h3 {
    position: relative;
    margin: 0 0 10px;
    font-size: 1.55rem;
}

.category-card p,
.category-card strong {
    position: relative;
    margin: 0;
}

.category-card p {
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.7;
}

.category-card strong {
    margin-top: 18px;
}

.two-column-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
    align-items: start;
}

.ranking-panel {
    position: sticky;
    top: 92px;
    padding: 20px;
    border-radius: 26px;
    background: white;
    box-shadow: var(--shadow);
}

.ranking-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-weight: 900;
}

.ranking-list,
.ranking-page-list {
    display: grid;
    gap: 14px;
}

.ranking-page-list {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.ranking-link {
    display: grid;
    grid-template-columns: 46px 66px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #f9fafb;
    transition: transform 0.2s ease, background 0.2s ease;
}

.ranking-link:hover {
    transform: translateX(4px);
    background: #ecfdf5;
}

.ranking-number {
    color: #059669;
    font-size: 1.35rem;
    font-weight: 950;
}

.ranking-link img {
    width: 66px;
    height: 88px;
    border-radius: 12px;
    object-fit: cover;
    background: #0f172a;
}

.ranking-link h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.ranking-link p,
.ranking-link span:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.ranking-link span:last-child {
    display: inline-block;
    margin-top: 6px;
    color: #047857;
    font-weight: 900;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0 76px;
    color: white;
    background: radial-gradient(circle at top right, rgba(45, 212, 191, 0.32), transparent 34%), linear-gradient(135deg, #022c22, #083344);
}

.page-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.page-hero p {
    margin: 0;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.1rem;
    line-height: 1.9;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
}

.breadcrumb a:hover {
    color: white;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px 170px;
    gap: 12px;
    padding: 12px;
    margin-bottom: 28px;
    border-radius: 24px;
    background: white;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.filter-bar input,
.filter-bar select {
    border: 1px solid var(--line);
    background: #f9fafb;
}

.category-more {
    margin-top: 46px;
    padding: 26px;
    border-radius: 24px;
    background: white;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.category-more h2 {
    margin: 0 0 16px;
}

.category-more div {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
}

.search-panel {
    max-width: 680px;
    margin-top: 26px;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
}

.search-status {
    margin-bottom: 22px;
    color: #047857;
    font-weight: 900;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: white;
    background: #020617;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.76), rgba(6, 95, 70, 0.5)), var(--detail-image);
    background-size: cover;
    background-position: center;
    filter: blur(6px) saturate(1.08);
    transform: scale(1.04);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 42px;
    align-items: end;
    min-height: 560px;
    padding: 58px 0 64px;
}

.detail-hero .breadcrumb {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.detail-cover {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
}

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

.detail-info h1 {
    margin: 16px 0 18px;
    font-size: clamp(2.2rem, 6vw, 4.8rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.1rem;
    line-height: 1.9;
}

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

.detail-meta span,
.detail-switch a {
    padding: 8px 12px;
    border-radius: 999px;
    color: white;
    background: rgba(255, 255, 255, 0.14);
}

.detail-tags {
    margin: 20px 0 26px;
}

.player-section {
    padding-top: 58px;
    background: #020617;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.36);
    aspect-ratio: 16 / 9;
}

.video-player {
    width: 100%;
    height: 100%;
    display: block;
    background: black;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: white;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.52));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-icon {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
    box-shadow: 0 20px 48px rgba(6, 182, 212, 0.32);
    font-size: 2rem;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
    align-items: start;
}

.detail-article,
.detail-side {
    padding: 30px;
    border-radius: 26px;
    background: white;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.detail-article h2,
.detail-side h2 {
    margin: 0 0 14px;
    font-size: 1.55rem;
}

.detail-article p {
    margin: 0 0 24px;
    color: #374151;
    line-height: 2;
}

.detail-side dl {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px 14px;
    margin: 0;
}

.detail-side dt {
    color: var(--muted);
}

.detail-side dd {
    margin: 0;
    font-weight: 800;
}

.detail-switch a {
    color: #047857;
    background: #ecfdf5;
}

.site-footer {
    padding: 48px 0 34px;
    background: #021a17;
    color: rgba(255, 255, 255, 0.82);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    gap: 26px;
}

.footer-brand p {
    max-width: 720px;
    margin: 16px 0 0;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
}

.footer-links a:hover {
    color: white;
}

.footer-logo .logo-text {
    color: white;
    background: none;
    -webkit-text-fill-color: currentColor;
}

.copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.56);
}

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

@media (max-width: 960px) {
    .site-header-inner {
        height: auto;
        min-height: 66px;
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .nav-toggle {
        display: inline-block;
    }

    .site-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 10px 0 4px;
    }

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

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

    .hero-content {
        grid-template-columns: 1fr;
        min-height: 720px;
        gap: 28px;
        padding: 54px 0 110px;
    }

    .hero-poster {
        width: min(260px, 78vw);
        margin: 0 auto;
        transform: none;
    }

    .quick-search-inner,
    .two-column-layout,
    .detail-layout,
    .detail-hero-inner {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: static;
    }

    .detail-cover {
        width: min(260px, 78vw);
    }

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

@media (max-width: 640px) {
    .container,
    .site-header-inner,
    .hero-content,
    .hero-controls,
    .footer-inner {
        width: min(100% - 24px, 1180px);
    }

    .hero-slider,
    .hero-content {
        min-height: 680px;
    }

    .hero-copy h1,
    .detail-info h1,
    .page-hero h1 {
        letter-spacing: -0.04em;
    }

    .hero-controls {
        bottom: 22px;
    }

    .hero-arrow {
        width: 40px;
        height: 40px;
    }

    .home-search,
    .search-panel {
        border-radius: 22px;
        flex-direction: column;
    }

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

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

    .section-heading {
        display: block;
    }

    .ranking-page-list {
        grid-template-columns: 1fr;
    }

    .ranking-link {
        grid-template-columns: 38px 58px 1fr;
    }

    .ranking-link img {
        width: 58px;
        height: 78px;
    }

    .detail-article,
    .detail-side {
        padding: 22px;
    }
}
