:root {
    --green-950: #052e1b;
    --green-900: #064e2d;
    --green-800: #0f6b3b;
    --green-700: #15803d;
    --green-600: #16a34a;
    --green-500: #22c55e;
    --green-100: #dcfce7;
    --green-50: #f0fdf4;
    --ink: #111827;
    --muted: #64748b;
    --line: #e5e7eb;
    --card: #ffffff;
    --bg: #f8fafc;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, var(--green-50) 0%, #ffffff 36%, var(--bg) 100%);
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(90deg, var(--green-800), var(--green-600));
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(6, 78, 45, 0.25);
}

.nav-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.nav-link,
.mobile-link {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 650;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: #ffffff;
}

.nav-link:hover {
    transform: translateY(-1px);
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.header-search input,
.mobile-search input {
    width: 190px;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 10px 14px;
}

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

.header-search button,
.mobile-search button {
    border: 0;
    color: var(--green-800);
    background: #ffffff;
    padding: 10px 16px;
    font-weight: 750;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 8px 12px;
}

.mobile-nav {
    display: none;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px 18px;
    gap: 12px;
}

.mobile-nav.open {
    display: grid;
}

.mobile-search {
    width: 100%;
}

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

.hero-carousel {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    background: var(--green-950);
}

.hero-track,
.hero-slide,
.hero-slide img,
.hero-overlay {
    position: absolute;
    inset: 0;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 64px 20px 96px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

.hero-content h1 {
    max-width: 720px;
    margin: 18px 0 18px;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 1.02;
    font-weight: 900;
    text-shadow: 0 18px 38px rgba(0, 0, 0, 0.38);
}

.hero-content p {
    max-width: 700px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

.hero-badges,
.hero-tags,
.card-meta,
.tag-row,
.card-foot,
.detail-meta,
.filter-row,
.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-badges span,
.hero-tags span,
.tag-row span {
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
}

.hero-badges span {
    color: #ffffff;
    background: var(--green-600);
}

.hero-tags span {
    color: var(--green-100);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-actions {
    margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.filter-btn,
.pagination a,
.pagination span,
.search-submit {
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    color: #ffffff;
    background: var(--green-600);
    box-shadow: 0 16px 36px rgba(34, 197, 94, 0.28);
}

.primary-btn:hover,
.ghost-btn:hover,
.filter-btn:hover,
.search-submit:hover {
    transform: translateY(-2px);
}

.primary-btn:hover {
    background: var(--green-700);
}

.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(10px);
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

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

.hero-category-strip {
    position: absolute;
    right: max(20px, calc((100vw - 1180px) / 2));
    bottom: 30px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    max-width: 520px;
}

.hero-category-strip a {
    color: #ffffff;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.main-wrap,
.section-wrap,
.page-hero,
.footer-grid,
.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.section-wrap {
    padding-top: 56px;
    padding-bottom: 56px;
}

.section-wrap.soft {
    max-width: none;
    background: var(--green-50);
}

.section-wrap.soft > .inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.section-head h2,
.page-title h1,
.detail-title h1 {
    margin: 0;
    color: var(--ink);
    font-weight: 900;
    letter-spacing: -0.03em;
}

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

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

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

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

.movie-card,
.category-card,
.panel,
.wide-card,
.detail-info,
.search-panel {
    background: var(--card);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 18px;
    box-shadow: var(--soft-shadow);
}

.movie-card {
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--green-900), var(--green-600));
    overflow: hidden;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72) 100%);
}

.play-chip {
    position: absolute;
    left: 14px;
    bottom: 14px;
    color: #ffffff;
    background: var(--green-600);
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(22, 163, 74, 0.3);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.28);
}

.card-body {
    padding: 16px;
}

.card-meta {
    color: var(--muted);
    font-size: 13px;
    gap: 8px;
}

.card-meta span {
    display: inline-flex;
    align-items: center;
}

.card-meta span:not(:last-child)::after {
    content: "";
    width: 3px;
    height: 3px;
    margin-left: 8px;
    border-radius: 999px;
    background: #cbd5e1;
}

.card-body h3,
.wide-content h3 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.card-body h3 a:hover,
.wide-content h3 a:hover,
.text-link:hover {
    color: var(--green-700);
}

.card-body p,
.wide-content p,
.page-title p,
.category-card p,
.detail-info p,
.footer-grid p {
    color: var(--muted);
    line-height: 1.8;
}

.card-body p {
    margin: 0 0 12px;
    min-height: 52px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row span {
    color: var(--green-700);
    background: var(--green-50);
    border: 1px solid var(--green-100);
    font-size: 12px;
}

.card-foot {
    margin-top: 14px;
    justify-content: space-between;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.stats-strip {
    background: linear-gradient(90deg, var(--green-700), var(--green-500));
    color: #ffffff;
    padding: 52px 0;
}

.stats-grid {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    text-align: center;
}

.stats-grid strong {
    display: block;
    margin-bottom: 8px;
    font-size: clamp(30px, 4vw, 44px);
}

.stats-grid span {
    color: rgba(255, 255, 255, 0.78);
}

.page-hero {
    padding-top: 54px;
    padding-bottom: 42px;
}

.page-title {
    padding: 38px;
    border-radius: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--green-800), var(--green-500));
    box-shadow: var(--shadow);
}

.page-title h1 {
    color: #ffffff;
    font-size: clamp(32px, 5vw, 56px);
}

.page-title p {
    max-width: 760px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.85);
}

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

.category-card {
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card::after {
    content: "";
    position: absolute;
    right: -42px;
    top: -42px;
    width: 140px;
    height: 140px;
    border-radius: 999px;
    background: var(--green-50);
}

.category-card h2,
.category-card h3 {
    position: relative;
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 900;
}

.category-card p,
.category-card .text-link {
    position: relative;
}

.text-link {
    display: inline-flex;
    margin-top: 14px;
    color: var(--green-700);
    font-weight: 850;
}

.filter-panel {
    margin-bottom: 28px;
    padding: 18px;
}

.filter-row {
    gap: 12px;
}

.filter-label {
    color: var(--muted);
    font-weight: 800;
}

.filter-btn {
    border: 0;
    color: #334155;
    background: #f1f5f9;
    padding: 9px 15px;
    cursor: pointer;
}

.filter-btn.active {
    color: #ffffff;
    background: var(--green-600);
    box-shadow: 0 10px 22px rgba(22, 163, 74, 0.24);
}

.pagination {
    margin-top: 34px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    min-width: 42px;
    text-align: center;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid var(--line);
}

.pagination a:hover,
.pagination .current {
    color: #ffffff;
    background: var(--green-600);
    border-color: var(--green-600);
}

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

.wide-card {
    position: relative;
    display: grid;
    grid-template-columns: 124px 1fr;
    gap: 18px;
    padding: 16px;
    overflow: hidden;
}

.wide-poster {
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--green-900), var(--green-600));
}

.wide-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wide-content p {
    margin: 0 0 12px;
}

.wide-rank {
    position: absolute;
    right: 16px;
    top: 16px;
    color: var(--green-700);
    font-size: 28px;
    opacity: 0.18;
}

.search-panel {
    padding: 22px;
    margin-bottom: 28px;
}

.search-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-bottom: 18px;
}

.search-box input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 14px 18px;
    outline: 0;
}

.search-box input:focus {
    border-color: var(--green-500);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.search-submit {
    border: 0;
    color: #ffffff;
    background: var(--green-600);
    padding: 0 24px;
    cursor: pointer;
}

.empty-state {
    display: none;
    padding: 34px;
    text-align: center;
    color: var(--muted);
}

.detail-layout {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 20px 62px;
    display: grid;
    grid-template-columns: minmax(0, 2fr) 360px;
    gap: 28px;
}

.breadcrumbs {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 20px 0;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: var(--green-700);
}

.player-card {
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: var(--shadow);
}

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

.video-player video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
    width: 88px;
    height: 88px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(22, 163, 74, 0.92);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.detail-info {
    margin-top: 24px;
    padding: 28px;
}

.detail-title h1 {
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 14px;
}

.detail-meta {
    margin-bottom: 20px;
    color: var(--muted);
    font-weight: 700;
}

.detail-info h2,
.side-panel h2 {
    margin: 26px 0 10px;
    font-size: 24px;
    font-weight: 900;
}

.detail-info p {
    margin: 0 0 14px;
    font-size: 16px;
}

.side-panel {
    padding: 20px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--soft-shadow);
}

.side-panel h2 {
    margin-top: 0;
}

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

.side-item {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 12px;
    align-items: center;
}

.side-item img {
    width: 78px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--green-900), var(--green-600));
}

.side-item h3 {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.35;
}

.side-item p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    margin-top: 40px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--green-950), var(--green-800));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px;
    padding-top: 46px;
    padding-bottom: 36px;
}

.footer-brand {
    margin-bottom: 14px;
    font-size: 20px;
}

.footer-grid p,
.footer-grid a {
    color: rgba(255, 255, 255, 0.76);
}

.footer-grid h3 {
    margin: 0 0 16px;
}

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

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

.footer-bottom {
    padding-top: 18px;
    padding-bottom: 24px;
    color: rgba(255, 255, 255, 0.64);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 1024px) {
    .grid,
    .grid.three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .hero-category-strip {
        display: none;
    }

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

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

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

    .nav-wrap {
        gap: 12px;
    }

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

    .hero-carousel {
        height: 78vh;
        min-height: 560px;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.84) 100%);
    }

    .hero-content {
        padding-top: 44px;
        padding-bottom: 80px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        max-width: 280px;
    }

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

    .section-wrap {
        padding-top: 38px;
        padding-bottom: 38px;
    }

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

    .page-title {
        padding: 28px;
        border-radius: 22px;
    }

    .wide-card {
        grid-template-columns: 96px 1fr;
    }

    .search-box {
        grid-template-columns: 1fr;
    }

    .search-submit {
        padding: 13px 20px;
    }
}

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

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

    .detail-info {
        padding: 22px;
    }

    .play-button {
        width: 72px;
        height: 72px;
        font-size: 28px;
    }

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