/* ========================================
   Midnight Cheesecake — Cinematic Streaming Theme
   Inspired by Netflix, HBO Max, Letterboxd, Apple TV+
   ======================================== */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800;900&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: #0A0D14;
    color: #E2E8F0;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: #E2E8F0; text-decoration: none; transition: color 0.2s; }
a:hover { color: #FF2A75; }

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

/* ---- Reset residual Bulma ---- */
.navbar, .container, .section, .columns, .column, .card, .card-content,
.card-image, .tags, .tag, .content, .level, .pagination, .box,
.notification, .hero, .breadcrumb-list, .buttons, .button,
.has-text-centered, .is-hidden, .is-medium, .py-5, .mt-5 {
    all: unset;
    box-sizing: border-box;
}

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

/* ---- Utility ---- */
.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.main-content { flex: 1; }

/* ---- Background Vignette & Light Leaks ---- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 60% 40% at 20% 0%, rgba(255, 42, 117, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 30% at 80% 100%, rgba(229, 9, 20, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(10, 13, 20, 0) 0%, transparent 70%);
}

/* ---- Navbar ---- */
.navbar-midnight {
    position: relative;
    z-index: 100;
    background: linear-gradient(180deg, rgba(10,13,20,0.95) 0%, rgba(10,13,20,0.85) 100%);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #1E2638;
    padding: 0 1.5rem;
}

.navbar-midnight__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 1rem;
}

.navbar-midnight__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.navbar-midnight__logo {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.navbar-midnight__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 0.04em;
    color: #E2E8F0;
    line-height: 1;
}

.navbar-midnight__nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.navbar-midnight__nav a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    color: #94A3B8;
    transition: all 0.25s;
}

.navbar-midnight__nav a:hover {
    color: #FF2A75;
    background: rgba(255, 42, 117, 0.08);
}

.navbar-midnight__search {
    position: relative;
    flex-shrink: 0;
}

.navbar-midnight__search input {
    width: 220px;
    background: rgba(18, 23, 34, 0.8);
    border: 1px solid #1E2638;
    border-radius: 999px;
    padding: 0.5rem 1rem 0.5rem 2.2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #E2E8F0;
    outline: none;
    transition: all 0.3s;
}

.navbar-midnight__search input::placeholder { color: #64748B; }

.navbar-midnight__search input:focus {
    border-color: #FF2A75;
    box-shadow: 0 0 12px rgba(255, 42, 117, 0.25);
    width: 280px;
}

.navbar-midnight__search-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748B;
    font-size: 0.8rem;
    pointer-events: none;
}

/* Mobile hamburger */
.navbar-midnight__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.25rem;
}

.navbar-midnight__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #E2E8F0;
    border-radius: 1px;
    transition: all 0.3s;
}

/* ---- Streaming Status Bar ---- */
.status-bar {
    background: #121722;
    border-bottom: 1px solid #1E2638;
    padding: 0.35rem 1.5rem;
    overflow: hidden;
}

.status-bar__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748B;
}

.status-bar__live {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #FF2A75;
}

.status-bar__live-dot {
    width: 6px;
    height: 6px;
    background: #FF2A75;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(255, 42, 117, 0.5);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ---- Hero Banner ---- */
.hero-banner {
    position: relative;
    width: 100%;
    height: 65vh;
    min-height: 420px;
    max-height: 700px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.hero-banner__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

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

.hero-banner__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(to top, #0A0D14 0%, #0A0D14 25%, rgba(10,13,20,0.7) 55%, rgba(10,13,20,0.2) 80%, transparent 100%),
        linear-gradient(to right, rgba(10,13,20,0.6) 0%, transparent 40%);
}

.hero-banner__content {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.hero-banner__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid rgba(229, 9, 20, 0.4);
    color: #E50914;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.35rem 0.8rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.hero-banner__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 0.95;
    letter-spacing: 0.02em;
    color: #E2E8F0;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-banner__desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #94A3B8;
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.hero-banner__tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.hero-banner__cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.7rem 1.6rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
}

.btn--primary {
    background: #E50914;
    color: #fff;
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.3);
}

.btn--primary:hover {
    background: #ff1a25;
    box-shadow: 0 0 25px rgba(229, 9, 20, 0.5);
    transform: translateY(-1px);
}

.btn--ghost {
    background: rgba(255,255,255,0.08);
    color: #E2E8F0;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
}

.btn--ghost:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

.btn--neon {
    background: transparent;
    color: #FF2A75;
    border: 1px solid #FF2A75;
    box-shadow: 0 0 10px rgba(255, 42, 117, 0.15);
}

.btn--neon:hover {
    background: rgba(255, 42, 117, 0.1);
    box-shadow: 0 0 20px rgba(255, 42, 117, 0.35);
    transform: translateY(-1px);
}

/* ---- Section Headers ---- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 1rem;
}

.section-header__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #E2E8F0;
}

.section-header__title span {
    color: #64748B;
    font-weight: 500;
}

.section-header__link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #FF2A75;
    border: 1px solid rgba(255, 42, 117, 0.3);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    transition: all 0.25s;
}

.section-header__link:hover {
    background: rgba(255, 42, 117, 0.1);
    border-color: #FF2A75;
    box-shadow: 0 0 12px rgba(255, 42, 117, 0.2);
}

/* ---- Movie Poster Cards (Premieres) ---- */
.poster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
}

.poster-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #121722;
    border: 1px solid #1E2638;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.poster-card:hover {
    transform: scale(1.04) translateY(-4px);
    border-color: rgba(255, 42, 117, 0.4);
    box-shadow: 0 0 24px rgba(255, 42, 117, 0.15), 0 12px 32px rgba(0,0,0,0.4);
    z-index: 2;
}

.poster-card__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.poster-card__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.poster-card:hover .poster-card__frame img {
    transform: scale(1.06);
}

.poster-card__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,13,20,0.95) 0%, rgba(10,13,20,0.4) 40%, transparent 70%);
    pointer-events: none;
}

.poster-card__badge {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background: rgba(255, 42, 117, 0.9);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 0 8px rgba(255, 42, 117, 0.4);
}

.poster-card__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.8rem;
    z-index: 2;
}

.poster-card__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    line-height: 1.1;
    color: #E2E8F0;
    margin-bottom: 0.3rem;
    letter-spacing: 0.02em;
}

.poster-card__meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    color: #64748B;
    line-height: 1.4;
}

/* ---- Stream Cards (Trending / Wide) ---- */
.stream-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem 2.5rem;
}

.stream-card {
    display: flex;
    gap: 0.9rem;
    background: #121722;
    border: 1px solid #1E2638;
    border-radius: 8px;
    padding: 0.7rem;
    transition: all 0.3s;
    cursor: pointer;
}

.stream-card:hover {
    border-color: rgba(255, 42, 117, 0.35);
    box-shadow: 0 0 18px rgba(255, 42, 117, 0.1);
    transform: translateY(-2px);
}

.stream-card__thumb {
    width: 140px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

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

.stream-card__thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,13,20,0.4), transparent);
}

.stream-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.stream-card__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #E2E8F0;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.stream-card__desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: #64748B;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stream-card__tags {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.4rem;
    flex-wrap: wrap;
}

/* ---- Genre Badges / Tags ---- */
.genre-badge {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94A3B8;
    background: rgba(18, 23, 34, 0.8);
    border: 1px solid #1E2638;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    transition: all 0.25s;
    white-space: nowrap;
}

.genre-badge:hover {
    color: #FF2A75;
    border-color: rgba(255, 42, 117, 0.4);
    box-shadow: 0 0 8px rgba(255, 42, 117, 0.15);
}

.hero-banner__tags .genre-badge {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: #E2E8F0;
    font-size: 0.65rem;
    padding: 0.25rem 0.7rem;
}

.hero-banner__tags .genre-badge:hover {
    background: rgba(255, 42, 117, 0.15);
    border-color: rgba(255, 42, 117, 0.4);
    color: #FF2A75;
}

/* ---- Floating Search Terminal (Homepage) ---- */
.search-terminal {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 0;
}

.search-terminal__box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(18, 23, 34, 0.7);
    border: 1px solid #1E2638;
    border-radius: 12px;
    padding: 0.7rem 1rem;
    backdrop-filter: blur(8px);
    transition: all 0.3s;
}

.search-terminal__box:focus-within {
    border-color: rgba(255, 42, 117, 0.5);
    box-shadow: 0 0 20px rgba(255, 42, 117, 0.12);
}

.search-terminal__box i {
    color: #64748B;
    font-size: 0.9rem;
}

.search-terminal__box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #E2E8F0;
}

.search-terminal__box input::placeholder { color: #475569; }

/* ---- Detail Page ---- */
.detail-hero {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 340px;
    max-height: 560px;
    overflow: hidden;
}

.detail-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

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

.detail-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(to top, #0A0D14 0%, #0A0D14 20%, rgba(10,13,20,0.75) 50%, rgba(10,13,20,0.3) 80%, transparent 100%),
        linear-gradient(to right, rgba(10,13,20,0.5) 0%, transparent 30%);
}

.detail-hero__content {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    height: 100%;
}

.detail-hero__poster {
    width: 160px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #1E2638;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    display: none;
}

.detail-hero__poster img {
    width: 100%;
    display: block;
}

.detail-hero__info { flex: 1; min-width: 0; }

.detail-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid rgba(229, 9, 20, 0.4);
    color: #E50914;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.detail-hero__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 0.95;
    color: #E2E8F0;
    margin-bottom: 0.5rem;
}

.detail-hero__desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #94A3B8;
    max-width: 480px;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.detail-hero__tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.detail-hero__actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/* ---- Detail Content ---- */
.detail-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
}

.detail-main {
    min-width: 0;
}

.detail-main h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    color: #E2E8F0;
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}

.detail-main p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #94A3B8;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.detail-main p + p { margin-top: 0.5rem; }

.detail-main ul, .detail-main ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: #94A3B8;
    font-size: 0.9rem;
}

.detail-main li { margin-bottom: 0.35rem; }

.detail-main strong { color: #E2E8F0; font-weight: 600; }

.detail-main a { color: #FF2A75; }
.detail-main a:hover { text-decoration: underline; }

.detail-side {
    min-width: 0;
}

.side-panel {
    background: #121722;
    border: 1px solid #1E2638;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.side-panel__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748B;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #1E2638;
}

.side-panel__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(30, 38, 56, 0.5);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
}

.side-panel__row:last-child { border-bottom: none; }

.side-panel__label { color: #64748B; }
.side-panel__value { color: #E2E8F0; font-weight: 500; }

.side-panel__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.side-panel__actions .btn {
    width: 100%;
    font-size: 0.7rem;
    padding: 0.55rem 1rem;
}

/* ---- Simple Page Layout ---- */
.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.page-container h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    color: #E2E8F0;
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
}

.page-container h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #E2E8F0;
    margin: 2rem 0 0.75rem;
}

.page-container p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #94A3B8;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.page-container ul, .page-container ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: #94A3B8;
    font-size: 0.9rem;
}

.page-container li { margin-bottom: 0.4rem; }
.page-container strong { color: #E2E8F0; }
.page-container a { color: #FF2A75; }
.page-container a:hover { text-decoration: underline; }

/* ---- Footer ---- */
.footer-midnight {
    background: #0A0D14;
    border-top: 1px solid #1E2638;
    padding: 2.5rem 1.5rem 2rem;
    margin-top: auto;
}

.footer-midnight__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.footer-midnight__social {
    display: flex;
    gap: 0.75rem;
}

.footer-midnight__social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #121722;
    border: 1px solid #1E2638;
    color: #64748B;
    font-size: 0.85rem;
    transition: all 0.25s;
}

.footer-midnight__social a:hover {
    color: #FF2A75;
    border-color: rgba(255, 42, 117, 0.4);
    box-shadow: 0 0 10px rgba(255, 42, 117, 0.15);
    transform: translateY(-2px);
}

.footer-midnight__copy {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: #475569;
    text-align: center;
}

/* ---- Home Layout with Sidebar ---- */
.home-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.home-layout__main {
    min-width: 0;
}

.home-layout__sidebar {
    min-width: 0;
    padding-top: 0.5rem;
}

.sidebar-panel {
    background: #121722;
    border: 1px solid #1E2638;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.sidebar-panel__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748B;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #1E2638;
}

.sidebar-genre-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-genre-list li {
    margin-bottom: 0.5rem;
}

.sidebar-genre-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #94A3B8;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.sidebar-genre-list a::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #1E2638;
    flex-shrink: 0;
    transition: all 0.2s;
}

.sidebar-genre-list a:hover {
    color: #FF2A75;
    background: rgba(255, 42, 117, 0.06);
    border-color: rgba(255, 42, 117, 0.2);
}

.sidebar-genre-list a:hover::before {
    background: #FF2A75;
    box-shadow: 0 0 6px rgba(255, 42, 117, 0.4);
}

.sidebar-genre-list .genre-count {
    margin-left: auto;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    color: #64748B;
    background: #0A0D14;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

/* ---- Pagination ---- */
.pagination-midnight {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.pagination-midnight a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: #121722;
    border: 1px solid #1E2638;
    color: #94A3B8;
    transition: all 0.2s;
}

.pagination-midnight a:hover {
    background: rgba(255, 42, 117, 0.1);
    border-color: rgba(255, 42, 117, 0.3);
    color: #FF2A75;
}

/* ---- No Results ---- */
.no-results {
    text-align: center;
    padding: 4rem 1.5rem;
}

.no-results__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: #E2E8F0;
    margin-bottom: 0.5rem;
}

.no-results__text {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #64748B;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .navbar-midnight__nav { display: none; }
    .navbar-midnight__burger { display: flex; }
    .navbar-midnight__search input { width: 160px; }
    .navbar-midnight__search input:focus { width: 200px; }

    .hero-banner { height: 50vh; min-height: 320px; }
    .hero-banner__content { padding: 1.5rem 1rem 2rem; }

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

    .home-layout { grid-template-columns: 1fr; }
    .home-layout__sidebar { order: -1; }

    .poster-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.75rem; }
    .stream-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .poster-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-banner__title { font-size: 2rem; }
    .hero-banner__desc { font-size: 0.8rem; }
    .status-bar__inner { font-size: 0.55rem; gap: 0.75rem; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
