/* ==========================================================================
   Velvet — Deep Obsidian Liquid Glass Design System
   Zero raw emojis, multi-tier refractive specular glass, responsive >= 375px
   ========================================================================== */

:root {
  --bg-obsidian: #06070b;
  --bg-elevated: rgba(16, 18, 28, 0.72);
  --glass-1: rgba(20, 23, 36, 0.62);
  --glass-2: rgba(28, 32, 48, 0.68);
  --glass-3: rgba(38, 43, 64, 0.78);
  --glass-hover: rgba(255, 255, 255, 0.085);
  --glass-active: rgba(255, 255, 255, 0.14);
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-bright: rgba(255, 255, 255, 0.22);

  --text-primary: #f5f7fc;
  --text-secondary: rgba(226, 232, 246, 0.72);
  --text-muted: rgba(180, 190, 214, 0.50);

  --accent: #f42559;
  --accent-glow: rgba(244, 37, 89, 0.36);
  --accent-2: #8b5cf6;
  --emerald: #10b981;
  --amber: #f59e0b;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --blur-glass: blur(30px) saturate(185%);
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --masthead-h: 64px;
  --sidebar-w: 236px;
  --mobile-dock-h: 66px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100dvh;
  background: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  overflow-x: hidden;
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Ambient Light & Anti-Banding Noise */
#ambientCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  filter: blur(42px);
  opacity: 0.92;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.026;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Refractive Liquid Glass Primitives */
.glass-panel,
.glass-popover {
  position: relative;
  background: linear-gradient(155deg, rgba(34, 38, 58, 0.72), rgba(15, 17, 27, 0.78));
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-subtle);
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, 0.19),
    inset 1px 0 0 rgba(255, 255, 255, 0.06),
    0 18px 46px rgba(0, 0, 0, 0.52);
  border-radius: var(--radius-md);
}

.glass-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.18s var(--spring), background 0.18s ease, border-color 0.18s ease;
  flex-shrink: 0;
}

.glass-icon-btn:hover {
  background: var(--glass-hover);
  border-color: var(--border-bright);
  transform: translateY(-1px);
}

.glass-icon-btn.active {
  background: rgba(244, 37, 89, 0.22);
  border-color: rgba(244, 37, 89, 0.55);
  color: #ff6b90;
}

.boss-btn {
  background: rgba(244, 37, 89, 0.14);
  border-color: rgba(244, 37, 89, 0.34);
}

.glass-primary-btn {
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #f42559, #c81448);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 8px 22px var(--accent-glow);
  transition: transform 0.18s var(--spring), filter 0.18s ease;
}

.glass-primary-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.glass-primary-btn.compact {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

.glass-pill-btn,
.glass-subtle-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.16s ease, transform 0.16s var(--spring), border-color 0.16s ease;
}

.glass-pill-btn:hover,
.glass-subtle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.glass-pill-btn.accent {
  background: linear-gradient(135deg, rgba(244, 37, 89, 0.26), rgba(139, 92, 246, 0.26));
  border-color: rgba(244, 37, 89, 0.48);
}

.glass-pill-btn.subscribed {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.subscribe-btn:not(.subscribed) {
  background: #f5f7fc;
  color: #08090e;
  font-weight: 600;
}

.glass-input,
.glass-textarea,
.glass-select {
  width: 100%;
  background: rgba(8, 10, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.glass-input.compact {
  padding: 7px 11px;
  font-size: 13px;
}

.glass-input:focus,
.glass-textarea:focus {
  border-color: rgba(244, 37, 89, 0.68);
  box-shadow: 0 0 0 3px rgba(244, 37, 89, 0.18);
}

.full-w { width: 100%; }
.muted-text { color: var(--text-secondary); margin: 6px 0 0; }
.muted-micro { color: var(--text-muted); font-size: 12px; }
.mono-tag { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12px; }

/* Boss-Key Cloak Screen */
.cloak-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0b0e14;
  color: #cbd5e1;
  padding: max(20px, env(safe-area-inset-top)) 20px 24px;
  overflow-y: auto;
}

.cloak-shell { max-width: 960px; margin: 0 auto; }
.cloak-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid #1e293b;
}
.cloak-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cloak-dot { width: 9px; height: 9px; border-radius: 50%; background: #10b981; }
.cloak-tag { font-family: var(--font-mono); font-size: 12px; color: #64748b; }
.cloak-subtle-btn { font-size: 12px; color: #64748b; padding: 6px 10px; border: 1px solid #1e293b; border-radius: 6px; }
.cloak-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 22px; }
.cloak-card { background: #111622; border: 1px solid #1e293b; border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.cloak-label { font-size: 12px; color: #94a3b8; }
.cloak-metric { font-size: 20px; font-family: var(--font-mono); color: #e2e8f0; }
.cloak-bar { height: 6px; background: #1e293b; border-radius: 4px; overflow: hidden; }
.cloak-bar span { display: block; height: 100%; background: #3b82f6; }

/* Auth Gate */
.auth-gate {
  position: relative;
  z-index: 10;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-panic-btn { position: fixed; top: max(14px, env(safe-area-inset-top)); right: 16px; }
.auth-card { width: 100%; max-width: 410px; padding: 32px 26px; text-align: center; }
.auth-prism { margin-bottom: 14px; display: flex; justify-content: center; }
.auth-card h1 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.field-group { margin-top: 16px; text-align: left; }
.error-banner {
  margin: 12px 0 0;
  padding: 9px 12px;
  border-radius: var(--radius-xs);
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 13px;
}
#authSubmitBtn { margin-top: 18px; }

/* App Shell & Masthead */
.app-shell {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.glass-masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: var(--masthead-h);
  padding: env(safe-area-inset-top) 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(10, 12, 20, 0.72);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.masthead-left, .masthead-right {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.brand-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
}
.brand-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 35%, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.masthead-center {
  flex: 1 1 auto;
  max-width: 580px;
  min-width: 0;
}

.search-pill-wrap {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
  border-radius: var(--radius-pill);
  background: rgba(14, 16, 26, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45), inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  padding: 0 6px 0 13px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.search-pill-wrap:focus-within {
  border-color: rgba(244, 37, 89, 0.62);
  box-shadow: 0 0 0 3px rgba(244, 37, 89, 0.15);
}
.search-lead-icon { color: var(--text-muted); display: flex; margin-right: 8px; flex-shrink: 0; }
.search-pill-input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text-primary);
}
.search-pill-input::placeholder { color: var(--text-muted); }
.search-clear-btn, .search-filter-trigger {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.search-filter-trigger:hover, .search-clear-btn:hover { background: var(--glass-hover); }

.gpu-pill {
  height: 34px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}
.gpu-pill.online {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
}
.pill-icon { display: inline-flex; }

.popover-anchor { position: relative; }
.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.incognito-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 7px 14px;
  background: rgba(139, 92, 246, 0.18);
  border-bottom: 1px solid rgba(139, 92, 246, 0.35);
  font-size: 12.5px;
  color: #ddd6fe;
}
.ribbon-link-btn { color: #fff; font-weight: 600; text-decoration: underline; }

/* Workspace Body & Collapsible Sidebar */
.workspace-body {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
}

.glass-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: var(--masthead-h);
  height: calc(100dvh - var(--masthead-h));
  overflow-y: auto;
  padding: 12px 10px 28px;
  background: rgba(9, 11, 19, 0.52);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  transition: width 0.22s var(--spring);
}
.glass-sidebar.collapsed { width: 74px; }
.glass-sidebar.collapsed .nav-label,
.glass-sidebar.collapsed .sidebar-heading,
.glass-sidebar.collapsed .sidebar-subs { display: none; }

.sidebar-section { display: flex; flex-direction: column; gap: 3px; }
.sidebar-divider { height: 1px; background: rgba(255, 255, 255, 0.07); margin: 10px 8px; }
.sidebar-heading {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 4px 12px 6px;
}

.nav-item-btn {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-item-btn:hover { background: var(--glass-hover); color: var(--text-primary); }
.nav-item-btn.active {
  background: linear-gradient(90deg, rgba(244, 37, 89, 0.2), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #fff;
  font-weight: 600;
}

.sub-nav-row {
  width: 100%;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: left;
}
.sub-nav-row:hover { background: var(--glass-hover); color: #fff; }
.sub-mini-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, #f42559, #7c3aed);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0;
}

/* Main Content Area */
.main-viewport {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 22px 96px;
}

/* Sticky Mood Chips & Vibe Mix Bar */
.sticky-chips-bar {
  position: sticky;
  top: var(--masthead-h);
  z-index: 35;
  padding: 6px 0 12px;
  background: linear-gradient(180deg, rgba(6, 7, 11, 0.88) 65%, rgba(6, 7, 11, 0));
  backdrop-filter: blur(14px);
}
.chips-scroll-rail {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips-scroll-rail::-webkit-scrollbar { display: none; }

.mood-chip {
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.16s var(--spring);
}
.mood-chip:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.mood-chip.active {
  background: #f5f7fc;
  color: #07080d;
  border-color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.18);
}

.vibe-prompt-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 15px;
  margin-bottom: 22px;
  border-radius: var(--radius-pill);
}
.vibe-icon { color: #ff6b90; display: inline-flex; flex-shrink: 0; }
.vibe-input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-size: 13.5px;
  color: var(--text-primary);
}
.vibe-input::placeholder { color: var(--text-muted); }

/* Shelves & Grids */
.shelf-block { margin-bottom: 30px; }
.shelf-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.shelf-header h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.shelf-caption { font-size: 12.5px; color: var(--text-muted); }

.mixes-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.mix-card {
  padding: 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.22s var(--spring), border-color 0.2s ease;
}
.mix-card:hover { transform: translateY(-3px); border-color: var(--border-bright); }
.mix-collage {
  width: 78px;
  height: 78px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.mix-collage img { width: 100%; height: 100%; object-fit: cover; }
.mix-info h3 { margin: 0 0 4px; font-size: 15px; }
.mix-info p { margin: 0; font-size: 12px; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 20px 16px;
}

/* Flagship Video Card & Hover Choreography */
.video-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: var(--radius-md);
  transition: transform 0.22s var(--spring);
  position: relative;
}
.video-card:hover { transform: translateY(-2px); }

.thumb-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(135deg, #121523, #0b0d16);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}
.thumb-stage img,
.thumb-stage video.hover-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease, transform 0.35s var(--spring);
}
.video-card:hover .thumb-stage img { transform: scale(1.03); }

.thumb-badges-tl {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 5px;
  z-index: 3;
}
.glass-micro-badge {
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: rgba(8, 10, 16, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
}
.glass-micro-badge.match { color: #6ee7b7; border-color: rgba(16, 185, 129, 0.45); }
.glass-micro-badge.uhd { color: #fde68a; border-color: rgba(245, 158, 11, 0.45); }

.thumb-hover-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 0.18s ease, transform 0.18s var(--spring);
  z-index: 4;
}
.video-card:hover .thumb-hover-actions { opacity: 1; transform: translateX(0); }
.quick-thumb-btn {
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(8, 10, 18, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.quick-thumb-btn:hover { background: var(--accent); }

.duration-pill {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(6, 7, 12, 0.84);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  font-weight: 600;
}

.resume-progress-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.22);
  z-index: 4;
}
.resume-progress-bar span { display: block; height: 100%; background: var(--accent); }

.card-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.card-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(244, 37, 89, 0.35), rgba(124, 58, 237, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.card-text-col { flex: 1 1 auto; min-width: 0; }
.card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}
.card-subline {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}
.card-channel-btn { color: var(--text-secondary); font-size: 12.5px; }
.card-channel-btn:hover { color: #fff; }
.card-menu-btn {
  width: 28px; height: 28px; border-radius: 50%;
  color: var(--text-secondary);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.card-menu-btn:hover { background: var(--glass-hover); color: #fff; }

/* Shorts Shelf & Full Shorts Vertical Deck */
.shorts-shelf-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, 196px);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.short-shelf-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  background: #101320;
}
.short-shelf-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s var(--spring); }
.short-shelf-card:hover img { transform: scale(1.04); }
.short-shelf-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 10px 10px;
  background: linear-gradient(0deg, rgba(4, 5, 10, 0.92), transparent);
}
.short-shelf-overlay h4 {
  margin: 0; font-size: 13px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.shorts-deck {
  height: calc(100dvh - var(--masthead-h) - 28px);
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  scrollbar-width: none;
}
.shorts-deck::-webkit-scrollbar { display: none; }
.short-slide {
  scroll-snap-align: center;
  position: relative;
  height: min(82dvh, 780px);
  aspect-ratio: 9 / 16;
  max-width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #05060a;
  border: 1px solid var(--border-bright);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.65);
  flex-shrink: 0;
}
.short-slide video { width: 100%; height: 100%; object-fit: cover; }
.short-rail {
  position: absolute;
  right: 10px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 4;
}
.short-caption-box {
  position: absolute;
  left: 12px;
  right: 64px;
  bottom: 16px;
  z-index: 3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Skeleton Shimmers (CLS = 0) */
@keyframes glassShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton-box {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.10) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: glassShimmer 1.6s infinite linear;
  border-radius: var(--radius-sm);
}

/* Watch Theater Layout & Flagship Player */
.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 22px;
  max-width: 1720px;
  margin: 0 auto;
}
.watch-layout.theater-wide {
  grid-template-columns: minmax(0, 1fr);
}
.watch-layout.theater-wide .player-stage {
  max-height: 80dvh;
}

.player-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.68);
  outline: none;
  user-select: none;
}

.video-zoom-viewport {
  width: 100%;
  height: 100%;
  transform-origin: center center;
  transition: transform 0.08s ease-out;
}
#mainVideo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
#mainVideo.aspect-fill { object-fit: cover; }

.glass-floating-pill {
  position: absolute;
  z-index: 12;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(12, 14, 24, 0.78);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hold-2x-pill { top: 16px; left: 50%; transform: translateX(-50%); }
.zoom-reset-pill { top: 16px; right: 16px; }
.skip-intro-btn {
  right: 18px;
  bottom: 84px;
  background: rgba(245, 247, 252, 0.92);
  color: #08090f;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

.cc-overlay {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 76px;
  text-align: center;
  z-index: 9;
  pointer-events: none;
}
.cc-overlay span {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(6, 7, 12, 0.82);
  backdrop-filter: blur(8px);
  font-size: clamp(14px, 1.5vw, 20px);
  font-weight: 500;
}

.autoplay-overlay {
  position: absolute;
  inset: 0;
  z-index: 15;
  background: rgba(6, 7, 12, 0.78);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.autoplay-card { padding: 22px 26px; max-width: 380px; text-align: center; }
.autoplay-actions { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }

/* Custom Expanding YouTube Scrubbar + SVG Heatmap Wave */
.player-chrome {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 10;
  padding: 28px 14px 10px;
  background: linear-gradient(0deg, rgba(4, 5, 10, 0.92) 0%, rgba(4, 5, 10, 0.52) 60%, transparent 100%);
  transition: opacity 0.22s ease;
}
.player-stage.idle-hide .player-chrome { opacity: 0; pointer-events: none; }

.scrub-track-wrap {
  position: relative;
  height: 28px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 6px;
  cursor: pointer;
}
.heatmap-svg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 11px;
  width: 100%;
  height: 24px;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}
.scrub-track-wrap:hover .heatmap-svg { opacity: 0.85; }
#heatmapPath { fill: rgba(255, 255, 255, 0.34); }

.scrub-rail {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.24);
  transition: height 0.14s ease;
}
.scrub-track-wrap:hover .scrub-rail { height: 7px; }
.scrub-buffered { position: absolute; inset: 0 auto 0 0; background: rgba(255, 255, 255, 0.38); border-radius: 4px; width: 0%; }
.scrub-played { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 4px; width: 0%; }
.scrub-loop-range { position: absolute; top: -2px; bottom: -2px; background: rgba(139, 92, 246, 0.55); border-left: 2px solid #c4b5fd; border-right: 2px solid #c4b5fd; }
.scrub-chapter-gaps { position: absolute; inset: 0; pointer-events: none; }
.chapter-gap-tick { position: absolute; top: 0; bottom: 0; width: 2.5px; background: rgba(6, 7, 11, 0.9); }
.scrub-thumb-dot {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.14s var(--spring);
}
.scrub-track-wrap:hover .scrub-thumb-dot { transform: translate(-50%, -50%) scale(1); }

.scrub-tooltip {
  position: absolute;
  bottom: 64px;
  transform: translateX(-50%);
  z-index: 14;
  padding: 6px;
  border-radius: var(--radius-sm);
  background: rgba(10, 12, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
  text-align: center;
}
.scrub-sprite-box { width: 160px; height: 90px; border-radius: 6px; background-repeat: no-repeat; margin-bottom: 4px; }
.scrub-chapter-name { display: block; font-size: 11px; color: var(--text-secondary); max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.player-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.controls-left, .controls-right { display: flex; align-items: center; gap: 4px; }
.player-ctl-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
}
.player-ctl-btn:hover { background: rgba(255, 255, 255, 0.14); }
.player-ctl-btn.active { color: #ff6b90; }
.volume-cluster { display: inline-flex; align-items: center; gap: 4px; }
.volume-slider { width: 64px; accent-color: #fff; }
.time-readout { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12px; color: rgba(255,255,255,0.88); margin-left: 4px; white-space: nowrap; }
.chapter-pill {
  font-size: 12px; color: rgba(255,255,255,0.86);
  padding: 3px 9px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.1);
  max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.quality-toggle-pill {
  padding: 3px 9px; border-radius: 6px;
  font-size: 11px; font-weight: 700;
  background: rgba(16, 185, 129, 0.24);
  border: 1px solid rgba(16, 185, 129, 0.55);
  color: #6ee7b7;
}

/* Watch Metadata, Studio Bars & Notes */
.watch-meta-block { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.watch-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.watch-title { margin: 0; font-size: clamp(17px, 1.6vw, 21px); font-weight: 700; letter-spacing: -0.02em; }
.badge-cluster { display: flex; gap: 6px; flex-wrap: wrap; }

.watch-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.channel-owner-pill { display: flex; align-items: center; gap: 10px; }
.channel-avatar-circle {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #f42559, #7c3aed);
  font-weight: 700; font-size: 15px; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.channel-owner-text { display: flex; flex-direction: column; margin-right: 6px; }
.channel-name-link { font-weight: 600; font-size: 14.5px; text-align: left; }

.action-pills-scroll {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
}

.split-glass-pill {
  height: 36px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.11);
  display: inline-flex;
  align-items: center;
}
.split-left-btn, .split-right-btn { height: 100%; padding: 0 13px; display: inline-flex; align-items: center; gap: 6px; }
.split-left-btn.active { color: #ff6b90; }
.split-right-btn.active { color: #93c5fd; }
.split-divider { width: 1px; height: 18px; background: rgba(255, 255, 255, 0.14); }

.studio-subbar, .description-card, .private-notes-card { padding: 14px 16px; }
.subbar-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.subbar-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.desc-stats-line { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.people-chip-row, .markers-chip-row, .tags-chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }

.notes-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.star-rating-row { display: inline-flex; gap: 3px; color: var(--amber); }
.rendered-note { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 8px; white-space: pre-wrap; }
.ts-jump-link { color: #ff6b90; font-family: var(--font-mono); font-weight: 600; text-decoration: underline; margin: 0 2px; }
.notes-editor-row { display: flex; gap: 8px; align-items: flex-end; }

/* Watch Right Sidebar & Context Drawer */
.watch-secondary-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.context-drawer { padding: 12px; max-height: 410px; display: flex; flex-direction: column; gap: 10px; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.drawer-scroll-body { overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.transcript-row, .chapter-list-row {
  padding: 8px 10px; border-radius: var(--radius-xs);
  display: flex; align-items: flex-start; gap: 10px;
  text-align: left; font-size: 13px;
}
.transcript-row:hover, .chapter-list-row:hover, .transcript-row.active { background: var(--glass-hover); }

.up-next-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.autoplay-inline-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-secondary); }
.up-next-list { display: flex; flex-direction: column; gap: 10px; }
.compact-side-card {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr) 26px;
  gap: 10px;
  align-items: start;
}
.compact-side-card .thumb-stage { border-radius: 10px; }
.compact-side-card .card-title { font-size: 13px; }

/* Search, Tabs, Popovers, Modals, Miniplayer & Toasts */
.search-Subbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.segmented-tabs {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.seg-tab {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}
.segmented-tabs.compact .seg-tab { padding: 4px 10px; font-size: 12px; }
.seg-tab.active { background: rgba(255, 255, 255, 0.16); color: #fff; font-weight: 600; }

.filter-drawer {
  padding: 16px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.filter-title { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.filter-options { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip {
  padding: 5px 11px; border-radius: var(--radius-pill);
  font-size: 12.5px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09); color: var(--text-secondary);
}
.filter-chip.active { background: rgba(244, 37, 89, 0.25); border-color: rgba(244, 37, 89, 0.55); color: #fff; }

.tune-popover {
  position: fixed;
  top: calc(var(--masthead-h) + 8px);
  right: 18px;
  z-index: 80;
  width: min(340px, calc(100vw - 24px));
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.notif-popover {
  position: absolute;
  top: 44px;
  right: 0;
  z-index: 80;
  width: min(350px, calc(100vw - 24px));
  max-height: 400px;
  overflow-y: auto;
  padding: 12px;
}
.suggest-popover {
  position: absolute;
  top: 46px;
  left: 0;
  right: 0;
  z-index: 75;
  padding: 6px;
}
.suggest-item {
  width: 100%; padding: 8px 12px; border-radius: var(--radius-xs);
  display: flex; align-items: center; gap: 10px;
  text-align: left; font-size: 13.5px; color: var(--text-secondary);
}
.suggest-item:hover { background: var(--glass-hover); color: #fff; }

.player-gear-popover {
  position: absolute;
  right: 0;
  bottom: 46px;
  z-index: 25;
  width: 268px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.gear-row, .switch-row, .slider-row-head, .popover-header {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px;
}
.gear-row .glass-select { width: 122px; padding: 5px 8px; font-size: 12.5px; }
.slider-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); }
.glass-range { width: 100%; accent-color: var(--accent); }
.text-action-btn { font-size: 12.5px; color: #ff6b90; font-weight: 600; }

/* Channel Hero & Library */
.channel-hero { padding: 22px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.channel-hero-left { display: flex; align-items: center; gap: 16px; }
.channel-hero-avatar {
  width: 68px; height: 68px; border-radius: 50%; object-fit: cover;
  background: linear-gradient(135deg, #f42559, #7c3aed);
  display: inline-flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700;
}
.library-header { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stats-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat-card { padding: 16px; }
.stat-card strong { display: block; font-size: 24px; font-family: var(--font-mono); margin-top: 4px; }

/* Floating Miniplayer */
.mini-player {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 70;
  width: min(360px, calc(100vw - 24px));
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mini-video-slot { width: 124px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; flex-shrink: 0; }
.mini-video-slot video { width: 100%; height: 100%; object-fit: cover; }
.mini-meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.mini-title { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-controls { display: flex; gap: 3px; }
.mini-controls .glass-icon-btn { width: 30px; height: 30px; }

/* Modals, Context Menu & Toasts */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(4, 5, 10, 0.72);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-card { width: 100%; max-width: 480px; max-height: 88dvh; overflow-y: auto; padding: 22px; }
.modal-card.modal-lg { max-width: 640px; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.modal-head h2 { margin: 4px 0 0; font-size: 20px; }
.eyebrow-pill { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #ff6b90; }
.tag-picker-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

.context-menu {
  position: fixed;
  z-index: 130;
  min-width: 220px;
  padding: 6px;
}
.ctx-item {
  width: 100%; padding: 9px 12px; border-radius: var(--radius-xs);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-primary); text-align: left;
}
.ctx-item:hover { background: var(--glass-hover); }
.ctx-item.danger { color: #fda4af; }

.toast-stack {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: max-content;
  max-width: calc(100vw - 24px);
}
.glass-toast {
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.library-subnav-rail {
  margin-bottom: 14px;
  padding-bottom: 4px;
}

/* Mobile Dock & Responsive Breakpoints (>= 375px) */
.glass-mobile-dock { display: none; }

@media (max-width: 1120px) {
  .watch-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .hide-mobile, .glass-sidebar { display: none !important; }
  .main-viewport { padding: 10px 12px calc(var(--mobile-dock-h) + 86px); }
  .glass-masthead { padding-left: 10px; padding-right: 10px; gap: 6px; }
  .brand-text, .hide-xs { display: none; }
  .glass-icon-btn { width: 34px; height: 34px; }
  .gpu-pill { height: 34px; padding: 0 8px; }
  .video-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .mini-player { bottom: calc(var(--mobile-dock-h) + 12px); right: 12px; width: calc(100vw - 24px); }
  .toast-stack { bottom: calc(var(--mobile-dock-h) + 16px); }

  .notif-popover {
    position: fixed;
    top: calc(var(--masthead-h) + 6px);
    left: 12px;
    right: 12px;
    width: auto;
    max-height: 68dvh;
  }

  .player-gear-popover {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(var(--mobile-dock-h) + 16px);
    top: auto;
    width: auto;
    max-height: 70dvh;
    overflow-y: auto;
    z-index: 95;
  }

  .glass-mobile-dock {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(8px, env(safe-area-inset-bottom));
    height: 58px;
    z-index: 65;
    border-radius: var(--radius-pill);
    background: rgba(14, 16, 26, 0.82);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 6px;
  }
  .mobile-tab-btn {
    flex: 1 1 0;
    height: 46px;
    border-radius: var(--radius-pill);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 10.5px;
    color: var(--text-secondary);
  }
  .mobile-tab-btn.active { color: #fff; font-weight: 600; background: rgba(255, 255, 255, 0.08); }
}

@media (max-width: 640px) {
  .player-chrome {
    padding: 14px 6px 6px;
  }
  .player-controls-row {
    flex-wrap: wrap;
    gap: 4px;
  }
  .controls-left,
  .controls-right {
    gap: 2px;
    flex-wrap: wrap;
  }
  .player-ctl-btn {
    width: 28px;
    height: 28px;
  }
  .volume-slider,
  .chapter-pill {
    display: none;
  }
  .time-readout {
    font-size: 11px;
    margin-left: 2px;
  }
}

@media (max-width: 520px) {
  .search-filter-trigger {
    display: none;
  }
  .glass-masthead {
    padding-left: 8px;
    padding-right: 8px;
    gap: 5px;
  }
  .masthead-right {
    gap: 4px;
  }
  .glass-icon-btn {
    width: 30px;
    height: 30px;
  }
  .gpu-pill {
    width: 30px;
    height: 30px;
    padding: 0;
    justify-content: center;
  }
  .search-pill-wrap {
    height: 34px;
    padding: 0 8px;
  }
  .search-pill-input {
    font-size: 13px;
  }
}
