* { 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: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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);
}
/* ============================================ */
/* 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;
}

/* ============================================ */
/* MOBILE BOTTOM NAVIGATION */
/* ============================================ */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: rgba(10,10,10,0.97);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--border);
        z-index: 999;
        padding: 0 8px;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
    }
    .mb-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: rgba(255,255,255,0.55);
        text-decoration: none;
        font-size: 10px;
        font-weight: 600;
        transition: color 0.2s;
        padding: 6px 0;
    }
    .mb-nav-item.active {
        color: var(--accent);
    }
    .mb-nav-item.active svg {
        color: var(--accent);
    }
    .mb-nav-item:hover {
        color: #fff;
    }
    .mb-nav-avatar {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid transparent;
    }
    .mb-nav-item.active .mb-nav-avatar {
        border-color: var(--accent);
    }

    /* Add bottom padding to body so content not hidden */
    body {
        padding-bottom: 64px;
    }
    .netflix-player-body {
        padding-bottom: 0;
    }
    .mobile-bottom-nav {
        display: flex;
    }
    body.netflix-player-body .mobile-bottom-nav {
        display: none;
    }

    /* Hide profile menu wrapper on mobile (use bottom nav instead) */
    .profile-menu-wrapper {
        display: none;
    }
}

/* ============================================ */
/* 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 — BG IMAGE + TAGLINE BANNER */
/* ============================================ */
.auth-bg-login {
    background-image: url('/static/images/login-bg.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    filter: brightness(0.4) blur(2px);
}

.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; }
}