* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
    background: linear-gradient(180deg, #f9fafb 0%, #eef2f7 46%, #f8fafc 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, rgba(6, 95, 70, 0.98), rgba(15, 118, 110, 0.98), rgba(21, 94, 117, 0.98));
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(16px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 16px;
    color: #064e3b;
    background: linear-gradient(135deg, #d1fae5, #67e8f9);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 22px;
    letter-spacing: 0.04em;
}

.brand-text small {
    margin-top: 4px;
    color: #ccfbf1;
    font-size: 12px;
}

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

.main-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #ecfeff;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: #064e3b;
    background: #ffffff;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 99px;
    background: #ffffff;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding-bottom: 52px;
    background: #052e2b;
}

.hero-slider {
    position: relative;
    height: 650px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    align-items: center;
    gap: 54px;
    width: 100%;
    margin: 0;
    padding: 58px max(16px, calc((100vw - 1180px) / 2)) 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: linear-gradient(90deg, rgba(4, 47, 46, 0.98), rgba(15, 23, 42, 0.78), rgba(17, 24, 39, 0.32)), var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.1);
}

.hero-bg::after {
    position: absolute;
    inset: 0;
    content: "";
    background: radial-gradient(circle at 18% 22%, rgba(45, 212, 191, 0.36), transparent 28%), radial-gradient(circle at 82% 28%, rgba(16, 185, 129, 0.24), transparent 30%), linear-gradient(180deg, transparent, rgba(5, 46, 43, 0.96));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.hero-poster {
    z-index: 2;
}

.hero-eyebrow,
.eyebrow {
    margin: 0 0 14px;
    color: #99f6e4;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-content h1,
.hero-content h2.hero-title {
    max-width: 780px;
    margin: 0;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero-content > h2:not(.hero-title) {
    display: none;
}

.hero-title {
    margin-top: 8px !important;
}

.hero-summary {
    max-width: 720px;
    margin: 22px 0 0;
    color: #d1fae5;
    font-size: 18px;
    line-height: 1.85;
}

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

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

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

.btn.primary {
    color: #064e3b;
    background: linear-gradient(135deg, #a7f3d0, #67e8f9);
    box-shadow: 0 20px 35px rgba(20, 184, 166, 0.32);
}

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

.btn.ghost.dark {
    color: #0f766e;
    border-color: rgba(15, 118, 110, 0.18);
    background: #ffffff;
}

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

.hero-poster img {
    aspect-ratio: 2 / 3;
    height: 520px;
    object-fit: cover;
    background: #0f172a;
}

.hero-poster span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 12px 14px;
    border-radius: 18px;
    color: #ffffff;
    font-weight: 800;
    background: rgba(6, 78, 59, 0.78);
    backdrop-filter: blur(14px);
}

.hero-search-panel {
    position: relative;
    z-index: 3;
    margin-top: -72px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(18px);
}

.hero-search,
.catalog-filter {
    display: flex;
    gap: 12px;
}

.hero-search input,
.catalog-filter input,
.catalog-filter select {
    width: 100%;
    min-height: 52px;
    border: 1px solid #d1d5db;
    border-radius: 18px;
    padding: 0 18px;
    color: #0f172a;
    background: #ffffff;
    outline: none;
}

.hero-search input:focus,
.catalog-filter input:focus,
.catalog-filter select:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

.hero-search button {
    min-width: 112px;
    min-height: 52px;
    border: 0;
    border-radius: 18px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #059669, #0891b2);
}

.hero-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

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

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

.section-heading p {
    margin: 0 0 6px;
    color: #0f766e;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.section-heading h2,
.page-hero h1,
.feature-panel h2,
.rank-panel h2,
.story-card h2,
.ranking-column h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-heading a {
    color: #0f766e;
    font-weight: 900;
}

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

.category-card {
    position: relative;
    min-height: 170px;
    overflow: hidden;
    padding: 22px;
    border-radius: 28px;
    color: #ffffff;
    background-image: linear-gradient(180deg, rgba(4, 47, 46, 0.18), rgba(4, 47, 46, 0.92)), var(--category-image);
    background-size: cover;
    background-position: center;
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.14);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 55px rgba(15, 23, 42, 0.24);
}

.category-card span {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    color: #064e3b;
    font-size: 13px;
    font-weight: 900;
    background: #ccfbf1;
}

.category-card strong {
    position: absolute;
    right: 20px;
    bottom: 20px;
    left: 20px;
    font-size: 16px;
    line-height: 1.5;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #115e59);
}

.poster-link img {
    aspect-ratio: 2 / 3;
    height: 260px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.72));
}

.poster-type,
.poster-year,
.rank-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(15, 118, 110, 0.86);
    backdrop-filter: blur(8px);
}

.poster-type {
    left: 12px;
    top: 12px;
}

.poster-year {
    right: 12px;
    top: 12px;
}

.rank-badge {
    left: 12px;
    bottom: 12px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

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

.movie-card h3 {
    min-height: 44px;
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: #0f766e;
}

.movie-card p {
    min-height: 58px;
    margin: 10px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.card-tags span,
.detail-tags span {
    padding: 5px 8px;
    border-radius: 999px;
    color: #0f766e;
    font-size: 12px;
    font-weight: 800;
    background: #ccfbf1;
}

.compact-grid .poster-link img,
.hero-mini-grid .poster-link img {
    height: 220px;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 26px;
}

.feature-panel,
.rank-panel,
.ranking-column,
.story-card,
.category-overview-card {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.feature-panel {
    padding: 44px;
    color: #334155;
    background: radial-gradient(circle at top right, rgba(45, 212, 191, 0.22), transparent 34%), #ffffff;
}

.feature-panel p {
    color: #475569;
    font-size: 17px;
    line-height: 1.8;
}

.rank-panel,
.ranking-column {
    padding: 24px;
}

.rank-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
}

.rank-row:last-child {
    border-bottom: 0;
}

.rank-row:hover .rank-title {
    color: #0f766e;
}

.rank-num {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 12px;
    color: #064e3b;
    font-weight: 900;
    background: #ccfbf1;
}

.rank-title {
    overflow: hidden;
    color: #0f172a;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-meta {
    color: #64748b;
    font-size: 13px;
}

.page-main {
    padding: 48px 0 72px;
}

.page-hero {
    padding: 50px;
    border-radius: 36px;
    color: #ffffff;
    background: radial-gradient(circle at 12% 20%, rgba(45, 212, 191, 0.35), transparent 32%), linear-gradient(135deg, #064e3b, #0f766e 54%, #155e75);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.2);
}

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

.page-hero p:not(.eyebrow) {
    max-width: 780px;
    margin: 16px 0 0;
    color: #d1fae5;
    font-size: 18px;
    line-height: 1.8;
}

.category-hero .catalog-filter,
.search-filter {
    margin-top: 28px;
}

.catalog-grid {
    margin-top: 34px;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
}

.category-cover {
    min-height: 250px;
    border-radius: 24px;
    background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.62)), var(--category-image);
    background-size: cover;
    background-position: center;
}

.category-overview-card h2 {
    margin: 6px 0 12px;
    font-size: 26px;
}

.category-overview-card p {
    color: #64748b;
    line-height: 1.65;
}

.sample-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.sample-links a {
    padding: 7px 10px;
    border-radius: 999px;
    color: #0f766e;
    font-weight: 800;
    background: #ccfbf1;
}

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

.detail-main {
    padding-bottom: 80px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #052e2b;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(4, 47, 46, 0.98), rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.62)), var(--detail-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.08);
}

.detail-layout {
    position: relative;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    min-height: 620px;
    padding: 72px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 0 42px 90px rgba(0, 0, 0, 0.48);
}

.detail-poster img {
    aspect-ratio: 2 / 3;
    height: 450px;
    object-fit: cover;
    background: #0f172a;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #99f6e4;
    font-weight: 800;
}

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

.detail-copy h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 66px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.detail-copy p {
    max-width: 820px;
    margin: 22px 0 0;
    color: #d1fae5;
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

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

.player-section {
    padding-top: 64px;
}

.section-heading.plain {
    align-items: start;
    flex-direction: column;
    gap: 0;
}

.watch-player {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: #020617;
    box-shadow: 0 32px 70px rgba(15, 23, 42, 0.26);
}

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

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #064e3b;
    background: radial-gradient(circle at center, rgba(6, 78, 59, 0.08), rgba(2, 6, 23, 0.48));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    border-radius: 999px;
    color: #064e3b;
    font-size: 32px;
    background: linear-gradient(135deg, #a7f3d0, #67e8f9);
    box-shadow: 0 22px 50px rgba(45, 212, 191, 0.3);
}

.content-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding-top: 48px;
}

.story-card {
    padding: 30px;
}

.story-card p {
    color: #475569;
    font-size: 16px;
    line-height: 1.9;
}

.story-card p + p {
    margin-top: 14px;
}

.empty-state {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 30px auto 0;
    padding: 30px;
    border-radius: 24px;
    color: #64748b;
    text-align: center;
    background: #ffffff;
}

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

.site-footer {
    margin-top: 84px;
    color: #cbd5e1;
    background: #0f172a;
}

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

.footer-brand {
    display: inline-flex;
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

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

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

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

.footer-links a {
    padding: 7px 10px;
    border-radius: 999px;
    color: #ccfbf1;
    background: rgba(45, 212, 191, 0.1);
}

.footer-bottom {
    padding: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    text-align: center;
    color: #94a3b8;
}

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

@media (max-width: 1100px) {
    .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

    .ranking-grid,
    .content-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 72px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 24px;
        background: rgba(6, 95, 70, 0.98);
        box-shadow: 0 30px 60px rgba(15, 23, 42, 0.28);
    }

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

    .hero-slider {
        height: 780px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 34px;
    }

    .hero-poster {
        width: min(280px, 70vw);
        justify-self: center;
    }

    .hero-poster img {
        height: 360px;
    }

    .split-layout,
    .detail-layout,
    .category-overview-grid,
    .category-overview-card,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-layout {
        min-height: auto;
    }

    .detail-poster {
        width: min(280px, 75vw);
    }
}

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

    .brand-text strong {
        font-size: 18px;
    }

    .hero-slider {
        height: 760px;
    }

    .hero-content h1,
    .hero-content h2.hero-title,
    .detail-copy h1 {
        font-size: 36px;
    }

    .hero-summary,
    .detail-copy p,
    .page-hero p:not(.eyebrow) {
        font-size: 15px;
    }

    .hero-search-panel,
    .page-hero,
    .feature-panel,
    .rank-panel,
    .story-card {
        padding: 22px;
        border-radius: 24px;
    }

    .hero-search,
    .catalog-filter {
        flex-direction: column;
    }

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

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

    .poster-link img,
    .compact-grid .poster-link img,
    .hero-mini-grid .poster-link img {
        height: 230px;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 8px;
    }

    .rank-row {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .rank-meta {
        display: none;
    }
}
