@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/brand/ibm-plex-sans-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-display: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, sans-serif;

  --paper: #0E0F14;
  --surface: #171921;
  --surface-2: #1E212C;
  --surface-hover: #242836;
  --ink: #F5F6FA;
  --ink-2: #C2C7D4;
  --muted: #8B92A5;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --bar-bg: rgba(14, 15, 20, 0.84);

  --c-synphone: #D4142E;
  --c-synphone-hover: #B91027;
  --c-synphone-ink-on-btn: #FFFFFF;
  --c-synphone-text-link: #FF5A6E;
  --c-offline: #10B981;
  --c-syntories: #D4142E;
  --c-danger: #EF4444;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

html[data-theme="light"] {
  --paper: #FFFFFF;
  --surface: #F5F6FA;
  --surface-2: #EBEEF5;
  --surface-hover: #E1E5F0;
  --ink: #14151A;
  --ink-2: #3A3F4D;
  --muted: #5C6375;
  --line: rgba(20, 21, 26, 0.09);
  --line-strong: rgba(20, 21, 26, 0.18);
  --bar-bg: rgba(255, 255, 255, 0.90);

  --c-synphone: #D4142E;
  --c-synphone-hover: #B91027;
  --c-synphone-ink-on-btn: #FFFFFF;
  --c-synphone-text-link: #C41028;
  --c-offline: #047857;
  --c-danger: #DC2626;

  color-scheme: light;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: clip;
  scroll-padding-top: 84px;
  scroll-padding-bottom: 156px;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

select {
  line-height: 1.25;
  vertical-align: middle;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  min-height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm);
  transition: transform 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}

button:active {
  transform: scale(0.98);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.boot-loader {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
}

/* 3-Zone Desktop Shell */
.shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100dvh;
  padding-bottom: 138px; /* Space for mobile mini-player + bottom nav */
}

.sidebar {
  display: none;
}

.context-panel {
  display: none;
}

.main-stage {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  padding: 10px 14px;
  background: var(--bar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.topbar-logo {
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  flex-shrink: 0;
  order: 1;
}

.topbar-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.search-wrap {
  flex: 1 1 100%;
  min-width: 0;
  position: relative;
  order: 3;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  order: 2;
}

@media (min-width: 640px) {
  .topbar {
    flex-wrap: nowrap;
  }
  .search-wrap {
    flex: 1;
    order: 2;
  }
  .topbar-actions {
    order: 3;
  }
}

.search-input {
  width: 100%;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
}

.search-input::placeholder {
  color: var(--muted);
}

.topbar-actions-unused { display: none; }

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.pill-btn:hover {
  background: var(--surface-2);
}

.pill-btn.active {
  background: var(--c-synphone);
  color: var(--c-synphone-ink-on-btn);
  border-color: var(--c-synphone);
  font-weight: 700;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  min-height: 46px;
  border-radius: 999px;
  background: var(--c-synphone);
  color: var(--c-synphone-ink-on-btn);
  font-weight: 700;
  font-size: 14px;
}

.primary-btn:hover {
  background: var(--c-synphone-hover);
}

.primary-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
}

.stage-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Hero Play My Day */
.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 20px;
  background:
    radial-gradient(circle at 88% 18%, rgba(212, 20, 46, 0.24), transparent 52%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: inset 0 3px 0 var(--c-synphone);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.filter-group-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
}

.hero-sub {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  max-width: 60ch;
}

.hero-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.mood-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mood-row .pill-btn.active {
  background: rgba(212, 20, 46, 0.16);
  color: var(--c-synphone-text-link);
  border-color: var(--c-synphone);
  font-weight: 700;
}

/* Horizontal Filter Chips */
.chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  padding-right: 28px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
}

.chips-scroll > .pill-btn {
  flex-shrink: 0;
}

.chips-scroll::-webkit-scrollbar {
  display: none;
}

/* Section Headers */
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sec-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
}

.link-btn {
  color: var(--c-synphone-text-link);
  font-weight: 600;
  font-size: 13px;
  padding: 0 10px;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.media-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  min-width: 0;
}

.media-card:hover {
  border-color: rgba(212, 20, 46, 0.5);
  background: var(--surface-hover);
}

.media-cover {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  background: var(--surface-2);
  overflow: hidden;
}

.media-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(14, 15, 20, 0.78);
  color: #F5F6FA;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.cover-badge {
  position: absolute;
  top: 8px;
  left: 8px;
}

.offline-badge {
  color: var(--c-offline);
  border-color: var(--c-offline);
}

.media-body {
  padding: 11px 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.media-pillar {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-synphone-text-link);
}

.media-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.25;
  color: var(--ink);
}

.media-summary {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.media-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
  font-size: 11.5px;
  color: var(--muted);
}

/* Resume strip */
.resume-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.resume-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
}

.resume-thumb {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.progress-track {
  height: 5px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
  margin-top: 6px;
}

.progress-fill {
  height: 100%;
  background: var(--c-synphone);
  border-radius: 999px;
}

/* Detail View */
.detail-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.detail-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.detail-cover {
  width: 132px;
  height: 132px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.item-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
}

.item-row.playing {
  border-color: var(--c-synphone);
  background: rgba(212, 20, 46, 0.08);
}

/* Audio Game Forensic Workspace */
.game-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.game-zone {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
}

.game-sticky-player {
  position: sticky;
  top: 66px;
  z-index: 20;
  border-top: 3px solid var(--c-synphone);
}

.waveform-box {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 54px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  cursor: pointer;
  margin: 10px 0;
  position: relative;
}

.wave-bar {
  flex: 1;
  min-width: 3px;
  border-radius: 3px;
  background: var(--muted);
  transition: height 0.09s linear, background-color 0.15s ease;
}

.wave-bar.played {
  background: var(--c-synphone);
}

.wave-bar.forensic {
  background: var(--c-synphone-text-link);
}

.fokus-latar-btn.on {
  background: var(--c-synphone);
  color: var(--c-synphone-ink-on-btn);
  box-shadow: 0 0 0 3px rgba(212, 20, 46, 0.25);
  font-weight: 700;
}

.transcript-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
}

.cue-btn {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  align-items: flex-start;
  text-align: left;
  gap: 4px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  width: 100%;
}

.cue-btn.active {
  border-color: var(--c-synphone);
  background: rgba(212, 20, 46, 0.12);
}

.cue-btn.collected {
  border-left: 4px solid var(--c-synphone);
}

.cue-sfx {
  font-size: 12px;
  color: var(--c-synphone-text-link);
  font-weight: 600;
}

.evidence-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.evidence-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  width: 100%;
  font-size: 13px;
}

.evidence-card.selected {
  border-color: var(--c-synphone);
  background: rgba(212, 20, 46, 0.16);
}

/* Focus World */
.focus-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 16px 14px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.focus-ring {
  position: relative;
  width: 164px;
  height: 164px;
  display: grid;
  place-items: center;
}

.focus-ring svg {
  width: 164px;
  height: 164px;
  transform: rotate(-90deg);
}

.focus-time {
  position: absolute;
  font-family: var(--font-display);
  font-size: 34px;
  font-variant-numeric: tabular-nums;
}

/* Persistent Mini Player */
.mini-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 62px;
  z-index: 40;
  height: 68px;
  background: var(--surface);
  border-top: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}

.mini-progress-line {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--c-synphone);
  transition: width 0.2s linear;
}

.mini-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 0;
}

.mini-cover {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.mini-title {
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.mini-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.play-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-synphone);
  color: var(--c-synphone-ink-on-btn);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Bottom Nav */
.mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  height: 62px;
  background: var(--bar-bg);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 4px 6px env(safe-area-inset-bottom, 4px);
}

.mobile-nav.has-desk {
  grid-template-columns: repeat(5, 1fr);
}

.mobile-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  min-height: 48px;
}

.mobile-tab.active {
  color: var(--c-synphone-text-link);
}

.play-sub-switcher {
  display: flex;
  gap: 8px;
}

/* Modal / Full Player Drawer */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(8, 9, 13, 0.78);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
}

.modal-card {
  width: 100%;
  max-width: 540px;
  max-height: 90dvh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-notice {
  padding: 10px 12px;
  background: var(--surface-2);
  border-inline-start: 3px solid var(--c-synphone);
  color: var(--ink);
  font-size: 13px;
}

.toast {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 65;
  background: var(--surface-2);
  border: 1px solid var(--c-synphone);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  max-width: min(360px, calc(100vw - 32px));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

/* Prevent card footer wrapping and sticky-player transcript overlap */
.media-meta-row > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-meta-row > span:last-child {
  white-space: nowrap;
  flex-shrink: 0;
}

.game-sticky-player {
  position: relative;
  z-index: 2;
  background: var(--surface);
}

/* Desktop 3-Zone Responsive Layout (>= 1024px) */
.desktop-only-btn { display: none; }

@media (min-width: 1024px) {
  .desktop-only-btn { display: inline-flex; }
  html, body {
    scroll-padding-bottom: 112px;
  }

  .mobile-only-section {
    display: none !important;
  }

  .shell {
    grid-template-columns: 228px minmax(0, 1fr) 308px;
    padding-bottom: 116px;
  }

  .shell--wide {
    grid-template-columns: 228px minmax(0, 1fr);
  }
  .shell--wide .context-panel {
    display: none;
  }
  .shell--wide .stage-content {
    padding: 28px 38px;
    max-width: 1360px;
    width: 100%;
    margin: 0 auto;
  }
  .shell--wide .cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 14px;
    border-right: 1px solid var(--line);
    position: sticky;
    top: 0;
    height: calc(100dvh - 88px);
    background: var(--paper);
  }

  .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    min-height: 44px;
    border-radius: var(--radius-sm);
    text-align: left;
    font-weight: 600;
    color: var(--ink-2);
  }

  .nav-item:hover {
    background: var(--surface);
    color: var(--ink);
  }

  .nav-item.active {
    background: var(--c-synphone);
    color: var(--c-synphone-ink-on-btn);
    font-weight: 700;
  }

  .topbar-logo {
    display: none;
  }
  .sidebar-logo {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px 14px;
  }
  .mobile-only-btn {
    display: none !important;
  }

  .stage-content {
    padding: 22px 24px;
  }

  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .context-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 16px;
    border-left: 1px solid var(--line);
    position: sticky;
    top: 0;
    height: calc(100dvh - 88px);
    overflow-y: auto;
    background: var(--paper);
  }

  .mobile-nav {
    display: none;
  }

  .game-mobile-drawer,
  .play-sub-switcher {
    display: none;
  }

  .mini-player {
    bottom: 0;
    height: 88px;
    padding: 0 22px;
  }

  .modal-backdrop {
    align-items: center;
  }
}

/* Synphone Desk (Publisher Upload Studio) */
.desk-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.desk-header {
  background:
    radial-gradient(circle at 92% 15%, rgba(212, 20, 46, 0.18), transparent 50%),
    var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--c-synphone);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.desk-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.desk-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.desk-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.desk-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 640px) {
  .desk-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.desk-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.desk-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

.desk-input,
.desk-textarea {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 14px;
}

.desk-textarea {
  min-height: 68px;
  resize: vertical;
}

.desk-cover-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: stretch;
}

.desk-dropzone {
  flex: 1;
  min-width: 220px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-md);
  padding: 14px;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.desk-dropzone.dragover {
  border-color: var(--c-synphone);
  background: rgba(212, 20, 46, 0.10);
}

.desk-item-card {
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.desk-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.desk-upload-box {
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line-strong);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.desk-inline-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: center;
}

.desk-cue-row {
  display: grid;
  grid-template-columns: 76px 76px 110px 1fr auto;
  gap: 6px;
  align-items: center;
}

@media (max-width: 639px) {
  .desk-cue-row {
    grid-template-columns: 1fr 1fr;
  }
  .desk-cue-row > :nth-child(4) {
    grid-column: 1 / -1;
  }
}

.desk-badge-draft {
  background: rgba(14, 15, 20, 0.86);
  color: #FF5A6E;
  border-color: var(--c-synphone);
}

.desk-badge-published {
  background: rgba(14, 15, 20, 0.86);
  color: #34D399;
  border-color: #10B981;
}

html[data-theme="light"] .desk-badge-draft {
  background: #FFF7ED;
  color: #C41028;
  border-color: #D4142E;
}

html[data-theme="light"] .desk-badge-published {
  background: #ECFDF5;
  color: #047857;
  border-color: #059669;
}

.desk-danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  background: var(--c-danger);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 13px;
}

.desk-code {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  overflow-x: auto;
  color: var(--ink-2);
}

/* =====================================================================================
   Player 2.0 (Dec 2026 audit) — Player Bar, Now Playing, Library, action sheet
   ===================================================================================== */
.ico { display: block; flex-shrink: 0; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--ink-2);
  position: relative;
  flex-shrink: 0;
}
.icon-btn:hover:not(:disabled) { color: var(--ink); background: var(--surface-hover); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.icon-btn.on, .pb-toggle.on { color: var(--c-synphone-text-link); }
.pb-toggle.on::after {
  content: "";
  position: absolute;
  bottom: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.repeat-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  background: var(--c-synphone);
  color: #fff;
  border-radius: 6px;
  padding: 1px 3px;
}
.row-like.on { color: var(--c-synphone-text-link); }
.pill-btn.danger { color: var(--c-danger); border-color: color-mix(in srgb, var(--c-danger) 50%, transparent); }
.pill-btn .ico, .primary-btn .ico { display: inline-block; vertical-align: -3px; }
.primary-btn:disabled, .pill-btn:disabled { opacity: 0.45; cursor: default; }

/* Range inputs (seek + volume) with a filled track */
.seek-range, .vol-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 20px;
  background: transparent;
  cursor: pointer;
  --fill: 0%;
}
.seek-range::-webkit-slider-runnable-track, .vol-range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--ink) var(--fill), var(--line-strong) var(--fill));
}
.seek-range:hover::-webkit-slider-runnable-track, .vol-range:hover::-webkit-slider-runnable-track {
  background: linear-gradient(to right, var(--c-synphone) var(--fill), var(--line-strong) var(--fill));
}
.seek-range::-webkit-slider-thumb, .vol-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0;
  transition: opacity 0.15s;
}
.seek-range:hover::-webkit-slider-thumb, .seek-range:focus-visible::-webkit-slider-thumb,
.vol-range:hover::-webkit-slider-thumb, .vol-range:focus-visible::-webkit-slider-thumb { opacity: 1; }
.seek-range::-moz-range-track, .vol-range::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-strong); }
.seek-range::-moz-range-progress, .vol-range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--ink); }
.seek-range::-moz-range-thumb, .vol-range::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--ink); }
.seek-range:disabled { opacity: 0.4; cursor: default; }

.seek-row {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.seek-time { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; }

/* Player Bar — phone first (compact) */
.player-bar {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: calc(62px + env(safe-area-inset-bottom, 0px) + 6px);
  z-index: 40;
  height: 64px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px 0 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.player-bar .mini-progress-line { top: auto; bottom: 0; height: 2px; }
.pb-left { display: flex; align-items: center; min-width: 0; flex: 1; gap: 4px; }
.pb-info { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; text-align: left; padding: 0; min-height: 48px; }
.pb-cover { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--surface); }
.pb-text { min-width: 0; }
.pb-title { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-sub.is-error { color: var(--c-synphone-text-link); }
.pb-like { display: none; }
.pb-center, .pb-right { display: none; }
.pb-mobile { display: flex; align-items: center; }
.pb-m-play { color: var(--ink); }
.player-bar[data-mode="ad"] .pb-center { display: flex; }
.player-bar[data-mode="ad"] .pb-center .pb-controls, .player-bar[data-mode="ad"] .pb-center .seek-row { display: none; }
.pb-adpill { display: none; }
.player-bar[data-mode="ad"] .pb-adpill { display: inline-flex; }
.is-loading .ico { animation: pb-pulse 1s ease-in-out infinite; }
@keyframes pb-pulse { 50% { opacity: 0.35; } }

@media (min-width: 1024px) {
  .player-bar {
    left: 0;
    right: 0;
    bottom: 0;
    height: 88px;
    border-radius: 0;
    border: 0;
    border-top: 1px solid var(--line);
    background: var(--paper);
    box-shadow: none;
    display: grid;
    grid-template-columns: minmax(180px, 30%) minmax(0, 40%) minmax(180px, 30%);
    padding: 0 16px;
    gap: 12px;
  }
  .player-bar .mini-progress-line { display: none; }
  .pb-cover { width: 56px; height: 56px; border-radius: 6px; }
  .pb-like { display: inline-flex; }
  .pb-mobile { display: none; }
  .pb-center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; }
  .pb-controls { display: flex; align-items: center; gap: 6px; }
  .pb-controls .icon-btn { width: 36px; height: 36px; }
  .pb-play { width: 38px !important; height: 38px !important; background: var(--ink); color: var(--paper) !important; }
  .pb-play:hover:not(:disabled) { transform: scale(1.06); background: var(--ink) !important; }
  .pb-right { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
  .pb-right .icon-btn { width: 36px; height: 36px; }
  .pb-speed { min-height: 30px; padding: 0 10px; font-size: 12px; font-variant-numeric: tabular-nums; }
  .vol-range { width: 110px; }
  .player-bar[data-mode="empty"] .pb-center, .player-bar[data-mode="empty"] .pb-right { opacity: 0.5; }
}

/* Mobile bottom nav respects the home indicator */
.mobile-nav {
  height: calc(62px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.shell { padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1024px) {
  .shell { padding-bottom: 100px; }
  .sidebar { height: calc(100dvh - 88px); }
}

/* Now Playing (full screen) */
body.np-lock { overflow: hidden; }
.np-overlay { position: fixed; inset: 0; z-index: 60; background: var(--paper); }
.np-overlay[hidden] { display: none; }
.np-bg {
  position: absolute;
  inset: -40px;
  background-size: cover;
  background-position: center;
  filter: blur(60px) saturate(1.4);
  opacity: 0.35;
  pointer-events: none;
}
.np-dialog {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: max(8px, env(safe-area-inset-top)) 16px max(12px, env(safe-area-inset-bottom));
  outline: none;
}
.np-head { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.np-head-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.np-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.np-left { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.np-left-head { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.np-left-head > .np-meta, .np-left > .seek-wrap, .np-left > .np-controls, .np-left > .np-tools { width: 100%; max-width: 420px; }
.np-art {
  width: min(100%, 340px, 38vh);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  background: transparent;
}
.np-right { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; }
.np-meta { display: flex; align-items: center; gap: 8px; }
.np-meta-text { min-width: 0; flex: 1; }
.np-title { margin: 0; font-family: var(--font-display); font-size: 22px; line-height: 1.2; }
.np-sub { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.np-badge { margin-top: 6px; display: inline-flex; }
.np-controls { display: flex; align-items: center; justify-content: space-between; max-width: 420px; width: 100%; margin: 0 auto; }
.np-skip { width: 52px; height: 52px; color: var(--ink); }
.np-play { width: 66px; height: 66px; background: var(--ink); color: var(--paper) !important; }
.np-play:hover:not(:disabled) { background: var(--ink) !important; transform: scale(1.04); }
.np-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.np-tools[hidden] { display: none; }
.np-tool { gap: 6px; min-height: 36px; padding: 0 12px; font-size: 12.5px; }
.np-select {
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 34px;
}
.np-select[hidden] { display: none; }
.np-sleep-info { font-size: 12px; color: var(--c-synphone-text-link); font-variant-numeric: tabular-nums; }
.np-tabs { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); margin-top: 2px; flex-shrink: 0; }
.np-tab { padding: 8px 14px; font-weight: 700; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; min-height: 40px; }
.np-tab.active { color: var(--ink); border-bottom-color: var(--c-synphone); }
.np-tab-expand {
  margin-left: auto;
  min-width: 36px;
  min-height: 36px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.np-tab-expand:hover { background: var(--surface-hover); color: var(--ink); }

@media (min-width: 900px) {
  .np-tab-expand { display: none; }
}

@media (max-width: 899px) {
  .np-mobile-lyrics-focus .np-body {
    overflow: hidden;
    gap: 10px;
  }
  .np-mobile-lyrics-focus .np-left {
    display: contents;
  }
  .np-mobile-lyrics-focus .np-left-head {
    order: 1;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
  }
  .np-mobile-lyrics-focus .np-art {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
  }
  .np-mobile-lyrics-focus .np-meta {
    flex: 1;
    min-width: 0;
    max-width: none;
  }
  .np-mobile-lyrics-focus .np-title { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .np-mobile-lyrics-focus .np-sub { font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .np-mobile-lyrics-focus .np-badge,
  .np-mobile-lyrics-focus .np-tools { display: none; }
  .np-mobile-lyrics-focus .np-right {
    order: 2;
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }
  .np-mobile-lyrics-focus .seek-wrap {
    order: 3;
    flex-shrink: 0;
    max-width: 100%;
    padding-top: 6px;
    border-top: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  }
  .np-mobile-lyrics-focus .np-controls {
    order: 4;
    flex-shrink: 0;
    max-width: 100%;
    padding-bottom: 2px;
  }
  .np-mobile-lyrics-focus .np-play { width: 54px; height: 54px; }
  .np-mobile-lyrics-focus .np-skip { width: 42px; height: 42px; }
  .np-mobile-lyrics-focus .np-lyrics {
    max-height: none;
    flex: 1;
    min-height: 0;
    padding: 12px 6px 56px;
  }
  .np-mobile-lyrics-focus .np-cue--music .np-cue-text {
    font-size: 22px;
    line-height: 1.42;
  }
}
.np-lyrics, .np-queue {
  position: relative;
  min-height: 180px;
  max-height: 50vh;
  overflow-y: auto;
  padding: 8px 10px 64px 2px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.np-lyrics {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.np-lyrics--music {
  gap: 8px;
  padding: 10px 10px 72px 2px;
}
.np-lyrics[hidden], .np-queue[hidden] { display: none; }
.np-cue {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 3px;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--ink-2);
  opacity: 0.65;
  transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.np-cue--music {
  padding: 10px 14px;
}
.np-cue-who {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.np-cue-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: -0.01em;
}
.np-cue--music .np-cue-text {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}
.np-cue.past {
  opacity: 0.42;
}
.np-cue.active {
  opacity: 1;
  color: var(--ink);
  background: color-mix(in srgb, var(--c-synphone) 12%, transparent);
}
.np-cue:hover {
  opacity: 1;
  color: var(--ink);
  background: var(--surface-hover);
}

/* Right-panel editorial lyrics & synced transcript stage */
.lyrics-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 4px;
  min-height: 140px;
  max-height: 270px;
  overflow-y: auto;
  padding: 8px 6px 12px 4px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.lyrics-stage--music {
  gap: 4px;
  padding: 10px 6px 12px 6px;
}
.right-queue-list {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.detail-lyrics-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.detail-lyrics-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.detail-lyrics-track {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c-synphone-text-link);
  margin: 0 0 4px 10px;
}
.lyric-line {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  align-items: flex-start;
  text-align: left;
  gap: 2px;
  width: 100%;
  padding: 7px 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  opacity: 0.72;
  transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.lyric-line--music .lyric-text {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.lyric-line--narration .lyric-text {
  font-size: 13px;
  line-height: 1.48;
}
.lyric-meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.lyric-line.past {
  opacity: 0.44;
}
.lyric-line.active {
  opacity: 1;
  color: var(--ink);
  background: color-mix(in srgb, var(--c-synphone) 13%, transparent);
}
.lyric-line--music.active .lyric-text {
  font-weight: 700;
}
.np-lyric-notice, .lyric-notice {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 12px 6px;
}
.np-cue--static, .lyric-line--static {
  opacity: 0.92;
  color: var(--ink);
  cursor: default;
}
.np-cue--static:hover, .lyric-line--static:hover {
  background: transparent;
}
.np-lyric-section {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 14px 2px;
  user-select: none;
}
.np-lyric-section:first-child {
  padding-top: 2px;
}
.lyric-section {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 10px 2px;
  user-select: none;
}
.lyric-section:first-child {
  padding-top: 2px;
}
.stanza-break {
  margin-top: 10px;
}

/* Flagship Tier-1 Polish: Dynamic Ambient Gradients, Word-by-Word Karaoke, Animated EQ Bars, Glass Player Bar */
.detail-header--ambient {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(var(--ambient-rgb, 212, 20, 46), 0.28), transparent 58%),
    linear-gradient(160deg, rgba(var(--ambient-rgb, 212, 20, 46), 0.14), var(--surface) 70%);
  border: 1px solid color-mix(in srgb, rgba(var(--ambient-rgb, 212, 20, 46), 0.45) 40%, var(--line));
  transition: background 0.6s ease, border-color 0.6s ease;
}
.detail-header--ambient .detail-cover {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.35s ease;
}
.detail-header--ambient .detail-cover:hover {
  transform: scale(1.02);
}

.np-overlay {
  background:
    radial-gradient(circle at 22% 24%, rgba(var(--ambient-rgb, 212, 20, 46), 0.36), transparent 60%),
    radial-gradient(circle at 82% 76%, rgba(var(--ambient-rgb, 212, 20, 46), 0.20), transparent 58%),
    var(--paper);
  transition: background 0.65s ease;
}

/* Floating round Play button on media card covers (Apple Music / Spotify style) */
.cover-play-fab {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--c-synphone);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  padding-left: 2px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(8px) scale(0.92);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), background 0.18s ease;
  z-index: 2;
}
.media-card:hover .cover-play-fab,
.media-card:focus-visible .cover-play-fab {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.cover-play-fab:hover {
  transform: scale(1.08);
  background: var(--c-synphone-hover, #B91027);
}

/* Slow breathing ambient backdrop + Apple Music depth-blur lyrics & word lift */
.np-bg {
  animation: ambientBreathe 18s ease-in-out infinite alternate;
}
@keyframes ambientBreathe {
  0% { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
  100% { transform: scale(1.22) translate3d(1.5%, 1.5%, 0); }
}
.np-lyrics--music:not(.np-lyrics--static) .np-cue--music:not(.active) {
  filter: blur(0.6px);
}
.np-lyrics--music:not(.np-lyrics--static) .np-cue--music:hover {
  filter: none;
}
.np-cue.has-words .k-word {
  display: inline-block;
  white-space: pre;
}
.np-cue.has-words.active .k-word {
  color: var(--ink-2);
  opacity: 0.46;
  transition: opacity 0.14s ease, color 0.14s ease, transform 0.16s ease, text-shadow 0.18s ease;
}
.np-cue.has-words.active .k-word.sung {
  color: var(--ink);
  opacity: 0.96;
  transform: translateY(0);
}
.np-cue.has-words.active .k-word.singing {
  color: var(--ink);
  opacity: 1;
  transform: translateY(-1px);
  text-shadow: 0 0 20px rgba(var(--ambient-rgb, 212, 20, 46), 0.62);
}
@media (prefers-reduced-motion: reduce) {
  .np-bg { animation: none; }
  .np-lyrics--music .np-cue--music { filter: none !important; }
}

/* Track index + live animated 3-bar equalizer */
.track-idx {
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.track-idx .eq-bars {
  display: none;
  align-items: flex-end;
  gap: 2.5px;
  height: 15px;
}
.track-idx.is-current .track-num { display: none; }
.track-idx.is-current .eq-bars { display: inline-flex; }
.eq-bars i {
  display: block;
  width: 3px;
  height: 5px;
  border-radius: 2px;
  background: var(--c-synphone);
}
.track-idx.is-live .eq-bars i:nth-child(1) { animation: synEq 0.72s ease-in-out infinite alternate; }
.track-idx.is-live .eq-bars i:nth-child(2) { animation: synEq 0.56s ease-in-out 0.18s infinite alternate; }
.track-idx.is-live .eq-bars i:nth-child(3) { animation: synEq 0.84s ease-in-out 0.34s infinite alternate; }
@keyframes synEq {
  0% { height: 4px; }
  100% { height: 15px; }
}
.item-row.playing .item-row-title {
  color: var(--c-synphone-text-link);
}

/* Glassmorphic Bottom Player Bar */
.player-bar {
  background: color-mix(in srgb, var(--surface) 84%, rgba(var(--ambient-rgb, 212, 20, 46), 0.14));
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}
.lyric-line:hover {
  opacity: 1;
  color: var(--ink);
  background: var(--surface-hover);
}
.np-empty { color: var(--muted); font-size: 14px; padding: 12px 4px; }
.np-q-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 12px 0 4px; }
.q-row { display: flex; align-items: center; gap: 4px; border-radius: 10px; }
.q-row:hover { background: var(--surface-hover); }
.q-row.current .q-title { color: var(--c-synphone-text-link); }
.q-main { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-align: left; padding: 6px; min-height: 52px; }
.q-cover { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.q-text { display: flex; flex-direction: column; min-width: 0; }
.q-title { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-tools { display: flex; align-items: center; }
.q-tool { width: 36px; height: 36px; }

@media (min-width: 900px) {
  .np-dialog { padding: 14px 48px 28px; max-width: 1440px; width: 100%; margin: 0 auto; }
  .np-body { flex-direction: row; gap: 56px; align-items: stretch; overflow: hidden; padding-top: 8px; }
  .np-left {
    flex: 0 0 min(40%, 420px);
    justify-content: center;
    align-items: center;
    gap: 14px;
  }
  .np-art { width: min(100%, 340px, 40vh); }
  .np-right {
    flex: 1;
    max-width: none;
    overflow: hidden;
    padding-right: 8px;
    gap: 14px;
  }
  .np-title { font-size: 24px; }
  .np-lyrics--music { gap: 12px; padding: 16px 18px 96px 4px; }
  .np-cue--music { padding: 12px 18px; }
  .np-cue--music .np-cue-text { font-size: 28px; line-height: 1.38; letter-spacing: -0.015em; }
  .np-cue--narration .np-cue-text { font-size: 20px; line-height: 1.5; }
  .np-lyrics, .np-queue { max-height: none; flex: 1; min-height: 0; }
}

/* Action sheet (⋯ menu) */
.sheet-backdrop { align-items: flex-end; }
.action-sheet {
  width: 100%;
  max-width: 440px;
  max-height: 86dvh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 18px 18px 0 0;
  padding: 12px 12px max(12px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 2px;
}
@media (min-width: 640px) {
  .sheet-backdrop { align-items: center; }
  .action-sheet { border-radius: 18px; }
}
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 4px 6px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.sheet-action { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 48px; padding: 0 10px; border-radius: 10px; text-align: left; font-weight: 600; }
.sheet-action:hover:not(:disabled) { background: var(--surface-hover); }
.sheet-action:disabled { opacity: 0.5; }
.sheet-group { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 6px 0; padding: 6px 0; }
.sheet-label { font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.sheet-new { display: flex; gap: 8px; padding: 6px 4px; }
.sheet-new .search-input { flex: 1; }
.sheet-cancel { margin-top: 8px; }

/* Track rows (Liked, playlists, search results) */
.track-list { display: flex; flex-direction: column; gap: 2px; }
.track-row { display: flex; align-items: center; gap: 2px; border-radius: 10px; padding-right: 4px; }
.track-row:hover { background: var(--surface-hover); }
.track-row.playing .q-title { color: var(--c-synphone-text-link); }
.track-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 6px; text-align: left; min-height: 56px; }
.track-main .q-cover { width: 44px; height: 44px; }

/* Library collections */
.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .collection-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.collection-tile { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-align: left; min-width: 0; min-height: 64px; }
.collection-tile:hover { background: var(--surface-hover); }
.collection-tile.new .collection-art { background: var(--surface-2); color: var(--ink-2); }
.tile-text { min-width: 0; }
.collection-art {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #1E212C, #D4142E);
}
.collection-art.liked { background: linear-gradient(135deg, #B91027, #D4142E 58%, #FF5A6E); }
.collection-head { display: flex; align-items: flex-end; gap: 18px; }
.collection-head .collection-art { width: 120px; height: 120px; border-radius: 12px; }
@media (min-width: 640px) { .collection-head .collection-art { width: 170px; height: 170px; } }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* iOS: inputs under 16px trigger auto-zoom on focus */
@media (max-width: 1023px) {
  .search-input, .desk-input, select, textarea, input[type="text"], input[type="search"], input[type="email"] { font-size: 16px; }
}

/* Respect reduced-motion preferences everywhere */
/* New Architecture: Sidebar Accordion, Horizontal Shelves, Attached Download FAB, Right Panel Playlist & Universe */
@media (max-width: 1023px) {
  .topbar:not(.mobile-search-open) .search-wrap {
    display: none;
  }
  .topbar.mobile-search-open {
    flex-wrap: wrap;
  }
  .topbar.mobile-search-open .search-wrap {
    order: 3;
    flex: 1 0 100%;
    max-width: none;
  }
}

.nav-item--library {
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.side-acc {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-acc-btn {
  justify-content: space-between;
}
.nav-acc-caret {
  font-size: 12px;
  color: var(--muted);
}
.side-acc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 12px;
  margin-bottom: 4px;
  border-left: 1px solid var(--line);
  margin-left: 12px;
}
.side-acc-item {
  text-align: left;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-acc-item:hover {
  background: var(--surface);
  color: var(--ink);
}
.side-acc-item.active {
  color: var(--c-synphone-text-link);
  font-weight: 700;
  background: color-mix(in srgb, var(--c-synphone) 10%, transparent);
}

/* Horizontal Scroll Shelves (Terbaru Kiri -> Kanan) */
.home-shelf {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.shelf-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.shelf-rail .media-card {
  flex: 0 0 162px;
  scroll-snap-align: start;
}
@media (min-width: 1024px) {
  .shelf-rail {
    gap: 16px;
  }
  .shelf-rail .media-card {
    flex: 0 0 198px;
  }
}
.shelf-arrows {
  display: none;
  gap: 6px;
}
@media (min-width: 1024px) {
  .shelf-arrows { display: inline-flex; }
}
.shelf-arrow {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.shelf-arrow:hover {
  background: var(--surface-2);
  border-color: var(--c-synphone);
}

/* Attached Download button on cover art */
.cover-dl-fab {
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(14, 15, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  z-index: 2;
}
.cover-dl-fab.is-downloaded {
  opacity: 1;
  transform: none;
  background: var(--c-offline);
  border-color: var(--c-offline);
}
.media-card:hover .cover-dl-fab,
.media-card:focus-visible .cover-dl-fab {
  opacity: 1;
  transform: translateY(0);
}
.cover-dl-fab:hover {
  background: var(--c-synphone);
  border-color: var(--c-synphone);
}

/* Right Sidebar Panel: Playlist & Universe */
.right-section-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.right-pl-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.right-pl-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  padding-left: 2px;
}
.right-pill-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 9px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.right-pill-card:hover,
.right-pill-card.active {
  background: var(--surface-2);
  border-color: var(--c-synphone);
}
.right-pill-thumb {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.lang-menu-wrap {
  position: relative;
}
.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  padding: 0;
  color: var(--ink);
}
.theme-btn:hover {
  color: var(--c-synphone-text-link);
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 0 10px;
}
.lang-caret {
  font-size: 10px;
  opacity: 0.7;
}
.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 78px;
  padding: 5px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.36);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 80;
}
.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
}
.lang-option:hover {
  background: var(--surface);
}
.lang-option.active {
  color: var(--c-synphone-text-link);
  background: color-mix(in srgb, var(--c-synphone) 12%, transparent);
}
.lang-option-code {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.lang-option.active .lang-option-code {
  color: var(--c-synphone-text-link);
}
.right-pl-play,
.right-pl-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
  width: 28px;
  height: 28px;
  font-size: 11px;
  flex-shrink: 0;
}
.right-pill-card.active .right-pl-play {
  background: var(--c-synphone);
  border-color: var(--c-synphone);
  color: var(--c-synphone-ink-on-btn);
}
.playlist-cat-row {
  width: 100%;
  cursor: pointer;
}
.playlist-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.pl-cat-heading {
  font-size: 16px;
  margin: 0;
}
.playlist-player-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.playlist-player-box:hover {
  background: var(--surface-2);
}
.playlist-player-box.is-active {
  border-color: var(--c-synphone);
  background: color-mix(in srgb, var(--c-synphone) 8%, var(--surface));
}
.pl-box-cover {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.pl-box-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pl-box-status {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
}
.pl-box-status.is-live {
  color: var(--c-synphone-text-link);
}
.pl-box-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-box-sub {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-box-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.pl-box-play {
  min-height: 38px;
  min-width: 38px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
}
.pl-box-next {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

/* Crisp Search Icon in Search Input & Mobile Search Button */
.search-wrap {
  position: relative;
}
.search-icon-svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  display: inline-flex;
  pointer-events: none;
}
.search-wrap .search-input {
  padding-left: 38px;
}
.icon-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  padding: 0;
}

/* 5-Tab Mobile Bottom Nav with SVG Icons */
.mobile-nav.has-five {
  grid-template-columns: repeat(5, 1fr);
}
.mobile-tab-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Universe Category Panels */
.universe-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 18px;
}
.universe-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.universe-empty-card {
  padding: 16px;
  border-radius: 12px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 13px;
}

/* Library Categorized User Collections (Apple Music style) */
.lib-cat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lib-cat-group {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.lib-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  color: var(--ink);
  text-align: left;
}
.lib-cat-name {
  font-size: 15px;
  font-weight: 700;
}
.lib-cat-right {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}
.lib-cat-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 12px 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.lib-col-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink);
}
.lib-col-ico {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--c-synphone) 16%, transparent);
  color: var(--c-synphone-text-link);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.lib-col-add-btn {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed var(--line-strong);
  color: var(--c-synphone-text-link);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}
.lib-col-add-btn:hover {
  background: color-mix(in srgb, var(--c-synphone) 8%, transparent);
}
.side-acc-add {
  color: var(--c-synphone-text-link);
  font-weight: 700;
}
.cat-label-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.cat-ico-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-synphone-text-link);
  flex-shrink: 0;
}

/* Gift View & Right Sidebar Gift Card */
.gift-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  max-width: 620px;
}
.gift-quota-pill {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: color-mix(in srgb, var(--c-synphone) 14%, transparent);
  color: var(--c-synphone-text-link);
}
.gift-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  margin-top: 4px;
}
.gift-preview-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--c-synphone);
  background: color-mix(in srgb, var(--c-synphone) 7%, var(--surface-2));
  margin: 6px 0;
}
.gift-preview-cover {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.gift-link-result {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.right-gift-ico {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--c-synphone) 15%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* Redesigned Sign In, Subscription & App Settings Modal */
.modal-card--account {
  gap: 14px;
  max-height: 88dvh;
  overflow-y: auto;
}
.account-profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.account-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--c-synphone);
  color: var(--c-synphone-ink-on-btn);
  font-size: 18px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.account-signin-card {
  padding: 16px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.sub-plan-card {
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.sub-plan-card.is-active {
  border-color: var(--c-offline);
}
.sub-status-pill {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: color-mix(in srgb, var(--c-synphone) 14%, transparent);
  color: var(--c-synphone-text-link);
}
.sub-plan-card.is-active .sub-status-pill {
  background: color-mix(in srgb, var(--c-offline) 16%, transparent);
  color: var(--c-offline);
}
.sub-perks-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.account-settings-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.settings-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}

/* Text-only Universe buttons in Right Sidebar */
.right-uni-list {
  gap: 4px;
}
.right-uni-text-btn {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background 0.15s ease, color 0.15s ease;
}
.right-uni-text-btn:hover {
  background: var(--surface);
  color: var(--ink);
}
.right-uni-text-btn.active {
  background: color-mix(in srgb, var(--c-synphone) 12%, transparent);
  color: var(--c-synphone-text-link);
  font-weight: 700;
}

/* Attached Gift button on cover art & track rows */
.cover-gift-fab {
  position: absolute;
  left: 50px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(14, 15, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  z-index: 2;
}
.media-card:hover .cover-gift-fab,
.media-card:focus-visible .cover-gift-fab {
  opacity: 1;
  transform: translateY(0);
}
.cover-gift-fab:hover {
  background: var(--c-synphone);
  border-color: var(--c-synphone);
}
@media (hover: none) {
  .cover-gift-fab {
    opacity: 0.92;
    transform: none;
  }
}
.row-gift {
  color: var(--muted);
}
.row-gift:hover {
  color: var(--c-synphone-text-link);
}

/* Gift Sent History & Quota */
.gift-quota-pill.is-empty {
  background: color-mix(in srgb, var(--c-danger) 14%, transparent);
  color: var(--c-danger);
}
.gift-quota-mini {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c-synphone) 14%, transparent);
  color: var(--c-synphone-text-link);
}
.gift-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gift-history-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}

/* Global Standard Legal & Support Grid */
.legal-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.legal-link-btn {
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
}
.legal-link-btn:hover {
  border-color: var(--c-synphone);
  color: var(--ink);
}
@media (hover: none) {
  .cover-dl-fab {
    opacity: 0.92;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* `hidden` must always win over component display rules */
[hidden] { display: none !important; }
.toast { z-index: 90 !important; }
@media (max-width: 1023px) {
  .toast { top: auto; bottom: calc(150px + env(safe-area-inset-bottom, 0px)); width: max-content; }
  .player-bar[data-mode="empty"] { display: none; }
  .home-filters { flex-wrap: wrap; overflow: visible; padding-right: 0; mask-image: none; }
  .focus-ring, .focus-ring svg { width: 140px; height: 140px; }
}

.perspective-panel { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.perspective-panel .sec-title { font-size: 1.1rem; }
.perspective-panel p { color: var(--ink-2); margin: .45rem 0 .75rem; }
.perspective-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.perspective-panel button[aria-pressed="true"] { border-color: var(--c-synphone); color: var(--c-synphone-text-link); }
.detail-copy { flex: 1; min-width: 220px; }
@media (max-width: 600px) {
  .detail-header.has-perspectives .detail-cover { width: 56px; height: 56px; }
  .detail-header.has-perspectives .detail-copy { min-width: 0; }
}
