:root {
    --bg: #0a0e1a;
    --bg-soft: #111827;
    --panel: rgba(255, 255, 255, 0.06);
    --panel-border: rgba(255, 255, 255, 0.12);
    --text: #f3f4f6;
    --muted: #9ca3af;
    --muted-2: #6b7280;
    --amber: #f59e0b;
    --amber-light: #fbbf24;
    --orange: #f97316;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.16), transparent 34rem),
        radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.12), transparent 28rem),
        var(--bg);
    color: var(--text);
}

img {
    width: 100%;
    height: auto;
}

.container {
    width: min(100% - 2rem, 1280px);
    margin-inline: auto;
}

.glass {
    border: 1px solid var(--panel-border);
    background: var(--panel);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow);
    border-color: rgba(245, 158, 11, 0.45);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-inline: 0;
    border-top: 0;
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.32);
}

.brand-text,
.footer-brand span:last-child {
    font-size: 1.22rem;
    background: linear-gradient(90deg, var(--amber-light), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link,
.mobile-link,
.text-link {
    color: var(--text);
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.text-link:hover {
    color: var(--amber-light);
}

.nav-dropdown {
    position: relative;
}

.nav-drop-button {
    padding: 0;
}

.nav-drop-menu {
    position: absolute;
    top: 2.3rem;
    left: 0;
    display: grid;
    width: 12rem;
    padding: 0.5rem;
    border-radius: 0.9rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-drop-menu,
.nav-dropdown:focus-within .nav-drop-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-drop-menu a,
.mobile-link {
    padding: 0.65rem 0.85rem;
    border-radius: 0.65rem;
}

.nav-drop-menu a:hover,
.mobile-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.header-search input,
.filter-panel input,
.filter-panel select {
    color: var(--text);
    background: rgba(10, 14, 26, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.12);
    outline: none;
}

.header-search input {
    width: 12rem;
    padding: 0.45rem 0.75rem;
    border: 0;
    background: transparent;
}

.header-search button,
.filter-reset {
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(90deg, var(--amber), var(--orange));
}

.mobile-menu-button {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.45rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 0.3rem 0;
    border-radius: 2px;
    background: var(--text);
}

.mobile-nav {
    display: none;
    padding: 0.5rem 1rem 1rem;
    border-inline: 0;
    border-bottom: 1px solid var(--panel-border);
}

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

.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
}

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

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

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

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

.hero-gradient {
    background: linear-gradient(to top, #0a0e1a 0%, rgba(10, 14, 26, 0.72) 45%, rgba(10, 14, 26, 0.12) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    height: 100%;
    padding-bottom: 5rem;
}

.hero-copy {
    max-width: 46rem;
}

.hero-copy h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1;
    font-weight: 900;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.5);
}

.hero-copy p {
    max-width: 42rem;
    margin: 0 0 1.6rem;
    color: #d1d5db;
    font-size: 1.15rem;
}

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

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding: 0.75rem 1.35rem;
    border-radius: 0.75rem;
    font-weight: 750;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #fff;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.32);
}

.secondary-button {
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
}

.hero-prev {
    left: 1.25rem;
}

.hero-next {
    right: 1.25rem;
}

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

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

.hero-dot.is-active {
    width: 2.2rem;
    background: var(--amber);
}

.section-block {
    padding-block: 4.5rem;
}

.section-heading,
.category-overview-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-heading h2,
.category-overview-head h2,
.page-hero h1 {
    margin: 0;
    font-weight: 850;
}

.section-heading h2,
.category-overview-head h2 {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.section-heading a,
.text-link {
    color: var(--amber-light);
    font-weight: 700;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.45rem;
    color: var(--amber-light);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.movie-grid,
.category-grid,
.wide-grid {
    display: grid;
    gap: 1.35rem;
}

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

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

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

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

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

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

.movie-card,
.category-tile,
.category-overview-card,
.detail-card,
.player-shell,
.poster-card,
.side-card,
.filter-panel {
    border-radius: 1rem;
    overflow: hidden;
}

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.card-cover,
.wide-cover {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.card-cover {
    aspect-ratio: 16 / 10;
}

.card-cover img,
.wide-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.72);
}

.year-badge {
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.55rem;
    font-size: 0.78rem;
}

.rank-badge {
    top: 0.75rem;
    left: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding-inline: 0.45rem;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1rem;
}

.card-body h2,
.card-body h3 {
    margin: 0;
    color: #fff;
    font-size: 1.04rem;
    line-height: 1.35;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-body p {
    margin: 0.65rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row,
.detail-tags,
.genre-row,
.meta-row,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tag-row {
    margin-bottom: 0.7rem;
}

.tag-row span,
.detail-tags a,
.genre-row span {
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    color: var(--amber-light);
    background: rgba(245, 158, 11, 0.13);
    font-size: 0.78rem;
}

.meta-row,
.detail-meta {
    margin-top: auto;
    padding-top: 1rem;
    color: var(--muted-2);
    font-size: 0.82rem;
}

.movie-card-wide {
    display: grid;
    grid-template-columns: 14rem 1fr;
    min-height: 10rem;
}

.wide-cover {
    min-height: 10rem;
}

.category-tile {
    padding: 1.4rem;
}

.category-tile h2 {
    margin: 0 0 0.65rem;
    color: #fff;
    font-size: 1.35rem;
}

.category-tile p,
.category-overview-head p {
    color: var(--muted);
}

.category-mini-list {
    display: grid;
    gap: 0.35rem;
    margin-top: 1.1rem;
    color: #d1d5db;
    font-size: 0.88rem;
}

.page-hero {
    position: relative;
    padding: 6rem 0 4rem;
    overflow: hidden;
}

.soft-hero,
.rank-hero {
    background:
        linear-gradient(90deg, rgba(245, 158, 11, 0.16), rgba(249, 115, 22, 0.08)),
        radial-gradient(circle at right top, rgba(255, 255, 255, 0.08), transparent 30rem);
}

.page-hero h1 {
    font-size: clamp(2.2rem, 4vw, 4rem);
}

.page-hero p {
    max-width: 50rem;
    color: #d1d5db;
    font-size: 1.05rem;
}

.category-overview {
    display: grid;
    gap: 1.75rem;
    padding-block: 3.2rem;
}

.category-overview-card {
    padding: 1.5rem;
}

.filter-panel {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1rem;
}

.filter-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border-radius: 0.75rem;
}

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

.empty-state {
    display: none;
    padding: 4rem 1rem;
    color: var(--muted);
    text-align: center;
}

.empty-state.is-visible {
    display: block;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.breadcrumb a:hover {
    color: var(--amber-light);
}

.movie-detail-layout {
    padding-block: 2rem 4rem;
}

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

.detail-main,
.detail-side,
.side-related {
    display: grid;
    gap: 1.25rem;
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.65));
}

.player-overlay.is-hidden {
    display: none;
}

.play-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 999px;
    padding-left: 0.3rem;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 18px 50px rgba(245, 158, 11, 0.35);
    font-size: 2.4rem;
}

.play-title {
    font-size: 1.05rem;
    font-weight: 750;
}

.detail-card,
.side-card {
    padding: 1.35rem;
}

.detail-card h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    font-weight: 850;
}

.detail-card h2,
.side-card h2,
.poster-info h2 {
    margin: 0 0 1rem;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
}

.detail-one-line {
    color: var(--amber-light);
    font-size: 1.05rem;
}

.detail-meta {
    margin: 1rem 0;
    padding: 0;
}

.detail-meta span {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.08);
}

.prose-card p {
    color: #d1d5db;
    line-height: 1.9;
    white-space: pre-line;
}

.poster-card {
    overflow: hidden;
}

.poster-card img {
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.poster-info {
    padding: 1rem;
}

.side-related .movie-card {
    display: grid;
    grid-template-columns: 7rem 1fr;
}

.side-related .card-cover {
    aspect-ratio: 4 / 3;
}

.side-related .tag-row,
.side-related .meta-row,
.side-related .card-body p,
.side-related .year-badge {
    display: none;
}

.side-related .card-body {
    padding: 0.8rem;
}

.side-related .card-body h2 {
    font-size: 0.92rem;
}

.site-footer {
    margin-top: 4rem;
    border-top: 1px solid rgba(245, 158, 11, 0.18);
    background: rgba(10, 14, 26, 0.92);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 2rem;
    padding-block: 3rem;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
    color: var(--muted);
}

.footer-grid h2 {
    margin: 0 0 0.9rem;
    color: var(--amber-light);
    font-size: 1rem;
}

.footer-grid a {
    display: block;
    margin: 0.45rem 0;
}

.footer-grid a:hover {
    color: var(--amber-light);
}

.footer-bottom {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.9rem;
}

@media (max-width: 1100px) {
    .movie-grid,
    .compact-grid,
    .all-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

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

    .mobile-menu-button {
        display: block;
    }

    .hero-carousel {
        height: 560px;
    }

    .hero-arrow {
        display: none;
    }

    .movie-grid,
    .compact-grid,
    .all-grid,
    .featured-grid,
    .wide-grid,
    .category-grid,
    .mini-grid,
    .footer-grid,
    .filter-selects {
        grid-template-columns: 1fr;
    }

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

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

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

@media (max-width: 560px) {
    .container {
        width: min(100% - 1.1rem, 1280px);
    }

    .header-inner {
        height: 3.75rem;
    }

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

    .hero-carousel {
        height: 520px;
    }

    .hero-content {
        padding-bottom: 4rem;
    }

    .hero-copy p {
        font-size: 1rem;
    }

    .section-block {
        padding-block: 3rem;
    }

    .side-related .movie-card {
        grid-template-columns: 6rem 1fr;
    }
}
