/* ==========================================================================
   Cornerstone Christian Radio — Pro Web & Mobile Studio Stylesheet
   ========================================================================== */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/geist-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Theme Tokens — Dark (Studio Obsidian) */
:root,
[data-theme="dark"] {
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;

  --bg-page: #090a0f;
  --bg-surface: #11131c;
  --bg-surface-elevated: #171a26;
  --bg-surface-hover: #1e2232;
  --bg-subtle: rgba(255, 255, 255, 0.045);
  --bg-subtle-hover: rgba(255, 255, 255, 0.085);
  --bg-visualizer: #0c0e16;
  --bg-modal: #141722;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --specular-top: rgba(255, 255, 255, 0.06);

  --text-primary: #f4f5f7;
  --text-secondary: #a1a8bc;
  --text-tertiary: #737b91;

  --accent: #ef5924;
  --accent-bright: #ff6e38;
  --accent-soft: rgba(239, 89, 36, 0.14);
  --accent-border: rgba(239, 89, 36, 0.28);
  --accent-glow: rgba(239, 89, 36, 0.32);

  --live: #22c55e;
  --live-soft: rgba(34, 197, 94, 0.14);
  --live-border: rgba(34, 197, 94, 0.26);

  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.13);
  --amber-border: rgba(245, 158, 11, 0.28);

  --prayer: #25d366;
  --prayer-soft: rgba(37, 211, 102, 0.11);
  --prayer-soft-hover: rgba(37, 211, 102, 0.18);
  --prayer-border: rgba(37, 211, 102, 0.24);

  --donate: #f59e0b;
  --donate-soft: rgba(245, 158, 11, 0.11);
  --donate-soft-hover: rgba(245, 158, 11, 0.18);
  --donate-border: rgba(245, 158, 11, 0.24);

  --error-bg: rgba(239, 68, 68, 0.1);
  --error-border: rgba(239, 68, 68, 0.26);
  --error-text: #fca5a5;

  --slider-track: rgba(255, 255, 255, 0.14);
  --slider-thumb-bg: #ffffff;
  --slider-thumb-ring: rgba(239, 89, 36, 0.35);

  --play-bg: linear-gradient(145deg, #f3622d 0%, #d94616 100%);
  --play-bg-hover: linear-gradient(145deg, #ff703c 0%, #e54e1b 100%);
  --play-fg: #ffffff;
  --play-shadow: 0 10px 30px rgba(239, 89, 36, 0.35), 0 2px 8px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);

  --card-shadow: 0 1px 0 var(--specular-top) inset, 0 20px 50px rgba(0, 0, 0, 0.42);
  --medallion-bg: radial-gradient(circle at 35% 30%, #202435 0%, #121520 72%, #0d0f18 100%);
  --ambient-primary: rgba(239, 89, 36, 0.11);
  --ambient-secondary: rgba(56, 108, 196, 0.08);
  --backdrop: rgba(4, 5, 10, 0.68);
  --kbd-bg: rgba(255, 255, 255, 0.07);
}

/* Theme Tokens — Light (Warm Editorial Alabaster) */
[data-theme="light"] {
  --bg-page: #f5f4f0;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f8f7f4;
  --bg-surface-hover: #efede7;
  --bg-subtle: rgba(17, 19, 26, 0.045);
  --bg-subtle-hover: rgba(17, 19, 26, 0.085);
  --bg-visualizer: #f7f5f0;
  --bg-modal: #ffffff;

  --border-subtle: rgba(17, 19, 26, 0.08);
  --border-strong: rgba(17, 19, 26, 0.15);
  --specular-top: rgba(255, 255, 255, 0.9);

  --text-primary: #14161f;
  --text-secondary: #51586c;
  --text-tertiary: #6e768b;

  --accent: #e04a17;
  --accent-bright: #ef5924;
  --accent-soft: rgba(224, 74, 23, 0.1);
  --accent-border: rgba(224, 74, 23, 0.24);
  --accent-glow: rgba(224, 74, 23, 0.25);

  --live: #15803d;
  --live-soft: rgba(21, 128, 61, 0.1);
  --live-border: rgba(21, 128, 61, 0.22);

  --amber: #b45309;
  --amber-soft: rgba(217, 119, 6, 0.1);
  --amber-border: rgba(217, 119, 6, 0.24);

  --prayer: #15803d;
  --prayer-soft: rgba(22, 163, 74, 0.085);
  --prayer-soft-hover: rgba(22, 163, 74, 0.145);
  --prayer-border: rgba(22, 163, 74, 0.22);

  --donate: #b45309;
  --donate-soft: rgba(217, 119, 6, 0.09);
  --donate-soft-hover: rgba(217, 119, 6, 0.155);
  --donate-border: rgba(217, 119, 6, 0.24);

  --error-bg: rgba(220, 38, 38, 0.07);
  --error-border: rgba(220, 38, 38, 0.22);
  --error-text: #991b1b;

  --slider-track: rgba(17, 19, 26, 0.12);
  --slider-thumb-bg: #ffffff;
  --slider-thumb-ring: rgba(224, 74, 23, 0.28);

  --play-bg: linear-gradient(145deg, #ee5924 0%, #cf3e0f 100%);
  --play-bg-hover: linear-gradient(145deg, #f76834 0%, #de4614 100%);
  --play-fg: #ffffff;
  --play-shadow: 0 10px 26px rgba(224, 74, 23, 0.28), 0 2px 6px rgba(17, 19, 26, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.28);

  --card-shadow: 0 1px 2px rgba(17, 19, 26, 0.04), 0 14px 36px rgba(17, 19, 26, 0.06);
  --medallion-bg: radial-gradient(circle at 35% 30%, #ffffff 0%, #f4f2ec 76%, #eae6dd 100%);
  --ambient-primary: rgba(239, 89, 36, 0.075);
  --ambient-secondary: rgba(217, 119, 6, 0.055);
  --backdrop: rgba(15, 18, 28, 0.45);
  --kbd-bg: rgba(17, 19, 26, 0.06);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.35s ease, color 0.35s ease;
  overflow-x: clip;
  line-height: 1.45;
}

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

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

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

/* Ambient Studio Background */
.ambient-stage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.85;
  transition: opacity 0.8s ease, transform 1.2s ease;
}

.ambient-glow--primary {
  width: min(680px, 95vw);
  height: min(680px, 95vw);
  top: -220px;
  left: -120px;
  background: radial-gradient(circle, var(--ambient-primary) 0%, transparent 70%);
}

.ambient-glow--secondary {
  width: min(620px, 85vw);
  height: min(620px, 85vw);
  bottom: -240px;
  right: -120px;
  background: radial-gradient(circle, var(--ambient-secondary) 0%, transparent 72%);
}

body[data-playing="true"] .ambient-glow--primary {
  opacity: 1;
  transform: scale(1.06);
}

/* Update Banner */
.update-banner {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  width: min(calc(100% - 24px), 480px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--bg-modal);
  border: 1px solid var(--live-border);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  animation: slideDown 0.28s ease-out;
}

.update-banner__info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  min-width: 0;
}

.update-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--live-soft);
  border: 1px solid var(--live-border);
  color: var(--live);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.update-banner__btn svg {
  width: 13px;
  height: 13px;
}

.update-banner__btn:hover {
  transform: translateY(-1px);
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--live);
}

.pulse-dot--live::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--live);
  opacity: 0.35;
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Main App Shell */
.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  max-width: 1140px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 24px max(20px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Top Broadcast Header */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

[data-theme="dark"] .brand-logo--light,
[data-theme="light"] .brand-logo--dark {
  display: none;
}

.top-bar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Status Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.status-pill__dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-tertiary);
  flex-shrink: 0;
}

.status-pill[data-state="ready"] .status-pill__dot {
  background: var(--accent);
}

.status-pill[data-state="live"] {
  background: var(--live-soft);
  border-color: var(--live-border);
  color: var(--live);
}

.status-pill[data-state="live"] .status-pill__dot {
  background: var(--live);
}

.status-pill[data-state="live"] .status-pill__dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--live);
  opacity: 0.4;
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.status-pill[data-state="connecting"] {
  background: var(--amber-soft);
  border-color: var(--amber-border);
  color: var(--amber);
}

.status-pill[data-state="connecting"] .status-pill__dot {
  background: var(--amber);
  animation: pulseOpacity 1s ease-in-out infinite;
}

.status-pill[data-state="error"] {
  background: var(--error-bg);
  border-color: var(--error-border);
  color: var(--error-text);
}

.status-pill[data-state="error"] .status-pill__dot {
  background: #ef4444;
}

.status-pill__timer {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  padding-left: 8px;
  border-left: 1px solid currentColor;
  opacity: 0.88;
}

/* Telemetry Chip */
.telemetry-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.telemetry-sep {
  opacity: 0.4;
}

.listeners-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-primary);
  font-weight: 500;
}

.listeners-inline svg {
  width: 13px;
  height: 13px;
  color: var(--accent);
}

/* Icon Button */
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.icon-btn:active {
  transform: scale(0.95);
}

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

[data-theme="dark"] .icon-moon,
[data-theme="light"] .icon-sun {
  display: none;
}

/* Main Studio 2-Column Grid */
.studio-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  align-content: center;
}

/* Shared Surface Card */
.surface-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* ==========================================================================
   Primary Broadcast Player Card
   ========================================================================== */
.player-card {
  padding: 26px 28px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.player-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.broadcast-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  white-space: nowrap;
  min-width: 0;
}

.broadcast-kicker__signal {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.broadcast-kicker__signal svg {
  width: 14px;
  height: 14px;
}

.player-card__top-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mobile-quality-tag {
  display: none;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  line-height: 1;
}

.mini-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mini-pill-btn:hover {
  background: var(--bg-subtle-hover);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.mini-pill-btn svg {
  width: 13px;
  height: 13px;
  color: var(--accent);
}

/* Now Playing Hero */
.now-playing {
  display: flex;
  align-items: center;
  gap: 22px;
}

.medallion {
  position: relative;
  width: 108px;
  height: 108px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.medallion__ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.25s ease;
}

.medallion__ring--outer {
  inset: -8px;
  border: 1px solid var(--accent-border);
  opacity: 0;
  transform: scale(0.92);
}

.medallion__ring--inner {
  inset: -2px;
  border: 1.5px solid var(--border-strong);
  opacity: 0.7;
}

.medallion[data-playing="true"] .medallion__ring--outer {
  opacity: 0.75;
  transform: scale(1);
  animation: haloBreath 2.8s ease-in-out infinite;
}

.medallion[data-playing="true"] .medallion__ring--inner {
  border-color: var(--accent);
  opacity: 0.9;
}

.medallion__disc {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  background: var(--medallion-bg);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 var(--specular-top);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  overflow: hidden;
  transition: border-radius 0.4s ease, box-shadow 0.4s ease;
}

.medallion[data-playing="true"] .medallion__disc {
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--accent-border), 0 14px 34px var(--accent-glow);
}

.medallion__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s ease;
}

[data-theme="dark"] .medallion__img--light,
[data-theme="light"] .medallion__img--dark {
  display: none;
}

.medallion[data-playing="true"] .medallion__img {
  transform: scale(1.03);
}

.medallion__badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) scale(0.85);
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  box-shadow: 0 4px 12px var(--accent-glow);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.medallion[data-playing="true"] .medallion__badge {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.now-playing__meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.now-playing__eyebrow-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.now-playing__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.track-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.now-playing__title {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: opacity 0.25s ease;
}

.now-playing__artist {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.now-playing__extra {
  margin: 0;
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Live Visualizer Stage */
.visualizer-stage {
  position: relative;
  width: 100%;
  height: 122px;
  border-radius: 18px;
  background: var(--bg-visualizer);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.visualizer-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.visualizer-caption {
  position: absolute;
  top: 10px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.viz-status-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
  transition: opacity 0.3s ease;
}

/* Inline Non-Truncated Error / Reconnect Banner */
.error-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error-text);
  font-size: 13px;
  line-height: 1.4;
}

.error-banner__body {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.error-banner__icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 1px;
}

.error-banner__text {
  word-break: break-word;
}

.error-banner__retry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--error-border);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.error-banner__retry svg {
  width: 13px;
  height: 13px;
}

.error-banner__retry:hover {
  background: var(--bg-surface-hover);
}

/* Transport Controls */
.transport-dock {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.transport-primary {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Primary Play/Pause Button */
.play-btn {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--play-bg);
  color: var(--play-fg);
  box-shadow: var(--play-shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background 0.25s ease;
}

.play-btn:hover:not(:disabled) {
  background: var(--play-bg-hover);
  transform: scale(1.045);
}

.play-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.play-btn:disabled {
  cursor: wait;
  opacity: 0.85;
}

.play-btn__halo {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent-border);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.play-btn[data-state="live"] .play-btn__halo {
  opacity: 1;
  transform: scale(1);
}

.play-btn__icon {
  width: 26px;
  height: 26px;
  display: none;
}

.play-btn__icon--play {
  margin-left: 3px;
}

.play-btn[data-state="ready"] .play-btn__icon--play,
.play-btn[data-state="error"] .play-btn__icon--play {
  display: block;
}

.play-btn[data-state="live"] .play-btn__icon--pause {
  display: block;
}

.play-btn__spinner {
  display: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.32);
  border-top-color: #ffffff;
  animation: spin 0.75s linear infinite;
}

.play-btn[data-state="connecting"] .play-btn__spinner {
  display: block;
}

/* Precision Volume Control (Fixed Dark & Light Contrast) */
.volume-control {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
}

.mute-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mute-btn:hover {
  background: var(--bg-subtle-hover);
  color: var(--text-primary);
}

.mute-btn svg {
  width: 18px;
  height: 18px;
}

.vol-icon {
  display: none;
}

.mute-btn[data-level="high"] .vol-icon--high,
.mute-btn[data-level="low"] .vol-icon--low,
.mute-btn[data-level="muted"] .vol-icon--muted {
  display: block;
}

.mute-btn[data-level="muted"] {
  color: var(--accent);
}

.slider-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 32px;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent) var(--val, 75%),
    var(--slider-track) var(--val, 75%),
    var(--slider-track) 100%
  );
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--slider-thumb-bg);
  border: 2.5px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.volume-slider::-webkit-slider-thumb:hover,
.volume-slider:focus-visible::-webkit-slider-thumb {
  transform: scale(1.14);
  box-shadow: 0 0 0 5px var(--slider-thumb-ring), 0 2px 8px rgba(0, 0, 0, 0.28);
}

.volume-slider::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: transparent;
}

.volume-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--slider-thumb-bg);
  border: 2.5px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.volume-pct {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
  width: 38px;
  text-align: right;
  flex-shrink: 0;
}

/* Utility Action Strip */
.utility-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.utility-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.utility-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.utility-btn:hover {
  background: var(--bg-subtle-hover);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.utility-btn:active {
  transform: scale(0.97);
}

.utility-btn[data-active="true"] {
  background: var(--live-soft);
  border-color: var(--live-border);
  color: var(--live);
}

.utility-btn__close {
  width: 13px !important;
  height: 13px !important;
  opacity: 0.8;
}

.utility-btn--mobile-only {
  display: none;
}

.spin-icon {
  animation: spin 0.9s linear infinite;
}

/* Mobile CTAs (hidden on desktop where sidebar ministry card lives) */
.mobile-cta-row {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.cta-pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.cta-pill:active {
  transform: scale(0.97);
}

.cta-pill--prayer {
  background: var(--prayer-soft);
  border: 1px solid var(--prayer-border);
  color: var(--prayer);
}

.cta-pill--prayer:hover {
  background: var(--prayer-soft-hover);
}

.cta-pill--donate {
  background: var(--donate-soft);
  border: 1px solid var(--donate-border);
  color: var(--donate);
}

.cta-pill--donate:hover {
  background: var(--donate-soft-hover);
}

/* ==========================================================================
   Sidebar: Recently Played & Ministry Hub
   ========================================================================== */
.studio-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.history-card {
  padding: 20px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-header__left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.count-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.subtle-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.subtle-icon-btn:hover {
  background: var(--bg-subtle-hover);
  color: var(--text-primary);
}

.subtle-icon-btn svg {
  width: 15px;
  height: 15px;
}

.history-list-wrap {
  position: relative;
  flex: 1;
  min-height: 220px;
  max-height: 315px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.history-list-wrap::-webkit-scrollbar {
  width: 5px;
}

.history-list-wrap::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}

.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 14px;
  transition: background-color 0.18s ease;
}

.history-item:hover {
  background: var(--bg-subtle);
}

.history-item--current {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}

.history-item--current:hover {
  background: var(--accent-soft);
}

.history-item__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.history-item--current .history-item__icon {
  background: var(--accent);
  border-color: transparent;
  color: #ffffff;
}

.history-item__icon svg {
  width: 15px;
  height: 15px;
}

.history-item__body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.history-item__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-item__sub {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-item__time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  white-space: nowrap;
  flex-shrink: 0;
}

.history-item--current .history-item__time {
  color: var(--accent);
  font-weight: 600;
}

.history-empty {
  padding: 28px 12px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}

/* Skeleton Loader */
.history-skeleton {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
}

.skel-dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bg-subtle);
  animation: pulseOpacity 1.4s ease-in-out infinite;
}

.skel-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.skel-line {
  height: 10px;
  border-radius: 6px;
  background: var(--bg-subtle);
  animation: pulseOpacity 1.4s ease-in-out infinite;
}

.skel-line--lg { width: 78%; }
.skel-line--md { width: 64%; }
.skel-line--sm { width: 46%; height: 8px; }
.skel-line--xs { width: 34%; height: 8px; }

/* Ministry Card */
.ministry-card {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ministry-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ministry-tile {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border-radius: 16px;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
}

.ministry-tile:hover {
  transform: translateY(-1px);
}

.ministry-tile:active {
  transform: scale(0.985);
}

.ministry-tile--prayer {
  background: var(--prayer-soft);
  border: 1px solid var(--prayer-border);
}

.ministry-tile--prayer:hover {
  background: var(--prayer-soft-hover);
}

.ministry-tile--donate {
  background: var(--donate-soft);
  border: 1px solid var(--donate-border);
}

.ministry-tile--donate:hover {
  background: var(--donate-soft-hover);
}

.ministry-tile__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ministry-tile--prayer .ministry-tile__icon {
  background: rgba(37, 211, 102, 0.16);
  color: var(--prayer);
}

.ministry-tile--donate .ministry-tile__icon {
  background: rgba(245, 158, 11, 0.16);
  color: var(--donate);
}

.ministry-tile__icon svg {
  width: 19px;
  height: 19px;
}

.ministry-tile__copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ministry-tile__copy strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.ministry-tile__copy span {
  font-size: 12px;
  color: var(--text-secondary);
}

.ministry-tile__arrow {
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.ministry-tile:hover .ministry-tile__arrow {
  transform: translate(2px, -2px);
  color: var(--text-primary);
}

/* Footer */
.site-footer {
  padding-top: 4px;
  text-align: center;
}

.site-footer__inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-tertiary);
}

.site-footer a {
  color: var(--text-secondary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer__sep {
  opacity: 0.45;
}

/* ==========================================================================
   Modals & Mobile Bottom Sheets
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--backdrop);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInBg 0.18s ease-out;
}

.modal-sheet {
  width: min(100%, 400px);
  background: var(--bg-modal);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: popIn 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-sheet__handle {
  display: none;
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: var(--border-strong);
  margin: -6px auto 2px;
}

.modal-sheet__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.modal-sheet__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.modal-sheet__sub {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--bg-subtle-hover);
  color: var(--text-primary);
}

.modal-close-btn svg {
  width: 17px;
  height: 17px;
}

/* Sleep Timer Grid */
.sleep-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sleep-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 14px 12px;
  border-radius: 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.sleep-option strong {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.sleep-option span {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

.sleep-option:hover {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  transform: translateY(-1px);
}

.sleep-option:hover strong {
  color: var(--accent);
}

.sleep-option--wide {
  grid-column: span 2;
  flex-direction: row;
  gap: 8px;
  padding: 13px;
}

/* Share Modal */
.share-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.share-channel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.share-channel:hover {
  background: var(--bg-subtle-hover);
  border-color: var(--border-strong);
}

.share-channel__badge {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.share-channel__badge--wa { background: rgba(37, 211, 102, 0.16); color: #25d366; }
.share-channel__badge--fb { background: rgba(24, 119, 242, 0.16); color: #1877f2; }
.share-channel__badge--x  { background: var(--bg-subtle-hover); color: var(--text-primary); }
.share-channel__badge--tg { background: rgba(38, 165, 228, 0.16); color: #26a5e4; }

.share-copy-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.share-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.share-copy-btn:hover {
  background: var(--accent-bright);
}

.share-copy-btn--subtle {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.share-copy-btn--subtle:hover {
  background: var(--bg-subtle-hover);
  color: var(--text-primary);
}

.share-copy-btn svg {
  width: 15px;
  height: 15px;
}

/* Install Modal */
.install-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.install-app-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.install-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.install-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.install-steps strong {
  color: var(--text-primary);
  font-weight: 600;
}

.install-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-primary-btn {
  height: 44px;
  border-radius: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.modal-primary-btn:hover {
  background: var(--bg-subtle-hover);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--text-primary);
  color: var(--bg-page);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  animation: toastUp 0.22s ease-out;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes ping {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseOpacity {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@keyframes haloBreath {
  0%, 100% { transform: scale(0.99); opacity: 0.55; }
  50% { transform: scale(1.045); opacity: 0.9; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translate(-50%, -12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes fadeInBg {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes sheetSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastUp {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ==========================================================================
   Responsive Breakpoints — Tablet & Mobile Pro Tuning
   ========================================================================== */
@media (max-width: 959px) {
  .app-shell {
    max-width: 640px;
    padding: max(16px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
    gap: 16px;
  }

  .telemetry-chip {
    display: none;
  }

  .mobile-quality-tag {
    display: inline-flex;
  }

  .studio-grid {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 16px;
  }

  .mobile-cta-row {
    display: grid;
  }

  .ministry-card {
    display: none;
  }

  .history-list-wrap {
    max-height: 360px;
  }
}

@media (max-width: 639px) {
  .app-shell {
    padding: max(14px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
    gap: 14px;
  }

  .top-bar {
    min-height: 44px;
    gap: 10px;
  }

  .brand-logo {
    height: 31px;
  }

  .status-pill {
    height: 32px;
    padding: 0 10px;
    font-size: 10px;
    gap: 6px;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .player-card {
    padding: 18px 16px 20px;
    border-radius: 22px;
    gap: 16px;
  }

  .player-card__top {
    gap: 8px;
  }

  .broadcast-kicker {
    font-size: 11.5px;
    gap: 6px;
  }

  .broadcast-kicker__signal {
    width: 24px;
    height: 24px;
  }

  .player-card__top-right {
    gap: 6px;
  }

  .mobile-quality-tag {
    font-size: 10.5px;
    padding: 5px 8px;
  }

  .mini-pill-btn {
    height: 28px;
    padding: 0 9px;
    font-size: 10.5px;
    gap: 5px;
  }

  .now-playing {
    gap: 15px;
  }

  .medallion {
    width: 78px;
    height: 78px;
  }

  .medallion__disc {
    border-radius: 20px;
    padding: 10px;
  }

  .now-playing__title {
    font-size: 19px;
  }

  .now-playing__artist {
    font-size: 13.5px;
  }

  .visualizer-stage {
    height: 86px;
    border-radius: 15px;
  }

  .transport-dock {
    gap: 14px;
  }

  .transport-primary {
    flex-direction: column;
    gap: 14px;
  }

  .play-btn {
    width: 72px;
    height: 72px;
  }

  .play-btn__icon {
    width: 28px;
    height: 28px;
  }

  .volume-control {
    width: 100%;
    padding: 8px 12px;
    border-radius: 14px;
  }

  .volume-slider::-webkit-slider-thumb {
    width: 22px;
    height: 22px;
  }

  .volume-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
  }

  .utility-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }

  .utility-btn {
    flex-direction: column;
    height: 54px;
    padding: 6px 4px;
    gap: 4px;
    font-size: 11px;
    border-radius: 14px;
  }

  .utility-btn--mobile-only {
    display: inline-flex;
  }

  .history-card {
    padding: 18px 16px 12px;
    border-radius: 22px;
  }

  /* Native Mobile Bottom Sheet Modals */
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal-sheet {
    width: 100%;
    max-width: none;
    border-radius: 24px 24px 0 0;
    border-bottom: 0;
    padding: 18px 20px max(24px, env(safe-area-inset-bottom));
    animation: sheetSlideUp 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .modal-sheet__handle {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
