:root {
  --bg: #000;
  --panel: #121212;
  --panel-2: #1f1f1f;
  --hover: #2a2a2a;
  --text: #fff;
  --muted: #b3b3b3;
  --green: #1ed760;
  --radius: 8px;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  font-size: 14px;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
svg { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }
img { display: block; }
.hidden { display: none !important; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.placeholder { display: grid; place-items: center; background: #333; color: #7a7a7a; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent; }

/* ---------- Layout ---------- */
.app {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 80px;
  gap: 8px;
  padding: 8px 8px 0;
  height: 100vh;
  height: 100dvh;
}
.app.has-np { grid-template-columns: 300px minmax(0, 1fr) 380px; }
.panel { background: var(--panel); border-radius: var(--radius); }
.sidebar { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.nav { padding: 8px 12px; }
.nav-link {
  display: flex; align-items: center; gap: 20px;
  padding: 12px; font-weight: 700; font-size: 16px;
  color: var(--muted); transition: color .2s;
}
.nav-link svg { font-size: 24px; }
.nav-link:hover, .nav-link.active { color: var(--text); text-decoration: none; }
.mobile-only { display: none; }

.library { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.library-top { display: flex; align-items: center; padding-right: 16px; }
.library-top .icon-btn { font-size: 20px; border-radius: 50%; }
.library-top .icon-btn:hover { background: var(--hover); }
.library-head {
  flex: 1; display: flex; align-items: center; gap: 12px;
  padding: 16px 24px 8px; color: var(--muted); font-weight: 700; font-size: 16px;
}
.library-head:hover { color: var(--text); text-decoration: none; }
.library-head svg { font-size: 24px; }
.lib-list { overflow-y: auto; padding: 0 8px 8px; flex: 1; }
.lib-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 6px; }
.lib-item:hover { background: var(--hover); text-decoration: none; }
.lib-item.active { background: #232323; }
.lib-art { width: 48px; height: 48px; border-radius: 4px; object-fit: cover; flex-shrink: 0; font-size: 22px; }
.liked-art { display: grid; place-items: center; background: linear-gradient(135deg, #450af5, #c4efd9); color: #fff; }
.lib-meta { min-width: 0; }
.lib-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.lib-sub { color: var(--muted); font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { overflow-y: auto; position: relative; min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 8px;
  padding: 16px 24px; height: 64px;
  transition: background .2s;
}
.topbar.scrolled { background: rgba(18,18,18,.92); }
.round-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,.7); display: grid; place-items: center; font-size: 22px; flex-shrink: 0;
}
.search-box {
  flex: 1; max-width: 364px; height: 44px; margin-left: 8px;
  display: flex; align-items: center; gap: 8px; padding: 0 16px;
  background: #242424; border-radius: 500px; border: 1px solid transparent; cursor: text;
}
.search-box:hover { background: #2a2a2a; border-color: #333; }
.search-box:focus-within { border-color: #fff; }
.search-box svg { font-size: 22px; color: var(--muted); display: block; }
.search-box input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font-size: 15px; }
.search-box input::-webkit-search-cancel-button { filter: invert(1); }
.user { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.user-chip {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  background: rgba(0,0,0,.7); border-radius: 500px; padding: 4px 12px 4px 4px; font-weight: 700;
}
.user-chip img { width: 28px; height: 28px; border-radius: 50%; background: #535353; object-fit: cover; flex-shrink: 0; }
.user-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.pill-btn { border: 1px solid #727272; border-radius: 500px; padding: 6px 14px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.pill-btn:hover { border-color: #fff; }

#view { padding: 0 24px 40px; }

/* ---------- Page header ---------- */
.page-head {
  margin: -64px -24px 0; padding: 88px 24px 0;
  background: linear-gradient(var(--c) 0, color-mix(in srgb, var(--c) 35%, var(--panel)) 80%, var(--panel) 100%);
}
.hero { display: flex; align-items: flex-end; gap: 24px; }
.hero-art {
  width: 232px; height: 232px; flex-shrink: 0; border-radius: 4px; object-fit: cover;
  box-shadow: 0 4px 60px rgba(0,0,0,.5); font-size: 80px;
}
.hero-art.round { border-radius: 50%; }
.hero-text { min-width: 0; }
.hero-type { font-size: 14px; font-weight: 700; }
.hero h1 {
  font-size: clamp(32px, 5.5vw, 76px); font-weight: 900; letter-spacing: -.04em; line-height: 1.1;
  margin: 8px 0 12px; padding-bottom: .06em; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-desc { color: rgba(255,255,255,.7); margin-bottom: 8px; }
.hero-meta { font-size: 14px; color: rgba(255,255,255,.85); }
.hero-meta b, .hero-meta a { font-weight: 700; color: #fff; }
.actions { display: flex; align-items: center; gap: 24px; padding: 24px 0; }
.big-play {
  width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #000;
  display: grid; place-items: center; font-size: 24px; transition: transform .1s;
}
.big-play:hover { transform: scale(1.04); background: #3be477; }
.notice { background: rgba(255,255,255,.07); border-radius: 8px; padding: 16px; color: var(--muted); line-height: 1.5; }

/* ---------- Track list ---------- */
.track-head, .track-row {
  display: grid; align-items: center; gap: 16px; padding: 0 16px;
  grid-template-columns: 32px minmax(0, 1fr) 72px 56px;
}
.track-head {
  height: 36px; color: var(--muted); font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 12px;
}
.track-head span:first-child { text-align: center; }
.track-head span:last-child { justify-self: end; font-size: 16px; display: flex; }
.track-row { height: 56px; border-radius: 4px; color: var(--muted); cursor: pointer; user-select: none; }
.track-row:hover { background: rgba(255,255,255,.1); }
.num { display: grid; place-items: center; font-size: 16px; font-variant-numeric: tabular-nums; }
.num svg { display: none; color: #fff; font-size: 16px; }
.track-row:hover .num .n { display: none; }
.track-row:hover .num svg { display: block; }
.t-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.t-main .thumb { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; flex-shrink: 0; font-size: 18px; }
.t-text { min-width: 0; }
.t-name { color: var(--text); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-artists { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.t-artists a:hover { color: var(--text); }
.t-actions { display: flex; justify-content: flex-end; gap: 4px; }
.t-actions .icon-btn { opacity: 0; }
.t-actions .icon-btn.liked, .track-row:hover .t-actions .icon-btn, .t-actions .icon-btn:focus-visible { opacity: 1; }
.t-dur { justify-self: end; font-variant-numeric: tabular-nums; }
.track-row.playing .t-name, .track-row.playing .n { color: var(--green); }
.track-row.blocked .t-name { color: var(--muted); }
.track-row.blocked .t-name::after { content: 'YouTube only'; margin-left: 8px; font-size: 11px; padding: 1px 6px; border: 1px solid #535353; border-radius: 4px; vertical-align: 2px; }
.more-btn { margin: 16px 0 0 16px; color: var(--muted); font-weight: 700; }
.more-btn:hover { color: #fff; }

/* ---------- Sections & cards ---------- */
.greeting { font-size: 32px; font-weight: 700; letter-spacing: -.02em; padding-top: 8px; }
.section { margin-top: 36px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.section h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.see-all { color: var(--muted); font-weight: 700; font-size: 14px; white-space: nowrap; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 8px; margin: 0 -12px; }
.card { padding: 12px; border-radius: 6px; cursor: pointer; transition: background .2s; min-width: 0; }
.card:hover { background: var(--panel-2); }
.card-img { position: relative; aspect-ratio: 1; margin-bottom: 8px; }
.card-img > img, .card-img > .placeholder, .card-img > .liked-art {
  width: 100%; height: 100%; object-fit: cover; border-radius: 6px; font-size: 48px;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.card-img.round > img, .card-img.round > .placeholder { border-radius: 50%; }
.card-play {
  position: absolute; right: 8px; bottom: 8px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--green); color: #000; display: grid; place-items: center; font-size: 20px;
  opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s;
  box-shadow: 0 8px 8px rgba(0,0,0,.3);
}
.card-play:hover { transform: scale(1.05); background: #3be477; }
.card:hover .card-play, .card-play:focus-visible { opacity: 1; transform: none; }
.card-title { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub {
  color: var(--muted); font-size: 14px; margin-top: 4px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.shortcuts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin-top: 20px; }
.shortcut {
  position: relative; display: flex; align-items: center; gap: 12px; height: 64px; padding-right: 60px;
  background: rgba(255,255,255,.07); border-radius: 4px; overflow: hidden; font-weight: 700; cursor: pointer;
  transition: background .2s;
}
.shortcut:hover { background: rgba(255,255,255,.18); }
.shortcut > img, .shortcut > .placeholder, .shortcut > .liked-art { width: 64px; height: 64px; object-fit: cover; flex-shrink: 0; font-size: 24px; }
.shortcut .card-play { width: 36px; height: 36px; font-size: 15px; right: 12px; bottom: 14px; transform: none; }
.shortcut:hover .card-play { opacity: 1; }

.search-empty { text-align: center; padding: 64px 16px; color: var(--muted); }
.search-empty > svg { font-size: 56px; color: #fff; }
.search-empty h2 { color: #fff; font-size: 24px; margin: 16px 0 8px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.chip { background: #2a2a2a; color: #fff; border-radius: 500px; padding: 8px 16px; font-size: 14px; }
.chip:hover { background: #3a3a3a; text-decoration: none; }
.empty { color: var(--muted); padding: 48px 0; text-align: center; font-size: 16px; line-height: 1.6; }
.empty small { font-size: 13px; }
.spinner {
  width: 40px; height: 40px; margin: 120px auto;
  border: 4px solid #333; border-top-color: var(--green); border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.copyright { color: var(--muted); font-size: 11px; margin-top: 32px; line-height: 1.6; }

/* ---------- Player bar ---------- */
.player {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  align-items: center; gap: 16px; padding: 0 8px;
}
.now { display: flex; align-items: center; gap: 14px; min-width: 0; }
.np-art { width: 56px; height: 56px; flex-shrink: 0; }
.np-art:empty { display: none; }
.np-art > * { width: 100%; height: 100%; border-radius: 4px; object-fit: cover; }
.np-meta { min-width: 0; }
.np-title { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-artist { font-size: 12px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-artist a:hover { color: #fff; }
.icon-btn { position: relative; color: var(--muted); font-size: 18px; width: 32px; height: 32px; display: grid; place-items: center; flex-shrink: 0; }
.icon-btn:hover { color: #fff; }
.icon-btn.on, .icon-btn.liked { color: var(--green); }
.icon-btn.on::after {
  content: ''; position: absolute; bottom: -2px; left: 50%; translate: -50% 0;
  width: 4px; height: 4px; border-radius: 50%; background: var(--green);
}
.controls { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; max-width: 722px; justify-self: center; }
.buttons { display: flex; align-items: center; gap: 16px; }
.play-btn { width: 32px; height: 32px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font-size: 16px; }
.play-btn:hover { transform: scale(1.06); }
.progress { display: flex; align-items: center; gap: 8px; width: 100%; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.progress span { min-width: 40px; }
.progress span:first-child { text-align: right; }
.extra { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.extra input { flex: 0 1 100px; min-width: 50px; }

input[type=range] {
  -webkit-appearance: none; appearance: none; flex: 1; height: 4px; border-radius: 2px; cursor: pointer;
  background: linear-gradient(to right, #fff var(--p, 0%), #4d4d4d var(--p, 0%));
}
input[type=range]:hover { background: linear-gradient(to right, var(--green) var(--p, 0%), #4d4d4d var(--p, 0%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; opacity: 0; }
input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; opacity: 0; }
input[type=range]:hover::-webkit-slider-thumb, input[type=range]:focus-visible::-webkit-slider-thumb { opacity: 1; }
input[type=range]:hover::-moz-range-thumb, input[type=range]:focus-visible::-moz-range-thumb { opacity: 1; }

.toast {
  position: fixed; left: 50%; bottom: 104px; z-index: 50; max-width: calc(100% - 32px);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
  background: #2e77d0; color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Buttons ---------- */
.login-btn { width: 100%; background: var(--green); color: #000; font-weight: 700; font-size: 16px; padding: 14px 32px; border-radius: 500px; }
.login-btn:hover { background: #3be477; transform: scale(1.02); }
.link-btn { color: var(--muted); font-size: 13px; margin-top: 16px; text-decoration: underline; }
.link-btn:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .app { grid-template-columns: 72px minmax(0, 1fr); }
  .nav { padding: 8px 4px; }
  .nav-link { justify-content: center; padding: 12px 0; }
  .nav-link span, .library-head span, .lib-meta { display: none; }
  .library-head { justify-content: center; padding: 16px 0 8px; }
  .lib-list { padding: 0 4px 8px; }
  .lib-item { justify-content: center; }
  .library-top { flex-direction: column; padding: 8px 0 0; }
  .player { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
  .extra { display: none; }
  .app.has-np { grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) 80px; }
  .app.has-np .sidebar { grid-row: 1 / 3; }
  .app.has-np .np-panel { grid-column: 2; grid-row: 1; padding: 0; overflow: hidden; }
  .app.has-np .main { grid-column: 2; grid-row: 2; }
}

@media (max-width: 600px) {
  .app, .app.has-np { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto; gap: 0; padding: 0; }
  .app.has-np { grid-template-rows: auto minmax(0, 1fr) auto auto; }
  .main, .app.has-np .main { grid-column: 1; grid-row: 1; border-radius: 0; }
  .app.has-np .np-panel { grid-column: 1; grid-row: 1; border-radius: 0; }
  .app.has-np .main { grid-row: 2; }
  .app.has-np .player { grid-row: 3; }
  .app.has-np .sidebar { grid-row: 4; }
  .player { grid-row: 2; grid-template-columns: minmax(0, 1fr) auto; padding: 8px 16px; background: #1a1a1a; gap: 8px; }
  .sidebar { grid-row: 3; }
  .library { display: none; }
  .nav { display: flex; justify-content: space-around; border-radius: 0; padding: 4px 16px; background: #000; }
  .mobile-only { display: flex; }
  .nav-link { flex-direction: column; gap: 2px; font-size: 11px; padding: 6px 12px; }
  .nav-link span { display: block; }
  .controls .progress, .buttons > .icon-btn { display: none; }
  .np-art { width: 44px; height: 44px; }
  .topbar { padding: 12px 16px; }
  .topbar .round-btn, .user-chip span { display: none; }
  .search-box { margin-left: 0; }
  #view { padding: 0 16px 24px; }
  .page-head { margin: -64px -16px 0; padding: 80px 16px 0; }
  .hero { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-art { width: 180px; height: 180px; align-self: center; }
  .track-head, .track-row { grid-template-columns: minmax(0, 1fr) auto 44px; padding: 0 8px; gap: 8px; }
  .track-head span:first-child, .num { display: none; }
  .t-actions .icon-btn { opacity: 1; }
  .t-actions .icon-btn:not(.liked)[data-like] { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shortcut { height: 56px; padding-right: 8px; font-size: 13px; }
  .shortcut > img, .shortcut > .placeholder, .shortcut > .liked-art { width: 56px; height: 56px; }
  .shortcut .card-play { display: none; }
  .greeting { font-size: 24px; }
}

/* ---------- Now playing panel ---------- */
.np-panel { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; padding: 16px; }
.np-panel-head { font-weight: 700; font-size: 16px; margin-bottom: 16px; }
.np-panel .video { width: 100%; aspect-ratio: 16 / 9; min-height: 200px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: #000; }
.np-panel .video iframe { display: block; width: 100%; height: 100%; border: 0; }
.np-panel-info { display: flex; align-items: center; gap: 12px; margin: 16px 0 24px; }
.np-panel-text { flex: 1; min-width: 0; }
.np-big-title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; overflow-wrap: anywhere; }
.np-big-artist { color: var(--muted); font-size: 15px; margin-top: 4px; }
.np-big-artist a:hover { color: #fff; }
.np-up { background: var(--panel-2); border-radius: 8px; padding: 16px 8px 8px; }
.np-up h3 { font-size: 15px; padding: 0 8px 8px; }
.up-item { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.up-item:hover { background: var(--hover); }
.up-item .thumb { width: 44px; height: 44px; border-radius: 4px; object-fit: cover; flex-shrink: 0; font-size: 18px; }
.up-item .t-name { font-size: 14px; }
.up-item .t-artists { font-size: 13px; color: var(--muted); }
.up-empty { color: var(--muted); padding: 0 8px 8px; font-size: 13px; }

/* ---------- Menu & dialog ---------- */
.menu {
  position: fixed; z-index: 40; min-width: 220px; max-width: 300px; max-height: 60vh; overflow-y: auto;
  background: #282828; border-radius: 6px; padding: 4px; box-shadow: 0 16px 24px rgba(0,0,0,.5);
}
.menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 3px; text-align: left; font-size: 14px; }
.menu button:hover, .menu button:focus-visible { background: #3e3e3e; outline: none; }
.menu button svg { font-size: 16px; color: var(--muted); }
.menu button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu hr { border: 0; border-top: 1px solid #3e3e3e; margin: 4px 0; }
.menu-label { color: var(--muted); font-size: 12px; font-weight: 700; padding: 8px 12px 4px; }

.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.7); }
.modal-card { background: #282828; border-radius: 8px; padding: 24px; width: 100%; max-width: 420px; box-shadow: 0 16px 48px rgba(0,0,0,.6); }
.modal-card h2 { font-size: 22px; margin-bottom: 8px; }
.modal-text { color: var(--muted); line-height: 1.5; margin-bottom: 16px; }
.modal-text:empty { display: none; }
.modal-card input { width: 100%; background: #3e3e3e; border: 1px solid transparent; border-radius: 4px; padding: 12px; color: #fff; font-size: 14px; margin-bottom: 20px; }
.modal-card input:focus { outline: none; border-color: #fff; }
.modal-actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.modal-actions .link-btn { margin: 0; text-decoration: none; font-weight: 700; font-size: 15px; }
.modal-actions .login-btn { width: auto; padding: 10px 28px; font-size: 15px; }

.head-btn { width: 40px; height: 40px; font-size: 22px; }
.import-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.import-form input {
  flex: 1 1 260px; min-width: 0; background: #242424; border: 1px solid #3e3e3e; border-radius: 500px;
  padding: 12px 18px; color: #fff; font-size: 14px;
}
.import-form input:focus { outline: none; border-color: #fff; }
.import-form button { background: #fff; color: #000; font-weight: 700; border-radius: 500px; padding: 0 24px; min-height: 44px; }
.import-form button:hover { transform: scale(1.03); }
.quota-note { color: #727272; font-size: 12px; margin-top: 24px; }

/* Narrow screens: the now-playing panel shows only the video, above the page. */
@media (max-width: 900px) {
  .np-panel-head, .np-panel-info, .np-up { display: none; }
  .np-panel .video { aspect-ratio: auto; height: clamp(200px, 30vh, 320px); }
}
@media (max-width: 600px) {
  .np-panel .video { border-radius: 0; height: clamp(200px, 56vw, 32vh); }
}
