
:root {
    color-scheme: light;
    --emerald: #059669;
    --emerald-dark: #047857;
    --teal: #0d9488;
    --cyan: #0891b2;
    --rose: #e11d48;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --gray-950: #030712;
    --gray-900: #111827;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: linear-gradient(180deg, var(--gray-50), var(--white));
    color: var(--gray-900);
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

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

.nav-wrap {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 20px;
    color: var(--emerald);
    white-space: nowrap;
}

.logo-mark,
.footer-logo span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
}

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

.nav-link {
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-700);
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--emerald);
}

.nav-search input,
.mobile-search input,
.filter-bar input {
    width: 230px;
    border: 1px solid var(--gray-300);
    border-radius: 999px;
    padding: 10px 16px;
    outline: none;
    background: var(--white);
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus {
    border-color: transparent;
    box-shadow: 0 0 0 3px rgb(16 185 129 / 0.28);
}

.menu-button {
    display: none;
    border: 0;
    background: transparent;
    color: var(--gray-700);
    font-size: 26px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--gray-200);
    padding: 16px;
    background: var(--white);
}

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

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, var(--emerald), var(--teal), var(--cyan));
}

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

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

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

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

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 28%, rgb(5 150 105 / 0.68), transparent 34%),
        linear-gradient(90deg, rgb(2 6 23 / 0.93) 0%, rgb(15 23 42 / 0.72) 45%, rgb(2 6 23 / 0.26) 100%);
}

.hero-content {
    position: relative;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 56px;
    align-items: center;
    padding: 72px 0 90px;
}

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

.hero-pill,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    border-radius: 999px;
    padding: 8px 16px;
    background: rgb(255 255 255 / 0.18);
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    backdrop-filter: blur(8px);
}

.hero h1 {
    margin: 22px 0 10px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.hero h2 {
    margin: 0 0 16px;
    font-size: clamp(25px, 3vw, 42px);
    color: #d1fae5;
}

.hero p {
    margin: 0;
    max-width: 720px;
    color: #ecfdf5;
    font-size: 18px;
}

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

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.featured-tags span,
.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    background: rgb(255 255 255 / 0.18);
    color: #ecfdf5;
    font-size: 12px;
    font-weight: 700;
}

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

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

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

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
    box-shadow: 0 14px 28px rgb(5 150 105 / 0.32);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--emerald-dark), var(--teal));
}

.btn-ghost {
    color: var(--white);
    border-color: rgb(255 255 255 / 0.48);
    background: rgb(255 255 255 / 0.12);
}

.hero-poster {
    display: block;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 0.22);
    border-radius: 28px;
    background: rgb(255 255 255 / 0.12);
    box-shadow: var(--shadow-2xl);
    transform: rotate(2deg);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.18);
    color: var(--white);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

.hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 9px;
    z-index: 5;
}

.hero-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.42);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 28px;
    background: var(--white);
}

.lift-section {
    position: relative;
    z-index: 4;
    margin-top: -62px;
}

.featured-card {
    display: grid;
    grid-template-columns: 42% 1fr;
    overflow: hidden;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-2xl);
}

.featured-image {
    position: relative;
    min-height: 340px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.featured-card:hover .featured-image img,
.movie-card:hover img,
.category-tile:hover img,
.ranking-hero-card:hover img {
    transform: scale(1.06);
}

.featured-year,
.movie-badge,
.rank-num {
    position: absolute;
    top: 14px;
    right: 14px;
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--white);
    background: rgb(0 0 0 / 0.72);
    font-size: 12px;
    font-weight: 800;
}

.rank-num {
    left: 14px;
    right: auto;
    background: var(--rose);
}

.featured-body {
    padding: clamp(24px, 4vw, 52px);
}

.featured-body .eyebrow {
    color: var(--emerald);
    background: #d1fae5;
}

.featured-body h2 {
    margin: 16px 0 12px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
}

.featured-body p {
    color: var(--gray-600);
    margin: 0 0 18px;
}

.featured-tags {
    margin-bottom: 24px;
}

.featured-tags span,
.movie-card .tag {
    color: var(--emerald-dark);
    background: #d1fae5;
}

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

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.15;
}

.section-heading p {
    margin: 7px 0 0;
    color: var(--gray-600);
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--gray-200);
}

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

.movie-info {
    padding: 16px;
}

.movie-info h3 {
    margin: 0 0 7px;
    font-size: 17px;
    line-height: 1.35;
}

.movie-info h3 a:hover {
    color: var(--emerald);
}

.movie-meta,
.movie-desc {
    margin: 0;
    color: var(--gray-600);
    font-size: 13px;
}

.movie-desc {
    margin-top: 8px;
    display: -webkit-box;
    min-height: 42px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

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

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

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

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgb(0 0 0 / 0.08), rgb(2 6 23 / 0.78));
}

.category-tile span {
    align-self: end;
    padding: 0 16px;
    font-weight: 900;
    font-size: 20px;
}

.category-tile small {
    padding: 6px 16px 18px;
    color: #d1fae5;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.ranking-panel {
    border-radius: 22px;
    padding: 20px;
    background: var(--slate-900);
    color: var(--white);
    box-shadow: var(--shadow-xl);
}

.sticky-panel {
    position: sticky;
    top: 90px;
}

.panel-title {
    margin-bottom: 16px;
    font-size: 22px;
    font-weight: 900;
    color: #34d399;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 34px 60px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: rgb(255 255 255 / 0.06);
    transition: background 0.2s ease;
}

.rank-item:hover {
    background: rgb(255 255 255 / 0.12);
}

.rank-index {
    font-weight: 900;
    color: #34d399;
}

.rank-item img {
    width: 60px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
}

.rank-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}

.rank-meta {
    grid-column: 3;
    color: #cbd5e1;
    font-size: 12px;
}

.page-hero {
    padding: 78px 0;
    color: var(--white);
    background: linear-gradient(135deg, var(--emerald), var(--teal), var(--cyan));
}

.page-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #ecfdf5;
    font-size: 18px;
}

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

.category-card-large {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 22px;
    overflow: hidden;
    border-radius: 22px;
    padding: 18px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.category-card-image {
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 16 / 11;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card-large h2 {
    margin: 0 0 8px;
}

.category-card-large p {
    color: var(--gray-600);
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.filter-bar.wide {
    align-items: flex-start;
    flex-direction: column;
}

.filter-bar.wide input {
    width: 100%;
}

.filter-chip {
    border: 0;
    border-radius: 999px;
    padding: 8px 13px;
    color: var(--gray-700);
    background: var(--gray-100);
    cursor: pointer;
    font-weight: 700;
}

.filter-chip:hover,
.filter-chip.is-active {
    color: var(--white);
    background: var(--emerald);
}

.ranking-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 36px;
    align-items: center;
}

.ranking-hero-card {
    overflow: hidden;
    border-radius: 24px;
    padding: 14px;
    color: var(--gray-900);
    background: var(--white);
    box-shadow: var(--shadow-2xl);
}

.ranking-hero-card img {
    width: 100%;
    border-radius: 18px;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.ranking-hero-card strong,
.ranking-hero-card span {
    display: block;
    margin-top: 10px;
}

.ranking-hero-card span {
    color: var(--gray-600);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: var(--slate-950);
}

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

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px) saturate(1.1);
    transform: scale(1.04);
    opacity: 0.35;
}

.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgb(2 6 23 / 0.96), rgb(15 23 42 / 0.66));
}

.detail-grid {
    position: relative;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
    padding: 64px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow-2xl);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: #a7f3d0;
    font-size: 14px;
}

.detail-copy h1 {
    margin: 18px 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
}

.detail-one-line {
    max-width: 830px;
    margin: 0 0 18px;
    color: #ecfdf5;
    font-size: 18px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-meta span {
    border-radius: 999px;
    padding: 7px 12px;
    background: rgb(255 255 255 / 0.12);
    color: #f8fafc;
    font-weight: 700;
}

.detail-tags {
    margin-bottom: 26px;
}

.player-section {
    padding-top: 34px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: var(--gray-950);
    box-shadow: var(--shadow-2xl);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--gray-950);
}

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

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

.play-icon {
    display: inline-grid;
    place-items: center;
    width: 74px;
    height: 74px;
    margin: 0 auto;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
    box-shadow: 0 18px 32px rgb(5 150 105 / 0.32);
    font-size: 26px;
}

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

.detail-article,
.detail-side,
.prose-section {
    border-radius: 22px;
    padding: 28px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.detail-article h2,
.detail-side h2,
.prose-section h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.detail-article p,
.prose-section p {
    margin: 0 0 22px;
    color: var(--gray-700);
    font-size: 17px;
}

.detail-side dl {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 10px 14px;
    margin: 0;
}

.detail-side dt {
    color: var(--gray-500);
}

.detail-side dd {
    margin: 0;
    font-weight: 700;
}

.prose-section {
    margin-top: 60px;
    max-width: 900px;
}

.site-footer {
    margin-top: 80px;
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-900), var(--slate-800), var(--slate-900));
}

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

.footer-grid h3 {
    margin: 0 0 14px;
    color: #34d399;
}

.footer-grid p,
.footer-grid a {
    color: #cbd5e1;
}

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

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

.footer-bottom {
    border-top: 1px solid rgb(255 255 255 / 0.12);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
}

.footer-bottom p {
    margin: 0;
    color: #cbd5e1;
}

.top-button {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    color: var(--white);
    background: var(--emerald);
    cursor: pointer;
}

.is-hidden-card {
    display: none;
}

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

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

    .hero-content,
    .featured-card,
    .split-layout,
    .ranking-hero-grid,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        gap: 28px;
        padding-right: 28px;
        padding-left: 28px;
    }

    .hero-poster {
        width: min(320px, 88vw);
        transform: none;
    }

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

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

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

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

    .logo-text {
        font-size: 17px;
    }

    .hero,
    .hero-content {
        min-height: 720px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        padding: 52px 0 90px;
    }

    .hero-arrow {
        display: none;
    }

    .lift-section {
        margin-top: -38px;
    }

    .featured-image {
        min-height: 240px;
    }

    .section-heading,
    .filter-bar,
    .footer-bottom .container {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid,
    .compact-grid,
    .category-grid,
    .category-list-grid {
        grid-template-columns: 1fr;
    }

    .category-card-large,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(260px, 80vw);
    }

    .detail-grid {
        padding: 42px 0;
    }

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

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

@media (max-width: 520px) {
    .movie-grid {
        gap: 16px;
    }

    .hero h1,
    .detail-copy h1,
    .page-hero h1 {
        font-size: 34px;
    }

    .page-hero {
        padding: 54px 0;
    }

    .player-section {
        width: 100%;
    }
}
