/* ============================================================
   app.css — Spotify x Sri Kotala portfolio (single-page app)
   The whole site is the player. Sidebar + main + bottom bar.
   ============================================================ */

:root {
  --gold: #ffc72c;
  --gold-bright: #ffd75e;
  --maroon: #7a0019;
  --maroon-bright: #93122f;
}

/* ---- Theme palettes (scoped to the app) ---- */
.sp {
  --bg: #000000;
  --panel: #121212;
  --panel-2: #181818;
  --card: #181818;
  --card-hover: #282828;
  --elevated: #2a2a2a;
  --text: #ffffff;
  --muted: #b3b3b3;
  --line: #2a2a2a;
  --bar: #181818;
}
:root[data-theme="light"] .sp {
  --bg: #f2f2f2;
  --panel: #ffffff;
  --panel-2: #f5f5f5;
  --card: #ffffff;
  --card-hover: #ebebeb;
  --elevated: #ffffff;
  --text: #121212;
  --muted: #5c5c5c;
  --line: #e4e4e4;
  --bar: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body.sp-body {
  font-family: "Roboto", system-ui, -apple-system, sans-serif;
  background: var(--bg, #000);
  overflow: hidden;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; }

.sp {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-rows: 1fr 90px;
  grid-template-areas: "side main" "player player";
  gap: 8px;
  padding: 8px;
  background: var(--bg);
  color: var(--text);
}

/* ===================== SIDEBAR ===================== */
.side { grid-area: side; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.side-top { background: var(--panel); border-radius: 10px; padding: 8px 6px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px 14px; font-weight: 800; font-size: 1.05rem; color: var(--text);
}
.brand { cursor: pointer; }
.brand img { width: 32px; height: 32px; }
.brand .g { color: var(--gold); }

.side-nav { display: flex; flex-direction: column; }
.side-nav a {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 14px; border-radius: 6px;
  color: var(--muted); font-weight: 700; font-size: 0.96rem; cursor: pointer;
  transition: color .15s;
}
.side-nav a:hover, .side-nav a.is-active { color: var(--text); }
.side-nav a svg { width: 22px; height: 22px; flex: 0 0 auto; }

.side-lib {
  background: var(--panel); border-radius: 10px;
  flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden;
}
.lib-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 8px; color: var(--muted); font-weight: 800; font-size: 0.92rem;
}
.lib-list { list-style: none; margin: 0; padding: 4px 8px 12px; overflow-y: auto; }
.lib-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 10px; border-radius: 8px; cursor: pointer; transition: background .15s;
}
.lib-list li:hover, .lib-list li.is-active { background: var(--card-hover); }
.lib-cover {
  width: 46px; height: 46px; border-radius: 6px; flex: 0 0 auto; overflow: hidden;
  display: grid; place-items: center; font-size: 1.2rem; color: #fff;
}
.lib-cover img { width: 100%; height: 100%; object-fit: cover; }
.lib-meta { min-width: 0; }
.lib-name { font-weight: 600; font-size: 0.92rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-sub { font-size: 0.78rem; color: var(--muted); }

/* ===================== MAIN ===================== */
.main {
  grid-area: main; background: var(--panel); border-radius: 10px;
  overflow-y: auto; min-height: 0; position: relative;
}
.main-head {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 24px;
  background: color-mix(in srgb, var(--header-tint, var(--panel)) 70%, transparent);
  backdrop-filter: blur(10px);
  transition: background .3s;
}
:root[data-theme="light"] .main-head {
  background: color-mix(in srgb, var(--header-tint, var(--panel)) 14%, var(--panel));
}
.nav-arrows { display: flex; gap: 8px; }
.round-btn {
  width: 34px; height: 34px; border-radius: 999px; border: none;
  background: rgba(0,0,0,.5); color: #fff; cursor: pointer; display: grid; place-items: center;
}
:root[data-theme="light"] .round-btn { background: rgba(0,0,0,.12); color: #000; }
.round-btn svg { width: 20px; height: 20px; }
.search-box { position: relative; flex: 1; max-width: 360px; display: none; }
.search-box.show { display: block; }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search-box input {
  width: 100%; padding: 11px 14px 11px 40px; border-radius: 999px; border: 1px solid transparent;
  background: var(--elevated); color: var(--text); font-size: .9rem; font-family: inherit; outline: none;
}
.search-box input:focus { border-color: var(--text); }
.head-spacer { flex: 1; }
.theme-btn {
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--elevated); color: var(--text); cursor: pointer; display: grid; place-items: center;
}
.theme-btn svg { width: 20px; height: 20px; }

/* language / translate control */
.lang { position: relative; }
.lang-btn { width: auto; padding: 0 12px; gap: 7px; display: flex; align-items: center; }
.lang-btn svg { width: 18px; height: 18px; }
.lang-code { font-size: .78rem; font-weight: 700; letter-spacing: .03em; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 50; min-width: 150px;
  background: var(--elevated); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,.5); overflow: hidden; padding: 6px;
  animation: queue-in .16s cubic-bezier(0.34,1.56,0.64,1); transform-origin: top right;
}
.lang-opt {
  display: flex; width: 100%; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 7px;
  border: none; background: none; color: var(--text); font-size: .9rem; font-weight: 600; cursor: pointer; text-align: left;
}
.lang-opt:hover { background: var(--card-hover); }
.lang-opt.is-active { color: var(--gold); }
.lang-opt.is-active::after { content: "✓"; margin-left: auto; }
.theme-btn:hover { transform: translateY(-1px); }
.theme-btn:active { transform: scale(0.92); }
.theme-btn { transition: transform 0.18s ease, border-color 0.2s ease; }

/* Animated sun <-> moon toggle */
.theme-ico { overflow: visible; }
.theme-ico .core,
.theme-ico .mask-c,
.theme-ico .rays,
.theme-ico .rays line {
  transform-origin: 12px 12px;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}
/* Light theme = full sun with rays */
.theme-ico .mask-c { transform: translate(20px, -20px); }
.theme-ico .core { transform: scale(0.85); }
.theme-ico .rays { opacity: 1; transform: rotate(0deg); }
.theme-ico .rays line { opacity: 1; transform: scale(1); }

/* Dark theme = crescent moon, rays retract */
[data-theme="dark"] .theme-ico .mask-c { transform: translate(5px, -4px); }
[data-theme="dark"] .theme-ico .core { transform: scale(1.15) rotate(-18deg); }
[data-theme="dark"] .theme-ico .rays { opacity: 0; transform: rotate(-60deg); }
[data-theme="dark"] .theme-ico .rays line { opacity: 0; transform: scale(0.2); }

.view { padding: 0; }
.view-pad { padding: 16px 24px 48px; }

/* greeting + quick tiles (Home) */
.greeting { font-size: 2rem; font-weight: 800; margin: 14px 0 4px; letter-spacing: -.02em; }
.greeting-sub { margin: 0 0 20px; color: var(--muted); font-size: 1rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile {
  display: flex; align-items: center; gap: 14px; height: 72px;
  background: var(--card-hover); border-radius: 6px; overflow: hidden; cursor: pointer;
  position: relative; transition: background .15s, transform .3s cubic-bezier(.22,.72,.24,1.06), box-shadow .3s ease;
}
.tile:hover {
  background: var(--elevated); z-index: 3;
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 16px 30px -8px rgba(255,199,44,.45), 0 8px 22px rgba(0,0,0,.5);
}
.tile-cover { width: 72px; height: 72px; flex: 0 0 auto; overflow: hidden; display: grid; place-items: center; font-size: 1.5rem; color: #fff; }
.tile-cover img { width: 100%; height: 100%; object-fit: cover; }
.tile-name { font-weight: 700; font-size: 0.98rem; }
.tile-fab {
  margin-left: auto; margin-right: 14px; width: 42px; height: 42px; border-radius: 999px;
  background: var(--gold); border: none; display: grid; place-items: center; cursor: pointer;
  opacity: 0; transform: translateY(8px); transition: .2s; box-shadow: 0 8px 18px rgba(0,0,0,.4);
}
.tile:hover .tile-fab { opacity: 1; transform: none; }
.tile-fab svg { width: 20px; height: 20px; color: #000; }

/* shelves */
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 14px; }
.shelf-head h2 { font-size: 1.45rem; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.show-all { color: var(--muted); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; background: none; border: none; }
.show-all:hover { color: var(--text); text-decoration: underline; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.card {
  background: var(--card); border-radius: 8px; padding: 14px; cursor: pointer;
  transition: background .2s, transform .3s cubic-bezier(.22,.72,.24,1.06), box-shadow .3s ease; position: relative;
}
.card:hover {
  background: var(--card-hover); z-index: 3;
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 22px 44px -10px rgba(255,199,44,.42), 0 12px 26px rgba(0,0,0,.55);
}
@media (prefers-reduced-motion: reduce) {
  .tile, .card { transition: background .2s; }
  .tile:hover, .card:hover { transform: none; }
}

/* ===== Scroll-reveal: staggered fade + rise as content enters view ===== */
.reveal { opacity: 0; transform: translateY(14px); will-change: opacity, transform; }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--ri, 0) * 55ms);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
}

/* ===== Equalizer accent (Home greeting) — animates only while music plays ===== */
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: .78em; margin-left: 14px; vertical-align: baseline; }
.eq i {
  width: 3px; height: 30%; border-radius: 2px; background: var(--gold);
  transform-origin: bottom;
}
.sp.playing .eq i { animation: eq-bounce .9s ease-in-out infinite; }
.sp.playing .eq i:nth-child(2) { animation-duration: .62s; animation-delay: -.18s; }
.sp.playing .eq i:nth-child(3) { animation-duration: 1.05s; animation-delay: -.35s; }
.sp.playing .eq i:nth-child(4) { animation-duration: .74s; animation-delay: -.5s; }
@keyframes eq-bounce { 0%,100% { height: 22%; } 50% { height: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .sp.playing .eq i { animation: none; height: 45%; }
}
.card-art {
  width: 100%; aspect-ratio: 1; border-radius: 6px; margin-bottom: 12px; overflow: hidden;
  display: grid; place-items: center; font-size: 2.4rem; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.4); position: relative;
}
.card-art img { width: 100%; height: 100%; object-fit: cover; }
/* document thumbnails: page renders crop from the top; flat icons are contained with padding */
.doc-art img.fit-cover { object-fit: cover; object-position: top center; }
.doc-art img.fit-contain { object-fit: contain; padding: 16px; }
.card-art.round { border-radius: 999px; }
.card-title { font-weight: 700; font-size: 0.96rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub { color: var(--muted); font-size: 0.82rem; margin-top: 4px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-fab {
  position: absolute; right: 18px; top: 152px; width: 46px; height: 46px; border-radius: 999px;
  background: var(--gold); border: none; display: grid; place-items: center; cursor: pointer;
  opacity: 0; transform: translateY(8px); transition: .2s; box-shadow: 0 8px 18px rgba(0,0,0,.45); z-index: 2;
}
.card:hover .card-fab { opacity: 1; transform: none; }
.card-fab:hover { background: var(--gold-bright); transform: scale(1.06); }
.card-fab svg { width: 22px; height: 22px; color: #000; }

/* ===================== ARTIST / DETAIL HEADER ===================== */
.hero {
  display: flex; align-items: flex-end; gap: 24px;
  padding: 64px 24px 24px;
  background: linear-gradient(180deg, var(--hero-c, #333) 0%, color-mix(in srgb, var(--hero-c, #333) 40%, var(--panel)) 100%);
}
.hero-cover {
  width: 220px; height: 220px; flex: 0 0 auto; border-radius: 8px;
  box-shadow: 0 16px 50px rgba(0,0,0,.5); display: grid; place-items: center; font-size: 5rem; overflow: hidden; color: #fff;
}
.hero-cover.round { border-radius: 999px; }
.hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.hero-kind { font-size: .8rem; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.verified { color: #3d91f4; }
.hero-title { font-size: clamp(2.4rem, 6vw, 5.5rem); font-weight: 900; margin: 8px 0 14px; letter-spacing: -.03em; line-height: 1; color: #fff; }
:root[data-theme="light"] .hero-title { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero-meta { color: rgba(255,255,255,.85); font-size: .92rem; font-weight: 600; }
.hero-meta b { color: #fff; }

/* action bar under hero */
.action-bar { display: flex; align-items: center; gap: 24px; padding: 22px 24px; }
.play-big {
  width: 56px; height: 56px; border-radius: 999px; background: var(--gold); border: none;
  display: grid; place-items: center; cursor: pointer; transition: transform .12s, background .15s;
}
.play-big:hover { transform: scale(1.06); background: var(--gold-bright); }
.play-big svg { width: 26px; height: 26px; color: #000; }
.ghost-btn {
  border: 1px solid var(--muted); color: var(--text); background: none; border-radius: 999px;
  padding: 8px 18px; font-weight: 700; font-size: .82rem; cursor: pointer;
}
.ghost-btn:hover { border-color: var(--text); transform: scale(1.03); }

/* about card */
.about-card { display: flex; gap: 26px; align-items: center; background: var(--card-hover); border-radius: 12px; padding: 22px; margin: 8px 0 6px; }
.about-card img { width: 150px; height: 150px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
.about-card p { margin: 0 0 12px; line-height: 1.6; color: var(--text); font-size: .98rem; }
.about-card p:last-child { margin-bottom: 0; }
.about-lead { margin: 0 0 16px; font-size: 1.5rem; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.about-lead .highlight { color: var(--gold); }
.edu-block { display: flex; align-items: center; gap: 20px; }
.edu-block .tracklist { flex: 1; min-width: 0; }
.edu-logo { width: 120px; height: auto; flex: 0 0 auto; object-fit: contain; }
@media (max-width: 640px) { .edu-block { flex-direction: column; align-items: flex-start; } .edu-logo { width: 90px; } }

/* tracklist (experience / popular / details) */
.tracklist { margin: 8px 0 0; }
.track-head, .track-row {
  display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 14px;
  padding: 8px 14px; border-radius: 6px;
}
.track-head { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line); border-radius: 0; padding-bottom: 10px; }
.track-row { cursor: default; transition: background .15s; }
.track-row:hover { background: var(--card-hover); }
.track-row.link { cursor: pointer; }
.track-idx { color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.track-main { min-width: 0; }
.track-name { font-weight: 600; font-size: .98rem; color: var(--text); }
.track-sub { color: var(--muted); font-size: .82rem; margin-top: 2px; }
.track-meta { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.section-label { font-size: 1.15rem; font-weight: 800; margin: 30px 0 6px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.tag { background: var(--card-hover); color: var(--text); border-radius: 999px; padding: 6px 14px; font-size: .8rem; font-weight: 600; }

/* photo grid + lightbox */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.photo { border-radius: 8px; overflow: hidden; cursor: pointer; aspect-ratio: 1; position: relative; background: var(--card-hover); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.photo:hover img { transform: scale(1.06); }
.photo-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 10px; font-size: .82rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); opacity: 0; transition: opacity .2s; }
.photo:hover .photo-cap { opacity: 1; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.show { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lightbox-cap { position: absolute; bottom: 24px; color: #fff; font-size: .95rem; }
.lightbox-close { position: absolute; top: 22px; right: 26px; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }

/* connect */
.connect-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 12px; }
.connect-card {
  background: var(--card); border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 10px;
  cursor: pointer; transition: background .2s, transform .15s; color: var(--text);
}
.connect-card:hover { background: var(--card-hover); transform: translateY(-3px); }
.connect-card .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.connect-card .ico svg { width: 24px; height: 24px; }
.connect-card h3 { margin: 4px 0 0; font-size: 1.05rem; }
.connect-card span { color: var(--muted); font-size: .85rem; }
.connect-embed { margin-top: 24px; }
.connect-embed iframe { width: 100%; max-width: 560px; aspect-ratio: 16/9; border: 0; border-radius: 12px; }

/* ===================== PLAYER ===================== */
.player {
  grid-area: player; background: var(--bar); border-radius: 10px;
  display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center;
  padding: 0 16px; gap: 16px; position: relative; overflow: hidden;
}
.viz { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .5; pointer-events: none; }
.player > *:not(.viz) { position: relative; z-index: 1; }
.now { display: flex; align-items: center; gap: 12px; min-width: 0; }
.now-art { width: 56px; height: 56px; border-radius: 6px; flex: 0 0 auto; display: grid; place-items: center; font-size: 1.4rem; color: #fff; }
.now-title { font-weight: 700; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-artist { color: var(--muted); font-size: .78rem; }
.center { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.controls { display: flex; align-items: center; gap: 20px; }
.ctrl { background: none; border: none; cursor: pointer; color: var(--muted); display: grid; place-items: center; position: relative; transition: color .15s, transform .1s; }
.ctrl:hover { color: var(--text); }
.ctrl:active { transform: scale(.9); }
.ctrl svg { width: 18px; height: 18px; }
.ctrl.on { color: var(--gold); }
.ctrl-play { width: 38px; height: 38px; border-radius: 999px; background: var(--text); }
.ctrl-play:hover { transform: scale(1.06); }
.ctrl-play svg { color: var(--bar); width: 18px; height: 18px; }
.progress { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 540px; }
.time { font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 34px; text-align: center; }
.range { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 999px; background: var(--line); cursor: pointer; flex: 1; outline: none; }
.range.fill { background: linear-gradient(90deg, var(--gold) var(--f,0%), var(--line) 0); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--text); opacity: 0; transition: opacity .15s; }
.range:hover::-webkit-slider-thumb { opacity: 1; }
.range::-moz-range-thumb { width: 12px; height: 12px; border: none; border-radius: 50%; background: var(--text); }
.right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.vol { display: flex; align-items: center; gap: 8px; width: 150px; }
.vol .range { max-width: 110px; }

/* ===================== PLAYLIST PANEL ===================== */
.queue-panel {
  position: fixed; right: 24px; bottom: 106px; z-index: 40;
  width: 340px; max-width: calc(100vw - 32px);
  background: var(--elevated); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.5); overflow: hidden;
  transform-origin: bottom right;
  animation: queue-in .18s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes queue-in { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
.queue-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px 10px; font-weight: 700; font-size: .95rem;
  border-bottom: 1px solid var(--line);
}
.queue-count { color: var(--muted); font-size: .72rem; font-weight: 500; margin-left: auto; }
.queue-back { display: grid; place-items: center; width: 26px; height: 26px; margin: -4px 4px -4px -4px; border: none; background: none; color: var(--muted); cursor: pointer; border-radius: 999px; }
.queue-back:hover { color: var(--text); background: var(--card-hover); }
.queue-back svg { width: 20px; height: 20px; }
.queue-chev { width: 18px; height: 18px; flex: 0 0 auto; color: var(--muted); }
.queue-item[data-pl]:hover .queue-chev { color: var(--text); }
.queue-playbtn { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 999px; border: none; background: var(--gold); color: #000; display: grid; place-items: center; cursor: pointer; transition: transform .1s, background .15s, opacity .15s; }
.queue-playbtn svg { width: 16px; height: 16px; }
.queue-playbtn:hover { background: var(--gold-bright); transform: scale(1.08); }
.queue-item[data-pl] .queue-playbtn { opacity: 0; }
.queue-item[data-pl]:hover .queue-playbtn { opacity: 1; }
.queue-playbtn.head-play { width: 30px; height: 30px; margin: -4px 0; }
.queue-list { max-height: 320px; overflow-y: auto; padding: 6px; }
.queue-item {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px;
  cursor: pointer; transition: background .15s;
}
.queue-item:hover { background: var(--card-hover); }
.queue-item.is-current { background: var(--card-hover); }
.queue-art { width: 40px; height: 40px; border-radius: 6px; flex: 0 0 auto; background-size: cover; background-position: center; }
.yt-hide { position: fixed; left: -9999px; bottom: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.queue-info { min-width: 0; flex: 1; }
.queue-title { font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-item.is-current .queue-title { color: var(--gold); }
.queue-artist { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-eq { display: none; flex: 0 0 auto; align-items: flex-end; gap: 2px; height: 14px; }
.queue-item.is-current.is-playing .queue-eq { display: flex; }
.queue-eq span { width: 3px; background: var(--gold); border-radius: 2px; animation: eq 0.9s ease-in-out infinite; }
.queue-eq span:nth-child(1) { animation-delay: -0.3s; }
.queue-eq span:nth-child(2) { animation-delay: -0.6s; }
.queue-eq span:nth-child(3) { animation-delay: -0.15s; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 14px; } }

.sp.playing .ctrl-play { animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(122,0,25,.55);} 70% { box-shadow: 0 0 0 12px rgba(122,0,25,0);} 100% { box-shadow: 0 0 0 0 rgba(122,0,25,0);} }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 820px) {
  .sp { grid-template-columns: 1fr; grid-template-rows: 1fr 96px; grid-template-areas: "main" "player"; }
  .side { display: none; }
  .player { grid-template-columns: 1.3fr 2fr; }
  .right { display: none; }
  .hero { flex-direction: column; align-items: flex-start; padding-top: 40px; }
  .hero-cover { width: 150px; height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  .sp.playing .ctrl-play { animation: none; }
  * { transition: none !important; }
}

.fade-view { animation: fadev .35s ease; }
@keyframes fadev { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: none;} }
