/* music-spotify.css — paint for the full player hub (js/music-app.js panel,
 * relocated by js/music-spotify.js into #musicHubMount). REVERTED Nov 7 2026
 * on Kelvin's order: the Spotify-dark skin is gone; the hub now wears the
 * restored car-cockpit ("night drive") design language of css/car.css —
 * deep dash blacks (linear-gradient(180deg,#121319,#0a0b0f) + 1px white/8%
 * ring, echoing .car-shelf), ice ink #eef3ff, secondary #c8d0e4, dash cyan
 * #5ff3ff for active/play states. Solid, full-opacity text throughout; no
 * gradient-clipped text, no backdrop-filter. Scoped to #view-music so the
 * fx-* classes keep their original look everywhere else. Layout and
 * behaviour live in js/music-app.js + js/music-spotify.js; paint only.
 * #miniPlayer / #playerSheet carry NO overrides here — they wear the app's
 * base theme again, as they did before the estate/Spotify skins. */

/* ---------- hub mount + tab bar (top chips; left rail on wide) ---------- */
#musicHubMount{ display:grid; gap:12px; margin:0 0 16px; }
#musicHubMount:empty{ display:none; }
#view-music .fx-tabs{
  gap:4px; padding:6px; margin:0;
  background:linear-gradient(180deg, #121319, #0a0b0f);
  border:1px solid rgba(255,255,255,.08); border-radius:14px;
  box-shadow:inset 0 -10px 22px rgba(0,0,0,.5);
}
#view-music .fx-tabs > button{
  flex:1 1 0; min-height:42px; padding:8px 10px; border-radius:8px;
  border:0; background:transparent;
  color:#c8d0e4; font-size:14px; font-weight:700; cursor:pointer; white-space:nowrap;
  text-align:center;
}
#view-music .fx-tabs > button:hover{ color:#ffffff; background:rgba(255,255,255,.07); }
#view-music .fx-tabs > button[aria-selected="true"]{
  background:rgba(255,255,255,.06); color:#ffffff;
  box-shadow:inset 0 -3px 0 #5ff3ff;
}
/* music-app's own repeat toggle lives in the tab bar too — dash state */
#view-music .fx-tabs > .fx-repeat[aria-pressed="true"],
#view-music .fx-tabs > .fx-repeat.is-on{ color:#5ff3ff; }
@media (min-width:900px){
  #musicHubMount{ grid-template-columns:216px minmax(0,1fr); align-items:start; }
  #view-music .fx-tabs{ grid-column:1; grid-row:1 / span 2; flex-direction:column; align-items:stretch; position:sticky; top:8px; }
  #view-music .fx-tabs > button{ flex:0 0 auto; text-align:left; padding:10px 12px; box-shadow:none; }
  #view-music .fx-tabs > .fx-repeat{ margin-left:0; }
  #view-music .fx-tabs > button[aria-selected="true"]{ box-shadow:inset 3px 0 0 #5ff3ff; }
  #view-music .fx-music-panel{ grid-column:2; }
  #musicHubMount > .fx-yt{ grid-column:2; }
}
#view-music .fx-tabs > button:focus-visible,
#view-music .fx-subtabs .chip:focus-visible,
#view-music .fx-trow-main:focus-visible{ outline:2px solid #5ff3ff; outline-offset:2px; }

/* ---------- the panel (dash console card, echoing .car-shelf) ---------- */
#view-music .fx-music-panel{
  gap:14px; padding:16px 14px;
  background:linear-gradient(180deg, #121319, #0a0b0f);
  border:1px solid rgba(255,255,255,.08); border-radius:22px;
  box-shadow:inset 0 -10px 22px rgba(0,0,0,.5);
  color:#eef3ff; min-width:0;
}
#view-music .fx-h3{ color:#ffffff; font:700 22px/1.25 var(--font, Inter, system-ui, sans-serif); letter-spacing:-.01em; }
#view-music .fx-h4{ color:#ffffff; font-size:15px; font-weight:700; letter-spacing:0; text-transform:none; }
#view-music .fx-muted{ color:#c8d0e4; }
#view-music .fx-tiny{ color:#c8d0e4; }

/* ---------- track rows (dash list rows) ---------- */
#view-music .fx-tlist{ gap:2px; list-style:none; margin:0; padding:0; }
#view-music .fx-trow{ padding:5px 8px; border-radius:6px; }
#view-music .fx-trow:hover{ background:rgba(255,255,255,.07); }
#view-music .fx-trow.is-current{ background:rgba(95,243,255,.08); }
#view-music .fx-trow-main{ color:#eef3ff; cursor:pointer; border-radius:6px; }
#view-music .fx-trow-main strong{ color:#ffffff; font-size:14.5px; font-weight:600; display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#view-music .fx-trow.is-current .fx-trow-main strong{ color:#5ff3ff; }
#view-music .fx-trow-main small{ color:#c8d0e4; font-size:12.5px; display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#view-music .fx-trow-eq{ color:#5ff3ff; font-size:14px; }
#view-music .fx-drag{ color:#c8d0e4; background:none; border:0; cursor:grab; padding:6px 2px; }
#view-music .fx-trow.is-dragging{ opacity:.55; }
#view-music .fx-like{ background:none; border:0; cursor:pointer; font-size:19px; line-height:1; padding:8px; color:#c8d0e4; }
#view-music .fx-like:hover{ color:#ffffff; }
#view-music .fx-like[aria-pressed="true"]{ color:#5ff3ff; }
#view-music .fx-more{ color:#c8d0e4; cursor:pointer; }
#view-music .fx-more:hover{ color:#ffffff; }

/* row action menu */
#view-music .fx-menu{
  background:#17181f; border:1px solid rgba(255,255,255,.1); border-radius:6px;
  box-shadow:0 16px 40px rgba(0,0,0,.6); padding:4px;
}
#view-music .fx-menu button{ color:#eef3ff; cursor:pointer; border-radius:4px; }
#view-music .fx-menu button:hover{ background:rgba(255,255,255,.08); }

/* ---------- home: cards (recents shelf + mixes) ---------- */
#view-music .fx-tile-m{
  cursor:pointer; background:rgba(255,255,255,.045); border-radius:8px; padding:12px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.07);
  transition:background .18s ease;
}
#view-music .fx-tile-m:hover{ background:rgba(255,255,255,.09); }
#view-music .fx-tile-m strong{ color:#ffffff; font-size:13px; font-weight:600; line-height:1.3; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
#view-music .fx-tile-m small{ color:#c8d0e4; font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#view-music .fx-cover{
  background:#171a24;
  border:0; color:#c8d0e4; border-radius:6px;
  box-shadow:0 8px 24px rgba(0,0,0,.5);
  position:relative;
}
#view-music .fx-cover img{ width:100%; height:100%; object-fit:cover; display:block; }
/* card play button: dash-cyan disc at the artwork's bottom-right */
#view-music .fx-tile-m .fx-cover::after{
  content:""; position:absolute; right:8px; bottom:8px; z-index:2;
  width:42px; height:42px; border-radius:50%;
  background:#5ff3ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l11-6.5z' fill='%2306121a'/%3E%3C/svg%3E") center / 18px no-repeat;
  box-shadow:0 8px 16px rgba(0,0,0,.45);
  opacity:0; transform:translateY(4px); transition:opacity .18s ease, transform .18s ease;
  pointer-events:none;
}
#view-music .fx-tile-m:hover .fx-cover::after,
#view-music .fx-tile-m:focus-visible .fx-cover::after{ opacity:1; transform:none; }
/* Liked Songs cover: the car shelf's own add-case gradient (css/car.css .car-case-add spine) */
#view-music .fx-cover-liked{ background:linear-gradient(135deg, #6B46F0 0%, #C2367F 100%); color:#ffffff; font-size:30px; }
#view-music .fx-mix{
  background:rgba(255,255,255,.045); border:0; color:#eef3ff; border-radius:8px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.07);
}
#view-music .fx-mix:hover{ background:rgba(255,255,255,.09); }
#view-music .fx-mix strong{ color:#ffffff; }
#view-music .fx-mix small{ color:#c8d0e4; }
#view-music .fx-chips .chip{
  background:rgba(255,255,255,.07); border:0; color:#eef3ff;
}
#view-music .fx-chips .chip:hover{ background:rgba(255,255,255,.12); }

/* ---------- library subtabs + playlists ---------- */
#view-music .fx-subtabs{ gap:8px; padding:2px; }
#view-music .fx-subtabs .chip{
  min-height:36px; padding:7px 14px; border-radius:999px; cursor:pointer;
  border:0; background:rgba(255,255,255,.07);
  color:#eef3ff; font-weight:650; font-size:13px;
}
#view-music .fx-subtabs .chip:hover{ background:rgba(255,255,255,.12); }
#view-music .fx-subtabs .chip.is-on{
  background:rgba(95,243,255,.18); color:#eafcff;
  box-shadow:inset 0 0 0 1.5px #5ff3ff;
}
#view-music .fx-pl-head strong{ color:#ffffff; font-size:16px; }
#view-music .fx-pl-head small{ color:#c8d0e4; display:block; font-size:12.5px; }
#view-music .fx-pls{ list-style:none; margin:10px 0 0; padding:0; }
#view-music .fx-pls li > button{
  width:100%; display:flex; gap:12px; align-items:center; text-align:left;
  padding:8px; border-radius:6px; border:0; background:none; cursor:pointer; color:#eef3ff;
}
#view-music .fx-pls li > button:hover{ background:rgba(255,255,255,.07); }
#view-music .fx-pls .fx-cover{ width:52px; height:52px; flex:0 0 auto; font-size:22px; aspect-ratio:auto; border-radius:4px; }
#view-music .fx-pls .fx-cover::after{ display:none; }
#view-music .fx-pls strong{ color:#ffffff; display:block; font-size:14.5px; }
#view-music .fx-pls small{ color:#c8d0e4; font-size:12.5px; }
#view-music .fx-group{ margin-bottom:14px; }

/* playlist / liked screen header actions injected by music-spotify.js */
#view-music [data-playall], #view-music [data-shuffleplay]{ cursor:pointer; }
#view-music [data-shuffleplay]{ color:#5ff3ff; }

/* ---------- search ---------- */
#view-music .fx-searchform .field,
#view-music .fx-copyrow .field{
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); border-radius:999px;
  color:#ffffff; min-height:46px; padding-left:16px;
}
#view-music .fx-searchform .field:focus,
#view-music .fx-copyrow .field:focus{ border-color:#5ff3ff; outline:none; }
#view-music .fx-searchform .field::placeholder,
#view-music .fx-copyrow .field::placeholder{ color:#c8d0e4; }
#view-music .fx-ytlist{ list-style:none; margin:0; padding:0; }
#view-music .fx-ytlist li > button{ background:none; border:0; cursor:pointer; color:#eef3ff; padding:6px 8px; border-radius:6px; }
#view-music .fx-ytlist li > button:hover{ background:rgba(255,255,255,.07); }
#view-music .fx-ytlist strong{ color:#ffffff; font-size:13.5px; display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#view-music .fx-ytlist small{ color:#c8d0e4; }

/* ---------- in-section deck play (base deck under the drop zone) ---------- */
#view-music .deck-play{ background:#5ff3ff; color:#06121a; }
#view-music .deck-play svg path{ fill:#06121a; }

/* ---------- YouTube player card (relocated into the hub) ---------- */
#view-music .fx-yt{
  background:linear-gradient(180deg, #121319, #0a0b0f);
  border:1px solid rgba(255,255,255,.08); border-radius:18px; padding:12px; color:#eef3ff;
  box-shadow:inset 0 -10px 22px rgba(0,0,0,.5);
}
#view-music .fx-yt-meta strong{ color:#ffffff; }
#view-music .fx-yt-meta small{ color:#c8d0e4; }

/* ---------- player-sheet like row (injected by music-app) ---------- */
.fx-ps-row{ display:flex; gap:8px; align-items:center; }
.fx-ps-like[aria-pressed="true"]{ color:#5ff3ff; }

@media (max-width:420px){
  #view-music .fx-music-panel{ padding:12px 8px; }
  #view-music .fx-tabs > button{ font-size:13px; padding:8px 6px; }
}
@media (prefers-reduced-motion: reduce){
  #view-music .fx-tile-m, #view-music .fx-tile-m .fx-cover::after{ transition:none; }
}
