﻿/* ═══════════════════════════════════════════════════
   VELOX STREAM — MOVIES PAGE (Netflix Mobile Style)
   movies.css  extends base styles.css
═══════════════════════════════════════════════════ */

:root {
    --nf-blue: #0ea5e9;
    --nf-blue-hover: #0284c7;
    --bg-dark: #141414;
    --bg-card: #1f1f1f;
    --text-dim: rgba(255, 255, 255, 0.5);
}

* {
    box-sizing: border-box;
}

body {
    background: var(--bg-dark);
    font-family: 'Outfit', sans-serif;
    color: #fff;
    margin: 0;
    overflow-x: hidden;
}

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 64px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    transition: background 0.4s;
}

.navbar.scrolled {
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-icon {
    color: var(--nf-blue);
    font-size: 26px;
    filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.6));
}

.logo-text-highlight {
    background: linear-gradient(135deg, var(--nf-blue), #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.2s;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

.nav-links a.active {
    color: #fff;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.nav-right.movies-nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Search */
.movies-search-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    padding: 8px 18px;
    width: 220px;
    transition: all 0.3s ease;
}

.movies-search-bar:focus-within {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.08);
    width: 260px;
}

.movies-search-bar i {
    color: rgba(255, 255, 255, 0.4);
    font-size: 17px;
    flex-shrink: 0;
}

.movies-search-bar input {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    width: 100%;
}

.movies-search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* ══════════════════════════════════════
   HERO — Full screen cinematic
══════════════════════════════════════ */
.movies-page {
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

.movies-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 560px;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.movies-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center 25%;
    filter: brightness(0.4) saturate(1.2);
    transform: scale(1.04);
    z-index: 0;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, #141414 0%, rgba(20, 20, 20, 0.75) 35%, transparent 65%),
        linear-gradient(to right, rgba(20, 20, 20, 0.92) 0%, transparent 55%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 56px 72px;
    max-width: 640px;
    animation: heroIn 0.8s ease both;
}

@keyframes heroIn {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 165, 233, 0.2);
    border: 1px solid rgba(14, 165, 233, 0.45);
    border-radius: 6px;
    padding: 5px 14px;
    font-size: 10.5px;
    font-weight: 800;
    color: #7dd3fc;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero-title {
    font-size: clamp(32px, 5vw, 62px);
    font-weight: 900;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 14px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
    letter-spacing: -1px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.hero-meta .meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.hero-meta .meta-hd {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 800;
}

.hero-desc {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 28px;
    line-height: 1.65;
    max-width: 480px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.hero-btn-play {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    color: #000;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 800;
    border: none;
    border-radius: 6px;
    padding: 12px 26px;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-btn-play i {
    font-size: 22px;
}

.hero-btn-play:hover {
    background: rgba(255, 255, 255, 0.88);
    transform: scale(1.03);
}

.hero-btn-info {
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(109, 109, 110, 0.7);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    padding: 12px 22px;
    cursor: pointer;
    transition: all 0.25s;
    backdrop-filter: blur(10px);
}

.hero-btn-info i {
    font-size: 22px;
}

.hero-btn-info:hover {
    background: rgba(109, 109, 110, 0.9);
}

/* ══════════════════════════════════════
   GENRE FILTER — sticky
══════════════════════════════════════ */
.genre-filter-wrap {
    background: rgba(20, 20, 20, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0 48px;
    position: sticky;
    top: 64px;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.genre-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 11px 0;
    scrollbar-width: none;
}

.genre-filters::-webkit-scrollbar {
    display: none;
}

.genre-pill {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 4px;
    padding: 5px 15px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: all 0.2s;
}

.genre-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.genre-pill.active {
    background: var(--nf-blue);
    border-color: var(--nf-blue);
    color: #fff;
    box-shadow: 0 2px 12px rgba(14, 165, 233, 0.4);
}

/* ══════════════════════════════════════
   MOVIES MAIN — genre row layout
══════════════════════════════════════ */
.movies-main {
    flex: 1;
    padding: 32px 0 40px;
    background: var(--bg-dark);
}

/* Grid (used for search/filter view) */
.movies-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 48px;
}

.movies-section-header h2 {
    font-size: 21px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
}

.movies-section-header h2 i {
    color: var(--nf-blue);
    font-size: 24px;
}

.movie-count {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 4px 14px;
}

/* Loading */
.movies-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    gap: 18px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
}

.loading-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(14, 165, 233, 0.15);
    border-top-color: var(--nf-blue);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.movies-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    gap: 14px;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
}

.movies-empty i {
    font-size: 64px;
    color: rgba(255, 255, 255, 0.06);
}

.movies-empty h3 {
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
}

.movies-empty p {
    font-size: 13px;
}

/* FLAT GRID (search/filter mode) */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 14px;
    padding: 0 48px;
}

/* ══════════════════════════════════════
   GENRE ROW LAYOUT (Netflix rows)
══════════════════════════════════════ */
.genre-rows-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.genre-row {
    padding: 0 0 28px;
}

.genre-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    margin-bottom: 14px;
}

.genre-row-title {
    font-size: 19px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.3px;
}

.genre-row-title i {
    color: var(--nf-blue);
}

.genre-row-see-all {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--nf-blue);
    cursor: pointer;
    transition: color 0.2s;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
}

.genre-row-see-all:hover {
    color: #38bdf8;
}

/* Horizontal scroll strip */
.genre-row-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 48px 10px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.genre-row-strip::-webkit-scrollbar {
    display: none;
}

/* ══════════════════════════════════════
   MOVIE CARD (shared)
══════════════════════════════════════ */
.movie-card {
    position: relative;
    flex-shrink: 0;
    width: 150px;
    border-radius: 8px;
    overflow: hidden;
    background: #1f1f1f;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.35s ease;
    scroll-snap-align: start;
    animation: cardIn 0.4s ease both;
}

/* In grid mode: auto-width */
.movies-grid .movie-card {
    width: auto;
    flex-shrink: unset;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.movie-card:hover {
    transform: scale(1.07) translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(14, 165, 233, 0.25);
    z-index: 10;
}

/* Poster */
.movie-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: #1a1a1a;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.4s ease;
    display: block;
}

.movie-card:hover .movie-poster img {
    transform: scale(1.08);
    filter: brightness(0.7);
}

/* Poster fallback */
.movie-poster-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #111128, #1e1a40);
}

.movie-poster-fallback i {
    font-size: 42px;
    color: rgba(14, 165, 233, 0.3);
}

.movie-poster-fallback span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    padding: 0 10px;
}

/* Play overlay */
.movie-card-play-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.movie-card:hover .movie-card-play-overlay {
    opacity: 1;
}

.movie-card-play-overlay i {
    font-size: 54px;
    color: #fff;
    filter: drop-shadow(0 0 18px rgba(14, 165, 233, 0.7));
    transform: scale(0.75);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.movie-card:hover .movie-card-play-overlay i {
    transform: scale(1);
}

/* Badges */
.movie-genre-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(14, 165, 233, 0.85);
    backdrop-filter: blur(6px);
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 9.5px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.movie-type-badge {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 9.5px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
}

.movie-type-badge.tv-series {
    background: rgba(245, 158, 11, 0.8);
    border-color: transparent;
}

.movie-status-badge {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.movie-status-badge.ongoing {
    background: rgba(234, 179, 8, 0.12);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.movie-status-badge.completed {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Card info */
.movie-card-info {
    padding: 9px 10px 11px;
    background: #1f1f1f;
}

.movie-card-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-card-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 4px;
    flex-wrap: wrap;
}

.movie-card-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* ══════════════════════════════════════
   BOTTOM NAV BAR (mobile only)
══════════════════════════════════════ */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 400;
    background: rgba(20, 20, 20, 0.97);
    backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
}

.bottom-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 5px 16px;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.38);
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: none;
    border: none;
    background: none;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.3px;
}

.bottom-nav-item i {
    font-size: 24px;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
}

.bottom-nav-item.active {
    color: var(--nf-blue);
}

.bottom-nav-item.active i {
    filter: drop-shadow(0 0 6px rgba(14, 165, 233, 0.6));
    transform: scale(1.08);
}

.bottom-nav-item:hover {
    color: rgba(255, 255, 255, 0.75);
}

/* ══════════════════════════════════════
   MODAL / PLAYER
══════════════════════════════════════ */
.movie-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 24px 16px;
    animation: fadeIn 0.2s ease;
}

.movie-modal-overlay.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.movie-modal {
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.movie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.modal-title-area {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 900;
    color: var(--nf-blue);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.movie-modal-header h3 {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.modal-close-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 22px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: rgba(14, 165, 233, 0.2);
    border-color: rgba(14, 165, 233, 0.4);
    color: var(--nf-blue);
}

.movie-player-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
}

.fb-video-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fb-video-wrapper iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
}

.fb-video-wrapper .fb-video {
    width: 100%;
    height: 100%;
}

.raw-video-wrapper {
    position: absolute;
    inset: 0;
}

.raw-video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.player-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13.5px;
    z-index: 5;
    transition: opacity 0.3s;
}

.player-loading-overlay.hidden {
    display: none;
}

.modal-movie-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    flex-wrap: wrap;
}

.modal-movie-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.modal-movie-meta span:not(:last-child)::after {
    content: '·';
    margin-left: 14px;
    color: rgba(255, 255, 255, 0.15);
}

.modal-movie-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.7;
    padding: 10px 22px 0;
    max-width: 680px;
}

.modal-help-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 22px 20px;
    background: rgba(14, 165, 233, 0.05);
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
}

.modal-help-note i {
    color: var(--nf-blue);
    font-size: 17px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Episodes */
.episodes-list-container {
    padding: 0 22px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.episodes-list-container.hidden {
    display: none;
}

.episodes-list-container h4 {
    font-size: 14px;
    font-weight: 800;
    color: #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}

.episodes-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-height: 250px;
    overflow-y: auto;
    padding: 0 10px;
}

.episodes-grid::-webkit-scrollbar {
    width: 5px;
}

.episodes-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.episodes-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.episode-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 11px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    width: 100%;
    max-width: 500px;
}

.episode-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}

.episode-item.active {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.35);
    color: #7dd3fc;
}

.episode-item i {
    font-size: 18px;
    flex-shrink: 0;
}

.ep-title-txt {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer */
.seo-content-section {
    background: #111;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 28px 48px;
}

.seo-about h2 {
    font-size: 16px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 8px;
}

.seo-about p {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1.7;
    max-width: 700px;
}

.site-footer {
    background: #0d0d0d;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0 48px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 40px;
    padding: 32px 0 26px;
}

.footer-logo {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo span {
    color: var(--nf-blue);
}

.footer-brand p {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.22);
    line-height: 1.6;
}

.footer-links h4,
.footer-disclaimer h4 {
    font-size: 11.5px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.28);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.footer-disclaimer p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.18);
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 14px 0;
    text-align: center;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.13);
}

/* Utility */
.hidden {
    display: none !important;
}

/* ══════════════════════════════════════
   RESPONSIVE — TABLET
══════════════════════════════════════ */
@media (max-width: 900px) {
    .navbar {
        padding: 0 20px;
    }

    .genre-filter-wrap {
        padding: 0 16px;
        top: 58px;
    }

    .movies-main {
        padding: 24px 0 80px;
    }

    .movies-section-header {
        padding: 0 16px;
    }

    .movies-grid {
        padding: 0 16px;
        grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
        gap: 12px;
    }

    .genre-row-header {
        padding: 0 16px;
    }

    .genre-row-strip {
        padding: 6px 16px 10px;
    }

    .hero-content {
        padding: 0 24px 70px;
    }

    .seo-content-section {
        padding: 20px 16px;
    }

    .site-footer {
        padding: 0 16px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ══════════════════════════════════════
   RESPONSIVE — MOBILE (Netflix app feel)
══════════════════════════════════════ */
@media (max-width: 640px) {

    /* Show bottom nav, hide top nav links & search */
    .bottom-nav {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .movies-nav-right {
        display: none;
    }

    /* Compact top navbar */
    .navbar {
        padding: 0 16px;
        height: 54px;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, transparent 100%);
    }

    .navbar.scrolled {
        background: rgba(20, 20, 20, 0.98);
    }

    .logo {
        font-size: 19px;
    }

    .logo-icon {
        font-size: 23px;
    }

    /* Hero fills most of screen */
    .movies-hero {
        height: 75vh;
        min-height: 440px;
    }

    .hero-title {
        font-size: clamp(24px, 7vw, 36px);
    }

    .hero-desc {
        font-size: 13px;
        margin-bottom: 22px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .hero-content {
        padding: 0 18px 60px;
    }

    .hero-badge {
        font-size: 9.5px;
        margin-bottom: 12px;
    }

    .hero-btn-play {
        font-size: 14px;
        padding: 10px 22px;
    }

    .hero-btn-info {
        font-size: 14px;
        padding: 10px 18px;
    }

    /* Genre filter */
    .genre-filter-wrap {
        padding: 0 12px;
        top: 54px;
    }

    .genre-pill {
        font-size: 12px;
        padding: 5px 13px;
    }

    /* Section header */
    .movies-section-header {
        padding: 0 12px;
    }

    .movies-section-header h2 {
        font-size: 17px;
    }

    /* Genre rows */
    .genre-row {
        padding: 0 0 22px;
    }

    .genre-row-header {
        padding: 0 14px;
        margin-bottom: 10px;
    }

    .genre-row-title {
        font-size: 16px;
    }

    .genre-row-strip {
        padding: 4px 14px 8px;
        gap: 8px;
    }

    /* Cards in strip — smaller on mobile */
    .movie-card {
        width: 120px;
        border-radius: 6px;
    }

    .movie-card-info {
        padding: 7px 8px 9px;
    }

    .movie-card-title {
        font-size: 11.5px;
    }

    .movie-card-meta {
        font-size: 10px;
        margin-top: 3px;
    }

    /* Grid on search */
    .movies-grid {
        padding: 0 12px;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .movies-grid .movie-card {
        width: auto;
    }

    /* Main padding bottom for bottom nav */
    .movies-main {
        padding-bottom: 90px;
    }

    /* Flat modal */
    .movie-modal {
        border-radius: 10px;
    }

    .movie-modal-overlay {
        padding: 8px;
    }

    .movie-modal-header {
        padding: 12px 14px;
    }

    .movie-modal-header h3 {
        font-size: 14.5px;
    }

    .modal-movie-meta,
    .modal-movie-desc,
    .modal-help-note {
        padding-left: 14px;
        padding-right: 14px;
    }

    .modal-help-note {
        margin-left: 0;
        margin-right: 0;
    }

    .episodes-list-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    /* Footer hide on mobile */
    .seo-content-section {
        display: none;
    }

    .site-footer .footer-inner {
        padding: 20px 0 14px;
        gap: 12px;
    }
}

@media (max-width: 380px) {
    .movie-card {
        width: 105px;
    }

    .movies-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .hero-btn-play,
    .hero-btn-info {
        width: 100%;
        justify-content: center;
    }
}