:root {
    --green-900: #064e3b;
    --green-800: #065f46;
    --green-700: #047857;
    --green-600: #059669;
    --green-500: #10b981;
    --green-400: #34d399;
    --green-100: #d1fae5;
    --gray-950: #030712;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 16px 45px rgba(15, 23, 42, 0.14);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    background: #f8fafc;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: var(--white);
    background: linear-gradient(90deg, #16a34a, #10b981, #059669);
    box-shadow: 0 14px 34px rgba(4, 120, 87, 0.28);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 74px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 13px;
    color: var(--green-700);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.brand-text,
.footer-brand div {
    display: grid;
    line-height: 1.15;
}

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

.brand-text small,
.footer-brand small {
    color: var(--green-100);
    font-size: 12px;
}

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

.nav-link,
.mobile-link {
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 8px 10px;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input {
    width: 170px;
    min-height: 38px;
    padding: 0 14px;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    outline: none;
    backdrop-filter: blur(12px);
    transition: width 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus {
    width: 230px;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.23);
}

.header-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.82);
}

.header-search button,
.mobile-search button {
    min-height: 38px;
    padding: 0 14px;
    color: var(--green-700);
    border: 0;
    border-radius: 999px;
    background: var(--white);
    font-weight: 700;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    color: var(--white);
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
}

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

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

.mobile-link {
    display: block;
    padding: 10px 14px;
}

.mobile-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 8px;
}

.mobile-search input {
    width: 100%;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: var(--white);
    background: radial-gradient(circle at 25% 18%, rgba(167, 243, 208, 0.22), transparent 30%), linear-gradient(135deg, #052e16 0%, #065f46 42%, #10b981 100%);
}

.hero-slider::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 160px;
    background: linear-gradient(0deg, #f8fafc, transparent);
    pointer-events: none;
}

.hero-track {
    position: relative;
    min-height: 620px;
}

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

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

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
    filter: saturate(1.06) contrast(1.08);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 44, 34, 0.94), rgba(5, 95, 70, 0.78), rgba(16, 185, 129, 0.5));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 54px;
    align-items: center;
    min-height: 620px;
    padding: 88px 0 110px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 20px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: var(--green-100);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-content h1 {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: clamp(42px, 6vw, 74px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 700px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: var(--green-800);
    background: var(--white);
    box-shadow: 0 16px 34px rgba(4, 120, 87, 0.22);
}

.btn-soft {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.hero-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 26px 70px rgba(2, 44, 34, 0.38);
    backdrop-filter: blur(18px);
}

.hero-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: linear-gradient(135deg, #064e3b, #34d399);
}

.hero-card-body {
    padding: 18px;
}

.hero-card-body strong {
    display: block;
    margin-bottom: 6px;
    font-size: 20px;
}

.hero-card-body span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

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

.hero-dots button {
    width: 34px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
}

.hero-dots button.active {
    background: var(--white);
}

main {
    position: relative;
    z-index: 1;
}

.section {
    padding: 64px 0;
}

.section.white {
    background: var(--white);
}

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

.section-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-lead {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--gray-600);
}

.grid {
    display: grid;
    gap: 22px;
}

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

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

.feature-grid {
    grid-template-columns: 1.25fr 1fr;
}

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #064e3b, #10b981);
}

.poster-wrap img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.2s ease;
}

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

.poster-badge,
.poster-play {
    position: absolute;
    z-index: 2;
}

.poster-badge {
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--green-900);
    background: rgba(236, 253, 245, 0.92);
    font-size: 12px;
    font-weight: 800;
}

.poster-play {
    right: 12px;
    bottom: 12px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: var(--green-700);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.24);
}

.card-body {
    padding: 17px;
}

.card-body h2,
.rank-info h2,
.category-card h2 {
    margin: 0;
    color: var(--gray-900);
    font-size: 18px;
    line-height: 1.32;
}

.card-body h2 a:hover,
.rank-info h2 a:hover,
.category-card:hover h2 {
    color: var(--green-600);
}

.card-body p,
.rank-info p,
.category-card p {
    margin: 9px 0 0;
    color: var(--gray-600);
    font-size: 14px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-row span,
.meta-pill,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    color: var(--green-700);
    background: var(--green-100);
    font-size: 12px;
    font-weight: 700;
}

.card-meta,
.rank-info div,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
    color: var(--gray-500);
    font-size: 13px;
}

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 170px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card::before {
    content: "";
    position: absolute;
    inset: auto -30px -50px auto;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.14);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 16px;
    color: var(--white);
    background: linear-gradient(135deg, var(--green-600), var(--green-400));
}

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

.rank-item {
    display: grid;
    grid-template-columns: auto 96px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.rank-number {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--green-700), var(--green-400));
    font-weight: 900;
}

.rank-thumb {
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, #064e3b, #10b981);
}

.rank-thumb img {
    width: 96px;
    height: 128px;
    object-fit: cover;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(140px, 180px));
    gap: 14px;
    margin: 24px 0 32px;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.filter-panel label {
    display: grid;
    gap: 7px;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 700;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    outline: none;
    background: #f9fafb;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--green-500);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 30px 0 18px;
    color: var(--gray-500);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--green-700);
    font-weight: 700;
}

.detail-hero {
    overflow: hidden;
    color: var(--white);
    border-radius: 30px;
    background: radial-gradient(circle at 80% 10%, rgba(167, 243, 208, 0.2), transparent 28%), linear-gradient(135deg, #052e16, #065f46 48%, #10b981);
    box-shadow: var(--shadow-md);
}

.detail-hero-inner {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 36px;
    align-items: center;
    padding: 34px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, #064e3b, #10b981);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
}

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

.detail-copy h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.detail-copy p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 17px;
}

.detail-meta {
    color: rgba(255, 255, 255, 0.82);
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.player-section {
    margin-top: 34px;
    padding: 26px;
    border-radius: 28px;
    background: var(--gray-950);
    box-shadow: var(--shadow-md);
}

.video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000000;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    background: linear-gradient(135deg, rgba(3, 7, 18, 0.72), rgba(6, 95, 70, 0.36));
    z-index: 2;
}

.player-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-cover span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-radius: 999px;
    color: var(--green-800);
    background: var(--white);
    font-weight: 900;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

.content-card {
    padding: 28px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.content-card h2 {
    margin: 0 0 12px;
    color: var(--gray-900);
    font-size: 26px;
}

.content-card p {
    margin: 0;
    color: var(--gray-700);
}

.content-stack {
    display: grid;
    gap: 22px;
}

.page-hero {
    padding: 70px 0 48px;
    color: var(--white);
    background: radial-gradient(circle at 18% 12%, rgba(167, 243, 208, 0.23), transparent 34%), linear-gradient(135deg, #052e16, #047857, #10b981);
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.page-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(180deg, #1f2937, #111827);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 34px;
    padding: 54px 0;
}

.footer-brand {
    margin-bottom: 15px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 18px;
}

.site-footer p,
.site-footer li {
    color: #cbd5e1;
    font-size: 14px;
}

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

.site-footer a:hover {
    color: var(--green-400);
}

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

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

    .nav-toggle {
        display: inline-grid;
        place-items: center;
        margin-left: auto;
    }

    .hero-content,
    .detail-hero-inner,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .hero-card,
    .detail-poster {
        max-width: 330px;
    }

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

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

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

    .header-inner {
        min-height: 66px;
    }

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

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

    .hero-content {
        padding: 52px 0 96px;
        gap: 28px;
    }

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

    .section {
        padding: 44px 0;
    }

    .section-header {
        display: grid;
        gap: 14px;
    }

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

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

    .rank-item {
        grid-template-columns: auto 78px 1fr;
        gap: 12px;
    }

    .rank-thumb img {
        width: 78px;
        height: 104px;
    }

    .detail-hero-inner {
        padding: 18px;
    }

    .player-section,
    .content-card {
        padding: 16px;
        border-radius: 20px;
    }

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

@media (max-width: 480px) {
    .movie-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 1fr;
    }

    .rank-number {
        width: 38px;
        height: 38px;
    }

    .rank-thumb img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}
