:root {
  --bg: #0d0d0d;
  --bg-elevated: #141414;
  --surface: #1a1a1a;
  --surface-2: #222222;
  --surface-3: #2a2a2a;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text: #f5f7f8;
  --muted: #a7adb4;
  --placeholder: #7f868d;
  --accent: #f5f5f5;
  --on-accent: #111111;
  --online: #66bb6a;
  --danger: #e36a8a;
  --radius-card: 24px;
  --radius-poster: 12px;
  --radius-btn: 14px;
  --chrome: 120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.in-room { height: 100dvh; overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; cursor: pointer; background: none; border: none; padding: 0; }
button:disabled { cursor: not-allowed; opacity: .45; }
:focus-visible { outline: 2px solid rgba(245,245,245,.7); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }

.btn {
  min-height: 44px; padding: 0 18px; border-radius: var(--radius-btn);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 14px; border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #ffffff; }
.btn-secondary { background: rgba(255,255,255,.08); color: var(--text); border-color: var(--line-strong); backdrop-filter: blur(8px); }
.btn-secondary:hover { background: rgba(255,255,255,.12); }
.btn-icon { width: 44px; min-width: 44px; padding: 0; background: rgba(255,255,255,.08); border: 1px solid var(--line-strong); backdrop-filter: blur(8px); }
.btn-sm { min-height: 36px; padding: 0 14px; border-radius: 12px; font-size: 13px; }
.btn-full { width: 100%; }

input, select {
  width: 100%; min-height: 46px; padding: 0 14px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
}
input::placeholder { color: var(--placeholder); }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px;
}

/* Shell */
.app-shell { height: 100dvh; display: grid; grid-template-rows: 64px 1fr; overflow: hidden; }
.app-topbar {
  height: 64px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  position: relative; z-index: 10; background: linear-gradient(to bottom, rgba(13,13,13,.96), rgba(13,13,13,.72) 70%, rgba(13,13,13,0));
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 16px; }
.brand-name { font-size: 17px; letter-spacing: 1.2px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn-top, .avatar-btn {
  width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); border: 1px solid var(--line); color: var(--text);
}
.icon-btn-top svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.avatar-btn { font-weight: 700; font-size: 14px; }

.app-scroll {
  overflow-y: auto; overflow-x: hidden;
  padding: 4px 16px calc(120px + env(safe-area-inset-bottom));
}
.app-screen { display: none; }
.app-screen.is-active { display: block; }

.screen-header { padding: 8px 0 14px; }
.screen-title { margin: 0; font-size: 28px; letter-spacing: -0.4px; }
.screen-header .muted { margin: 4px 0 0; }

/* Home hero */
.home-loading { padding-top: 4px; }
.home-skeleton { border-radius: 20px; background: linear-gradient(90deg, #1a1a1a, #242424, #1a1a1a); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.hero-skeleton { height: min(70vh, 560px); margin-bottom: 22px; }
.row-skeleton { height: 180px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.home-hero {
  position: relative; min-height: min(70vh, 560px); border-radius: 28px; overflow: hidden;
  margin: 0 -4px 28px; background: #111; border: 1px solid var(--line);
}
.hero-track { position: relative; width: 100%; height: 100%; min-height: min(70vh, 560px); }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .55s ease, visibility .55s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.home-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 25%; transform: scale(1.03); transition: transform 8s ease; }
.hero-slide.is-active .home-hero-bg { transform: scale(1.08); }
.home-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(13,13,13,.96) 0%, rgba(13,13,13,.78) 34%, rgba(13,13,13,.22) 62%, rgba(13,13,13,.45) 100%),
    linear-gradient(to top, rgba(13,13,13,.98) 0%, rgba(13,13,13,.45) 38%, rgba(13,13,13,.08) 72%);
}
.home-hero-scrim { display: none; }
.home-hero-content {
  position: relative; z-index: 2; height: 100%; min-height: min(70vh, 560px);
  padding: 34px 28px 54px; display: flex; flex-direction: column; justify-content: flex-end; max-width: 720px;
}
.hero-kicker { margin: 0 0 10px; font-size: 12px; letter-spacing: 1.5px; font-weight: 700; color: rgba(245,247,248,.82); }
.hero-title { margin: 0 0 12px; font-size: clamp(32px, 5.2vw, 54px); line-height: 1.04; letter-spacing: -0.8px; }
.hero-desc { margin: 0 0 20px; color: rgba(245,247,248,.8); max-width: 620px; font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hero-dots {
  position: absolute; left: 28px; bottom: 18px; z-index: 3; display: flex; align-items: center; gap: 8px;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.32); border: none; padding: 0;
  transition: width .25s ease, background .25s ease, transform .25s ease;
}
.hero-dot.is-active { width: 24px; background: rgba(255,255,255,.92); }
.hero-dot:hover { background: rgba(255,255,255,.6); }

.home-rows { display: flex; flex-direction: column; gap: 24px; }
.content-row { display: flex; flex-direction: column; gap: 12px; }
.row-head { display: flex; align-items: center; justify-content: space-between; }
.row-head h2 { margin: 0; font-size: 20px; letter-spacing: -0.2px; }

.poster-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 12px;
  overflow-x: auto; padding-bottom: 4px; scrollbar-width: none;
}
.poster-row::-webkit-scrollbar { display: none; }
.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }

.poster-card { text-align: left; width: 100%; }
.poster-art {
  aspect-ratio: 0.675; border-radius: var(--radius-poster); background: var(--surface-2);
  background-size: cover; background-position: center; position: relative; overflow: hidden;
  border: 1px solid var(--line); margin-bottom: 8px;
}
.poster-art.art-fallback { display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; color: var(--muted); background: linear-gradient(160deg, #2a2a2a, #181818); }
.poster-title { margin: 0 0 2px; font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.poster-sub { margin: 0; font-size: 12px; color: var(--muted); }
.poster-card:hover .poster-art { border-color: var(--line-strong); }
.poster-card.is-loading .poster-art::after {
  content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35);
}
.poster-card.is-loading .poster-art::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px;
  border-radius: 50%; border: 2.5px solid rgba(255,255,255,.25); border-top-color: #fff; z-index: 1;
  animation: spin .8s linear infinite;
}
.poster-card.is-loading { pointer-events: none; }

.home-empty { padding: 32px 8px 12px; text-align: center; }
.home-empty h2 { margin: 0 0 8px; font-size: 24px; }
.home-empty p { margin: 0 0 16px; }

/* Search */
.search-bar {
  display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line-strong); margin-bottom: 12px;
}
.search-bar svg { width: 20px; height: 20px; stroke: var(--muted); fill: none; stroke-width: 1.8; flex: 0 0 auto; }
.search-bar input { border: none; background: transparent; padding: 0; min-height: 48px; }
.search-bar input:focus { outline: none; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600;
}
.chip.is-active { background: rgba(245,245,245,.14); color: var(--text); border-color: rgba(245,245,245,.2); }
.search-status { margin: 6px 0 12px; }
.empty-note { margin: 12px 0; font-size: 14px; }

/* Profile */
.profile-header-card {
  display: flex; align-items: center; gap: 16px; padding: 18px; margin-bottom: 18px;
  border-radius: 22px; background: var(--surface); border: 1px solid var(--line);
}
.profile-avatar-btn {
  width: 72px; height: 72px; border-radius: 50%; background: var(--surface-3);
  border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; flex: 0 0 auto;
}
.profile-header-copy { min-width: 0; }
.profile-name { margin: 0 0 2px; font-size: 24px; letter-spacing: -0.3px; }
.profile-email { margin: 0 0 10px; font-size: 14px; }
.profile-content { display: flex; flex-direction: column; gap: 22px; }
.profile-section .section-head { margin-bottom: 10px; }
.section-head h2 { margin: 0; font-size: 18px; letter-spacing: -0.2px; }
.library-note { margin: 0; font-size: 14px; }
.settings-list { display: flex; flex-direction: column; gap: 8px; }
.settings-item {
  width: 100%; text-align: left; padding: 14px 16px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px;
}
.settings-item:hover { background: var(--surface-2); border-color: var(--line-strong); }
.settings-item-title { font-weight: 600; font-size: 15px; }
.settings-item-sub { font-size: 13px; }

/* Together */
.together-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 6px; }
.together-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.together-card h2 { margin: 0 0 6px; font-size: 18px; }
.together-card p { margin: 0 0 14px; font-size: 14px; }

/* Floating tabbar (Nuvio-like) */
.tabbar {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px;
  background: rgba(34, 34, 36, 0.78); backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 8px 32px rgba(0,0,0,.45); z-index: 30;
  transition: padding .28s ease, gap .28s ease, transform .28s ease, background .28s ease;
  will-change: transform;
}
.nav-tab {
  min-width: 72px; min-height: 52px; padding: 8px 14px; border-radius: 999px; color: var(--muted);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 11px; font-weight: 600; transition: background .2s ease, color .2s ease, min-width .28s ease, padding .28s ease, gap .28s ease;
  overflow: hidden;
}
.nav-tab svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.nav-tab span { line-height: 1; max-height: 14px; opacity: 1; transform: translateY(0); transition: opacity .22s ease, transform .22s ease, max-height .22s ease; white-space: nowrap; }
.nav-tab.is-active { background: rgba(245,245,245,.16); color: var(--text); }
.tabbar.is-collapsed { padding: 6px 8px; gap: 2px; }
.tabbar.is-collapsed .nav-tab { min-width: 52px; min-height: 48px; padding: 10px 12px; gap: 0; }
.tabbar.is-collapsed .nav-tab span { opacity: 0; max-height: 0; transform: translateY(4px); }

/* Dialogs */
.backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.62); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.dialog { position: relative; width: min(520px, 100%); background: #1b1b1d; border: 1px solid var(--line-strong); border-radius: 24px; padding: 22px; max-height: calc(100dvh - 32px); overflow: auto; }
.dialog-wide, .dialog-settings { width: min(760px, 100%); }
.dialog-details { width: min(900px, 100%); }
.dialog-compact { width: min(440px, 100%); }
.dialog h2 { margin: 0 0 6px; font-size: 22px; }
.dialog h3.section-title, .subhead { margin: 18px 0 10px; font-size: 14px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.dialog label { display: block; margin: 12px 0 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.dialog-close { position: absolute; right: 12px; top: 10px; width: 36px; height: 36px; border-radius: 10px; font-size: 22px; color: var(--muted); }
.dialog-close:hover { background: rgba(255,255,255,.08); color: var(--text); }
.input-row { display: flex; gap: 8px; align-items: center; }
.input-row input { flex: 1; }
.form-error { margin: 10px 0 0; color: var(--danger); font-size: 14px; }
.hint { margin: 10px 0 0; font-size: 13px; }

/* Title / details page */
body.details-open { overflow: hidden; }
.details-screen {
  position: fixed; inset: 0; z-index: 45; background: #0d0d0d; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.details-player-mount {
  position: sticky; top: 0; z-index: 30; background: #000; width: 100%;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.details-player-mount[hidden] { display: none !important; }
.details-player-topbar {
  position: absolute; top: calc(10px + env(safe-area-inset-top)); left: 12px; z-index: 40; pointer-events: none;
}
.details-player-topbar .details-nav-btn { pointer-events: auto; }
.details-player-slot { width: 100%; background: #000; }
body.player-in-details .details-player-slot .player-wrap,
.details-player-mount .details-player-slot .player-wrap {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: min(56vw, 72vh); min-height: 220px;
  margin: 0 auto; border-radius: 0; box-shadow: none; flex: none;
}
body.player-in-details .details-player-slot .player-wrap .html-player,
body.player-in-details .details-player-slot .player-wrap .yt-player,
.details-player-mount .details-player-slot .player-wrap .html-player,
.details-player-mount .details-player-slot .player-wrap .yt-player { position: absolute; inset: 0; width: 100%; height: 100%; }
body.player-in-details .stage { padding: 0; }
.details-screen.is-playing .details-backdrop,
.details-screen.is-playing .details-hero-gradients { display: none !important; }
.details-screen.is-playing .details-hero {
  min-height: 0; background: transparent;
}
.details-screen.is-playing .details-hero-top { display: none; }
.details-screen.is-playing .details-logo { display: none !important; }
.details-screen.is-playing .details-play-btn { display: none !important; }
.details-screen.is-playing .details-hero-content { padding: 18px 24px 8px; }
.details-hero {
  position: relative; min-height: min(78vh, 720px); display: flex; flex-direction: column; justify-content: flex-end;
  background: #0d0d0d; isolation: isolate;
}
.details-backdrop {
  position: absolute; inset: 0; background-size: cover; background-position: center 20%; background-repeat: no-repeat; transform: scale(1.01);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 62%, rgba(0,0,0,0.72) 78%, rgba(0,0,0,0.28) 90%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 62%, rgba(0,0,0,0.72) 78%, rgba(0,0,0,0.28) 90%, rgba(0,0,0,0) 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
.details-hero-gradients { position: absolute; inset: 0; pointer-events: none; }
.details-hero-gradients::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, #0d0d0d 0%, #0d0d0d 22%, rgba(13,13,13,.995) 34%, rgba(13,13,13,.92) 46%, rgba(13,13,13,.68) 58%, rgba(13,13,13,.36) 72%, rgba(13,13,13,.14) 86%, rgba(13,13,13,.1) 100%),
    linear-gradient(to right, rgba(13,13,13,.8) 0%, rgba(13,13,13,.24) 45%, rgba(13,13,13,0) 72%);
}
.details-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none; z-index: 2;
  background: linear-gradient(to bottom, rgba(13,13,13,0) 0%, rgba(13,13,13,.5) 40%, rgba(13,13,13,.88) 72%, #0d0d0d 100%);
}
.details-hero-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.details-nav-btn {
  width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(20,20,20,.35); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(8px);
}
.details-nav-btn:hover { background: rgba(255,255,255,.14); }
.details-nav-btn svg { width: 22px; height: 22px; }
.details-hero-content {
  position: relative; z-index: 3; padding: 24px 24px 40px; max-width: 1100px; width: 100%; margin: 0 auto;
}
.details-hero-main { max-width: 760px; display: flex; flex-direction: column; gap: 10px; }
.details-logo { max-width: min(420px, 70vw); max-height: 86px; width: auto; height: auto; object-fit: contain; margin-bottom: 4px; filter: drop-shadow(0 4px 18px rgba(0,0,0,.45)); }
.details-hero-top .details-logo,
.details-logo-top { max-height: 36px; max-width: min(180px, 42vw); margin-bottom: 0; object-position: right center; }
.details-title { margin: 0; font-size: clamp(30px, 5vw, 52px); line-height: 1.04; letter-spacing: -0.8px; color: #fff; }
.details-meta-line { margin: 0; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.78); letter-spacing: .2px; }
.details-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.details-chip { padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.92); font-size: 12px; font-weight: 600; border: 1px solid rgba(255,255,255,.06); }
.details-actions-row { display: flex; align-items: center; gap: 12px; margin-top: 6px; flex-wrap: nowrap; }
.details-play-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex: 1 1 0%;
  min-height: 52px; min-width: 0; padding: 0 28px; border-radius: 14px; background: #f5f5f5; color: #111; font-weight: 700; font-size: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: flex-basis .24s cubic-bezier(.2,.8,.2,1), max-width .24s cubic-bezier(.2,.8,.2,1), padding .24s ease, opacity .18s ease;
}
.details-play-btn:hover { background: #fff; }
.details-play-btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.details-play-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.details-secondary-actions {
  display: flex; align-items: center; gap: 0; flex: 0 0 auto;
  max-width: 0; opacity: 0; overflow: hidden; pointer-events: none; transform: translateX(6px) scale(.92);
  transition: max-width .24s cubic-bezier(.2,.8,.2,1), opacity .18s ease, transform .24s cubic-bezier(.2,.8,.2,1), gap .24s cubic-bezier(.2,.8,.2,1);
}
.details-actions-row.actions-expanded .details-secondary-actions {
  max-width: 140px; opacity: 1; overflow: visible; pointer-events: auto; transform: translateX(0) scale(1); gap: 12px;
}
.details-screen.is-playing .details-secondary-actions {
  max-width: 140px; opacity: 1; overflow: visible; pointer-events: auto; transform: none; gap: 12px;
}
.details-screen.is-playing .details-more-btn { display: none !important; }
.details-action-icon-btn {
  width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px);
  transition: background .15s ease, transform .12s ease, color .15s ease, border-color .15s ease;
}
.details-action-icon-btn:hover { background: rgba(255,255,255,.16); transform: translateY(-1px); }
.details-action-icon-btn svg { width: 22px; height: 22px; }
.details-action-icon-btn.is-active { color: #ff6b81; background: rgba(255,107,129,.12); border-color: rgba(255,107,129,.28); }
#details-like.is-active svg path { fill: currentColor; stroke: none; }
#details-watchlist.is-active svg path { stroke: currentColor; }
.details-more-btn {
  width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px);
  transition: background .15s ease, transform .12s ease;
}
.details-more-btn:hover { background: rgba(255,255,255,.16); }
.details-more-btn svg { width: 22px; height: 22px; transition: transform .24s cubic-bezier(.2,.8,.2,1); }
.details-actions-row.actions-expanded .details-more-btn svg { transform: rotate(90deg); }

.details-body {
  max-width: 1100px; margin: -44px auto 0; padding: 0 24px calc(40px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 28px; position: relative; z-index: 4; background: transparent;
}
.details-overview-section { margin-top: 0; padding-top: 18px; position: relative; z-index: 2; }
.details-screen.is-playing .details-body { margin-top: 0; }
.details-screen.is-playing .details-overview-section { margin-top: 0; padding-top: 4px; }
.details-director { margin: 0 0 10px; font-size: 14px; line-height: 1.5; font-weight: 600; color: rgba(255,255,255,.92); max-width: 900px; }
.details-desc { margin: 0; font-size: 15px; line-height: 1.75; color: #fff; max-width: 900px; }
.details-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 14px; margin-top: 14px; }
.details-fact { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.details-fact-label { font-size: 12px; color: rgba(255,255,255,.55); font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.details-fact-value { font-size: 14px; color: rgba(255,255,255,.92); }

.details-section { display: flex; flex-direction: column; gap: 12px; }
.details-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.details-section-title { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.2px; color: #fff; }
.small { font-size: 13px; }

.details-cast-row { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.cast-card { flex: 0 0 96px; width: 96px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; scroll-snap-align: start; }
.cast-avatar { width: 84px; height: 84px; border-radius: 50%; background: #222; overflow: hidden; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.08); }
.cast-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cast-avatar-fallback { font-weight: 700; color: rgba(255,255,255,.8); font-size: 18px; }
.cast-name { font-size: 13px; font-weight: 600; color: #fff; line-height: 1.25; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cast-role { font-size: 12px; line-height: 1.25; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.details-info-grid { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid rgba(255,255,255,.06); }
.details-info-row { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); align-items: start; }
.details-info-label { color: rgba(255,255,255,.58); font-size: 14px; font-weight: 600; }
.details-info-value { color: rgba(255,255,255,.94); font-size: 14px; line-height: 1.5; }

.settings-group { display: flex; flex-direction: column; gap: 10px; }
.addon-install-form { display: flex; gap: 8px; }
.addon-install-form input { flex: 1; }
.form-msg { margin: 0; font-size: 14px; }
.form-msg.ok { color: var(--online); }
.form-msg.err { color: var(--danger); }
.addon-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.addon-item { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.addon-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-3); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.addon-info { min-width: 0; }
.addon-name { margin: 0; font-weight: 600; font-size: 14px; }
.addon-meta { margin: 2px 0 0; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addon-badge { font-size: 11px; font-weight: 600; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line); color: var(--muted, inherit); white-space: nowrap; }
body.addons-open { overflow: hidden; }
.addons-screen { position: fixed; inset: 0; z-index: 45; background: var(--bg); overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.addons-topbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: rgba(13,13,13,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.addons-title { margin: 0; font-size: 22px; letter-spacing: -0.3px; }
.addons-subtitle { margin: 2px 0 0; font-size: 13px; }
.addons-body { max-width: 760px; margin: 0 auto; padding: 20px 18px 48px; }
.addons-section-title { margin: 10px 0 2px; font-size: 16px; font-weight: 700; }
.addons-body .addon-list { gap: 12px; margin-top: 8px; }
.addon-card { padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.addon-card-head { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; }
.addon-logo { position: relative; width: 56px; height: 56px; border-radius: 14px; background: var(--surface-3); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex: 0 0 auto; }
.addon-logo-fallback { font-weight: 700; font-size: 20px; color: var(--muted); }
.addon-logo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.addon-head-info { min-width: 0; }
.addon-card .addon-name { font-size: 16px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.addon-version { font-size: 12px; font-weight: 600; }
.addon-desc { margin: 0; font-size: 14px; line-height: 1.6; color: rgba(245,247,248,.88); }
.addon-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.addon-tag { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--muted); }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.icon-btn:hover { background: rgba(255,255,255,.08); color: var(--text); }
.icon-btn.danger:hover { color: var(--danger); }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 14px; margin: 12px 0 4px; flex-wrap: wrap; }
.tab { min-height: 38px; padding: 0 14px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 13px; }
.tab.is-active { background: rgba(245,245,245,.14); color: var(--text); }
.source-fields { margin: 8px 0 12px; }
.source-fields [data-panel] > * + * { margin-top: 8px; }

/* Room / Watch (in-place overlay) */
.room { height: 100dvh; min-height: 100dvh; display: grid; grid-template-rows: 60px minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); background: #000; overflow: hidden; }
.player-overlay { position: fixed; inset: 0; z-index: 40; background: #000; }
body.in-room { overflow: hidden; }
body.solo-watch .room { grid-template-rows: 1fr; }
body.solo-watch .room-topbar { display: none; }
body.solo-watch .together-only-meta { display: none !important; }
body.together-watch .solo-only { display: none !important; }
.room-topbar {
  height: 60px; padding: 0 12px 0 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0;
  background: rgba(13,13,13,.98); border-bottom: 1px solid rgba(255,255,255,.06); z-index: 5;
}
.room-topbar-left, .room-topbar-actions { display: flex; align-items: center; gap: 8px; }
.room-back, .room-icon-btn {
  width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--text);
}
.room-back:hover, .room-icon-btn:hover { background: rgba(255,255,255,.08); }
.room-icon-btn.accent { background: var(--accent); color: var(--on-accent); }
.room-icon-btn.accent:hover { background: #fff; }
.room-back svg, .room-icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.room-meta { display: flex; flex-direction: column; gap: 2px; }
.room-code-row { display: flex; align-items: center; gap: 6px; }
.room-code-label { font-size: 10px; letter-spacing: 1px; color: var(--muted); font-weight: 700; }
.room-code-value { font-size: 15px; letter-spacing: .5px; }
.status-pill { font-size: 11px; color: var(--online); }
.status-pill.is-off { color: #ffb454; }
.host-badge { font-size: 11px; font-weight: 700; letter-spacing: .8px; padding: 6px 10px; border-radius: 999px; background: rgba(245,245,245,.14); color: var(--text); }
.room-browse-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 13px; }
.room-browse-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.room-browse-btn:hover { background: #fff; }
.room-code-value { background: rgba(255,255,255,.08); padding: 3px 10px; border-radius: 999px; font-weight: 700; }
.player-wrap.native-html-player .yt-player iframe { width: 100%; height: 100%; pointer-events: auto; }
.browse-search-form { margin-bottom: 12px; }
.browse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 14px; }
.browse-stream-title { margin: 12px 0 6px; font-size: 18px; }
.browse-stream-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
#browse-streams .btn { align-self: flex-start; }

.room-layout { min-height: 0; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 360px; }
.stage { min-width: 0; min-height: 0; height: 100%; display: flex; flex-direction: column; padding: 10px 12px 12px; gap: 6px; background: #050505; }
.player-wrap {
  position: relative; flex: 1 1 auto; min-height: 220px; width: 100%; height: 100%; max-height: 100%;
  margin: 0 auto; aspect-ratio: 16 / 9; background: #000; border-radius: 16px; overflow: hidden; isolation: isolate;
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.player-wrap::before { content: ""; position: absolute; inset: 0; background: #000; filter: brightness(var(--bright, 1)); z-index: 0; }
/* Watch Together: keep the player a normal video-player size — fit inside
   the stage at 16:9 and center it, instead of stretching to fill all the
   available space. */
body.in-room:not(.solo-watch) .player-wrap {
  flex: 0 1 auto; height: auto; margin: auto;
  width: min(100%, calc((100dvh - 150px) * 16 / 9));
  max-height: 100%;
}
.yt-player, .html-player { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; background: #000; }
.html-player { object-fit: contain; }
.yt-player { overflow: hidden; }
.yt-player iframe { position: absolute; top: 50%; left: 50%; width: 240%; height: 240%; transform: translate(-50%, -50%); border: 0; pointer-events: none; }

.empty-state { position: absolute; inset: 0; z-index: 11; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 8px; background: radial-gradient(circle at center, #1a1a1a 0%, #000 70%); }
.empty-icon { width: 64px; height: 64px; border-radius: 20px; background: rgba(255,255,255,.06); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.empty-icon svg { width: 30px; height: 30px; stroke: var(--text); fill: none; stroke-width: 1.6; }
.empty-state h2 { margin: 0; font-size: 22px; }
.empty-state p { margin: 0; max-width: 420px; }

.video-loading { position: absolute; inset: 0; z-index: 7; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.25); pointer-events: none; }
.spinner, .np-buffer { width: 42px; height: 42px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: #fff; animation: spin .9s linear infinite; }
.np-buffer { width: 48px; height: 48px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

.countdown-overlay { position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); }
.countdown-label { margin: 0; color: var(--muted); font-weight: 600; letter-spacing: .5px; }
.countdown-number { margin: 4px 0 0; font-size: 72px; font-weight: 800; line-height: 1; }
.unlock-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 9; min-height: 48px; padding: 0 20px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; }

.tap-zones { position: absolute; inset: 0; z-index: 4; display: grid; grid-template-columns: 1fr 1.2fr 1fr; }
.tap-zone { background: transparent; border: none; width: 100%; height: 100%; }
.seek-hint { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 7; padding: 10px 16px; border-radius: 999px; background: rgba(0,0,0,.55); font-weight: 700; pointer-events: none; color: #fff; }

/* Nuvio-style player controls (overhauled) */
.nuvio-player { position: absolute; inset: 0; z-index: 5; opacity: 0; transition: opacity .18s ease; pointer-events: none; color: #fff; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.player-wrap.controls-visible .nuvio-player { opacity: 1; pointer-events: auto; }
.player-wrap.native-html-player .nuvio-player,
.player-wrap.native-html-player .tap-zones,
.player-wrap.native-html-player .seek-hint { display: none !important; }
.np-gradient { position: absolute; left: 0; right: 0; pointer-events: none; }
.np-gradient-top { top: 0; height: 38%; background: linear-gradient(to bottom, rgba(0,0,0,.7) 0%, rgba(0,0,0,.28) 55%, rgba(0,0,0,0) 100%); }
.np-gradient-bottom { bottom: 0; height: 62%; background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.58) 38%, rgba(0,0,0,.18) 68%, rgba(0,0,0,0) 100%); }

.np-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  padding: calc(12px + env(safe-area-inset-top)) calc(18px + env(safe-area-inset-right)) 10px calc(18px + env(safe-area-inset-left));
}
.np-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.np-toolbar-spacer { flex: 1; }
.np-header-main, .np-header-meta { display: contents; }
.np-toolbar-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.np-icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(0,0,0,.18); border: none; padding: 0; backdrop-filter: blur(2px);
}
.np-icon-btn:hover { background: rgba(255,255,255,.14); }
.np-icon-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.np-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3;
  display: flex; align-items: center; gap: 34px; pointer-events: auto;
}
.np-center-btn {
  border: none; background: transparent; color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  padding: 8px; cursor: pointer; transition: transform .12s ease, background .12s ease;
}
.np-center-btn:hover { background: rgba(255,255,255,.08); transform: scale(1.04); }
.np-center-btn:active { transform: scale(0.98); }
.np-center-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.np-side svg { width: 44px; height: 44px; }
.np-play { padding: 10px; }
.np-play svg, .np-play .np-play-icon, .np-play .np-pause-icon { width: 56px; height: 56px; }
.np-play-icon, .np-pause-icon { display: block; }
.np-play-icon[hidden], .np-pause-icon[hidden], .np-buffer[hidden] { display: none !important; }

.np-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 8px calc(22px + env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) calc(22px + env(safe-area-inset-left));
  display: flex; flex-direction: column; gap: 8px; pointer-events: auto;
}
.np-info-block { display: flex; flex-direction: column; gap: 4px; padding: 0 2px; }
.np-details { padding: 0; display: contents; }
.np-title { margin: 0; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.12; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.2px; }
.np-episode { margin: 0; font-size: 15px; line-height: 1.3; color: rgba(255,255,255,.92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.np-stream-meta-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.np-release { margin: 0; font-size: 13px; line-height: 1.25; color: rgba(255,255,255,.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-source { margin: 0; font-size: 13px; line-height: 1.25; color: rgba(255,255,255,.62); font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-timeline { margin-top: 0; }
.np-timeline-row { display: flex; align-items: center; gap: 12px; }
.np-slider-wrap { position: relative; height: 28px; display: flex; align-items: center; }
.np-seek {
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; padding: 0; margin: 0; border: none; min-height: 0; border-radius: 0; cursor: pointer;
}
.np-seek:focus { outline: none; }
.np-seek::-webkit-slider-runnable-track {
  height: 4px; border-radius: 999px;
  background: linear-gradient(to right, #e50914 0%, #e50914 var(--fill, 0%), rgba(255,255,255,.32) var(--fill, 0%), rgba(255,255,255,.32) 100%);
  transition: height .12s ease;
}
.np-seek:hover::-webkit-slider-runnable-track, .np-seek:active::-webkit-slider-runnable-track { height: 6px; }
.np-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; margin-top: -5px; box-shadow: 0 1px 4px rgba(0,0,0,.4); opacity: 0; transition: opacity .12s ease, margin-top .12s ease; }
.np-seek:hover::-webkit-slider-thumb, .np-seek:active::-webkit-slider-thumb, .player-wrap.controls-visible .np-seek:focus::-webkit-slider-thumb { opacity: 1; }
.np-seek:hover::-webkit-slider-thumb, .np-seek:active::-webkit-slider-thumb { margin-top: -4px; }
.np-seek::-moz-range-track { height: 4px; border-radius: 999px; background: rgba(255,255,255,.32); }
.np-seek:hover::-moz-range-track, .np-seek:active::-moz-range-track { height: 6px; }
.np-seek::-moz-range-progress { height: 4px; border-radius: 999px; background: #e50914; }
.np-seek:hover::-moz-range-progress, .np-seek:active::-moz-range-progress { height: 6px; }
.np-seek::-moz-range-thumb { width: 14px; height: 14px; border: none; border-radius: 50%; background: #fff; opacity: 0; }
.np-seek:hover::-moz-range-thumb, .np-seek:active::-moz-range-thumb { opacity: 1; }

.np-actions-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0; min-height: 44px; margin-left: -8px; }
.np-actions-left { display: flex; align-items: center; gap: 0; }
.np-action-btn {
  width: 44px; height: 44px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.95); background: transparent; border: none; padding: 0; transition: background .12s ease, color .12s ease;
}
.np-action-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.np-action-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.np-action-btn.is-active { color: #fff; }
.np-action-speed { font-size: 13px; font-weight: 700; }
.np-runtime { background: transparent; border: none; color: rgba(255,255,255,.92); font: inherit; font-size: 14px; line-height: 1; padding: 8px 4px; min-width: 72px; text-align: right; cursor: pointer; white-space: nowrap; margin-left: auto; }
.np-runtime:hover { color: #fff; }
.np-time-sep, .np-time-total { color: rgba(255,255,255,.85); }

.pc-anchor { position: relative; }
.pc-popover {
  position: absolute; bottom: 50px; right: 0; min-width: 180px; background: rgba(28,28,30,.96); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 10px; z-index: 20; box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.pc-popover.floating { position: fixed; bottom: auto; }
.pc-popover-wide { min-width: 240px; }
.pc-popover-scroll { max-height: min(380px, 60vh); overflow: auto; }
.pc-popover-col { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 64px; padding: 12px 10px; }
.pop-head { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .4px; text-transform: uppercase; margin: 6px 6px 8px; display: flex; align-items: center; justify-content: space-between; }
.pop-note { font-size: 11px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.pop-options { display: flex; flex-direction: column; gap: 2px; }
.pop-option { width: 100%; text-align: left; padding: 10px 10px; border-radius: 10px; display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 8px; font-size: 14px; color: var(--text); }
.pop-option:hover { background: rgba(255,255,255,.08); }
.pop-option .tick { color: #e50914; font-weight: 700; }
.pop-option .sub { color: var(--muted); font-size: 12px; }
.pop-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px 8px; }
.pop-chip { min-height: 34px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--text); font-size: 13px; font-weight: 600; }
.pop-chip[aria-pressed="true"] { background: #e50914; color: #fff; }
.pop-empty { margin: 4px 6px 8px; color: var(--muted); font-size: 13px; }
.pop-value { font-size: 12px; font-weight: 700; color: var(--text); }
.vslider { -webkit-appearance: slider-vertical; writing-mode: bt-lr; width: 28px; height: 120px; min-height: 0; padding: 0; border: none; background: transparent; }
.pc-btn { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.pc-btn:hover { background: rgba(255,255,255,.12); }
.pc-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pc-btn-sm { width: 36px; height: 36px; }

/* Solo watch mode */
body.solo-watch .room { grid-template-rows: 1fr; }
body.solo-watch .room-topbar { display: none; }
body.solo-watch .room-layout { grid-template-columns: 1fr; }
body.solo-watch .rail { display: none; }
body.solo-watch .stage { padding: 0; gap: 0; background: #000; }
body.solo-watch .stage-foot { display: none; }
body.solo-watch .player-wrap { border-radius: 0; aspect-ratio: auto; min-height: 0; box-shadow: none; max-height: none; }
body.solo-watch .solo-only { display: inline-flex; }
body.together-watch .solo-only { display: none !important; }
.np-center-play-compat { display: none !important; }

.np-action-speed { font-size: 14px; font-weight: 700; min-width: 48px; }
.np-action-speed span { line-height: 1; }
.np-settings-anchor { position: relative; }
.hslider { flex: 1; min-width: 120px; height: 28px; accent-color: #e50914; background: transparent; }
.pop-inline { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; }

.np-panel {
  position: absolute; right: 16px; bottom: 96px; z-index: 12;
  width: min(420px, calc(100% - 32px)); max-height: min(70vh, 520px);
  background: rgba(20,20,22,.96); backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.1); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 18px 50px rgba(0,0,0,.55);
}
.np-panel-wide { width: min(760px, calc(100% - 32px)); max-height: min(72vh, 560px); }
.np-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 16px 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.np-panel-title { margin: 0; font-size: 18px; font-weight: 700; color: #fff; }
.np-panel-sub { margin: 2px 0 0; font-size: 13px; }
.np-panel-head-actions { display: flex; align-items: center; gap: 8px; }
.np-panel-close { width: 34px; height: 34px; border-radius: 10px; color: var(--muted); font-size: 22px; line-height: 1; }
.np-panel-close:hover { background: rgba(255,255,255,.08); color: #fff; }
.np-panel-body { padding: 10px 12px 14px; overflow: auto; min-height: 0; }
.np-stream-list { display: flex; flex-direction: column; gap: 8px; }
.np-stream-item { width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); display: flex; flex-direction: column; gap: 4px; color: #fff; }
.np-stream-item:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); }
.np-stream-item.is-current { border-color: rgba(229,9,20,.7); background: rgba(229,9,20,.12); }
.np-stream-item-title { font-weight: 600; font-size: 14px; line-height: 1.35; }
.np-stream-item-meta { font-size: 12px; color: rgba(255,255,255,.65); }
.np-subs-layout { display: grid; grid-template-columns: 220px 1fr; gap: 12px; align-items: start; }
.np-subs-col { min-width: 0; }
.np-subs-col-wide { min-width: 0; }
.np-info-grid { display: grid; gap: 10px; }
.np-info-row { display: grid; grid-template-columns: 140px 1fr; gap: 10px; font-size: 14px; }
.np-info-label { color: rgba(255,255,255,.55); }
.np-info-value { color: #fff; word-break: break-word; }

.pc-popover {
  position: absolute; bottom: 50px; right: 0; min-width: 180px; background: rgba(28,28,30,.96); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 10px; z-index: 20; box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.pc-popover.floating { position: fixed; bottom: auto; }
.pc-popover-wide { min-width: 240px; }
.pc-popover-scroll { max-height: min(380px, 60vh); overflow: auto; }
.pc-popover-col { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 64px; padding: 12px 10px; }
.pop-head { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .4px; text-transform: uppercase; margin: 6px 6px 8px; display: flex; align-items: center; justify-content: space-between; }
.pop-note { font-size: 11px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.pop-options { display: flex; flex-direction: column; gap: 2px; }
.pop-option { width: 100%; text-align: left; padding: 10px 10px; border-radius: 10px; display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 8px; font-size: 14px; color: var(--text); }
.pop-option:hover { background: rgba(255,255,255,.08); }
.pop-option .tick { color: var(--accent); font-weight: 700; }
.pop-option .sub { color: var(--muted); font-size: 12px; }
.pop-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px 8px; }
.pop-chip { min-height: 34px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--text); font-size: 13px; font-weight: 600; }
.pop-chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.pop-empty { margin: 4px 6px 8px; color: var(--muted); font-size: 13px; }
.pop-value { font-size: 12px; font-weight: 700; color: var(--text); }
.vslider { -webkit-appearance: slider-vertical; writing-mode: bt-lr; width: 28px; height: 120px; min-height: 0; padding: 0; border: none; background: transparent; }

.stage-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px; font-size: 13px; min-height: 18px; flex: 0 0 auto; }

/* Rail / chat */
.rail { min-height: 0; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr); padding: 10px 12px 12px 0; }
.rail-panel { min-height: 0; background: var(--bg-elevated); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; }
.rail-head { padding: 11px 14px 10px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: 0 0 auto; }
.panel-title { margin: 0; font-size: 15px; font-weight: 700; }
.count { color: var(--muted); font-weight: 600; }
.participants-panel { min-height: 0; max-height: 210px; }
.user-list { list-style: none; margin: 0; padding: 8px; overflow: auto; display: flex; flex-direction: column; gap: 4px; min-height: 0; }
.user-item, .manage-user { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; }
.manage-user { background: var(--surface); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #111; flex: 0 0 auto; }
.user-item .name, .manage-user .who { flex: 1; font-size: 14px; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.host-tag { font-size: 10px; font-weight: 700; letter-spacing: .6px; color: var(--muted); background: rgba(255,255,255,.08); padding: 4px 8px; border-radius: 999px; }
.manage-users { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.toggle-list { display: grid; gap: 8px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); margin: 0; color: var(--text); font-size: 14px; font-weight: 500; }
.toggle-row input { width: 20px; height: 20px; min-height: 0; accent-color: #fff; }

.chat-panel { min-height: 0; }
.chat-head { padding-bottom: 10px; }
.chat-log { list-style: none; margin: 0; padding: 12px; flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.chat-item { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: end; max-width: 92%; }
.chat-item.own { margin-left: auto; grid-template-columns: 1fr 28px; }
.chat-item.own .chat-avatar { order: 2; }
.chat-item.own .chat-body { align-items: flex-end; }
.chat-item.grouped .chat-avatar { visibility: hidden; }
.chat-avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #111; }
.chat-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.chat-meta { display: flex; align-items: baseline; gap: 8px; font-size: 12px; }
.chat-name { font-weight: 700; }
.chat-time { color: var(--muted); }
.chat-bubble { display: inline-block; padding: 10px 12px; border-radius: 16px; background: var(--surface-2); color: var(--text); font-size: 14px; line-height: 1.4; word-break: break-word; }
.chat-item.own .chat-bubble { background: rgba(245,245,245,.14); }
.chat-form { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-height: 42px; border-radius: 14px; }
.chat-send { width: 42px; height: 42px; border-radius: 14px; background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.chat-send svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat-empty { list-style: none; }

/* Rail tabs (Chat / Queue / People) */
.rail-tabs-panel { min-height: 0; }
.rail-tabs { display: flex; gap: 2px; margin: 10px 10px 6px; padding: 4px; background: rgba(0,0,0,.45); border-radius: 999px; flex: 0 0 auto; }
.rail-tab { flex: 1 1 0; border: 0; background: transparent; color: #cfcfcf; font: inherit; font-size: 14.5px; font-weight: 600; padding: 9px 4px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.rail-tab:hover { color: #fff; }
.rail-tab.is-active { background: rgba(255,255,255,.22); color: #fff; }
.rail-tab-count { font-weight: 700; opacity: .85; }
.rail-panes { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.rail-pane { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.rail-pane[hidden] { display: none; }

/* Queue */
.queue-now { margin: 8px 12px 0; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.06); display: flex; flex-direction: column; gap: 2px; flex: 0 0 auto; }
.queue-now-label { font-size: 10.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.queue-now-title { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-list { list-style: none; margin: 0; padding: 10px; flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.queue-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: var(--surface); }
.queue-idx { width: 22px; height: 22px; border-radius: 8px; background: rgba(255,255,255,.1); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.queue-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.queue-title { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-meta { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-act { width: 30px; height: 30px; border-radius: 10px; border: 0; background: rgba(255,255,255,.08); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto; }
.queue-act:hover { background: rgba(255,255,255,.16); }
.queue-act svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.queue-act.play svg { fill: currentColor; stroke: none; }
.queue-empty { margin: 0; padding: 20px 16px; text-align: center; font-size: 13.5px; }
.queue-foot { padding: 10px 12px 12px; border-top: 1px solid var(--line); display: grid; gap: 8px; flex: 0 0 auto; }

/* People + per-user permissions */
.people-list { list-style: none; margin: 0; padding: 10px; flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.person { padding: 10px 12px; border-radius: 14px; background: var(--surface); }
.person-head { display: flex; align-items: center; gap: 10px; }
.person-head .name { flex: 1 1 auto; font-size: 14px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.perm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 16px; margin-top: 10px; }
.perm-cell { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }
.perm-switch { position: relative; width: 38px; height: 22px; flex: 0 0 auto; display: inline-block; }
.perm-switch input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; min-height: 0; }
.perm-switch .track { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,.18); transition: background .15s ease; pointer-events: none; }
.perm-switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s ease, background .15s ease; }
.perm-switch input:checked + .track { background: #fff; }
.perm-switch input:checked + .track::after { transform: translateX(16px); background: #111; }
.perm-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.perm-chip { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.1); color: var(--text); }
.perm-chip.off { opacity: .38; }
.people-note { margin: 0; padding: 0 14px 12px; font-size: 12.5px; flex: 0 0 auto; }

.source-actions { display: grid; gap: 8px; }
.manage-note { margin: 0 0 10px; font-size: 13px; }
.stream-row { display: flex; align-items: stretch; gap: 8px; }
.stream-row .np-stream-item { flex: 1 1 auto; }
.stream-queue-btn { flex: 0 0 auto; align-self: center; height: 38px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.stream-queue-btn:hover { background: rgba(255,255,255,.1); }

/* Clean topbar: room name + invite only */
.room-name { display: block; font-size: 16px; font-weight: 800; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 48vw; }

/* Queue pane actions (Movies / Source / Start moved here from the topbar) */
.queue-actions { display: grid; gap: 8px; margin: 10px 0 4px; }
.queue-actions-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.queue-act-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 6px; border-radius: 10px; background: rgba(255,255,255,.06); color: var(--text); font-size: 12px; font-weight: 600; }
.queue-act-btn:hover { background: rgba(255,255,255,.11); }
.queue-act-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* Add-to-queue source chooser */
.add-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.add-option { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: var(--text); text-align: left; cursor: pointer; }
.add-option:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.add-option svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 5px; }
.add-option strong { font-size: 14px; }
.add-option span { font-size: 12px; color: var(--muted); line-height: 1.35; }
@media (max-width: 480px) { .add-options { grid-template-columns: 1fr; } }

/* Invite dialog */
.invite-code { font-size: 32px; font-weight: 800; letter-spacing: .3em; text-align: center; margin: 16px 0 18px; padding-left: .3em; }

/* People: tap-to-edit permissions */
/* People: Discord-style member cards + profile sheet */
.person { padding: 10px 8px; border: none; border-radius: 12px; background: transparent; cursor: pointer; transition: background .15s ease; }
.person:hover { background: rgba(255,255,255,.05); }
.person:active { background: rgba(255,255,255,.09); }
.people-list { gap: 2px; padding: 8px 6px; }
.person .avatar { width: 40px; height: 40px; font-size: 15px; }
.person-head .name { font-size: 15px; }
.person-chev { margin-left: auto; display: inline-flex; color: var(--muted); flex: 0 0 auto; }
.person-chev svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.avatar-lg { width: 52px; height: 52px; font-size: 20px; }
.user-sheet-head { display: flex; align-items: center; gap: 12px; }
.user-sheet-id { display: flex; align-items: center; gap: 8px; min-width: 0; }
.user-sheet-id strong { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.us-perm-list { display: grid; }
.us-perm-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 14px; }
.us-perm-row:last-child { border-bottom: none; }
.us-perm-state { font-size: 12px; font-weight: 700; color: var(--muted); }
.us-perm-state.on { color: #7ee2a0; }
@media (max-width: 720px) {
  #user-dialog { align-items: flex-end; padding: 0; }
  #user-dialog .dialog { width: 100%; max-height: 84dvh; border-radius: 22px 22px 0 0; border-bottom: none; padding-bottom: 28px; }
}
.person-actions { display: flex; gap: 8px; margin-top: 10px; }
.person-act { flex: 1; min-height: 36px; border-radius: 9px; background: rgba(255,255,255,.07); color: var(--text); font-weight: 600; font-size: 13px; }
.person-act:hover { background: rgba(255,255,255,.12); }
.person-act.danger { background: rgba(255,80,80,.13); color: #ff9d9d; }
.person-act.danger:hover { background: rgba(255,80,80,.22); }

/* Room overflow guards: the topbar's buttons must never force the room
   layout wider than the screen (on phones that clipped the whole UI). */
.room-topbar-left { min-width: 0; flex: 0 1 auto; }
.room-topbar-actions { min-width: 0; flex: 0 1 auto; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.room-topbar-actions::-webkit-scrollbar { display: none; }
.room-topbar-actions > * { flex: 0 0 auto; }
.room-meta { min-width: 0; }
.room-layout { min-width: 0; }
.rail, .rail-panel, .rail-panes, .rail-pane { min-width: 0; }
@media (max-width: 720px) {
  .host-badge { display: none; }
}

.toast { position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: rgba(28,28,30,.96); color: var(--text); padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); z-index: 60; max-width: min(92vw, 520px); box-shadow: 0 10px 30px rgba(0,0,0,.45); }

@media (max-width: 980px) {
  .room-layout { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1.15fr) minmax(240px, 0.85fr); }
  .rail { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr); padding: 0 10px 10px; }
  .stage { padding: 8px 10px 8px; }
  .stage .player-wrap { max-height: 100%; }
}
@media (max-width: 720px) {
  .app-scroll { padding: 2px 12px calc(110px + env(safe-area-inset-bottom)); }
  .home-hero, .hero-track, .home-hero-content, .hero-slide { min-height: min(62vh, 500px); }
  .home-hero { margin: 0 -2px 22px; border-radius: 22px; }
  .home-hero-content { padding: 24px 16px 52px; }
  .hero-dots { left: 16px; bottom: 14px; }
  .details-hero { min-height: min(72vh, 620px); }
  .details-screen.is-playing .details-hero { min-height: 0; }
  .details-hero-content { padding: 20px 14px 34px; }
  .details-screen.is-playing .details-hero-content { padding: 14px 14px 10px; }
  body.player-in-details .details-player-slot .player-wrap,
  .details-player-mount .details-player-slot .player-wrap { display: block; width: 100%; height: auto; max-height: min(56.25vw, 42vh); min-height: 200px; aspect-ratio: 16 / 9; }
  .details-body { margin: -34px auto 0; padding: 0 14px calc(32px + env(safe-area-inset-bottom)); }
  .details-screen.is-playing .details-body { margin-top: 0; }
  .details-actions-row { gap: 10px; }
  .details-play-btn { flex: 1 1 0%; min-height: 48px; padding: 0 18px; }
  .details-more-btn { width: 48px; height: 48px; }
  .details-action-icon-btn { width: 48px; height: 48px; }
  .details-overview-section { margin-top: 0; padding-top: 14px; }
  .details-screen.is-playing .details-overview-section { margin-top: 0; padding-top: 4px; }
  .details-info-row { grid-template-columns: 120px 1fr; gap: 10px; }
  .cast-card { flex-basis: 86px; width: 86px; }
  .cast-avatar { width: 74px; height: 74px; }
  .profile-header-card { align-items: flex-start; }
  .profile-avatar-btn { width: 60px; height: 60px; font-size: 22px; }
  .room-layout { grid-template-rows: auto minmax(0, 1fr); }
  .stage { padding: 8px; gap: 4px; height: auto; }
  .room-topbar { gap: 8px; padding: 0 8px 0 4px; }
  .room-topbar-actions { gap: 6px; }
  .room-code-label { display: none; }
  #btn-participants { display: none; }
  .rail { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr); padding: 0 8px 8px; }
  .chat-form { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .room-browse-btn { padding: 0 11px; }
  .stage .player-wrap { border-radius: 12px; min-height: 180px; }
  .nav-tab { min-width: 66px; padding: 8px 10px; }
  .tabbar.is-collapsed .nav-tab { min-width: 48px; padding: 10px 10px; }
  .np-title { font-size: 17px; }
  .np-center { gap: 18px; }
  .np-side svg { width: 36px; height: 36px; }
  .np-play svg, .np-play .np-play-icon, .np-play .np-pause-icon { width: 44px; height: 44px; }
  .np-bottom { padding: 10px 14px calc(14px + env(safe-area-inset-bottom)); }
  body.solo-watch .room { grid-template-rows: 1fr; }
  body.solo-watch .room-layout { grid-template-rows: 1fr; }
  body.solo-watch .stage { padding: 0; }
  body.solo-watch .stage .player-wrap { border-radius: 0; min-height: 0; }
}
@media (orientation: landscape) and (max-height: 560px) {
  .room-topbar { height: 52px; }
  .room { grid-template-rows: 52px minmax(0, 1fr); }
  .room-layout { grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr); grid-template-rows: 1fr; }
  .rail { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr); padding: 6px 6px 6px 0; }
  .stage { padding: 6px; }
  .stage .player-wrap { min-height: 0; }
  body.solo-watch .room { grid-template-rows: 1fr; }
  body.solo-watch .stage { padding: 0; }
}

/* === Room flatten (Zer 2026-11-19): no panel cards, use the full space === */
.rail { padding: 0; }
.rail-panel { background: transparent; border: none; border-radius: 0; box-shadow: none; }
.room .player-wrap { border-radius: 0; box-shadow: none; }
#empty-desc { display: none; }
@media (max-width: 720px) {
  .stage { padding: 0; gap: 0; }
}

/* === Softer room palette (Zer 2026-11-19): not AMOLED black === */
.room { background: #121215; }
.stage { background: #121215; }
.empty-state { background: radial-gradient(circle at center, #1f1f24 0%, #121215 72%); }

/* === Queue pane cleanup (Zer 2026-11-19): dedupe actions, calmer sizes === */
.queue-actions { display: flex; gap: 8px; margin: 10px 12px 2px; }
.queue-actions-row { display: contents; }
.queue-actions #btn-browse, .queue-actions #btn-source { display: none !important; }
.queue-actions #btn-queue-add { flex: 1 1 auto; width: auto; min-height: 46px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.queue-actions #btn-countdown { flex: 0 0 auto; min-height: 46px; padding: 0 14px; border-radius: 12px; font-size: 13.5px; }
.queue-now { margin: 10px 12px 0; padding: 9px 12px; }
.queue-list { padding: 8px 12px; gap: 6px; }
.queue-item { padding: 8px 10px; border-radius: 12px; }
.queue-foot { justify-items: center; padding: 8px 12px 10px; }
.queue-foot #btn-queue-clear { width: auto; min-height: 36px; padding: 0 16px; font-size: 13px; }

/* === Close buttons circular + tabs panel removed (Zer 2026-11-19) === */
.dialog-close { border-radius: 50%; background: rgba(255,255,255,.07); display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.dialog-close:hover { background: rgba(255,255,255,.14); }
.np-panel-close { border-radius: 50%; background: rgba(255,255,255,.07); display: inline-flex; align-items: center; justify-content: center; }
.np-panel-close:hover { background: rgba(255,255,255,.14); }
#browse-close { border-radius: 50%; background: rgba(255,255,255,.07); flex: 0 0 auto; }
#browse-close:hover { background: rgba(255,255,255,.14); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tabs { background: transparent; padding: 0; border-radius: 0; gap: 6px; }
.tab { background: rgba(255,255,255,.05); border-radius: 999px; padding: 0 16px; }
.tab.is-active { background: rgba(245,245,245,.16); }

/* === Source dialog: no tabs in queue intent (Zer 2026-11-19) — the chooser card already picked the type === */
#source-dialog.intent-queue .tabs { display: none; }

/* === Nuvio player (rebuilt from NuvioMobile source: PlayerControls/PlayerTimeline/PlayerSourcesPanel/PlayerSidePanel) === */
.nv-player { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.nv-player .np-gradient-top { height: 160px; background: linear-gradient(to bottom, rgba(0,0,0,.72) 0%, rgba(0,0,0,0) 100%); }
.nv-player .np-gradient-bottom { height: 62%; background: linear-gradient(to top, rgba(0,0,0,.86) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,0) 100%); }

.nv-header { padding: calc(8px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) 0 calc(12px + env(safe-area-inset-left)); }
.nv-toolbar { min-height: 48px; }
.nv-toolbar-actions { gap: 2px; }
.nv-icon-action {
  width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: transparent; border: none; padding: 0;
}
.nv-icon-action:hover { background: rgba(255,255,255,.08); }
.nv-icon-action svg { width: 24px; height: 24px; }
.nv-close-action { background: transparent; }

.nv-center { gap: 72px; }
.nv-center-btn {
  width: auto; height: auto; border: none; background: transparent; color: #fff; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; padding: 12px; cursor: pointer;
}
.nv-center-btn:hover { background: rgba(255,255,255,.06); }
.nv-center-btn:disabled { opacity: .45; cursor: not-allowed; }
.nv-center-btn svg { width: 34px; height: 34px; display: block; }
.nv-play-btn { padding: 14px; }
.nv-play-btn svg { width: 44px; height: 44px; }

.nv-bottom {
  padding: 0 calc(22px + env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) calc(22px + env(safe-area-inset-left));
  gap: 0;
}
.nv-details { padding: 0 2px 2px; display: flex; flex-direction: column; gap: 2px; }
.nv-title {
  margin: 0; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.16; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em;
}
.nv-episode { margin: 0; font-size: 15px; line-height: 1.35; color: rgba(255,255,255,.92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv-meta-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.nv-release { font-size: 13px; line-height: 1.3; color: rgba(255,255,255,.68); }
.nv-source { font-size: 13px; line-height: 1.3; color: rgba(255,255,255,.68); font-style: italic; }

.nv-timeline-wrap { margin-top: 0; }
.nv-slider-wrap { height: 24px; }
.nv-seek { height: 24px; }
.nv-seek::-webkit-slider-runnable-track { height: 6px; background: linear-gradient(to right, #fff 0%, #fff var(--fill, 0%), rgba(255,255,255,.30) var(--fill, 0%), rgba(255,255,255,.30) 100%); }
.nv-seek:hover::-webkit-slider-runnable-track, .nv-seek:active::-webkit-slider-runnable-track { height: 10px; }
.nv-seek::-webkit-slider-thumb { width: 0; height: 0; opacity: 0; margin-top: 0; box-shadow: none; }
.nv-seek::-moz-range-track { height: 6px; background: rgba(255,255,255,.30); }
.nv-seek::-moz-range-progress { height: 6px; background: #fff; }
.nv-seek:hover::-moz-range-track, .nv-seek:active::-moz-range-track,
.nv-seek:hover::-moz-range-progress, .nv-seek:active::-moz-range-progress { height: 10px; }
.nv-seek::-moz-range-thumb { width: 0; height: 0; opacity: 0; border: none; }

.nv-controls-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 0; padding: 0 2px; min-height: 48px;
}
.nv-actions-left {
  display: flex; align-items: center; gap: 0; flex: 1 1 auto; min-width: 0;
  overflow-x: auto; scrollbar-width: none; margin-left: -12px;
}
.nv-actions-left::-webkit-scrollbar { display: none; }
.nv-secondary-action-wrap { display: inline-flex; align-items: center; flex: 0 0 auto; }
.nv-actions-left.nv-actions-collapsed { overflow: hidden; }
.nv-actions-left.nv-actions-collapsed .nv-secondary-action,
.nv-actions-left.nv-actions-collapsed .nv-secondary-action-wrap { display: none; }
.nv-actions-left.nv-actions-expanded { flex-wrap: wrap; overflow: visible; row-gap: 2px; align-content: flex-start; }
.nv-action-btn {
  width: 48px; height: 48px; flex: 0 0 auto; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: transparent; border: none; padding: 0; position: relative;
}
.nv-action-btn:hover { background: rgba(255,255,255,.06); }
.nv-action-btn svg { width: 24px; height: 24px; }
.nv-action-btn.is-active { color: #fff; }
.nv-overflow-btn svg { width: 22px; height: 22px; }
.nv-speed-label {
  position: absolute; right: 2px; bottom: 6px; font-size: 9px; font-weight: 700; line-height: 1;
  color: rgba(255,255,255,.92); pointer-events: none;
}
.nv-runtime {
  background: transparent; border: none; color: rgba(255,255,255,.92); font: inherit;
  font-size: 15px; line-height: 1; padding: 0; height: 48px; min-width: 48px; flex: 0 0 auto;
  text-align: right; cursor: pointer; white-space: nowrap;
}
.nv-runtime:hover { color: #fff; }

/* Nuvio-style right side panel (PlayerSidePanel / PlayerSourcesPanel) */
.nv-side-panel {
  position: absolute; inset: 0; z-index: 20; display: block;
  background: rgba(0,0,0,.34);
}
.nv-side-panel[hidden] { display: none !important; }
.nv-side-panel-inner {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(520px, 100%); max-width: 100%;
  background: #1a1d24; color: #f4f6fa;
  border-radius: 16px 0 0 16px;
  display: flex; flex-direction: column; min-height: 0;
  box-shadow: -8px 0 40px rgba(0,0,0,.45);
}
.nv-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 24px 24px 0;
}
.nv-panel-title {
  margin: 0; font-size: 28px; line-height: 1.2; font-weight: 600; color: #f4f6fa;
}
.nv-panel-close {
  width: auto; height: auto; min-width: 0; padding: 10px 16px; border-radius: 12px;
  background: #232833; color: #c5ccda; font-size: 14px; line-height: 1.2; font-weight: 600;
}
.nv-panel-close:hover { background: #2b3240; color: #fff; }
.nv-panel-sub {
  margin: 16px 24px 0; font-size: 16px; line-height: 1.35; color: #c5ccda;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nv-filter-row {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 16px;
  overflow-x: auto; scrollbar-width: none;
  padding: 16px 24px 0; margin: 0;
}
.nv-filter-row::-webkit-scrollbar { display: none; }
.nv-filter-chip {
  flex: 0 0 auto; min-height: 40px; padding: 10px 16px; border-radius: 20px;
  background: #232833; color: #c5ccda; border: 1px solid rgba(255,255,255,.08);
  font-size: 14px; font-weight: 500; line-height: 1.2;
}
.nv-filter-chip:hover { background: #2b3240; color: #fff; }
.nv-filter-chip.is-selected { background: #f4f6fa; color: #111318; border-color: transparent; font-weight: 600; }
.nv-filter-refresh { width: 40px; min-width: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.nv-filter-refresh svg { width: 20px; height: 20px; }
.nv-stream-list.nv-panel-body {
  flex: 1 1 auto; min-height: 0; overflow: auto;
  padding: 16px 24px 24px; display: flex; flex-direction: column; gap: 8px;
}
.nv-stream-card {
  width: 100%; text-align: left; padding: 14px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid transparent;
  color: #f4f6fa; display: flex; align-items: center; gap: 12px;
}
.nv-stream-card:hover { background: rgba(255,255,255,.08); }
.nv-stream-card.is-current {
  background: rgba(244,246,250,.12); border-color: rgba(244,246,250,.35);
}
.nv-stream-card-body { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; }
.nv-stream-card-title-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.nv-stream-card-title {
  font-size: 14px; line-height: 1.4; font-weight: 700; color: #f4f6fa;
  overflow-wrap: anywhere;
}
.nv-stream-card-sub {
  font-size: 12px; line-height: 1.5; color: rgba(244,246,250,.7);
  overflow-wrap: anywhere;
}
.nv-current-badge {
  flex: 0 0 auto; font-size: 12px; font-weight: 600; color: #f4f6fa;
}
.nv-empty-msg { padding: 8px 0; }

@media (max-width: 720px) {
  .nv-center { gap: 40px; }
  .nv-center-btn svg { width: 30px; height: 30px; }
  .nv-play-btn svg { width: 38px; height: 38px; }
  .nv-bottom { padding-left: calc(14px + env(safe-area-inset-left)); padding-right: calc(14px + env(safe-area-inset-right)); }
  .nv-side-panel-inner { width: 100%; border-radius: 16px 16px 0 0; top: auto; max-height: 88%; }
  .nv-panel-head { padding: 18px 16px 0; }
  .nv-panel-title { font-size: 24px; }
  .nv-panel-sub, .nv-filter-row { padding-left: 16px; padding-right: 16px; margin-left: 0; margin-right: 0; }
  .nv-stream-list.nv-panel-body { padding: 14px 16px 20px; }
}

/* === Nuvio-style subtitle modal overlay === */
.nv-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 36px 52px calc(76px + env(safe-area-inset-bottom)) 52px;
  background:
    linear-gradient(to right, rgba(0,0,0,.88) 0%, rgba(0,0,0,0) 55%),
    linear-gradient(to top, rgba(0,0,0,.60) 0%, rgba(0,0,0,.40) 30%, rgba(0,0,0,.20) 60%, rgba(0,0,0,0) 100%),
    rgba(0,0,0,.34);
  color: #fff;
}
.nv-overlay[hidden] { display: none !important; }
.nv-overlay-content {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.nv-modal-title {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.nv-subtitle-rails {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.nv-rail {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.nv-rail-langs { width: 200px; }
.nv-rail-options { width: 300px; }
.nv-rail-style { width: 280px; }
.nv-rail-title {
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  color: rgba(255,255,255,.65);
}
.nv-rail-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: min(58vh, 520px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 0;
  scrollbar-width: thin;
}
.nv-lang-row, .nv-opt-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  text-align: left;
  border: none;
  cursor: pointer;
}
.nv-opt-row { align-items: flex-start; padding: 9px 12px; }
.nv-lang-row:hover, .nv-opt-row:hover { background: rgba(255,255,255,.06); }
.nv-lang-row.is-selected, .nv-opt-row.is-selected {
  background: #e6e8ed;
  color: #111318;
}
.nv-lang-label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 16px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nv-lang-count {
  flex: 0 0 auto;
  min-width: 22px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  background: rgba(230,232,237,.85);
  color: #111318;
}
.nv-lang-row.is-selected .nv-lang-count {
  background: rgba(17,19,24,.14);
  color: #111318;
}
.nv-opt-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.nv-opt-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nv-source-chip {
  display: inline-flex; align-items: center; max-width: 100%;
  padding: 3px 8px; border-radius: 999px;
  font-size: 11px; line-height: 1.2; font-weight: 600;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.78);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nv-opt-row.is-selected .nv-source-chip { background: rgba(17,19,24,.14); color: rgba(17,19,24,.9); }
.nv-opt-title { font-size: 16px; line-height: 1.35; color: inherit; overflow-wrap: anywhere; }
.nv-opt-meta { font-size: 13px; line-height: 1.35; color: rgba(255,255,255,.65); overflow-wrap: anywhere; }
.nv-opt-row.is-selected .nv-opt-meta { color: rgba(17,19,24,.72); }
.nv-opt-check { flex: 0 0 auto; width: 20px; height: 20px; color: #111318; margin-top: 2px; }
.nv-opt-check svg { width: 20px; height: 20px; display: block; }
.nv-rail-empty {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 6px; border-radius: 12px;
  color: rgba(255,255,255,.65); font-size: 16px;
  cursor: default;
}
.nv-rail-empty.is-action { cursor: pointer; }
.nv-rail-empty.is-action:hover { background: rgba(255,255,255,.06); color: #fff; }
.nv-rail-empty svg { width: 20px; height: 20px; flex: 0 0 auto; }

.nv-style-content {
  display: flex; flex-direction: column; gap: 16px;
  max-height: min(58vh, 520px); overflow-y: auto; overflow-x: hidden;
  padding: 8px 0 4px; scrollbar-width: thin;
}
.nv-style-section { display: flex; flex-direction: column; gap: 10px; }
.nv-style-section-title { font-size: 14px; line-height: 1.3; color: #fff; font-weight: 500; }
.nv-stepper { display: flex; align-items: center; gap: 8px; }
.nv-stepper-btn {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,.08); color: #fff; border: none;
  display: inline-flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1;
}
.nv-stepper-btn:hover { background: rgba(255,255,255,.14); }
.nv-stepper-btn:disabled { opacity: .42; cursor: not-allowed; }
.nv-stepper-value {
  min-width: 84px; padding: 10px 12px; border-radius: 12px;
  background: rgba(255,255,255,.06); color: #fff; text-align: center;
  font-size: 14px; line-height: 1.2;
}
.nv-text-action {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 12px; border-radius: 12px;
  background: rgba(255,255,255,.08); color: #fff; font-size: 14px; font-weight: 600;
}
.nv-text-action:hover { background: rgba(255,255,255,.14); }
.nv-text-action:disabled { opacity: .42; cursor: not-allowed; }
.nv-toggle-chip {
  display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 12px;
  background: rgba(255,255,255,.08); color: #fff; font-size: 14px; font-weight: 600;
}
.nv-toggle-chip.is-on { background: #e6e8ed; color: #111318; }
.nv-color-row { display: flex; flex-wrap: wrap; gap: 8px; }
.nv-color-swatch {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255,255,255,.22);
  padding: 0; cursor: pointer;
}
.nv-color-swatch.is-selected { border-color: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.2) inset; }
.nv-select-row {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 0; color: #fff; background: transparent; border: none; text-align: left; font-size: 16px;
}
.nv-style-reset { margin-top: 4px; }
.nv-helper-text { color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.4; }
.nv-error-text { color: #ff8a8a; font-size: 13px; line-height: 1.4; }

@media (max-width: 900px) {
  .nv-overlay { padding: 18px 16px calc(24px + env(safe-area-inset-bottom)) 16px; }
  .nv-modal-title { font-size: 24px; }
  .nv-rail-langs { width: 170px; }
  .nv-rail-options { width: 260px; }
  .nv-rail-style { width: 240px; }
  .nv-rail-list, .nv-style-content { max-height: min(52vh, 420px); }
}
@media (max-width: 640px) {
  .nv-overlay { padding: 12px 12px calc(16px + env(safe-area-inset-bottom)) 12px; align-items: stretch; }
  .nv-overlay-content { justify-content: flex-end; }
  .nv-subtitle-rails { gap: 10px; }
  .nv-rail-langs { width: 150px; }
  .nv-rail-options { width: 220px; }
  .nv-rail-style { width: 220px; }
}

/* === Nuvio-style audio modal === */
.nv-audio-layout, .nv-streaminfo-layout {
  width: min(520px, 100%);
  max-height: 100%;
}
.nv-audio-list {
  width: 100%;
  max-height: min(56vh, 480px);
  gap: 6px;
}
.nv-audio-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  text-align: left;
  border: none;
  cursor: pointer;
}
.nv-audio-row:hover { background: rgba(255,255,255,.06); }
.nv-audio-row.is-selected { background: #e6e8ed; color: #111318; }
.nv-audio-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nv-audio-title { font-size: 16px; line-height: 1.35; color: inherit; overflow-wrap: anywhere; }
.nv-audio-meta { font-size: 13px; line-height: 1.35; color: rgba(255,255,255,.65); }
.nv-audio-row.is-selected .nv-audio-meta { color: rgba(17,19,24,.72); }

/* === Nuvio-style stream info overlay === */
.nv-streaminfo-body {
  width: min(760px, 100%);
  max-height: min(62vh, 560px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0 8px;
  scrollbar-width: thin;
}
.nv-si-card {
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  padding: 14px 16px;
}
.nv-si-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.nv-si-addon {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; background: #e6e8ed; color: #111318;
}
.nv-si-name { font-size: 18px; line-height: 1.3; font-weight: 600; color: #fff; }
.nv-si-desc { font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.78); margin-top: 4px; word-break: break-word; }
.nv-si-grid { display: flex; flex-direction: column; gap: 8px; }
.nv-si-row { display: grid; grid-template-columns: 140px 1fr; gap: 10px; align-items: start; }
.nv-si-label { font-size: 13px; color: rgba(255,255,255,.55); }
.nv-si-value { font-size: 14px; color: #fff; word-break: break-word; }
.nv-si-empty { color: rgba(255,255,255,.65); font-size: 16px; padding: 8px 2px; }
@media (max-width: 640px) {
  .nv-audio-layout, .nv-streaminfo-layout { width: 100%; }
  .nv-si-row { grid-template-columns: 110px 1fr; }
}
