:root {
    color-scheme: light;
    --site-emerald: #059669;
    --site-emerald-dark: #047857;
    --site-gray-950: #111827;
    --site-gray-900: #1f2937;
    --site-gray-700: #374151;
    --site-gray-500: #6b7280;
    --site-gray-100: #f3f4f6;
    --site-white: #ffffff;
    --site-blue: #2563eb;
    --site-radius-lg: 1rem;
    --site-radius-xl: 1.5rem;
    --site-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --site-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    --site-shadow-hover: 0 22px 55px rgba(15, 23, 42, 0.18);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 38%, #f8fafc 100%);
    color: var(--site-gray-900);
}

img {
    background-color: #e5e7eb;
}

.site-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--site-shadow-sm);
    backdrop-filter: blur(14px);
}

.site-nav {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-inner {
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--site-gray-950);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 2.15rem;
    height: 2.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981, #2563eb);
    box-shadow: 0 12px 24px rgba(5, 150, 105, 0.28);
}

.brand-text {
    font-size: 1.18rem;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.35rem;
}

.nav-links a,
.mobile-menu a {
    color: var(--site-gray-700);
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover,
.mobile-menu a:hover {
    color: var(--site-emerald);
}

.mobile-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    color: var(--site-gray-700);
    transition: background-color 0.2s ease;
}

.mobile-toggle:hover {
    background: #f3f4f6;
}

.mobile-menu {
    display: none;
    padding: 0.75rem 0 1rem;
    border-top: 1px solid #e5e7eb;
}

.mobile-menu.is-open {
    display: grid;
    gap: 0.35rem;
}

.mobile-menu a {
    display: block;
    padding: 0.72rem 0.9rem;
    border-radius: 0.75rem;
}

.mobile-menu a:hover {
    background: #f9fafb;
}

.container {
    width: min(100% - 2rem, 80rem);
    margin: 0 auto;
}

.section-stack {
    display: grid;
    gap: 5rem;
    padding: 4rem 0 5rem;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-title {
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.15;
    font-weight: 800;
    color: var(--site-gray-950);
    letter-spacing: -0.03em;
}

.section-subtitle {
    max-width: 44rem;
    color: var(--site-gray-500);
    margin-top: 0.65rem;
    line-height: 1.75;
}

.section-line {
    height: 0.25rem;
    flex: 1 1 auto;
    border-radius: 999px;
    background: linear-gradient(90deg, #10b981, rgba(16, 185, 129, 0));
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--site-emerald);
    font-weight: 700;
}

.text-link:hover {
    color: var(--site-emerald-dark);
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.9s ease;
}

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

.hero-bg {
    position: absolute;
    inset: -1.5rem;
    width: calc(100% + 3rem);
    height: calc(100% + 3rem);
    object-fit: cover;
    filter: blur(20px) brightness(0.42);
    transform: scale(1.1);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.55) 42%, rgba(17, 24, 39, 0.12) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(100% - 2rem, 80rem);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 46rem;
    color: #ffffff;
    display: grid;
    gap: 1.35rem;
}

.hero-kicker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.7rem;
    color: #d1d5db;
    font-size: 0.94rem;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #10b981;
    color: #ffffff;
    padding: 0.35rem 0.8rem;
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    font-weight: 900;
}

.hero-desc {
    color: #e5e7eb;
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.hero-arrow,
.hero-dot {
    border: 0;
}

.hero-arrow {
    width: 2.65rem;
    height: 2.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    transition: background-color 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.32);
}

.hero-dots {
    display: flex;
    gap: 0.45rem;
}

.hero-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    transition: width 0.25s ease, background-color 0.25s ease;
}

.hero-dot.is-active {
    width: 2rem;
    background: #ffffff;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.75rem;
    border-radius: 0.85rem;
    padding: 0.8rem 1.35rem;
    font-weight: 800;
    line-height: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px) scale(1.02);
}

.btn-primary {
    background: var(--site-emerald);
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(5, 150, 105, 0.28);
}

.btn-primary:hover {
    background: var(--site-emerald-dark);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.btn-soft {
    background: #ecfdf5;
    color: #047857;
}

.feature-panel {
    border-radius: 1.8rem;
    padding: clamp(1.25rem, 3vw, 3rem);
    background: linear-gradient(135deg, #ecfdf5 0%, #eff6ff 100%);
    box-shadow: inset 0 2px 12px rgba(15, 23, 42, 0.06);
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
}

.movie-grid.compact {
    gap: 1.1rem;
}

.movie-card {
    position: relative;
    display: block;
    min-width: 0;
    color: inherit;
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 1rem;
    background: #e5e7eb;
    box-shadow: var(--site-shadow-sm);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover .poster-wrap {
    transform: translateY(-0.35rem);
    box-shadow: var(--site-shadow-hover);
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    padding: 1rem;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.42) 45%, rgba(0, 0, 0, 0) 100%);
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.poster-shade p {
    font-size: 0.88rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-badge,
.card-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
}

.card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    padding: 0.32rem 0.68rem;
    color: #ffffff;
    background: rgba(16, 185, 129, 0.92);
    backdrop-filter: blur(5px);
}

.card-tag {
    padding: 0.25rem 0.58rem;
    color: #047857;
    background: #d1fae5;
}

.movie-card-body {
    display: grid;
    gap: 0.35rem;
    padding-top: 0.85rem;
}

.movie-card-title {
    color: var(--site-gray-950);
    font-size: 1.03rem;
    font-weight: 800;
    line-height: 1.35;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card:hover .movie-card-title {
    color: var(--site-emerald);
}

.movie-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    color: var(--site-gray-500);
    font-size: 0.88rem;
}

.movie-card-desc {
    color: var(--site-gray-500);
    font-size: 0.9rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.wide-card-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}

.wide-card {
    display: flex;
    gap: 1rem;
    min-width: 0;
    background: #ffffff;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: var(--site-shadow-sm);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.wide-card:hover {
    transform: translateY(-0.15rem);
    box-shadow: var(--site-shadow);
}

.wide-card img {
    width: 8rem;
    height: 8rem;
    flex: 0 0 8rem;
    object-fit: cover;
    border-radius: 0.75rem;
}

.wide-card-body {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 0.4rem;
}

.rank-list {
    display: grid;
    gap: 0.8rem;
}

.rank-item {
    display: grid;
    grid-template-columns: 3.2rem 6rem 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: var(--site-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-0.12rem);
    box-shadow: var(--site-shadow);
}

.rank-num {
    width: 2.2rem;
    height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #10b981, #2563eb);
}

.rank-item img {
    width: 6rem;
    height: 4.2rem;
    border-radius: 0.65rem;
    object-fit: cover;
}

.page-hero {
    padding: clamp(3.5rem, 7vw, 6rem) 0 3rem;
    background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.18), transparent 38%), linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.page-hero h1 {
    max-width: 56rem;
    font-size: clamp(2.2rem, 5vw, 4.1rem);
    line-height: 1.05;
    font-weight: 900;
    color: var(--site-gray-950);
    letter-spacing: -0.055em;
}

.page-hero p {
    max-width: 50rem;
    margin-top: 1rem;
    color: var(--site-gray-500);
    line-height: 1.8;
    font-size: 1.05rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--site-gray-500);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

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

.category-overview {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.2rem;
}

.category-card {
    display: grid;
    gap: 0.85rem;
    min-height: 13rem;
    padding: 1.5rem;
    border-radius: 1.35rem;
    color: #ffffff;
    background: linear-gradient(135deg, #059669, #2563eb);
    box-shadow: var(--site-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--site-shadow-hover);
}

.category-card h2 {
    font-size: 1.5rem;
    font-weight: 900;
}

.category-card p {
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.7;
}

.category-card span {
    align-self: end;
    font-weight: 800;
}

.filter-panel {
    margin-bottom: 2rem;
    border-radius: 1.35rem;
    padding: 1rem;
    background: #ffffff;
    box-shadow: var(--site-shadow-sm);
}

.filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
}

.search-input,
.filter-select {
    width: 100%;
    height: 3rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.9rem;
    padding: 0 0.95rem;
    color: var(--site-gray-900);
    background: #ffffff;
    outline: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus,
.filter-select:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.filter-pill {
    border-radius: 999px;
    padding: 0.45rem 0.78rem;
    color: #047857;
    background: #ecfdf5;
    font-size: 0.88rem;
    font-weight: 800;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.filter-pill.is-active,
.filter-pill:hover {
    color: #ffffff;
    background: var(--site-emerald);
}

.is-hidden {
    display: none !important;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    padding: 3rem 0 5rem;
}

.player-card {
    overflow: hidden;
    border-radius: 1.5rem;
    background: #050816;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.34);
}

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

.player-stage video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #050816;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.85rem;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(5, 8, 22, 0.58), rgba(5, 8, 22, 0.18));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    width: 4.6rem;
    height: 4.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #10b981;
    box-shadow: 0 18px 36px rgba(16, 185, 129, 0.34);
}

.player-info {
    padding: 1.15rem 1.25rem 1.35rem;
    color: #ffffff;
    background: linear-gradient(90deg, rgba(5, 150, 105, 0.16), rgba(37, 99, 235, 0.16));
}

.player-info h1 {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    line-height: 1.15;
    font-weight: 900;
}

.player-info p {
    margin-top: 0.7rem;
    color: #d1d5db;
    line-height: 1.75;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

.detail-cover {
    overflow: hidden;
    border-radius: 1.25rem;
    background: #e5e7eb;
    box-shadow: var(--site-shadow);
}

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

.detail-card {
    border-radius: 1.25rem;
    padding: clamp(1.1rem, 3vw, 2rem);
    background: #ffffff;
    box-shadow: var(--site-shadow-sm);
}

.detail-card h2 {
    margin-bottom: 0.85rem;
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--site-gray-950);
}

.detail-card p {
    color: var(--site-gray-700);
    line-height: 1.9;
}

.meta-list {
    display: grid;
    gap: 0.75rem;
}

.meta-row {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: 0.65rem;
    color: var(--site-gray-700);
}

.meta-row strong {
    color: var(--site-gray-950);
}

.footer {
    margin-top: auto;
    background: #111827;
    color: #d1d5db;
}

.footer-inner {
    width: min(100% - 2rem, 80rem);
    margin: 0 auto;
    padding: 3rem 0;
    display: grid;
    gap: 2rem;
}

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

.footer h2,
.footer h3 {
    color: #ffffff;
    font-weight: 800;
}

.footer p,
.footer a {
    color: #9ca3af;
    line-height: 1.75;
}

.footer a:hover {
    color: #34d399;
}

.footer-links {
    display: grid;
    gap: 0.55rem;
    margin-top: 1rem;
}

.footer-bottom {
    border-top: 1px solid #1f2937;
    padding-top: 1.4rem;
    color: #9ca3af;
    font-size: 0.9rem;
}

@media (min-width: 640px) {
    .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (min-width: 768px) {
    .filter-row {
        grid-template-columns: minmax(18rem, 1.5fr) repeat(3, minmax(8rem, 0.65fr));
    }

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

    .detail-grid {
        grid-template-columns: 18rem minmax(0, 1fr);
        align-items: start;
    }

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

@media (min-width: 1024px) {
    .site-nav {
        padding: 0 2rem;
    }

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

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

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

    .detail-layout {
        gap: 3rem;
    }
}

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

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

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

    .hero-content {
        align-items: flex-end;
        padding-bottom: 6rem;
    }

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

    .section-line {
        width: 100%;
        flex: none;
    }
}

@media (max-width: 560px) {
    .container,
    .hero-content,
    .footer-inner {
        width: min(100% - 1rem, 80rem);
    }

    .brand-text {
        font-size: 1rem;
    }

    .hero-controls {
        bottom: 1.2rem;
    }

    .movie-grid {
        gap: 0.95rem;
    }

    .poster-wrap {
        border-radius: 0.85rem;
    }

    .wide-card {
        gap: 0.8rem;
        padding: 0.8rem;
    }

    .wide-card img {
        width: 6.2rem;
        height: 6.2rem;
        flex-basis: 6.2rem;
    }

    .rank-item {
        grid-template-columns: 2.6rem 4.8rem 1fr;
        gap: 0.75rem;
        padding: 0.72rem;
    }

    .rank-item img {
        width: 4.8rem;
        height: 3.5rem;
    }
}
