:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --orange-600: #ea580c;
    --orange-500: #f97316;
    --orange-400: #fb923c;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 25px 55px rgba(15, 23, 42, 0.22);
    --radius: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--slate-800);
    background: linear-gradient(135deg, var(--slate-50), var(--slate-100));
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.nav-open {
    overflow: hidden;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--slate-800), var(--slate-900));
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}

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

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--white);
    background: var(--orange-500);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35);
}

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

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

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

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover {
    color: var(--orange-400);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--white);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 12px 16px 18px;
    background: var(--slate-900);
    border-top: 1px solid rgba(226, 232, 240, 0.1);
}

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

.mobile-nav-link {
    padding: 10px 4px;
}

.hero {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
}

.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-image,
.detail-backdrop img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
}

.hero-image {
    opacity: 0.22;
    transform: scale(1.03);
}

.hero-overlay,
.detail-backdrop::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.42));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 600px;
}

.hero-copy {
    max-width: 760px;
    color: var(--white);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    margin-bottom: 16px;
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.16);
    border: 1px solid rgba(251, 146, 60, 0.24);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1,
.feature-copy h1 {
    margin: 0;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy h1 {
    font-size: clamp(48px, 7vw, 86px);
}

.hero-copy h2 {
    margin-top: 12px;
    font-size: clamp(30px, 4.4vw, 56px);
}

.hero-copy p,
.page-hero p,
.detail-copy .lead,
.feature-copy p,
.section-heading p {
    max-width: 760px;
    margin: 18px 0 0;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
}

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

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

.primary-button,
.ghost-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
    min-height: 46px;
    padding: 0 24px;
    color: var(--white);
    background: var(--orange-500);
    box-shadow: 0 16px 32px rgba(249, 115, 22, 0.28);
}

.primary-button:hover {
    transform: translateY(-2px) scale(1.02);
    background: var(--orange-600);
    box-shadow: 0 24px 46px rgba(249, 115, 22, 0.34);
}

.ghost-button {
    min-height: 46px;
    padding: 0 22px;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.ghost-button:hover {
    transform: translateY(-2px);
    border-color: rgba(251, 146, 60, 0.58);
}

.small-button {
    min-height: 40px;
    padding: 0 18px;
    font-size: 14px;
}

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

.hero-dot {
    width: 42px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    transition: background 0.2s ease, width 0.2s ease;
}

.hero-dot.is-active {
    width: 58px;
    background: var(--orange-500);
}

.section {
    padding: 72px 0;
}

.section-light {
    background: linear-gradient(135deg, var(--slate-50), var(--slate-100));
}

.section-dark {
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading h2,
.content-card h2,
.side-card h2,
.inline-category-links h2,
.category-overview-head h2 {
    margin: 0;
    color: var(--slate-800);
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-dark .section-heading h2,
.section-dark .section-heading p,
.section-dark .feature-copy h2,
.section-dark .feature-copy p {
    color: var(--white);
}

.split-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.text-link {
    color: var(--orange-600);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(160px, 0.6fr));
    gap: 14px;
    margin-top: 26px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--slate-600);
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    color: var(--slate-800);
    background: var(--white);
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

.card-grid,
.category-grid,
.overview-grid {
    display: grid;
    gap: 24px;
}

.card-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.compact-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.category-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.overview-grid {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.movie-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(203, 213, 225, 0.72);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link,
.poster-wrap {
    position: relative;
    display: block;
}

.poster-wrap {
    height: 190px;
    overflow: hidden;
    background: var(--slate-800);
}

.movie-card-compact .poster-wrap {
    height: 160px;
}

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

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

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

.play-pill,
.rank-badge {
    position: absolute;
    color: var(--white);
    border-radius: 999px;
    font-weight: 800;
}

.play-pill {
    right: 12px;
    bottom: 12px;
    padding: 7px 12px;
    background: rgba(249, 115, 22, 0.92);
}

.rank-badge {
    top: 12px;
    left: 12px;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: rgba(2, 6, 23, 0.82);
}

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

.movie-card h3 {
    margin: 0 0 10px;
    color: var(--slate-800);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.4;
}

.movie-card h3 a:hover {
    color: var(--orange-600);
}

.movie-card p {
    min-height: 48px;
    margin: 0 0 14px;
    color: var(--slate-600);
    line-height: 1.65;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.movie-meta {
    margin-bottom: 12px;
    color: var(--slate-500);
    font-size: 13px;
}

.tag-row span {
    display: inline-flex;
    padding: 5px 9px;
    color: #9a3412;
    background: #ffedd5;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.category-card,
.category-overview-card,
.content-card,
.side-card {
    background: var(--white);
    border: 1px solid rgba(203, 213, 225, 0.72);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.category-card {
    padding: 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--white);
    background: var(--orange-500);
    border-radius: 14px;
    margin-bottom: 18px;
}

.category-card h3 {
    margin: 0 0 10px;
    color: var(--slate-800);
    font-size: 22px;
    font-weight: 900;
}

.category-card p,
.category-overview-card p {
    color: var(--slate-600);
    line-height: 1.75;
}

.category-samples {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.category-samples a {
    color: var(--slate-600);
    font-size: 14px;
}

.category-samples a:hover {
    color: var(--orange-600);
}

.feature-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 36px;
    align-items: center;
}

.feature-copy h2 {
    margin: 0;
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.ranking-list,
.mini-list {
    display: grid;
    gap: 12px;
}

.ranking-list {
    padding: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

.glass-list {
    max-height: 520px;
    overflow: auto;
}

.mini-movie {
    position: relative;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    color: var(--slate-800);
    background: var(--white);
    border-radius: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section-dark .mini-movie,
.glass-list .mini-movie {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.mini-movie:hover {
    transform: translateX(4px);
    box-shadow: 0 16px 32px rgba(2, 6, 23, 0.16);
}

.mini-movie img {
    height: 56px;
    object-fit: cover;
    border-radius: 10px;
}

.mini-movie strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-movie small {
    display: block;
    margin-top: 4px;
    color: var(--slate-500);
}

.section-dark .mini-movie small,
.glass-list .mini-movie small {
    color: #cbd5e1;
}

.mini-rank {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: var(--white);
    background: var(--orange-500);
    border-radius: 999px;
    font-weight: 900;
}

.page-hero,
.detail-hero {
    position: relative;
    color: var(--white);
    background: linear-gradient(90deg, var(--slate-900), var(--slate-800));
}

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

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

.category-page-hero {
    background: linear-gradient(90deg, #1e293b, #111827, #0f172a);
}

.ranking-hero {
    padding: 64px 0;
}

.category-overview-card {
    padding: 24px;
}

.category-overview-head {
    display: flex;
    gap: 18px;
    align-items: start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.inline-category-links {
    display: grid;
    gap: 18px;
}

.inline-category-links div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.inline-category-links a {
    padding: 10px 14px;
    color: var(--slate-700);
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 999px;
}

.inline-category-links a:hover {
    color: var(--orange-600);
    border-color: #fdba74;
}

.detail-hero {
    overflow: hidden;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.34;
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 36px 0 56px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 28px;
    color: #cbd5e1;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--orange-400);
}

.detail-head-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.detail-poster img {
    height: 360px;
    object-fit: cover;
}

.detail-copy h1 {
    font-size: clamp(42px, 5vw, 76px);
}

.detail-copy .lead {
    color: #e2e8f0;
}

.detail-tags span {
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.18);
}

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

.player-heading {
    text-align: center;
}

.player-heading .eyebrow {
    margin-left: auto;
    margin-right: auto;
}

.player-heading p {
    margin-left: auto;
    margin-right: auto;
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #000000;
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #000000;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    color: var(--white);
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.24), rgba(2, 6, 23, 0.74));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-button-icon {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    padding-left: 6px;
    color: var(--white);
    background: var(--orange-500);
    border-radius: 999px;
    font-size: 34px;
    box-shadow: 0 24px 48px rgba(249, 115, 22, 0.36);
}

.player-overlay strong {
    font-size: 20px;
}

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

.content-card,
.side-card {
    padding: 26px;
}

.content-card h2:not(:first-child) {
    margin-top: 28px;
}

.content-card p {
    margin-top: 14px;
    color: var(--slate-600);
    font-size: 17px;
    line-height: 1.92;
}

.info-list {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 12px 14px;
    margin: 18px 0 0;
}

.info-list dt {
    color: var(--slate-500);
}

.info-list dd {
    margin: 0;
    color: var(--slate-800);
    font-weight: 800;
}

.site-footer {
    color: #cbd5e1;
    background: var(--slate-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 36px;
    padding: 48px 0 32px;
}

.footer-grid h3 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 18px;
    font-weight: 900;
}

.footer-grid p {
    max-width: 460px;
    margin: 14px 0 0;
    line-height: 1.8;
}

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

.footer-links a:hover {
    color: var(--orange-400);
}

.footer-bottom {
    padding: 18px 0 24px;
    color: #94a3b8;
    text-align: center;
    border-top: 1px solid rgba(226, 232, 240, 0.12);
}

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

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

    .menu-toggle {
        display: flex;
    }

    .filter-panel,
    .feature-layout,
    .detail-content-grid,
    .footer-grid,
    .detail-head-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 280px;
    }

    .split-heading,
    .category-overview-head {
        align-items: start;
        flex-direction: column;
    }
}

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

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

    .hero-copy h1 {
        font-size: 44px;
    }

    .hero-copy h2 {
        font-size: 30px;
    }

    .section {
        padding: 50px 0;
    }

    .card-grid,
    .compact-grid,
    .category-grid,
    .overview-grid {
        grid-template-columns: 1fr;
    }

    .poster-wrap,
    .movie-card-compact .poster-wrap {
        height: 220px;
    }

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

    .detail-poster img {
        height: 320px;
    }

    .hero-dots {
        bottom: 18px;
    }

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