/* ===== Wrapper ===== */
.player-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.desktop-left,
.desktop-right {
  display: contents;
}

#carouselWrap                       { order: 1; }
.reciter-name                       { order: 2; }
.desktop-left > .surah-list-header  { order: 3; }
#maqamFilterRow                     { order: 4; }
#surahList                          { order: 5; }
.player-panel                       { order: 6; }
.section-label.ambience-label       { order: 7; }
#ambienceRow                        { order: 8; }
#ambienceVolRow                     { order: 9; }
#ambienceModeToggle                 { order: 10; margin-top: 1.1rem; }

@media (min-width: 1024px) {
  .player-wrap {
    flex-direction: row;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2.5rem;
    padding: 0 2rem 4rem;
  }

  .desktop-left {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 6px;
  }

  .desktop-right {
    display: block;
    width: 400px;
    flex-shrink: 0;
    position: sticky;
    top: 2rem;
  }

  #surahList {
    max-height: calc(100vh - 220px);
  }
}

/* ===== Coverflow-Karussell ===== */
.carousel-wrap {
  position: relative;
  height: 150px;
  margin-bottom: 12px;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}

.carousel-track {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 92px;
  height: 92px;
  margin-left: -46px;
  margin-top: -46px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.08);
  background: var(--gold-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1),
              opacity 0.5s ease,
              box-shadow 0.5s ease,
              border-color 0.4s ease;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(0.2) brightness(0.85);
  transition: filter 0.4s ease;
}

.carousel-item span {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gold);
}

@keyframes carouselBreathe {
  0%, 100% {
    box-shadow: 0 0 0 6px rgba(var(--orn-gold,229,186,115),0.1), 0 0 20px rgba(var(--orn-gold,229,186,115),0.45);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(var(--orn-gold,229,186,115),0.18), 0 0 38px rgba(var(--orn-gold,229,186,115),0.85);
  }
}

.carousel-item.active {
  border-color: var(--gold);
  animation: carouselBreathe 3.2s ease-in-out infinite;
}

.carousel-item.active img {
  filter: none;
}

.reciter-name {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 1.3rem;
  text-align: center;
  margin: 4px 0 2px;
}

.section-label {
  text-align: center;
  font-size: 10.5px;
  color: var(--gold);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 18px;
}

.surah-list-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.surah-list-header .section-label {
  flex: 1;
  min-width: 0;
}

.quran-playlists:not(.quran-playlist-overview) #playlistViewAddBtn {
  margin-left: auto;
  margin-right: 0;
}

.quran-playlists:not(.quran-playlist-overview) #surahListHeader {
  justify-content: flex-start;
  column-gap: 10px;
}

.playlist-view-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(var(--orn-gold,229,186,115),0.34);
  border-radius: 10px;
  background: rgba(var(--orn-gold,229,186,115),0.1);
  color: var(--gold);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.playlist-view-add-btn:hover {
  background: rgba(var(--orn-gold,229,186,115),0.2);
  border-color: rgba(var(--orn-gold,229,186,115),0.6);
}

.playlist-view-add-btn svg {
  width: 15px;
  height: 15px;
}

.surah-back-btn {
  background: none;
  border: none;
  color: var(--gold);
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.surah-back-btn svg { width: 14px; height: 14px; }

.surah-back-btn:hover {
  background: rgba(var(--orn-gold,229,186,115),0.1);
  transform: translateX(-2px);
}

.surah-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 340px;
  overflow-y: auto;
  margin-bottom: 22px;
  padding-right: 6px;
  position: relative;

  scrollbar-width: thin;
  scrollbar-color: rgba(var(--orn-gold,229,186,115),0.35) transparent;
}

.surah-list::-webkit-scrollbar {
  width: 5px;
}

.surah-list::-webkit-scrollbar-track {
  background: transparent;
}

.surah-list::-webkit-scrollbar-thumb {
  background: rgba(var(--orn-gold,229,186,115),0.3);
  border-radius: 999px;
}

.surah-list::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--orn-gold,229,186,115),0.55);
}

.surah-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 19px 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  border-left: 2px solid transparent;
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.surah-row:hover {
  background: rgba(255,255,255,0.03);
}

.surah-row.active {
  background: rgba(var(--orn-gold,229,186,115),0.08);
}

.surah-num {
  font-size: 10.5px;
  color: var(--text-muted);
  width: 22px;
  flex-shrink: 0;
}

.surah-row.active .surah-num {
  color: var(--gold);
}

.surah-title {
  flex: 1;
  font-size: 13.5px;
  color: var(--text);
}

.surah-row.active .surah-title {
  color: var(--gold);
}

.surah-file-reference {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
  opacity: 0.85;
}

.surah-badge {
  display: inline-block;
  margin-left: 9px;
  padding: 2px 8px;
  font-size: 9px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(var(--orn-gold,229,186,115),0.1);
  border: 1px solid rgba(var(--orn-gold,229,186,115),0.3);
  border-radius: 999px;
  vertical-align: middle;
}

.surah-badge-excerpt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 9px;
}

.surah-badge-ayah + .surah-badge-excerpt,
.surah-badge-excerpt + .surah-badge-ayah {
  margin-left: 5px;
}

.surah-badge-excerpt svg {
  width: 11px;
  height: 11px;
  flex: none;
}

.surah-badge-ayah {
  color: #a9d7e7;
  background: rgba(82,163,190,0.1);
  border-color: rgba(115,195,219,0.32);
  text-transform: none;
  font-variant-numeric: tabular-nums;
}

.now-playing .surah-badge {
  margin-left: 0;
  padding: 2px 7px;
  font-size: 8px;
}

.now-playing-name {
  overflow:hidden;
  text-overflow:ellipsis;
}

.now-playing .surah-badge-excerpt svg {
  width: 10px;
  height: 10px;
}

.surah-badge-collection {
  color: #85B7EB;
  background: rgba(133,183,235,0.1);
  border-color: rgba(133,183,235,0.3);
}

.surah-badge-maqam {
  color: #AFA9EC;
  background: rgba(127,119,221,0.1);
  border-color: rgba(127,119,221,0.35);
}

.surah-badge-version {
  color: #5DCAA5;
  background: rgba(93,202,165,0.1);
  border-color: rgba(93,202,165,0.3);
}

.maqam-filter-row {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.maqam-chip {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(127,119,221,0.25);
  color: rgba(231,231,234,0.6);
  font-size: 10.5px;
  letter-spacing: 0.3px;
  padding: 5px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.maqam-chip:hover {
  border-color: #AFA9EC;
  color: #f2ead9;
}

.maqam-chip.active {
  background: rgba(127,119,221,0.16);
  border-color: #AFA9EC;
  color: #AFA9EC;
}

.surah-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: rgba(231,231,234,0.3);
}

.surah-row.active .surah-icon {
  fill: var(--gold);
}

.surah-queue-add {
  background: rgba(var(--orn-gold,229,186,115),0.08);
  border: 1px solid rgba(var(--orn-gold,229,186,115),0.16);
  color: rgba(var(--orn-gold,229,186,115),0.72);
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.surah-queue-add svg {
  width: 16px;
  height: 16px;
}

.surah-queue-add:hover {
  color: #f8e7c7;
  background: rgba(var(--orn-gold,229,186,115),0.2);
  border-color: rgba(var(--orn-gold,229,186,115),0.45);
  transform: translateY(-1px);
}

.surah-expand {
  background: none;
  border: none;
  color: rgba(231,231,234,0.4);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease, color 0.2s ease;
}

.surah-expand svg {
  width: 14px;
  height: 14px;
}

.surah-expand.open {
  transform: rotate(180deg);
  color: var(--gold);
}

.surah-actions-menu-btn {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(231,231,234,0.55);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.surah-actions-menu-btn svg {
  width: 15px;
  height: 15px;
}

.surah-actions-menu-btn:hover,
.surah-actions-menu-btn[aria-expanded="true"] {
  color: #f8e7c7;
  background: rgba(var(--orn-gold,229,186,115),0.14);
  border-color: rgba(var(--orn-gold,229,186,115),0.32);
}

.surah-actions-menu-btn:focus-visible,
.surah-action-menu button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.surah-action-menu {
  position: fixed;
  z-index: 2500;
  display: none;
  width: 224px;
  padding: 7px;
  color: var(--text);
  background: rgba(9,11,18,0.98);
  border: 1px solid rgba(var(--orn-gold,229,186,115),0.3);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.55);
  backdrop-filter: blur(14px);
}

.surah-action-menu.open {
  display: block;
}

.surah-action-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 11px;
  color: var(--text);
  text-align: left;
  font: inherit;
  font-size: 12px;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.surah-action-menu button:hover {
  color: #f8e7c7;
  background: rgba(var(--orn-gold,229,186,115),0.12);
}

.surah-action-menu button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.surah-part-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px 9px 46px;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: background 0.2s ease;
}

.surah-part-row:hover {
  background: rgba(255,255,255,0.03);
}

.surah-part-row.active {
  background: rgba(var(--orn-gold,229,186,115),0.06);
}

.surah-part-icon {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  fill: rgba(231,231,234,0.28);
}

.surah-part-row.active .surah-part-icon {
  fill: var(--gold);
}

.surah-part-title {
  flex: 1;
  font-size: 12.5px;
  color: rgba(231,231,234,0.75);
}

.surah-part-row.active .surah-part-title {
  color: var(--gold);
}

.surah-empty {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 30px 10px;
}

.player-panel {
  background: var(--card-bg);
  border: 1px solid rgba(var(--orn-gold,229,186,115),0.14);
  border-radius: 20px;
  padding: 16px 18px 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.player-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 10px;
}

.now-playing {
  font-size: 12.5px;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-row-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mini-time {
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.queue-toggle-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2000;
  width: 58px;
  height: 58px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gold);
  background: rgba(10,12,20,0.94);
  border: 1px solid rgba(var(--orn-gold,229,186,115),0.48);
  border-radius: 50%;
  box-shadow: 0 8px 26px rgba(0,0,0,0.46);
  backdrop-filter: blur(12px);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.queue-toggle-btn svg {
  width: 23px;
  height: 23px;
}

.queue-toggle-btn:hover {
  color: #f8e7c7;
  background: rgba(var(--orn-gold,229,186,115),0.2);
  border-color: rgba(var(--orn-gold,229,186,115),0.72);
  transform: translateY(-2px);
}

.queue-toggle-btn.open {
  color: #f8e7c7;
  background: rgba(var(--orn-gold,229,186,115),0.2);
  border-color: rgba(var(--orn-gold,229,186,115),0.72);
}

.queue-toggle-btn.has-items:not(.open) {
  box-shadow: 0 0 0 4px rgba(var(--orn-gold,229,186,115),0.07), 0 8px 26px rgba(0,0,0,0.46);
}

.queue-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--dark);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #111;
}

.queue-panel {
  position: fixed;
  right: 24px;
  bottom: 94px;
  z-index: 1999;
  width: min(380px, calc(100vw - 32px));
  max-height: min(65vh, 520px);
  display: flex;
  flex-direction: column;
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(var(--orn-gold,229,186,115),0.055), rgba(255,255,255,0.025) 45%);
  border: 1px solid rgba(var(--orn-gold,229,186,115),0.2);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.56);
  backdrop-filter: blur(18px);
  transition: transform 0.24s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.queue-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.queue-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.queue-panel-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.queue-panel-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.queue-panel-title {
  font-size: 12px;
  font-weight: 600;
  color: #f8e7c7;
}

.queue-count {
  color: var(--text-muted);
  font-size: 10px;
  white-space: nowrap;
}

.queue-clear-btn {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(239,71,111,0.16);
  border-radius: 9px;
  background: rgba(239,71,111,0.055);
  color: rgba(255,190,198,0.78);
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.queue-clear-btn:hover {
  color: #ef476f;
  background: rgba(239,71,111,0.12);
  border-color: rgba(239,71,111,0.3);
}

.queue-clear-btn:disabled {
  opacity: 0.42;
  cursor: default;
}

.queue-close-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  cursor: pointer;
}

.queue-close-btn svg {
  width: 16px;
  height: 16px;
}

.queue-close-btn:hover {
  color: #f8e7c7;
  background: rgba(255,255,255,0.08);
}

.queue-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 270px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 4px 3px 8px;
  border: 1px solid rgba(255,255,255,0.045);
  border-radius: 11px;
  background: rgba(255,255,255,0.035);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.queue-item:hover {
  background: rgba(var(--orn-gold,229,186,115),0.07);
  border-color: rgba(var(--orn-gold,229,186,115),0.12);
}

.queue-item-play {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 5px 2px;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}

.queue-item-play:focus-visible,
.queue-item-remove:focus-visible,
.queue-toggle-btn:focus-visible,
.surah-queue-add:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.queue-item-index {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  width: 23px;
  flex-shrink: 0;
  text-align: center;
}

.queue-item-info {
  flex: 1;
  min-width: 0;
}

.queue-item-surah {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-item-reciter {
  font-size: 10px;
  color: var(--text-muted);
  margin: 2px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-item-play-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: rgba(var(--orn-gold,229,186,115),0.76);
  background: rgba(var(--orn-gold,229,186,115),0.08);
  border-radius: 9px;
  transition: color 0.2s ease, background 0.2s ease;
}

.queue-item-play:hover .queue-item-play-icon {
  color: #f8e7c7;
  background: rgba(var(--orn-gold,229,186,115),0.17);
}

.queue-item-play-icon svg {
  width: 14px;
  height: 14px;
}

.queue-item-remove {
  background: transparent;
  border: 1px solid transparent;
  color: rgba(231,231,234,0.45);
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.queue-item-remove svg {
  width: 15px;
  height: 15px;
}

.queue-item-remove:hover {
  color: #ff9caa;
  background: rgba(239,71,111,0.12);
  border-color: rgba(239,71,111,0.12);
}

.queue-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 18px 10px;
  margin: 0;
}

.queue-empty svg {
  width: 25px;
  height: 25px;
  color: var(--gold);
  opacity: 0.72;
}

.queue-empty span {
  color: var(--text);
  font-weight: 500;
}

.queue-empty small {
  max-width: 30ch;
  font-size: 10px;
  line-height: 1.5;
}

.progress-track {
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
  cursor: pointer;
  margin-bottom: 16px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: var(--gold);
  transition: width 0.15s linear;
  position: relative;
  overflow: hidden;
}

.transport-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ctrl-btn {
  background: none;
  border: none;
  color: rgba(231,231,234,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  transition: color 0.2s ease, background 0.2s ease;
}

.ctrl-btn svg {
  width: 15px;
  height: 15px;
}

.ctrl-btn-md {
  width: 32px;
  height: 32px;
}

.ctrl-btn-md svg {
  width: 16px;
  height: 16px;
}

.ctrl-btn-sm {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.ctrl-btn-sm svg {
  width: 14px;
  height: 14px;
}

.ctrl-btn:hover {
  color: var(--gold);
  background: rgba(var(--orn-gold,229,186,115),0.08);
}

.ctrl-btn.on {
  color: var(--gold);
}

.play-pause-btn {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f7dba8, #c9903f);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(var(--orn-gold,229,186,115),0.4);
  transition: transform 0.2s ease;
  position: relative;
}

.play-pause-btn:hover {
  transform: scale(1.05);
}

.play-pause-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.play-pause-btn svg {
  width: 15px;
  height: 15px;
  fill: var(--dark);
  margin-left: 1px;
}

#pauseIcon { margin-left: 0; }

.volume-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 0.5px solid rgba(255,255,255,0.06);
}

.vol-slider {
  flex: 1;
  height: 2px;
  accent-color: var(--gold);
  cursor: pointer;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--orn-gold,229,186,115),0.35); }
  50%      { box-shadow: 0 0 0 6px rgba(var(--orn-gold,229,186,115),0.12); }
}

.ambience-label {
  margin-top: 26px;
  margin-bottom: 14px;
}

.ambience-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ambience-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ambience-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(var(--orn-gold,229,186,115),0.2);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ambience-btn svg {
  width: 20px;
  height: 20px;
}

.ambience-btn.on {
  background: rgba(var(--orn-gold,229,186,115),0.14);
  border-color: var(--gold);
  color: #f0cd93;
  animation: pulseGlow 2.2s ease-in-out infinite;
}

.ambience-btn.disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.ambience-btn.disabled:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(var(--orn-gold,229,186,115),0.2);
}

.ambience-item-label {
  font-size: 10px;
  color: var(--text-muted);
}

.ambience-item.on .ambience-item-label {
  color: var(--gold);
}

.ambience-vol-row {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 12px 16px;
}

.ambience-vol-row.visible {
  display: flex;
}

.ambience-vol-label {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .surah-list { max-height: 300px; }
  .carousel-item { width: 78px; height: 78px; margin-left: -39px; margin-top: -39px; }

  .player-top-row {
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .now-playing {
    flex: 1 1 100%;
    order: -1;
    white-space: normal;
  }
  .top-row-right {
    width: 100%;
    justify-content: space-between;
  }
  .queue-toggle-btn {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }
  .queue-badge {
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    font-size: 11px;
  }
  .queue-panel.open {
    right: 12px;
    bottom: 82px;
    width: min(380px, calc(100vw - 48px));
    max-height: min(68vh, 520px);
    padding: 12px;
    border-radius: 18px;
  }
  .queue-list {
    max-height: min(48vh, 360px);
    gap: 8px;
  }
  .queue-item-play {
    min-height: 50px;
  }
  .queue-item-remove {
    width: 44px;
    height: 44px;
  }
  .surah-row {
    gap: 7px;
    padding: 10px 14px 10px 9px;
  }
  .surah-queue-add {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }
  .surah-queue-add svg {
    width: 18px;
    height: 18px;
  }
  .surah-actions-menu-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }
  .surah-actions-menu-btn svg {
    width: 18px;
    height: 18px;
  }
  .surah-action-menu {
    width: min(224px, calc(100vw - 32px));
  }
  .surah-part-row {
    gap: 8px;
    padding-right: 9px;
  }
  .playlist-popover {
    max-width: calc(100vw - 24px);
  }
}

/* ============================================================
   MEINE PLAYLISTS
   ============================================================ */

.playlist-hint {
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 4px 4px;
  text-align: center;
}

.playlist-new-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.playlist-name-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(var(--orn-gold,229,186,115),0.25);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  padding: 8px 10px;
  border-radius: 9px;
  outline: none;
  transition: border-color 0.2s ease;
}

.playlist-name-input:focus {
  border-color: var(--gold);
}

.playlist-name-input::placeholder {
  color: rgba(231,231,234,0.35);
}

.playlist-add-btn {
  background: rgba(var(--orn-gold,229,186,115),0.14);
  border: 1px solid rgba(var(--orn-gold,229,186,115),0.35);
  color: var(--gold);
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.playlist-add-btn svg { width: 14px; height: 14px; }

.playlist-add-btn:hover {
  background: rgba(var(--orn-gold,229,186,115),0.26);
  transform: scale(1.05);
}

.playlist-empty {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-muted);
  padding: 20px 4px;
}

/* ---- Playlist-Kacheln (Banner-Karten, Spotify-Stil) ---- */
.playlist-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  max-height: 420px;
  overflow-y: auto;
  padding-bottom: 4px;
}

.playlist-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.playlist-card:hover {
  border-color: rgba(var(--orn-gold,229,186,115),0.3);
  transform: translateY(-2px);
}

.playlist-card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: rgba(var(--orn-gold,229,186,115),0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  overflow: hidden;
}

.playlist-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.playlist-card-cover svg {
  width: 26px;
  height: 26px;
}

.playlist-card-cover-btn {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.playlist-card-cover-btn svg {
  width: 16px;
  height: 16px;
}

.playlist-card-cover:hover .playlist-card-cover-btn {
  opacity: 1;
}

.playlist-card-body {
  padding: 10px 11px 11px;
}

.playlist-card-title {
  display: block;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.playlist-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.playlist-card-count {
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.playlist-card-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.playlist-card-play,
.playlist-card-rename,
.playlist-card-delete {
  background: none;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.playlist-card-play svg,
.playlist-card-rename svg,
.playlist-card-delete svg { width: 12px; height: 12px; }

.playlist-card-play { color: var(--gold); }
.playlist-card-play:hover { background: rgba(var(--orn-gold,229,186,115),0.14); }

.playlist-card-rename { color: rgba(231,231,234,0.4); }
.playlist-card-rename:hover { background: rgba(var(--orn-gold,229,186,115),0.14); color: var(--gold); }

.playlist-card-delete { color: rgba(231,231,234,0.35); }
.playlist-card-delete:hover { background: rgba(239,71,111,0.12); color: #ef476f; }

.playlist-card-body .playlist-name-input {
  font-size: 12.5px;
  padding: 4px 6px;
  width: 100%;
}

.surah-playlist-add {
  background: none;
  border: none;
  color: rgba(231,231,234,0.32);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.surah-playlist-add svg { width: 13px; height: 13px; }

.surah-playlist-add:hover {
  color: var(--gold);
  background: rgba(var(--orn-gold,229,186,115),0.1);
}

.playlist-popover {
  position: fixed;
  z-index: 1200;
  min-width: 220px;
  max-width: 260px;
  background: rgba(22, 24, 34, 0.98);
  border: 1px solid rgba(var(--orn-gold,229,186,115),0.3);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.55);
  padding: 10px;
  display: none;
}

.playlist-popover.open {
  display: block;
}

.playlist-popover-title {
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
  padding: 2px 4px 8px;
}

.playlist-popover-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 8px;
}

.playlist-popover-option {
  background: none;
  border: none;
  text-align: left;
  color: var(--text);
  font-size: 12.5px;
  font-family: 'Poppins', sans-serif;
  padding: 7px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.playlist-popover-option:hover {
  background: rgba(var(--orn-gold,229,186,115),0.1);
  color: var(--gold);
}

.playlist-popover-empty {
  font-size: 11.5px;
  color: var(--text-muted);
  padding: 6px 8px;
}

.quran-playlist-picker {
  width: min(640px, calc(100vw - 32px));
  max-width: none;
  max-height: min(86vh, 760px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(var(--orn-gold,229,186,115),0.32);
  border-radius: 20px;
  background: #171923;
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0,0,0,0.65);
}

.quran-playlist-picker::backdrop {
  background: rgba(4,5,9,0.76);
  backdrop-filter: blur(4px);
}

.quran-playlist-picker-panel {
  display: flex;
  flex-direction: column;
  max-height: min(86vh, 760px);
  padding: 20px;
}

.quran-playlist-picker-header,
.quran-playlist-picker-actions,
.quran-playlist-picker-footer {
  display: flex;
  align-items: center;
}

.quran-playlist-picker-header {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.quran-playlist-picker-eyebrow {
  margin: 0 0 3px;
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 1.2px;
}

.quran-playlist-picker-header h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
}

.quran-playlist-picker-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 26px;
  cursor: pointer;
}

.quran-playlist-picker-search {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 11px;
  outline: none;
  background: rgba(255,255,255,0.045);
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.quran-playlist-picker-search:focus {
  border-color: rgba(var(--orn-gold,229,186,115),0.6);
}

.quran-playlist-picker-actions {
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0 8px;
}

.quran-playlist-picker-actions button {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.quran-playlist-picker-count {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 11px;
}

.quran-playlist-picker-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  min-height: 120px;
  max-height: min(48vh, 440px);
  overflow: auto;
  padding: 3px 4px 3px 0;
}

.quran-playlist-picker-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 11px;
  background: rgba(255,255,255,0.025);
  cursor: pointer;
}

.quran-playlist-picker-option:has(input:checked) {
  border-color: rgba(var(--orn-gold,229,186,115),0.45);
  background: rgba(var(--orn-gold,229,186,115),0.09);
}

.quran-playlist-picker-option input {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  accent-color: var(--gold);
}

.quran-playlist-picker-option-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.quran-playlist-picker-option-text strong,
.quran-playlist-picker-option-text > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quran-playlist-picker-option-text strong {
  font-size: 11px;
  font-weight: 500;
}

.quran-playlist-picker-option-text > span {
  color: var(--text-muted);
  font-size: 9px;
}

.quran-playlist-picker-empty {
  grid-column: 1 / -1;
  align-self: center;
  padding: 24px 12px;
  color: var(--text-muted);
  text-align: center;
  font-size: 12px;
}

.quran-playlist-picker-footer {
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
}

.quran-playlist-picker-status {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
}

.quran-playlist-picker-submit {
  min-height: 42px;
  padding: 0 17px;
  border: 0;
  border-radius: 11px;
  background: var(--gold);
  color: #171923;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.quran-playlist-picker-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.playlist-popover-new {
  display: flex;
  gap: 6px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 8px;
}

.mini-player {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 120%);
  width: min(92vw, 480px);
  background: rgba(18, 20, 30, 0.97);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(var(--orn-gold,229,186,115),0.25);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.55), 0 0 30px rgba(var(--orn-gold,229,186,115),0.1);
  padding: 10px 12px 8px;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
}

.mini-player.visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
  animation: miniGlowPulse 0.9s ease-out;
}

@keyframes miniGlowPulse {
  0%   { box-shadow: 0 20px 50px rgba(0,0,0,0.55), 0 0 0 rgba(var(--orn-gold,229,186,115),0); }
  40%  { box-shadow: 0 20px 50px rgba(0,0,0,0.55), 0 0 40px rgba(var(--orn-gold,229,186,115),0.45); }
  100% { box-shadow: 0 20px 50px rgba(0,0,0,0.55), 0 0 30px rgba(var(--orn-gold,229,186,115),0.1); }
}

.mini-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  color: rgba(231,231,234,0.4);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.mini-close:hover {
  background: rgba(255,255,255,0.08);
  color: var(--gold);
}

.mini-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 1.5px solid rgba(var(--orn-gold,229,186,115),0.4);
  flex-shrink: 0;
  background: var(--gold-faint);
}

.mini-info {
  flex: 1;
  min-width: 0;
}

.mini-title {
  font-size: 12.5px;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-reciter {
  font-size: 10px;
  color: var(--gold);
  opacity: 0.75;
  margin: 2px 0 0;
}

.mini-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
}

.mini-play-pause {
  width: 36px;
  height: 36px;
}

.mini-play-pause svg {
  width: 12px;
  height: 12px;
}

.mini-ambience {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.mini-vol-slider {
  flex: 1;
  height: 2px;
}

.mini-progress-track {
  height: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
  margin-top: 8px;
  overflow: hidden;
}

.mini-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 480px) {
  .surah-list-header { flex-wrap: wrap; }
  .surah-list-header .section-label { font-size: 13px; }
  .playlist-view-add-btn {
    min-height: 42px;
    padding: 0 10px;
    font-size: 10px;
  }
  .quran-playlist-picker {
    width: calc(100vw - 20px);
    max-height: 90dvh;
    border-radius: 16px;
  }
  .quran-playlist-picker-panel {
    max-height: 90dvh;
    padding: 14px;
  }
  .quran-playlist-picker-actions button { min-height: 42px; }
  .quran-playlist-picker-list {
    grid-template-columns: minmax(0, 1fr);
    max-height: 52dvh;
  }
  .quran-playlist-picker-option { min-height: 62px; }
  .quran-playlist-picker-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .quran-playlist-picker-submit { min-height: 48px; }
  .mini-player { bottom: 10px; padding: 9px 10px 7px; }
  .mini-controls { gap: 6px; }
}

@keyframes playerFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.carousel-wrap  { animation: playerFadeUp 0.6s cubic-bezier(0.16,1,0.3,1) both 0.05s; }
.reciter-name   { animation: playerFadeUp 0.6s cubic-bezier(0.16,1,0.3,1) both 0.15s; }
.player-panel   { animation: playerFadeUp 0.6s cubic-bezier(0.16,1,0.3,1) both 0.25s; }

@keyframes avatarPop {
  0%   { transform: scale(0.75); }
  60%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.carousel-item.active {
  animation: carouselBreathe 3.2s ease-in-out infinite, avatarPop 0.45s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes shineSweep {
  0%   { left: -40%; }
  100% { left: 140%; }
}
.progress-fill::after,
.mini-progress-fill::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: -40%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
  animation: shineSweep 2.1s ease-in-out infinite;
}

@keyframes ctrlRingFlash {
  0%   { transform: scale(0.85); opacity: 0.85; }
  100% { transform: scale(1.55); opacity: 0; }
}
.play-pause-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0;
  pointer-events: none;
}
.play-pause-btn.pulse::after {
  animation: ctrlRingFlash 0.55s ease-out;
}

.volume-row,
.ambience-vol-row,
.mini-ambience {
  border-radius: 12px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.volume-row:has(.vol-slider:active),
.ambience-vol-row:has(.vol-slider:active),
.mini-ambience:has(.vol-slider:active) {
  background: rgba(var(--orn-gold,229,186,115),0.06);
  box-shadow: inset 0 0 0 1px rgba(var(--orn-gold,229,186,115),0.25);
}

#surahActiveIndicator {
  position: absolute;
  left: 0;
  width: 2px;
  background: var(--gold);
  border-radius: 2px;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), height 0.3s ease, opacity 0.2s ease;
  pointer-events: none;
}

@keyframes queueBadgeBounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.4); }
  60%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}
.queue-badge.bounce {
  animation: queueBadgeBounce 0.4s ease;
}

/* ============================================================
   BROWSE-TABS ("Suren" / "Playlists")
   ============================================================ */

.browse-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 28px;
  max-width: 320px;
  position: relative;
  z-index: 10;
}

.browse-tab {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(var(--orn-gold,229,186,115),0.2);
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.3px;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.browse-tab:hover {
  border-color: var(--gold-dim);
  color: var(--text);
}

.browse-tab.active {
  background: rgba(var(--orn-gold,229,186,115),0.14);
  border-color: var(--gold);
  color: var(--gold);
}

.playlist-manager {
  margin-bottom: 8px;
}

/* Use the Nasheeds playlist layout independently of the two-column player. */
.quran-playlists .player-wrap {
  display: block;
  width: 100%;
  max-width: 960px;
  padding: 0 1.5rem 3rem;
}
.quran-playlists .desktop-left {
  display: block;
  width: 100%;
  padding-top: 0;
}
.quran-playlists header h1 {
  background: none;
  color: var(--primary-color,#e5ba73);
  font-size: 2rem;
}
.quran-playlists header p { display: none; }
.quran-playlists .browse-tabs { margin-bottom: 1.6rem; }
.quran-playlists .browse-tab { border-color: rgba(255,255,255,.07); }
.quran-playlists .browse-tab.active {
  border-color: rgba(var(--orn-gold,229,186,115),.5);
  color: #f8e7c7;
  outline: 2px solid rgba(var(--orn-gold,229,186,115),.55);
  outline-offset: 3px;
}
.quran-playlist-overview #surahSectionLabel {
  text-align: left;
  color: rgba(231,231,234,.4);
  font-size: .72rem;
  letter-spacing: .12em;
  opacity: 1;
  margin: 0 0 1rem;
}
.quran-playlist-overview .playlist-new-row {
  gap: 10px;
  max-width: 420px;
  margin: 0 auto 1.6rem;
}
.quran-playlist-overview .playlist-name-input {
  min-width: 0;
  border-color: rgba(255,255,255,.07);
  font-size: .9rem;
  padding: .7rem 1rem;
  border-radius: 12px;
}
.quran-playlist-overview .playlist-name-input:focus {
  border-color: rgba(var(--orn-gold,229,186,115),.55);
}
.quran-playlist-overview .playlist-add-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #f8e7c7;
}
.quran-playlist-overview .playlist-empty { grid-column: 1 / -1; }
@media (max-width: 600px) {
  .quran-playlist-overview #playlistListTab {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
    gap: 1.1rem !important;
  }
}

/* ============================================================
   NEU: Playlist-Karten-Buttons an Nasheeds angleichen (gleiche
   Größe/Hover-Farben wie .playlist-tile-actions dort), und neuer
   Container "Doppelplayer"-Fix: wenn eine Playlist geöffnet ist,
   zieht quran-playlist-hero.js den alten linken Player (Lautstärke,
   Ambience, Ayat & Übersetzung) hier rein, statt ihn parallel
   stehen zu lassen.
============================================================ */

/* NEU: Playlist-Karten-Buttons wie bei Nasheeds */
.playlist-card-actions {
  gap: 4px;
}

.playlist-card-play,
.playlist-card-rename,
.playlist-card-delete {
  width: 24px;
  height: 24px;
}

.playlist-card-rename {
  color: rgba(231,231,234,0.45);
}
.playlist-card-rename:hover {
  background: rgba(var(--orn-gold,229,186,115),0.18);
  color: #f8e7c7;
}

.playlist-card-play:hover {
  background: rgba(var(--orn-gold,229,186,115),0.18);
}

.playlist-card-delete:hover {
  background: rgba(255,90,90,0.14);
  color: #ff9c9c;
}

/* NEU: Container im Playlist-Hero-Player für den reingezogenen
   Rest des alten Players (Lautstärke, Ambience, Ayat & Übersetzung) */
.qph-extra {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  margin-top: .9rem;
  width: 100%;
}

.qph-extra .volume-row {
  margin-top: 0;
  padding-top: .7rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.qph-extra .ambience-label {
  margin: .3rem 0 .5rem;
  text-align: left;
}

.qph-extra .ambience-row {
  justify-content: flex-start;
}

.qph-extra .quran-lyrics-toggle-btn {
  margin-top: 0;
}

.qph-extra .quran-lyrics-panel {
  width: 100%;
  max-width: 100%;
}

.qph-extra .ambience-mode-toggle {
  margin-top: 0;
  max-width: 220px;
}

@media (max-width: 560px) {
  .qph-extra .ambience-row {
    justify-content: center;
  }
  .qph-extra .ambience-mode-toggle {
    max-width: none;
  }
}

.ambience-status { margin:10px 0; color:var(--text-muted); font-size:.78rem; line-height:1.6; }
.ambience-status:empty { display:none; }
