:root {
    --green-950: #052e16;
    --green-900: #064e3b;
    --green-800: #065f46;
    --green-700: #047857;
    --green-600: #059669;
    --green-500: #10b981;
    --green-100: #d1fae5;
    --green-50: #ecfdf5;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --surface: #ffffff;
    --soft: #f7fbf8;
    --shadow: 0 20px 45px rgba(6, 78, 59, 0.16);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 34%, #f9fafb 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
    font: inherit;
}

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

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

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

.brand-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.desktop-nav {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    font-weight: 650;
    font-size: 15px;
}

.desktop-nav a,
.mobile-panel a {
    color: rgba(255, 255, 255, 0.92);
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(6, 95, 70, 0.78);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.nav-search input,
.mobile-panel input,
.local-search input,
.search-page-form input {
    border: 0;
    outline: 0;
}

.nav-search input {
    width: 190px;
    color: #ffffff;
    padding: 8px 10px;
    background: transparent;
}

.nav-search input::placeholder,
.mobile-panel input::placeholder {
    color: rgba(209, 250, 229, 0.72);
}

.nav-search button,
.mobile-panel button,
.search-page-form button {
    border: 0;
    color: #065f46;
    background: #ffffff;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 800;
    cursor: pointer;
}

.nav-toggle {
    display: none;
    color: #ffffff;
    border: 0;
    border-radius: 12px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.12);
}

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

.mobile-panel.is-open {
    display: grid;
    gap: 12px;
}

.mobile-panel form {
    display: flex;
    gap: 8px;
}

.mobile-panel input {
    min-width: 0;
    flex: 1;
    color: #ffffff;
    border-radius: 999px;
    padding: 11px 14px;
    background: rgba(6, 95, 70, 0.84);
}

.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    color: #ffffff;
    background: var(--green-950);
}

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

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.08) contrast(1.05);
}

.hero-shade {
    background:
        radial-gradient(circle at 80% 18%, rgba(16, 185, 129, 0.34), transparent 32%),
        linear-gradient(90deg, rgba(5, 46, 22, 0.95), rgba(6, 95, 70, 0.72) 45%, rgba(5, 46, 22, 0.48)),
        linear-gradient(0deg, rgba(5, 46, 22, 0.92), rgba(5, 46, 22, 0.06));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    min-height: 650px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 380px;
    align-items: center;
    gap: 48px;
    padding: 66px 0;
}

.eyebrow,
.section-kicker {
    margin: 0 0 12px;
    color: var(--green-600);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #bbf7d0;
}

.hero h1 {
    max-width: 780px;
    margin: 0 0 22px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.06em;
    text-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.hero-desc {
    max-width: 720px;
    margin: 0 0 26px;
    color: rgba(236, 253, 245, 0.92);
    font-size: clamp(17px, 2vw, 23px);
    line-height: 1.75;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    color: #047857;
    border-radius: 999px;
    background: #d1fae5;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

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

.primary-btn,
.ghost-btn,
.watch-link {
    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-btn {
    color: #065f46;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(255, 255, 255, 0.2);
}

.ghost-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

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

.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
}

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

.hero-card span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    color: #ffffff;
    border-radius: 999px;
    padding: 11px 14px;
    text-align: center;
    font-weight: 850;
    background: rgba(6, 78, 59, 0.78);
    backdrop-filter: blur(10px);
}

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

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

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

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

.section-light {
    width: 100%;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(180deg, #ffffff, #f0fdf4);
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-head h2,
.page-hero h1,
.detail-info h1,
.content-main h2,
.detail-side h2,
.search-result-head h2 {
    margin: 0;
    color: var(--ink);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.section-head a,
.panel-title a,
.movie-stats a {
    color: var(--green-700);
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #064e3b, #10b981);
}

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

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

.movie-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    color: #ffffff;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 850;
    background: rgba(5, 150, 105, 0.92);
}

.movie-info {
    padding: 17px;
}

.movie-meta-line,
.movie-stats,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    color: var(--muted);
    font-size: 13px;
}

.movie-info h3 {
    margin: 9px 0 8px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-info p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-stats {
    justify-content: space-between;
    margin-top: 14px;
}

.category-band {
    width: 100%;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
    background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.24), transparent 36%), linear-gradient(90deg, #ecfdf5, #ffffff);
}

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

.category-tile,
.category-card-large {
    display: grid;
    gap: 12px;
    min-height: 148px;
    padding: 22px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(6, 78, 59, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-card-large:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-tile strong {
    color: var(--green-800);
    font-size: 20px;
    font-weight: 950;
}

.category-tile span,
.category-card-large h2 {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.7;
}

.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
}

.rank-panel {
    position: sticky;
    top: 92px;
    align-self: start;
    padding: 22px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    font-size: 22px;
    font-weight: 950;
}

.rank-item {
    display: grid;
    grid-template-columns: 34px 64px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

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

.rank-no {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--green-600), var(--green-900));
    font-weight: 950;
}

.rank-item img {
    width: 64px;
    height: 54px;
    border-radius: 14px;
    object-fit: cover;
}

.rank-text {
    min-width: 0;
}

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

.rank-text strong {
    font-size: 15px;
}

.rank-text em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.page-hero,
.detail-hero {
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 12%, rgba(16, 185, 129, 0.36), transparent 32%),
        linear-gradient(135deg, var(--green-950), var(--green-700));
}

.page-hero {
    padding: 74px max(16px, calc((100% - 1180px) / 2));
}

.page-hero h1 {
    color: #ffffff;
    font-size: clamp(36px, 5vw, 64px);
}

.page-hero p:not(.section-kicker) {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(236, 253, 245, 0.9);
    font-size: 18px;
    line-height: 1.8;
}

.local-search,
.search-page-form {
    display: flex;
    max-width: 720px;
    margin-top: 26px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.local-search input,
.search-page-form input {
    min-width: 0;
    flex: 1;
    color: #ffffff;
    padding: 13px 16px;
    background: transparent;
}

.local-search input::placeholder,
.search-page-form input::placeholder {
    color: rgba(236, 253, 245, 0.76);
}

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

.category-card-large {
    min-height: 240px;
}

.category-card-large p {
    margin: 0 0 8px;
    color: var(--green-700);
    font-size: 24px;
    font-weight: 950;
}

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mini-links a {
    color: var(--green-800);
    border-radius: 999px;
    padding: 7px 11px;
    background: #ecfdf5;
    font-size: 13px;
    font-weight: 800;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 56px 120px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

.ranking-row h2 {
    margin: 0 0 8px;
    font-size: 21px;
}

.ranking-row p {
    margin: 0 0 10px;
    color: #4b5563;
    line-height: 1.7;
}

.ranking-no {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--green-500), var(--green-900));
    font-size: 20px;
    font-weight: 950;
}

.ranking-poster img {
    width: 120px;
    height: 86px;
    border-radius: 18px;
    object-fit: cover;
}

.watch-link {
    color: #ffffff;
    background: var(--green-700);
}

.search-result-head {
    margin-bottom: 24px;
}

.detail-hero {
    padding: 34px max(16px, calc((100% - 1180px) / 2)) 62px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: rgba(236, 253, 245, 0.82);
    font-size: 14px;
}

.breadcrumb a {
    color: #ffffff;
    font-weight: 800;
}

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

.player-card {
    overflow: hidden;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.main-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #000000;
    cursor: pointer;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

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

.play-orb {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #065f46;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
    font-size: 30px;
    transform: translate(-50%, -50%);
}

.detail-info {
    color: #ffffff;
}

.detail-info .section-kicker {
    color: #bbf7d0;
}

.detail-info h1 {
    color: #ffffff;
    font-size: clamp(34px, 5vw, 58px);
}

.lead-text {
    margin: 18px 0;
    color: rgba(236, 253, 245, 0.94);
    font-size: 18px;
    line-height: 1.85;
}

.detail-meta {
    color: rgba(236, 253, 245, 0.86);
}

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

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

.content-main,
.detail-side {
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
}

.content-main {
    padding: 34px;
}

.content-main h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.content-main p {
    margin: 0 0 30px;
    color: #374151;
    line-height: 2;
    font-size: 16px;
}

.detail-side {
    align-self: start;
    padding: 26px;
}

.detail-side h2 {
    margin-bottom: 18px;
    font-size: 24px;
}

.detail-side dl {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    margin: 0;
}

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

.detail-side dd {
    margin: 0;
    color: #111827;
}

.site-footer {
    color: rgba(255, 255, 255, 0.82);
    background: #111827;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0 34px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    color: #ffffff;
    margin-bottom: 14px;
}

.footer-inner p {
    max-width: 450px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(255, 255, 255, 0.08);
}

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.58);
    text-align: center;
}

.is-filtered-out {
    display: none !important;
}

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

    .nav-wrap {
        justify-content: space-between;
    }

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

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

    .hero-card {
        display: none;
    }

    .rank-panel {
        position: static;
    }

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

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

@media (max-width: 760px) {
    .hero,
    .hero-content {
        min-height: 590px;
    }

    .hero-content {
        padding: 46px 0 72px;
    }

    .hero-actions {
        gap: 10px;
    }

    .primary-btn,
    .ghost-btn {
        width: 100%;
    }

    .section,
    .section-light,
    .category-band {
        padding-top: 46px;
        padding-bottom: 46px;
    }

    .section-head {
        align-items: start;
        flex-direction: column;
    }

    .movie-grid,
    .small-grid,
    .category-grid,
    .category-large-grid {
        grid-template-columns: 1fr;
    }

    .ranking-row {
        grid-template-columns: 42px 82px minmax(0, 1fr);
    }

    .ranking-row .watch-link {
        grid-column: 1 / -1;
    }

    .ranking-poster img {
        width: 82px;
        height: 72px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

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