/* VYOU — Wave 1 stylesheet. Dark theme, violet accent (#a855f7). */

:root {
    --vy-primary:  #a855f7;
    --vy-primary-20: rgba(168, 85, 247, 0.2);
    --vy-primary-10: rgba(168, 85, 247, 0.1);
    --vy-bg: #0a0a0a;
    --vy-bg-elev: #111827;
    --vy-bg-raised: #0f172a;
    --vy-border: #1f2937;
    --vy-text: #e5e7eb;
    --vy-muted: #9ca3af;
    --vy-dim: #6b7280;
    --vy-danger: #ef4444;
    --vy-warn: #f59e0b;
    --vy-ok: #10b981;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--vy-bg); color: var(--vy-text); }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--vy-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Buttons ── */
.vy-btn {
    display: inline-block;
    background: var(--vy-primary);
    color: #000;
    border: none;
    padding: 10px 18px;
    font-family: monospace;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
    transition: opacity .15s, background .15s;
}
.vy-btn:hover { opacity: 0.88; text-decoration: none; }
.vy-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.vy-btn-primary { background: var(--vy-primary); color: #000; }
.vy-btn-ghost { background: transparent; border: 1px solid var(--vy-border); color: var(--vy-text); }
.vy-btn-ghost:hover { border-color: var(--vy-primary); color: var(--vy-primary); opacity: 1; }
.vy-btn-danger { background: var(--vy-danger); color: #fff; }
.vy-btn-wide { width: 100%; margin-top: 8px; }
.vy-btn-tv { background: #f59e0b; color: #000; font-size: 12px; padding: 8px 16px; border-radius: 6px; white-space: nowrap; }
.vy-nav-link-btn {
    background: transparent; border: 0; color: var(--vy-muted);
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; cursor: pointer; font-family: inherit;
}
.vy-nav-link-btn:hover { color: #fff; }

/* ── Brand + nav ── */
.vy-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.vy-brand-mark { display: block; flex-shrink: 0; }
.vy-brand-title { font-size: 28px; font-weight: 900; letter-spacing: -0.02em; text-transform: uppercase; font-style: italic; margin: 0; line-height: 1; }
.vy-brand-slash { color: rgba(255,255,255,0.25); font-weight: 300; font-style: normal; }
.vy-brand-sub { color: var(--vy-primary); }
.vy-brand span {
    display: inline-block;
    padding: 4px 10px;
    background: var(--vy-primary);
    color: #000;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    font-size: 18px;
}
.vy-nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 28px;
    border-bottom: 1px solid var(--vy-border);
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 30;
}
.vy-nav-links { display: flex; gap: 18px; align-items: center; font-family: monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; }
.vy-nav-links a { color: var(--vy-muted); }
.vy-nav-links a:hover { color: #fff; text-decoration: none; }
.vy-chip { padding: 4px 10px; border-radius: 999px; background: var(--vy-primary-10); color: var(--vy-primary); font-size: 10px; letter-spacing: 0.15em; }

/* ── Landing ── */
.vy-landing { min-height: 100vh; }
.vy-landing .vy-hero { padding: 90px 28px 40px; text-align: center; }
.vy-hero-inner { max-width: 900px; margin: 0 auto; }
.vy-tag {
    display: inline-block;
    padding: 4px 14px;
    border: 1px solid var(--vy-primary-20);
    border-radius: 999px;
    color: var(--vy-primary);
    font-family: monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    margin-bottom: 28px;
    background: var(--vy-primary-10);
}
.vy-h1 {
    font-size: clamp(56px, 14vw, 140px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.9;
    text-transform: uppercase;
    font-style: italic;
    margin: 0 0 28px;
}
.vy-accent { color: var(--vy-primary); }
.vy-strike { text-decoration: line-through; opacity: 0.55; color: var(--vy-muted); }
.vy-lede { font-family: monospace; font-size: 15px; text-transform: uppercase; letter-spacing: 0.35em; color: var(--vy-muted); line-height: 1.8; margin: 0 0 18px; }
.vy-lede-strong { color: #fff; font-weight: bold; font-style: italic; }
.vy-subcopy { max-width: 640px; margin: 0 auto 40px; font-family: monospace; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--vy-dim); line-height: 1.8; }
.vy-cta-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.vy-cta-row .vy-btn { padding: 18px 36px; font-size: 12px; letter-spacing: 0.3em; }
.vy-chips { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; font-family: monospace; font-size: 10px; letter-spacing: 0.3em; color: var(--vy-dim); text-transform: uppercase; }

.vy-section { padding: 70px 28px; max-width: 1100px; margin: 0 auto; }
.vy-h2 { font-size: clamp(22px, 4vw, 36px); font-weight: 700; letter-spacing: -0.02em; text-align: center; margin: 0 0 10px; }
.vy-sub { font-family: monospace; font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--vy-dim); text-align: center; margin: 0 0 40px; }
.vy-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.vy-card { padding: 20px; background: var(--vy-bg); border: 1px solid var(--vy-border); border-radius: 6px; }
.vy-card-accent { border: 2px solid var(--vy-primary); background: var(--vy-primary-10); }
.vy-card .vy-num { font-family: monospace; font-size: 30px; font-weight: 900; color: var(--vy-primary-20); margin-bottom: 14px; }
.vy-card h3 { margin: 0 0 10px; text-transform: uppercase; letter-spacing: -0.01em; font-weight: 900; font-size: 16px; }
.vy-card p { margin: 0; font-family: monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--vy-dim); line-height: 1.7; }

.vy-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.vy-table th { text-align: left; background: rgba(255,255,255,0.04); padding: 14px 12px; font-family: monospace; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--vy-dim); border-bottom: 1px solid var(--vy-border); }
.vy-table td { padding: 14px 12px; border-bottom: 1px solid var(--vy-border); vertical-align: top; }
.vy-table tr:hover td { background: var(--vy-bg-raised); }

.vy-cta { text-align: center; }

.vy-footer { background: var(--vy-primary); color: #000; padding: 60px 28px; margin-top: 80px; }
.vy-footer-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.vy-footer .vy-brand span { background: #000; color: #fff; }
.vy-footer p { font-family: monospace; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; margin: 14px 0 0; opacity: 0.7; }

/* ── Auth pages ── */
.vy-auth-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.vy-auth-card {
    width: 100%; max-width: 420px;
    padding: 32px;
    background: var(--vy-bg-elev);
    border: 1px solid var(--vy-border);
    border-radius: 8px;
}
.vy-auth-card .vy-brand { margin-bottom: 24px; }
.vy-auth-card h1 { text-align: left; margin: 8px 0 16px; }
.vy-label { display: block; font-family: monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--vy-muted); margin: 16px 0 6px; }
.vy-input { width: 100%; background: var(--vy-bg); border: 1px solid var(--vy-border); color: #fff; padding: 10px 12px; font-family: monospace; font-size: 13px; border-radius: 4px; }
.vy-input:focus { outline: none; border-color: var(--vy-primary); }
.vy-error { padding: 10px 12px; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: var(--vy-danger); font-family: monospace; font-size: 12px; border-radius: 4px; margin-bottom: 8px; }
.vy-center { text-align: center; }
@media (max-width: 768px) {
    .vy-auth-card { padding: 24px 20px; }
    .vy-input { padding: 14px 12px; font-size: 16px; }
    .vy-auth-card .vy-btn { min-height: 48px; font-size: 12px; }
}

/* ── Admin dashboard ── */
.vy-shell { max-width: 1600px; margin: 0 auto; padding: 0; }
.vy-pane { background: transparent; border: none; border-radius: 0; padding: 0; }

/* ── Topbar ── */
.vy-topbar {
    display: flex; align-items: center; gap: 0;
    height: 56px; padding: 0 20px;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    position: sticky; top: 0; z-index: 100;
}
.vy-topbar-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; margin-right: 32px; }
.vy-topbar-wordmark { height: 26px; width: auto; display: block; }
.vy-topbar-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.vy-topnav-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 6px;
    font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
    color: rgba(255,255,255,0.55);
    background: transparent; border: 0; cursor: pointer;
    transition: color .15s, background .15s;
    text-decoration: none; white-space: nowrap;
}
.vy-topnav-btn:hover { color: #fff; background: rgba(255,255,255,0.07); text-decoration: none; }
.vy-topnav-btn.active { color: #fff; background: rgba(255,255,255,0.1); }
.vy-topnav-tv { color: #D97706; }
.vy-topnav-tv:hover { color: #F59E0B; background: rgba(217,119,6,0.1); }
.vy-topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.vy-topbar-status { display: flex; align-items: center; gap: 6px; margin-right: 4px; }
.vy-status-pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 8px; border-radius: 4px;
    font-family: monospace; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.4);
}
.vy-status-pill.ok .vy-status-dot { background: #10b981; box-shadow: 0 0 6px #10b981; }
.vy-status-pill.err .vy-status-dot { background: #ef4444; box-shadow: 0 0 6px #ef4444; }
.vy-status-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.2); flex-shrink: 0; }
.vy-topbar-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 8px;
    background: transparent; border: 0; cursor: pointer;
    color: rgba(255,255,255,0.5); transition: color .15s, background .15s;
}
.vy-topbar-icon-btn:hover, .vy-topbar-icon-btn.active { color: #fff; background: rgba(255,255,255,0.1); }
.vy-topbar-user-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 10px 4px 4px; border-radius: 20px;
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer; color: rgba(255,255,255,0.75); font-size: 13px; font-weight: 600;
    transition: background .15s, color .15s;
}
.vy-topbar-user-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.vy-user-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--vy-primary); color: #000;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 900; flex-shrink: 0;
}
.vy-user-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vy-mobile-only { display: none; }
.vy-tab-menu-section {
    padding: 6px 12px 4px; font-family: monospace; font-size: 9px;
    text-transform: uppercase; letter-spacing: 0.2em; color: rgba(255,255,255,0.25);
    border-top: 1px solid rgba(255,255,255,0.06); margin-top: 2px;
}
.vy-tab-menu-section:first-child { border-top: none; margin-top: 0; }
.vy-tab-menu-overseer { color: #a855f7 !important; }
.vy-user-menu { right: 0; left: auto; min-width: 220px; max-height: 85vh; overflow-y: auto; }
.vy-menu-nav-item { display: flex; align-items: center; gap: 9px; }
.vy-menu-nav-item svg { flex-shrink: 0; opacity: 0.7; }
.vy-profile-item { display: flex; align-items: center; gap: 9px; }
.vy-menu-signout { color: #ef4444 !important; }

/* Old vy-tabs — keep for backward compat with non-dashboard pages */
.vy-admin .vy-header { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--vy-border); margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.vy-admin .vy-header h1 { font-size: 28px; font-weight: 900; letter-spacing: -0.02em; text-transform: uppercase; font-style: italic; margin: 0; }
.vy-admin .vy-header h1 span { color: var(--vy-primary); }
.vy-mono { font-family: monospace; font-size: 12px; color: var(--vy-muted); }
.vy-small { font-size: 11px; }
.vy-err-inline { color: var(--vy-danger); font-family: monospace; font-size: 12px; }
.vy-status { display: flex; align-items: center; gap: 8px; font-family: monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; flex-wrap: wrap; }
.vy-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vy-dim); }
.vy-dot.ok { background: var(--vy-ok); box-shadow: 0 0 8px var(--vy-ok); }
.vy-dot.bad { background: var(--vy-danger); box-shadow: 0 0 8px var(--vy-danger); }
.vy-sep { color: var(--vy-border); }
.vy-tabs { display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 1px solid var(--vy-border); flex-wrap: wrap; }
.vy-tab { padding: 10px 18px; font-family: monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--vy-muted); cursor: pointer; border: 0; border-bottom: 2px solid transparent; background: transparent; transition: all .15s; }
.vy-tab:hover { color: #fff; }
.vy-tab.active { color: var(--vy-primary); border-bottom-color: var(--vy-primary); }
.vy-shows-section-btn { padding: 9px 16px; font-family: monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 700; color: var(--vy-muted); cursor: pointer; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); border-radius: 6px; transition: all .15s; display: inline-flex; align-items: center; gap: 8px; }
.vy-shows-section-btn:hover { color: #fff; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.24); }
.vy-shows-section-btn.active { color: #fff; background: var(--vy-primary); border-color: var(--vy-primary); }

/* Section tab strip (library sub-nav) */
.vy-section-tab {
    flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 12px 16px;
    font-size: 14px; font-weight: 600;
    color: var(--vy-muted);
    background: transparent; border: 0;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.vy-section-tab:hover { color: #fff; }
.vy-section-tab.active { color: #fff; border-bottom-color: var(--vy-primary); }
.vy-section-tab-count {
    font-size: 11px; font-weight: 500;
    color: var(--vy-dim);
    background: rgba(255,255,255,0.06);
    padding: 1px 6px; border-radius: 999px;
    transition: color .15s, background .15s;
}
.vy-section-tab.active .vy-section-tab-count { color: var(--vy-primary); background: rgba(168,85,247,0.15); }
.vy-shows-count { font-size: 10px; opacity: 0.85; background: rgba(0,0,0,0.28); padding: 2px 8px; border-radius: 10px; font-weight: 700; }
.vy-shows-section-btn.active .vy-shows-count { background: rgba(0,0,0,0.35); opacity: 1; }
.vy-tile-menu-btn { position: absolute; top: 6px; right: 6px; z-index: 5; width: 26px; height: 26px; border-radius: 999px; background: rgba(0,0,0,0.55); color: #fff; border: 0; display: none; align-items: center; justify-content: center; cursor: pointer; padding: 0; font-size: 14px; line-height: 1; }
.vy-tile:hover .vy-tile-menu-btn, .vy-tile-menu-btn.open { display: inline-flex; }
.vy-tile-menu-btn:hover { background: rgba(0,0,0,0.8); }
.vy-tile-menu { position: absolute; top: 32px; right: 6px; z-index: 20; min-width: 180px; background: #12141a; border: 1px solid rgba(255,255,255,0.08); border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); padding: 4px 0; font-family: monospace; font-size: 11px; }
.vy-tile-menu button { display: block; width: 100%; text-align: left; padding: 7px 12px; background: transparent; color: #e5e7eb; border: 0; cursor: pointer; font: inherit; text-transform: none; letter-spacing: 0; }
.vy-tile-menu button:hover { background: rgba(255,255,255,0.06); color: #fff; }
.vy-tile-menu button.danger:hover { background: rgba(220,38,38,0.15); color: #fca5a5; }
/* .vy-pane legacy admin rule removed — dashboard pane is transparent, zero-padded (see line 167) */
.vy-section-title { font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.15em; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--vy-border); }
.vy-spacer { height: 16px; }
.vy-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vy-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.vy-grid { display: grid; gap: 16px; }
.vy-grid-stats { grid-template-columns: repeat(4, 1fr); }
.vy-stat { padding: 18px; background: var(--vy-bg); border: 1px solid var(--vy-border); border-radius: 6px; }
.vy-stat-label { font-family: monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--vy-dim); margin-bottom: 6px; }
.vy-stat-val { font-size: 32px; font-weight: 900; color: var(--vy-primary); font-feature-settings: "tnum"; }
.vy-dump { white-space: pre-wrap; font-size: 11px; background: var(--vy-bg); padding: 10px; border: 1px solid var(--vy-border); border-radius: 4px; margin: 8px 0; max-height: 240px; overflow: auto; }
.vy-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-family: monospace; text-transform: uppercase; letter-spacing: 0.1em; }
.vy-pill.ok { background: rgba(16,185,129,0.15); color: var(--vy-ok); }
.vy-pill.warn { background: rgba(245,158,11,0.15); color: var(--vy-warn); }
.vy-pill.bad { background: rgba(239,68,68,0.15); color: var(--vy-danger); }
.vy-pill.info { background: var(--vy-primary-10); color: var(--vy-primary); }
.vy-empty { text-align: center; padding: 40px; color: var(--vy-dim); font-family: monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; }
.vy-mb { margin-bottom: 12px; }
.vy-actions { display: flex; gap: 6px; }
.vy-actions .vy-btn { padding: 4px 10px; font-size: 9px; }

/* Poster grid */
.vy-poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.vy-poster { background: var(--vy-bg); border: 1px solid var(--vy-border); border-radius: 6px; overflow: hidden; cursor: pointer; transition: border-color .15s, transform .15s; }
.vy-poster:hover { border-color: var(--vy-primary); transform: translateY(-2px); }
.vy-poster-imgwrap { position: relative; }
.vy-poster img { display: block; width: 100%; aspect-ratio: 2/3; object-fit: cover; background: var(--vy-border); }
.vy-poster-meta { padding: 10px; }
.vy-poster-title { font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vy-poster-sub { font-family: monospace; font-size: 10px; color: var(--vy-dim); text-transform: uppercase; letter-spacing: 0.1em; }
.vy-poster-badge { position: absolute; top: 6px; right: 6px; }

.vy-item-poster { width: 100%; max-width: 280px; aspect-ratio: 2/3; object-fit: cover; background: var(--vy-border); border: 1px solid var(--vy-border); border-radius: 6px; }
.vy-overview { font-size: 13px; color: var(--vy-text); line-height: 1.6; }
.vy-edition-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }

/* Toasts */
.vy-toast-stack { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 8px; z-index: 9999; }
.vy-toast { padding: 12px 18px; background: var(--vy-bg-elev); border-left: 3px solid var(--vy-primary); color: #fff; font-family: monospace; font-size: 12px; min-width: 280px; max-width: 400px; box-shadow: 0 4px 16px rgba(0,0,0,0.4); animation: vySlide .2s ease-out; border-radius: 3px; }
.vy-toast-error { border-left-color: var(--vy-danger); }
.vy-toast-success { border-left-color: var(--vy-ok); }
@keyframes vySlide { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Player */
.vy-player-body { background: #000; color: var(--vy-text); }
.vy-player-shell { min-height: 100vh; display: flex; flex-direction: column; }
.vy-player-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; background: rgba(0,0,0,0.85); border-bottom: 1px solid var(--vy-border); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); gap: 12px; }
.vy-player-bar-center { text-align: center; flex: 1; }
.vy-player-title { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.vy-player-sub { font-family: -apple-system, sans-serif; font-size: 12px; color: var(--vy-muted); }
.vy-player-back { color: var(--vy-muted); font-family: monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; }
.vy-player-back:hover { color: var(--vy-primary); text-decoration: none; }
.vy-video-wrap { flex: 1; display: flex; align-items: center; justify-content: center; background: #000; padding: 12px; }
.vy-video-wrap video { width: 100%; max-width: 1280px; max-height: calc(100vh - 140px); background: #000; }
.vy-player-footer { padding: 12px 24px; font-family: monospace; font-size: 11px; color: var(--vy-dim); display: flex; gap: 20px; justify-content: space-between; border-top: 1px solid var(--vy-border); flex-wrap: wrap; }

@media (max-width: 960px) {
    .vy-grid-4, .vy-grid-stats { grid-template-columns: repeat(2, 1fr); }
    .vy-row, .vy-row-3 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .vy-grid-4, .vy-grid-stats { grid-template-columns: 1fr; }
    .vy-nav-links a { display: none; }
    .vy-nav-links a.vy-btn { display: inline-block; }
}

/* ── Mobile-first dashboard ── */
@media (max-width: 768px) {
    .vy-shell { padding: 0; }
    .vy-admin .vy-header { flex-direction: column; gap: 8px; padding-bottom: 12px; margin-bottom: 12px; }
    .vy-admin .vy-header h1 { font-size: 18px; }
    .vy-status { font-size: 10px; gap: 6px; }
    .vy-tabs {
        flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
        scrollbar-width: none; gap: 0; padding-bottom: 1px;
    }
    .vy-tabs::-webkit-scrollbar { display: none; }
    .vy-tab { white-space: nowrap; padding: 10px 12px; font-size: 10px; letter-spacing: 0.1em; flex-shrink: 0; }
    .vy-pane { padding: 14px; }
    .vy-section-title { font-size: 12px; }
    .vy-poster-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
    .vy-stat-val { font-size: 24px; }
    .vy-grid-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .vy-stat { padding: 12px; }
    .vy-row, .vy-row-3 { grid-template-columns: 1fr; }
    .vy-dump { font-size: 10px; max-height: 160px; }
    .vy-toast-stack { bottom: calc(64px + 12px + env(safe-area-inset-bottom, 0px)); right: 12px; left: 12px; }
    .vy-toast { min-width: unset; max-width: unset; font-size: 11px; }
    .vy-item-poster { max-width: 180px; }
    .vy-edition-row { flex-direction: column; align-items: flex-start; gap: 6px; }
    .vy-actions { flex-wrap: wrap; }
    .vy-btn { padding: 10px 14px; font-size: 11px; min-height: 44px; }
}

/* ── Mobile TV channel player ── */
@media (max-width: 768px) {
    .vy-tv-guide-btn { top: 12px; right: 12px; padding: 10px 14px; min-height: 44px; min-width: 44px; font-size: 10px; }
    .vy-tv-crt-btn { top: 12px; right: 80px; min-height: 44px; min-width: 44px; font-size: 10px; }

    .vy-tv-bug { bottom: 12px; right: 12px; max-width: 260px; padding: 8px 10px 8px 8px; }
    .vy-tv-bug-num { font-size: 18px; min-width: 30px; padding: 3px 5px; }
    .vy-tv-bug-name { font-size: 10px; }
    .vy-tv-bug-program { font-size: 9px; }

    .vy-tv-banner { left: 10px; right: 10px; bottom: 10px; padding: 12px 14px; }
    .vy-tv-banner-num { font-size: 28px; }
    .vy-tv-banner-channel-name { font-size: 14px; }
    .vy-tv-banner-clock { font-size: 22px; }
    .vy-tv-banner-main { grid-template-columns: 1fr; gap: 10px; }
    .vy-tv-banner-title { font-size: 14px; }
    .vy-tv-banner-bottom { display: none; }

    .vy-tv-guide-drawer { height: 70vh; max-height: none; }
    .vy-tv-guide-item { grid-template-columns: 50px 1fr; gap: 10px; padding: 12px 10px; }
    .vy-tv-guide-item-meta { display: none; }
    .vy-tv-guide-item-num { font-size: 18px; }
    .vy-tv-guide-item-name { font-size: 13px; }
    .vy-tv-guide-item-now { font-size: 11px; }
    .vy-tv-guide-hint { display: none; }
}

/* ── Mobile TV guide listing ── */
@media (max-width: 768px) {
    .vy-tv-header { padding: 8px 12px; flex-wrap: wrap; gap: 8px; }
    .vy-tv-clock { font-size: 20px; }
    .vy-tv-guide-label { font-size: 10px; letter-spacing: 0.2em; }
    .vy-tv-header-nav { gap: 10px; font-size: 10px; }
    .vy-tv-guide-shell { padding: 8px 8px 60px; }
    .vy-tv-guide-corner { flex: 0 0 100px; font-size: 9px; padding: 8px; }
    .vy-tv-guide-channel { flex: 0 0 100px; padding: 8px; }
    .vy-tv-guide-num { font-size: 20px; }
    .vy-tv-guide-name { font-size: 11px; }
    .vy-tv-guide-theme { display: none; }
    .vy-tv-cell-title { font-size: 11px; }
}

/* ── Mobile player ── */
@media (max-width: 768px) {
    .vy-player-bar { padding: 8px 12px; flex-wrap: wrap; gap: 6px; }
    .vy-player-title { font-size: 14px; }
    .vy-player-sub { font-size: 10px; }
    .vy-player-back { font-size: 10px; }
    .vy-video-wrap { padding: 0; }
    .vy-video-wrap video { max-height: calc(100vh - 100px); }
    .vy-player-footer { padding: 8px 12px; font-size: 10px; gap: 8px; }
}

/* ──────────────────────────────────────────────────────────────
   TV (Channels + EPG) — Wave 4 "90s cable" aesthetic
   ────────────────────────────────────────────────────────────── */
.vy-tv-body { background: #000; color: #e5e7eb; font-family: 'VT323', 'Courier New', monospace; }
.vy-tv-body .vy-brand span { background: #f59e0b; color: #000; }

.vy-tv-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 24px;
    background: #000;
    border-bottom: 2px solid #f59e0b;
    position: sticky; top: 0; z-index: 20;
}
.vy-tv-header-title { display: flex; gap: 18px; align-items: center; }
.vy-tv-clock {
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 28px; font-weight: bold; color: #f59e0b;
    letter-spacing: 0.1em;
    text-shadow: 0 0 4px rgba(245, 158, 11, 0.5);
}
.vy-tv-guide-label {
    font-family: monospace;
    font-size: 12px; text-transform: uppercase; letter-spacing: 0.4em;
    color: var(--vy-muted);
}
.vy-tv-header-nav { display: flex; gap: 16px; align-items: center; font-family: monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; }
.vy-tv-header-nav a { color: var(--vy-muted); }

.vy-tv-guide-shell { padding: 12px 24px 80px; }
.vy-tv-guide {
    background: #0a0a0a;
    border: 1px solid #1f2937;
    border-radius: 4px;
    overflow-x: auto;
    position: relative;
}
.vy-tv-guide-header-row { display: flex; border-bottom: 1px solid #1f2937; background: rgba(245,158,11,0.08); }
.vy-tv-guide-corner {
    flex: 0 0 180px;
    padding: 10px 12px;
    font-family: monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.3em;
    color: #f59e0b; border-right: 1px solid #1f2937;
}
.vy-tv-guide-timecols { flex: 1; display: flex; position: relative; }
.vy-tv-timecol {
    flex: 0 0 auto;
    padding: 10px 8px;
    font-family: monospace; font-size: 11px; color: var(--vy-muted);
    border-right: 1px solid #1f2937;
    text-transform: uppercase; letter-spacing: 0.15em;
}

.vy-tv-guide-row {
    display: flex; min-height: 64px; border-bottom: 1px solid #111827;
    position: relative;
}
.vy-tv-guide-row:hover { background: rgba(255,255,255,0.02); }
.vy-tv-guide-channel {
    flex: 0 0 180px;
    padding: 12px;
    border-right: 1px solid #1f2937; border-left: 3px solid var(--vy-primary);
    display: flex; gap: 12px; align-items: center;
    background: #0a0a0a;
}
.vy-tv-guide-num {
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 28px; font-weight: bold; min-width: 36px; text-align: right;
    line-height: 1;
}
.vy-tv-guide-name {
    font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; font-size: 13px;
}
.vy-tv-guide-theme {
    font-family: monospace; font-size: 10px; color: var(--vy-dim);
    text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    max-width: 130px;
}

.vy-tv-guide-strip { flex: 1; position: relative; min-height: 64px; }
.vy-tv-cell {
    position: absolute; top: 6px; bottom: 6px;
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 3px;
    padding: 6px 8px; overflow: hidden;
    text-decoration: none; color: #e5e7eb;
    transition: transform 0.08s, border-color 0.15s;
    cursor: pointer;
}
.vy-tv-cell:hover { transform: translateY(-1px); border-color: #f59e0b; text-decoration: none; }
.vy-tv-cell-now { background: rgba(245,158,11,0.08); border-color: #f59e0b; }
.vy-tv-cell-title {
    font-weight: bold; font-size: 12px; line-height: 1.2;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vy-tv-cell-meta {
    font-family: monospace; font-size: 10px; color: var(--vy-dim);
    margin-top: 2px;
}
.vy-tv-nowline {
    position: absolute; top: 40px; bottom: 0; width: 2px; background: #ef4444;
    pointer-events: none; z-index: 5;
    box-shadow: 0 0 4px rgba(239, 68, 68, 0.8);
}
.vy-tv-nowline::before {
    content: ''; position: absolute; top: -3px; left: -3px;
    width: 8px; height: 8px; border-radius: 50%; background: #ef4444;
}

/* ── Tuned-in channel player ── */
.vy-tv-tuned { margin: 0; background: #000; overflow: hidden; }
.vy-tv-tuned-shell {
    position: fixed; inset: 0;
    background: #000;
    display: flex; align-items: center; justify-content: center;
}
.vy-tv-tuned-shell video {
    width: 100%; height: 100%; object-fit: contain; background: #000;
}

/* Channel bug (persistent bottom-right) */
.vy-tv-bug {
    position: fixed; bottom: 20px; right: 20px; z-index: 10;
    background: rgba(0,0,0,0.7);
    border: 2px solid var(--vy-primary);
    display: flex; align-items: center; gap: 10px;
    padding: 6px 10px 6px 6px;
    font-family: monospace;
    max-width: 360px;
    backdrop-filter: blur(4px);
}
.vy-tv-bug-num {
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 22px; font-weight: bold; color: #000;
    min-width: 36px; text-align: center; padding: 4px 6px;
    line-height: 1;
}
.vy-tv-bug-text { flex: 1; overflow: hidden; }
.vy-tv-bug-name {
    font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.15em;
    color: #fff; line-height: 1;
}
.vy-tv-bug-program {
    font-size: 10px; color: var(--vy-muted); margin-top: 2px;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    text-transform: uppercase; letter-spacing: 0.1em;
}

/* Info banner (tune-in overlay + 'i' key) */
.vy-tv-banner {
    position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 9;
    background: rgba(0,0,0,0.85);
    border: 1px solid #1f2937;
    padding: 16px 20px;
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
    backdrop-filter: blur(6px);
}
.vy-tv-banner.vy-show { opacity: 1; transform: translateY(0); }
.vy-tv-banner-top {
    display: flex; align-items: baseline; gap: 16px;
    font-family: 'VT323', 'Courier New', monospace;
    margin-bottom: 12px;
}
.vy-tv-banner-num { font-size: 40px; font-weight: bold; line-height: 1; }
.vy-tv-banner-channel-name {
    font-size: 20px; font-weight: 900; color: #fff;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.vy-tv-banner-clock {
    margin-left: auto; font-family: 'VT323', monospace;
    font-size: 32px; color: var(--vy-muted); letter-spacing: 0.1em;
}
.vy-tv-banner-main {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 12px;
}
.vy-tv-banner-label {
    font-family: monospace; font-size: 10px;
    text-transform: uppercase; letter-spacing: 0.35em; color: var(--vy-dim);
    margin-bottom: 3px;
}
.vy-tv-banner-title {
    font-size: 16px; font-weight: bold; color: #fff;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vy-tv-progress {
    background: #1f2937; height: 4px; margin-bottom: 8px;
    overflow: hidden;
}
.vy-tv-progress-fill {
    background: var(--vy-primary); height: 100%; width: 0;
    transition: width 0.5s linear;
}
.vy-tv-banner-bottom {
    font-family: monospace; font-size: 10px; color: var(--vy-dim);
    text-transform: uppercase; letter-spacing: 0.2em;
}

/* CRT aesthetic — 3 levels: off, subtle, heavy.
   Canvas/div overlays work on desktop. On iOS Safari the video is a native OS
   layer above CSS — only body.crt-* video filter rules reach it there. */

/* Scanlines — phosphor shadow + green gap tint */
.vy-tv-scanlines {
    position: absolute; inset: 0; pointer-events: none; z-index: 4;
    opacity: 0; transition: opacity 0.3s ease;
}
.vy-tv-scanlines.crt-subtle {
    opacity: 1;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0,0,0,0.25) 0px, rgba(0,0,0,0.25) 1px,
        rgba(0,12,0,0.06) 1px, rgba(0,12,0,0.06) 2px,
        transparent 2px, transparent 4px
    );
}
.vy-tv-scanlines.crt-heavy {
    opacity: 1;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0,0,0,0.60) 0px, rgba(0,0,0,0.60) 1px,
        rgba(0,20,0,0.14) 1px, rgba(0,20,0,0.14) 2px,
        transparent 2px, transparent 4px
    );
    animation: crt-flicker 0.09s infinite;
}
@keyframes crt-flicker {
    0%   { opacity: 1;    }
    25%  { opacity: 0.90; }
    50%  { opacity: 0.97; }
    75%  { opacity: 0.85; }
    100% { opacity: 0.93; }
}

/* Vignette — curved-tube edge darkening */
.vy-tv-crt-vignette {
    position: absolute; inset: 0; pointer-events: none; z-index: 3;
    opacity: 0; transition: opacity 0.3s ease;
}
.vy-tv-crt-vignette.crt-subtle {
    opacity: 1;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.60) 100%);
}
.vy-tv-crt-vignette.crt-heavy {
    opacity: 1;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.82) 100%);
}

/* Grain canvas */
#vyCrtNoise {
    position: absolute; inset: 0; z-index: 5; pointer-events: none;
}

/* Rolling phosphor scan artifact — slow band drifting down */
#vyCrtScanBar {
    position: absolute; left: 0; right: 0; top: -140px;
    height: 140px; pointer-events: none; z-index: 5; opacity: 0;
    background: linear-gradient(to bottom,
        transparent,
        rgba(160,220,160,0.05) 30%,
        rgba(140,210,140,0.10) 50%,
        rgba(160,220,160,0.05) 70%,
        transparent);
}
body.crt-subtle #vyCrtScanBar {
    opacity: 1;
    animation: crt-scan-roll 10s linear infinite;
}
body.crt-heavy #vyCrtScanBar {
    opacity: 1;
    animation: crt-scan-roll 6s linear infinite;
    background: linear-gradient(to bottom,
        transparent,
        rgba(160,230,160,0.08) 25%,
        rgba(140,215,140,0.16) 50%,
        rgba(160,230,160,0.08) 75%,
        transparent);
}
@keyframes crt-scan-roll {
    from { top: -140px; }
    to   { top: 100%;   }
}

/* Phosphor + VHS color simulation (filter works on mobile too) */
body.crt-subtle video { filter: saturate(1.15) contrast(1.08) brightness(0.94) blur(0.3px); }
body.crt-heavy video  { filter: saturate(1.45) contrast(1.18) brightness(0.86) hue-rotate(4deg) blur(0.5px); }
body.crt-heavy .vy-tv-banner { text-shadow: 0 0 6px rgba(100,255,120,0.45); }

/* CRT toggle button */
.vy-tv-crt-btn {
    position: fixed; top: 16px; right: 90px; z-index: 100;
    font-family: ui-monospace, Menlo, monospace;
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em;
    color: rgba(255,255,255,0.6); background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 6px 14px; border-radius: 4px; cursor: pointer;
    transition: all 0.2s;
}
.vy-tv-crt-btn:hover { background: rgba(0,0,0,0.7); color: #fff; }
.vy-tv-crt-btn.active { color: #4ade80; border-color: rgba(74,222,128,0.4); }

/* ──────────────────────────────────────────────────────────────
   VYOU TWIST — cable-TV polish on the Plex-style browse.
   Targets: hero, rails, tiles, row headings.
   Tuned so it reads as "distinctive" without fighting readability.
   ────────────────────────────────────────────────────────────── */

/* Persistent faint scanline over the whole admin body — identity marker. */
body.vy-admin::after {
    content: '';
    position: fixed; inset: 0; pointer-events: none; z-index: 100;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0, transparent 3px,
        rgba(255,255,255,0.015) 3px, rgba(255,255,255,0.015) 4px
    );
    mix-blend-mode: overlay;
}

/* Hero — neon edge + violet underglow. The Ken-Burns pan is already wired
   via .animate-slow-pan on the <img>; this adds the signal-in-the-cable feel. */
.vy-hero {
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.8);
}
.vy-hero-content { z-index: 2; }

.vy-hero-title {
    text-shadow: 0 2px 16px rgba(0,0,0,0.9);
}

.vy-hero-meta {
    color: rgba(255,255,255,0.6);
}

/* Hero play pill */
.vy-pill-play {
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 12px 28px !important;
    transition: transform .15s, opacity .15s !important;
}
.vy-pill-play:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}
.vy-pill-info {
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
}

/* Row heading */
.vy-row-title {
    font-weight: 600 !important;
}

/* Tiles */
.vy-tile {
    position: relative;
    border: 1px solid rgba(255,255,255,0.04);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.vy-tile:hover {
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 12px 32px -8px rgba(0,0,0,0.6);
}

/* Active-tab accent — "NOW ON VYOU" cable-guide feel. */
.vy-tab.active {
    color: var(--vy-primary);
    border-bottom-color: var(--vy-primary);
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

/* Tab bar: media-first, ops under a "⚙ Tools" dropdown on the right. */
.vy-tabs { align-items: center; }
.vy-tabs-spacer { flex: 1; }
.vy-tabs-tools { position: relative; }
.vy-tab-menu-btn {
    background: transparent; border: 0;
    padding: 10px 14px;
    font-family: monospace; font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.2em;
    color: var(--vy-muted); cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}
.vy-tab-menu-btn:hover { color: #fff; }
.vy-tab-menu-btn.active { color: var(--vy-primary); border-bottom-color: var(--vy-primary); }
.vy-tab-menu {
    position: absolute; top: calc(100% + 4px); right: 0; z-index: 50;
    min-width: 180px;
    background: var(--vy-bg-elev);
    border: 1px solid var(--vy-border);
    border-radius: 6px;
    padding: 6px 0;
    box-shadow: 0 12px 40px -8px rgba(0,0,0,0.6);
    display: flex; flex-direction: column;
}
.vy-tab-menu-item {
    background: transparent; border: 0;
    padding: 10px 18px;
    font-family: monospace; font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.2em;
    color: var(--vy-muted);
    text-align: left; cursor: pointer;
    transition: background .1s, color .1s;
}
.vy-tab-menu-item:hover { background: rgba(255,255,255,0.04); color: #fff; }
.vy-tab-menu-item.active { color: var(--vy-primary); background: var(--vy-primary-10); }

/* Find tab — queue shortcut pills */
.vy-find-q-btn {
    padding: 5px 12px; border-radius: 999px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    font-family: ui-monospace, Menlo, monospace; font-size: 11px;
    color: rgba(255,255,255,0.7); cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.vy-find-q-btn:hover { background: var(--vy-primary-10); border-color: rgba(168,85,247,0.5); color: #fff; }
.vy-find-q-wanted {
    background: rgba(168,85,247,0.12); border-color: rgba(168,85,247,0.4);
    color: rgba(216,180,254,0.9);
}
.vy-find-q-wanted:hover { background: rgba(168,85,247,0.28); border-color: rgba(168,85,247,0.75); color: #fff; }

@media (max-width: 768px) {
    .vy-tab-menu { right: 8px; left: auto; min-width: 160px; }
    .vy-tab-menu-btn { padding: 10px 10px; letter-spacing: 0.1em; }
}

/* Landing H1 — chromatic aberration for the brand-italic headline. */
.vy-landing-h1 {
    text-shadow:
        -2px 0 rgba(168, 85, 247, 0.45),
        2px 0 rgba(245, 158, 11, 0.25),
        0 4px 24px rgba(0,0,0,0.8);
}

/* Mobile — tiles sized for thumb-scroll, rails snap cleanly. */
@media (max-width: 768px) {
    .vy-tile { width: 7.5rem !important; }
    .vy-row-inner { gap: 0.5rem !important; padding-left: 1rem; padding-right: 1rem; }
    .vy-row-heading { padding-left: 1rem; padding-right: 1rem; }
    .vy-hero-title { font-size: 1.75rem !important; line-height: 1.1 !important; }
    .vy-hero-overview { -webkit-line-clamp: 2; font-size: 0.8rem !important; }
    .vy-hero-content { padding: 1rem !important; padding-bottom: 1.5rem !important; }
    .vy-pill-play, .vy-pill-info {
        padding: 12px 18px !important;
        font-size: 11px !important;
        min-height: 44px;
    }
    /* Stronger tap affordance — larger hit area on tab strip. */
    .vy-tab { min-height: 44px; }
}

/* ── Mobile bottom nav + bottom sheet ──────────────────────────────── */

/* Hidden on desktop */
.vy-mobile-nav  { display: none; }
.vy-bottom-sheet { display: none; }
.vy-mobile-menu-btn { display: none; }

@media (max-width: 768px) {
    .vy-mob-hide { display: none !important; }
    .vy-mobile-only { display: inline-flex !important; }

    /* Topbar mobile adjustments */
    .vy-topbar { padding: 0 12px; height: 52px; }
    .vy-topbar-logo { margin-right: 0; }
    .vy-topbar-wordmark { height: 22px; }
    .vy-topbar-nav { display: none; }  /* replaced by bottom nav */
    .vy-topbar-actions { gap: 4px; }

    /* Hide the old desktop tab bar */
    .vy-tabs { display: none !important; }

    /* Body padding so content clears the fixed bottom nav */
    .vy-shell { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }

    /* ── Bottom nav ── */
    .vy-mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        background: rgba(10,10,10,0.97);
        backdrop-filter: blur(16px);
        border-top: 1px solid rgba(255,255,255,0.08);
        z-index: 800;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .vy-mobile-tab {
        flex: 1;
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: 3px; padding: 10px 4px 12px;
        min-height: 60px;
        background: transparent; border: 0;
        color: rgba(255,255,255,0.35); cursor: pointer;
        transition: color .15s;
        -webkit-tap-highlight-color: transparent;
    }
    .vy-mobile-tab svg { transition: color .15s; }
    .vy-mobile-tab:hover,
    .vy-mobile-tab.active { color: var(--vy-primary); }

    .vy-mobile-tab-label {
        font-family: -apple-system, system-ui, sans-serif;
        font-size: 10px; font-weight: 600;
        letter-spacing: 0.04em;
        line-height: 1;
    }

    /* ── Bottom sheet ── */
    .vy-bottom-sheet {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 900;
        pointer-events: none;
    }
    .vy-bottom-sheet.open { pointer-events: auto; }

    .vy-bottom-sheet-backdrop {
        position: absolute; inset: 0;
        background: rgba(0,0,0,0.7);
        opacity: 0;
        transition: opacity .25s;
    }
    .vy-bottom-sheet.open .vy-bottom-sheet-backdrop { opacity: 1; }

    .vy-bottom-sheet-panel {
        position: absolute;
        bottom: 0; left: 0; right: 0;
        background: #0d0f14;
        border-top: 1px solid var(--vy-border);
        border-radius: 14px 14px 0 0;
        padding: 6px 16px 16px;
        padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
        transform: translateY(100%);
        transition: transform .28s cubic-bezier(0.32,0.72,0,1);
    }
    .vy-bottom-sheet.open .vy-bottom-sheet-panel { transform: translateY(0); }

    .vy-bottom-sheet-handle {
        width: 36px; height: 4px;
        background: var(--vy-dim);
        border-radius: 2px;
        margin: 8px auto 14px;
    }

    .vy-sheet-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        margin-bottom: 6px;
    }

    .vy-sheet-item {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px 6px;
        background: var(--vy-bg);
        border: 1px solid var(--vy-border);
        border-radius: 8px;
        font-family: monospace;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--vy-muted);
        cursor: pointer;
        transition: all .15s;
        min-height: 44px;
        white-space: nowrap;
        -webkit-tap-highlight-color: transparent;
    }
    .vy-sheet-item:active,
    .vy-sheet-item.active {
        color: var(--vy-primary);
        border-color: var(--vy-primary);
        background: var(--vy-primary-10);
    }

    .vy-sheet-divider {
        font-family: monospace;
        font-size: 9px;
        text-transform: uppercase;
        letter-spacing: 0.2em;
        color: var(--vy-dim);
        padding: 10px 0 6px;
        border-top: 1px solid var(--vy-border);
        margin-top: 6px;
        margin-bottom: 6px;
    }

    .vy-sheet-actions {
        margin-top: 12px;
        display: grid;
        gap: 8px;
    }
}

/* ── Plex-tier feature additions ──────────────────────────────────────────── */

/* Progress bar on tile */
.vy-tile-progress {
    position: absolute; bottom: 36px; left: 0; right: 0;
    height: 3px; background: rgba(255,255,255,0.12); z-index: 2;
}
.vy-tile-progress-fill {
    height: 100%; background: var(--vy-primary);
    border-radius: 0 2px 2px 0; transition: width 0.2s;
}

/* Rating badge */
.vy-tile-rating {
    position: absolute; top: 8px; left: 8px; z-index: 3;
    padding: 2px 5px; border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(0,0,0,0.55);
    font-family: ui-monospace, Menlo, monospace;
    font-size: 9px; font-weight: 700;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.05em; text-transform: uppercase;
    pointer-events: none;
}

/* Heart / watchlist button on tile */
.vy-tile-heart {
    position: absolute; top: 6px; right: 28px; z-index: 4;
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%; font-size: 13px; cursor: pointer;
    color: rgba(255,255,255,0.45); transition: all 0.15s;
    opacity: 0;
}
.vy-tile:hover .vy-tile-heart,
.vy-tile-heart.saved { opacity: 1; }
.vy-tile-heart.saved { color: #f43f5e; border-color: rgba(244,63,94,0.5); background: rgba(244,63,94,0.15); }
.vy-tile-heart:hover { color: #f43f5e; border-color: rgba(244,63,94,0.5); transform: scale(1.1); }
/* Touch: always show heart + menu btn — hover never fires on phone */
@media (hover: none) {
    .vy-tile-heart { opacity: 1; }
    .vy-tile-menu-btn { display: inline-flex; }
}

/* Carousel shell — wraps .vy-row so nav arrows can be absolutely positioned
   outside the overflow:auto scroll container. */
.vy-row-shell { position: relative; }
.vy-row-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10;
    width: 38px; height: 38px;
    display: none; /* shown via media query on desktop-hover */
    align-items: center; justify-content: center;
    background: rgba(12,12,16,0.88);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 50%; cursor: pointer; color: #fff;
    font-size: 22px; line-height: 1;
    opacity: 0; transition: opacity .18s, background .15s;
    pointer-events: none;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.vy-row-nav-l { left: 6px; }
.vy-row-nav-r { right: 6px; }
@media (hover: hover) and (pointer: fine) {
    .vy-row-nav { display: flex; }
    .vy-row-shell:hover .vy-row-nav { opacity: 1; pointer-events: auto; }
    .vy-row-nav:hover { background: rgba(168,85,247,0.25); border-color: rgba(168,85,247,0.5); }
}

/* Shuffle button on row heading */
.vy-row-shuffle {
    font-family: ui-monospace, Menlo, monospace; font-size: 10px;
    text-transform: uppercase; letter-spacing: 0.12em;
    padding: 4px 10px; border-radius: 4px;
    border: 1px solid rgba(168,85,247,0.3);
    background: rgba(168,85,247,0.08);
    color: var(--vy-primary); cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.vy-row-shuffle:hover { background: rgba(168,85,247,0.2); border-color: rgba(168,85,247,0.6); }

/* Hero watchlist button */
.vy-hero-wl {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 20px; border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8); font-size: 14px;
    font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.vy-hero-wl:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.5); color: #fff; }
.vy-hero-wl.saved { color: #f43f5e; border-color: rgba(244,63,94,0.5); background: rgba(244,63,94,0.1); }

/* User search results */
#vyUserSearchResults .vy-row { margin: 0; padding: 0; }
#vyUserSearchResults .vy-row-inner { gap: 10px; }

/* Autoplay toggle active state (active class applied inline via JS) */

/* ── Context menu (right-click / long-press) ──────────────────────────── */
.vy-ctx {
    position: fixed; z-index: 99999;
    background: rgba(18,18,22,0.97);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 6px;
    min-width: 210px; max-width: 270px;
    max-height: calc(100dvh - 24px); overflow-y: auto;
    box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 2px 8px rgba(0,0,0,0.5);
    backdrop-filter: blur(12px);
    animation: vy-ctx-in 0.1s cubic-bezier(0.2,0,0,1.2);
    transform-origin: var(--vy-ctx-origin, top left);
    user-select: none;
}
@keyframes vy-ctx-in {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}
.vy-ctx-head {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px 10px; margin-bottom: 2px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.vy-ctx-head-img {
    width: 34px; height: 48px; border-radius: 4px;
    object-fit: cover; flex-shrink: 0; background: #222;
}
.vy-ctx-head-title { font-size: 12px; font-weight: 600; color: #fff; line-height: 1.3; }
.vy-ctx-head-sub   { font-size: 10px; font-family: monospace; color: #777; margin-top: 2px; }
.vy-ctx-section    { font-size: 10px; font-family: monospace; text-transform: uppercase; letter-spacing: 0.08em; color: #555; padding: 8px 12px 2px; }
.vy-ctx-sep        { height: 1px; background: rgba(255,255,255,0.07); margin: 4px 8px; }
.vy-ctx-btn {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 9px 12px; border-radius: 7px;
    background: none; border: none; cursor: pointer;
    font-size: 13px; color: #d4d4d4; text-align: left;
    transition: background 0.08s, color 0.08s;
    font-family: inherit; line-height: 1;
}
.vy-ctx-btn:hover { background: rgba(255,255,255,0.09); color: #fff; }
.vy-ctx-btn.active { color: #a78bfa; }
.vy-ctx-btn.danger { color: #f87171; }
.vy-ctx-btn.danger:hover { background: rgba(248,113,113,0.1); }
.vy-ctx-btn.muted { opacity: 0.4; pointer-events: none; }
.vy-ctx-icon { width: 18px; text-align: center; flex-shrink: 0; font-size: 14px; opacity: 0.75; }
.vy-ctx-btn:hover .vy-ctx-icon { opacity: 1; }
/* Long-press ripple on mobile tiles */
.vy-tile.vy-lp-active::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    background: rgba(167,139,250,0.18); pointer-events: none;
    animation: vy-lp-pulse 0.5s ease forwards;
}
@keyframes vy-lp-pulse {
    from { opacity: 0; } 50% { opacity: 1; } to { opacity: 0; }
}

