:root {
    color-scheme: light;
    --green-950: #052e1b;
    --green-900: #064e3b;
    --green-800: #065f46;
    --green-700: #047857;
    --green-600: #059669;
    --green-500: #10b981;
    --emerald-50: #ecfdf5;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --white: #ffffff;
    --shadow-soft: 0 18px 55px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--slate-900);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 40%, #ecfdf5 100%);
}

body.nav-open {
    overflow: hidden;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    color: var(--white);
    background: linear-gradient(90deg, var(--green-900), var(--green-700), #0f766e);
    box-shadow: 0 12px 35px rgba(6, 78, 59, 0.28);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
}

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

.brand-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: var(--green-900);
    background: linear-gradient(135deg, #bbf7d0, #ffffff);
    box-shadow: 0 8px 22px rgba(255, 255, 255, 0.2);
}

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

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

.nav-link,
.mobile-nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 650;
    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: var(--white);
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--white);
}

.mobile-nav {
    display: none;
    padding: 10px 16px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

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

.hero-slider {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(115deg, var(--green-950), var(--green-800), #0f766e);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-bg,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-bg {
    background-position: center;
    background-size: cover;
    filter: blur(3px) saturate(1.1);
    opacity: 0.22;
    transform: scale(1.04);
}

.hero-shade {
    background:
        radial-gradient(circle at 78% 20%, rgba(16, 185, 129, 0.42), transparent 34%),
        linear-gradient(90deg, rgba(2, 44, 34, 0.95) 0%, rgba(6, 78, 59, 0.82) 48%, rgba(15, 118, 110, 0.62) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 52px;
    align-items: center;
    min-height: 560px;
    padding: 72px 0 118px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 16px;
    padding: 7px 14px;
    border-radius: 999px;
    color: #bbf7d0;
    background: rgba(255, 255, 255, 0.14);
    font-size: 14px;
    font-weight: 750;
    backdrop-filter: blur(12px);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0 0 18px;
    font-weight: 850;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.hero-copy h1 {
    max-width: 740px;
    font-size: clamp(42px, 7vw, 76px);
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 26px;
    color: #dcfce7;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.7;
}

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

.hero-tags span,
.card-meta span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: var(--white);
    background: rgba(255, 255, 255, 0.17);
}

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

.primary-btn,
.ghost-btn,
.mini-btn,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    padding: 14px 28px;
    color: var(--white);
    background: linear-gradient(135deg, var(--green-500), var(--green-700));
    box-shadow: 0 18px 30px rgba(16, 185, 129, 0.28);
}

.ghost-btn {
    padding: 12px 26px;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
}

.primary-btn:hover,
.ghost-btn:hover,
.mini-btn:hover,
.text-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16);
}

.hero-poster {
    position: relative;
    display: block;
    min-height: 470px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.32);
}

.hero-poster img {
    height: 470px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-poster:hover img {
    transform: scale(1.05);
}

.hero-thumbbar {
    position: absolute;
    z-index: 5;
    right: 0;
    bottom: 30px;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.hero-thumb {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(18px);
    cursor: pointer;
    text-align: left;
}

.hero-thumb img {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
}

.hero-thumb span {
    overflow: hidden;
    font-size: 13px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-thumb.is-active {
    color: var(--white);
    background: rgba(16, 185, 129, 0.38);
    border-color: rgba(187, 247, 208, 0.75);
}

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

.section-soft {
    background: linear-gradient(180deg, var(--emerald-50), var(--white));
}

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

.section-heading h2 {
    margin: 0;
    color: var(--slate-900);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 850;
    letter-spacing: -0.03em;
}

.section-heading p {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--slate-600);
    line-height: 1.8;
}

.section-more,
.text-link {
    color: var(--green-700);
    font-weight: 800;
}

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

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

.movie-card,
.movie-list-card,
.rank-card,
.category-card-large,
.side-panel,
.detail-article,
.filter-panel {
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--slate-100);
}

.movie-card-featured .poster-wrap {
    aspect-ratio: 16 / 11;
}

.poster-wrap img,
.list-cover img,
.rank-cover img,
.category-card-cover img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .poster-wrap img,
.movie-list-card:hover .list-cover img,
.rank-card:hover .rank-cover img,
.category-card-large:hover .category-card-cover img {
    transform: scale(1.07);
}

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 28%, rgba(2, 6, 23, 0.7) 100%);
}

.play-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(16, 185, 129, 0.86);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-mark,
.movie-list-card:hover .play-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.corner-label {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(2, 6, 23, 0.72);
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    padding: 18px;
}

.card-body h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
}

.card-body h3 a:hover,
.list-title:hover,
.rank-info h2 a:hover {
    color: var(--green-700);
}

.card-body p,
.list-content p,
.rank-info p {
    margin: 0 0 14px;
    color: var(--slate-600);
    line-height: 1.65;
}

.card-meta span {
    color: var(--slate-600);
    background: var(--slate-100);
}

.tag-row {
    margin-top: 12px;
}

.tag-row span {
    color: var(--green-800);
    background: var(--emerald-50);
}

.ranking-list,
.rank-list {
    display: grid;
    gap: 16px;
}

.movie-list-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    overflow: hidden;
    border-radius: var(--radius-md);
}

.list-cover {
    position: relative;
    overflow: hidden;
    min-height: 150px;
}

.list-content {
    padding: 18px 20px;
}

.list-title {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 850;
}

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

.category-tile {
    position: relative;
    display: grid;
    min-height: 210px;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    isolation: isolate;
}

.category-tile img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform 0.35s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 44, 34, 0.88));
}

.category-tile strong,
.category-tile em {
    align-self: end;
    padding: 0 18px;
    color: var(--white);
}

.category-tile strong {
    margin-top: auto;
    font-size: 20px;
    font-style: normal;
    font-weight: 850;
}

.category-tile em {
    padding-bottom: 18px;
    color: #dcfce7;
    font-size: 13px;
    font-style: normal;
    line-height: 1.55;
}

.page-main {
    min-height: 70vh;
}

.page-hero,
.detail-hero {
    color: var(--white);
    background:
        radial-gradient(circle at 82% 12%, rgba(16, 185, 129, 0.42), transparent 30%),
        linear-gradient(120deg, var(--green-950), var(--green-800), #0f766e);
}

.page-hero {
    padding: 78px 0 70px;
}

.compact-hero {
    padding-top: 46px;
}

.page-hero h1 {
    max-width: 860px;
    font-size: clamp(36px, 6vw, 62px);
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #dcfce7;
    font-size: 19px;
    line-height: 1.8;
}

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

.breadcrumb a:hover {
    color: var(--white);
}

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

.category-card-large {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.category-card-cover {
    display: block;
    height: 100%;
    min-height: 190px;
    overflow: hidden;
}

.category-card-large > div {
    padding: 22px 22px 22px 0;
}

.category-card-large h2 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 850;
}

.category-card-large p {
    color: var(--slate-600);
    line-height: 1.75;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 16px;
    align-items: end;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: var(--radius-md);
}

.search-field {
    display: grid;
    gap: 8px;
    color: var(--slate-700);
    font-weight: 800;
}

.search-field input,
.filter-selects select {
    width: 100%;
    height: 46px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    color: var(--slate-900);
    background: var(--slate-50);
    font: inherit;
    outline: none;
}

.search-field input {
    padding: 0 16px;
}

.filter-selects {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-selects select {
    min-width: 150px;
    padding: 0 12px;
}

.empty-state {
    display: none;
    padding: 44px 0;
    color: var(--slate-600);
    text-align: center;
    font-weight: 800;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 68px 132px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: var(--radius-md);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    color: var(--white);
    background: linear-gradient(135deg, var(--green-500), var(--green-800));
    font-size: 22px;
    font-weight: 900;
}

.rank-cover {
    display: block;
    height: 88px;
    overflow: hidden;
    border-radius: 14px;
}

.rank-info h2 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 850;
}

.mini-btn {
    padding: 10px 18px;
    color: var(--white);
    background: var(--green-700);
}

.detail-hero {
    padding: 42px 0 58px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 34px;
    align-items: center;
}

.player-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 28px 75px rgba(0, 0, 0, 0.34);
    aspect-ratio: 16 / 9;
}

.movie-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    object-fit: contain;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.72));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.big-play {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    color: var(--green-900);
    background: #bbf7d0;
    font-size: 34px;
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.35);
}

.detail-copy h1 {
    font-size: clamp(32px, 4.8vw, 54px);
}

.detail-one-line {
    color: #dcfce7;
    font-size: 18px;
    line-height: 1.8;
}

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

.detail-meta div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.13);
}

.detail-meta dt {
    color: #bbf7d0;
    font-size: 12px;
    font-weight: 800;
}

.detail-meta dd {
    margin: 4px 0 0;
    font-weight: 850;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 26px;
    align-items: start;
}

.detail-article,
.side-panel {
    border-radius: var(--radius-md);
    padding: 28px;
}

.detail-article h2,
.side-panel h2 {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 850;
}

.detail-article p {
    margin: 0 0 24px;
    color: var(--slate-700);
    font-size: 17px;
    line-height: 1.95;
}

.side-panel {
    display: grid;
    gap: 12px;
    position: sticky;
    top: 90px;
}

.side-panel a {
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--green-800);
    background: var(--emerald-50);
    font-weight: 800;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(180deg, var(--slate-800), var(--slate-950));
}

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

.footer-grid h2 {
    margin: 0 0 16px;
    color: var(--white);
    font-size: 18px;
    font-weight: 850;
}

.footer-grid p,
.footer-grid li {
    color: #cbd5e1;
    line-height: 1.8;
}

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

.footer-grid a:hover {
    color: #86efac;
}

.footer-brand {
    margin-bottom: 14px;
    color: var(--white);
    font-size: 20px;
}

.footer-bottom {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    text-align: center;
}

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

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

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

    .hero-content,
    .detail-grid,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .hero-content {
        min-height: auto;
        padding-top: 60px;
    }

    .hero-poster {
        display: none;
    }

    .hero-thumbbar,
    .movie-grid,
    .featured-grid,
    .category-grid,
    .category-list-large,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .side-panel {
        position: static;
    }
}

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

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

    .hero-slider {
        min-height: 620px;
    }

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

    .hero-thumbbar,
    .movie-grid,
    .featured-grid,
    .category-grid,
    .category-list-large,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-thumbbar {
        display: none;
    }

    .section-heading {
        display: grid;
        align-items: start;
    }

    .movie-list-card,
    .category-card-large,
    .rank-card {
        grid-template-columns: 1fr;
    }

    .list-cover,
    .rank-cover,
    .category-card-cover {
        min-height: 210px;
    }

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

    .filter-selects {
        display: grid;
    }
}
