/* ── DESIGN SYSTEM & VARIABLE TOKENS ── */
:root {
  --ink: #eaeff5; /* Slightly darker cool gray to make white cards pop */
  --surface: rgba(255, 255, 255, 0.7); /* Glass card */
  --surface-hover: rgba(255, 255, 255, 0.9);
  --surface-solid: rgba(255, 255, 255, 1); /* Pure white for elevated elements */
  --surface-light: rgba(255, 255, 255, 0.5); /* Glass surface */
  --border: rgba(255, 255, 255, 0.9); /* Strong white border for glass effect */
  --border-focus: rgba(255, 255, 255, 1);
  --bone: #141416; /* Darker text */
  --sand: #464650; /* Darker secondary text */
  --muted: #71717a; /* Darker muted text for better contrast */
  --ember: #ff2d55; /* Vibrant pink/red accent */
  --ember-glow: rgba(255, 45, 85, 0.2); /* Soft red glow */
  --spotify: #1DB954;
  --apple: #FA586A;
  --fizy: #C026A6;
  
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.1);
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── CORE STYLES & BASE RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--ink);
  color: var(--bone);
  min-height: 100vh;
  padding-bottom: 120px; /* Space for sticky player */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

body::before, body::after {
  content: '';
  position: fixed;
  width: 80vw;
  height: 80vw;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  animation: float 25s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  pointer-events: none;
}

body::before {
  background: radial-gradient(circle, rgba(142, 197, 252, 0.6) 0%, transparent 60%);
  top: -20%;
  left: -20%;
}

body::after {
  background: radial-gradient(circle, rgba(224, 195, 252, 0.6) 0%, transparent 60%);
  bottom: -20%;
  right: -20%;
  animation-delay: -12.5s;
  animation-direction: alternate-reverse;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20%, 25%) scale(1.1); }
  100% { transform: translate(-15%, 20%) scale(0.9); }
}

body.no-scroll {
  overflow: hidden;
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--ink);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

/* ── CONTAINER WRAP ── */
.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── HEADER SECTION ── */
.header {
  padding: 24px 0 10px;
  text-align: center;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-light);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-bottom: 12px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 8px var(--ember);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(139, 24, 61, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(139, 24, 61, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(139, 24, 61, 0); }
}

.brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 7vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--bone);
  margin-bottom: 8px;
}

.brand em {
  font-style: italic;
  font-weight: 300;
  color: var(--sand);
  background: linear-gradient(135deg, var(--sand), var(--bone));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 16px;
  display: inline-block;
}

.bio {
  font-size: 13px;
  line-height: 1.5;
  color: var(--sand);
  max-width: 320px;
  margin: 0 auto 10px;
}

/* Waveform Animation */
.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 24px;
  margin: 16px auto 10px;
  max-width: 320px;
}

.bar {
  width: 2px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  transition: background 0.3s;
}

.bar.active {
  background: var(--ember);
  animation: wave 1.2s ease-in-out infinite alternate;
}

@keyframes wave {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1.1); }
}

/* ── SEARCH BAR ── */
.search-container {
  position: relative;
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  padding: 4px 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition);
}

.search-container:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 16px var(--ember-glow);
}

.search-icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
  margin-right: 10px;
  flex-shrink: 0;
}

#search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--bone);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  padding: 12px 0;
}

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

.search-clear-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  display: none; /* Shown dynamically */
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.search-clear-btn:hover {
  color: var(--bone);
}

/* ── NAVIGATION TABS ── */
.navigation-tabs {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.03);
  padding: 6px;
  border-radius: 14px;
  margin-bottom: 22px;
}

.tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.tab-btn:hover {
  color: var(--sand);
}

.tab-btn.active {
  background: var(--surface-solid);
  color: var(--bone);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.tab-icon {
  width: 16px;
  height: 16px;
}

/* ── MAIN FEED & LISTINGS ── */
.feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Ep Card Layout */
.episode-card {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  text-align: left;
}

.episode-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-focus);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.episode-card:active {
  transform: translateY(0);
}

.card-cover-container {
  width: 90px;
  height: 90px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.episode-card:hover .card-cover {
  transform: scale(1.05);
}

.card-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-show-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-ep-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--bone);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.card-meta {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.card-play-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  transition: var(--transition);
}

.episode-card:hover .card-play-indicator {
  color: var(--ember);
}

.card-play-indicator svg {
  width: 14px;
  height: 14px;
}

/* Grid layout for Shows */
.shows-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 480px) {
  .shows-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

.show-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.show-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-focus);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.show-card-cover {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}

.show-card-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.2;
  color: var(--bone);
  margin-bottom: 3px;
}

.show-card-count {
  font-size: 10px;
  color: var(--muted);
}

/* ── STATES (LOADING, EMPTY) ── */
.state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: var(--muted);
  text-align: center;
}

.state-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.state-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  animation: blink 1.4s infinite both;
}

.state-dots i:nth-child(2) { animation-delay: 0.2s; }
.state-dots i:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

.state-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--sand);
  margin-bottom: 4px;
}

.state-desc {
  font-size: 12px;
  color: var(--muted);
}

/* ── SOCIAL & CONTACTS ── */
.contact {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 30px 0 10px;
  text-align: center;
}

.contact-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.clink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--sand);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
}

.clink:hover {
  color: var(--bone);
  border-color: var(--border-focus);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.clink svg {
  width: 16px;
  height: 16px;
}

.contact-note {
  font-size: 12px;
  color: var(--muted);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 0 40px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer span {
  width: 20px;
  height: 1px;
  background: var(--border);
  display: inline-block;
}

/* ── DETAILED DRAWER (BOTTOM SHEET) ── */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 100;
}

.backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 101;
  background: rgba(242, 246, 250, 0.85);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px 24px 0 0;
  padding: 16px 24px calc(24px + env(safe-area-inset-bottom));
  max-width: 500px;
  margin: 0 auto;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(105%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s, opacity 0.4s;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
  visibility: hidden;
  pointer-events: none;
}

.sheet.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

@media (min-width: 768px) {
  .sheet {
    top: 50%;
    bottom: auto;
    left: 50%;
    right: auto;
    transform: translate(-50%, -45%) scale(0.96);
    border-radius: 24px;
    background: rgba(242, 246, 250, 0.85);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    opacity: 0;
    width: 480px;
    max-height: 80vh;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s, visibility 0.4s;
  }
  .sheet.is-open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.15);
  margin: 0 auto 20px;
}

.sheet-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  color: var(--sand);
  font-size: 20px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.sheet-close:hover {
  color: var(--bone);
  background: rgba(0, 0, 0, 0.1);
}

.show-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.show-cover {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.show-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.show-meta-info {
  min-width: 0;
}

.show-kick {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.show-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  color: var(--bone);
  margin-top: 2px;
}

.show-count {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  display: block;
}

.sx-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sand);
  margin: 24px 0 12px;
  border-left: 2px solid var(--ember);
  padding-left: 8px;
}

.sx-label.first {
  margin-top: 0;
}

/* Aesthetic Player Button inside Sheet */
.aesthetic-player-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--ember), #c94033);
  padding: 12px 20px;
  border-radius: 100px;
  cursor: pointer;
  margin-top: 16px;
  margin-bottom: 20px;
  color: #fff;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(230, 90, 75, 0.25);
  -webkit-tap-highlight-color: transparent;
}

.aesthetic-player-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(230, 90, 75, 0.4);
}

.aesthetic-player-btn:active {
  transform: translateY(0);
}

.aesthetic-play-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--ember);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.aesthetic-play-icon svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

.aesthetic-play-text {
  display: flex;
  flex-direction: column;
}

.aesthetic-play-text span {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}

.aesthetic-play-text small {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 2px;
}

/* Links inside sheet */
.show-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.show-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  border-radius: 12px;
  color: var(--bone);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.show-link:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateX(3px);
}

.show-link svg {
  width: 18px;
  height: 18px;
}

/* Episodes in Sheet */
.sheet-ep-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sheet-ep-item {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.sheet-ep-item:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: rgba(255, 255, 255, 1);
}

.sheet-ep-cover-container {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.sheet-ep-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sheet-ep-meta {
  flex: 1;
  min-width: 0;
}

.sheet-ep-t {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--bone);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sheet-ep-time {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.sheet-ep-play-btn {
  background: rgba(255, 255, 255, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  color: var(--bone);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}

.sheet-ep-item:hover .sheet-ep-play-btn {
  background: var(--ember);
  border-color: var(--ember);
  color: #fff;
  transform: scale(1.05);
}

.sheet-ep-play-btn svg {
  width: 14px;
  height: 14px;
  margin-left: 2px; /* Center alignment adjustment for play triangle */
}

/* ── CUSTOM BOTTOM AUDIO PLAYER ── */
.player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.04);
  z-index: 90;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(110%); /* hidden until active */
  padding-bottom: env(safe-area-inset-bottom);
}

.player-bar.active {
  transform: translateY(0);
}

/* Progress bar inside Player */
.player-progress-container {
  height: 4px;
  width: 100%;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.player-progress-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.08);
  transition: height 0.1s;
}

.player-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--ember);
  width: 0%;
}

.player-progress-pin {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.15s;
}

.player-progress-container:hover .player-progress-bg {
  height: 6px;
}

.player-progress-container:hover .player-progress-pin {
  transform: translate(-50%, -50%) scale(1);
}

/* Player Inner Grid */
.player-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.player-track-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.player-cover {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--ink);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-meta {
  min-width: 0;
}

.player-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--bone);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.player-show {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.player-time {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .player-time {
    display: none; /* Hide timeline text on very small devices */
  }
}

/* Volume Control */
.player-volume-container {
  display: flex;
  align-items: center;
  position: relative;
}

.player-volume-btn {
  background: none;
  border: none;
  color: var(--sand);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  transition: var(--transition);
  border-radius: 50%;
}

.player-volume-btn:hover {
  color: var(--bone);
  background: var(--surface-light);
}

.volume-icon {
  width: 16px;
  height: 16px;
}

.volume-slider-wrap {
  width: 0;
  overflow: hidden;
  transition: width 0.25s ease, margin 0.25s ease;
  display: flex;
  align-items: center;
}

.player-volume-container:hover .volume-slider-wrap {
  width: 60px;
  margin-left: 6px;
}

#volume-slider {
  width: 100%;
  height: 3px;
  border-radius: 2px;
  outline: none;
  background: rgba(0, 0, 0, 0.1);
  accent-color: var(--sand);
  cursor: pointer;
  -webkit-appearance: none;
}

#volume-slider::-webkit-slider-runnable-track {
  background: transparent;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bone);
  cursor: pointer;
}

.player-play-btn {
  background: var(--bone);
  border: none;
  color: var(--ink);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.player-play-btn:hover {
  transform: scale(1.06);
}

.player-play-btn:active {
  transform: scale(0.96);
}

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

.player-play-btn .play-svg {
  margin-left: 3px; /* visual alignment offset */
}

/* Helpers */
.hidden {
  display: none !important;
}

/* Reduced Motion Settings */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    transition-duration: 0.001s !important;
  }
  .bar.active {
    animation: none;
  }
}
