/* ===== KOSHERMUSIK APP UI — Tab navigation, glass cards, Now Playing sheet ===== */
/* Additive layer on top of koshermusik.css — do NOT modify existing styles */

/* ---------- CSS Variables ---------- */
body.koshermusik-page {
  --km-tab-height: 56px;
  --km-content-max: 72rem;
  --km-mini-height: 64px;
  --km-safe-bottom: env(safe-area-inset-bottom, 0px);
  /* Safe area was inside a border-box height and ate the icon/label row on iPhone; total = content + pad. */
  --km-tab-safe-pad: max(var(--km-safe-bottom), 10px);
  --km-tab-bar-total: calc(var(--km-tab-height) + var(--km-tab-safe-pad));
  --km-safe-top: env(safe-area-inset-top, 0px);
  --km-safe-left: env(safe-area-inset-left, 0px);
  --km-safe-right: env(safe-area-inset-right, 0px);
  --km-glass-bg: rgba(18, 18, 18, 0.65);
  --km-glass-border: rgba(255, 255, 255, 0.07);
  --km-glass-blur: 20px;
  --km-tab-gradient: radial-gradient(ellipse at 50% 0%, rgba(255, 45, 45, 0.10), transparent 65%);
  --km-sheet-bezier: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ---------- No top bar (main KosherMusik app only) ---------- */
body.km-hide-site-header .site-header {
  display: none !important;
}

html:has(body.km-hide-site-header) {
  scroll-padding-top: max(0.75rem, env(safe-area-inset-top)) !important;
}

body.km-hide-site-header {
  padding-top: max(0.35rem, env(safe-area-inset-top));
}

/* ---------- Center main column (tabs + footer feel) ---------- */
body.koshermusik-page > [data-km-tab] {
  max-width: min(var(--km-content-max), 100%);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
  padding-left: clamp(12px, 4vw, 28px);
  padding-right: clamp(12px, 4vw, 28px);
}

body.koshermusik-page .km-home-hero,
body.koshermusik-page .km-home-section {
  padding-left: 0;
  padding-right: 0;
}

/* Feed tab rules removed — feed section retired */

body.koshermusik-page footer .footer-content,
body.koshermusik-page footer .footer-bottom {
  max-width: min(var(--km-content-max), 100%);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding-left: clamp(12px, 4vw, 28px);
  padding-right: clamp(12px, 4vw, 28px);
}

/* Albums / songs tab inner sections keep readable width */
body.koshermusik-page [data-km-tab] .koshermusik-radio-container,
body.koshermusik-page [data-km-tab] .koshermusik-discography,
body.koshermusik-page [data-km-tab] .km-songs-list {
  max-width: min(56rem, 100%);
  margin-left: auto;
  margin-right: auto;
}

/* ---------- More menu (bottom sheet) ---------- */
.km-more-menu {
  position: fixed;
  inset: 0;
  z-index: 1950;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.3s step-end;
}

.km-more-menu.is-open {
  pointer-events: auto;
  visibility: visible;
  transition: visibility 0s step-start;
}

.km-more-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.km-more-menu.is-open .km-more-menu-backdrop {
  opacity: 1;
}

.km-more-menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(78vh, 520px);
  background: rgba(14, 14, 14, 0.97);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--km-glass-border);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  padding: 8px 20px calc(20px + var(--km-tab-bar-total));
  transform: translateY(100%);
  transition: transform 0.4s var(--km-sheet-bezier);
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.45);
}

.km-more-menu.is-open .km-more-menu-panel {
  transform: translateY(0);
}

.km-more-menu-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
  margin: 4px auto 14px;
}

.km-more-menu-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 4px;
}

.km-more-menu-sub {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 1rem;
}

.km-more-menu-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.km-more-menu-link {
  font-family: 'Syne', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.km-more-menu-link:hover,
.km-more-menu-link:focus-visible {
  background: rgba(255, 45, 45, 0.12);
  color: #fff;
  outline: none;
}

.km-more-menu-link--brand .ricky {
  color: var(--ricky-red, #ff2d2d);
}

button.km-more-menu-theme {
  width: 100%;
  text-align: center;
  font: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
}

.km-more-theme-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.km-more-theme-sun,
.km-more-theme-moon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.km-more-theme-label {
  letter-spacing: 0.08em;
}

.km-more-theme-slash {
  margin: 0 0.15em;
  opacity: 0.45;
}

html[data-theme="light"] body.koshermusik-page .km-more-menu-theme .km-more-theme-sun {
  color: var(--ricky-red, #ff2d2d);
}

html[data-theme="light"] body.koshermusik-page .km-more-menu-theme .km-more-theme-moon {
  opacity: 0.38;
}

html[data-theme="dark"] body.koshermusik-page .km-more-menu-theme .km-more-theme-moon {
  color: var(--ricky-red, #ff2d2d);
}

html[data-theme="dark"] body.koshermusik-page .km-more-menu-theme .km-more-theme-sun {
  opacity: 0.38;
}

body.km-more-open {
  overflow: hidden !important;
}

.km-more-menu.is-open ~ .km-tab-bar .km-tab-more {
  color: var(--ricky-red, #ff2d2d);
}

/* ---------- Cinematic Background ---------- */
body.koshermusik-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--km-tab-gradient);
  transition: background 0.6s ease;
  pointer-events: none;
}

/* ---------- Bottom padding for tab bar + mini player ---------- */
body.koshermusik-page {
  padding-bottom: var(--km-tab-bar-total) !important;
}
body.koshermusik-page.km-has-mini {
  padding-bottom: calc(var(--km-mini-height) + var(--km-tab-bar-total)) !important;
}

/* ---------- Tab Bar ---------- */
.km-tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  box-sizing: content-box;
  height: var(--km-tab-height);
  padding-bottom: var(--km-tab-safe-pad);
  z-index: 1100;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--km-glass-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.km-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-family: 'Syne', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 8px;
  flex: 1;
  min-width: 0;
  max-width: 88px;
  transition: color 0.25s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  min-height: 48px;
  justify-content: center;
  border-radius: 12px;
}

.km-tab-btn:hover {
  background: rgba(255, 255, 255, 0.04);
}

.km-tab-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.km-tab-btn.is-active {
  color: var(--ricky-red, #ff2d2d);
}

.km-tab-btn.is-active svg {
  transform: scale(1.12);
}

.km-tab-btn:active {
  transform: scale(0.92);
}

@media (max-width: 480px) {
  body.koshermusik-page {
    --km-tab-height: 58px;
  }

  .km-tab-btn {
    font-size: 0.63rem;
    padding: 8px 4px;
    gap: 4px;
  }

  .km-tab-btn svg {
    width: 24px;
    height: 24px;
  }
}

/* ---------- Mobile Bottom Sheet Optimizations ---------- */
@media (max-width: 768px) {
  .km-tab-bar {
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    transform: none;
    margin: 0;
    /* Tab strip above home indicator; safe pad lives in --km-tab-safe-pad */
    z-index: 1100;
  }

  .km-now-playing-mini {
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
    bottom: var(--km-tab-bar-total);
    box-sizing: border-box;
    z-index: 1110;
    /* Ensure mini player doesn't get hidden behind tab bar */
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .km-now-playing-mini.is-hidden {
    transform: translateY(calc(var(--km-mini-height) + 12px)) !important;
  }
  
  /* Mobile-specific touch targets */
  .km-tab-btn {
    min-height: 56px;
    padding: 10px 4px;
  }
  
  .km-tab-btn svg {
    width: 24px;
    height: 24px;
  }
  
  /* Larger sheet controls on mobile */
  .km-sheet-ctrl {
    min-width: 56px;
    min-height: 56px;
    padding: 16px;
  }
  
  .km-sheet-ctrl.km-ctrl-play {
    min-width: 64px;
    min-height: 64px;
  }
  
  /* Better mini player on mobile */
  .km-mini-play {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
  }
  
  /* Larger song rows for touch */
  .km-song-row {
    padding: 14px 16px;
    margin-bottom: 8px;
  }
  
  .km-song-row-like {
    min-width: 48px;
    min-height: 48px;
    padding: 12px;
  }
  
  /* Better volume slider on mobile */
  .km-sheet-volume input[type="range"] {
    height: 48px;
  }
  
  .km-sheet-volume input[type="range"]::-webkit-slider-thumb {
    width: 28px;
    height: 28px;
    margin-top: -10px;
  }
  
  /* Larger progress bar on mobile */
  .km-sheet-progress-track {
    height: 32px;
    padding: 6px 0;
  }
  
  .km-sheet-progress-fill {
    height: 8px;
  }
  
  /* Better more menu on mobile */
  .km-more-menu-panel {
    padding: 12px 20px calc(24px + var(--km-tab-bar-total));
  }
  
  /* Larger quick actions on mobile */
  .km-quick-action {
    min-height: 60px;
    padding: 18px 14px;
  }
  
  /* Better album cards on mobile */
  .album-card {
    margin-bottom: 12px;
  }
  
  /* Larger artwork on mobile */
  .km-sheet-artwork {
    width: 80vw;
    height: 80vw;
    max-width: 320px;
    max-height: 320px;
    margin: 12px auto 20px;
  }
  
  /* Better song detail modal on mobile */
  .km-song-detail-content {
    padding: 24px 20px calc(28px + var(--km-safe-bottom));
  }
  
  /* Ensure proper safe area handling */
  body.koshermusik-page {
    padding-bottom: calc(var(--km-tab-bar-total) + env(safe-area-inset-bottom, 0px)) !important;
  }
  
  body.koshermusik-page.km-has-mini {
    padding-bottom: calc(var(--km-mini-height) + var(--km-tab-bar-total) + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* ---------- Tab Content Visibility ---------- */
[data-km-tab] {
  display: none;
  contain: layout style paint;
  animation: kmTabFadeIn 0.28s ease;
}

[data-km-tab].km-tab-active {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  [data-km-tab] {
    animation: none;
  }
  .km-now-playing-mini,
  .km-tab-btn,
  .km-mini-play {
    transition: none;
  }
}

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

/* ---------- Glass Card ---------- */
.km-glass {
  background: var(--km-glass-bg);
  backdrop-filter: blur(var(--km-glass-blur));
  -webkit-backdrop-filter: blur(var(--km-glass-blur));
  border: 1px solid var(--km-glass-border);
  border-radius: 20px;
}

/* Album cards — glass morphism upgrade */
body.koshermusik-page .album-card {
  background: var(--km-glass-bg) !important;
  backdrop-filter: blur(var(--km-glass-blur));
  -webkit-backdrop-filter: blur(var(--km-glass-blur));
  border: 1px solid var(--km-glass-border) !important;
  border-radius: 16px !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

body.koshermusik-page .album-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 8px 32px rgba(255, 45, 45, 0.10);
  border-color: rgba(255, 45, 45, 0.18) !important;
}

/* ---------- Eyebrow Section Headers ---------- */
.km-eyebrow {
  font-family: 'Syne', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ricky-red, #ff2d2d);
  margin-bottom: 0.4rem;
  display: block;
  opacity: 0.85;
}

.km-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 1.2rem 0;
  line-height: 1.2;
}

/* Albums tab: single title row (no duplicate section-label + section-title stack) */
.km-albums-heading {
  text-align: center;
  max-width: min(var(--content-max, 56rem), 100%);
  margin-left: auto;
  margin-right: auto;
}

.km-albums-heading-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(1.65rem, 3.8vw, 2.65rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  color: #fff;
}

html[data-theme="light"] body.koshermusik-page .km-albums-heading-title,
body.koshermusik-page.light-mode .km-albums-heading-title {
  color: #111;
}

/* ---------- Now Playing Mini Bar ---------- */
.km-now-playing-mini {
  position: fixed;
  bottom: var(--km-tab-bar-total);
  left: 0;
  right: 0;
  height: var(--km-mini-height);
  /* Above .km-tab-bar (1100) so the bar is not painted over the player */
  z-index: 1110;
  background: rgba(14, 14, 14, 0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid rgba(255, 45, 45, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px 0 8px;
  cursor: pointer;
  transition: transform 0.3s var(--km-sheet-bezier);
  -webkit-tap-highlight-color: transparent;
  transform: translateZ(0);
  will-change: transform;
}

.km-now-playing-mini.is-hidden {
  transform: translateY(calc(var(--km-mini-height) + 10px)) translateZ(0);
  pointer-events: none;
  will-change: auto;
}

.km-mini-art-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.km-mini-artwork {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  background: #1a1a1a;
  display: block;
}

.km-mini-art-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(255, 45, 45, 0.18), rgba(255, 255, 255, 0.06));
  color: rgba(255, 255, 255, 0.72);
}

.km-mini-art-placeholder.is-visible {
  display: flex;
}

.km-mini-art-placeholder svg {
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.km-mini-art-wrap.is-spinning .km-mini-artwork,
.km-mini-art-wrap.is-spinning .km-mini-art-placeholder.is-visible {
  animation: kmMiniSpin 8s linear infinite;
  border-radius: 50%;
}

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

.km-mini-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.km-mini-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.km-mini-artist {
  font-family: 'Syne', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.km-mini-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ricky-red, #ff2d2d);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.km-mini-play:active {
  transform: scale(0.88);
}

.km-mini-play svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  pointer-events: none;
}

.km-mini-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--ricky-red, #ff2d2d);
  transition: width 0.3s linear;
  border-radius: 1px;
}

/* ---------- Now Playing Sheet ---------- */
.km-now-playing-sheet {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(6, 6, 6, 0.97);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  transform: translateY(100%);
  transition: transform 0.45s var(--km-sheet-bezier);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px calc(32px + var(--km-safe-bottom));
}

.km-now-playing-sheet.is-open {
  transform: translateY(0);
}

body.km-sheet-open {
  overflow: hidden !important;
}

.km-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  margin: 10px auto 6px;
  flex-shrink: 0;
}

.km-sheet-close {
  align-self: flex-start;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 12px;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 4px;
  transition: color 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.km-sheet-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.km-sheet-close svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  pointer-events: none;
}

.km-sheet-artwork {
  width: min(340px, 85vw);
  height: min(340px, 85vw);
  border-radius: 20px;
  overflow: hidden;
  margin: 8px auto 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 80px rgba(255, 45, 45, 0.06);
  position: relative;
  background: #111;
  flex-shrink: 0;
}

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

.km-sheet-artwork .km-sheet-art-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
}

.km-sheet-artwork .km-sheet-art-placeholder svg {
  width: 72px;
  height: 72px;
  fill: var(--ricky-red, #ff2d2d);
  opacity: 0.4;
}

.km-sheet-track-info {
  text-align: center;
  margin-bottom: 20px;
  max-width: 340px;
  width: 100%;
}

.km-sheet-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.25;
}

.km-sheet-artist {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.km-sheet-album {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 2px;
}

/* Sheet progress */
.km-sheet-progress {
  width: 100%;
  max-width: 340px;
  margin-bottom: 16px;
  padding: 8px 0;
}

.km-sheet-progress-track {
  width: 100%;
  height: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.km-sheet-progress-fill {
  height: 4px;
  background: var(--ricky-red, #ff2d2d);
  border-radius: 2px;
  width: 0%;
  transition: width 0.25s linear;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.km-sheet-progress-times {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Sheet controls */
.km-sheet-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
  max-width: 340px;
  width: 100%;
}

.km-sheet-ctrl {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  padding: 12px;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s ease, transform 0.15s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.km-sheet-ctrl:active {
  transform: scale(0.88);
}

.km-sheet-ctrl svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  pointer-events: none;
}

.km-sheet-ctrl.km-ctrl-play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.10);
}

.km-sheet-ctrl.km-ctrl-play svg {
  width: 30px;
  height: 30px;
}

.km-sheet-ctrl.km-ctrl-play:active {
  transform: scale(0.90);
}

.km-sheet-ctrl.is-active {
  color: var(--ricky-red, #ff2d2d);
}

.km-sheet-ctrl:hover {
  background: rgba(255, 255, 255, 0.06);
}

.km-sheet-ctrl.km-ctrl-play:hover {
  background: #fff;
  transform: scale(1.04);
}

/* Sheet volume — tall touch target + proper touch handling */
.km-sheet-volume {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: min(320px, 90vw);
  margin-bottom: 28px;
  padding: 4px 0;
  /* Allow vertical scroll while using horizontal slider */
  touch-action: pan-y;
}

.km-sheet-volume svg {
  width: 18px;
  height: 18px;
  fill: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}

.km-sheet-volume input[type="range"] {
  flex: 1;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  outline: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  /* Allow vertical scroll on the sheet while horizontal slider works */
  touch-action: pan-y;
  padding: 0 8px;
}

.km-sheet-volume input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
}

.km-sheet-volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  /* Larger touch target */
  border: 4px solid transparent;
  background-clip: padding-box;
}

.km-sheet-volume input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
}

.km-sheet-volume input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 4px solid transparent;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  background-clip: padding-box;
}

html[data-theme="light"] body.koshermusik-page .km-sheet-volume input[type="range"]::-webkit-slider-runnable-track {
  background: rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] body.koshermusik-page .km-sheet-volume input[type="range"]::-webkit-slider-thumb {
  background: var(--ricky-red, #ff2d2d);
}

html[data-theme="light"] body.koshermusik-page .km-sheet-volume input[type="range"]::-moz-range-track {
  background: rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] body.koshermusik-page .km-sheet-volume input[type="range"]::-moz-range-thumb {
  background: var(--ricky-red, #ff2d2d);
}

/* Sheet actions */
.km-sheet-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 28px;
}

.km-sheet-action-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: 'Syne', sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  padding: 10px 16px;
  min-width: 64px;
  min-height: 64px;
  justify-content: center;
  border-radius: 12px;
}

.km-sheet-action-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.8);
}

.km-sheet-action-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  pointer-events: none;
}

.km-sheet-action-btn.is-liked {
  color: #ff4d6a;
}

.km-sheet-action-btn:active {
  transform: scale(0.88);
}

/* Sheet queue */
.km-sheet-queue {
  width: 100%;
  max-width: 340px;
}

.km-sheet-queue-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 10px;
}

.km-sheet-queue-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.km-sheet-queue-item:last-child {
  border-bottom: none;
}

.km-sheet-queue-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  width: 20px;
  text-align: center;
}

.km-sheet-queue-info {
  flex: 1;
  min-width: 0;
}

.km-sheet-queue-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.km-sheet-queue-artist {
  font-family: 'Syne', sans-serif;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.4);
}

.km-sheet-queue-dur {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

/* ---------- Songs Tab ---------- */
.km-songs-back-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 0.65rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.km-songs-back-btn:hover {
  background: rgba(255, 45, 45, 0.12);
  border-color: rgba(255, 45, 45, 0.35);
  color: #fff;
}

.km-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--km-tab-bar-total, 56px) + 1rem);
  transform: translateX(-50%) translateY(12px);
  z-index: 3000;
  max-width: min(90vw, 22rem);
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  background: rgba(18, 18, 18, 0.94);
  border: 1px solid rgba(255, 45, 45, 0.25);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.km-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.km-songs-state {
  text-align: center;
  padding: 2.5rem 1.25rem;
  font-family: 'Syne', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.45);
}

.km-songs-error {
  color: rgba(255, 120, 120, 0.95);
}

html[data-theme="light"] body.koshermusik-page .km-songs-state {
  color: rgba(0, 0, 0, 0.45);
}

html[data-theme="light"] body.koshermusik-page .km-songs-error {
  color: #b91c1c;
}

.km-songs-list {
  padding: 0 clamp(12px, 3vw, 24px);
}

.km-song-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 6px;
  background: var(--km-glass-bg);
  backdrop-filter: blur(var(--km-glass-blur));
  -webkit-backdrop-filter: blur(var(--km-glass-blur));
  border: 1px solid var(--km-glass-border);
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.km-song-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 45, 45, 0.15);
}

.km-song-row:active {
  transform: scale(0.985);
}

.km-song-row.is-playing {
  border-color: rgba(255, 45, 45, 0.3);
  background: rgba(255, 45, 45, 0.06);
}

.km-song-row-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.km-song-row.is-playing .km-song-row-num {
  color: var(--ricky-red, #ff2d2d);
}

.km-song-row-art {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #1a1a1a;
  flex-shrink: 0;
}

.km-song-row-art--placeholder {
  display: block;
  background: linear-gradient(145deg, rgba(255, 45, 45, 0.2), rgba(255, 255, 255, 0.06));
}

.km-song-row-info {
  flex: 1;
  min-width: 0;
}

.km-song-row-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.km-song-row.is-playing .km-song-row-title {
  color: var(--ricky-red, #ff2d2d);
}

.km-song-row-artist {
  font-family: 'Syne', sans-serif;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.km-song-row-plays {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.km-song-row-dur {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  min-width: 34px;
  text-align: right;
}

.km-song-row-like {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 8px;
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.km-song-row-like svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  pointer-events: none;
}

.km-song-row-like.is-liked {
  color: #ff4d6a;
}

.km-song-row-like:hover {
  background: rgba(255, 255, 255, 0.06);
}

.km-song-row-like:active {
  transform: scale(1.15);
}

/* ---------- Album title row + like (below artwork, not on cover) ---------- */
.km-album-info-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.km-album-info-head .album-title {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.km-album-like {
  position: static;
  flex-shrink: 0;
  margin-top: 0.06rem;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.km-album-like svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.km-album-like:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.km-album-like.is-liked {
  color: #ff4d6a;
  background: rgba(255, 77, 106, 0.12);
  border-color: rgba(255, 77, 106, 0.35);
}

.km-album-like:active {
  transform: scale(1.08);
}

html[data-theme="light"] body.koshermusik-page .km-album-like,
body.koshermusik-page.light-mode .km-album-like {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.45);
}

html[data-theme="light"] body.koshermusik-page .km-album-like:hover,
body.koshermusik-page.light-mode .km-album-like:hover {
  color: rgba(0, 0, 0, 0.75);
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.14);
}

/* ---------- Song Detail Modal ---------- */
.km-song-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.km-song-detail-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.km-song-detail-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.km-song-detail-content {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 85vh;
  background: rgba(16, 16, 16, 0.96);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-radius: 24px 24px 0 0;
  border: 1px solid var(--km-glass-border);
  border-bottom: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 20px calc(24px + var(--km-safe-bottom));
  transform: translateY(100%);
  transition: transform 0.4s var(--km-sheet-bezier);
}

.km-song-detail-modal.is-open .km-song-detail-content {
  transform: translateY(0);
}

.km-song-detail-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 auto 16px;
}

.km-song-detail-header {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.km-song-detail-art {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  object-fit: cover;
  background: #1a1a1a;
  flex-shrink: 0;
}

.km-song-detail-meta {
  flex: 1;
  min-width: 0;
}

.km-song-detail-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 3px;
}

.km-song-detail-artist {
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.km-song-detail-album {
  font-family: 'Syne', sans-serif;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 2px;
}

.km-song-detail-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.km-song-detail-actions button {
  flex: 1;
  padding: 10px 0;
  border-radius: 12px;
  border: 1px solid var(--km-glass-border);
  background: var(--km-glass-bg);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.km-song-detail-actions button:active {
  transform: scale(0.96);
}

.km-song-detail-actions button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.km-song-detail-actions .km-detail-play-btn {
  background: var(--ricky-red, #ff2d2d);
  border-color: var(--ricky-red, #ff2d2d);
}

.km-song-detail-comments-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 10px;
}

.km-song-detail-comment {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.km-song-detail-comment:last-child {
  border-bottom: none;
}

.km-song-detail-comment-author {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ricky-red, #ff2d2d);
}

.km-song-detail-comment-time {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.3);
  margin-left: 8px;
}

.km-song-detail-comment-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 4px;
  line-height: 1.5;
}

.km-song-detail-no-comments {
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  padding: 20px 0;
}

/* ---------- Home Tab Enhancements ---------- */
.km-home-hero {
  padding: clamp(2rem, 6vw, 4rem) clamp(12px, 3vw, 24px);
  text-align: center;
}

.km-home-hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.km-home-hero-sub {
  font-family: 'Syne', sans-serif;
  font-size: clamp(0.78rem, 2.5vw, 1rem);
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.km-home-section {
  padding: 0 clamp(12px, 3vw, 24px);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.km-home-featured-albums {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.km-home-album-card {
  background: var(--km-glass-bg);
  backdrop-filter: blur(var(--km-glass-blur));
  -webkit-backdrop-filter: blur(var(--km-glass-blur));
  border: 1px solid var(--km-glass-border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.km-home-album-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 45, 45, 0.15);
}

.km-home-album-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.km-home-album-card-info {
  padding: 10px 12px;
}

.km-home-album-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.km-home-album-card-year {
  font-family: 'Syne', sans-serif;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Quick action cards */
.km-quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.km-quick-action {
  background: var(--km-glass-bg);
  backdrop-filter: blur(var(--km-glass-blur));
  -webkit-backdrop-filter: blur(var(--km-glass-blur));
  border: 1px solid var(--km-glass-border);
  border-radius: 14px;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}

.km-quick-action:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 45, 45, 0.12);
}

a.km-quick-action--link {
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

a.km-quick-action--link:hover {
  color: inherit;
}

.km-quick-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 45, 45, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.km-quick-action-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--ricky-red, #ff2d2d);
}

.km-quick-action-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
}

/* ---------- Footer Adjustments ---------- */
body.koshermusik-page footer {
  margin-bottom: 0;
  padding-bottom: 1rem;
}

/* ---------- Hide original page header on KM (replaced by home hero) ---------- */
body.koshermusik-page .koshermusik-page-header {
  display: none;
}

/* ---------- Full Screen Media Player on Mobile ---------- */
@media (max-width: 768px) {
  /* Visualizer controls hidden on mobile since no radio tab */
  .km-visualizer-controls {
    display: none;
  }
}

/* ---------- Visualizer Controls (all viewports) ---------- */
.km-visualizer-controls {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 4px;
  justify-content: center;
  flex-wrap: wrap;
}

.km-visualizer-btn {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.75);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.km-visualizer-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.km-visualizer-btn.is-active {
  background: var(--ricky-red, #b91c1c);
  border-color: var(--ricky-red, #b91c1c);
  color: #fff;
}

.km-visualizer-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .km-tab-btn {
    padding: 6px 2px;
    max-width: none;
  }
  .km-tab-btn span {
    font-size: 0.48rem;
    letter-spacing: 0.04em;
  }
  .km-tab-btn svg {
    width: 20px;
    height: 20px;
  }
  .km-sheet-artwork {
    width: 80vw;
    height: 80vw;
    max-width: 300px;
    max-height: 300px;
  }
  .km-sheet-controls {
    gap: 22px;
  }
  .km-sheet-ctrl.km-ctrl-play {
    width: 56px;
    height: 56px;
  }
}

@media (min-width: 769px) {
  .km-song-detail-content {
    border-radius: 24px;
    margin-bottom: 40px;
    max-height: 80vh;
    border-bottom: 1px solid var(--km-glass-border);
  }
  .km-song-detail-modal {
    align-items: center;
  }
}

/* ---------- Audio Controls in More Menu ---------- */
.km-audio-controls {
  padding: 16px 20px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.km-audio-control-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.km-audio-control-row:last-child {
  margin-bottom: 0;
}

.km-audio-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.km-audio-slider-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.km-audio-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.km-audio-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.km-audio-btn:active {
  transform: scale(0.9);
  background: var(--ricky-red, #b91c1c);
  border-color: var(--ricky-red, #b91c1c);
}

.km-audio-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.km-audio-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ricky-red, #b91c1c);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(185, 28, 28, 0.4);
  transition: transform 0.2s ease;
}

.km-audio-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.km-audio-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ricky-red, #b91c1c);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(185, 28, 28, 0.4);
}

.km-audio-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  min-width: 40px;
  text-align: right;
}

/* More menu link with icon */
.km-more-menu-link svg {
  width: 18px;
  height: 18px;
  margin-right: 12px;
  opacity: 0.7;
}

/* Light mode audio controls */
html[data-theme="light"] .km-audio-controls,
body.koshermusik-page.light-mode .km-audio-controls {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .km-audio-label,
body.koshermusik-page.light-mode .km-audio-label {
  color: rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] .km-audio-btn,
body.koshermusik-page.light-mode .km-audio-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.7);
}

html[data-theme="light"] .km-audio-btn:hover,
body.koshermusik-page.light-mode .km-audio-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #000;
}

html[data-theme="light"] .km-audio-slider,
body.koshermusik-page.light-mode .km-audio-slider {
  background: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .km-audio-value,
body.koshermusik-page.light-mode .km-audio-value {
  color: rgba(0, 0, 0, 0.6);
}

/* ---------- Light mode (html data-theme + legacy body.light-mode) ---------- */
html[data-theme="light"] body.koshermusik-page,
body.koshermusik-page.light-mode {
  --km-glass-bg: rgba(255, 255, 255, 0.9);
  --km-glass-border: rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] body.koshermusik-page .km-tab-bar,
body.koshermusik-page.light-mode .km-tab-bar {
  background: rgba(252, 252, 252, 0.96);
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] body.koshermusik-page .km-tab-btn,
body.koshermusik-page.light-mode .km-tab-btn {
  color: rgba(0, 0, 0, 0.58);
}

html[data-theme="light"] body.koshermusik-page .km-tab-btn.is-active,
body.koshermusik-page.light-mode .km-tab-btn.is-active {
  color: var(--ricky-red, #ff2d2d);
}

html[data-theme="light"] body.koshermusik-page .km-now-playing-mini,
body.koshermusik-page.light-mode .km-now-playing-mini {
  background: rgba(248, 248, 248, 0.96);
  border-top-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] body.koshermusik-page .km-mini-title,
body.koshermusik-page.light-mode .km-mini-title {
  color: #111;
}

html[data-theme="light"] body.koshermusik-page .km-mini-artist,
body.koshermusik-page.light-mode .km-mini-artist {
  color: rgba(0, 0, 0, 0.52);
}

html[data-theme="light"] body.koshermusik-page .km-now-playing-sheet,
body.koshermusik-page.light-mode .km-now-playing-sheet {
  background: rgba(250, 250, 250, 0.98);
}

html[data-theme="light"] body.koshermusik-page .km-sheet-title,
body.koshermusik-page.light-mode .km-sheet-title {
  color: #111;
}

html[data-theme="light"] body.koshermusik-page .km-sheet-artist,
html[data-theme="light"] body.koshermusik-page .km-sheet-album,
body.koshermusik-page.light-mode .km-sheet-artist,
body.koshermusik-page.light-mode .km-sheet-album {
  color: rgba(0, 0, 0, 0.55);
}

html[data-theme="light"] body.koshermusik-page .km-song-row,
body.koshermusik-page.light-mode .km-song-row {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] body.koshermusik-page .km-song-row-title,
body.koshermusik-page.light-mode .km-song-row-title {
  color: #111;
}

html[data-theme="light"] body.koshermusik-page .km-song-row-artist,
html[data-theme="light"] body.koshermusik-page .km-song-row-dur,
body.koshermusik-page.light-mode .km-song-row-artist,
body.koshermusik-page.light-mode .km-song-row-dur {
  color: rgba(0, 0, 0, 0.48);
}

html[data-theme="light"] body.koshermusik-page .km-song-row-num,
body.koshermusik-page.light-mode .km-song-row-num {
  color: rgba(0, 0, 0, 0.38);
}

html[data-theme="light"] body.koshermusik-page .km-song-row-like,
body.koshermusik-page.light-mode .km-song-row-like {
  color: rgba(0, 0, 0, 0.42);
}

html[data-theme="light"] body.koshermusik-page .km-song-detail-content,
body.koshermusik-page.light-mode .km-song-detail-content {
  background: rgba(248, 248, 248, 0.98);
}

html[data-theme="light"] body.koshermusik-page .km-home-hero-title,
body.koshermusik-page.light-mode .km-home-hero-title {
  color: #111;
}

html[data-theme="light"] body.koshermusik-page .km-home-hero-sub,
body.koshermusik-page.light-mode .km-home-hero-sub {
  color: rgba(0, 0, 0, 0.52);
}

html[data-theme="light"] body.koshermusik-page .km-section-title,
body.koshermusik-page.light-mode .km-section-title {
  color: #111;
}

html[data-theme="light"] body.koshermusik-page .km-home-album-card-title,
body.koshermusik-page.light-mode .km-home-album-card-title {
  color: #111;
}

html[data-theme="light"] body.koshermusik-page .km-home-album-card-year,
body.koshermusik-page.light-mode .km-home-album-card-year {
  color: rgba(0, 0, 0, 0.45);
}

html[data-theme="light"] body.koshermusik-page .km-quick-action-label,
body.koshermusik-page.light-mode .km-quick-action-label {
  color: #111;
}

html[data-theme="light"] body.koshermusik-page .km-quick-action:hover,
body.koshermusik-page.light-mode .km-quick-action:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(255, 45, 45, 0.18);
}

html[data-theme="light"] body.koshermusik-page .km-more-menu-panel,
body.koshermusik-page.light-mode .km-more-menu-panel {
  background: rgba(252, 252, 252, 0.98);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.14);
}

html[data-theme="light"] body.koshermusik-page .km-more-menu-title,
body.koshermusik-page.light-mode .km-more-menu-title {
  color: rgba(0, 0, 0, 0.48);
}

html[data-theme="light"] body.koshermusik-page .km-more-menu-sub,
body.koshermusik-page.light-mode .km-more-menu-sub {
  color: #111;
}

html[data-theme="light"] body.koshermusik-page .km-more-menu-link,
body.koshermusik-page.light-mode .km-more-menu-link {
  color: rgba(0, 0, 0, 0.82);
}

html[data-theme="light"] body.koshermusik-page .km-more-menu-link:hover,
html[data-theme="light"] body.koshermusik-page .km-more-menu-link:focus-visible,
body.koshermusik-page.light-mode .km-more-menu-link:hover,
body.koshermusik-page.light-mode .km-more-menu-link:focus-visible {
  background: rgba(255, 45, 45, 0.08);
  color: #111;
}

html[data-theme="light"] body.koshermusik-page .km-more-menu-handle,
body.koshermusik-page.light-mode .km-more-menu-handle {
  background: rgba(0, 0, 0, 0.18);
}

/* ---------- Light mode: Now Playing sheet queue ---------- */
html[data-theme="light"] body.koshermusik-page .km-sheet-queue-title,
body.koshermusik-page.light-mode .km-sheet-queue-title {
  color: rgba(0, 0, 0, 0.42);
}
html[data-theme="light"] body.koshermusik-page .km-sheet-queue-item,
body.koshermusik-page.light-mode .km-sheet-queue-item {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}
html[data-theme="light"] body.koshermusik-page .km-sheet-queue-num,
html[data-theme="light"] body.koshermusik-page .km-sheet-queue-dur,
body.koshermusik-page.light-mode .km-sheet-queue-num,
body.koshermusik-page.light-mode .km-sheet-queue-dur {
  color: rgba(0, 0, 0, 0.35);
}
html[data-theme="light"] body.koshermusik-page .km-sheet-queue-name,
body.koshermusik-page.light-mode .km-sheet-queue-name {
  color: #111;
}
html[data-theme="light"] body.koshermusik-page .km-sheet-queue-artist,
body.koshermusik-page.light-mode .km-sheet-queue-artist {
  color: rgba(0, 0, 0, 0.45);
}

/* ---------- Light mode: Song detail modal ---------- */
html[data-theme="light"] body.koshermusik-page .km-song-detail-title,
body.koshermusik-page.light-mode .km-song-detail-title {
  color: #111;
}
html[data-theme="light"] body.koshermusik-page .km-song-detail-artist,
body.koshermusik-page.light-mode .km-song-detail-artist {
  color: rgba(0, 0, 0, 0.55);
}
html[data-theme="light"] body.koshermusik-page .km-song-detail-album,
body.koshermusik-page.light-mode .km-song-detail-album {
  color: rgba(0, 0, 0, 0.4);
}
html[data-theme="light"] body.koshermusik-page .km-song-detail-actions button,
body.koshermusik-page.light-mode .km-song-detail-actions button {
  color: #111;
}
html[data-theme="light"] body.koshermusik-page .km-song-detail-actions .km-detail-play-btn,
body.koshermusik-page.light-mode .km-song-detail-actions .km-detail-play-btn {
  color: #fff;
}
html[data-theme="light"] body.koshermusik-page .km-song-detail-comments-title,
body.koshermusik-page.light-mode .km-song-detail-comments-title {
  color: rgba(0, 0, 0, 0.42);
}
html[data-theme="light"] body.koshermusik-page .km-song-detail-comment,
body.koshermusik-page.light-mode .km-song-detail-comment {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}
html[data-theme="light"] body.koshermusik-page .km-song-detail-comment-time,
body.koshermusik-page.light-mode .km-song-detail-comment-time {
  color: rgba(0, 0, 0, 0.35);
}
html[data-theme="light"] body.koshermusik-page .km-song-detail-comment-text,
body.koshermusik-page.light-mode .km-song-detail-comment-text {
  color: rgba(0, 0, 0, 0.75);
}
html[data-theme="light"] body.koshermusik-page .km-song-detail-no-comments,
body.koshermusik-page.light-mode .km-song-detail-no-comments {
  color: rgba(0, 0, 0, 0.35);
}

/* ---------- Light mode: home album card hover ---------- */
html[data-theme="light"] body.koshermusik-page .km-home-album-card:hover,
body.koshermusik-page.light-mode .km-home-album-card:hover {
  border-color: rgba(255, 45, 45, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ============================================
   LIGHT MODE PLAYER CONTROLS FIX
   Ensure ALL controls are visible in light mode
   ============================================ */

/* Base player container */
html[data-theme="light"] body.koshermusik-page .koshermusik-main-player,
body.koshermusik-page.light-mode .koshermusik-main-player {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
}

/* All control buttons */
html[data-theme="light"] body.koshermusik-page .player-controls-large .control-btn-large,
body.koshermusik-page.light-mode .player-controls-large .control-btn-large {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
  color: #111;
}

html[data-theme="light"] body.koshermusik-page .player-controls-large .control-btn-large:hover,
body.koshermusik-page.light-mode .player-controls-large .control-btn-large:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.25);
  color: #000;
}

/* Play button (primary) */
html[data-theme="light"] body.koshermusik-page .player-controls-large .play-btn-large,
body.koshermusik-page.light-mode .player-controls-large .play-btn-large {
  background: var(--ricky-red, #b91c1c);
  color: white;
  border-color: var(--ricky-red, #b91c1c);
}

/* Track info text */
html[data-theme="light"] body.koshermusik-page .track-title-large,
body.koshermusik-page.light-mode .track-title-large {
  color: #111;
}

html[data-theme="light"] body.koshermusik-page .track-artist-large,
body.koshermusik-page.light-mode .track-artist-large {
  color: rgba(0, 0, 0, 0.7);
}

html[data-theme="light"] body.koshermusik-page .track-album-large,
body.koshermusik-page.light-mode .track-album-large {
  color: rgba(0, 0, 0, 0.5);
}

/* Progress bar */
html[data-theme="light"] body.koshermusik-page .progress-bar-large,
body.koshermusik-page.light-mode .progress-bar-large {
  background: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] body.koshermusik-page .progress-fill-large,
body.koshermusik-page.light-mode .progress-fill-large {
  background: var(--ricky-red, #b91c1c);
}

html[data-theme="light"] body.koshermusik-page .progress-handle,
body.koshermusik-page.light-mode .progress-handle {
  background: var(--ricky-red, #b91c1c);
  border-color: white;
}

/* Time display */
html[data-theme="light"] body.koshermusik-page .time-display-large,
body.koshermusik-page.light-mode .time-display-large {
  color: rgba(0, 0, 0, 0.6);
}

html[data-theme="light"] body.koshermusik-page .time-display-large span,
body.koshermusik-page.light-mode .time-display-large span {
  color: rgba(0, 0, 0, 0.7);
}

/* Volume controls */
html[data-theme="light"] body.koshermusik-page .volume-btn-large,
body.koshermusik-page.light-mode .volume-btn-large {
  color: #111;
  background: rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] body.koshermusik-page .volume-btn-large:hover,
body.koshermusik-page.light-mode .volume-btn-large:hover {
  background: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] body.koshermusik-page .volume-slider-vertical input,
body.koshermusik-page.light-mode .volume-slider-vertical input {
  background: rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] body.koshermusik-page .volume-slider-vertical input::-webkit-slider-thumb,
body.koshermusik-page.light-mode .volume-slider-vertical input::-webkit-slider-thumb {
  background: var(--ricky-red, #b91c1c);
}

/* Queue section */
html[data-theme="light"] body.koshermusik-page .player-queue-section,
body.koshermusik-page.light-mode .player-queue-section {
  background: rgba(0, 0, 0, 0.02);
}

html[data-theme="light"] body.koshermusik-page .player-queue-title,
body.koshermusik-page.light-mode .player-queue-title {
  color: #111;
}

html[data-theme="light"] body.koshermusik-page .player-queue-list,
body.koshermusik-page.light-mode .player-queue-list {
  color: #111;
}

html[data-theme="light"] body.koshermusik-page .player-queue-item,
body.koshermusik-page.light-mode .player-queue-item {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] body.koshermusik-page .player-queue-item:hover,
body.koshermusik-page.light-mode .player-queue-item:hover {
  background: rgba(0, 0, 0, 0.03);
}

/* Share buttons */
html[data-theme="light"] body.koshermusik-page .km-share-btn,
body.koshermusik-page.light-mode .km-share-btn {
  color: #111;
  border-color: rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] body.koshermusik-page .km-share-btn:hover,
body.koshermusik-page.light-mode .km-share-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: var(--ricky-red, #b91c1c);
  color: var(--ricky-red, #b91c1c);
}

html[data-theme="light"] body.koshermusik-page .km-share-btn svg,
body.koshermusik-page.light-mode .km-share-btn svg {
  stroke: currentColor;
}

/* Visualizer controls */
html[data-theme="light"] body.koshermusik-page .km-visualizer-btn,
body.koshermusik-page.light-mode .km-visualizer-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #111;
}

html[data-theme="light"] body.koshermusik-page .km-visualizer-btn:hover,
body.koshermusik-page.light-mode .km-visualizer-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] body.koshermusik-page .km-visualizer-btn.is-active,
body.koshermusik-page.light-mode .km-visualizer-btn.is-active {
  background: var(--ricky-red, #b91c1c);
  border-color: var(--ricky-red, #b91c1c);
  color: white;
}

/* Artwork placeholder */
html[data-theme="light"] body.koshermusik-page .artwork-placeholder-large,
body.koshermusik-page.light-mode .artwork-placeholder-large {
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.3);
}

html[data-theme="light"] body.koshermusik-page .artwork-placeholder-large svg,
body.koshermusik-page.light-mode .artwork-placeholder-large svg {
  stroke: rgba(0, 0, 0, 0.3);
}

/* Album year text */
html[data-theme="light"] body.koshermusik-page .artwork-album-year,
body.koshermusik-page.light-mode .artwork-album-year {
  color: rgba(0, 0, 0, 0.5);
}

/* Spin ring animation */
html[data-theme="light"] body.koshermusik-page .artwork-spin-ring,
body.koshermusik-page.light-mode .artwork-spin-ring {
  border-color: rgba(0, 0, 0, 0.1);
}

/* Repeat and shuffle buttons */
html[data-theme="light"] body.koshermusik-page .repeat-btn,
html[data-theme="light"] body.koshermusik-page .shuffle-btn,
body.koshermusik-page.light-mode .repeat-btn,
body.koshermusik-page.light-mode .shuffle-btn {
  color: #111;
}

html[data-theme="light"] body.koshermusik-page .repeat-btn.is-active,
html[data-theme="light"] body.koshermusik-page .shuffle-btn.is-active,
body.koshermusik-page.light-mode .repeat-btn.is-active,
body.koshermusik-page.light-mode .shuffle-btn.is-active {
  color: var(--ricky-red, #b91c1c);
  background: rgba(185, 28, 28, 0.1);
}

/* Skip buttons */
html[data-theme="light"] body.koshermusik-page .skip-btn,
body.koshermusik-page.light-mode .skip-btn {
  color: #111;
}

html[data-theme="light"] body.koshermusik-page .skip-btn:hover,
body.koshermusik-page.light-mode .skip-btn:hover {
  color: #000;
  background: rgba(0, 0, 0, 0.08);
}

/* Now playing sheet controls */
html[data-theme="light"] body.koshermusik-page .km-sheet-ctrl,
body.koshermusik-page.light-mode .km-sheet-ctrl {
  color: rgba(0, 0, 0, 0.7);
}

html[data-theme="light"] body.koshermusik-page .km-sheet-ctrl:hover,
body.koshermusik-page.light-mode .km-sheet-ctrl:hover {
  color: #111;
}

html[data-theme="light"] body.koshermusik-page .km-sheet-ctrl.km-ctrl-play,
body.koshermusik-page.light-mode .km-sheet-ctrl.km-ctrl-play {
  background: #111;
  color: white;
}

html[data-theme="light"] body.koshermusik-page .km-sheet-progress-track,
body.koshermusik-page.light-mode .km-sheet-progress-track {
  background: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] body.koshermusik-page .km-sheet-progress-fill,
body.koshermusik-page.light-mode .km-sheet-progress-fill {
  background: var(--ricky-red, #b91c1c);
}

html[data-theme="light"] body.koshermusik-page .km-sheet-progress-times,
body.koshermusik-page.light-mode .km-sheet-progress-times {
  color: rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] body.koshermusik-page .km-sheet-volume input,
body.koshermusik-page.light-mode .km-sheet-volume input {
  background: rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] body.koshermusik-page .km-sheet-action-btn,
body.koshermusik-page.light-mode .km-sheet-action-btn {
  color: rgba(0, 0, 0, 0.6);
}

html[data-theme="light"] body.koshermusik-page .km-sheet-action-btn:hover,
body.koshermusik-page.light-mode .km-sheet-action-btn:hover {
  color: #111;
}

html[data-theme="light"] body.koshermusik-page .km-sheet-action-btn.is-liked,
body.koshermusik-page.light-mode .km-sheet-action-btn.is-liked {
  color: var(--ricky-red, #b91c1c);
}

/* Radio section specific - keeping for main player styling */
html[data-theme="light"] body.koshermusik-page .koshermusik-radio-section,
body.koshermusik-page.light-mode .koshermusik-radio-section {
  background: linear-gradient(180deg, #f8f8f8 0%, #ffffff 100%);
}

html[data-theme="light"] body.koshermusik-page .koshermusik-radio-container,
body.koshermusik-page.light-mode .koshermusik-radio-container {
  background: rgba(255, 255, 255, 0.8);
}

/* Large visualizer canvas background */
html[data-theme="light"] body.koshermusik-page .koshermusik-large-visualizer,
body.koshermusik-page.light-mode .koshermusik-large-visualizer {
  background: rgba(0, 0, 0, 0.02);
}

/* Visualizer canvas */
html[data-theme="light"] body.koshermusik-page #koshermusikLargeVisualizer,
body.koshermusik-page.light-mode #koshermusikLargeVisualizer {
  filter: brightness(0.8);
}

/* ============================================
   DESKTOP FULL WIDTH LAYOUT STYLES
   Full width layout instead of centered mobile
   ============================================ */

html[data-theme="light"] body.koshermusik-page .koshermusik-main-player,
body.koshermusik-page.light-mode .koshermusik-main-player {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] body.koshermusik-page .player-controls-large .control-btn-large,
body.koshermusik-page.light-mode .player-controls-large .control-btn-large {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #111;
}

html[data-theme="light"] body.koshermusik-page .player-controls-large .control-btn-large:hover,
body.koshermusik-page.light-mode .player-controls-large .control-btn-large:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] body.koshermusik-page .player-controls-large .play-btn-large,
body.koshermusik-page.light-mode .player-controls-large .play-btn-large {
  background: var(--ricky-red, #b91c1c);
  color: white;
}

html[data-theme="light"] body.koshermusik-page .track-title-large,
body.koshermusik-page.light-mode .track-title-large {
  color: #111;
}

html[data-theme="light"] body.koshermusik-page .track-artist-large,
body.koshermusik-page.light-mode .track-artist-large {
  color: rgba(0, 0, 0, 0.6);
}

html[data-theme="light"] body.koshermusik-page .progress-bar-large,
body.koshermusik-page.light-mode .progress-bar-large {
  background: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] body.koshermusik-page .time-display-large,
body.koshermusik-page.light-mode .time-display-large {
  color: rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] body.koshermusik-page .volume-btn-large,
body.koshermusik-page.light-mode .volume-btn-large {
  color: #111;
}

html[data-theme="light"] body.koshermusik-page .volume-slider-vertical input,
body.koshermusik-page.light-mode .volume-slider-vertical input {
  background: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] body.koshermusik-page .player-queue-title,
body.koshermusik-page.light-mode .player-queue-title {
  color: #111;
}

html[data-theme="light"] body.koshermusik-page .player-queue-list,
body.koshermusik-page.light-mode .player-queue-list {
  color: #111;
}

html[data-theme="light"] body.koshermusik-page .km-share-btn,
body.koshermusik-page.light-mode .km-share-btn {
  color: #111;
  border-color: rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] body.koshermusik-page .km-share-btn:hover,
body.koshermusik-page.light-mode .km-share-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--ricky-red, #b91c1c);
}

/* Visualizer controls in light mode */
html[data-theme="light"] body.koshermusik-page .km-visualizer-btn,
body.koshermusik-page.light-mode .km-visualizer-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #111;
}

html[data-theme="light"] body.koshermusik-page .km-visualizer-btn.is-active,
body.koshermusik-page.light-mode .km-visualizer-btn.is-active {
  background: var(--ricky-red, #b91c1c);
  border-color: var(--ricky-red, #b91c1c);
  color: white;
}

/* ============================================
   DESKTOP FULL WIDTH LAYOUT STYLES
   Full width layout instead of centered mobile
   ============================================ */

@media (min-width: 769px) {
  /* Full width desktop layout - NOT centered mobile style */
  body.koshermusik-page > [data-km-tab] {
    max-width: 100%;
    padding-left: clamp(24px, 5vw, 48px);
    padding-right: clamp(24px, 5vw, 48px);
  }
  
  /* Tab bar full width */
  .km-tab-bar {
    max-width: 100%;
    left: 0;
    transform: none;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  /* Mini player full width */
  .km-now-playing-mini {
    max-width: 100%;
    left: 0;
    transform: none;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .km-now-playing-mini.is-hidden {
    transform: translateY(calc(var(--km-mini-height) + 10px));
  }
  
  /* Now playing sheet full width */
  .km-now-playing-sheet {
    max-width: 100%;
    left: 0;
    transform: translateY(100%);
    border-radius: 0;
  }
  
  .km-now-playing-sheet.is-open {
    transform: translateY(0);
  }
  
  /* More menu full width */
  .km-more-menu-panel {
    max-width: 100%;
    left: 0;
    right: 0;
    transform: translateY(100%);
    border-radius: 20px 20px 0 0;
  }
  
  .km-more-menu.is-open .km-more-menu-panel {
    transform: translateY(0);
  }
  
  /* Song detail modal full width */
  .km-song-detail-modal {
    left: 0;
    transform: none;
    max-width: 100%;
  }

  .km-song-detail-content {
    left: 0;
    transform: translateY(100%);
    max-width: 600px;
    margin: 0 auto;
    right: 0;
  }

  .km-song-detail-modal.is-open .km-song-detail-content {
    transform: translateY(0);
  }
  
  /* Larger artwork on desktop */
  .km-sheet-artwork {
    width: min(400px, 40vw);
    height: min(400px, 40vw);
    max-width: 400px;
    max-height: 400px;
  }
  
  /* Wider content areas on desktop */
  body.koshermusik-page [data-km-tab] .koshermusik-discography,
  body.koshermusik-page [data-km-tab] .km-songs-list {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Album grid - more columns on desktop */
  .km-home-featured-albums {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Home hero larger on desktop */
  .km-home-hero {
    padding: 60px 20px;
  }
  
  .km-home-hero-title {
    font-size: 48px;
  }
  
  .km-home-hero-sub {
    font-size: 18px;
  }
  
  /* Quick actions larger on desktop */
  .km-quick-actions {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .km-quick-action {
    padding: 20px 12px;
  }
  
  .km-quick-action-icon {
    width: 48px;
    height: 48px;
  }
  
  .km-quick-action-icon svg {
    width: 24px;
    height: 24px;
  }
  
  /* Discography: denser album grid (target .albums-grid, not the section) */
  .koshermusik-discography .albums-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    max-width: 1100px;
  }
  
  /* Comments and playlist wider */
  .km-comments-container,
  .km-playlist-creator {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Footer visible on desktop */
  body.koshermusik-page footer {
    display: block;
  }
  
  body.koshermusik-page footer .footer-content,
  body.koshermusik-page footer .footer-bottom {
    max-width: 100%;
    padding-left: clamp(24px, 5vw, 48px);
    padding-right: clamp(24px, 5vw, 48px);
  }
}

/* Large desktop - even more spacious */
@media (min-width: 1200px) {
  body.koshermusik-page [data-km-tab] .koshermusik-discography,
  body.koshermusik-page [data-km-tab] .km-songs-list {
    max-width: 1100px;
  }
  
  .km-home-featured-albums {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    max-width: 1200px;
  }
  
  .koshermusik-discography .albums-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    max-width: 1300px;
  }
}

/* Extra large desktop */
@media (min-width: 1600px) {
  .km-sheet-artwork {
    width: 450px;
    height: 450px;
    max-width: 450px;
    max-height: 450px;
  }
  
  body.koshermusik-page [data-km-tab] .koshermusik-discography,
  body.koshermusik-page [data-km-tab] .km-songs-list {
    max-width: 1300px;
  }
}

/* ============================================
   BUTTON HIT AREA FIXES
   Ensure all buttons have proper touch targets
   ============================================ */

/* Mini player play button - larger hit area */
.km-mini-play {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
}

/* Sheet control buttons - ensure proper sizing */
.km-sheet-ctrl {
  min-width: 52px;
  min-height: 52px;
  padding: 14px;
}

.km-sheet-ctrl.km-ctrl-play {
  min-width: 76px;
  min-height: 76px;
}

/* Tab buttons - larger touch targets */
.km-tab-btn {
  min-height: 52px;
  padding: 8px 12px;
}

/* Quick action buttons */
.km-quick-action {
  min-height: 56px;
  padding: 16px 14px;
}

/* Album like button */
.km-album-like {
  min-width: 36px;
  min-height: 36px;
}

/* Song row like button */
.km-song-row-like {
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
}

/* More menu links */
.km-more-menu-link {
  min-height: 48px;
  padding: 16px;
}

/* Audio control buttons */
.km-audio-btn {
  min-width: 36px;
  min-height: 36px;
}

/* Album dropdown action buttons */
.album-play-all-btn,
.album-share-btn {
  min-height: 40px;
  padding: 10px 16px;
}

/* Album song share button */
.album-song-share {
  min-width: 36px;
  min-height: 36px;
  padding: 8px;
}

/* Playlist share button */
.playlist-share-btn {
  min-height: 36px;
  padding: 8px 12px;
}

/* ============================================
   PROGRESS BAR FIXES
   Better touch handling for seeking
   ============================================ */

/* Sheet progress track - larger touch target (desktop / tablet only; mobile uses @media block above) */
@media (min-width: 769px) {
  .km-sheet-progress-track {
    height: 28px;
    padding: 4px 0;
  }

  .km-sheet-progress-fill {
    height: 6px;
    border-radius: 3px;
  }
}

/* Mini progress bar - more visible */
.km-mini-progress-bar {
  height: 3px;
}

/* ============================================
   VISUAL ENHANCEMENTS
   Make site easier on the eyes
   ============================================ */

/* Softer glass backgrounds */
body.koshermusik-page {
  --km-glass-bg: rgba(18, 18, 18, 0.55);
  --km-glass-border: rgba(255, 255, 255, 0.06);
}

/* Better contrast for text */
.km-mini-title {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.km-sheet-title {
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Enhanced hover states */
.km-song-row:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 45, 45, 0.2);
  transform: translateX(2px);
}

/* Better focus states for accessibility */
.km-sheet-ctrl:focus-visible,
.km-tab-btn:focus-visible,
.km-mini-play:focus-visible,
.km-song-row-like:focus-visible {
  outline: 2px solid var(--ricky-red, #ff2d2d);
  outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
.km-sheet-ctrl,
.km-tab-btn,
.km-mini-play,
.km-song-row,
.km-song-row-like,
.km-quick-action,
.km-home-album-card,
.km-album-like {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Better active states */
.km-sheet-ctrl:active,
.km-tab-btn:active,
.km-mini-play:active,
.km-song-row-like:active,
.km-quick-action:active,
.km-home-album-card:active,
.km-album-like:active {
  transform: scale(0.95);
}

/* Enhanced artwork shadows */
.km-sheet-artwork {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 100px rgba(255, 45, 45, 0.08);
}

/* Better mini player styling */
.km-now-playing-mini {
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
}

/* Enhanced tab bar */
.km-tab-bar {
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
}

/* Better more menu panel */
.km-more-menu-panel {
  box-shadow: 0 -16px 60px rgba(0, 0, 0, 0.5);
}

/* Enhanced toast notifications */
.km-toast {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Better song detail modal */
.km-song-detail-content {
  box-shadow: 0 -16px 60px rgba(0, 0, 0, 0.5);
}

/* Enhanced progress bar styling */
.km-sheet-progress-track {
  background: rgba(255, 255, 255, 0.1);
}

.km-sheet-progress-fill {
  background: linear-gradient(90deg, var(--ricky-red, #ff2d2d), #ff6b6b);
}

/* Better volume slider styling */
.km-sheet-volume input[type="range"]::-webkit-slider-runnable-track {
  background: rgba(255, 255, 255, 0.15);
}

.km-sheet-volume input[type="range"]::-webkit-slider-thumb {
  background: linear-gradient(145deg, #fff, #f0f0f0);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* Enhanced audio controls in more menu */
.km-audio-controls {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.km-audio-slider {
  background: rgba(255, 255, 255, 0.15);
}

.km-audio-slider::-webkit-slider-thumb {
  background: linear-gradient(145deg, var(--ricky-red, #ff2d2d), #ff6b6b);
}

/* Better album card hover effects */
body.koshermusik-page .album-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(255, 45, 45, 0.15);
}

/* Enhanced home album cards */
.km-home-album-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Better quick action hover */
.km-quick-action:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 45, 45, 0.2);
  transform: translateY(-2px);
}

/* Enhanced stats cards */
.km-stat-card {
  background: var(--km-glass-bg);
  backdrop-filter: blur(var(--km-glass-blur));
  -webkit-backdrop-filter: blur(var(--km-glass-blur));
  border: 1px solid var(--km-glass-border);
  border-radius: 16px;
  padding: 16px 20px;
  transition: all 0.2s ease;
}

.km-stat-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 45, 45, 0.15);
}

.km-stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ricky-red, #ff2d2d);
}

.km-stat-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* Light mode enhancements */
html[data-theme="light"] body.koshermusik-page,
body.koshermusik-page.light-mode {
  --km-glass-bg: rgba(255, 255, 255, 0.85);
  --km-glass-border: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] body.koshermusik-page .km-stat-value,
body.koshermusik-page.light-mode .km-stat-value {
  color: var(--ricky-red, #b91c1c);
}

html[data-theme="light"] body.koshermusik-page .km-stat-label,
body.koshermusik-page.light-mode .km-stat-label {
  color: rgba(0, 0, 0, 0.45);
}

/* Animation preservation - ensure all existing animations remain */
@keyframes kmTabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* Ensure smooth scrolling */
.km-now-playing-sheet,
.km-song-detail-content,
.km-more-menu-panel {
  scroll-behavior: smooth;
}

/* Better scrollbar styling */
.km-now-playing-sheet::-webkit-scrollbar,
.km-song-detail-content::-webkit-scrollbar,
.km-more-menu-panel::-webkit-scrollbar {
  width: 6px;
}

.km-now-playing-sheet::-webkit-scrollbar-track,
.km-song-detail-content::-webkit-scrollbar-track,
.km-more-menu-panel::-webkit-scrollbar-track {
  background: transparent;
}

.km-now-playing-sheet::-webkit-scrollbar-thumb,
.km-song-detail-content::-webkit-scrollbar-thumb,
.km-more-menu-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

html[data-theme="light"] .km-now-playing-sheet::-webkit-scrollbar-thumb,
html[data-theme="light"] .km-song-detail-content::-webkit-scrollbar-thumb,
html[data-theme="light"] .km-more-menu-panel::-webkit-scrollbar-thumb,
body.koshermusik-page.light-mode .km-now-playing-sheet::-webkit-scrollbar-thumb,
body.koshermusik-page.light-mode .km-song-detail-content::-webkit-scrollbar-thumb,
body.koshermusik-page.light-mode .km-more-menu-panel::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
}