/* Red Pill Room — Spotify-lookalike player & synced lyrics (scoped strictly to body.al-room-player) */

body.al-room-player { padding-bottom: 92px; }
body.al-room-player #trd-pod .tp-dock { display: none !important; }
body.al-room-player .trd-sup { bottom: 96px; right: 16px; }
body.al-room-player .trd-oap { bottom: 96px; }
body.al-room-player.al-sheet-open,
body.al-room-player.al-theater-open { overflow: hidden; }
body.al-room-player.al-sheet-open .trd-sup,
body.al-room-player.al-sheet-open .trd-oap,
body.al-room-player.al-sheet-open .trd-onair,
body.al-room-player.al-sheet-open #trd-suggest-fx .trs-tab,
body.al-room-player.al-theater-open .trd-sup,
body.al-room-player.al-theater-open .trd-oap,
body.al-room-player.al-theater-open .trd-onair,
body.al-room-player.al-theater-open #trd-suggest-fx .trs-tab { display: none !important; }

.ap-exp[hidden],
.ap-repeat-one[hidden],
.ap-pill-btn[hidden] { display: none !important; }

@media (max-width: 899px) {
  body.al-room-player { padding-bottom: 76px; }
  body.al-room-player .trd-sup { bottom: 78px; right: 10px; }
  body.al-room-player .trd-oap { bottom: 78px; }
}

/* ---------- Workspace shell ---------- */
.al-player-sec {
  scroll-margin-top: 84px;
  padding: clamp(22px, 3vw, 38px) 0 clamp(26px, 3.6vw, 44px);
  border-bottom: 1px solid var(--border);
  background: radial-gradient(900px 440px at 78% 0%, rgba(225, 6, 0, .09), transparent 65%);
}

.al-ws-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.al-ws-head h2 {
  font-size: clamp(1.7rem, 3.3vw, 2.5rem);
  margin-top: 8px;
  letter-spacing: -.025em;
}

.al-ws-sub {
  color: var(--muted);
  font-size: 14px;
}

[data-page-mode="song"] .ap-stage { order: -1; }

.al-ws-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

@media (max-width: 980px) {
  .al-ws-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Shared buttons & icons ---------- */
.ap-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: color .18s, background .18s, border-color .18s, transform .15s;
}

.ap-icon-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.ap-icon-btn:hover,
.ap-icon-btn:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, .07);
}

.ap-icon-btn.is-active {
  color: var(--accent-ink);
}

.ap-icon-btn.is-active::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-ink);
  transform: translateX(-50%);
}

.ap-repeat-one {
  position: absolute;
  top: 4px;
  right: 4px;
  font: 700 9px/1 var(--font-body);
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 1px 3.5px;
}

.ap-play-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--text);
  color: #050505;
  cursor: pointer;
  padding: 0;
  transition: transform .16s var(--ease), background .18s, color .18s, box-shadow .18s;
}

.ap-play-circle:hover {
  transform: scale(1.06);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 22px rgba(225, 6, 0, .4);
}

.ap-play-circle svg {
  width: 18px;
  height: 18px;
  display: block;
}

.ap-play-circle.is-accent {
  background: var(--accent);
  color: #fff;
  width: 48px;
  height: 48px;
  box-shadow: 0 8px 24px rgba(225, 6, 0, .35);
}

.ap-play-circle.is-accent:hover {
  background: var(--accent-hover);
}

.ap-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font: 600 13px/1 var(--font-body);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .18s, background .18s, color .18s;
}

.ap-pill-btn:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: var(--accent-2);
}

.ap-pill-btn svg {
  width: 15px;
  height: 15px;
}

/* ---------- Left column: Spotify Queue & Tracklist ---------- */
.ap-queue-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.ap-queue-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(225, 6, 0, .12), rgba(20, 20, 20, .6));
  border-bottom: 1px solid var(--border);
}

.ap-queue-meta {
  font-size: 13px;
  color: var(--muted);
  margin-right: auto;
}

.ap-queue-meta b {
  color: var(--text);
  font-weight: 700;
}

.ap-search-wrap {
  position: relative;
  flex: 1 1 180px;
  max-width: 230px;
}

.ap-search-wrap svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--muted);
  pointer-events: none;
}

.ap-search {
  width: 100%;
  height: 34px;
  padding: 0 12px 0 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #080808;
  color: var(--text);
  font: 400 13px/1 var(--font-body);
}

.ap-search::placeholder {
  color: #888;
}

.ap-search:focus {
  outline: none;
  border-color: var(--accent);
}

.ap-track-hdr {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 50px;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(42, 18, 18, .7);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8b8b8b;
}

.ap-track-hdr span:last-child {
  text-align: right;
}

.ap-tracklist {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  max-height: 604px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #3b1717 transparent;
}

.ap-row {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 50px;
  gap: 10px;
  align-items: center;
  padding: 9px 16px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background .15s, border-color .15s;
}

.ap-row:hover {
  background: rgba(255, 255, 255, .045);
}

.ap-row.is-current {
  background: linear-gradient(90deg, rgba(225, 6, 0, .14), rgba(255, 255, 255, .03));
  border-left-color: var(--accent);
}

.ap-row-num {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font: 600 13px/1 var(--font-body);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.ap-row-play {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0;
}

.ap-row-play svg {
  width: 15px;
  height: 15px;
}

.ap-row:hover .ap-row-n,
.ap-row:focus-within .ap-row-n,
.ap-row.is-current .ap-row-n {
  opacity: 0;
}

.ap-row:hover .ap-row-play,
.ap-row:focus-within .ap-row-play,
.ap-row.is-current:not(.is-playing) .ap-row-play {
  display: flex;
}

.ap-row.is-playing:hover .ap-row-play {
  display: flex;
}

.ap-row.is-playing:hover .ap-eq {
  display: none;
}

/* 3-bar playing equalizer */
.ap-eq {
  display: none;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 14px;
}

.ap-row.is-playing .ap-eq {
  display: flex;
}

.ap-eq i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--accent-ink);
  animation: ap-eq .75s ease-in-out infinite alternate;
}

.ap-eq i:nth-child(2) { animation-delay: .22s; height: 12px; }
.ap-eq i:nth-child(3) { animation-delay: .44s; height: 8px; }

@keyframes ap-eq {
  0% { height: 4px; }
  100% { height: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .ap-eq i { animation: none; height: 10px; }
}

.ap-row-info {
  min-width: 0;
}

.ap-row-title-line {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.ap-row-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ap-row.is-current .ap-row-title {
  color: var(--accent-ink);
}

.ap-exp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: #3a3a3a;
  color: #0b0b0b;
  font: 900 10px/1 var(--font-body);
}

.ap-badge-lyrics {
  flex: none;
  font: 700 10.5px/1 var(--font-body);
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(225, 6, 0, .18);
  border: 1px solid rgba(225, 6, 0, .45);
  color: #ff9c9f;
}

.ap-row-sub {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ap-row-acts {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ap-row-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
  background: transparent;
  transition: color .15s, background .15s, border-color .15s;
}

.ap-row-share:hover {
  color: var(--text);
  background: rgba(225, 6, 0, .18);
  border-color: rgba(225, 6, 0, .5);
}

.ap-row-share svg {
  width: 14px;
  height: 14px;
}

.ap-row-dur {
  font-size: 13px;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ap-row-prog {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.ap-row-prog i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
}

.ap-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Right column: Spotify Now Playing + Synced Lyrics Stage ---------- */
.ap-stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ap-np-card {
  background: linear-gradient(160deg, #1b0707 0%, #0d0b0b 52%, #0b0b0b 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}

.ap-np-top {
  display: flex;
  gap: 16px;
  align-items: center;
}

.ap-np-art {
  width: 104px;
  height: 104px;
  border-radius: 6px;
  object-fit: cover;
  flex: none;
  border: 1px solid #3a1717;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .65);
}

.ap-np-meta {
  min-width: 0;
  flex: 1;
}

.ap-np-kicker {
  font-size: 12px;
  color: var(--accent-ink);
  font-weight: 700;
  margin-bottom: 4px;
}

.ap-np-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.7vw, 2.2rem);
  line-height: 1.02;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ap-np-artist {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.ap-np-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

/* Inline scrub bar inside Now Playing card (useful on both PC & mobile) */
.ap-stage-scrub {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(42, 18, 18, .75);
}

.ap-stage-transport {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.ap-stage-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ap-stage-vol {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 560px) {
  .ap-np-art { width: 84px; height: 84px; }
  .ap-stage-vol { display: none; }
}

/* ---------- Scrub & Volume sliders (shared by stage, bar, and sheet) ---------- */
.ap-scrub-wrap {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
}

.ap-time {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  user-select: none;
}

.ap-time.is-end {
  text-align: right;
  cursor: pointer;
}

.ap-slider {
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
  user-select: none;
}

.ap-slider-track {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  transition: height .12s;
}

.ap-slider:hover .ap-slider-track,
.ap-slider.is-dragging .ap-slider-track {
  height: 6px;
}

.ap-slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: 999px;
  background: var(--text);
  transition: background .15s;
}

.ap-slider:hover .ap-slider-fill,
.ap-slider.is-dragging .ap-slider-fill {
  background: var(--accent);
}

.ap-slider-knob {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .65);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .12s;
}

.ap-slider:hover .ap-slider-knob,
.ap-slider.is-dragging .ap-slider-knob {
  transform: translate(-50%, -50%) scale(1);
}

.ap-vol-slider {
  width: 92px;
}

/* ---------- Spotify-style Synced Lyrics Panel ---------- */
.ap-lyrics-card {
  position: relative;
  border-radius: 10px;
  border: 1px solid #3c1212;
  background: linear-gradient(170deg, #4b0909 0%, #240707 46%, #120606 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ap-lyrics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(5, 5, 5, .28);
}

.ap-lyrics-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.ap-lyrics-label span.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(225, 6, 0, .8);
}

.ap-lyrics-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ap-lyrics-scroll {
  position: relative;
  height: 360px;
  overflow-y: auto;
  padding: 26px 20px 80px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .22) transparent;
}

@media (max-width: 899px) {
  .ap-lyrics-scroll {
    height: 300px;
    padding: 18px 16px 64px;
  }
}

.ap-l-line {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  padding: 7px 10px 7px 14px;
  margin: 2px 0;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: clamp(1.12rem, 1.8vw, 1.45rem);
  font-weight: 700;
  line-height: 1.38;
  color: rgba(255, 255, 255, .36);
  cursor: pointer;
  transform-origin: left center;
  transition: color .22s, transform .22s var(--ease), background .2s, border-color .2s;
}

.ap-l-line:hover {
  color: rgba(255, 255, 255, .86);
  background: rgba(255, 255, 255, .05);
}

.ap-l-line.is-past {
  color: rgba(255, 255, 255, .58);
}

.ap-l-line.is-active {
  color: #ffffff;
  border-left-color: var(--accent-hover);
  background: rgba(255, 255, 255, .07);
  transform: scale(1.015);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .55);
}

.ap-l-break {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
}

.ap-l-break i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .42);
  display: inline-block;
}

.ap-l-break.is-active i {
  background: #fff;
  animation: ap-dot 1.2s ease-in-out infinite;
}

.ap-l-break.is-active i:nth-child(2) { animation-delay: .2s; }
.ap-l-break.is-active i:nth-child(3) { animation-delay: .4s; }

@keyframes ap-dot {
  0%, 100% { opacity: .35; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1.2); }
}

.ap-lyrics-foot {
  padding: 10px 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, .62);
  background: rgba(5, 5, 5, .28);
  border-top: 1px solid rgba(255, 255, 255, .07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ap-resync-btn {
  position: absolute;
  right: 16px;
  bottom: 50px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(11, 11, 11, .92);
  color: #fff;
  font: 700 12px/1 var(--font-body);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .6);
}

.ap-resync-btn[hidden] {
  display: none;
}

.ap-lyrics-empty {
  padding: 36px 20px;
  text-align: center;
  color: rgba(255, 255, 255, .78);
}

.ap-lyrics-empty p {
  margin-bottom: 14px;
  font-size: 14.5px;
}

/* ---------- Share Song Card ---------- */
.ap-share-card {
  scroll-margin-top: 84px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}

.ap-share-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.ap-share-head h3 {
  font-size: 1.35rem;
  letter-spacing: -.01em;
}

.ap-share-url {
  font-size: 12.5px;
  color: var(--accent-ink);
  text-decoration: none;
  word-break: break-all;
}

.ap-share-url:hover {
  text-decoration: underline;
}

.ap-share-slot .shr {
  margin: 0;
  background: var(--surface-2);
}

.ap-share-slot .shr-btns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 520px) {
  .ap-share-slot .shr-btns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ap-share-pending {
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Desktop Fixed Bottom Spotify Bar ---------- */
.ap-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483200;
  height: 82px;
  background: rgba(8, 8, 8, .96);
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .75);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.45fr) minmax(190px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 0 20px;
}

.ap-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ap-bar-art {
  width: 54px;
  height: 54px;
  border-radius: 4px;
  object-fit: cover;
  flex: none;
  border: 1px solid var(--border);
}

.ap-bar-meta {
  min-width: 0;
}

.ap-bar-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ap-bar-artist {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ap-bar-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.ap-bar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ap-bar-controls .ap-play-circle {
  width: 36px;
  height: 36px;
}

.ap-bar-controls .ap-play-circle svg {
  width: 16px;
  height: 16px;
}

.ap-bar-center .ap-scrub-wrap {
  width: 100%;
  max-width: 560px;
}

.ap-bar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* ---------- Mobile Sticky Mini-Bar ---------- */
.ap-mbar {
  display: none;
}

@media (max-width: 899px) {
  .ap-bar {
    display: none;
  }

  .ap-mbar {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 2147483200;
    height: 60px;
    border-radius: 10px;
    background: linear-gradient(90deg, #210707 0%, #120b0b 100%);
    border: 1px solid #3c1414;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .82);
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    overflow: hidden;
  }

  .ap-mbar-art {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
  }

  .ap-mbar-open {
    min-width: 0;
    background: transparent;
    border: 0;
    padding: 4px 0;
    text-align: left;
    color: inherit;
    cursor: pointer;
  }

  .ap-mbar-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ap-mbar-sub {
    font-size: 11.5px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ap-mbar-prog {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.5px;
    background: rgba(255, 255, 255, .14);
  }

  .ap-mbar-prog i {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--accent);
  }
}

/* ---------- Full-Screen Lyrics Theater Modal (PC + Tablet) ---------- */
.ap-theater {
  position: fixed;
  inset: 0 0 82px 0;
  z-index: 2147483500;
  background: linear-gradient(175deg, #4b0808 0%, #1d0505 45%, #090404 100%);
  display: flex;
  flex-direction: column;
}

.ap-theater[hidden] {
  display: none;
}

@media (max-width: 899px) {
  .ap-theater {
    inset: 0;
  }
}

.ap-theater-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px clamp(16px, 4vw, 42px);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  background: rgba(5, 5, 5, .32);
}

.ap-theater-song {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ap-theater-song img {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  object-fit: cover;
}

.ap-theater-song h2 {
  font-size: 1.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ap-theater-song p {
  font-size: 13px;
  color: var(--muted);
}

.ap-theater-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 42px clamp(20px, 12vw, 220px) 120px;
  scroll-behavior: smooth;
}

.ap-theater-scroll .ap-l-line {
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  padding: 10px 14px 10px 18px;
}

/* ---------- Mobile Full-Screen Now Playing Sheet ---------- */
.ap-sheet {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  background: linear-gradient(180deg, #3c0808 0%, #140606 46%, #050505 100%);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: env(safe-area-inset-top, 10px) 18px calc(env(safe-area-inset-bottom, 16px) + 22px);
}

.ap-sheet[hidden] {
  display: none;
}

.ap-sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0 12px;
}

.ap-sheet-ctx {
  text-align: center;
  min-width: 0;
}

.ap-sheet-ctx small {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, .68);
}

.ap-sheet-ctx b {
  display: block;
  font-size: 13px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ap-sheet-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  margin-bottom: 14px;
}

.ap-sheet-tab {
  height: 32px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .72);
  font: 700 12.5px/1 var(--font-body);
  cursor: pointer;
}

.ap-sheet-tab.is-on {
  background: var(--accent);
  color: #fff;
}

.ap-sheet-art-wrap {
  display: flex;
  justify-content: center;
  margin: 6px 0 18px;
}

.ap-sheet-art {
  width: min(76vw, 310px);
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .75);
  border: 1px solid rgba(255, 255, 255, .12);
}

.ap-sheet-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ap-sheet-meta h2 {
  font-size: 1.9rem;
  line-height: 1.02;
}

.ap-sheet-meta p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 3px;
}

.ap-sheet-transport {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 12px;
}

.ap-sheet-transport .ap-play-circle {
  width: 62px;
  height: 62px;
}

.ap-sheet-transport .ap-play-circle svg {
  width: 26px;
  height: 26px;
}

.ap-sheet-vol {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 16px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .08);
}

.ap-sheet-vol .ap-slider {
  flex: 1;
}

.ap-sheet-lpreview {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(175deg, #5c0c0c 0%, #2a0707 100%);
  padding: 14px;
}

.ap-sheet-lpreview-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
}

.ap-sheet-lpreview-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.ap-sheet-lpreview-lines .is-cur {
  color: #fff;
}

.ap-sheet-lpreview-lines .is-dim {
  color: rgba(255, 255, 255, .52);
}

.ap-sheet-lyrics-pane {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.ap-sheet-lyrics-pane .ap-lyrics-scroll {
  flex: 1;
  height: auto;
  min-height: 360px;
  max-height: calc(100dvh - 230px);
  padding: 14px 4px 56px;
}

.ap-sheet-mini-ctrl {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.ap-sheet-queue-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(11, 11, 11, .85);
}

/* ---------- Song Share Page (/album/enjoy-the-show/) ---------- */
.al-song-crumb {
  padding: 14px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.al-song-crumb a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
}

.al-song-crumb a:hover {
  color: var(--accent-ink);
}

.al-song-crumb svg {
  width: 15px;
  height: 15px;
}


/* watch video buttons */
.ap-row-acts {
  gap: 8px;
}
.ap-row-video {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font: 600 12px/1 var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color .18s, background .18s, color .18s;
}
.ap-row-video:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: var(--accent-2);
}
.ap-lyrics-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ap-np-actions {
  gap: 8px;
}

/* in-player lyric video overlay */
.ap-video-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.ap-video-overlay[hidden] { display: none !important; }
.ap-video-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 0, 0, .82);
}
.ap-video-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  background: #110000;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .65);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ap-video-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(42, 18, 18, .85);
}
.ap-video-heading {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ap-video-heading .js-video-kicker {
  font: 600 11px/1.2 var(--font-body);
  letter-spacing: .06em;
  text-transform: lowercase;
  color: var(--muted);
}
.ap-video-heading .js-video-title {
  font: 600 15px/1.25 var(--font-body);
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ap-video-el {
  display: block;
  width: 100%;
  max-height: min(70vh, 720px);
  background: #000;
  vertical-align: middle;
}
body.al-video-open { overflow: hidden; }
/* Hide site chrome that would otherwise sit over the lyric video. Restored when the overlay closes. */
body.al-video-open .trd-onair,
body.al-video-open .trd-oap,
body.al-video-open .trd-sup,
body.al-video-open #trdSup,
body.al-video-open #trd-suggest-fx,
body.al-video-open .trs-tab,
body.al-video-open .trd-pwa-bar,
body.al-video-open .tp-dock,
body.al-video-open .tp-ghost,
body.al-video-open .ap-bar {
  display: none !important;
}
@media (max-width: 720px) {
  .ap-video-overlay { padding: 10px; align-items: flex-end; }
  .ap-video-dialog { width: 100%; border-radius: 14px 14px 10px 10px; }
  .ap-video-el { max-height: 62vh; }
  .ap-row-acts { margin-left: 4px; }
}
