/* Import Inter font directly in CSS (works even if HTML forgets to load it) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-tertiary: #1a1a1a;
    --bg-card: #181818;
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.18);
    --text-primary: #ffffff;
    --text-secondary: rgba(255,255,255,0.75);
    --text-muted: rgba(255,255,255,0.5);
    --accent: #e50914;
    --accent-hover: #f6121d;
    --gold: #fbbf24;
}

html, body { background: var(--bg-primary); }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.fonts-loaded body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ================= NAVBAR ================= */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.3s ease;
}
.navbar.scrolled {
    background: rgba(10,10,10,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.nav-inner {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 4%;
    display: flex;
    align-items: center;
    gap: 32px;
}
.logo { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.logo img { height: 56px; width: auto; object-fit: contain; }
.logo-tagline {
    font-size: 9px; font-weight: 700; color: rgba(255,255,255,0.7);
    letter-spacing: 2px; text-transform: uppercase; margin-top: 3px;
}
.nav-center { display: flex; gap: 6px; flex: 1; }
.nav-link {
    color: var(--text-secondary); padding: 8px 14px;
    font-size: 14px; font-weight: 500; border-radius: 6px;
    transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 12px; position: relative; }
.search-wrapper { position: relative; }
.search-toggle {
    color: #fff; padding: 8px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.search-toggle:hover { background: rgba(255,255,255,0.1); }
.search-dropdown {
    position: absolute; top: calc(100% + 14px); right: 0;
    width: 400px; background: rgba(15,15,15,0.98);
    backdrop-filter: blur(24px); border: 1px solid var(--border);
    border-radius: 14px; padding: 14px;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all 0.25s ease;
    box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}
.search-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0); }
.search-form-large {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.06); border: 1px solid var(--border);
    border-radius: 10px; padding: 12px 14px;
}
.search-form-large input {
    background: none; border: none; outline: none;
    color: #fff; font-size: 14px; width: 100%; font-family: inherit;
}
.search-form-large svg { color: var(--text-muted); }
.live-results { margin-top: 10px; max-height: 400px; overflow-y: auto; }
.live-result-item { display: flex; gap: 12px; padding: 10px; border-radius: 8px; align-items: center; }
.live-result-item:hover { background: rgba(255,255,255,0.06); }
.live-result-item img { width: 40px; height: 60px; border-radius: 4px; object-fit: cover; }
.live-result-text { flex: 1; min-width: 0; }
.live-result-text h4 { font-size: 13px; font-weight: 600; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-result-text p { font-size: 11px; color: var(--text-muted); }
.trending-searches { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.trending-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: 8px; padding: 0 6px; }
.trending-list { display: flex; flex-direction: column; gap: 2px; }
.trending-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: var(--text-secondary); font-size: 13px; }
.trending-item:hover { background: rgba(255,255,255,0.06); color: #fff; }

/* ================= HERO ================= */
.hero-slider {
    position: relative;
    height: 92vh;
    min-height: 640px;
    overflow: hidden;
    margin-top: -72px;
}
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    display: flex; align-items: center; padding: 0 4%;
    opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-content { max-width: 620px; z-index: 2; padding-top: 70px; }
.hero-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(229,9,20,0.15); border: 1px solid rgba(229,9,20,0.35);
    color: var(--accent); padding: 5px 12px; border-radius: 4px;
    font-size: 11px; font-weight: 700; letter-spacing: 1.5px; margin-bottom: 18px;
}
.hero-title {
    font-size: clamp(36px, 5.5vw, 64px); font-weight: 900;
    margin-bottom: 16px; line-height: 1; letter-spacing: -1.5px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.6);
}
.hero-meta { display: flex; gap: 16px; margin-bottom: 18px; align-items: center; flex-wrap: wrap; color: var(--text-secondary); font-size: 13px; font-weight: 500; }
.meta-rating { display: inline-flex; align-items: center; gap: 5px; color: var(--gold); font-weight: 700; }
.meta-badge {
    background: rgba(255,255,255,0.12); padding: 3px 10px; border-radius: 3px;
    font-size: 10px; font-weight: 700; letter-spacing: 0.5px; border: 1px solid var(--border);
}
.hero-overview {
    color: rgba(255,255,255,0.88); font-size: 15px; line-height: 1.6;
    margin-bottom: 28px; max-width: 540px; text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary, .btn-secondary {
    padding: 12px 28px; border-radius: 6px; font-weight: 700;
    font-size: 14px; display: inline-flex; align-items: center; gap: 10px;
    transition: all 0.2s ease;
}
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { background: rgba(255,255,255,0.85); transform: translateY(-1px); }
.btn-secondary { background: rgba(109,109,110,0.6); color: #fff; backdrop-filter: blur(10px); }
.btn-secondary:hover { background: rgba(109,109,110,0.85); }
.btn-large { padding: 16px 36px; font-size: 16px; border-radius: 8px; }

/* ================= ROWS ================= */
.content { padding: 30px 4% 60px; margin-top: -80px; position: relative; z-index: 5; }
.row { margin-bottom: 42px; position: relative; }
.row-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.row-title {
    font-size: 22px; font-weight: 700; letter-spacing: -0.3px;
    display: flex; align-items: center; gap: 8px;
}
.row-see-all { color: var(--text-muted); font-size: 12px; font-weight: 600; }
.row-see-all:hover { color: var(--accent); }

.row-scroll-wrap { position: relative; }
.row-scroll {
    display: flex; gap: 12px;
    overflow-x: auto; overflow-y: hidden;
    padding: 8px 0 16px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.row-scroll::-webkit-scrollbar { display: none; }

.row-arrow {
    position: absolute; top: 0; bottom: 16px;
    width: 50px;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
    color: #fff; display: flex; align-items: center; justify-content: center;
    z-index: 10; opacity: 0; transition: opacity 0.3s;
    border-radius: 8px; cursor: pointer;
}
.row-arrow.left { left: 0; }
.row-arrow.right { right: 0; }
.row-scroll-wrap:hover .row-arrow { opacity: 1; }
.row-arrow:hover { background: rgba(0,0,0,0.85); }

/* ================= MOVIE CARD (NETFLIX-GRADE) ================= */
.movie-card {
    flex: 0 0 180px;
    width: 180px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    scroll-snap-align: start;
    display: block;
    color: inherit;
    text-decoration: none;
}
.movie-card:hover { transform: scale(1.06); z-index: 20; }

.poster-container {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 10px;
    overflow: hidden;
    background: #111;
    border: 1px solid var(--border);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.movie-card:hover .poster-container {
    border-color: var(--border-hover);
    box-shadow: 0 12px 32px rgba(0,0,0,0.7);
}
.poster-container img,
.poster-container .hover-trailer {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.poster-container .no-img {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.15); background: var(--bg-card);
}

.hover-trailer {
    opacity: 0; transition: opacity 0.4s ease;
    z-index: 2; pointer-events: none;
}
.hover-trailer.visible { opacity: 1; }
.hover-trailer iframe {
    position: absolute; top: 50%; left: 50%;
    width: 200%; height: 200%;
    transform: translate(-50%, -50%);
    border: none;
}

.card-rating-badge {
    position: absolute; top: 8px; left: 8px;
    background: rgba(0,0,0,0.85); color: var(--gold);
    padding: 3px 8px; border-radius: 4px;
    font-size: 11px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 4px;
    backdrop-filter: blur(10px); z-index: 3;
}
.card-rating-badge.new { color: #fff; background: var(--accent); }

.card-type-badge {
    position: absolute; top: 8px; right: 8px;
    background: rgba(0,0,0,0.85); color: #fff;
    padding: 3px 8px; border-radius: 4px;
    font-size: 9px; font-weight: 700; letter-spacing: 0.5px;
    backdrop-filter: blur(10px); z-index: 3;
}

.card-quick-actions {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    display: flex; align-items: flex-end; justify-content: center;
    padding: 14px;
    opacity: 0; transition: opacity 0.25s; z-index: 4;
}
.movie-card:hover .card-quick-actions { opacity: 1; }

.quick-btns { display: flex; gap: 8px; }
.quick-btn {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.95); color: #000;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s, background 0.2s;
    border: 2px solid rgba(255,255,255,0.9);
}
.quick-btn:hover { transform: scale(1.15); background: #fff; }
.quick-btn.outline { background: rgba(40,40,40,0.85); color: #fff; border-color: rgba(255,255,255,0.6); }
.quick-btn.outline:hover { background: rgba(80,80,80,0.95); }

.movie-info {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 2px;
}
.rating-year {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--text-muted); font-weight: 500;
}
.rating-year .rating { color: var(--gold); font-weight: 700; }
.rating-year .dot { width: 3px; height: 3px; background: var(--text-muted); border-radius: 50%; }
.movie-title {
    font-size: 14px; font-weight: 600; color: #fff;
    line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ================= GRID LAYOUTS ================= */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px 16px;
    width: 100%;
}
.movie-grid .movie-card {
    flex: none; width: 100%;
}

/* ================= TOP 10 ================= */
.top-10-row { margin-bottom: 50px; }
.top-10-scroll { padding: 20px 0 30px; gap: 4px; }
.top-10-card {
    flex: 0 0 240px; height: 200px;
    position: relative; display: flex; align-items: flex-end;
    transition: transform 0.3s; scroll-snap-align: start;
}
.top-10-card:hover { transform: scale(1.04); z-index: 5; }
.top-10-number {
    font-size: 200px; font-weight: 900; line-height: 0.85;
    color: var(--bg-primary);
    -webkit-text-stroke: 3px rgba(255,255,255,0.4);
    margin-right: -40px; z-index: 1; user-select: none;
}
.top-10-poster {
    width: 130px; height: 195px; border-radius: 8px;
    overflow: hidden; z-index: 2;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.top-10-poster img { width: 100%; height: 100%; object-fit: cover; }

/* ================= CONTINUE WATCHING ================= */
.continue-card {
    flex: 0 0 300px; width: 300px;
    transition: transform 0.3s;
    border-radius: 8px; scroll-snap-align: start;
}
.continue-card:hover { transform: scale(1.03); }
.continue-thumb {
    position: relative; width: 100%; aspect-ratio: 16/9;
    border-radius: 8px; overflow: hidden;
    background: var(--bg-card); border: 1px solid var(--border);
}
.continue-thumb img { width: 100%; height: 100%; object-fit: cover; }
.continue-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s;
}
.continue-card:hover .continue-overlay { opacity: 1; }
.continue-overlay .play-icon {
    width: 52px; height: 52px; background: rgba(255,255,255,0.95);
    color: #000; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    padding-left: 4px;
}
.progress-bar {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 4px; background: rgba(255,255,255,0.2);
}
.progress-fill { height: 100%; background: var(--accent); }
.remove-btn {
    position: absolute; top: 8px; right: 8px;
    width: 30px; height: 30px;
    background: rgba(0,0,0,0.75); border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%; color: #fff;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: all 0.2s;
}
.continue-card:hover .remove-btn { opacity: 1; }
.remove-btn:hover { background: var(--accent); border-color: var(--accent); }
.continue-info { padding: 10px 4px; }
.continue-info h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.continue-info p { font-size: 12px; color: var(--text-muted); }

.continue-list { display: flex; flex-direction: column; gap: 12px; }
.continue-row-item {
    display: flex; gap: 16px; padding: 12px;
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: 10px; align-items: center;
}
.continue-row-thumb {
    position: relative; width: 220px; height: 130px;
    border-radius: 6px; overflow: hidden; flex-shrink: 0;
    background: var(--bg-card);
}
.continue-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.continue-row-info { flex: 1; min-width: 0; }
.continue-row-info h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.continue-subtitle { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.continue-meta { font-size: 12px; color: var(--text-muted); }
.continue-remove {
    background: transparent; border: 1px solid var(--border);
    color: var(--text-muted); width: 38px; height: 38px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* ================= WATCH PAGE ================= */
.watch-body { background: #000; }
.watch-container { padding: 0; max-width: 100%; }
.premium-player {
    position: relative; width: 100%;
    aspect-ratio: 16/9; max-height: 92vh;
    background: #000; overflow: hidden;
    margin-top: 72px;
}
.premium-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.player-loading-state {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.95);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 18px; z-index: 50;
}
.loader-ring {
    width: 60px; height: 60px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top-color: var(--accent);
    border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.player-loading-state p { color: #fff; font-size: 14px; }
.player-overlay-top {
    position: absolute; top: 0; left: 0; right: 0;
    padding: 20px 30px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, transparent 100%);
    z-index: 20; opacity: 0; transition: opacity 0.3s;
    pointer-events: none;
}
.player-overlay-top.visible { opacity: 1; pointer-events: auto; }
.overlay-info { display: flex; align-items: center; gap: 18px; }
.back-btn {
    width: 44px; height: 44px;
    background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; backdrop-filter: blur(10px);
}
.back-btn:hover { background: var(--accent); border-color: var(--accent); }
.overlay-title { font-size: 22px; font-weight: 700; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.6); }
.overlay-subtitle { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 4px; display: block; }
.player-overlay-bottom {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 50px 30px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 100%);
    z-index: 20; opacity: 0; transition: opacity 0.3s;
    pointer-events: none;
}
.player-overlay-bottom.visible { opacity: 1; pointer-events: auto; }
.current-server-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(10px);
    padding: 6px 14px; border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 12px; color: rgba(255,255,255,0.8); margin-bottom: 14px;
}
.current-server-badge strong { color: var(--accent); font-weight: 700; }
.server-dot {
    width: 8px; height: 8px; background: #10b981;
    border-radius: 50%; box-shadow: 0 0 8px rgba(16,185,129,0.6);
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.player-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.player-ctrl-btn {
    background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.15);
    color: #fff; padding: 10px 16px; border-radius: 8px;
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 500; font-family: inherit;
    transition: all 0.2s; backdrop-filter: blur(10px);
}
.player-ctrl-btn:hover:not(:disabled) { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); }
.player-ctrl-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.player-ctrl-btn.primary { background: var(--accent); border-color: var(--accent); }
#serverBtn { background: rgba(229,9,20,0.2); border-color: rgba(229,9,20,0.5); }
.player-popup {
    position: absolute; bottom: 110px; right: 30px;
    width: 380px; max-height: 480px;
    background: rgba(15,15,15,0.98); backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 14px;
    z-index: 100; opacity: 0; visibility: hidden;
    transform: translateY(15px) scale(0.97);
    transition: all 0.25s ease;
    box-shadow: 0 25px 60px rgba(0,0,0,0.7);
    display: flex; flex-direction: column; overflow: hidden;
}
.player-popup.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.popup-header {
    padding: 18px 22px; border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: space-between;
}
.popup-header h3 { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 10px; text-transform: uppercase; }
.popup-close {
    background: rgba(255,255,255,0.08); color: #fff;
    width: 30px; height: 30px; border-radius: 50%;
    font-size: 20px; line-height: 1;
}
.popup-body { padding: 16px 18px; overflow-y: auto; flex: 1; }
.popup-info {
    background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.2);
    color: rgba(147,197,253,0.95); padding: 11px 13px;
    border-radius: 8px; font-size: 12px; line-height: 1.5; margin-bottom: 14px;
}
.server-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.server-card {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
    color: #fff; padding: 14px; border-radius: 8px;
    text-align: left; position: relative; font-family: inherit;
    transition: all 0.2s ease;
}
.server-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }
.server-card.active { background: rgba(229,9,20,0.12); border-color: var(--accent); }
.server-card-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.server-card.active .server-card-name { color: var(--accent); }
.server-card-meta { font-size: 11px; color: rgba(255,255,255,0.5); }
.server-status-dot {
    position: absolute; top: 12px; right: 12px;
    width: 8px; height: 8px; background: rgba(255,255,255,0.2); border-radius: 50%;
}
.server-card.active .server-status-dot { background: #10b981; box-shadow: 0 0 8px rgba(16,185,129,0.6); }

#subBtn, #audioBtn, #speedBtn, #qualityBtn, #pipBtn,
#subPopup, #audioPopup, #speedPopup, #qualityPopup,
.share-btn, .progress-bar-wrap { display: none; }

.player-honest-msg {
    background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3);
    border-radius: 10px; padding: 14px 18px; margin: 16px auto;
    max-width: 1620px; color: rgba(147,197,253,0.95);
    font-size: 13px; line-height: 1.6;
    display: flex; gap: 12px; align-items: flex-start;
}
.player-honest-msg svg { flex-shrink: 0; color: #60a5fa; margin-top: 2px; }
.player-honest-msg strong { color: #fff; }

.watch-info-section { padding: 30px 4%; max-width: 1700px; margin: 0 auto; }
.watch-info-title { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.watch-info-meta {
    display: flex; gap: 16px; align-items: center;
    margin-bottom: 16px; flex-wrap: wrap;
    color: rgba(255,255,255,0.7); font-size: 13px;
}
.watch-info-overview { color: rgba(255,255,255,0.85); line-height: 1.7; font-size: 14px; max-width: 900px; }
.genres { display: flex; gap: 6px; flex-wrap: wrap; }
.genre-tag {
    background: rgba(255,255,255,0.06); color: var(--text-secondary);
    padding: 5px 12px; border-radius: 20px; font-size: 12px;
    border: 1px solid var(--border);
}
.genre-tag:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ================= EPISODES ================= */
.episodes-section { padding: 0 4% 50px; max-width: 1700px; margin: 0 auto; }
.episodes-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.episodes-section h2 { font-size: 22px; font-weight: 700; }
.season-select {
    background: var(--bg-secondary); color: #fff; border: 1px solid var(--border);
    padding: 10px 16px; border-radius: 6px; font-family: inherit; font-size: 13px; min-width: 180px;
}
.episodes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.episode-card {
    display: flex; background: var(--bg-secondary);
    border-radius: 8px; overflow: hidden;
    transition: all 0.2s; border: 1px solid var(--border);
}
.episode-card:hover { background: var(--bg-tertiary); }
.episode-card.active { background: rgba(229,9,20,0.08); border-color: rgba(229,9,20,0.4); }
.ep-thumb { position: relative; width: 160px; height: 90px; flex-shrink: 0; }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-play {
    position: absolute; inset: 0; background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center; color: #fff; opacity: 0;
}
.episode-card:hover .ep-play { opacity: 1; }
.ep-info { padding: 10px 14px; flex: 1; overflow: hidden; }
.ep-num { font-size: 10px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 3px; font-weight: 700; }
.ep-info h4 { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.ep-info p { font-size: 11px; color: var(--text-muted); line-height: 1.4; }

/* ================= DETAIL PAGE ================= */
.detail-backdrop-wrap {
    position: fixed; top: 0; left: 0; right: 0; height: 90vh;
    z-index: 0; overflow: hidden;
}
.detail-backdrop {
    position: absolute; inset: 0;
    background-size: cover; background-position: center top;
    transition: opacity 1s ease;
}
.detail-trailer-bg {
    position: absolute; inset: 0; opacity: 0;
    transition: opacity 1s ease; overflow: hidden; background: #000;
}
.detail-trailer-bg iframe {
    position: absolute; top: 50%; left: 50%;
    width: 177.77vh; height: 100vh;
    min-width: 100%; min-height: 56.25vw;
    transform: translate(-50%, -50%);
    border: none; pointer-events: none;
}
.trailer-bg-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(to bottom, rgba(10,10,10,0) 0%, rgba(10,10,10,0.4) 60%, rgba(10,10,10,1) 100%),
        linear-gradient(to right, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.3) 50%, transparent 100%);
    z-index: 2; pointer-events: none;
}
.detail-page { position: relative; z-index: 5; padding: 50vh 4% 60px; max-width: 1700px; margin: 0 auto; }
.detail-content {
    display: grid; grid-template-columns: 280px 1fr; gap: 40px;
    background: rgba(10,10,10,0.65); backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: 16px; padding: 36px;
}
.detail-poster { width: 100%; border-radius: 10px; box-shadow: 0 20px 50px rgba(0,0,0,0.6); }
.detail-title { font-size: clamp(28px, 4vw, 44px); font-weight: 900; margin-bottom: 10px; letter-spacing: -1px; line-height: 1.1; }
.detail-tagline { color: var(--text-muted); font-style: italic; font-size: 15px; margin-bottom: 18px; }
.detail-meta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; font-size: 14px; color: var(--text-secondary); }
.detail-genres { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.detail-overview { color: var(--text-secondary); font-size: 15px; line-height: 1.7; margin-bottom: 30px; max-width: 700px; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.btn-trailer {
    background: transparent; border: 1px solid var(--border);
    color: var(--text-secondary); padding: 10px 20px; border-radius: 6px;
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-family: inherit; margin-bottom: 24px;
}
.btn-trailer:hover { border-color: var(--accent); color: var(--accent); }
.detail-cast h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.cast-scroll { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.cast-scroll::-webkit-scrollbar { display: none; }
.cast-member-sm { flex: 0 0 80px; text-align: center; }
.cast-member-sm img, .cast-no-photo {
    width: 64px; height: 64px; border-radius: 50%;
    object-fit: cover; margin: 0 auto 6px;
    border: 1px solid var(--border);
}
.cast-no-photo { background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.cast-name { display: block; font-size: 11px; font-weight: 600; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cast-role { display: block; font-size: 10px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trailer-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.92);
    z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 40px;
}
.trailer-close {
    position: absolute; top: 20px; right: 20px;
    background: rgba(255,255,255,0.1); color: #fff;
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.trailer-wrapper { width: 100%; max-width: 1000px; aspect-ratio: 16/9; }
.trailer-wrapper iframe { width: 100%; height: 100%; border: none; border-radius: 10px; }

/* ================= LISTING / SEARCH / PAGE CONTAINERS ================= */
.listing-hero {
    position: relative; height: 75vh; min-height: 540px;
    background-size: cover; background-position: center;
    display: flex; align-items: center; padding: 0 4%;
    margin-top: -72px; margin-bottom: 30px;
}
.listing-hero-content { max-width: 620px; padding-top: 70px; z-index: 2; }
.listing-hero-content h1 { font-size: clamp(32px, 4.5vw, 52px); font-weight: 900; margin-bottom: 12px; letter-spacing: -1px; line-height: 1.1; }
.listing-hero-content p { font-size: 15px; line-height: 1.6; margin-bottom: 24px; color: rgba(255,255,255,0.85); }

.listing-container, .page-container, .search-page, .person-page {
    padding: 110px 4% 60px; max-width: 1700px; margin: 0 auto; min-height: 100vh;
}
.listing-page-header, .page-header { margin-bottom: 30px; }
.listing-page-header h1, .page-header h1 { font-size: 32px; font-weight: 800; margin-bottom: 18px; }
.page-header p { color: var(--text-muted); font-size: 14px; }
.category-tabs, .page-tabs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cat-tab, .page-tab {
    background: var(--bg-secondary); color: var(--text-secondary);
    padding: 8px 18px; border-radius: 20px; font-size: 13px;
    border: 1px solid var(--border); font-weight: 500; font-family: inherit;
}
.cat-tab.active, .page-tab.active { background: #fff; color: #000; border-color: #fff; }
.clear-list-btn {
    background: transparent; border: 1px solid var(--border); color: var(--text-muted);
    padding: 8px 14px; border-radius: 20px; font-size: 12px;
    margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
    font-family: inherit;
}
.clear-list-btn:hover { background: rgba(229,9,20,0.1); border-color: var(--accent); color: var(--accent); }

/* ================= GENRES PAGE ================= */
.genres-hero {
    height: 60vh; min-height: 380px;
    background-size: cover; background-position: center;
    display: flex; align-items: center; padding: 0 4%;
    margin-top: -72px; margin-bottom: 30px;
}
.genres-hero-content { max-width: 620px; padding-top: 70px; }
.genres-hero-content h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 900; letter-spacing: -1.5px; margin-bottom: 10px; }
.genres-hero-content p { font-size: 16px; color: rgba(255,255,255,0.7); }
.genres-page { padding: 30px 4% 60px; max-width: 1700px; margin: 0 auto; }
.section-title-bar { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.section-title-bar h2 { font-size: 22px; font-weight: 700; }
.section-count { font-size: 12px; color: rgba(255,255,255,0.4); }
.genre-section { margin-bottom: 50px; }

.platforms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.platform-card { position: relative; height: 80px; border-radius: 10px; overflow: hidden; transition: all 0.3s ease; border: 1px solid; }
.platform-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,0.4); }
.platform-card-content { height: 100%; padding: 18px; display: flex; align-items: center; justify-content: space-between; }
.platform-name { font-size: 17px; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.platform-arrow { color: rgba(255,255,255,0.5); transition: all 0.3s; }
.platform-card:hover .platform-arrow { color: #fff; transform: translateX(4px); }
.platform-badge {
    display: inline-block; padding: 5px 12px; border-radius: 4px;
    color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 1.5px;
    margin-bottom: 14px; text-transform: uppercase;
}
.premium-genre-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.premium-genre-card { position: relative; height: 110px; border-radius: 12px; overflow: hidden; transition: all 0.3s ease; }
.genre-card-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); transition: all 0.3s; }
.premium-genre-card:nth-child(2n) .genre-card-bg { background: linear-gradient(135deg, #2d1b3d, #4a1f5e); }
.premium-genre-card:nth-child(3n) .genre-card-bg { background: linear-gradient(135deg, #1f3a3d, #3a5a64); }
.premium-genre-card:nth-child(4n) .genre-card-bg { background: linear-gradient(135deg, #3d1f1f, #5e3030); }
.premium-genre-card:nth-child(5n) .genre-card-bg { background: linear-gradient(135deg, #1f3d2d, #305e48); }
.premium-genre-card:hover { transform: translateY(-4px); box-shadow: 0 15px 40px rgba(0,0,0,0.5); }
.genre-card-content { position: relative; z-index: 2; height: 100%; padding: 20px; display: flex; align-items: center; gap: 14px; }
.genre-icon {
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    color: #fff; flex-shrink: 0;
}
.premium-genre-card:hover .genre-icon { background: var(--accent); border-color: var(--accent); }
.genre-card-content h3 { flex: 1; font-size: 16px; font-weight: 700; color: #fff; }
.genre-arrow { color: rgba(255,255,255,0.4); transition: all 0.3s; }
.premium-genre-card:hover .genre-arrow { color: #fff; transform: translateX(4px); }

/* ================= SEARCH PAGE ================= */
.search-hero { margin-bottom: 40px; }
.big-search {
    display: flex; align-items: center; gap: 14px;
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: 12px; padding: 6px 6px 6px 20px;
    max-width: 800px; margin: 0 auto 24px;
}
.big-search input {
    background: none; border: none; outline: none;
    color: #fff; font-size: 16px; flex: 1; padding: 14px 0; font-family: inherit;
}
.big-search button {
    background: #fff; color: #000; padding: 12px 28px;
    border-radius: 8px; font-weight: 700; font-family: inherit;
}
.search-filters { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.filter-pill {
    background: var(--bg-secondary); color: var(--text-secondary);
    padding: 8px 18px; border-radius: 20px; border: 1px solid var(--border); font-size: 13px;
}
.filter-pill.active { background: #fff; color: #000; border-color: #fff; }
.search-results-info { margin-bottom: 24px; }
.search-results-info h2 { font-size: 18px; color: var(--text-secondary); }
.person-card {
    text-align: center; padding: 20px 12px;
    background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 8px;
}
.person-photo {
    width: 100px; height: 100px; border-radius: 50%;
    overflow: hidden; margin: 0 auto 12px; background: var(--bg-tertiary);
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-info h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.person-info p { font-size: 11px; color: var(--text-muted); }
.search-empty-state { text-align: center; padding: 40px 20px; }
.search-empty-state h2 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.search-empty-state p { color: var(--text-muted); margin-bottom: 40px; }
.trending-suggestions h3 { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; text-transform: uppercase; }
.suggestion-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.suggestion-tag {
    background: var(--bg-secondary); border: 1px solid var(--border);
    color: var(--text-secondary); padding: 10px 18px; border-radius: 20px; font-size: 13px;
}
.suggestion-tag:hover { background: var(--accent); color: #fff; }

/* ================= PERSON ================= */
.person-header {
    display: grid; grid-template-columns: 250px 1fr; gap: 40px;
    margin-bottom: 50px; background: var(--bg-secondary);
    border: 1px solid var(--border); border-radius: 12px; padding: 30px;
}
.person-avatar { width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg-tertiary); }
.person-avatar img { width: 100%; height: 100%; object-fit: cover; }
.person-details h1 { font-size: 36px; font-weight: 800; margin-bottom: 8px; }
.person-role { color: var(--accent); font-size: 15px; font-weight: 700; margin-bottom: 20px; }
.person-meta { display: flex; gap: 30px; margin-bottom: 24px; flex-wrap: wrap; }
.meta-item { display: flex; flex-direction: column; gap: 4px; }
.meta-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.person-bio { color: var(--text-secondary); line-height: 1.7; font-size: 14px; }

/* ================= PAGINATION + EMPTY ================= */
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.page-btn {
    background: #fff; color: #000;
    padding: 10px 22px; border-radius: 6px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 8px; font-size: 13px;
}
.page-info { color: var(--text-muted); font-size: 13px; }
.no-results, .empty-state { text-align: center; padding: 80px 20px; color: var(--text-muted); }
.no-results svg, .empty-state svg { margin-bottom: 16px; opacity: 0.5; }
.no-results h2, .empty-state h2 { font-size: 22px; margin-bottom: 6px; color: var(--text-secondary); }
.no-results p, .empty-state p { font-size: 14px; }

.watchlist-btn.in-list { background: rgba(229,9,20,0.2); border-color: var(--accent); color: var(--accent); }

/* ================= FOOTER ================= */
.footer {
    background: var(--bg-secondary); padding: 30px 4%;
    margin-top: 50px; border-top: 1px solid var(--border);
}
.footer-inner { max-width: 1700px; margin: 0 auto; text-align: center; }
.footer-logo {
    font-size: 16px; font-weight: 800; color: var(--accent); margin-bottom: 8px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.footer p { color: var(--text-muted); font-size: 12px; letter-spacing: 0.5px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1280px) {
    .movie-card { flex: 0 0 165px; width: 165px; }
}
@media (max-width: 1024px) {
    .detail-content { grid-template-columns: 1fr; padding: 24px; }
    .detail-poster { max-width: 220px; margin: 0 auto; }
    .movie-card { flex: 0 0 155px; width: 155px; }
    .movie-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 20px 14px; }
}
@media (max-width: 768px) {
    .nav-inner { gap: 12px; padding: 0 16px; }
    .nav-center { display: none; }
    .search-dropdown { width: calc(100vw - 32px); right: -8px; }
    .logo img { height: 44px; }
    .logo-tagline { font-size: 8px; }
    .hero-slider { height: 80vh; min-height: 500px; }
    .listing-hero { height: 65vh; min-height: 440px; }
    .genres-hero { height: 55vh; min-height: 360px; }
    .hero-content { padding-top: 80px; }
    .hero-title { font-size: 32px; }
    .movie-card { flex: 0 0 145px; width: 145px; }
    .movie-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 12px; }
    .movie-title { font-size: 13px; }
    .rating-year { font-size: 11px; }
    .top-10-card { flex: 0 0 200px; height: 160px; }
    .top-10-number { font-size: 150px; margin-right: -25px; }
    .top-10-poster { width: 105px; height: 158px; }
    .continue-card { flex: 0 0 240px; width: 240px; }
    .continue-row-thumb { width: 140px; height: 80px; }
    .episodes-grid { grid-template-columns: 1fr; }
    .person-header { grid-template-columns: 1fr; padding: 20px; }
    .content { padding: 20px 16px 40px; margin-top: -60px; }
    .premium-player { margin-top: 60px; }
    .player-overlay-top { padding: 14px 16px; }
    .player-overlay-bottom { padding: 40px 16px 16px; }
    .overlay-title { font-size: 16px; }
    .player-ctrl-btn { padding: 8px 12px; font-size: 12px; }
    .player-popup { width: calc(100vw - 24px); right: 12px; bottom: 90px; max-height: 60vh; }
    .server-grid { grid-template-columns: 1fr; }
    .premium-genre-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
    .premium-genre-card { height: 90px; }
    .genre-icon { width: 36px; height: 36px; }
    .genre-card-content h3 { font-size: 14px; }
    .row-arrow { display: none; }
}
@media (max-width: 480px) {
    .logo img { height: 38px; }
    .movie-card { flex: 0 0 130px; width: 130px; }
    .movie-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 10px; }
    .movie-title { font-size: 12px; }
    .top-10-card { flex: 0 0 170px; height: 140px; }
    .top-10-number { font-size: 120px; margin-right: -20px; }
    .top-10-poster { width: 90px; height: 135px; }
    .continue-card { flex: 0 0 220px; width: 220px; }
    .hero-title { font-size: 28px; }
    .btn-primary, .btn-secondary { padding: 10px 20px; font-size: 13px; }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
/* ============================================ */
/* AUTH PAGES (LOGIN / SIGNUP) */
/* ============================================ */
.auth-body {
    background: #000;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}
.auth-bg {
    position: fixed; inset: 0;
    background-image: url('https://image.tmdb.org/t/p/original/628Dep6AxEtDxjZoGP78TsOxYbK.jpg');
    background-size: cover; background-position: center;
    z-index: 0;
}
.auth-overlay {
    position: fixed; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.85));
    z-index: 1;
}
.auth-header {
    position: relative; z-index: 10;
    padding: 20px 4%;
}
.auth-logo img { height: 60px; }
.auth-wrap {
    position: relative; z-index: 10;
    display: flex; justify-content: center; align-items: center;
    padding: 40px 20px 80px;
    min-height: calc(100vh - 110px);
}
.auth-card {
    background: rgba(0,0,0,0.78);
    padding: 50px 60px;
    border-radius: 8px;
    max-width: 450px; width: 100%;
    backdrop-filter: blur(8px);
}
.auth-card-wide { max-width: 700px; }
.auth-card h1 {
    font-size: 32px; font-weight: 800;
    margin-bottom: 28px;
}
.auth-subtitle {
    font-size: 14px; color: rgba(255,255,255,0.6);
    margin-top: -20px; margin-bottom: 28px;
}
.auth-error {
    background: rgba(229,9,20,0.15);
    border: 1px solid rgba(229,9,20,0.4);
    color: #ff6b6b;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 18px;
}
.auth-form .form-group { margin-bottom: 14px; }
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 16px 18px;
    background: rgba(51,51,51,0.7);
    border: 1px solid transparent;
    border-radius: 4px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
}
.auth-form input:focus {
    background: rgba(70,70,70,0.85);
    border-color: rgba(255,255,255,0.3);
}
.auth-btn {
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 18px;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: background 0.2s;
}
.auth-btn:hover { background: var(--accent-hover); }
.auth-btn.secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.auth-btn.secondary:hover { background: rgba(255,255,255,0.25); }
.auth-switch {
    margin-top: 22px;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}
.auth-switch a { color: #fff; font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

.avatar-picker-section { margin: 22px 0; }
.picker-label {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-weight: 600;
}
.avatar-picker {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}
.avatar-option {
    cursor: pointer;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.2s;
    aspect-ratio: 1;
}
.avatar-option input { position: absolute; opacity: 0; }
.avatar-option img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    background: #1a1a1a;
}
.avatar-option:hover { border-color: rgba(255,255,255,0.4); }
.avatar-option:has(input:checked) {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(229,9,20,0.3);
}

/* ============================================ */
/* WHO'S WATCHING PAGE */
/* ============================================ */
.profile-select-body {
    background: #0a0a0a;
    min-height: 100vh;
    color: #fff;
}
.profile-header {
    padding: 20px 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.profile-page-logo img { height: 50px; }
.profile-header-actions { display: flex; gap: 18px; }
.profile-header-link {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 500;
}
.profile-header-link:hover { color: #fff; }

.profile-select-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 80px;
    text-align: center;
}
.profile-select-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 400;
    margin-bottom: 50px;
    color: rgba(255,255,255,0.85);
}
.profiles-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}
.profile-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-decoration: none;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}
.profile-tile:hover { color: #fff; }
.profile-avatar-box {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    background: #222;
    border: 3px solid transparent;
    transition: all 0.2s;
}
.profile-tile:hover .profile-avatar-box {
    border-color: #fff;
    transform: scale(1.05);
}
.profile-avatar-box img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.kid-badge {
    position: absolute;
    top: 8px; right: 8px;
    background: var(--accent);
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.profile-name {
    font-size: 18px;
    font-weight: 500;
}
.add-tile .add-avatar {
    background: transparent;
    border: 2px dashed rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
}
.add-tile:hover .add-avatar {
    border-color: #fff;
    color: #fff;
}
.profile-tile.managing .profile-avatar-box::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.121 2.121 0 1 1 3 3L7 19l-4 1 1-4L16.5 3.5z'/%3E%3C/svg%3E");
    background-position: center; background-repeat: no-repeat;
}
.profile-manage { margin-top: 30px; }
.manage-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    color: rgba(255,255,255,0.7);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.2s;
}
.manage-btn:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255,255,255,0.05);
}

/* ============================================ */
/* ADD/EDIT PROFILE */
/* ============================================ */
.profile-edit-wrap {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}
.profile-edit-wrap h1 {
    font-size: 36px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 18px;
    margin-bottom: 18px;
}
.profile-edit-sub {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    margin-bottom: 24px;
}
.edit-current-avatar {
    margin-bottom: 24px;
}
.edit-current-avatar img {
    width: 110px; height: 110px;
    border-radius: 8px;
    object-fit: cover;
    background: #222;
}
.profile-edit-form .form-group { margin-bottom: 18px; }
.profile-edit-form input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    background: rgba(51,51,51,0.7);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    outline: none;
}
.profile-edit-form input[type="text"]:focus {
    border-color: rgba(255,255,255,0.4);
}
.kid-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin: 18px 0;
    cursor: pointer;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
}
.kid-toggle input { width: 18px; height: 18px; cursor: pointer; }
.profile-edit-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.profile-edit-actions .auth-btn { width: auto; padding: 12px 30px; margin: 0; }
.delete-profile-form {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.delete-profile-btn {
    background: transparent;
    border: 1px solid rgba(229,9,20,0.4);
    color: var(--accent);
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}
.delete-profile-btn:hover {
    background: rgba(229,9,20,0.1);
    border-color: var(--accent);
}

/* ============================================ */
/* ACCOUNT PAGE */
/* ============================================ */
.account-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 110px 4% 80px;
}
.account-header { margin-bottom: 32px; }
.account-header h1 { font-size: 36px; font-weight: 800; margin-bottom: 8px; }
.account-header p { color: rgba(255,255,255,0.6); font-size: 14px; }
.account-msg {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}
.account-msg.success {
    background: rgba(16,185,129,0.15);
    border: 1px solid rgba(16,185,129,0.4);
    color: #10b981;
}
.account-msg.error {
    background: rgba(229,9,20,0.15);
    border: 1px solid rgba(229,9,20,0.4);
    color: #ff6b6b;
}
.account-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 26px 30px;
    margin-bottom: 20px;
}
.account-section h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.account-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.account-row:last-child { border-bottom: none; }
.account-row-label {
    flex: 0 0 200px;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}
.account-row-value { color: #fff; font-size: 14px; }
.account-form .form-group { margin-bottom: 14px; max-width: 400px; }
.account-form label {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.account-form input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}
.account-form input:focus { border-color: rgba(255,255,255,0.3); }
.account-form .auth-btn { width: auto; padding: 12px 28px; margin-top: 10px; }
.account-profiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.account-profile-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}
.account-profile-item:hover { background: rgba(255,255,255,0.05); }
.account-profile-item img {
    width: 50px; height: 50px;
    border-radius: 6px;
    object-fit: cover;
}
.account-profile-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.account-profile-item p { font-size: 12px; color: var(--text-muted); }
.kid-tag {
    background: var(--accent); color: #fff;
    padding: 1px 6px; border-radius: 3px;
    font-size: 9px; font-weight: 700;
    margin-left: 4px;
}
.danger-section { border-color: rgba(229,9,20,0.3); }
.danger-section h2 { color: #ff6b6b; }
.danger-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.danger-btn:hover { background: var(--accent-hover); }

/* ============================================ */
/* PROFILE MENU IN NAVBAR */
/* ============================================ */
.profile-menu-wrapper { position: relative; }
.profile-menu-toggle {
    display: flex; align-items: center; gap: 8px;
    background: none; border: none; cursor: pointer;
    padding: 4px;
}
.profile-menu-toggle img {
    width: 36px; height: 36px;
    border-radius: 6px;
    object-fit: cover;
    background: #222;
}
.profile-menu-toggle svg { color: rgba(255,255,255,0.6); }
.profile-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 260px;
    background: rgba(15,15,15,0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    z-index: 1100;
}
.profile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.profile-menu-header {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    align-items: center;
}
.profile-menu-header img {
    width: 44px; height: 44px;
    border-radius: 6px;
    object-fit: cover;
}
.profile-menu-header h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.profile-menu-header p {
    font-size: 11px; color: var(--text-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 170px;
}
.profile-menu-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 16px;
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    text-decoration: none;
    transition: background 0.15s;
}
.profile-menu-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.profile-menu-item svg { color: rgba(255,255,255,0.6); flex-shrink: 0; }
.profile-menu-divider { height: 1px; background: var(--border); margin: 4px 0; }

@media (max-width: 600px) {
    .auth-card { padding: 32px 24px; }
    .avatar-picker { grid-template-columns: repeat(4, 1fr); }
    .profile-avatar-box { width: 110px; height: 110px; }
    .profile-name { font-size: 14px; }
    .account-row { flex-direction: column; gap: 4px; }
    .account-row-label { flex: none; }
}
/* ============================================ */
/* PHASE 2: FILTER BAR + INFINITE SCROLL */
/* ============================================ */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 26px;
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 150px;
}
.filter-label {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}
.filter-select {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border: 1px solid var(--border);
    padding: 10px 14px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff80' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
.filter-select:hover {
    background-color: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
}
.filter-select:focus {
    border-color: var(--accent);
}
.filter-select option {
    background: #1a1a1a;
    color: #fff;
    padding: 8px;
}
.filter-reset {
    background: transparent;
    border: 1px solid var(--border);
    color: rgba(255,255,255,0.7);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    align-self: flex-end;
    transition: all 0.2s;
}
.filter-reset:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}

/* Genre Quick Browse */
.genre-quick-browse {
    margin-bottom: 30px;
}
.quick-browse-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    color: rgba(255,255,255,0.85);
}
.genre-pill-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.genre-pill {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.genre-pill:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}
.genre-pill.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* Results Info Bar */
.results-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.results-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}
.back-to-all {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}
.back-to-all:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

/* Infinite Loader */
.infinite-loader {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}
.end-of-results {
    text-align: center;
    padding: 50px 20px 20px;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .filter-bar { padding: 14px; gap: 10px; }
    .filter-group { min-width: 120px; flex: 1; }
    .filter-reset { width: 100%; margin-left: 0; justify-content: center; }
}
/* ============================================ */
/* PHASE 3: NETFLIX-STYLE PLAYER */
/* ============================================ */
.netflix-player-body {
    margin: 0;
    padding: 0;
    background: #000;
    overflow: hidden;
    height: 100vh;
}

.netflix-player {
    position: fixed;
    inset: 0;
    background: #000;
    overflow: hidden;
    cursor: default;
}

.netflix-player.idle {
    cursor: none;
}

.netflix-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 1;
}

/* LOADING */
.np-loading {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 50;
    transition: opacity 0.4s;
}
.np-loading.hidden {
    opacity: 0;
    pointer-events: none;
}
.np-loader-ring {
    width: 70px;
    height: 70px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.np-loading p {
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    font-weight: 500;
}
.np-loading p span { color: var(--accent); font-weight: 700; }

/* TOP OVERLAY */
.np-overlay-top {
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 24px 40px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 30;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}
.np-overlay-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.np-back {
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
    transition: all 0.2s;
}
.np-back:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.05);
}
.np-title-block { flex: 1; min-width: 0; }
.np-title {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0,0,0,0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.np-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.np-subtitle .np-sep { color: rgba(255,255,255,0.4); }
.np-server-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.12);
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    flex-shrink: 0;
}
.np-server-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16,185,129,0.7);
    animation: pulse-dot 2s infinite;
}

/* BOTTOM OVERLAY */
.np-overlay-bottom {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 60px 40px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    z-index: 30;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}
.np-overlay-bottom.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.np-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.np-ctrl {
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}
.np-ctrl:hover:not(:disabled) {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-1px);
}
.np-ctrl:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.np-ctrl.np-primary {
    background: rgba(255,255,255,0.95);
    color: #000;
    border-color: #fff;
    margin-left: auto;
}
.np-ctrl.np-primary:hover:not(:disabled) {
    background: #fff;
}

/* SERVER POPUP */
.np-popup {
    position: absolute;
    bottom: 130px;
    right: 40px;
    width: 420px;
    max-height: 480px;
    background: rgba(15,15,15,0.98);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.96);
    transition: all 0.25s ease;
    box-shadow: 0 30px 70px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.np-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.np-popup-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.np-popup-header h3 {
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.np-popup-close {
    background: rgba(255,255,255,0.08);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}
.np-popup-close:hover { background: rgba(255,255,255,0.18); }
.np-popup-body { padding: 16px 20px; overflow-y: auto; flex: 1; }
.np-popup-info {
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.25);
    color: rgba(147,197,253,0.95);
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 14px;
}
.np-server-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.np-server-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 14px;
    border-radius: 10px;
    text-align: left;
    position: relative;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}
.np-server-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.25);
}
.np-server-card.active {
    background: rgba(229,9,20,0.15);
    border-color: var(--accent);
}
.np-sc-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.np-server-card.active .np-sc-name { color: var(--accent); }
.np-sc-meta { font-size: 11px; color: rgba(255,255,255,0.5); }
.np-sc-dot {
    position: absolute;
    top: 12px; right: 12px;
    width: 8px; height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
}
.np-server-card.active .np-sc-dot {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16,185,129,0.7);
}

/* EPISODES SIDE PANEL */
.np-episodes-panel {
    position: absolute;
    top: 0; right: 0;
    width: 480px;
    height: 100vh;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(30px);
    border-left: 1px solid rgba(255,255,255,0.08);
    z-index: 110;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 60px rgba(0,0,0,0.6);
}
.np-episodes-panel.active { transform: translateX(0); }
.np-ep-header {
    padding: 24px 28px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.np-ep-header h3 { font-size: 22px; font-weight: 800; }
.np-ep-season-select {
    padding: 14px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.np-ep-season-select select {
    width: 100%;
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: 1px solid var(--border);
    padding: 12px 16px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff80' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}
.np-ep-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
}
.np-ep-list::-webkit-scrollbar { width: 6px; }
.np-ep-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
.np-ep-item {
    display: flex;
    gap: 14px;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    margin-bottom: 4px;
}
.np-ep-item:hover { background: rgba(255,255,255,0.05); }
.np-ep-item.active {
    background: rgba(229,9,20,0.12);
    border: 1px solid rgba(229,9,20,0.3);
}
.np-ep-thumb {
    position: relative;
    width: 140px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #1a1a1a;
}
.np-ep-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.np-ep-noimg {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}
.np-ep-num {
    position: absolute;
    top: 4px; left: 4px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}
.np-ep-info { flex: 1; min-width: 0; }
.np-ep-info h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.np-ep-info p {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    line-height: 1.4;
}

/* UP NEXT CARD */
.np-up-next {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 460px;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}
.np-up-next.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.np-up-next-card {
    background: rgba(15,15,15,0.97);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}
.np-up-next-label {
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
    margin-bottom: 12px;
}
.np-up-next-content {
    display: flex;
    gap: 14px;
}
.np-up-next-thumb {
    width: 140px;
    height: 80px;
    border-radius: 8px;
    background: #222;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.np-up-next-info { flex: 1; min-width: 0; }
.np-up-next-info h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}
.np-up-next-info p {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.np-up-next-actions {
    display: flex;
    gap: 8px;
}
.np-up-next-play {
    background: #fff;
    color: #000;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}
.np-up-next-play:hover { background: rgba(255,255,255,0.85); }
.np-up-next-dismiss {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: none;
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}
.np-up-next-dismiss:hover { color: #fff; }

@media (max-width: 768px) {
    .np-overlay-top { padding: 16px 20px; gap: 14px; }
    .np-back { width: 40px; height: 40px; }
    .np-title { font-size: 16px; }
    .np-subtitle { font-size: 12px; }
    .np-server-tag { padding: 6px 12px; font-size: 11px; }
    .np-overlay-bottom { padding: 50px 20px 20px; }
    .np-ctrl { padding: 10px 14px; font-size: 12px; }
    .np-ctrl span { display: none; }
    .np-ctrl.np-primary span { display: inline; }
    .np-popup { width: calc(100vw - 24px); right: 12px; bottom: 110px; max-height: 60vh; }
    .np-server-grid { grid-template-columns: 1fr; }
    .np-episodes-panel { width: 100%; }
    .np-up-next { width: calc(100vw - 24px); right: 12px; bottom: 100px; }
}
/* ============================================ */
/* CINEMATIC HERO (homepage + listing) */
/* ============================================ */
.cinematic-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    margin-top: -72px;
}
.cinematic-hero.single-hero { height: 95vh; min-height: 650px; }

.ch-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
    overflow: hidden;
}
.ch-slide.active { opacity: 1; }

.ch-trailer-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
}
.ch-trailer-bg.visible { opacity: 1; }
.ch-trailer-bg iframe {
    position: absolute;
    top: 50%; left: 50%;
    width: 177.77vh;
    height: 100vh;
    min-width: 100%;
    min-height: 56.25vw;
    transform: translate(-50%, -50%);
    border: none;
    pointer-events: none;
}

.ch-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,0.4) 30%, transparent 60%),
        linear-gradient(to right, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.3) 50%, transparent 100%);
    z-index: 2;
}

.ch-content {
    position: absolute;
    bottom: 14vh;
    left: 4%;
    max-width: 720px;
    z-index: 3;
}
.ch-tag {
    display: inline-block;
    background: rgba(229,9,20,0.18);
    border: 1px solid rgba(229,9,20,0.4);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
}
.ch-title {
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: 18px;
    letter-spacing: -2px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.7);
}
.ch-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 18px;
    font-weight: 500;
    flex-wrap: wrap;
}
.ch-rating { color: var(--gold); font-weight: 700; }
.ch-dot { color: rgba(255,255,255,0.4); }
.ch-badge {
    background: rgba(255,255,255,0.15);
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.2);
}
.ch-overview {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    margin-bottom: 28px;
    max-width: 600px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.ch-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.ch-btn-play, .ch-btn-info {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
    cursor: pointer;
}
.ch-btn-play {
    background: #fff;
    color: #000;
}
.ch-btn-play:hover { background: rgba(255,255,255,0.85); transform: translateY(-2px); }
.ch-btn-info {
    background: rgba(80,80,80,0.65);
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
}
.ch-btn-info:hover { background: rgba(110,110,110,0.85); }

.ch-mute-btn {
    position: absolute;
    top: 100px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: rgba(0,0,0,0.55);
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    backdrop-filter: blur(10px);
    transition: all 0.2s;
}
.ch-mute-btn:hover {
    background: rgba(0,0,0,0.85);
    border-color: #fff;
    transform: scale(1.1);
}

.ch-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 4;
}
.ch-dot-nav {
    width: 30px;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s;
}
.ch-dot-nav.active {
    background: #fff;
    width: 50px;
}
.ch-dot-nav:hover { background: rgba(255,255,255,0.6); }

/* hide old hero rules so they don't conflict */
.hero-slider, .listing-hero, .genres-hero { display: none !important; }

/* ============================================ */
/* CINEBY-STYLE DETAIL PAGE */
/* ============================================ */
.cineby-detail-body {
    background: #0a0a0a;
    overflow-x: hidden;
}

.cd-back-btn {
    position: fixed;
    top: 28px;
    left: 28px;
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.55);
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(15px);
    transition: all 0.2s;
}
.cd-back-btn:hover {
    background: rgba(0,0,0,0.85);
    border-color: #fff;
    transform: scale(1.05);
}

.cd-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-size: cover;
    background-position: center top;
    overflow: hidden;
}
.cd-trailer-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
}
.cd-trailer-bg.visible { opacity: 1; }
.cd-trailer-bg iframe {
    position: absolute;
    top: 50%; left: 50%;
    width: 177.77vh;
    height: 100vh;
    min-width: 100%;
    min-height: 56.25vw;
    transform: translate(-50%, -50%);
    border: none;
    pointer-events: none;
}
.cd-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,0.5) 35%, transparent 65%),
        linear-gradient(to right, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.2) 60%, transparent 100%);
    z-index: 2;
}
.cd-hero-content {
    position: absolute;
    bottom: 8vh;
    left: 4%;
    max-width: 720px;
    z-index: 3;
}
.cd-title {
    font-size: clamp(36px, 5.5vw, 70px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 18px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.7);
}
.cd-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 18px;
    flex-wrap: wrap;
    font-weight: 500;
}
.cd-rating { color: var(--gold); font-weight: 700; }
.cd-sep { color: rgba(255,255,255,0.4); }
.cd-overview {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255,255,255,0.85);
    margin-bottom: 28px;
    max-width: 580px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}
.cd-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.cd-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}
.cd-btn-play {
    background: #fff;
    color: #000;
    padding: 14px 36px;
}
.cd-btn-play:hover { background: rgba(255,255,255,0.85); transform: scale(1.03); }
.cd-btn-icon {
    width: 50px; height: 50px;
    padding: 0;
    background: rgba(40,40,40,0.7);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    justify-content: center;
}
.cd-btn-icon:hover { background: rgba(60,60,60,0.85); border-color: rgba(255,255,255,0.4); }
.cd-btn-icon.in-list {
    background: rgba(229,9,20,0.2);
    border-color: var(--accent);
    color: var(--accent);
}
.cd-btn-secondary {
    background: rgba(40,40,40,0.7);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
}
.cd-btn-secondary:hover { background: rgba(60,60,60,0.85); border-color: rgba(255,255,255,0.3); }

.cd-mute-btn {
    position: absolute;
    top: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    background: rgba(0,0,0,0.55);
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    backdrop-filter: blur(10px);
    transition: all 0.2s;
}
.cd-mute-btn:hover {
    background: rgba(0,0,0,0.85);
    border-color: #fff;
}

.cd-body {
    position: relative;
    z-index: 5;
    padding: 60px 4% 80px;
    max-width: 1700px;
    margin: 0 auto;
    background: #0a0a0a;
}
.cd-section { margin-bottom: 60px; }
.cd-section-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.cd-section-bar {
    display: inline-block;
    width: 4px;
    height: 22px;
    background: var(--accent);
    border-radius: 2px;
}

.cd-cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}
.cd-actor-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.cd-actor-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}
.cd-actor-img, .cd-actor-noimg {
    width: 60px; height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #1a1a1a;
}
.cd-actor-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.cd-actor-info { flex: 1; min-width: 0; }
.cd-actor-info h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cd-actor-info p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cd-seasons-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
}
.cd-seasons-row::-webkit-scrollbar { display: none; }
.cd-season-card {
    flex: 0 0 220px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}
.cd-season-card:hover { transform: scale(1.03); }
.cd-season-card img, .cd-season-noimg {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    background: #1a1a1a;
    display: block;
}
.cd-season-info { padding: 12px 14px; }
.cd-season-info h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.cd-season-info p { font-size: 12px; color: rgba(255,255,255,0.5); }

/* ============================================ */
/* POSTER HOVER TRAILER MUTE BUTTON */
/* ============================================ */
.poster-mute-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s, background 0.2s;
}
.movie-card:hover .poster-mute-btn { opacity: 1; }
.poster-mute-btn:hover { background: rgba(0,0,0,0.95); }

@media (max-width: 768px) {
    .ch-content { bottom: 18vh; left: 5%; right: 5%; max-width: 100%; }
    .ch-title { font-size: 36px; }
    .ch-overview { font-size: 14px; }
    .ch-mute-btn { top: 80px; right: 16px; width: 40px; height: 40px; }
    .ch-dots { display: none; }

    .cd-back-btn { top: 16px; left: 16px; width: 42px; height: 42px; }
    .cd-mute-btn { top: 16px; right: 16px; width: 40px; height: 40px; }
    .cd-hero-content { left: 5%; right: 5%; max-width: 100%; bottom: 6vh; }
    .cd-title { font-size: 32px; }
    .cd-overview { font-size: 14px; }
    .cd-cast-grid { grid-template-columns: 1fr; }
}
/* FORCE AUTH PAGES VISIBLE */
.auth-body .auth-wrap,
.auth-body .auth-header,
.auth-body .auth-card {
    position: relative !important;
    z-index: 100 !important;
    display: block !important;
}
.auth-body .auth-wrap {
    display: flex !important;
}
.auth-body .auth-form { display: block !important; }
.auth-body .auth-form .form-group { display: block !important; }
/* === HARD FIX: AUTH PAGES === */
body.auth-body {
    background: #000 !important;
    min-height: 100vh !important;
    position: relative !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    display: block !important;
}
body.auth-body * { visibility: visible !important; }
body.auth-body .auth-bg {
    position: fixed !important;
    inset: 0 !important;
    background: linear-gradient(135deg, #1a0000, #000, #0a0a1a) !important;
    z-index: 0 !important;
}
body.auth-body .auth-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0,0,0,0.5) !important;
    z-index: 1 !important;
}
body.auth-body .auth-header {
    position: relative !important;
    z-index: 100 !important;
    padding: 20px 4% !important;
    display: block !important;
}
body.auth-body .auth-wrap {
    position: relative !important;
    z-index: 100 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 80vh !important;
    padding: 40px 20px !important;
}
body.auth-body .auth-card {
    background: rgba(0,0,0,0.85) !important;
    padding: 50px 60px !important;
    border-radius: 8px !important;
    max-width: 450px !important;
    width: 100% !important;
    display: block !important;
    color: #fff !important;
}
body.auth-body .auth-card h1 {
    color: #fff !important;
    font-size: 32px !important;
    margin-bottom: 28px !important;
}
body.auth-body input {
    width: 100% !important;
    padding: 16px 18px !important;
    background: rgba(51,51,51,0.7) !important;
    border: 1px solid #444 !important;
    border-radius: 4px !important;
    color: #fff !important;
    font-size: 15px !important;
    margin-bottom: 14px !important;
    display: block !important;
}
body.auth-body button[type="submit"] {
    width: 100% !important;
    background: #e50914 !important;
    color: #fff !important;
    padding: 14px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer !important;
    margin-top: 18px !important;
    display: block !important;
}
body.auth-body .auth-switch { color: #999 !important; margin-top: 22px !important; }
body.auth-body .auth-switch a { color: #fff !important; }
/* ============================================ */
/* PHASE FINAL: CUSTOM AVATAR UPLOAD + QUALITY POPUP */
/* ============================================ */
.custom-upload-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.custom-upload-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    background: rgba(255,255,255,0.05);
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 8px;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
}
.custom-upload-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}
.custom-upload-btn input[type="file"] {
    display: none;
}
.upload-hint {
    margin-top: 8px;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    line-height: 1.5;
}

/* Quality Info Popup */
.quality-info-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.quality-info-card svg {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 2px;
}
.quality-info-card h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #fff;
}
.quality-info-card p {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    line-height: 1.5;
}
.quality-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
}
.quality-pill {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: rgba(255,255,255,0.7);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
}
.quality-pill.best {
    background: rgba(229,9,20,0.15);
    border-color: var(--accent);
    color: var(--accent);
}

/* Server speed badges */
.np-sc-meta {
    transition: color 0.2s;
}
/* ============================================ */
/* PHASE FINAL EXTRAS: BIGGER LOGO + PLATFORM LOGOS */
/* ============================================ */

/* Logo 50% bigger across all pages */
.logo img { height: 84px !important; }
.auth-logo img { height: 90px !important; }
.profile-page-logo img { height: 75px !important; }

@media (max-width: 768px) {
    .logo img { height: 66px !important; }
    .auth-logo img { height: 70px !important; }
    .profile-page-logo img { height: 58px !important; }
}
@media (max-width: 480px) {
    .logo img { height: 57px !important; }
}

/* Platform card with logo */
.platform-card {
    height: 100px !important;
}
.platform-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
}
.platform-logo-img {
    max-height: 38px;
    max-width: 130px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(1.1);
    transition: transform 0.3s;
}
.platform-card:hover .platform-logo-img {
    transform: scale(1.08);
}


/* Hide ANY orphan elements (the dull play/check buttons you see) */
.page-container .movie-card .poster-container > svg,
.page-container .movie-card .poster-container > .play-icon,
.page-container .movie-card .poster-container > .check-icon,
.page-container .movie-card > svg {
    display: none !important;
}
/* ============================================ */
/* ADMIN PANEL STYLES */
/* ============================================ */
.admin-topbar {
    background: linear-gradient(to right, #1a0000, #0a0a0a);
    padding: 18px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(229,9,20,0.3);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.admin-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}
.admin-brand img { height: 50px; }
.admin-brand h1 { font-size: 20px; font-weight: 800; margin: 0; }
.admin-brand p { font-size: 12px; color: var(--accent); margin: 2px 0 0; letter-spacing: 1px; text-transform: uppercase; }
.admin-actions { display: flex; gap: 10px; }
.admin-link-btn {
    padding: 9px 18px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid var(--border);
}
.admin-link-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.admin-link-btn.danger { color: #ff6b6b; border-color: rgba(229,9,20,0.4); }
.admin-link-btn.danger:hover { background: rgba(229,9,20,0.15); }

.admin-page {
    max-width: 1500px;
    margin: 0 auto;
    padding: 30px 4% 60px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}
.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.stat-icon { font-size: 38px; }
.stat-value { font-size: 32px; font-weight: 900; color: #fff; line-height: 1; }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 4px; letter-spacing: 0.5px; text-transform: uppercase; }

.admin-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 24px;
}
.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.admin-section h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}
.admin-count {
    background: rgba(229,9,20,0.15);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.admin-table-wrap {
    overflow-x: auto;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th {
    text-align: left;
    padding: 12px 14px;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
}
.admin-table td {
    padding: 14px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.85);
}
.admin-table tr:hover { background: rgba(255,255,255,0.02); }
.admin-table code {
    background: rgba(255,255,255,0.06);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--accent);
}

.profile-thumbs {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.profile-thumbs img {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-secondary);
    background: #222;
}
.profile-count-badge {
    margin-left: 8px;
    background: rgba(229,9,20,0.15);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.admin-delete-btn {
    background: rgba(229,9,20,0.15);
    border: 1px solid rgba(229,9,20,0.3);
    color: #ff6b6b;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.admin-delete-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.admin-info-card {
    background: rgba(59,130,246,0.08);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 10px;
    padding: 16px 18px;
}
.admin-info-card p {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    margin-bottom: 8px;
}
.admin-info-card p:last-child { margin-bottom: 0; }
.admin-info-card code {
    background: rgba(0,0,0,0.4);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--accent);
    font-size: 12px;
}
.admin-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255,255,255,0.5);
}
.stat-icon {
    width: 56px;
    height: 56px;
    background: rgba(229,9,20,0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}
.stat-icon svg { display: block; }/* Server badge dots */
.badge-icon {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}
.badge-icon.best { background: #10b981; box-shadow: 0 0 6px rgba(16,185,129,0.7); }
.badge-icon.good { background: #10b981; }
.badge-icon.ok { background: #fbbf24; }
.badge-icon.bad { background: #ef4444; }
/* Type pill (MOVIE/TV) next to year */
.rating-year .type-pill {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
    padding: 1px 7px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    border: 1px solid rgba(255,255,255,0.1);
}
/* ============================================ */
/* PLAYER TITLE CARD (bottom-left, with overlay) */
/* ============================================ */
.np-title-card {
    position: absolute;
    bottom: 130px;
    left: 40px;
    max-width: 480px;
    z-index: 25;
    display: flex;
    gap: 18px;
    align-items: flex-end;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}
.np-title-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.np-tc-art {
    width: 140px;
    height: 80px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.08);
}

.np-tc-info {
    flex: 1;
    min-width: 0;
}

.np-tc-logo-wrap {
    margin-bottom: 8px;
    min-height: 36px;
    display: flex;
    align-items: center;
}

.np-tc-logo-wrap img {
    max-height: 60px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
}

.np-tc-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0,0,0,0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.np-tc-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    flex-wrap: wrap;
    text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}

.np-tc-rating {
    color: var(--gold);
    font-weight: 700;
}

.np-tc-sep {
    color: rgba(255,255,255,0.4);
}

.np-tc-ep {
    background: rgba(229,9,20,0.2);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    border: 1px solid rgba(229,9,20,0.3);
}

@media (max-width: 768px) {
    .np-title-card {
        bottom: 100px;
        left: 16px;
        right: 16px;
        max-width: none;
        gap: 12px;
    }
    .np-tc-art { width: 100px; height: 60px; }
    .np-tc-logo-wrap img { max-height: 40px; }
    .np-tc-title { font-size: 16px; }
    .np-tc-meta { font-size: 11px; gap: 6px; }
}
/* ============================================ */
/* MOBILE NAVBAR — push profile + search to right */
/* ============================================ */
@media (max-width: 768px) {
    .nav-inner {
        justify-content: space-between;
    }
    .logo {
        margin-right: auto;
    }
    .nav-right {
        margin-left: auto;
        gap: 8px;
    }
}
/* ============================================ */
/* FORCE HIDE OLD POSTER BADGES */
/* ============================================ */
.poster-container .card-rating-badge,
.poster-container .card-type-badge,
.movie-card .card-rating-badge,
.movie-card .card-type-badge {
    display: none !important;
}

/* ============================================ */
/* WHITE STAR (replace gold) */
/* ============================================ */
.rating-year .rating {
    color: #fff !important;
    font-weight: 600 !important;
    opacity: 0.95;
}

/* ============================================ */
/* PLAYER TOP DESCRIPTION */
/* ============================================ */
.np-description {
    margin-top: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
    max-width: 720px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================ */
/* PROFILE MENU PAGE (Mobile) */
/* ============================================ */
.pm-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 100px 20px 100px;
}

.pm-header-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 20px;
    text-align: center;
    margin-bottom: 24px;
}
.pm-avatar-big {
    width: 90px;
    height: 90px;
    border-radius: 16px;
    object-fit: cover;
    margin: 0 auto 14px;
    display: block;
    border: 3px solid var(--accent);
}
.pm-name {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
}
.pm-email {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
}
.pm-kid-tag {
    display: inline-block;
    margin-top: 10px;
    background: rgba(229,9,20,0.2);
    color: var(--accent);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.pm-section {
    margin-bottom: 28px;
}
.pm-section-title {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 10px;
    padding: 0 4px;
}

.pm-link-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.pm-link-row:hover {
    background: var(--bg-tertiary);
    border-color: rgba(255,255,255,0.15);
    transform: translateX(4px);
}
.pm-link-icon {
    width: 44px;
    height: 44px;
    background: rgba(229,9,20,0.12);
    color: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pm-link-text {
    flex: 1;
    min-width: 0;
}
.pm-link-text h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 3px;
    color: #fff;
}
.pm-link-text p {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}
.pm-link-arrow {
    color: rgba(255,255,255,0.3);
    flex-shrink: 0;
}

.pm-signout .pm-link-icon {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
}
.pm-signout:hover .pm-link-icon {
    background: var(--accent);
    color: #fff;
}

.pm-profiles-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 8px 4px;
    scrollbar-width: none;
}
.pm-profiles-row::-webkit-scrollbar { display: none; }
.pm-other-profile {
    flex-shrink: 0;
    text-align: center;
    text-decoration: none;
    color: inherit;
}
.pm-other-profile img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 6px;
    border: 2px solid transparent;
    transition: all 0.2s;
}
.pm-other-profile:hover img {
    border-color: #fff;
    transform: scale(1.05);
}
.pm-other-profile span {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
}
/* ============================================ */
/* PHASE 1 FIXES — Force hide stars on posters */
/* ============================================ */

/* Hide ratings ON POSTERS only, keep on detail/info pages */
.movie-card .rating-year .rating,
.movie-card .rating-year .rating + .dot {
    display: none !important;
}

/* TV/MOVIE pill - smaller, no bg, white */
.rating-year .type-pill {
    background: transparent !important;
    border: none !important;
    color: rgba(255,255,255,0.7) !important;
    padding: 0 !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase;
}

/* ============================================ */
/* BROWSE PAGE — better top spacing */
/* ============================================ */
.genres-page {
    padding-top: 110px !important;
}
@media (max-width: 768px) {
    .genres-page {
        padding-top: 90px !important;
    }
}

/* ============================================ */
/* PLATFORM CARDS — brighter bg + visible logos */
/* ============================================ */
.platform-card {
    height: 110px !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    transition: all 0.3s ease;
}
.platform-card:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06)) !important;
    border-color: rgba(255,255,255,0.3) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.platform-logo-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}
.platform-logo-img {
    max-height: 50px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(1.2) drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}
/* Fallback platform name if logo fails */
.platform-card .platform-name {
    color: #fff !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7) !important;
    letter-spacing: 0.5px;
}

/* ============================================ */
/* MUTE BUTTON — move under profile, in line with hero buttons */
/* ============================================ */
.ch-mute-btn {
    top: auto !important;
    bottom: 14vh !important;
    right: 4% !important;
    width: 50px !important;
    height: 50px !important;
}
@media (max-width: 768px) {
    .ch-mute-btn {
        bottom: 18vh !important;
        right: 5% !important;
        width: 44px !important;
        height: 44px !important;
    }
}

/* ============================================ */
/* BACKGROUND TRAILERS — kill all pointer events */
/* ============================================ */
.ch-trailer-bg,
.ch-trailer-bg iframe,
.cd-trailer-bg,
.cd-trailer-bg iframe {
    pointer-events: none !important;
    user-select: none !important;
}

/* ============================================ */
/* HIDE SEARCH ON MOBILE for profile + my list */
/* ============================================ */
@media (max-width: 768px) {
    body.no-mobile-search .desktop-search,
    body.no-mobile-search .search-wrapper {
        display: none !important;
    }
}

/* ============================================ */
/* DOWNLOAD MODAL */
/* ============================================ */
.download-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s;
}
.download-modal.active {
    display: flex;
    opacity: 1;
}
.download-modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 30px;
    max-width: 540px;
    width: 100%;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.7);
}
.download-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255,255,255,0.08);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}
.download-close:hover { background: rgba(255,255,255,0.18); }
.download-modal-content h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
    padding-right: 40px;
}
.download-modal-content h2 span { color: var(--accent); }
.dl-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 24px;
}

.dl-sources {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}
.dl-source-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.dl-source-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--accent);
    transform: translateX(4px);
}
.dl-source-card.yts .dl-source-icon {
    background: rgba(0,168,225,0.15);
    color: #00a8e1;
}
.dl-source-card.fzm .dl-source-icon {
    background: rgba(229,9,20,0.15);
    color: var(--accent);
}
.dl-source-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dl-source-info { flex: 1; min-width: 0; }
.dl-source-info h3 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 4px;
}
.dl-source-info p {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 8px;
}
.dl-quality-tags {
    display: flex;
    gap: 6px;
}
.dl-quality-tags span {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}
.dl-arrow {
    color: rgba(255,255,255,0.3);
    flex-shrink: 0;
}
.dl-source-card:hover .dl-arrow {
    color: var(--accent);
}
.dl-disclaimer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    line-height: 1.5;
    padding: 10px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    margin-top: 8px;
}
.dl-disclaimer svg {
    flex-shrink: 0;
    color: rgba(255,255,255,0.3);
}

/* ============================================ */
/* DOWNLOADS PAGE */
/* ============================================ */
.downloads-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 110px 4% 80px;
    min-height: 100vh;
}
.downloads-header { margin-bottom: 24px; }
.downloads-header h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 6px;
}
.downloads-header p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}
.downloads-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(59,130,246,0.08);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 28px;
    color: rgba(147,197,253,0.95);
}
.downloads-info-banner svg { flex-shrink: 0; color: #60a5fa; margin-top: 2px; }
.downloads-info-banner strong { color: #fff; display: block; margin-bottom: 4px; font-size: 14px; }
.downloads-info-banner p { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.75); }

.downloads-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.dl-list-item {
    display: flex;
    gap: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    align-items: center;
}
.dl-list-poster {
    width: 80px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-card);
    flex-shrink: 0;
}
.dl-list-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dl-list-info { flex: 1; min-width: 0; }
.dl-list-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}
.dl-list-info p {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}
.dl-list-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.dl-list-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.dl-list-btn:hover {
    background: rgba(255,255,255,0.12);
}
.dl-list-btn.primary {
    background: var(--accent);
    border-color: var(--accent);
}
.dl-list-btn.primary:hover {
    background: var(--accent-hover);
}

@media (max-width: 600px) {
    .dl-list-item { flex-wrap: wrap; }
    .dl-list-poster { width: 60px; height: 90px; }
    .dl-list-actions { width: 100%; justify-content: flex-end; }
    .download-modal-content { padding: 24px 18px; }
    .dl-source-card { padding: 12px; gap: 12px; }
    .dl-source-icon { width: 44px; height: 44px; }
    .dl-source-info h3 { font-size: 15px; }
}
/* ============================================ */
/* FIX: Make all row-scroll containers properly scrollable + show arrows */
/* ============================================ */
.row-scroll-wrap {
    position: relative;
    overflow: hidden;
}

.row-scroll {
    display: flex !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 8px 0 16px !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.row-scroll::-webkit-scrollbar { display: none; }

/* Force movie cards inside row scroll to keep size */
.row-scroll .movie-card {
    flex: 0 0 180px !important;
    width: 180px !important;
    scroll-snap-align: start;
}

/* Show arrows on hover for all rows */
.row-arrow {
    position: absolute !important;
    top: 0 !important;
    bottom: 16px !important;
    width: 50px !important;
    background: rgba(0,0,0,0.7) !important;
    backdrop-filter: blur(8px);
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    opacity: 0;
    transition: opacity 0.3s !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    border: none;
}
.row-arrow.left { left: 0 !important; }
.row-arrow.right { right: 0 !important; }
.row-scroll-wrap:hover .row-arrow { opacity: 1; }
.row-arrow:hover { background: rgba(0,0,0,0.9) !important; }

/* Responsive sizing */
@media (max-width: 1280px) {
    .row-scroll .movie-card { flex: 0 0 165px !important; width: 165px !important; }
}
@media (max-width: 1024px) {
    .row-scroll .movie-card { flex: 0 0 155px !important; width: 155px !important; }
}
@media (max-width: 768px) {
    .row-scroll .movie-card { flex: 0 0 145px !important; width: 145px !important; }
    .row-arrow { display: none !important; }
}
@media (max-width: 480px) {
    .row-scroll .movie-card { flex: 0 0 130px !important; width: 130px !important; }
}
/* ============================================ */
/* MOBILE CATEGORY SWITCHER (homepage only) */
/* ============================================ */
.mob-cat-bar {
    display: none;
}

@media (max-width: 768px) {
    .mob-cat-bar {
        display: block;
        position: sticky;
        top: 60px;
        z-index: 90;
        margin: 0 16px 14px;
    }
    .mob-cat-toggle {
        width: 100%;
        background: rgba(20,20,20,0.92);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255,255,255,0.12);
        color: #fff;
        padding: 14px 18px;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 700;
        font-family: inherit;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        box-shadow: 0 6px 24px rgba(0,0,0,0.4);
        transition: all 0.25s;
    }
    .mob-cat-toggle:hover {
        background: rgba(30,30,30,0.95);
    }
    .mob-cat-bar.open .mob-cat-toggle svg {
        transform: rotate(180deg);
    }
    .mob-cat-toggle svg {
        transition: transform 0.3s;
        color: var(--accent);
    }

    .mob-cat-panel {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        background: rgba(15,15,15,0.97);
        backdrop-filter: blur(24px);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 14px;
        padding: 8px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        box-shadow: 0 20px 50px rgba(0,0,0,0.7);
    }
    .mob-cat-panel.open {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
        padding: 12px;
    }
    .mob-cat-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 10px;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.06);
        border-radius: 10px;
        color: rgba(255,255,255,0.85);
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.2s;
    }
    .mob-cat-item:hover, .mob-cat-item:active {
        background: var(--accent);
        border-color: var(--accent);
        color: #fff;
        transform: scale(0.97);
    }
    .mob-cat-item svg {
        flex-shrink: 0;
        color: var(--accent);
    }
    .mob-cat-item:hover svg, .mob-cat-item:active svg {
        color: #fff;
    }
}

/* ============================================ */
/* PROFILE DASHBOARD */
/* ============================================ */
.dash-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 4% 100px;
}

.dash-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(229,9,20,0.18), rgba(20,20,20,0.4));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 24px;
    overflow: hidden;
}
.dash-hero-bg {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 50%;
    background: radial-gradient(circle at right, rgba(229,9,20,0.18), transparent 70%);
    pointer-events: none;
}
.dash-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}
.dash-avatar {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 12px 32px rgba(229,9,20,0.3);
}
.dash-info { flex: 1; min-width: 220px; }
.dash-name {
    font-size: clamp(22px, 4vw, 34px);
    font-weight: 800;
    margin-bottom: 4px;
}
.dash-email {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 12px;
}
.dash-badge-wrap { display: flex; align-items: center; gap: 8px; }
.dash-badge-loading {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}
.dash-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* TABS */
.dash-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 6px;
    margin-bottom: 22px;
    overflow-x: auto;
    scrollbar-width: none;
}
.dash-tabs::-webkit-scrollbar { display: none; }

.dash-tab {
    flex: 1;
    min-width: 110px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.55);
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}
.dash-tab:hover { color: #fff; background: rgba(255,255,255,0.04); }
.dash-tab.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(229,9,20,0.3);
}

.dash-tab-panel {
    display: none;
    animation: dashFadeIn 0.3s ease;
}
.dash-tab-panel.active { display: block; }

@keyframes dashFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* STATS GRID */
.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}
.dash-stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    transition: all 0.25s;
}
.dash-stat-card:hover {
    border-color: rgba(229,9,20,0.4);
    transform: translateY(-2px);
}
.dash-stat-icon {
    width: 42px;
    height: 42px;
    background: rgba(229,9,20,0.12);
    color: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}
.dash-stat-num {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1;
}
.dash-stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
}

/* DASH CARDS */
.dash-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 16px;
}
.dash-card-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}
.dash-card-title svg { color: var(--accent); }
.dash-card-loading {
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    padding: 16px 0;
    text-align: center;
}

.dash-personality {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(229,9,20,0.12), rgba(20,20,20,0.3));
    border-radius: 12px;
}
.dash-pers-icon {
    width: 56px;
    height: 56px;
    background: rgba(229,9,20,0.2);
    color: var(--accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dash-pers-info h4 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.dash-pers-info p { font-size: 13px; color: rgba(255,255,255,0.6); }

/* GENRE BARS */
.genre-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.genre-bar-name {
    flex: 0 0 100px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
}
.genre-bar-track {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
}
.genre-bar-fill {
    height: 100%;
    background: linear-gradient(to right, var(--accent), #f97316);
    border-radius: 4px;
    transition: width 0.6s ease;
}
.genre-bar-pct {
    flex: 0 0 40px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    text-align: right;
    font-weight: 700;
}

/* DATA TAB */
.dash-data-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.dash-bigstat {
    font-size: 36px;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
}

.insight-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
}
.insight-row svg { color: var(--accent); flex-shrink: 0; }
.insight-row strong { color: #fff; }

/* LEADERBOARD */
.dash-myrank-card {
    background: linear-gradient(135deg, rgba(229,9,20,0.18), rgba(20,20,20,0.4));
    border: 1px solid rgba(229,9,20,0.3);
}
.myrank-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.myrank-num {
    font-size: 56px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    text-shadow: 0 4px 24px rgba(229,9,20,0.5);
}
.myrank-info { flex: 1; min-width: 200px; }
.myrank-info h4 {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    margin-bottom: 4px;
    font-weight: 600;
}
.myrank-info p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 4px;
}
.myrank-info p strong { color: var(--accent); }

.lb-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.lb-row {
    display: grid;
    grid-template-columns: 50px 50px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    transition: all 0.2s;
}
.lb-row:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
}
.lb-row.you {
    background: rgba(229,9,20,0.1);
    border-color: rgba(229,9,20,0.4);
}
.lb-rank {
    font-size: 22px;
    font-weight: 900;
    color: rgba(255,255,255,0.4);
    text-align: center;
}
.lb-rank.gold { color: #fbbf24; }
.lb-rank.silver { color: #cbd5e1; }
.lb-rank.bronze { color: #d97706; }
.lb-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: #222;
}
.lb-info { min-width: 0; }
.lb-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lb-meta {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}
.lb-stats {
    text-align: right;
    flex-shrink: 0;
}
.lb-hours {
    font-size: 16px;
    font-weight: 800;
    color: var(--accent);
}
.lb-streams {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}

/* HISTORY */
.history-group {
    margin-bottom: 18px;
}
.history-group-label {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 10px;
}
.history-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    margin-bottom: 6px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}
.history-row:hover { background: rgba(255,255,255,0.06); }
.history-icon {
    width: 36px;
    height: 36px;
    background: rgba(229,9,20,0.12);
    color: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.history-info { flex: 1; min-width: 0; }
.history-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.history-info p {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}
.history-time {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    flex-shrink: 0;
}

/* PROFILE ACTIONS */
.dash-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    flex-wrap: wrap;
}
.dash-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: rgba(255,255,255,0.85);
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    flex: 1;
    justify-content: center;
}
.dash-action-btn:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}
.dash-action-btn.danger:hover {
    background: rgba(229,9,20,0.15);
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 600px) {
    .dash-page { padding: 80px 16px 100px; }
    .dash-hero { padding: 20px; }
    .dash-avatar { width: 80px; height: 80px; }
    .dash-tabs { gap: 2px; padding: 4px; }
    .dash-tab { padding: 10px 8px; font-size: 12px; min-width: 90px; }
    .dash-tab span { display: none; }
    .dash-tab svg { margin: 0; }
    .dash-data-row { grid-template-columns: 1fr; }
    .dash-card { padding: 18px; }
    .lb-row { grid-template-columns: 36px 36px 1fr auto; gap: 10px; padding: 10px; }
    .lb-avatar { width: 32px; height: 32px; }
    .lb-rank { font-size: 18px; }
    .lb-name { font-size: 13px; }
    .myrank-num { font-size: 42px; }
    .genre-bar-name { flex: 0 0 80px; font-size: 12px; }
}
/* ============================================ */
/* MOBILE MENU ICON (in navbar, before search) */
/* ============================================ */
.mob-menu-wrapper {
    display: none;
    position: relative;
}

@media (max-width: 768px) {
    .mob-menu-wrapper {
        display: block;
    }
    .mob-menu-toggle {
        background: none;
        border: none;
        color: #fff;
        padding: 8px;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
    }
    .mob-menu-toggle:hover {
        background: rgba(255,255,255,0.1);
    }
    .mob-menu-dropdown {
        position: absolute;
        top: calc(100% + 14px);
        right: 0;
        width: 220px;
        background: rgba(15,15,15,0.98);
        backdrop-filter: blur(24px);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 14px;
        padding: 8px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.25s;
        box-shadow: 0 24px 60px rgba(0,0,0,0.7);
        z-index: 1100;
    }
    .mob-menu-dropdown.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .mob-menu-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        color: rgba(255,255,255,0.85);
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        border-radius: 8px;
        transition: all 0.2s;
    }
    .mob-menu-item:hover, .mob-menu-item:active {
        background: rgba(255,255,255,0.06);
        color: #fff;
    }
    .mob-menu-item svg {
        flex-shrink: 0;
        color: var(--accent);
    }
}

/* ============================================ */
/* PROFILE MENU - MY PERSONAL DATA HIGHLIGHT */
/* ============================================ */
.profile-menu-item.highlight {
    background: linear-gradient(135deg, rgba(229,9,20,0.18), rgba(229,9,20,0.08));
    border-left: 3px solid var(--accent);
    color: #fff;
    font-weight: 700;
}
.profile-menu-item.highlight:hover {
    background: linear-gradient(135deg, rgba(229,9,20,0.28), rgba(229,9,20,0.12));
}
.profile-menu-item.highlight svg {
    color: var(--accent);
}

/* ============================================ */
/* MY LIST PAGE FIXES */
/* ============================================ */
.page-container {
    padding-top: 100px;
}

@media (max-width: 768px) {
    .page-container {
        padding-top: 90px;
    }
}

/* Make sure My List grid uses homepage-style cards */
.page-container .movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px 16px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .page-container .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 18px 12px;
    }
}

@media (max-width: 480px) {
    .page-container .movie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 10px;
    }
}
/* ============================================ */
/* MOBILE CATEGORY CARET (small dropdown trigger) */
/* ============================================ */
.mob-cat-wrapper {
    display: none;
    position: relative;
}

@media (max-width: 768px) {
    .mob-cat-wrapper {
        display: block;
    }
    .mob-cat-toggle-btn {
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.1);
        color: #fff;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
    }
    .mob-cat-toggle-btn:hover {
        background: rgba(255,255,255,0.12);
    }
    .mob-cat-toggle-btn svg {
        transition: transform 0.3s ease;
        color: var(--accent);
    }
    .mob-cat-toggle-btn.active svg {
        transform: rotate(180deg);
    }
    .mob-cat-menu {
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        width: 200px;
        background: rgba(15,15,15,0.98);
        backdrop-filter: blur(24px);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 12px;
        padding: 6px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.25s;
        box-shadow: 0 24px 60px rgba(0,0,0,0.7);
        z-index: 1100;
    }
    .mob-cat-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .mob-cat-menu-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 11px 14px;
        color: rgba(255,255,255,0.85);
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        border-radius: 8px;
        transition: all 0.2s;
    }
    .mob-cat-menu-item:hover, .mob-cat-menu-item:active {
        background: rgba(255,255,255,0.06);
        color: #fff;
    }
    .mob-cat-menu-item svg {
        flex-shrink: 0;
        color: var(--accent);
    }
}

/* Hide old mob-menu-wrapper if it exists from earlier */
.mob-menu-wrapper { display: none !important; }

/* Also kill the old mob-cat-bar (homepage sticky one) since we now have caret */
.mob-cat-bar { display: none !important; }

/* ============================================ */
/* LOGIN PAGE BACKGROUND - FORCE FIX */
/* ============================================ */
.auth-body .auth-bg-login {
    position: fixed !important;
    inset: 0 !important;
    z-index: 0 !important;
    background-image: url('/static/images/login-bg.png') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    filter: brightness(0.4);
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.auth-body .auth-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1 !important;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7)) !important;
}
.auth-tagline-banner {
    position: relative;
    z-index: 10;
    margin: 0 auto;
    max-width: 600px;
    padding: 14px 22px;
    background: rgba(229,9,20,0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(229,9,20,0.4);
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.auth-tagline-banner svg { color: var(--accent); flex-shrink: 0; }
.auth-tagline-banner strong { color: var(--accent); font-weight: 800; }

@media (max-width: 600px) {
    .auth-tagline-banner {
        margin: 10px 16px 0;
        padding: 12px 16px;
        font-size: 12px;
    }
}

/* ============================================ */
/* DETAIL PAGE — MUTE BUTTON IN ACTIONS ROW */
/* ============================================ */
.cd-btn-icon-only {
    width: 50px !important;
    height: 50px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: rgba(40,40,40,0.7) !important;
    color: #fff !important;
    border: 1.5px solid rgba(255,255,255,0.2) !important;
    backdrop-filter: blur(10px);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: all 0.2s;
}
.cd-btn-icon-only:hover {
    background: rgba(60,60,60,0.85) !important;
    border-color: rgba(255,255,255,0.4) !important;
}
.cd-btn-icon-only span { display: none !important; }

/* Hide old floating mute button */
.cd-mute-btn { display: none !important; }

/* ============================================ */
/* MY LIST PAGE — FIX BROWSE CONTENT BUTTON */
/* ============================================ */
.empty-state .btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 12px 26px !important;
    background: #fff !important;
    color: #000 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    transition: all 0.2s;
}
.empty-state .btn-primary:hover {
    background: rgba(255,255,255,0.85) !important;
    transform: translateY(-1px);
}
.empty-state .btn-primary svg {
    fill: #000 !important;
    color: #000 !important;
}
/* 9jaRocks download card */
.dl-source-card.rocks .dl-source-icon {
    background: rgba(28, 231, 131, 0.15);
    color: #1ce783;
}
/* ============================================ */
/* DOWNLOAD SOURCE CARD COLORS */
/* ============================================ */
.dl-source-card.rocks .dl-source-icon {
    background: rgba(28, 231, 131, 0.15);
    color: #1ce783;
}
.dl-source-card.pluto .dl-source-icon {
    background: rgba(229, 9, 20, 0.15);
    color: var(--accent);
}

/* Hide old YTS / FZM cards if leftover */
.dl-source-card.yts, .dl-source-card.fzm {
    display: none !important;
}

/* ============================================ */
/* LOGO 75% BIGGER (where it can grow) */
/* ============================================ */
.logo img { height: 75px !important; }
.auth-logo img { height: 105px !important; }
.profile-page-logo img { height: 90px !important; }

@media (max-width: 768px) {
    .logo img { height: 60px !important; }
    .auth-logo img { height: 80px !important; }
    .profile-page-logo img { height: 70px !important; }
}
@media (max-width: 480px) {
    .logo img { height: 50px !important; }
    .auth-logo img { height: 70px !important; }
}
/* ============================================ */
/* HOMEPAGE NOTIFICATION TOASTS (BOTTOM-RIGHT) */
/* ============================================ */
.hp-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 380px;
}

.hp-toast {
    background: linear-gradient(135deg, rgba(20,20,20,0.97), rgba(15,15,15,0.97));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-left: 4px solid var(--accent);
    border-radius: 14px;
    padding: 16px 18px 16px 16px;
    color: #fff;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    pointer-events: auto;
    position: relative;
    opacity: 0;
    transform: translateX(120%) scale(0.95);
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 320px;
}

.hp-toast.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.hp-toast.hide {
    opacity: 0;
    transform: translateX(120%) scale(0.95);
    transition: all 0.4s ease;
}

.hp-toast-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hp-toast-body {
    flex: 1;
    min-width: 0;
    padding-right: 18px;
}

.hp-toast-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 5px;
    letter-spacing: 0.2px;
}

.hp-toast-msg {
    font-size: 13px;
    color: rgba(255,255,255,0.78);
    line-height: 1.5;
}

.hp-toast-msg strong {
    color: #fff;
    font-weight: 700;
}

.hp-toast-link {
    color: #60a5fa;
    text-decoration: underline;
    font-weight: 700;
    transition: color 0.2s;
}

.hp-toast-link:hover {
    color: #93c5fd;
}

.hp-toast-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: rgba(255,255,255,0.06);
    border: none;
    color: rgba(255,255,255,0.5);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hp-toast-close:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .hp-toast-container {
        bottom: 80px;  /* Above mobile bottom nav */
        right: 12px;
        left: 12px;
        max-width: none;
    }
    
    .hp-toast {
        min-width: 0;
        padding: 14px;
        gap: 12px;
    }
    
    .hp-toast-icon {
        width: 38px;
        height: 38px;
    }
    
    .hp-toast-title {
        font-size: 13px;
    }
    
    .hp-toast-msg {
        font-size: 12px;
    }
}
/* ============================================ */
/* PREMIUM MY LIST & DOWNLOADS REDESIGN */
/* ============================================ */

/* ===== MY LIST PAGE ===== */
.page-container {
    background: linear-gradient(180deg, rgba(229,9,20,0.04) 0%, transparent 400px);
}

.page-header h1 {
    font-size: clamp(28px, 5vw, 42px) !important;
    font-weight: 900 !important;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1.2px !important;
    margin-bottom: 8px !important;
}

.page-header p {
    font-size: 15px !important;
    color: rgba(255,255,255,0.55) !important;
    font-weight: 500;
}

/* My List enhanced grid */
.page-container .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 28px 18px !important;
    margin-top: 28px !important;
}

/* My List card styling boost */
.page-container .movie-card .poster-container {
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-container .movie-card:hover .poster-container {
    box-shadow: 0 20px 48px rgba(229,9,20,0.3), 0 8px 16px rgba(0,0,0,0.6);
    transform: translateY(-4px);
}

.page-container .movie-card .movie-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    margin-top: 6px;
}

.page-container .movie-card .rating-year {
    margin-top: 4px;
}

/* Premium tabs */
.page-tabs {
    display: flex;
    gap: 10px;
    background: rgba(20,20,20,0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50px;
    padding: 6px;
    margin-bottom: 24px;
    width: fit-content;
}

.page-tab {
    background: transparent !important;
    border: none !important;
    color: rgba(255,255,255,0.6) !important;
    padding: 10px 22px !important;
    border-radius: 40px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: all 0.25s !important;
}

.page-tab:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.05) !important;
}

.page-tab.active {
    background: linear-gradient(135deg, var(--accent), #f6121d) !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(229,9,20,0.4);
}

.clear-list-btn {
    margin-left: auto;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: rgba(255,255,255,0.7) !important;
    border-radius: 40px !important;
    padding: 10px 18px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: all 0.25s !important;
}

.clear-list-btn:hover {
    background: rgba(229,9,20,0.15) !important;
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

/* Empty state premium */
.empty-state {
    background: linear-gradient(135deg, rgba(229,9,20,0.08), rgba(20,20,20,0.6));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    padding: 80px 30px !important;
    margin: 40px 0;
}

.empty-state svg {
    color: var(--accent) !important;
    opacity: 0.7 !important;
    filter: drop-shadow(0 8px 24px rgba(229,9,20,0.4));
    margin-bottom: 24px !important;
}

.empty-state h2 {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin-bottom: 10px !important;
}

.empty-state p {
    font-size: 15px !important;
    margin-bottom: 24px !important;
}

/* ===== DOWNLOADS PAGE ===== */
.downloads-page {
    background: linear-gradient(180deg, rgba(229,9,20,0.04) 0%, transparent 400px);
}

.downloads-header h1 {
    font-size: clamp(28px, 5vw, 42px) !important;
    font-weight: 900 !important;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1.2px !important;
    margin-bottom: 8px !important;
}

.downloads-header p {
    font-size: 15px !important;
    color: rgba(255,255,255,0.55) !important;
}

/* Premium info banner */
.downloads-info-banner {
    background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(59,130,246,0.04)) !important;
    border: 1px solid rgba(59,130,246,0.25) !important;
    border-radius: 16px !important;
    padding: 20px 22px !important;
    box-shadow: 0 8px 24px rgba(59,130,246,0.08);
}

.downloads-info-banner svg {
    width: 24px !important;
    height: 24px !important;
    color: #60a5fa !important;
    background: rgba(59,130,246,0.15);
    padding: 8px;
    border-radius: 10px;
    box-sizing: content-box;
}

/* Downloads list cards - PREMIUM */
.downloads-list {
    gap: 16px !important;
}

.dl-list-item {
    background: linear-gradient(135deg, rgba(30,30,30,0.85), rgba(20,20,20,0.85)) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 18px !important;
    padding: 18px !important;
    gap: 20px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.dl-list-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent), #f97316);
    opacity: 0;
    transition: opacity 0.3s;
}

.dl-list-item:hover {
    transform: translateX(4px);
    border-color: rgba(229,9,20,0.3) !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 4px 12px rgba(229,9,20,0.15);
}

.dl-list-item:hover::before {
    opacity: 1;
}

.dl-list-poster {
    width: 90px !important;
    height: 135px !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}

.dl-list-info h3 {
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
    color: #fff;
}

.dl-list-info p {
    font-size: 13px !important;
    color: rgba(255,255,255,0.55) !important;
    font-weight: 500;
}

.dl-list-btn.primary {
    background: linear-gradient(135deg, var(--accent), #f6121d) !important;
    border: none !important;
    padding: 12px 22px !important;
    font-weight: 700 !important;
    box-shadow: 0 6px 16px rgba(229,9,20,0.35);
    transition: all 0.25s !important;
}

.dl-list-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(229,9,20,0.5);
}

.dl-list-btn:not(.primary) {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 10px !important;
    width: 44px;
    padding: 0 !important;
    justify-content: center;
}

.dl-list-btn:not(.primary):hover {
    background: rgba(229,9,20,0.15) !important;
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    .page-container,
    .downloads-page {
        padding: 90px 16px 100px !important;
    }
    
    .page-container .movie-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 18px 12px !important;
    }
    
    .page-tabs {
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
        flex-wrap: nowrap;
    }
    
    .page-tabs::-webkit-scrollbar { display: none; }
    
    .page-tab {
        padding: 9px 18px !important;
        font-size: 12px !important;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .clear-list-btn {
        flex-shrink: 0;
        font-size: 11px !important;
        padding: 9px 14px !important;
    }
    
    .dl-list-item {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        padding: 14px !important;
        gap: 14px !important;
    }
    
    .dl-list-poster {
        width: 70px !important;
        height: 105px !important;
    }
    
    .dl-list-info {
        flex: 1;
        min-width: 0;
    }
    
    .dl-list-info h3 {
        font-size: 15px !important;
    }
    
    .dl-list-actions {
        width: 100% !important;
        justify-content: stretch !important;
    }
    
    .dl-list-btn.primary {
        flex: 1;
        justify-content: center;
    }
    
    .empty-state {
        padding: 60px 20px !important;
        margin: 20px 0 !important;
    }
    
    .empty-state h2 {
        font-size: 20px !important;
    }
}

/* ===== SMART TV / LARGE SCREEN OPTIMIZATIONS ===== */
@media (min-width: 1920px) {
    .page-container,
    .downloads-page {
        max-width: 1800px !important;
        padding: 130px 4% 100px !important;
    }
    
    .page-container .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
        gap: 36px 24px !important;
    }
    
    .page-header h1,
    .downloads-header h1 {
        font-size: 56px !important;
    }
    
    .dl-list-poster {
        width: 110px !important;
        height: 165px !important;
    }
    
    .dl-list-info h3 {
        font-size: 22px !important;
    }
}
/* ============================================ */
/* FIX MY LIST + DOWNLOADS — match homepage cards */
/* ============================================ */

/* Force My List grid to use same card sizing as homepage */
.page-container .movie-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: 28px 18px !important;
    margin-top: 24px !important;
}

/* Reset any broken layout from old CSS */
.page-container .movie-card {
    flex: none !important;
    width: 100% !important;
    display: block !important;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    color: inherit;
    text-decoration: none;
}

.page-container .movie-card:hover {
    transform: scale(1.06);
    z-index: 20;
}

/* Force poster container to behave correctly */
.page-container .movie-card .poster-container {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 2/3 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #111 !important;
    border: 1px solid var(--border);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.page-container .movie-card:hover .poster-container {
    border-color: var(--border-hover);
    box-shadow: 0 12px 32px rgba(0,0,0,0.7);
}

.page-container .movie-card .poster-container img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Hide ALL the broken stacked elements on My List */
.page-container .movie-card .poster-container > svg:not(.quick-btn svg),
.page-container .movie-card .poster-container > .play-icon,
.page-container .movie-card .poster-container > .check-icon {
    display: none !important;
}

/* Force quick actions to be a proper hover overlay */
.page-container .movie-card .card-quick-actions {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%) !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 14px !important;
    opacity: 0 !important;
    transition: opacity 0.25s !important;
    z-index: 4 !important;
}

.page-container .movie-card:hover .card-quick-actions {
    opacity: 1 !important;
}

.page-container .movie-card .quick-btns {
    display: flex !important;
    gap: 8px !important;
}

.page-container .movie-card .quick-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.95) !important;
    color: #000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid rgba(255,255,255,0.9) !important;
    transition: transform 0.2s, background 0.2s !important;
    padding: 0 !important;
}

.page-container .movie-card .quick-btn:hover {
    transform: scale(1.15) !important;
    background: #fff !important;
}

.page-container .movie-card .quick-btn.outline {
    background: rgba(40,40,40,0.85) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,0.6) !important;
}

.page-container .movie-card .quick-btn.outline:hover {
    background: rgba(80,80,80,0.95) !important;
}

/* Movie info below poster — clean and minimal */
.page-container .movie-card .movie-info {
    margin-top: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    padding: 0 2px !important;
}

.page-container .movie-card .rating-year {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 12px !important;
    color: var(--text-muted) !important;
    font-weight: 500 !important;
}

.page-container .movie-card .rating-year .year {
    color: rgba(255,255,255,0.7) !important;
}

.page-container .movie-card .rating-year .dot {
    width: 3px !important;
    height: 3px !important;
    background: var(--text-muted) !important;
    border-radius: 50% !important;
}

.page-container .movie-card .rating-year .type-pill {
    background: transparent !important;
    color: rgba(255,255,255,0.7) !important;
    padding: 0 !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    letter-spacing: 1.2px !important;
    border: none !important;
}

.page-container .movie-card .movie-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #fff !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Hide rating star on My List (matches homepage style) */
.page-container .movie-card .rating-year .rating,
.page-container .movie-card .rating-year .rating + .dot {
    display: none !important;
}

/* ============================================ */
/* FIX BROWSE CONTENT BUTTON (was invisible) */
/* ============================================ */
.empty-state .btn-primary,
.empty-state a.btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 14px 32px !important;
    background: linear-gradient(135deg, var(--accent), #f6121d) !important;
    color: #fff !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    border: none !important;
    box-shadow: 0 8px 24px rgba(229,9,20,0.4);
    transition: all 0.25s !important;
    margin-top: 24px !important;
}

.empty-state .btn-primary:hover,
.empty-state a.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(229,9,20,0.5);
    background: linear-gradient(135deg, #f6121d, var(--accent)) !important;
}

.empty-state .btn-primary svg,
.empty-state a.btn-primary svg {
    fill: #fff !important;
    color: #fff !important;
    stroke: #fff !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .page-container .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 20px 12px !important;
    }
    
    .page-container .movie-card .quick-btn {
        width: 32px !important;
        height: 32px !important;
    }
    
    /* On mobile, show overlay on tap (touch devices) */
    .page-container .movie-card .card-quick-actions {
        opacity: 0.85 !important;
        background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%) !important;
    }
}

@media (max-width: 480px) {
    .page-container .movie-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px 10px !important;
    }
    
    .page-container .movie-card .movie-title {
        font-size: 13px !important;
    }
}
/* ============================================ */
/* MINIMAL PLAYER OVERLAY (let service player shine) */
/* ============================================ */

/* Top overlay — minimal */
.np-overlay-top.minimal {
    padding: 16px 24px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.75) 0%, transparent 100%);
}

/* Server tag button (replaces old static tag) */
.np-server-tag-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    padding: 8px 14px 8px 12px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 12px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    font-family: inherit;
}
.np-server-tag-btn:hover {
    background: rgba(229,9,20,0.3);
    border-color: var(--accent);
}
.np-server-tag-btn svg:last-child {
    opacity: 0.6;
    transition: transform 0.2s;
}
.np-server-tag-btn:hover svg:last-child {
    opacity: 1;
}

/* Bottom overlay — minimal */
.np-overlay-bottom.minimal {
    padding: 30px 24px 18px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
}

.minimal-controls {
    justify-content: flex-end;
    gap: 8px;
}

/* Tiny circular control buttons */
.np-ctrl-mini {
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
    padding: 0;
    flex-shrink: 0;
}
.np-ctrl-mini:hover:not(:disabled) {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.35);
    transform: scale(1.05);
}
.np-ctrl-mini:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Primary button (Next Episode) - wider with text */
.np-ctrl-mini.np-primary-mini {
    width: auto;
    border-radius: 30px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.95);
    color: #000;
    border-color: #fff;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
}
.np-ctrl-mini.np-primary-mini:hover {
    background: #fff;
    transform: scale(1.03);
}

/* Hide all the old big controls if any leftover */
.np-overlay-bottom.minimal .np-ctrl:not(.np-ctrl-mini) {
    display: none !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .np-overlay-top.minimal {
        padding: 12px 16px;
        gap: 12px;
    }
    .np-back {
        width: 38px;
        height: 38px;
    }
    .np-title {
        font-size: 14px;
    }
    .np-subtitle {
        font-size: 11px;
    }
    .np-server-tag-btn {
        padding: 6px 12px 6px 10px;
        font-size: 11px;
    }
    .np-server-tag-btn svg:last-child {
        display: none;
    }
    .np-overlay-bottom.minimal {
        padding: 20px 16px 16px;
    }
    .np-ctrl-mini {
        width: 40px;
        height: 40px;
    }
    .np-ctrl-mini.np-primary-mini {
        padding: 8px 16px;
        font-size: 12px;
    }
    .np-ctrl-mini.np-primary-mini span {
        display: none; /* Just show icon on mobile */
    }
}

/* ============================================ */
/* FIX MY LIST PAGE — Force Homepage Card Style */
/* ============================================ */

.page-container .movie-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: 28px 18px !important;
    margin-top: 24px !important;
}

.page-container .movie-card {
    flex: none !important;
    width: 100% !important;
    display: block !important;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    color: inherit;
    text-decoration: none;
}

.page-container .movie-card:hover {
    transform: scale(1.06);
    z-index: 20;
}

.page-container .movie-card .poster-container {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 2/3 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #111 !important;
}

.page-container .movie-card .poster-container img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.page-container .movie-card .card-quick-actions {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%) !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 14px !important;
    opacity: 0 !important;
    transition: opacity 0.25s !important;
}

.page-container .movie-card:hover .card-quick-actions {
    opacity: 1 !important;
}

/* Fix Browse Content button */
.empty-state .btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 14px 32px !important;
    background: linear-gradient(135deg, var(--accent), #f6121d) !important;
    color: #fff !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    box-shadow: 0 8px 24px rgba(229,9,20,0.4);
    margin-top: 24px !important;
}

.empty-state .btn-primary svg {
    fill: #fff !important;
}

@media (max-width: 768px) {
    .page-container .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 20px 12px !important;
    }
}

@media (max-width: 480px) {
    .page-container .movie-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px 10px !important;
    }
}
/* ============================================ */
/* KIDS PROFILE INDICATOR */
/* ============================================ */
.kids-nav-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background: var(--accent);
    color: #fff;
    font-size: 8px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 8px;
    letter-spacing: 1px;
    border: 2px solid #0a0a0a;
}

.profile-menu-toggle {
    position: relative;
}
/* ============================================ */
/* TV-OPTIMIZED MODE */
/* ============================================ */

/* Indicator that pops up briefly when TV mode activates */
.tv-mode-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent), #f6121d);
    color: #fff;
    padding: 12px 20px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    z-index: 99999;
    box-shadow: 0 8px 24px rgba(229,9,20,0.4);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease;
    pointer-events: none;
}
.tv-mode-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== TV MODE STYLES ===== */
html.tv-mode {
    font-size: 18px; /* Base scale up from 16 */
}

body.tv-mode {
    cursor: none; /* Hide cursor on TV */
}

/* Bigger UI elements */
body.tv-mode .nav-link {
    font-size: 18px !important;
    padding: 12px 20px !important;
}

body.tv-mode .logo img {
    height: 90px !important;
}

body.tv-mode .ch-title {
    font-size: clamp(50px, 7vw, 90px) !important;
}

body.tv-mode .ch-overview {
    font-size: 20px !important;
    max-width: 700px !important;
}

body.tv-mode .ch-btn-play,
body.tv-mode .ch-btn-info {
    padding: 18px 40px !important;
    font-size: 18px !important;
    border-radius: 12px !important;
}

body.tv-mode .row-title {
    font-size: 28px !important;
}

body.tv-mode .movie-card {
    flex: 0 0 240px !important;
    width: 240px !important;
}

body.tv-mode .row-scroll .movie-card {
    flex: 0 0 240px !important;
    width: 240px !important;
}

body.tv-mode .movie-title {
    font-size: 16px !important;
}

body.tv-mode .rating-year {
    font-size: 14px !important;
}

/* ===== FOCUS STYLING (D-pad navigation) ===== */
body.tv-mode *:focus {
    outline: none !important;
}

body.tv-mode a:focus,
body.tv-mode button:focus,
body.tv-mode input:focus,
body.tv-mode select:focus,
body.tv-mode [tabindex]:focus {
    outline: 4px solid #fff !important;
    outline-offset: 4px !important;
    box-shadow: 0 0 0 8px rgba(229,9,20,0.6), 0 12px 32px rgba(229,9,20,0.4) !important;
    transform: scale(1.05) !important;
    z-index: 100 !important;
    position: relative;
}

body.tv-mode .movie-card:focus {
    transform: scale(1.12) !important;
    z-index: 200 !important;
}

body.tv-mode .movie-card:focus .poster-container {
    border-color: #fff !important;
    box-shadow: 0 0 0 6px rgba(229,9,20,0.7), 0 16px 40px rgba(0,0,0,0.8) !important;
}

body.tv-mode .ch-btn-play:focus,
body.tv-mode .ch-btn-info:focus,
body.tv-mode .cd-btn:focus {
    outline: 4px solid #fff !important;
    outline-offset: 6px !important;
    transform: scale(1.08) !important;
}

/* Show quick actions on focus too (not just hover) */
body.tv-mode .movie-card:focus .card-quick-actions {
    opacity: 1 !important;
}

/* ===== HIDE MOBILE-ONLY ELEMENTS ON TV ===== */
body.tv-mode .mobile-bottom-nav,
body.tv-mode .mob-cat-wrapper,
body.tv-mode .mob-cat-bar {
    display: none !important;
}

/* Show desktop nav even if width is mobile-ish */
body.tv-mode .nav-center {
    display: flex !important;
}

/* ===== PLAYER TV ADJUSTMENTS ===== */
body.tv-mode .np-back,
body.tv-mode .np-ctrl-mini {
    width: 60px !important;
    height: 60px !important;
}

body.tv-mode .np-title {
    font-size: 28px !important;
}

body.tv-mode .np-subtitle {
    font-size: 16px !important;
}

body.tv-mode .np-server-tag-btn {
    padding: 12px 20px !important;
    font-size: 14px !important;
}

body.tv-mode .np-server-card {
    padding: 20px !important;
    font-size: 16px !important;
}

body.tv-mode .np-server-card:focus {
    transform: scale(1.05) !important;
    border-color: #fff !important;
    box-shadow: 0 0 0 4px rgba(229,9,20,0.6) !important;
}

/* ===== HOMEPAGE TOAST ON TV (move to bottom-center, bigger) ===== */
body.tv-mode .hp-toast-container {
    bottom: 60px !important;
    right: 60px !important;
    max-width: 480px !important;
}

body.tv-mode .hp-toast {
    padding: 22px 26px !important;
    min-width: 420px !important;
}

body.tv-mode .hp-toast-title {
    font-size: 18px !important;
}

body.tv-mode .hp-toast-msg {
    font-size: 16px !important;
}

body.tv-mode .hp-toast-icon {
    width: 56px !important;
    height: 56px !important;
}

/* Smooth animations for TV (slower, more cinematic) */
body.tv-mode * {
    transition-duration: 0.4s !important;
}
/* ============================================ */
/* PWA INSTALL BANNER */
/* ============================================ */
.pwa-install-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: auto;
    max-width: 420px;
    background: linear-gradient(135deg, rgba(20,20,20,0.97), rgba(15,15,15,0.97));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.12);
    border-left: 4px solid var(--accent);
    border-radius: 16px;
    padding: 18px 20px 18px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 4px 16px rgba(229,9,20,0.2);
    z-index: 99998;
    opacity: 0;
    transform: translateY(120%) scale(0.95);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pwa-install-banner.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.pwa-install-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), #f6121d);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(229,9,20,0.4);
}

.pwa-install-text {
    flex: 1;
    min-width: 0;
}

.pwa-install-text h4 {
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 4px;
    color: #fff;
}

.pwa-install-text p {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    margin: 0;
    line-height: 1.4;
}

.pwa-install-text strong {
    color: #fff;
    font-weight: 700;
}

.pwa-install-btn {
    background: linear-gradient(135deg, var(--accent), #f6121d);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(229,9,20,0.4);
}

.pwa-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229,9,20,0.5);
}

.pwa-install-dismiss {
    position: absolute;
    top: 8px;
    right: 10px;
    background: rgba(255,255,255,0.06);
    border: none;
    color: rgba(255,255,255,0.5);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s;
}

.pwa-install-dismiss:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* iOS install hint variation */
.pwa-install-banner.ios-hint {
    border-left-color: #3b82f6;
}

.pwa-install-banner.ios-hint .pwa-install-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 6px 16px rgba(59,130,246,0.4);
}

@media (max-width: 600px) {
    .pwa-install-banner {
        bottom: 80px;
        left: 12px;
        right: 12px;
        max-width: none;
        padding: 14px 14px 14px 12px;
        gap: 12px;
    }
    .pwa-install-icon { width: 40px; height: 40px; }
    .pwa-install-text h4 { font-size: 14px; }
    .pwa-install-text p { font-size: 11px; }
    .pwa-install-btn { padding: 8px 16px; font-size: 12px; }
}
/* ============================================ */
/* MOBILE POSTER MUTE BUTTON FIX */
/* ============================================ */
@media (max-width: 768px) {
    /* Mute button always visible on mobile when trailer playing */
    .movie-card .hover-trailer.visible ~ .poster-mute-btn,
    .movie-card .hover-trailer + .poster-mute-btn {
        opacity: 1 !important;
    }
    
    .poster-mute-btn {
        width: 36px !important;
        height: 36px !important;
        background: rgba(0,0,0,0.85) !important;
        border: 1.5px solid rgba(255,255,255,0.4) !important;
    }
}
/* ============================================ */
/* LOADING SKELETONS */
/* ============================================ */
.skeleton {
    background: linear-gradient(90deg,
        rgba(255,255,255,0.04) 0%,
        rgba(255,255,255,0.08) 50%,
        rgba(255,255,255,0.04) 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: 8px;
    display: block;
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 10px;
    margin-bottom: 10px;
}

.skeleton-text {
    height: 14px;
    margin-top: 8px;
    width: 80%;
}

.skeleton-text.sm {
    height: 11px;
    width: 50%;
    margin-top: 6px;
}

.skeleton-row {
    display: flex;
    gap: 12px;
    overflow: hidden;
    padding: 8px 0;
}

.skeleton-row .skeleton-card-wrap {
    flex: 0 0 180px;
}

@media (max-width: 768px) {
    .skeleton-row .skeleton-card-wrap {
        flex: 0 0 145px;
    }
}
/* ============================================ */
/* LAZY IMAGE FADE-IN */
/* ============================================ */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.4s ease;
}

img[loading="lazy"].img-loaded,
img[loading="lazy"][src]:not([src=""]) {
    opacity: 1;
}

.img-error {
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
}
/* ============================================ */
/* NETFLIX-STYLE CARDS — MY LIST + RECOMMENDED  */
/* ============================================ */

/* MY LIST — small Netflix-style poster grid */
.page-container .movie-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: 28px 16px !important;
    margin-top: 24px !important;
}

@media (min-width: 1400px) {
    .page-container .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .page-container .movie-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px 12px !important;
    }
}

@media (max-width: 480px) {
    .page-container .movie-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px 10px !important;
    }
}

/* Force My List cards to behave like homepage cards */
.page-container .movie-card {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    position: relative !important;
    cursor: pointer !important;
    transition: transform 0.3s ease !important;
    text-decoration: none !important;
    color: inherit !important;
}

.page-container .movie-card:hover {
    transform: scale(1.06) !important;
    z-index: 20 !important;
}

.page-container .movie-card .poster-container {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 2/3 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #111 !important;
    border: 1px solid var(--border) !important;
    transition: border-color 0.3s, box-shadow 0.3s !important;
}

.page-container .movie-card:hover .poster-container {
    border-color: rgba(255,255,255,0.25) !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.7) !important;
}

.page-container .movie-card .poster-container img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
/* Force quick actions to be hover overlay (not stacked) */
.page-container .movie-card .card-quick-actions {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%) !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 12px !important;
    opacity: 0 !important;
    transition: opacity 0.25s !important;
    z-index: 4 !important;
}

.page-container .movie-card:hover .card-quick-actions {
    opacity: 1 !important;
}

.page-container .movie-card .quick-btns {
    display: flex !important;
    gap: 6px !important;
}

.page-container .movie-card .quick-btn {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.95) !important;
    color: #000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid rgba(255,255,255,0.9) !important;
    padding: 0 !important;
    cursor: pointer !important;
}

.page-container .movie-card .quick-btn.outline {
    background: rgba(40,40,40,0.85) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,0.6) !important;
}

/* Title and info BELOW the poster (compact) */
.page-container .movie-card .movie-info {
    margin-top: 10px !important;
    padding: 0 2px !important;
}

.page-container .movie-card .movie-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #fff !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
}

.page-container .movie-card .rating-year {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 11px !important;
    color: rgba(255,255,255,0.55) !important;
    margin-bottom: 3px !important;
}

/* Hide rating/star clutter on My List posters */
.page-container .movie-card .rating-year .rating,
.page-container .movie-card .rating-year .rating + .dot {
    display: none !important;
}

/* ============================================ */
/* RECOMMENDED FOR YOU — match homepage rows    */
/* ============================================ */

#recommendedSection .row-scroll {
    display: flex !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 8px 0 16px !important;
    scrollbar-width: none !important;
}

#recommendedSection .row-scroll::-webkit-scrollbar { display: none !important; }

#recommendedSection .card,
#recommendedSection .movie-card {
    flex: 0 0 180px !important;
    width: 180px !important;
    display: block !important;
    text-decoration: none !important;
    color: inherit !important;
    transition: transform 0.3s !important;
}

#recommendedSection .card:hover,
#recommendedSection .movie-card:hover {
    transform: scale(1.06) !important;
    z-index: 20 !important;
}

#recommendedSection .card .poster,
#recommendedSection .movie-card .poster-container {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 2/3 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #111 !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
}

#recommendedSection .card .poster img,
#recommendedSection .movie-card .poster-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Hide ALL the dull artifacts on Recommended cards */
#recommendedSection .card-rating,
#recommendedSection .card .play-icon,
#recommendedSection .card .check-icon {
    display: none !important;
}

#recommendedSection .card .card-info,
#recommendedSection .movie-card .movie-info {
    margin-top: 10px !important;
    padding: 0 2px !important;
}

#recommendedSection .card h3,
#recommendedSection .movie-card .movie-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #fff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

#recommendedSection .card p {
    font-size: 11px !important;
    color: rgba(255,255,255,0.5) !important;
}

@media (max-width: 1280px) {
    #recommendedSection .card,
    #recommendedSection .movie-card {
        flex: 0 0 165px !important;
        width: 165px !important;
    }
}

@media (max-width: 768px) {
    #recommendedSection .card,
    #recommendedSection .movie-card {
        flex: 0 0 145px !important;
        width: 145px !important;
    }
}

@media (max-width: 480px) {
    #recommendedSection .card,
    #recommendedSection .movie-card {
        flex: 0 0 130px !important;
        width: 130px !important;
    }
}

/* ============================================ */
/* CONTINUE WATCHING — landscape thumbnails      */
/* ============================================ */
.continue-card {
    flex: 0 0 320px !important;
    width: 320px !important;
}

.continue-thumb {
    width: 100% !important;
    aspect-ratio: 16/9 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #111 !important;
    position: relative !important;
}

.continue-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

@media (max-width: 768px) {
    .continue-card {
        flex: 0 0 260px !important;
        width: 260px !important;
    }
}

@media (max-width: 480px) {
    .continue-card {
        flex: 0 0 220px !important;
        width: 220px !important;
    }
}
/* ============================================ */
/* FINAL OVERRIDE — LOGIN BG (responsive, all devices) */
/* ============================================ */
body.auth-body .auth-bg.auth-bg-login,
body.auth-body div.auth-bg.auth-bg-login {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 0 !important;
    background-image: url('/static/images/login-bg.png') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: #0a0a0a !important;
    background-attachment: scroll !important;
    filter: brightness(0.45) saturate(1.1) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

body.auth-body .auth-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1 !important;
    background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.75) 100%) !important;
    pointer-events: none !important;
}

/* Make sure auth content sits ABOVE the bg */
body.auth-body .auth-header,
body.auth-body .auth-wrap,
body.auth-body .auth-tagline-banner {
    position: relative !important;
    z-index: 10 !important;
}

/* Mobile responsive — prevent stretching/distortion */
@media (max-width: 768px) {
    body.auth-body .auth-bg.auth-bg-login {
        background-position: center top !important;
    }
}

@media (max-width: 480px) {
    body.auth-body .auth-bg.auth-bg-login {
        background-size: cover !important;
        background-position: 60% center !important;
    }
}

/* TV / Large screens */
@media (min-width: 1920px) {
    body.auth-body .auth-bg.auth-bg-login {
        background-size: cover !important;
        background-position: center center !important;
    }
}
/* Hero header */
.ml-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(229,9,20,0.08), rgba(20,20,20,0.6));
    border: 1px solid rgba(229,9,20,0.15);
    border-radius: 18px;
    flex-wrap: wrap;
}
.ml-hero-content {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 0;
}
.ml-hero-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--accent), #f6121d);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(229,9,20,0.4);
}
.ml-title {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 900;
    margin-bottom: 4px;
    letter-spacing: -1px;
    line-height: 1;
}
.ml-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}
.ml-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.75);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s;
    flex-shrink: 0;
}
.ml-clear-btn:hover {
    background: rgba(229,9,20,0.15);
    border-color: var(--accent);
    color: var(--accent);
}

/* Tabs */
.ml-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 0;
}
.ml-tabs::-webkit-scrollbar { display: none; }
.ml-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(20,20,20,0.6);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.65);
    padding: 11px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
    flex-shrink: 0;
}
.ml-tab:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border-color: rgba(255,255,255,0.18);
}
.ml-tab.active {
    background: linear-gradient(135deg, var(--accent), #f6121d);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(229,9,20,0.4);
}
.ml-tab-count {
    background: rgba(0,0,0,0.25);
    padding: 1px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
}
.ml-tab.active .ml-tab-count { background: rgba(255,255,255,0.25); }

/* Grid */
.ml-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 28px 18px;
}

/* Card */
.ml-card {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}
.ml-card:hover { transform: scale(1.05); z-index: 20; }

.ml-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s;
}
.ml-card:hover .ml-poster {
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 16px 40px rgba(0,0,0,0.7);
}
.ml-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ml-no-img {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
}

.ml-rating-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.85);
    color: #fbbf24;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(10px);
    z-index: 3;
}
.ml-type-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(229,9,20,0.85);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    backdrop-filter: blur(10px);
    z-index: 3;
}

.ml-info {
    margin-top: 10px;
    padding: 0 2px;
}
.ml-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ml-card-meta {
    font-size: 11.5px;
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}
.ml-dot {
    width: 3px;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    display: inline-block;
}

/* Skeleton */
.ml-skel {
    width: 100%;
}
.ml-skel-poster {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 12px;
    margin-bottom: 8px;
}

/* Empty state */
.ml-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 30px;
    background: linear-gradient(135deg, rgba(229,9,20,0.06), rgba(20,20,20,0.5));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px;
}
.ml-empty-icon {
    width: 110px;
    height: 110px;
    background: rgba(229,9,20,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(229,9,20,0.2);
}
.ml-empty h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
}
.ml-empty p {
    font-size: 15px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 28px;
    max-width: 360px;
    line-height: 1.5;
}
.ml-empty p strong { color: var(--accent); font-weight: 700; }

.ml-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--accent), #f6121d);
    color: #fff !important;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(229,9,20,0.4);
    transition: all 0.25s;
}
.ml-empty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(229,9,20,0.55);
}
.ml-empty-btn svg { fill: #fff; }

@media (max-width: 768px) {
    .ml-page { padding: 90px 16px 100px; }
    .ml-hero { padding: 18px 20px; gap: 14px; }
    .ml-hero-icon { width: 48px; height: 48px; }
    .ml-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 22px 12px;
    }
    .ml-tab { padding: 9px 16px; font-size: 12px; }
}

@media (max-width: 480px) {
    .ml-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 10px;
    }
    .ml-card-title { font-size: 13px; }
    .ml-empty { padding: 50px 20px; }
    .ml-empty-icon { width: 80px; height: 80px; }
    .ml-empty h2 { font-size: 20px; }
}

/* ============================================ */
/* PHASE 2 — DETAIL PAGE EPISODES SECTION      */
/* ============================================ */

.cd-episodes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.cd-season-picker {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cd-season-picker label {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.cd-select-wrap {
    position: relative;
    display: inline-block;
}
.cd-select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    padding: 11px 38px 11px 18px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    min-width: 200px;
    transition: all 0.2s;
}
.cd-select-wrap select:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
}
.cd-select-wrap select:focus {
    border-color: var(--accent);
}
.cd-select-wrap select option {
    background: #1a1a1a;
    color: #fff;
}
.cd-select-wrap svg {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: rgba(255,255,255,0.6);
}

.cd-season-info {
    margin-bottom: 18px;
}
.cd-season-summary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    font-size: 13px;
}
.cd-season-summary strong {
    color: #fff;
    font-weight: 700;
}
.cd-season-summary span {
    color: rgba(255,255,255,0.55);
}

.cd-episodes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cd-ep-card {
    display: flex;
    gap: 18px;
    padding: 14px;
    background: rgba(20,20,20,0.6);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s;
    position: relative;
}
.cd-ep-card:hover {
    background: rgba(30,30,30,0.85);
    border-color: rgba(229,9,20,0.3);
    transform: translateX(4px);
}
.cd-ep-card.is-current {
    background: linear-gradient(135deg, rgba(229,9,20,0.12), rgba(20,20,20,0.6));
    border-color: rgba(229,9,20,0.5);
}

.cd-ep-thumb {
    position: relative;
    width: 220px;
    aspect-ratio: 16/9;
    border-radius: 10px;
    overflow: hidden;
    background: #1a1a1a;
    flex-shrink: 0;
}
.cd-ep-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cd-ep-noimg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
}
.cd-ep-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
}
.cd-ep-card:hover .cd-ep-play-overlay { opacity: 1; }
.cd-ep-play-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.95);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    transform: scale(0.8);
    transition: transform 0.25s;
}
.cd-ep-card:hover .cd-ep-play-icon { transform: scale(1); }

.cd-ep-num {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
}
.cd-ep-current-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--accent);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    box-shadow: 0 2px 8px rgba(229,9,20,0.5);
}

.cd-ep-info {
    flex: 1;
    min-width: 0;
    padding: 4px 0;
}
.cd-ep-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.3;
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.cd-ep-no {
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}
.cd-ep-overview {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cd-ep-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
}
.cd-ep-dot {
    width: 3px;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    display: inline-block;
}

.cd-ep-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 14px;
}
.cd-ep-loading p {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

@media (max-width: 768px) {
    .cd-ep-card { gap: 12px; padding: 10px; }
    .cd-ep-thumb { width: 140px; }
    .cd-ep-title { font-size: 14px; }
    .cd-ep-no { font-size: 13px; }
    .cd-ep-overview { font-size: 12px; -webkit-line-clamp: 2; }
    .cd-select-wrap select { min-width: 160px; font-size: 13px; }
}

@media (max-width: 480px) {
    .cd-ep-card { flex-direction: column; }
    .cd-ep-thumb { width: 100%; }
    .cd-ep-info { padding: 0; }
}

/* ============================================ */
/* PHASE 2 — WATCH PAGE EPISODES PANEL          */
/* ============================================ */

/* Episodes button styling */
.np-episodes-btn {
    width: auto !important;
    padding: 0 18px !important;
    border-radius: 30px !important;
    gap: 8px !important;
}
.np-ep-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Backdrop */
.np-ep-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 105;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}
.np-ep-backdrop.open {
    opacity: 1;
    visibility: visible;
}

/* Panel */
.np-ep-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 480px;
    max-width: 100%;
    height: 100vh;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(30px);
    border-left: 1px solid rgba(255,255,255,0.08);
    z-index: 110;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 60px rgba(0,0,0,0.7);
}
.np-ep-panel.open { transform: translateX(0); }

.np-ep-panel-header {
    padding: 24px 24px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-shrink: 0;
}
.np-ep-panel-title { flex: 1; min-width: 0; }
.np-ep-panel-title h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.np-ep-panel-title p {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}
.np-ep-panel-close {
    background: rgba(255,255,255,0.06);
    border: none;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}
.np-ep-panel-close:hover { background: rgba(255,255,255,0.15); }

/* Search */
.np-ep-search-wrap {
    padding: 14px 24px 0;
    position: relative;
    flex-shrink: 0;
}
.np-ep-search-wrap svg {
    position: absolute;
    left: 38px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.4);
    pointer-events: none;
}
.np-ep-search-wrap input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    padding: 11px 16px 11px 42px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
}
.np-ep-search-wrap input:focus {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
}

/* Season selector */
.np-ep-season-row {
    padding: 14px 24px 0;
    flex-shrink: 0;
}
.np-ep-season-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(229,9,20,0.12);
    border: 1px solid rgba(229,9,20,0.3);
    color: #fff;
    padding: 12px 38px 12px 18px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.np-ep-season-select option {
    background: #1a1a1a;
    color: #fff;
}

/* List */
.np-ep-panel-list {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px 24px;
}
.np-ep-panel-list::-webkit-scrollbar { width: 6px; }
.np-ep-panel-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
}

.np-ep-panel-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

/* Episode row */
.np-ep-row {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    margin-bottom: 6px;
    position: relative;
}
.np-ep-row:hover {
    background: rgba(255,255,255,0.05);
}
.np-ep-row.current {
    background: rgba(229,9,20,0.12);
    border: 1px solid rgba(229,9,20,0.3);
}

.np-ep-row-thumb {
    position: relative;
    width: 130px;
    aspect-ratio: 16/9;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a;
}
.np-ep-row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.np-ep-row-noimg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
}
.np-ep-row-play {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s;
}
.np-ep-row:hover .np-ep-row-play { opacity: 1; }
.np-ep-row-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    background: rgba(229,9,20,0.95);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-align: center;
    backdrop-filter: blur(8px);
}

.np-ep-row-info {
    flex: 1;
    min-width: 0;
    padding: 2px 0;
}
.np-ep-row-num {
    font-size: 10.5px;
    color: rgba(255,255,255,0.5);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}
.np-ep-row-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.np-ep-row-overview {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 600px) {
    .np-ep-panel { width: 100%; }
    .np-ep-row-thumb { width: 110px; }
    .np-ep-row-title { font-size: 13px; }
    .np-ep-row-overview { font-size: 11.5px; -webkit-line-clamp: 2; }
}

@media (max-width: 480px) {
    .np-ep-label { display: none; }
    .np-episodes-btn {
        width: 44px !important;
        padding: 0 !important;
        border-radius: 50% !important;
    }
}
/* ============================================ */
/* EPISODES PANEL — Z-INDEX FIX                */
/* ============================================ */

.np-ep-panel {
    z-index: 9999 !important;
}

.np-ep-backdrop {
    z-index: 9998 !important;
}

/* Make sure iframe doesn't steal pointer events when panel open */
.np-ep-panel.open ~ #videoFrame,
body:has(.np-ep-panel.open) #videoFrame {
    pointer-events: none;
}

/* Episodes button — make sure it's clickable */
.np-episodes-btn {
    pointer-events: auto !important;
    position: relative;
    z-index: 50;
}
/* ============================================ */
/* PHASE 3 — PROFILE PIN UI                    */
/* ============================================ */

/* Lock icon on profile tile */
.profile-lock-icon {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    z-index: 5;
}

/* PIN section in edit/add profile */
.pin-section {
    margin: 24px 0;
    padding: 18px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
}

.pin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.pin-section-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.pin-section-header p {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    line-height: 1.4;
    max-width: 400px;
}

.pin-toggle-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    margin-left: 6px;
    transition: all 0.2s;
}

.pin-toggle-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
    color: #fff;
}

.pin-toggle-btn.add,
.pin-toggle-btn.change {
    background: rgba(229,9,20,0.15);
    border-color: rgba(229,9,20,0.4);
    color: #ff6b6b;
}

.pin-toggle-btn.add:hover,
.pin-toggle-btn.change:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.pin-toggle-btn.remove {
    background: rgba(251,191,36,0.1);
    border-color: rgba(251,191,36,0.3);
    color: #fbbf24;
}

.pin-toggle-btn.remove:hover {
    background: rgba(251,191,36,0.25);
    color: #fff;
}

.pin-form-area {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    animation: pinFadeIn 0.25s ease;
}

@keyframes pinFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.pin-form-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pin-form-inner label {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.pin-form-inner input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    background: rgba(51,51,51,0.7);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.pin-form-inner input[type="password"]:focus {
    border-color: var(--accent);
    background: rgba(60,60,60,0.85);
}

#newPinInput {
    text-align: center !important;
    letter-spacing: 8px !important;
    font-size: 20px !important;
    font-weight: 700 !important;
}

.pin-cancel-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.6);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    align-self: flex-start;
    transition: all 0.2s;
}

.pin-cancel-btn:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

@media (max-width: 600px) {
    .pin-section { padding: 14px 16px; }
    .pin-section-header { flex-direction: column; }
    .pin-toggle-btn { margin-left: 0; margin-top: 4px; }
}
/* ============================================ */
/* PHASE A — CONTINUE WATCHING (LANDSCAPE FIX)  */
/* ============================================ */

/* Reinforce landscape sizing — overrides any previous portrait fallback */
.continue-card {
    flex: 0 0 320px !important;
    width: 320px !important;
    transition: transform 0.3s ease;
    border-radius: 10px;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    display: block;
}

.continue-card:hover { transform: scale(1.04); z-index: 5; }

.continue-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9 !important;
    border-radius: 10px;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255,255,255,0.06);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.continue-card:hover .continue-thumb {
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

.continue-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.continue-thumb .no-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.15);
}

.continue-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
}

.continue-card:hover .continue-overlay { opacity: 1; }

.continue-overlay .play-icon {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.95);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}

.continue-thumb .progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.2);
    z-index: 3;
}

.continue-thumb .progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--accent), #f6121d);
    transition: width 0.4s;
}

.continue-thumb .remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    background: rgba(0,0,0,0.75);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s;
    cursor: pointer;
    z-index: 4;
    padding: 0;
}

.continue-card:hover .continue-thumb .remove-btn { opacity: 1; }
.continue-thumb .remove-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.1);
}

.continue-info {
    padding: 10px 4px 0;
}

.continue-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.continue-info p {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile sizing */
@media (max-width: 768px) {
    .continue-card { flex: 0 0 280px !important; width: 280px !important; }
    .continue-info h3 { font-size: 13px; }
}

@media (max-width: 480px) {
    .continue-card { flex: 0 0 240px !important; width: 240px !important; }
    .continue-overlay .play-icon { width: 44px; height: 44px; }
}
/* ============================================ */
/* PHASE B — REFINED CARD TEXT HIERARCHY        */
/* ============================================ */

/* Title is now BIG on top, meta below — matches reference */
.movie-card .movie-info {
    margin-top: 10px;
    padding: 0 2px;
}

.movie-card .movie-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #fff !important;
    line-height: 1.25 !important;
    margin-bottom: 5px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
}

.movie-card .movie-meta-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
    line-height: 1.2;
}

.meta-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
}

.meta-star {
    flex-shrink: 0;
    margin-bottom: 1px;
}

.meta-sep {
    color: rgba(255,255,255,0.3);
    font-weight: 400;
}

.meta-year {
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

.meta-type {
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

/* Hide old rating-year row to prevent doubling */
.movie-card .rating-year:not(.movie-meta-row) {
    display: none !important;
}

/* ============================================ */
/* PHASE B — LANDSCAPE BANNER CARDS             */
/* ============================================ */

.landscape-row .row-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    margin-top: 4px;
    font-weight: 500;
}

.ls-scroll {
    gap: 16px !important;
}

.landscape-card {
    flex: 0 0 380px;
    width: 380px;
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    scroll-snap-align: start;
}

.landscape-card:hover {
    transform: scale(1.03);
    z-index: 10;
}

.ls-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s;
}

.landscape-card:hover .ls-thumb {
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 16px 40px rgba(0,0,0,0.6);
}

.ls-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ls-thumb .no-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
}

.ls-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.landscape-card:hover .ls-overlay { opacity: 1; }

.ls-play-btn {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.95);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.5);
    transform: scale(0.85);
    transition: transform 0.3s;
}

.landscape-card:hover .ls-play-btn {
    transform: scale(1);
}

.ls-quick-actions {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.25s;
}

.landscape-card:hover .ls-quick-actions { opacity: 1; }

.ls-quick {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    color: #000;
    border: 2px solid rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
}

.ls-quick:hover {
    transform: scale(1.1);
    background: #fff;
}

.ls-quick.outline {
    background: rgba(20,20,20,0.85);
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.ls-quick.outline:hover {
    background: rgba(40,40,40,0.95);
}

.ls-info {
    margin-top: 10px;
    padding: 0 2px;
}

.ls-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
    letter-spacing: -0.2px;
}

.ls-meta-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
    line-height: 1.2;
}

/* Section header for landscape rows */
.landscape-row .row-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

/* Responsive landscape sizing */
@media (max-width: 1280px) {
    .landscape-card { flex: 0 0 340px; width: 340px; }
}

@media (max-width: 1024px) {
    .landscape-card { flex: 0 0 320px; width: 320px; }
    .ls-title { font-size: 15px; }
}

@media (max-width: 768px) {
    .landscape-card { flex: 0 0 280px; width: 280px; }
    .ls-title { font-size: 14px; }
    .movie-card .movie-title { font-size: 14px !important; }
    .movie-card .movie-meta-row { font-size: 11px; }
    .ls-meta-row { font-size: 11px; }
    .ls-play-btn { width: 46px; height: 46px; }
    .ls-scroll { gap: 12px !important; }
}

@media (max-width: 480px) {
    .landscape-card { flex: 0 0 240px; width: 240px; }
    .movie-card .movie-title { font-size: 13px !important; }
    .ls-title { font-size: 13px; }
}
/* ============================================ */
/* PHASE B — REFINED CARD TEXT HIERARCHY        */
/* ============================================ */

/* Title is now BIG on top, meta below — matches reference */
.movie-card .movie-info {
    margin-top: 10px;
    padding: 0 2px;
}

.movie-card .movie-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #fff !important;
    line-height: 1.25 !important;
    margin-bottom: 5px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
}

.movie-card .movie-meta-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
    line-height: 1.2;
}

.meta-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
}

.meta-star {
    flex-shrink: 0;
    margin-bottom: 1px;
}

.meta-sep {
    color: rgba(255,255,255,0.3);
    font-weight: 400;
}

.meta-year {
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

.meta-type {
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

/* Hide old rating-year row to prevent doubling */
.movie-card .rating-year:not(.movie-meta-row) {
    display: none !important;
}

/* ============================================ */
/* PHASE B — LANDSCAPE BANNER CARDS             */
/* ============================================ */

.landscape-row .row-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    margin-top: 4px;
    font-weight: 500;
}

.ls-scroll {
    gap: 16px !important;
}

.landscape-card {
    flex: 0 0 380px;
    width: 380px;
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    scroll-snap-align: start;
}

.landscape-card:hover {
    transform: scale(1.03);
    z-index: 10;
}

.ls-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s;
}

.landscape-card:hover .ls-thumb {
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 16px 40px rgba(0,0,0,0.6);
}

.ls-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ls-thumb .no-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
}

.ls-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.landscape-card:hover .ls-overlay { opacity: 1; }

.ls-play-btn {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.95);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.5);
    transform: scale(0.85);
    transition: transform 0.3s;
}

.landscape-card:hover .ls-play-btn {
    transform: scale(1);
}

.ls-quick-actions {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.25s;
}

.landscape-card:hover .ls-quick-actions { opacity: 1; }

.ls-quick {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    color: #000;
    border: 2px solid rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
}

.ls-quick:hover {
    transform: scale(1.1);
    background: #fff;
}

.ls-quick.outline {
    background: rgba(20,20,20,0.85);
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.ls-quick.outline:hover {
    background: rgba(40,40,40,0.95);
}

.ls-info {
    margin-top: 10px;
    padding: 0 2px;
}

.ls-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
    letter-spacing: -0.2px;
}

.ls-meta-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
    line-height: 1.2;
}

/* Section header for landscape rows */
.landscape-row .row-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

/* Responsive landscape sizing */
@media (max-width: 1280px) {
    .landscape-card { flex: 0 0 340px; width: 340px; }
}

@media (max-width: 1024px) {
    .landscape-card { flex: 0 0 320px; width: 320px; }
    .ls-title { font-size: 15px; }
}

@media (max-width: 768px) {
    .landscape-card { flex: 0 0 280px; width: 280px; }
    .ls-title { font-size: 14px; }
    .movie-card .movie-title { font-size: 14px !important; }
    .movie-card .movie-meta-row { font-size: 11px; }
    .ls-meta-row { font-size: 11px; }
    .ls-play-btn { width: 46px; height: 46px; }
    .ls-scroll { gap: 12px !important; }
}

@media (max-width: 480px) {
    .landscape-card { flex: 0 0 240px; width: 240px; }
    .movie-card .movie-title { font-size: 13px !important; }
    .ls-title { font-size: 13px; }
}
/* ============================================ */
/* PHASE C                    */
/* ============================================ */
/* ============================================
   PAUSE OVERLAY — CINEBY STYLE (with Logo)
   ============================================ */
   .np-pause-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

.np-pause-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.np-pause-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.4) 0%,
        rgba(0,0,0,0.55) 60%,
        rgba(0,0,0,0.85) 100%
    );
    pointer-events: none;
}

.np-pause-info {
    position: relative;
    z-index: 2;
    max-width: 480px;
    padding: 0 0 90px 70px;
    color: #fff;
    pointer-events: none;
}

/* TITLE LOGO (Cineby style) */
.np-pause-logo {
    margin-bottom: 18px;
    max-width: 380px;
}

.np-pause-logo img {
    width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: contain;
    object-position: left bottom;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.6));
}

/* TEXT FALLBACK (when no logo available) */
.np-pause-title {
    font-size: clamp(32px, 4vw, 54px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin: 0 0 18px 0;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

/* META LINE */
.np-pause-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 14px;
    font-weight: 500;
}

.np-pause-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-weight: 600;
}

.np-pause-sep {
    opacity: 0.4;
}

/* OVERVIEW */
.np-pause-overview {
    font-size: 13.5px;
    line-height: 1.55;
    color: rgba(255,255,255,0.75);
    margin: 0;
    max-width: 440px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile */
@media (max-width: 768px) {
    .np-pause-info {
        padding: 0 24px 100px 24px;
        max-width: 100%;
    }
    .np-pause-logo {
        max-width: 220px;
    }
    .np-pause-logo img {
        max-height: 100px;
    }
    .np-pause-title {
        font-size: 28px;
    }
    .np-pause-overview {
        -webkit-line-clamp: 2;
        font-size: 12.5px;
    }
    .np-pause-meta {
        font-size: 12px;
    }
}
/* ============================================ */
/* CARD META ROW — FORCE VISIBLE + STYLED      */
/* ============================================ */

/* Make sure the meta row shows up no matter what */
.movie-card .movie-meta-row {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 12px !important;
    color: rgba(255,255,255,0.55) !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    margin-top: 2px !important;
    white-space: nowrap;
    overflow: hidden;
}

/* Title — bold, slightly bigger, deeper */
.movie-card .movie-info {
    margin-top: 10px !important;
    padding: 0 2px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.movie-card .movie-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #fff !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    margin-bottom: 2px !important;
    letter-spacing: -0.2px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Meta row pieces */
.movie-card .meta-rating {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    color: rgba(255,255,255,0.85) !important;
    font-weight: 600 !important;
}

.movie-card .meta-star {
    flex-shrink: 0;
}

.movie-card .meta-sep {
    color: rgba(255,255,255,0.3) !important;
    font-weight: 400 !important;
}

.movie-card .meta-year,
.movie-card .meta-type {
    color: rgba(255,255,255,0.6) !important;
    font-weight: 500 !important;
}

/* Hide the OLD rating-year row so we don't show two rows */
.movie-card .rating-year {
    display: none !important;
}

/* Same for landscape cards */
.landscape-card .ls-info {
    margin-top: 10px !important;
    padding: 0 2px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.landscape-card .ls-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #fff !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    margin-bottom: 2px !important;
    letter-spacing: -0.2px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.landscape-card .ls-meta-row {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 12px !important;
    color: rgba(255,255,255,0.55) !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    white-space: nowrap;
    overflow: hidden;
}

@media (max-width: 768px) {
    .movie-card .movie-title { font-size: 14px !important; }
    .movie-card .movie-meta-row { font-size: 11px !important; }
    .landscape-card .ls-title { font-size: 14px !important; }
    .landscape-card .ls-meta-row { font-size: 11px !important; }
}

@media (max-width: 480px) {
    .movie-card .movie-title { font-size: 13px !important; }
    .movie-card .movie-meta-row { font-size: 10.5px !important; }
}
/* ============================================ */
/* GLOBAL CARD POLISH — APPLIES TO ALL PAGES   */
/* ============================================ */

/* ===== TITLE: medium weight, smaller, less aggressive ===== */
.movie-card .movie-title,
.page-container .movie-card .movie-title,
.listing-container .movie-card .movie-title,
.search-page .movie-card .movie-title,
.person-page .movie-card .movie-title,
.cd-body .movie-card .movie-title {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #fff !important;
    line-height: 1.3 !important;
    margin: 0 0 3px 0 !important;
    letter-spacing: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== META ROW — light, small, subtle ===== */
.movie-card .movie-meta-row,
.movie-card .rating-year {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 11.5px !important;
    color: rgba(255,255,255,0.5) !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    margin-top: 0 !important;
    white-space: nowrap;
    overflow: hidden;
}

/* If both rows exist (old + new), only show one */
.movie-card .movie-info > .rating-year + .movie-meta-row,
.movie-card .movie-info > .movie-meta-row + .rating-year {
    display: none !important;
}

/* Inject star + meta into old `.rating-year` rows automatically */
.movie-card .rating-year .rating {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
}

.movie-card .rating-year .year {
    color: rgba(255,255,255,0.55) !important;
    font-weight: 400 !important;
}

.movie-card .rating-year .type-pill {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    color: rgba(255,255,255,0.5) !important;
    font-size: 11.5px !important;
    font-weight: 400 !important;
    text-transform: capitalize !important;
    letter-spacing: 0 !important;
}

.movie-card .rating-year .dot {
    width: 2px !important;
    height: 2px !important;
    background: rgba(255,255,255,0.3) !important;
    border-radius: 50% !important;
    display: inline-block !important;
}

/* Meta row pieces (for new layout) */
.movie-card .meta-rating {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500 !important;
}

.movie-card .meta-star {
    flex-shrink: 0;
}

.movie-card .meta-sep {
    color: rgba(255,255,255,0.3) !important;
    font-weight: 400 !important;
}

.movie-card .meta-year {
    color: rgba(255,255,255,0.55) !important;
    font-weight: 400 !important;
}

.movie-card .meta-type {
    color: rgba(255,255,255,0.5) !important;
    font-weight: 400 !important;
    text-transform: capitalize !important;
}

/* ===== INFO BLOCK ===== */
.movie-card .movie-info {
    margin-top: 10px !important;
    padding: 0 2px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}

/* ============================================ */
/* LISTING / TV SHOWS / MOVIES PAGES — SPACING  */
/* ============================================ */

/* Add spacing between cards on listing/movies/shows/genre/search pages */
.listing-container .movie-grid,
.search-page .movie-grid,
.person-page .movie-grid,
.cd-body .movie-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: 32px 18px !important;
    margin-top: 24px !important;
}

@media (max-width: 1280px) {
    .listing-container .movie-grid,
    .search-page .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)) !important;
        gap: 28px 16px !important;
    }
}

@media (max-width: 1024px) {
    .listing-container .movie-grid,
    .search-page .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)) !important;
        gap: 26px 14px !important;
    }
}

@media (max-width: 768px) {
    .listing-container .movie-grid,
    .search-page .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 22px 12px !important;
    }
}

@media (max-width: 480px) {
    .listing-container .movie-grid,
    .search-page .movie-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 18px 10px !important;
    }
}

/* ============================================ */
/* LANDSCAPE BANNERS — MATCH CONTINUE WATCHING SIZE */
/* ============================================ */

.landscape-card {
    flex: 0 0 320px !important;
    width: 320px !important;
}

.ls-thumb {
    aspect-ratio: 16/9 !important;
    border-radius: 10px !important;
}

.ls-info {
    margin-top: 10px !important;
    padding: 0 4px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}

.landscape-card .ls-title {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #fff !important;
    line-height: 1.3 !important;
    margin: 0 0 3px 0 !important;
    letter-spacing: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.landscape-card .ls-meta-row {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 11.5px !important;
    color: rgba(255,255,255,0.5) !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    white-space: nowrap;
    overflow: hidden;
}

.ls-play-btn {
    width: 50px !important;
    height: 50px !important;
}

@media (max-width: 1280px) {
    .landscape-card { flex: 0 0 300px !important; width: 300px !important; }
}

@media (max-width: 1024px) {
    .landscape-card { flex: 0 0 280px !important; width: 280px !important; }
}

@media (max-width: 768px) {
    .landscape-card { flex: 0 0 260px !important; width: 260px !important; }
    .landscape-card .ls-title { font-size: 13px !important; }
    .landscape-card .ls-meta-row { font-size: 11px !important; }
}

@media (max-width: 480px) {
    .landscape-card { flex: 0 0 220px !important; width: 220px !important; }
}
/* ============================================ */
/* BECAUSE YOU WATCHED — section styling        */
/* ============================================ */

.because-row .row-title {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
}

.because-row .row-title #becauseTitle {
    color: var(--accent);
    font-weight: 700;
    font-style: italic;
}

.because-row .row-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
    font-weight: 400;
}

@media (max-width: 600px) {
    .because-row .row-title {
        font-size: 18px;
    }
}
/* ============================================
   MOBILE NAVBAR FIXES
   ============================================ */

/* Hide desktop-only items on mobile */
@media (max-width: 768px) {
    .desktop-only,
    .nav-profile,
    .lang-select {
        display: none !important;
    }
}

/* ============================================
   MOBILE SEARCH DROPDOWN — FULL SCREEN STYLE
   ============================================ */
@media (max-width: 768px) {
    .search-wrapper {
        position: static; /* let dropdown break out */
    }

    .search-dropdown {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        background: #0a0a0a !important;
        z-index: 9999;
        display: none;
        flex-direction: column;
        padding: 0 !important;
        overflow: hidden;
    }

    .search-dropdown.active {
        display: flex !important;
    }

    .search-form {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 16px 18px;
        background: #1a1a1a;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .search-form svg {
        flex-shrink: 0;
        opacity: 0.6;
    }

    .search-form input {
        flex: 1;
        background: transparent;
        border: none;
        outline: none;
        color: #fff;
        font-size: 16px; /* prevents iOS zoom */
        padding: 8px 0;
        width: 100%;
        min-width: 0;
    }

    .search-close {
        background: rgba(255,255,255,0.08);
        border: none;
        color: #fff;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
    }

    .search-results {
        flex: 1;
        overflow-y: auto;
        padding: 8px 0;
    }

    .live-result-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 18px;
        text-decoration: none;
        color: #fff;
        transition: background 0.15s;
    }

    .live-result-item:hover,
    .live-result-item:active {
        background: rgba(255,255,255,0.05);
    }

    .live-result-item img {
        width: 44px;
        height: 66px;
        object-fit: cover;
        border-radius: 4px;
        flex-shrink: 0;
    }

    .live-result-text {
        flex: 1;
        min-width: 0;
    }

    .live-result-text h4 {
        font-size: 14px;
        margin: 0 0 4px 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .live-result-text p {
        font-size: 12px;
        color: rgba(255,255,255,0.55);
        margin: 0;
    }
}

/* ============================================
   SEARCH RESULTS GRID — UNIFORM SIZE ON MOBILE
   ============================================ */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
    padding: 0 24px;
}

.movie-grid .movie-card {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.movie-grid .poster-container {
    width: 100%;
    aspect-ratio: 2 / 3;       /* CRITICAL: forces uniform poster shape */
    overflow: hidden;
    border-radius: 8px;
    background: #1a1a1a;
    position: relative;
}

.movie-grid .poster-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.movie-grid .no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
}

/* Tablet */
@media (max-width: 1024px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 14px;
        padding: 0 18px;
    }
}

/* Mobile — 3 columns */
@media (max-width: 768px) {
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 0 12px;
    }
    .movie-grid .movie-info {
        padding: 6px 2px;
    }
    .movie-grid .movie-title {
        font-size: 12px;
        line-height: 1.3;
        margin: 4px 0 0 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .movie-grid .rating-year {
        font-size: 10px;
        gap: 4px;
    }
    .movie-grid .type-pill {
        font-size: 9px;
        padding: 1px 5px;
    }
    /* Hide hover quick actions on mobile (they don't work on touch anyway) */
    .movie-grid .card-quick-actions {
        display: none;
    }
}

/* Very small phones — still 3 columns but tighter */
@media (max-width: 380px) {
    .movie-grid {
        gap: 8px;
        padding: 0 10px;
    }
    .movie-grid .movie-title {
        font-size: 11px;
    }
}

/* ============================================
   SEARCH PAGE HERO — MOBILE
   ============================================ */
@media (max-width: 768px) {
    .search-hero {
        padding: 16px 16px 8px;
    }
    .big-search {
        flex-wrap: wrap;
        gap: 8px;
    }
    .big-search input {
        font-size: 15px;
    }
    .big-search button {
        padding: 10px 18px;
        font-size: 14px;
    }
    .search-filters {
        gap: 6px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    .filter-pill {
        flex-shrink: 0;
        font-size: 13px;
        padding: 6px 14px;
    }
    .search-results-info {
        padding: 12px 16px;
    }
    .search-results-info h2 {
        font-size: 16px;
    }
}
/* ============================================
   SEARCH RESULTS GRID — FORCE UNIFORM SIZING
   (Overrides any conflicting older rules)
   ============================================ */

   .search-page .movie-grid {
    display: grid !important;
    grid-template-columns: repeat(8, 1fr) !important; /* desktop: 8 per row */
    gap: 16px !important;
    padding: 0 24px !important;
    width: 100% !important;
    box-sizing: border-box;
}

/* Every card = same width */
.search-page .movie-grid .movie-card,
.search-page .movie-grid .person-card {
    width: 100% !important;
    min-width: 0 !important;     /* prevent grid blow-out */
    max-width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Every poster = exact same shape (2:3 ratio) */
.search-page .movie-grid .poster-container,
.search-page .movie-grid .person-photo {
    width: 100% !important;
    aspect-ratio: 2 / 3 !important;
    height: auto !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    background: #1a1a1a !important;
    position: relative !important;
}

.search-page .movie-grid .poster-container img,
.search-page .movie-grid .person-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;     /* CRITICAL: crops to fit, no stretching */
    object-position: center !important;
    display: block !important;
}

.search-page .movie-grid .no-img {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Info text under poster */
.search-page .movie-grid .movie-info,
.search-page .movie-grid .person-info {
    padding: 8px 2px 0 2px !important;
    width: 100% !important;
}

.search-page .movie-grid .movie-title,
.search-page .movie-grid .person-info h3 {
    font-size: 13px !important;
    line-height: 1.3 !important;
    margin: 4px 0 0 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    color: #fff !important;
}

.search-page .movie-grid .rating-year {
    font-size: 11px !important;
    gap: 5px !important;
    color: rgba(255,255,255,0.6) !important;
}

.search-page .movie-grid .type-pill {
    font-size: 9px !important;
    padding: 1px 6px !important;
}

/* ===== RESPONSIVE COLUMN COUNTS ===== */

/* Large desktop: 8 cols (default above) */

/* Desktop: 7 cols */
@media (max-width: 1400px) {
    .search-page .movie-grid {
        grid-template-columns: repeat(7, 1fr) !important;
    }
}

/* Small desktop: 6 cols */
@media (max-width: 1200px) {
    .search-page .movie-grid {
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 14px !important;
    }
}

/* Tablet landscape: 5 cols */
@media (max-width: 1024px) {
    .search-page .movie-grid {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 12px !important;
        padding: 0 18px !important;
    }
}

/* Tablet portrait: 4 cols */
@media (max-width: 768px) {
    .search-page .movie-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 10px !important;
        padding: 0 14px !important;
    }
    .search-page .movie-grid .movie-title {
        font-size: 12px !important;
    }
    .search-page .movie-grid .card-quick-actions {
        display: none !important;     /* hide hover buttons on touch */
    }
}

/* Phone: 3 cols */
@media (max-width: 540px) {
    .search-page .movie-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        padding: 0 10px !important;
    }
    .search-page .movie-grid .movie-title {
        font-size: 11px !important;
        -webkit-line-clamp: 2 !important;
    }
    .search-page .movie-grid .rating-year {
        font-size: 10px !important;
    }
    .search-page .movie-grid .type-pill {
        display: none !important; /* save space on small phones */
    }
}

/* Very small phone: still 3 cols, tighter */
@media (max-width: 360px) {
    .search-page .movie-grid {
        gap: 6px !important;
        padding: 0 8px !important;
    }
}
/* ============================================
   HIDE TOP-NAV PROFILE AVATAR ON MOBILE
   (Search icon stays visible, profile via bottom nav)
   ============================================ */
   @media (max-width: 768px) {
    .profile-menu-wrapper {
        display: none !important;
    }
}
/* ============================================
   MY LIST PAGE — DEFINITIVE FIX
   ============================================ */
   body.mylist-page {
    padding-top: 80px !important;
}

body.mylist-page .navbar {
    background: #0a0a0a !important;
    -webkit-backdrop-filter: blur(20px) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}

/* Make sure the My List header is visible */
body.mylist-page .mylist-hero,
body.mylist-page .mylist-header,
body.mylist-page h1 {
    margin-top: 20px !important;
}
/* ============================================
   MY LIST PAGE — FIX NAVBAR OVERLAP
   ============================================ */

/* Push the My List header below the fixed navbar */
.ml-hero,
.ml-header,
.mylist-page-wrap,
body[data-page="mylist"] .page-content {
    padding-top: 100px !important;
}

/* If your mylist.html uses a different wrapper, this catches the main container */
.mylist-container,
.my-list-container {
    padding-top: 100px !important;
}

/* Make navbar solid black on My List page so the header is readable when scrolled to top */
body.mylist-active .navbar,
body[data-page="mylist"] .navbar {
    background: #0a0a0a !important;
    -webkit-backdrop-filter: blur(20px) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}
/* ============================================
   MY LIST PAGE — PRECISE FIX
   ============================================ */

/* DESKTOP — drop content well below navbar */
.ml-page {
    padding-top: 110px !important;
    padding-left: 40px;
    padding-right: 40px;
    max-width: 1600px;
    margin: 0 auto;
}

.ml-hero {
    padding: 26px 32px !important;
    min-height: auto !important;
    height: auto !important;
    margin-bottom: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px;
}

.ml-hero-content {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* MOBILE — tight spacing, no wasted area */
@media (max-width: 768px) {
    .ml-page {
        padding-top: 70px !important;     /* sits right under navbar */
        padding-left: 12px;
        padding-right: 12px;
    }

    .ml-hero {
        padding: 14px 14px !important;
        margin-bottom: 14px !important;
        border-radius: 12px !important;
        gap: 10px;
    }

    .ml-hero-content {
        gap: 12px;
    }

    .ml-hero-icon svg {
        width: 24px !important;
        height: 24px !important;
    }

    .ml-title {
        font-size: 20px !important;
        margin: 0 !important;
        line-height: 1.2 !important;
    }

    .ml-subtitle {
        font-size: 11px !important;
        margin: 2px 0 0 0 !important;
    }

    .ml-clear-btn {
        padding: 7px 12px !important;
        font-size: 12px !important;
    }
}
/* MOBILE — tight spacing, sits just under navbar */
@media (max-width: 768px) {
    .ml-page {
        padding-top: 12px !important;     /* was 70px — drastically reduced */
        padding-left: 12px;
        padding-right: 12px;
    }

    .ml-hero {
        padding: 14px 14px !important;
        margin-bottom: 14px !important;
        margin-top: 0 !important;
        border-radius: 12px !important;
        gap: 10px;
    }

    .ml-hero-content {
        gap: 12px;
    }

    .ml-hero-icon svg {
        width: 24px !important;
        height: 24px !important;
    }

    .ml-title {
        font-size: 20px !important;
        margin: 0 !important;
        line-height: 1.2 !important;
    }

    .ml-subtitle {
        font-size: 11px !important;
        margin: 2px 0 0 0 !important;
    }

    .ml-clear-btn {
        padding: 7px 12px !important;
        font-size: 12px !important;
    }
}
/* ============================================
   MOBILE — Smaller posters on movies/shows/listing pages
   ============================================ */
   @media (max-width: 768px) {
    /* Sections-mode portrait scrolls (Top Rated, Coming Soon, etc.) */
    .listing-container .row-scroll.portrait-scroll .movie-card {
        width: 110px !important;
        flex-shrink: 0;
    }
    .listing-container .row-scroll.portrait-scroll .poster-container {
        width: 110px !important;
        height: 165px !important;
        aspect-ratio: 2/3 !important;
    }
    .listing-container .row-scroll.portrait-scroll .movie-title {
        font-size: 11px !important;
        line-height: 1.3 !important;
        margin: 6px 0 0 0 !important;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Landscape scrolls (Trending Now, Now Playing) */
    .listing-container .row-scroll.ls-scroll .landscape-card {
        width: 220px !important;
        flex-shrink: 0;
    }
    .listing-container .row-scroll.ls-scroll .ls-thumb {
        width: 220px !important;
        height: 124px !important;
    }
    .listing-container .row-scroll.ls-scroll .ls-title {
        font-size: 12px !important;
    }

    /* Top 10 cards */
    .listing-container .top10-card {
        height: 130px !important;
    }
    .listing-container .top10-rank {
        font-size: 80px !important;
    }
    .listing-container .top10-poster {
        width: 90px !important;
        height: 130px !important;
    }

    /* Row title spacing */
    .listing-container .row-title {
        font-size: 18px !important;
    }
    .listing-container .row-subtitle {
        font-size: 11px !important;
    }
    .listing-container .row {
        padding: 0 !important;
        margin-bottom: 24px !important;
    }
    .listing-container .row-header {
        padding: 0 14px !important;
        margin-bottom: 10px !important;
    }
    .listing-container .row-scroll {
        padding: 0 14px !important;
        gap: 10px !important;
    }

    /* Hide arrows on mobile (use touch scroll) */
    .listing-container .row-arrow {
        display: none !important;
    }

    /* === GRID-MODE (genre pages, /platform/*) — SAME FIX AS SEARCH === */
    .listing-container .movie-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        padding: 0 12px !important;
    }
    .listing-container .movie-grid .movie-card {
        width: 100% !important;
    }
    .listing-container .movie-grid .poster-container {
        width: 100% !important;
        aspect-ratio: 2/3 !important;
        height: auto !important;
        overflow: hidden;
        border-radius: 8px;
    }
    .listing-container .movie-grid .poster-container img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    .listing-container .movie-grid .movie-title {
        font-size: 11px !important;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .listing-container .movie-grid .card-quick-actions {
        display: none !important;
    }
    .listing-container .movie-grid .type-pill {
        font-size: 9px !important;
        padding: 1px 5px !important;
    }
}

/* Tablet — 4 columns */
@media (max-width: 1024px) and (min-width: 769px) {
    .listing-container .movie-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 12px !important;
    }
}
/* ============================================
   TOP 10 ROW — CLEAN SPACING (homepage style)
   ============================================ */
   .listing-container .top10-scroll {
    display: flex !important;
    align-items: center !important;
    gap: 30px !important;            /* CLEAN gap between cards */
    padding: 30px 24px !important;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.listing-container .top10-card {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    height: 230px !important;
    text-decoration: none;
    position: relative;
    margin-right: 0 !important;       /* no negative margin */
    transition: transform 0.25s;
    gap: 0 !important;
}

.listing-container .top10-card:hover {
    transform: scale(1.05);
    z-index: 5;
}

/* Hollow outlined number behind poster */
.listing-container .top10-rank {
    font-size: 230px !important;
    font-weight: 900 !important;
    line-height: 0.85 !important;
    color: transparent !important;
    -webkit-text-stroke: 3px rgba(255,255,255,0.45) !important;
    font-family: 'Inter', sans-serif !important;
    letter-spacing: -12px !important;
    position: relative;
    z-index: 1;
    margin-right: -50px !important;   /* slight overlap with poster */
    padding-bottom: 0 !important;
    user-select: none;
    flex-shrink: 0;
}

.listing-container .top10-poster {
    width: 155px !important;
    height: 230px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #1a1a1a;
    z-index: 2;
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.65);
    flex-shrink: 0;
}

.listing-container .top10-poster img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

/* Double digit (10) — narrower */
.listing-container .top10-card:nth-child(10) .top10-rank {
    font-size: 200px !important;
    margin-right: -40px !important;
}

/* MOBILE */
@media (max-width: 768px) {
    .listing-container .top10-scroll {
        padding: 20px 14px !important;
        gap: 18px !important;
    }
    .listing-container .top10-card {
        height: 155px !important;
    }
    .listing-container .top10-rank {
        font-size: 155px !important;
        margin-right: -32px !important;
        -webkit-text-stroke: 2.5px rgba(255,255,255,0.45) !important;
        letter-spacing: -8px !important;
    }
    .listing-container .top10-poster {
        width: 105px !important;
        height: 155px !important;
    }
    .listing-container .top10-card:nth-child(10) .top10-rank {
        font-size: 135px !important;
        margin-right: -28px !important;
    }
}
/* ============================================
   HIDE STREAMING PLATFORMS ON BROWSE PAGE
   ============================================ */
   .platforms-section,
   .platforms-grid,
   .platform-grid,
   .streaming-platforms,
   .platforms-row,
   [class*="platform-card"],
   .browse-platforms {
       display: none !important;
   }
   
   /* Hide section header if it says "Platforms" / "Streaming" */
   .platforms-section h2,
   .platforms-section h3 {
       display: none !important;
   }
   /* ============================================
   HIDE "STREAMING PLATFORMS" HEADER ON BROWSE
   ============================================ */

/* Hide the entire platforms section header on /genres page */
body .platforms-section,
body .streaming-section,
body section.platforms,
body [class*="platforms-"],
body [id*="platform"] {
    display: none !important;
}

/* Also targets any h1/h2/h3 that contains "Streaming" text - via attribute */
body h1[class*="platform"],
body h2[class*="platform"],
body h3[class*="platform"],
body .section-title:has(+ .platforms-grid) {
    display: none !important;
}
/* ============================================
   FIX PORTRAIT CARD INFO ON LISTING PAGES
   (rating + year shows correctly + subtitles smaller)
   ============================================ */

   .listing-container .portrait-scroll .movie-card {
    width: 180px !important;
    flex-shrink: 0;
    display: flex !important;
    flex-direction: column !important;
}

.listing-container .portrait-scroll .poster-container {
    width: 180px !important;
    height: 270px !important;
    aspect-ratio: 2/3 !important;
    overflow: hidden;
    border-radius: 6px;
    background: #1a1a1a;
}

.listing-container .portrait-scroll .poster-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

.listing-container .portrait-scroll .movie-info {
    padding: 8px 2px 0 2px !important;
    display: block !important;
}

.listing-container .portrait-scroll .rating-year {
    display: flex !important;
    align-items: center;
    gap: 6px;
    font-size: 11px !important;
    color: rgba(255,255,255,0.65) !important;
    margin-bottom: 4px;
}

.listing-container .portrait-scroll .rating-year .rating {
    color: #fbbf24 !important;
    font-weight: 600;
}

.listing-container .portrait-scroll .rating-year .dot {
    opacity: 0.5;
}

.listing-container .portrait-scroll .rating-year .year {
    color: rgba(255,255,255,0.7) !important;
}

.listing-container .portrait-scroll .movie-title {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #fff !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Section header subtitles — smaller like homepage */
.listing-container .row-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.listing-container .row-subtitle {
    font-size: 12px !important;
    color: rgba(255,255,255,0.55) !important;
    margin: 4px 0 0 0 !important;
    font-weight: 400 !important;
}

.listing-container .row-header {
    padding: 0 24px !important;
    margin-bottom: 14px !important;
}

.listing-container .row {
    margin-bottom: 32px !important;
}

/* MOBILE */
@media (max-width: 768px) {
    .listing-container .portrait-scroll .movie-card {
        width: 110px !important;
    }
    .listing-container .portrait-scroll .poster-container {
        width: 110px !important;
        height: 165px !important;
    }
    .listing-container .portrait-scroll .movie-title {
        font-size: 11px !important;
    }
    .listing-container .portrait-scroll .rating-year {
        font-size: 9px !important;
    }
    .listing-container .row-title {
        font-size: 17px !important;
    }
    .listing-container .row-subtitle {
        font-size: 11px !important;
    }
    .listing-container .row-header {
        padding: 0 14px !important;
    }
}
/* ============================================
   HIDE "STREAMING PLATFORMS" HEADING ON BROWSE
   ============================================ */

/* Hide any h1 or h2 with "platform" in text via JS workaround:
   Use CSS to hide common patterns */
   body .platforms-header,
   body .platforms-title,
   body .streaming-header,
   body .streaming-title,
   body section.platforms-section > h1,
   body section.platforms-section > h2,
   body section.platforms-section > .section-header,
   body .browse-section.platforms,
   body .platforms-wrap,
   body .platforms-section h1,
   body .platforms-section h2 {
       display: none !important;
   }
   
   /* Hide the "16 platforms" counter too */
   body .platforms-count,
   body .platform-count {
       display: none !important;
   }
/* ============================================ */
/* SPORTS NAV DROPDOWN                          */
/* ============================================ */
.nav-dropdown-wrap {
    position: relative;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 220px;
    background: rgba(15, 20, 32, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    box-shadow: 0 24px 60px rgba(0,0,0,0.7);
    z-index: 1100;
}

.nav-dropdown-wrap:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s;
}

.nd-item:hover {
    background: rgba(37,99,235,0.12);
    color: #fff;
}

.nd-item svg {
    color: #2563eb;
    flex-shrink: 0;
}

.nd-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 6px 0;
}

.nd-live-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(239,68,68,0.7);
    animation: livePulse 1.5s infinite;
    flex-shrink: 0;
    margin-left: 4px;
    margin-right: 6px;
}

@media (max-width: 768px) {
    .nav-dropdown-menu { display: none; }
}
/* ============================================ */
/* NAVBAR — RESTORE ORIGINAL                    */
/* ============================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: transparent;
    transition: background 0.4s ease,
                backdrop-filter 0.4s ease,
                padding 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* SPORTS PAGE ONLY — solid navbar */
body.sports-body .navbar {
    background: rgba(10, 14, 21, 0.97) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
/* ============================================ */
/* SPORTS MOBILE MENU                           */
/* ============================================ */
.sports-mobile-trigger {
    display: none;
}

@media (max-width: 768px) {
    .sports-mobile-trigger {
        display: flex;
        position: fixed;
        bottom: 80px;
        right: 16px;
        z-index: 9990;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: #2563eb;
        color: #fff;
        border: none;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 24px rgba(37,99,235,0.4);
        cursor: pointer;
    }

    .sports-mobile-trigger:hover {
        background: #1d4ed8;
    }
}

.sports-mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99995;
}

.sports-mobile-menu.active {
    display: block;
}

.smm-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
}

.smm-panel {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: #131824;
    border-top: 1px solid rgba(37,99,235,0.3);
    border-radius: 18px 18px 0 0;
    padding: 14px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.25s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.smm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 8px;
}

.smm-header h3 {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.smm-header button {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.smm-header button:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.smm-item {
    display: block;
    padding: 14px 16px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.15s;
}

.smm-item:hover, .smm-item:active {
    background: rgba(37,99,235,0.12);
    color: #fff;
}
/* ════════════════════════════════════════════ */
/* MOVIE/SHOW CATEGORY — MOBILE GRID FIX        */
/* ════════════════════════════════════════════ */

@media (max-width: 768px) {
    /* Force consistent grid on ALL category pages */
    .movie-grid,
    .listing-container .movie-grid,
    .page-container .movie-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px 8px !important;
    }

    .movie-grid .movie-card,
    .listing-container .movie-card,
    .page-container .movie-card {
        width: 100% !important;
        flex: none !important;
        max-width: 100% !important;
    }

    .movie-grid .poster-container,
    .listing-container .poster-container,
    .page-container .poster-container {
        width: 100% !important;
        aspect-ratio: 2/3 !important;
        border-radius: 8px !important;
        overflow: hidden !important;
    }

    .movie-grid .poster-container img,
    .listing-container .poster-container img,
    .page-container .poster-container img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        position: absolute !important;
        inset: 0 !important;
    }

    .movie-grid .movie-title,
    .listing-container .movie-title,
    .page-container .movie-title {
        font-size: 11px !important;
    }

    .movie-grid .rating-year,
    .listing-container .rating-year,
    .page-container .rating-year {
        font-size: 9px !important;
    }

    /* Quick action buttons smaller */
    .movie-grid .quick-btn,
    .listing-container .quick-btn,
    .page-container .quick-btn {
        width: 28px !important;
        height: 28px !important;
    }
}

@media (max-width: 480px) {
    .movie-grid,
    .listing-container .movie-grid,
    .page-container .movie-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px 6px !important;
    }

    .movie-grid .movie-title {
        font-size: 10px !important;
    }
}

/* Ensure row scroll cards are same size */
@media (max-width: 768px) {
    .row-scroll .movie-card {
        flex: 0 0 120px !important;
        width: 120px !important;
    }
}

@media (max-width: 480px) {
    .row-scroll .movie-card {
        flex: 0 0 110px !important;
        width: 110px !important;
    }
}
/* ════════════════════════════════════════════ */
/* MOVIE/SHOW GRID — NUCLEAR MOBILE FIX         */
/* ════════════════════════════════════════════ */

@media (max-width: 768px) {
    .movie-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px 8px !important;
    }

    .movie-grid .movie-card {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        display: block !important;
    }

    .movie-grid .movie-card .poster-container {
        position: relative !important;
        width: 100% !important;
        height: 0 !important;
        padding-bottom: 150% !important;
        aspect-ratio: unset !important;
        border-radius: 8px !important;
        overflow: hidden !important;
    }

    .movie-grid .movie-card .poster-container img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .movie-grid .movie-card .poster-container .no-img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    .movie-grid .movie-card .movie-info {
        margin-top: 6px !important;
        padding: 0 2px !important;
    }

    .movie-grid .movie-card .movie-title {
        font-size: 11px !important;
        line-height: 1.2 !important;
        max-height: 28px !important;
        overflow: hidden !important;
    }

    .movie-grid .movie-card .rating-year {
        font-size: 9px !important;
        gap: 4px !important;
    }

    .movie-grid .movie-card .card-quick-actions {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .movie-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px 6px !important;
    }

    .movie-grid .movie-card .movie-title {
        font-size: 10px !important;
    }
}
/* ════════════════════════════════════════════ */
/* MOVIE/SHOW GRID — ABSOLUTE FINAL FIX         */
/* ════════════════════════════════════════════ */

@media (max-width: 768px) {
    /* Grid layout */
    .movie-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px 8px !important;
        overflow-x: hidden !important;
    }

    /* All cards same width */
    .movie-grid > .movie-card,
    .movie-grid > a {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        display: block !important;
        overflow: hidden !important;
    }

    /* FORCE all posters same size using padding trick */
    .movie-grid .poster-container {
        position: relative !important;
        width: 100% !important;
        height: 0 !important;
        padding-bottom: 150% !important;
        aspect-ratio: unset !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        background: #111 !important;
    }

    /* Image fills the container exactly */
    .movie-grid .poster-container > img,
    .movie-grid .poster-container > img:first-child {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    .movie-grid .poster-container .no-img {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    /* Hide hover actions on mobile */
    .movie-grid .card-quick-actions {
        display: none !important;
    }

    /* Text below poster */
    .movie-grid .movie-info {
        margin-top: 6px !important;
        padding: 0 2px !important;
    }

    .movie-grid .movie-title {
        font-size: 11px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .movie-grid .rating-year {
        font-size: 9px !important;
    }

    /* IMPORTANT: Prevent horizontal page scroll */
    .listing-container,
    .page-container {
        overflow-x: hidden !important;
    }

    /* Row scroll — MUST NOT move the page */
    .row-scroll-wrap {
        overflow: hidden !important;
    }

    .row-scroll {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
    }

    /* Prevent body horizontal scroll */
    body {
        overflow-x: hidden !important;
    }
}

@media (max-width: 480px) {
    .movie-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px 6px !important;
    }

    .movie-grid .movie-title {
        font-size: 10px !important;
    }
}
/* ════════════════════════════════════════════ */
/* PROFILE PAGE — Ambassador button             */
/* ════════════════════════════════════════════ */

.dash-action-btn.dash-action-ambassador {
    background: linear-gradient(135deg,
        rgba(251, 191, 36, 0.18),
        rgba(245, 158, 11, 0.12)) !important;
    border: 1px solid rgba(251, 191, 36, 0.35) !important;
    color: #fbbf24 !important;
    font-weight: 700 !important;
    flex: 1 1 100% !important;
    min-width: 100% !important;
}

.dash-action-btn.dash-action-ambassador:hover {
    background: linear-gradient(135deg,
        rgba(251, 191, 36, 0.28),
        rgba(245, 158, 11, 0.18)) !important;
    border-color: rgba(251, 191, 36, 0.6) !important;
    color: #fcd34d !important;
    transform: translateY(-1px);
}

.dash-action-btn.dash-action-ambassador svg {
    color: #fbbf24 !important;
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.5));
}

@media (max-width: 600px) {
    .dash-action-btn.dash-action-ambassador {
        flex: 1 1 100% !important;
        padding: 14px 16px !important;
    }
}
.otp-boxes {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 24px 0;
}

.otp-digit {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    outline: none;
    transition: all 0.15s;
    font-family: inherit;
}

.otp-digit:focus {
    border-color: #e50914;
    background: rgba(229, 9, 20, 0.08);
    transform: scale(1.05);
}

.auth-success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 480px) {
    .otp-digit {
        width: 42px;
        height: 50px;
        font-size: 20px;
    }
    .otp-boxes {
        gap: 6px;
    }
}
/* ═══════════════════════════════════════════ */
/* PASSWORD INPUT WITH SHOW/HIDE TOGGLE        */
/* ═══════════════════════════════════════════ */

.password-wrap {
    position: relative;
    width: 100%;
}

.password-wrap input {
    width: 100%;
    padding-right: 48px !important;  /* space for eye icon */
    box-sizing: border-box;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.password-toggle:hover,
.password-toggle:focus {
    color: rgba(255, 255, 255, 0.9);
    outline: none;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

/* Hide one icon at a time */
.password-toggle .eye-closed {
    display: none;
}
.password-toggle.is-visible .eye-open {
    display: none;
}
.password-toggle.is-visible .eye-closed {
    display: block;
}
/* ════════════════════════════════════════════ */
/* MULTI-STEP SIGNUP PROGRESS                   */
/* ════════════════════════════════════════════ */

.signup-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    margin-bottom: 8px;
    overflow: hidden;
}

.signup-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #e50914, #ff4d4d);
    border-radius: 4px;
    transition: width 0.4s ease;
    box-shadow: 0 0 8px rgba(229, 9, 20, 0.5);
}

.signup-step-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 20px;
    text-align: center;
}
/* ════════════════════════════════════════════ */
/* SIGNUP MULTI-STEP — WHITE THEME              */
/* ════════════════════════════════════════════ */

/* Use a special class so it ONLY affects signup pages, not login */
body.signup-body {
    background: #ffffff !important;
    color: #1a1a1a;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Hide the dark background overlays on signup */
body.signup-body .auth-bg,
body.signup-body .auth-overlay {
    display: none !important;
}

/* Logo header — black logo on white */
body.signup-body .auth-header {
    background: transparent;
}

body.signup-body .auth-header img {
    filter: none;  /* Keep red SV logo as-is */
}

/* Card — clean white with subtle shadow */
body.signup-body .auth-wrap {
    background: #ffffff;
}

body.signup-body .auth-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06),
                0 2px 8px rgba(0, 0, 0, 0.04);
    color: #1a1a1a;
}

/* Headings — pure black, bold */
body.signup-body .auth-card h1 {
    color: #000000 !important;
    font-weight: 900;
    letter-spacing: -0.5px;
}

/* Subtitle — soft gray */
body.signup-body .auth-subtitle {
    color: rgba(0, 0, 0, 0.55) !important;
    font-weight: 500;
}

/* Input fields — light cards with dark text */
body.signup-body .form-group input {
    background: #f5f5f7 !important;
    border: 1.5px solid transparent !important;
    color: #1a1a1a !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

body.signup-body .form-group input::placeholder {
    color: rgba(0, 0, 0, 0.4) !important;
}

body.signup-body .form-group input:focus {
    background: #ffffff !important;
    border-color: #e50914 !important;
    box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.08);
}

/* Submit button — bold red */
body.signup-body .auth-btn {
    background: #e50914 !important;
    color: #ffffff !important;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 14px rgba(229, 9, 20, 0.25);
    transition: all 0.2s ease;
}

body.signup-body .auth-btn:hover {
    background: #c40812 !important;
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.35);
    transform: translateY(-1px);
}

/* Error box — clean red card */
body.signup-body .auth-error {
    background: #fef2f2 !important;
    color: #b91c1c !important;
    border: 1px solid rgba(229, 9, 20, 0.2) !important;
    font-weight: 600;
}

/* Bottom links — black with red accents */
body.signup-body .auth-switch {
    color: rgba(0, 0, 0, 0.55) !important;
    font-weight: 500;
}

body.signup-body .auth-switch a {
    color: #e50914 !important;
    font-weight: 700;
    text-decoration: none;
}

body.signup-body .auth-switch a:hover {
    text-decoration: underline;
}

/* Progress bar — adjusted for white bg */
body.signup-body .signup-progress {
    background: rgba(0, 0, 0, 0.06);
}

body.signup-body .signup-progress-bar {
    background: linear-gradient(90deg, #e50914, #ff4d4d);
    box-shadow: 0 0 8px rgba(229, 9, 20, 0.35);
}

body.signup-body .signup-step-label {
    color: rgba(0, 0, 0, 0.4) !important;
}

/* Password toggle — dark for white bg */
body.signup-body .password-toggle {
    color: rgba(0, 0, 0, 0.45);
}

body.signup-body .password-toggle:hover {
    color: #1a1a1a;
}

/* ─── Mobile tweaks ─── */
@media (max-width: 480px) {
    body.signup-body .auth-card {
        box-shadow: none;
        border: none;
    }
}
/* OTP boxes on signup white theme */
body.signup-body .otp-digit {
    background: #f5f5f7 !important;
    border: 2px solid transparent !important;
    color: #1a1a1a !important;
    font-weight: 800;
    transition: all 0.2s ease;
}

body.signup-body .otp-digit:focus {
    background: #ffffff !important;
    border-color: #e50914 !important;
    box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.08);
    transform: scale(1.05);
}

body.signup-body .auth-success {
    background: #f0fdf4 !important;
    color: #166534 !important;
    border: 1px solid rgba(34, 197, 94, 0.2) !important;
    font-weight: 600;
}
/* ════════════════════════════════════════════ */
/* PERSONALIZATION CHIPS GRID                   */
/* ════════════════════════════════════════════ */

body.signup-body .chips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin: 20px 0 16px;
}

body.signup-body .chip-option {
    display: block;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

body.signup-body .chip-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

body.signup-body .chip-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px;
    background: #f5f5f7;
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.15s ease;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 13px;
}

body.signup-body .chip-option:hover .chip-content {
    background: #ebebed;
    transform: translateY(-1px);
}

body.signup-body .chip-option input:checked ~ .chip-content {
    background: #1a1a1a;
    color: #fff;
    border-color: #e50914;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.2);
}

body.signup-body .chip-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

body.signup-body .chip-name {
    flex: 1;
    line-height: 1.2;
}

body.signup-body .chip-count-label {
    text-align: center;
    color: rgba(0, 0, 0, 0.5);
    font-size: 13px;
    font-weight: 600;
    margin: 16px 0 12px;
}


/* ════════════════════════════════════════════ */
/* SIGNUP AVATAR GRID — 3 columns, centered     */
/* ════════════════════════════════════════════ */

body.signup-body .signup-avatar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 24px auto;
    max-width: 360px;
    max-height: 420px;
    overflow-y: auto;
    padding: 8px;
    justify-items: center;
}

body.signup-body .signup-avatar-option {
    display: block;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    width: 90px;
    height: 90px;
    position: relative;
}

body.signup-body .signup-avatar-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

body.signup-body .signup-avatar-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid transparent;
    transition: all 0.15s ease;
    background: #f5f5f7;
    display: block;
}

body.signup-body .signup-avatar-option:hover img {
    transform: scale(1.05);
    border-color: rgba(229, 9, 20, 0.3);
}

body.signup-body .signup-avatar-option input:checked ~ img {
    border-color: #e50914;
    box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.15);
    transform: scale(1.05);
}

/* Mobile — 3 still but smaller */
@media (max-width: 480px) {
    body.signup-body .signup-avatar-grid {
        max-width: 280px;
        gap: 10px;
    }
    body.signup-body .signup-avatar-option {
        width: 72px;
        height: 72px;
    }
}

/* Scrollbar styling */
body.signup-body .signup-avatar-grid::-webkit-scrollbar {
    width: 6px;
}
body.signup-body .signup-avatar-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 3px;
}
body.signup-body .signup-avatar-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

/* ════════════════════════════════════════════ */
/* WELCOME PAGE                                 */
/* ════════════════════════════════════════════ */

body.signup-body .welcome-card {
    text-align: center;
}

body.signup-body .welcome-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #22c55e, #15803d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
    animation: welcomePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.signup-body .welcome-icon svg {
    width: 44px;
    height: 44px;
    color: #fff;
}

@keyframes welcomePop {
    0%   { transform: scale(0) rotate(-30deg); opacity: 0; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

body.signup-body .welcome-headline {
    font-size: 28px !important;
    font-weight: 900 !important;
    color: #000 !important;
    margin: 0 0 8px !important;
    letter-spacing: -0.5px;
}

body.signup-body .welcome-subtitle {
    color: rgba(0, 0, 0, 0.55) !important;
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 28px !important;
}

body.signup-body .welcome-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 24px 0 28px;
    text-align: left;
}

body.signup-body .welcome-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #f5f5f7;
    border-radius: 12px;
}

body.signup-body .welcome-feature svg {
    width: 22px;
    height: 22px;
    color: #e50914;
    flex-shrink: 0;
}

body.signup-body .welcome-feature strong {
    display: block;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

body.signup-body .welcome-feature span {
    color: rgba(0, 0, 0, 0.55);
    font-size: 12px;
    font-weight: 500;
}

body.signup-body .welcome-cta {
    display: inline-block !important;
    width: 100% !important;
    text-decoration: none !important;
    text-align: center;
    margin-top: 8px;
}

@media (max-width: 480px) {
    body.signup-body .signup-avatar-grid {
        grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
        gap: 10px;
    }
    body.signup-body .chips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ════════════════════════════════════════════ */
/* OTP DIGITS — WHITE THEME FIX                 */
/* ════════════════════════════════════════════ */

body.signup-body .otp-digit {
    background: #f5f5f7 !important;
    border: 2px solid transparent !important;
    color: #1a1a1a !important;
    font-weight: 800 !important;
    font-size: 26px !important;
    width: 52px !important;
    height: 64px !important;
    line-height: 1 !important;
    padding: 0 !important;
    text-align: center !important;
    border-radius: 12px !important;
    font-family: 'Inter', sans-serif !important;
    transition: all 0.15s ease;
    box-sizing: border-box !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.signup-body .otp-digit:focus {
    background: #ffffff !important;
    border-color: #e50914 !important;
    box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.1) !important;
    outline: none !important;
}

body.signup-body .otp-boxes {
    display: flex !important;
    gap: 10px !important;
    justify-content: center !important;
    margin: 24px 0 !important;
    flex-wrap: nowrap;
}

/* Mobile — slightly smaller */
@media (max-width: 480px) {
    body.signup-body .otp-digit {
        width: 44px !important;
        height: 56px !important;
        font-size: 22px !important;
    }
    body.signup-body .otp-boxes {
        gap: 7px !important;
    }
}
/* ════════════════════════════════════════════ */
/* SIGNUP — VERTICAL CENTERING                  */
/* ════════════════════════════════════════════ */

body.signup-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.signup-body .auth-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    width: 100%;
    box-sizing: border-box;
}

body.signup-body .auth-card {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

body.signup-body .auth-card-wide {
    max-width: 640px;
}

/* Make sure header doesn't push too much */
body.signup-body .auth-header {
    flex-shrink: 0;
}

@media (max-width: 600px) {
    body.signup-body .auth-wrap {
        padding: 20px 14px;
        align-items: flex-start;
    }
}
/* ════════════════════════════════════════════ */
/* SIGNUP — DESKTOP-ONLY WIDER LAYOUTS          */
/* (Only kicks in on PC view, mobile untouched) */
/* ════════════════════════════════════════════ */

/* PC view only — wider card + 4 columns */
@media (min-width: 769px) {

    /* Wider card on personalize + profile pages */
    body.signup-body .auth-card-wide {
        max-width: 760px !important;
    }

    /* CHIPS — 4 per row on PC */
    body.signup-body .chips-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 10px;
    }

    /* AVATARS — 4 per row on PC */
    body.signup-body .signup-avatar-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        max-width: 500px;
        gap: 14px;
    }

    body.signup-body .signup-avatar-option {
        width: 90px;
        height: 90px;
    }
}
/* ════════════════════════════════════════════ */
/* MINIMIZE BUTTON — In watch player top overlay */
/* ════════════════════════════════════════════ */

.np-mini-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.15s;
    flex-shrink: 0;
    margin-right: 8px;
}

.np-mini-btn:hover {
    background: rgba(229, 9, 20, 0.25);
    border-color: rgba(229, 9, 20, 0.5);
    transform: scale(1.05);
}

.np-mini-btn:active {
    transform: scale(0.95);
}

.np-mini-btn svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

@media (max-width: 480px) {
    .np-mini-btn {
        width: 32px;
        height: 32px;
        margin-right: 6px;
    }
    .np-mini-btn svg {
        width: 16px;
        height: 16px;
    }
}
/* ===== Apple Store 2026 Style Bottom Nav ===== */
.apple-btm-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    display: none;
    padding: 6px 12px calc(10px + env(safe-area-inset-bottom)) 12px !important;
    background: transparent !important;
    border: none !important;
    pointer-events: none;
    align-items: center;
    gap: 10px;
}

.apple-btm-pill {
    pointer-events: auto;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.008);
    -webkit-backdrop-filter: saturate(150%) blur(18px);
    backdrop-filter: saturate(150%) blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 28px;
    padding: 4px 6px;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.apple-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    padding: 5px 2px;
    border-radius: 18px;
    transition: transform 0.18s ease, background 0.25s ease;
    color: rgba(255, 255, 255, 0.85);
}

.apple-nav-item:active {
    transform: scale(0.92);
}

.apple-nav-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apple-nav-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    stroke: rgba(255, 255, 255, 0.92);
    stroke-width: 1.4;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.apple-nav-label {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1;
}

/* Active state */
.apple-nav-item.active {
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.apple-nav-item.active .apple-nav-label {
    color: #ffffff;
    font-weight: 500;
}

.apple-nav-item.active .apple-nav-icon svg {
    stroke: #ffffff;
}

/* ===== Standalone Profile Button ===== */
.apple-profile-btn {
    pointer-events: auto;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: transform 0.18s ease, border-color 0.25s ease;
    background: rgba(0, 0, 0, 0.2);
}

.apple-profile-btn:active {
    transform: scale(0.92);
}

.apple-profile-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.apple-profile-btn.active {
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
/* ============ CONTINUE WATCHING ROW ============ */
.continue-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 4%;
    max-width: 1400px;
    margin: 0 auto;
}

.continue-row-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #fff;
    position: relative;
}
.continue-row-item:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.15);
}

.continue-row-thumb {
    position: relative;
    width: 220px;
    height: 124px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #0a0a0a;
}
.continue-row-thumb img {
    width: 100%; height: 100%; object-fit: cover;
}
.no-img {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
}

.continue-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}
.continue-row-item:hover .continue-overlay { opacity: 1; }
.play-icon {
    width: 50px; height: 50px;
    background: #e50914;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* PROGRESS BAR */
.progress-bar {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: rgba(255,255,255,0.2);
}
.progress-fill {
    height: 100%;
    background: #e50914;
    transition: width 0.3s ease;
}

.continue-row-info {
    flex: 1;
    min-width: 0;
}
.continue-row-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.continue-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    margin: 0 0 4px;
}
.continue-meta {
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    margin: 0;
}

.continue-remove {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
}
.continue-remove:hover {
    background: rgba(229,9,20,0.15);
    color: #ef4444;
    border-color: rgba(229,9,20,0.3);
}

/* ============ LIVE SPORT ROW ============ */
.continue-row-live .continue-live-thumb {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #e50914 0%, #b00710 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.continue-live-icon {
    color: rgba(255,255,255,0.9);
}

.live-badge-corner {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.live-pulse {
    width: 6px; height: 6px;
    background: #ef4444;
    border-radius: 50%;
    animation: live-pulse-anim 1.5s ease-in-out infinite;
}
@keyframes live-pulse-anim {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

@media (max-width: 600px) {
    .continue-row-thumb { width: 140px; height: 80px; }
    .continue-row-info h3 { font-size: 14px; }
    .continue-subtitle, .continue-meta { font-size: 11px; }
}
/* ============ HOMEPAGE CONTINUE WATCHING ============ */

/* Real progress bar — uses actual saved % */
.cw-progress-track {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.25);
    z-index: 3;
}

.cw-progress-fill {
    height: 100%;
    background: #e50914;
    transition: width 0.4s ease;
    box-shadow: 0 0 8px rgba(229,9,20,0.6);
}

/* Live sport card on homepage */
.live-card .ls-thumb {
    background: linear-gradient(135deg, #e50914 0%, #7a0610 100%);
}

.cw-live-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.85);
}

.cw-live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 4;
}

.cw-live-dot {
    width: 7px;
    height: 7px;
    background: #ef4444;
    border-radius: 50%;
    animation: cw-pulse 1.4s ease-in-out infinite;
}

@keyframes cw-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}
/* ============ HOMEPAGE CONTINUE WATCHING — LIVE SPORTS ============ */

/* Live sport thumbnail background */
.continue-card.live-card .continue-thumb {
    background: linear-gradient(135deg, #e50914 0%, #7a0610 100%);
}

.cw-live-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.85);
    background: linear-gradient(135deg, #e50914 0%, #7a0610 100%);
}

.cw-live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 4;
}

.cw-live-dot {
    width: 7px;
    height: 7px;
    background: #ef4444;
    border-radius: 50%;
    animation: cw-pulse 1.4s ease-in-out infinite;
}

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

/* Skip animations on slow connections / save data mode */
.sv-slow-net *,
.sv-slow-net *::before,
.sv-slow-net *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
}

/* Hide hero trailer iframe on mobile (we don't load it anyway, this is safety) */
.sv-mobile .ch-trailer-bg,
.sv-mobile .cd-trailer-bg {
    display: none !important;
}

/* ===== INSTANT PLAY LOADER ===== */
#svInstantLoader {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s ease;
}

#svInstantLoader.active {
    display: flex;
    opacity: 1;
}

.sv-instant-loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.sv-instant-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #e50914;
    border-radius: 50%;
    animation: svInstantSpin 0.7s linear infinite;
}

#svInstantLoader p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

@keyframes svInstantSpin {
    to { transform: rotate(360deg); }
}

.ch-mute-btn { display: none !important; }

/* ============ DETAIL PAGE — STICKY BACK BUTTON ============ */
.cineby-detail-body .back-btn {
    position: fixed !important;
    top: 80px !important;
    left: 20px !important;
    z-index: 9999 !important;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.cineby-detail-body .back-btn:hover {
    background: #e50914;
    border-color: #e50914;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .cineby-detail-body .back-btn {
        top: 70px !important;
        left: 14px !important;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .cineby-detail-body .back-btn {
        top: 66px !important;
        left: 12px !important;
    }
}

.back-btn {
    position: fixed;
    top: 60px; /* 👈 change this — try 60px, 80px, 100px */
    left: 20px;
    z-index: 9999;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.08);
}

.back-btn svg {
    display: block;
    flex-shrink: 0;
}

.cd-cert-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    line-height: 1;
    text-transform: uppercase;
}

/* ============================================
   SIGNUP — STICKY TOP-RIGHT BUTTON + HIGHER CONTENT
   ============================================ */

/* Bring signup content WAY up */
body.signup-body .auth-wrap {
    align-items: flex-start !important;
    justify-content: center !important;
    padding-top: 20px !important;
    min-height: auto !important;
}

/* Compact card */
body.signup-body .auth-card,
body.signup-body .welcome-card {
    padding: 28px 32px !important;
    margin-top: 10px !important;
}

/* ✅ Top-right button — FORCED small + rounded */
.signup-top-action {
    position: fixed !important;
    top: 18px !important;
    right: 22px !important;
    z-index: 99999 !important;
    width: auto !important;
    max-width: 130px !important;
    background: #e50914 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 9px 16px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease !important;
    box-shadow: 0 4px 14px rgba(229, 9, 20, 0.4) !important;
    font-family: inherit !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

.signup-top-action:hover:not(:disabled) {
    background: #f6121d !important;
    transform: translateY(-1px) !important;
    color: #fff !important;
}

.signup-top-action:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

.signup-top-action svg {
    flex-shrink: 0 !important;
}

/* Hide the original bottom buttons */
body.signup-body .auth-form > .auth-btn,
body.signup-body .welcome-cta {
    display: none !important;
}
body.signup-body .auth-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 100 !important;
    padding: 14px 24px !important;
    background: transparent !important;
}


body.signup-body .auth-header .auth-logo img {
    height: 64px !important;
}

/* Push content down so it doesn't hide under fixed header */
body.signup-body .auth-wrap {
    padding-top: 100px !important;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .signup-top-action {
        top: 12px !important;
        right: 12px !important;
        padding: 8px 14px !important;
        font-size: 13px !important;
    }
    body.signup-body .auth-card,
    body.signup-body .welcome-card {
        padding: 22px 20px !important;
    }
}

/* ============================================
   AVATAR PAGE — Static header, scrollable avatars only
   ============================================ */

/* On avatar page, fix the card to viewport */
body.signup-body .auth-card-wide {
    max-height: calc(100vh - 130px) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* Keep top of card (progress, title, subtitle) static */
body.signup-body .auth-card-wide > .signup-progress,
body.signup-body .auth-card-wide > .signup-step-label,
body.signup-body .auth-card-wide > h1,
body.signup-body .auth-card-wide > .auth-subtitle,
body.signup-body .auth-card-wide > .auth-error {
    flex-shrink: 0 !important;
}

/* Form takes remaining space, avatar grid scrolls inside */
body.signup-body .auth-card-wide > .auth-form {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    min-height: 0 !important;
}

body.signup-body .signup-avatar-grid {
    flex: 1 !important;
    overflow-y: auto !important;
    padding-right: 8px !important;
    margin-right: -8px !important;
    min-height: 0 !important;
}

/* Custom scrollbar for the avatar grid */
body.signup-body .signup-avatar-grid::-webkit-scrollbar {
    width: 6px;
}
body.signup-body .signup-avatar-grid::-webkit-scrollbar-track {
    background: transparent;
}
body.signup-body .signup-avatar-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}
body.signup-body .signup-avatar-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* ============================================
   HERO — ROUNDED PILL BUTTONS
   ============================================ */
   .ch-btn-play,
   .ch-btn-info {
       border-radius: 999px !important;
       padding: 12px 28px !important;
   }
   
   /* ============================================
      HERO TITLE LOGO (TMDB official logo)
      ============================================ */
   .ch-title-logo {
       max-width: 380px;
       max-height: 150px;
       width: auto;
       height: auto;
       object-fit: contain;
       display: block;
       margin-bottom: 16px;
       filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
   }
   
   @media (max-width: 768px) {
       .ch-title-logo {
           max-width: 240px;
           max-height: 100px;
           margin-bottom: 12px;
       }
   }
   
   @media (max-width: 480px) {
       .ch-title-logo {
           max-width: 200px;
           max-height: 80px;
       }
   }


   /* ============================================
   DESKTOP NAVBAR — Centered + Netflix-Style Active Pill
   (Mobile bottom nav untouched, transparent scroll preserved)
   ============================================ */

@media (min-width: 769px) {
    /* Use flex grid to truly center nav-center */
    .navbar .nav-inner {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr !important;
        align-items: center !important;
        gap: 20px !important;
    }

    /* Left = logo */
    .navbar .logo {
        justify-self: start !important;
    }

    /* Center = nav links (perfectly centered) */
    .navbar .nav-center {
        display: flex !important;
        justify-self: center !important;
        align-items: center !important;
        gap: 8px !important;
    }

    /* Right = search + profile */
    .navbar .nav-right {
        justify-self: end !important;
    }

    /* Netflix-style nav link — rounded pill */
    .navbar .nav-link {
        padding: 8px 18px !important;
        border-radius: 999px !important;
        font-weight: 600 !important;
        font-size: 14px !important;
        color: rgba(255, 255, 255, 0.85) !important;
        transition: background 0.2s ease, color 0.2s ease !important;
        white-space: nowrap !important;
    }

    .navbar .nav-link:hover {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.08) !important;
    }

    /* ✅ ACTIVE = white pill background, black text (Netflix style) */
    .navbar .nav-link.active {
        background: #ffffff !important;
        color: #000 !important;
    }

    .navbar .nav-link.active:hover {
        background: #ffffff !important;
        color: #000 !important;
    }

    /* Dropdown trigger keeps same active style */
    .navbar .nav-dropdown-trigger.active {
        background: #ffffff !important;
        color: #000 !important;
    }

    .navbar .nav-dropdown-trigger.active svg {
        stroke: #000 !important;
    }
}


/* ============================================
   LANDSCAPE CARD — Logo Overlay (Netflix-style)
   ============================================ */
   .landscape-card .ls-thumb {
    position: relative;
}

.ls-logo-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 2;
    pointer-events: none;
}

.ls-logo-overlay img {
    max-width: 60%;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.8));
}

@media (max-width: 640px) {
    .ls-logo-overlay img {
        max-height: 30px;
        max-width: 70%;
    }
}

/* ============================================
   DETAIL PAGE — OFFICIAL TITLE LOGO
   ============================================ */
   .cd-title-logo {
    max-width: 420px;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
}

@media (max-width: 768px) {
    .cd-title-logo {
        max-width: 280px;
        max-height: 120px;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .cd-title-logo {
        max-width: 220px;
        max-height: 90px;
    }
}

/* ============================================
   FORCE INTER FONT GLOBALLY (every page, every element)
   ============================================ */
   *,
   *::before,
   *::after,
   html,
   body,
   input,
   button,
   textarea,
   select,
   h1, h2, h3, h4, h5, h6,
   p, span, div, a, li,
   .cd-title,
   .ch-title,
   .watch-title-block h1,
   .movie-title,
   .ls-title {
       font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
   }


.sv-toast-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.sv-toast-main {
    display: block;
    font-weight: 700;
}
.sv-toast-sub {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.65);
    font-weight: 500;
    margin-top: 2px;
}

/* ===== MOBILE — SMALLER DETAIL PAGE EPISODE CARDS ===== */
@media (max-width: 768px) {
    .cd-ep-card {
        gap: 10px !important;
        padding: 8px !important;
    }
    .cd-ep-thumb {
        width: 110px !important;
        min-width: 110px !important;
        height: 64px !important;
    }
    .cd-ep-thumb .cd-ep-num {
        font-size: 9px !important;
        padding: 2px 6px !important;
    }
    .cd-ep-thumb .cd-ep-current-badge {
        font-size: 8px !important;
        padding: 2px 5px !important;
    }
    .cd-ep-title {
        font-size: 13px !important;
        line-height: 1.25 !important;
        margin-bottom: 3px !important;
    }
    .cd-ep-no {
        font-size: 12px !important;
    }
    .cd-ep-overview {
        font-size: 11px !important;
        line-height: 1.35 !important;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .cd-ep-meta {
        font-size: 10px !important;
        margin-top: 3px !important;
    }
    .cd-ep-play-icon {
        width: 32px !important;
        height: 32px !important;
    }
    .cd-ep-play-icon svg {
        width: 14px !important;
        height: 14px !important;
    }
}

@media (max-width: 480px) {
    .cd-ep-card {
        padding: 6px !important;
    }
    .cd-ep-thumb {
        width: 90px !important;
        min-width: 90px !important;
        height: 54px !important;
    }
    .cd-ep-title {
        font-size: 12px !important;
    }
    .cd-ep-overview {
        font-size: 10px !important;
        -webkit-line-clamp: 2;
    }
}

/* ============================================ */
/* HOMEPAGE ROW REMOVE (X) BUTTON              */
/* ============================================ */
.hr-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
    padding: 0;
}

/* Show on hover for desktop */
.continue-card:hover .hr-remove-btn,
.movie-card:hover .hr-remove-btn {
    opacity: 1;
}

.hr-remove-btn:hover {
    background: #e50914;
    border-color: #e50914;
    transform: scale(1.1);
}

.hr-remove-btn:active {
    transform: scale(0.95);
}

/* Always visible on mobile (no hover on touch) */
@media (max-width: 768px) {
    .hr-remove-btn {
        opacity: 0.9;
        width: 26px;
        height: 26px;
    }
    .hr-remove-btn svg {
        width: 12px;
        height: 12px;
    }
}

/* ═══════════════════════════════════════════════════
   HOMEPAGE ANNOUNCEMENT MODAL — Clean, Sharp, No-Scroll
   ═══════════════════════════════════════════════════ */

.sv-ann-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.sv-ann-backdrop.show {
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 1;
}

.sv-ann-modal {
    position: relative;
    max-width: 440px;
    width: 100%;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 24px 20px 18px;
    color: #fff;
    transform: scale(0.97) translateY(8px);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
    overflow: hidden; /* Guaranteed no scrollbar */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.sv-ann-backdrop.show .sv-ann-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Sharp Red Accent Bar */
.sv-ann-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #e50914;
}

/* Close Button */
.sv-ann-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s, color 0.15s;
    z-index: 2;
}
.sv-ann-close:hover {
    background: #e50914;
    border-color: #e50914;
    color: #fff;
}

/* Header */
.sv-ann-header {
    text-align: center;
    margin-bottom: 12px;
}

.sv-ann-badge {
    display: inline-block;
    background: rgba(229, 9, 20, 0.12);
    color: #e50914;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(229, 9, 20, 0.25);
    margin-bottom: 8px;
}

.sv-ann-header h2 {
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
    color: #fff;
    line-height: 1.25;
}

.sv-ann-sub {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.45;
    margin: 0;
}

/* Gold Member Card */
.sv-ann-gold-card {
    background: rgba(251, 191, 36, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 8px;
    padding: 12px 14px;
    margin: 12px 0 10px;
}

.sv-ann-gold-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(251, 191, 36, 0.15);
}

.sv-ann-gold-badge-icon {
    width: 32px;
    height: 32px;
    background: #fbbf24;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #121212;
    flex-shrink: 0;
}

.sv-ann-gold-title {
    font-size: 12.5px;
    font-weight: 800;
    color: #fbbf24;
    margin-bottom: 1px;
}

.sv-ann-gold-price {
    font-size: 17px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.sv-ann-gold-price span {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 2px;
}

.sv-ann-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sv-ann-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.25;
}

.sv-ann-feat-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 800;
}

/* Footer & Signature */
.sv-ann-footer-note {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
    text-align: center;
    margin: 0 0 4px;
}

.sv-ann-signature {
    font-size: 10.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    margin-bottom: 12px;
}

/* CTA Button */
.sv-ann-cta {
    width: 100%;
    background: #e50914;
    color: #fff;
    border: none;
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.sv-ann-cta:hover {
    background: #f6121d;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .sv-ann-backdrop {
        padding: 10px;
    }
    .sv-ann-modal {
        padding: 20px 14px 14px;
        border-radius: 10px;
    }
    .sv-ann-header h2 {
        font-size: 15px;
    }
    .sv-ann-sub {
        font-size: 11px;
    }
    .sv-ann-gold-card {
        padding: 10px 12px;
        margin: 10px 0 8px;
    }
    .sv-ann-features li {
        font-size: 11px;
        gap: 6px;
    }
    .sv-ann-cta {
        padding: 10px 14px;
        font-size: 12.5px;
    }
}

/* ═══════════════════════════════════════════════════
   GOLD PROMO POPUP — Clean, Responsive, Professional
   ═══════════════════════════════════════════════════ */
.sv-gp-backdrop {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px);
    z-index: 999999;
    display: flex; align-items: center; justify-content: center;
    padding: 16px; opacity: 0;
    transition: opacity 0.25s ease, background 0.25s ease;
}
.sv-gp-backdrop.show {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    opacity: 1;
}
.sv-gp-modal {
    position: relative; max-width: 460px; width: 100%;
    background: #121212; border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px; padding: 28px 24px 22px; color: #fff;
    transform: scale(0.96) translateY(10px); opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
    overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.8);
}
.sv-gp-backdrop.show .sv-gp-modal { transform: scale(1) translateY(0); opacity: 1; }
.sv-gp-modal::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: #e50914; }
.sv-gp-close {
    position: absolute; top: 12px; right: 12px; width: 30px; height: 30px;
    background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7); border-radius: 50%; display: flex;
    align-items: center; justify-content: center; cursor: pointer; padding: 0;
    transition: background 0.15s, color 0.15s;
}
.sv-gp-close:hover { background: #e50914; color: #fff; }
.sv-gp-header { text-align: center; margin-bottom: 16px; }
.sv-gp-tag {
    display: inline-block; background: rgba(229, 9, 20, 0.12); color: #e50914;
    padding: 3px 10px; border-radius: 4px; font-size: 10px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px; border: 1px solid rgba(229, 9, 20, 0.25); margin-bottom: 8px;
}
.sv-gp-header h2 { font-size: 20px; font-weight: 900; margin: 0 0 6px; color: #fff; }
.sv-gp-header p { font-size: 12.5px; color: rgba(255, 255, 255, 0.65); line-height: 1.45; margin: 0; }
.sv-gp-card {
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px; padding: 14px 16px; margin: 16px 0 18px;
}
.sv-gp-price-row { display: flex; align-items: baseline; gap: 4px; justify-content: center; margin-bottom: 12px; }
.sv-gp-amount { font-size: 28px; font-weight: 900; color: #fff; }
.sv-gp-period { font-size: 13px; color: rgba(255, 255, 255, 0.5); font-weight: 600; }
.sv-gp-benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sv-gp-benefits li { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: rgba(255, 255, 255, 0.85); }
.sv-gp-check {
    width: 16px; height: 16px; border-radius: 50%; background: rgba(16, 185, 129, 0.15);
    color: #10b981; display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 900; flex-shrink: 0; margin-top: 2px;
}
.sv-gp-benefits strong { color: #fff; display: block; font-size: 12.5px; }
.sv-gp-benefits p { margin: 0; font-size: 11px; color: rgba(255, 255, 255, 0.5); }
.sv-gp-btn-purchase {
    display: block; width: 100%; background: #e50914; color: #fff; text-decoration: none;
    text-align: center; padding: 13px 20px; border-radius: 8px; font-size: 14px; font-weight: 800;
    transition: background 0.15s;
}
.sv-gp-btn-purchase:hover { background: #c40812; }

/* ============================================ */
/* OTP INPUTS OVERRIDE FIX                      */
/* ============================================ */
body.auth-body .otp-boxes {
    display: flex !important;
    gap: 10px !important;
    justify-content: center !important;
    margin: 24px 0 !important;
    width: 100% !important;
}

body.auth-body .otp-boxes .otp-digit {
    width: 48px !important;
    height: 58px !important;
    display: inline-block !important;
    text-align: center !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    outline: none !important;
    box-sizing: border-box !important;
    line-height: 56px !important;
}

body.auth-body .otp-boxes .otp-digit:focus {
    border-color: #e50914 !important;
    background: rgba(229, 9, 20, 0.2) !important;
    box-shadow: 0 0 12px rgba(229, 9, 20, 0.5) !important;
}

@media (max-width: 480px) {
    body.auth-body .otp-boxes .otp-digit {
        width: 40px !important;
        height: 50px !important;
        font-size: 20px !important;
        line-height: 48px !important;
    }
    body.auth-body .otp-boxes {
        gap: 6px !important;
    }
}

/* ============================================ */
/* FIX: INVISIBLE SEARCH TEXT ON SMART TVS      */
/* ============================================ */

/* 1. Force white text & visible cursor on all search inputs */
#searchInput,
#liveSearch,
.search-form-large input,
.big-search input,
.search-form input {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #e50914 !important; /* Bright red typing cursor */
    opacity: 1 !important;
}

/* 2. TV Virtual Keyboard Active State & Background Fix */
body.tv-mode #searchInput,
body.tv-mode #liveSearch,
body.tv-mode .search-form-large input,
body.tv-mode .big-search input,
body.tv-mode .search-form input,
.search-form-large input:focus,
.big-search input:focus {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.12) !important;
    border-radius: 6px !important;
    padding-left: 12px !important;
}

/* 3. Placeholder Text Visibility */
#searchInput::placeholder,
#liveSearch::placeholder,
.search-form-large input::placeholder,
.big-search input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.5) !important;
}

/* 4. Fix TV OS Browser Autofill/Composition buffer */
#searchInput:-webkit-autofill,
#liveSearch:-webkit-autofill,
.search-form-large input:-webkit-autofill,
.big-search input:-webkit-autofill {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px #181818 inset !important;
    transition: background-color 5000s ease-in-out 0s !important;
}