
:root {
  --primary-color: #e5ba73;
  --accent-color: #f4c26f;
  --dark-color: #060911;
  --page-bg: #000000;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-bg-hover: rgba(255, 255, 255, 0.06);
  --light-color: #f8f9fa;
  --text-color: #e7e7ea;
  --neutral-border: rgba(255, 255, 255, 0.07);
  --neutral-border-hover: rgba(255, 255, 255, 0.12);
  --muted-text: rgba(231, 231, 234, 0.4);
  --font-main: 'Poppins', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background-color: var(--page-bg);
  background-image:
    radial-gradient(circle at 50% -10%, rgba(var(--orn-gold,229,186,115), 0.09) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--text-color);
  min-height: 100vh;
  line-height: 1.6;
  padding-bottom: 5rem;
  overflow-x: hidden;
  position: relative;
}

body::before { display: none; }

.audio-engine {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

header { text-align: center; padding: 3rem 1rem .5rem; position: relative; z-index: 10; }

.header-star {
  display: block; width: 70px; height: 70px; margin: 0 auto 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='none' stroke='%23e5ba73'><circle cx='50' cy='50' r='39' stroke-width='0.5' stroke-dasharray='2 2'/><path d='M50 14 L56 44 L86 50 L56 56 L50 86 L44 56 L14 50 L44 44 Z' stroke-width='1.6' stroke-linejoin='round'/><circle cx='50' cy='50' r='24' stroke-width='0.8'/></g></svg>");
  background-size: contain; background-repeat: no-repeat; background-position: center;
  animation: starGlowPulse 4s ease-in-out infinite;
}
@keyframes starGlowPulse {
  0%,100% { transform: scale(1); filter: drop-shadow(0 0 14px rgba(var(--orn-gold,229,186,115),0.35)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 26px rgba(var(--nbk-accent-rgb,244,194,111),0.6)); }
}
@keyframes starSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

h1 {
  font-family: var(--font-heading); font-weight: 500; font-size: 1.9rem;
  letter-spacing: 0.5px; margin: 0;
  background: linear-gradient(to bottom, #f8e7c7, var(--secondary-color,#d7b06a));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ================= BROWSE-TABS ("Nasheeds" / "Playlists") ================= */
.browse-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  max-width: 320px;
  margin: 0 auto 1.6rem;
  position: relative;
  z-index: 10;
}

.browse-tab {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--neutral-border);
  color: var(--muted-text);
  font-family: var(--font-main);
  font-size: 12.5px;
  letter-spacing: 0.3px;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.browse-tab:hover { border-color: var(--neutral-border-hover); color: var(--text-color); }

.browse-tab.active {
  background: rgba(var(--orn-gold,229,186,115),0.14);
  border-color: rgba(var(--orn-gold,229,186,115),0.5);
  color: #f8e7c7;
  animation: tabGlow 2.4s ease-in-out infinite;
}
@keyframes tabGlow {
  0%,100% { box-shadow: 0 0 0 0 rgba(var(--orn-gold,229,186,115),0.0); }
  50% { box-shadow: 0 0 14px 1px rgba(var(--orn-gold,229,186,115),0.28); }
}

/* ================= MAIN PLAYER ================= */
#main-player-wrap { position: relative; z-index: 10; max-width: 960px; margin: 0 auto 2.5rem; }

#main-player {
  display: grid;
  grid-template-columns: 76px 1fr auto auto;
  align-items: center;
  gap: 1.1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(var(--orn-gold,229,186,115),0.18);
  border-radius: 20px;
  padding: 1.3rem 1.6rem;
  backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 24px 60px rgba(0,0,0,0.55);
  position: relative;
  overflow: hidden;
}
#main-player::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(var(--orn-gold,229,186,115),0.55), transparent);
}

.mp-art {
  order: 1;
  width: 76px; height: 76px; border-radius: 16px;
  background: #12100a; border: 1px solid rgba(var(--orn-gold,229,186,115),0.25);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; flex-shrink: 0;
  animation: breatheArt 4s ease-in-out infinite;
}
.mp-art svg { width: 46%; height: 46%; opacity: .75; transition: transform .4s ease; }
.mp-art.playing { animation: none; box-shadow: inset 0 0 18px rgba(var(--nbk-accent-rgb,244,194,111),0.3); border-color: rgba(var(--nbk-accent-rgb,244,194,111),0.5); }
.mp-art.playing svg { animation: starSpin 8s linear infinite; opacity: 1; }
@keyframes breatheArt {
  0%, 100% { transform: scale(1); box-shadow: none; }
  50% { transform: scale(1.035); box-shadow: 0 0 14px rgba(var(--nbk-accent-rgb,244,194,111),0.18); }
}

.mp-info { order: 2; min-width: 0; }
#main-player-top { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }

#main-title-row { display: flex; align-items: center; gap: 8px; min-width: 0; }

#main-title-wrap { position: relative; height: 1.5rem; overflow: hidden; flex: 1; min-width: 0; }
#main-track-title {
  position: absolute; inset: 0;
  font-family: var(--font-heading); font-size: 1.2rem; font-weight: 600;
  background: linear-gradient(to bottom, #f8e7c7, var(--secondary-color,#d7b06a));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
#main-track-title.swap-out { transform: translateY(-100%); opacity: 0; }
#main-track-title.swap-in-start { transform: translateY(100%); opacity: 0; transition: none; }

#main-track-sub { font-size: .74rem; color: rgba(var(--orn-gold,229,186,115),0.4); letter-spacing: .3px; }

#main-progress-wrap { display: flex; align-items: center; gap: 8px; }
#main-time-cur, #main-time-total { font-size: .7rem; color: rgba(var(--orn-gold,229,186,115),0.4); min-width: 30px; font-variant-numeric: tabular-nums; }
#main-time-total { text-align: right; }

#main-progress-bg { flex: 1; height: 4px; background: rgba(var(--orn-gold,229,186,115),0.15); border-radius: 2px; position: relative; cursor: pointer; }
#main-progress-fill { height: 4px; width: 0%; background: linear-gradient(to right,#c9973e,#f8e7c7); border-radius: 2px; position: relative; transition: width .12s linear; }
#main-progress-fill::after { content:''; position:absolute; right:-5px; top:-4px; width:11px; height:11px; background:var(--accent-color,#f4c26f); border-radius:50%; box-shadow:0 0 8px rgba(var(--nbk-accent-rgb,244,194,111),0.65); opacity:0; transition:opacity .15s; }
#main-progress-bg:hover #main-progress-fill::after { opacity: 1; }

#main-controls { order: 4; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ctrl-side {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--neutral-border);
  background: rgba(255,255,255,0.02); color: rgba(231,231,234,0.55);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: all .2s ease;
}
.ctrl-side:hover { background: rgba(var(--orn-gold,229,186,115),0.14); color: #f8e7c7; border-color: rgba(var(--orn-gold,229,186,115),0.4); }
.ctrl-side.ctrl-active { border-color: rgba(var(--orn-gold,229,186,115),0.7); background: rgba(var(--orn-gold,229,186,115),0.22); color: #f8e7c7; }

#main-play-btn {
  width: 58px; height: 58px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid rgba(var(--orn-gold,229,186,115),0.55);
  background: radial-gradient(circle at 35% 35%, rgba(var(--nbk-accent-rgb,244,194,111),0.4), rgba(var(--orn-gold,229,186,115),0.12));
  color: #f8e7c7; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 0 16px rgba(var(--orn-gold,229,186,115),0.25);
  transition: transform .15s ease;
}
#main-play-btn:hover { transform: scale(1.06); }

.mp-volume {
  order: 3;
  display: flex; align-items: center; gap: 10px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(var(--orn-gold,229,186,115),0.18);
  border-radius: 999px;
  padding: 7px 14px 7px 12px;
  backdrop-filter: blur(8px);
  flex-shrink: 0;
  transition: border-color .25s ease, background .25s ease;
}
.mp-volume:hover,
.mp-volume:focus-within {
  border-color: rgba(var(--orn-gold,229,186,115),0.4);
  background: rgba(0,0,0,0.35);
}
.mp-volume svg { width: 14px; height: 14px; color: rgba(var(--orn-gold,229,186,115),0.65); flex-shrink: 0; }

.mp-volume input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 80px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent-color) 0%, var(--accent-color) 100%, rgba(255,255,255,0.12) 100%);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.4);
  cursor: pointer;
  touch-action: none;
  outline: none;
  transition: width .25s ease;
}
.mp-volume:hover input[type="range"],
.mp-volume:focus-within input[type="range"] {
  width: 100px;
}

.mp-volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6e0, var(--accent-color) 70%);
  box-shadow: 0 0 0 3px rgba(var(--nbk-accent-rgb,244,194,111),0.18), 0 0 10px rgba(var(--nbk-accent-rgb,244,194,111),0.6);
  margin-top: -4.5px;
  border: none;
  transition: transform .15s ease;
}
.mp-volume input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.15);
}
.mp-volume input[type="range"]::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%; border: none;
  background: radial-gradient(circle at 35% 35%, #fff6e0, var(--accent-color) 70%);
  box-shadow: 0 0 0 3px rgba(var(--nbk-accent-rgb,244,194,111),0.18), 0 0 10px rgba(var(--nbk-accent-rgb,244,194,111),0.6);
}
.mp-volume input[type="range"]::-moz-range-progress {
  background: var(--accent-color); height: 6px; border-radius: 999px;
}
.mp-volume input[type="range"]::-moz-range-track {
  background: rgba(255,255,255,0.12); height: 6px; border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.4);
}

/* ================= SUCHLEISTE ================= */
.search-wrap { position: relative; max-width: 960px; margin: 0 auto 1.3rem; padding: 0 1.5rem; }
.search-inner {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--neutral-border);
  border-radius: 14px;
  padding: .75rem 1.1rem;
  backdrop-filter: blur(14px);
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.search-inner:focus-within {
  border-color: rgba(var(--orn-gold,229,186,115),0.55);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(var(--orn-gold,229,186,115),0.08), 0 10px 30px rgba(0,0,0,0.35);
}
.search-inner svg { width: 17px; height: 17px; color: rgba(231,231,234,0.4); flex-shrink: 0; transition: color .25s ease; }
.search-inner:focus-within svg { color: var(--accent-color); }
#searchInput {
  flex: 1; border: none; background: transparent; outline: none;
  font-family: var(--font-main); font-size: .95rem; color: var(--text-color);
  letter-spacing: .2px;
}
#searchInput::placeholder { color: rgba(231,231,234,0.3); }
#searchClear {
  display: none; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(var(--orn-gold,229,186,115),0.15); color: rgba(var(--orn-gold,229,186,115),0.7); font-size: .75rem;
  transition: background .2s ease, color .2s ease;
  flex-shrink: 0;
}
#searchClear:hover { background: rgba(var(--orn-gold,229,186,115),0.3); color: #f8e7c7; }
#searchClear.visible { display: flex; }

.track.is-hidden, .tile.is-hidden { display: none !important; }
.no-results { text-align: center; padding: 2.5rem 1rem; color: var(--muted-text); font-size: .9rem; }

/* Waehrend in einem anderen Kontext (Hauptliste / andere Playlist) gehoert
   wird, sind Tracks aus diesem Kontext gesperrt, damit man nicht aus
   Versehen den Wiedergabe-"Ordner" wechselt. */
.track.is-context-locked, .tile.is-context-locked {
  opacity: .38;
  filter: grayscale(.5);
  pointer-events: none;
  cursor: not-allowed;
}
.track.is-context-locked .track-menu-btn,
.tile.is-context-locked .tile-menu-btn {
  display: none;
}

mark.search-hit { background: transparent; color: var(--accent-color); font-weight: 600; }

/* ================= VIEW TOGGLE / TOOLBAR ================= */
.list-wrap { max-width: 960px; margin: 0 auto; position: relative; z-index: 10; padding: 0 1.5rem; }
.toolbar { display: flex; align-items: center; justify-content: space-between; margin: 0 .25rem 1.1rem; gap: 10px; }
.toolbar-label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-text); }

.toolbar-back-btn {
  background: none; border: none; color: var(--accent-color);
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-main); font-size: .8rem; cursor: pointer;
  padding: 4px 2px;
}
.toolbar-back-btn svg { width: 14px; height: 14px; }
.toolbar-back-btn:hover { color: #f8e7c7; }

.playlist-view-add-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 38px; padding: 0 13px; border: 1px solid rgba(var(--orn-gold,229,186,115),0.36);
  border-radius: 11px; background: rgba(var(--orn-gold,229,186,115),0.1); color: #f8e7c7;
  font-family: var(--font-main); font-size: .75rem; cursor: pointer;
  transition: background .2s ease, border-color .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: 16px; height: 16px; flex: none; }

.view-toggle { display: flex; gap: 2px; background: rgba(255,255,255,0.03); border: 1px solid var(--neutral-border); border-radius: 11px; padding: 3px; }
.view-toggle button { width: 34px; height: 30px; border: none; background: transparent; border-radius: 8px; color: rgba(231,231,234,0.4); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s ease; }
.view-toggle button svg { width: 16px; height: 16px; }
.view-toggle button.active { background: rgba(var(--orn-gold,229,186,115),0.85); color: #1a1204; }

.view { display: none; }
.view.active { display: block; animation: viewIn .3s ease; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ================================================================
   LIST -- EIN "⋮"-Button pro Zeile statt drei kleine Icons
   ================================================================ */
.track {
  display: grid;
  grid-template-columns: 50px minmax(0,1fr) 60px 44px;
  align-items: center; gap: 14px;
  padding: 1rem 1.2rem; border-radius: 12px; cursor: pointer;
  background: var(--card-bg);
  border: 1px solid var(--neutral-border);
  position: relative; z-index: 1; margin-bottom: 10px; overflow: hidden;
  transition: border-color .25s ease, background .25s ease;
}
.track::before {
  content: ''; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px;
  background: linear-gradient(to bottom, var(--accent-color), var(--primary-color));
  transform: scaleY(0); transition: transform .25s ease;
}
.track.playing::before { transform: scaleY(1); }
.track.playing { border-color: rgba(var(--orn-gold,229,186,115),0.35); box-shadow: 0 0 18px rgba(var(--nbk-accent-rgb,244,194,111),0.14); }

.track-toggle { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; position: relative; }
.track-toggle .star-icon { width: 22px; height: 22px; color: #f8e7c7; transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .2s ease, color .2s ease; opacity: 0; transform: scale(.5) rotate(-40deg); }
.track-toggle .idx-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: .9rem; color: var(--muted-text); font-variant-numeric: tabular-nums; transition: opacity .2s ease; }
.track.playing .track-toggle .idx-num { opacity: 0; }
.track.playing .track-toggle .star-icon { opacity: 1; transform: scale(1) rotate(0deg); }
.track.playing .track-toggle .star-icon { animation: starSpin 6s linear infinite; color: var(--accent-color); }

.track-title { font-size: 1rem; color: var(--text-color); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s ease; }
.track.playing .track-title { color: #f8e7c7; font-weight: 500; }

.track-title-wrap { display: flex; align-items: center; gap: 8px; min-width: 0; }

.eq { display: none; align-items: flex-end; gap: 2px; height: 14px; flex-shrink: 0; }
.track.playing .eq { display: flex; }
.eq span { width: 2.5px; background: var(--accent-color); border-radius: 2px; animation: eqBounce 1s ease-in-out infinite; }
.eq span:nth-child(1) { height: 40%; animation-delay: 0s; }
.eq span:nth-child(2) { height: 100%; animation-delay: .15s; }
.eq span:nth-child(3) { height: 65%; animation-delay: .3s; }
@keyframes eqBounce { 0%,100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }

.track-dur { font-size: .72rem; color: var(--muted-text); text-align: right; font-variant-numeric: tabular-nums; }

.track-menu-btn {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.03); border: 1px solid var(--neutral-border);
  color: rgba(231,231,234,0.55); cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  -webkit-tap-highlight-color: transparent; outline: none;
  justify-self: end;
}
.track-menu-btn:hover { background: rgba(var(--orn-gold,229,186,115),0.14); color: #f8e7c7; border-color: rgba(var(--orn-gold,229,186,115),0.4); }
.track-menu-btn svg { width: 15px; height: 15px; pointer-events: none; }

/* ================================================================
   GRID -- randlos statt "Box mit Rahmen"
   ================================================================ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.6rem; max-width: 960px; margin: 0 auto; position: relative; z-index: 10; padding: 0 1.5rem 3rem; }
.tile {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  position: relative; z-index: 1;
  transition: transform .25s ease;
}
.track, .tile { touch-action: manipulation; }

.tile-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  margin-bottom: .7rem;
  background: radial-gradient(circle at 30% 28%, rgba(var(--orn-gold,229,186,115),0.11), rgba(12,16,10,0.95) 72%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.4);
  transition: box-shadow .3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .track:hover { background: var(--card-bg-hover); border-color: var(--neutral-border-hover); }
  .track:hover::before { transform: scaleY(1); }
  .track:hover .track-toggle .idx-num { opacity: 0; }
  .track:hover .track-toggle .star-icon { opacity: 1; transform: scale(1) rotate(0deg); }
  .tile:hover { transform: translateY(-4px); }
  .tile:hover .tile-art { box-shadow: 0 16px 34px rgba(0,0,0,0.5), 0 0 0 1px rgba(var(--orn-gold,229,186,115),0.25); }
  .tile:hover .tile-art .glyph { opacity: .75; }
}
.tile.playing .tile-art { box-shadow: 0 0 0 1px rgba(var(--orn-gold,229,186,115),0.4), 0 0 26px rgba(var(--nbk-accent-rgb,244,194,111),0.25); }

.tile-art .glyph { width: 40%; height: 40%; opacity: .55; transition: opacity .3s ease; }
.tile.playing .tile-art .glyph { display: none; }
.tile.playing .tile-art .mini-eq { display: flex; }

.mini-eq { display: none; gap: 3px; align-items: flex-end; height: 24px; }
.mini-eq span { width: 4px; background: var(--accent-color); border-radius: 2px; animation: eqBounce 1s ease-in-out infinite; }
.mini-eq span:nth-child(1) { height: 40%; animation-delay: 0s; }
.mini-eq span:nth-child(2) { height: 100%; animation-delay: .15s; }
.mini-eq span:nth-child(3) { height: 65%; animation-delay: .3s; }

.tile-menu-btn {
  position: absolute;
  bottom: 8px; right: 8px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(9,11,18,0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(var(--orn-gold,229,186,115),0.35);
  color: #f8e7c7;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.tile-menu-btn:hover { background: rgba(var(--orn-gold,229,186,115),0.3); }
.tile-menu-btn:active { transform: scale(0.92); }
.tile-menu-btn svg { width: 15px; height: 15px; pointer-events: none; }

.tile-menu-popover {
  position: fixed; z-index: 1200; min-width: 200px;
  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); padding: 8px;
  display: none;
}
.tile-menu-popover.open { display: block; }
.tile-menu-popover button {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: none; border: none; text-align: left; color: var(--text-color);
  font-size: 13px; font-family: var(--font-main); padding: 8px 10px;
  border-radius: 8px; cursor: pointer; transition: background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.tile-menu-popover button:hover { background: rgba(var(--orn-gold,229,186,115),0.12); color: #f8e7c7; }
.tile-menu-popover button svg { width: 14px; height: 14px; pointer-events: none; flex-shrink: 0; }

.tile-title-row { display: flex; align-items: center; gap: 6px; }
.tile-title { font-size: .86rem; color: var(--text-color); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.tile.playing .tile-title { color: #f8e7c7; }

/* ================================================================
   PLAYLISTS (Playlist-Tab) -- gleiches randloses Prinzip
   ================================================================ */

.playlist-manager { max-width: 960px; margin: 0 auto; padding: 0 1.5rem 3rem; position: relative; z-index: 10; }

.playlist-hint {
  text-align: center; font-size: 0.85rem; color: var(--muted-text);
  padding: 2rem 1rem;
}

.playlist-new-row { display: flex; gap: 10px; max-width: 420px; margin: 0 auto 1.6rem; }
.playlist-name-input {
  flex: 1; background: rgba(255,255,255,0.04); border: 1px solid var(--neutral-border);
  color: var(--text-color); font-family: var(--font-main); font-size: 0.9rem;
  padding: .7rem 1rem; border-radius: 12px; outline: none; transition: border-color .2s ease;
}
.playlist-name-input:focus { border-color: rgba(var(--orn-gold,229,186,115),0.55); }
.playlist-name-input::placeholder { color: rgba(231,231,234,0.3); }
.playlist-add-btn {
  background: rgba(var(--orn-gold,229,186,115),0.15); border: 1px solid rgba(var(--orn-gold,229,186,115),0.4);
  color: #f8e7c7; width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.playlist-add-btn svg { width: 16px; height: 16px; }
.playlist-add-btn:hover { background: rgba(var(--orn-gold,229,186,115),0.28); transform: scale(1.05); }

.playlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.6rem; }

.playlist-tile {
  background: transparent; border: none; padding: 0; cursor: pointer;
  position: relative; transition: transform .25s ease;
}
.playlist-tile:hover { transform: translateY(-4px); }

.playlist-tile-art {
  position: relative; width: 100%; aspect-ratio: 1/1; margin-bottom: .7rem;
  background: radial-gradient(circle at 30% 28%, rgba(var(--orn-gold,229,186,115),0.11), rgba(12,16,10,0.95) 72%);
  border-radius: 16px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.4);
  transition: box-shadow .3s ease;
}
.playlist-tile:hover .playlist-tile-art { box-shadow: 0 16px 34px rgba(0,0,0,0.5), 0 0 0 1px rgba(var(--orn-gold,229,186,115),0.25); }
.playlist-tile-art img { width: 100%; height: 100%; object-fit: cover; }
.playlist-tile-art svg { width: 40%; height: 40%; opacity: .55; color: var(--primary-color,#e5ba73); }

/* ============================================================
   NEU: Badge auf den fest hinterlegten BoycottBuddy-Featured-
   Playlists ("Sport & Motivation" / "Ruhe & Besinnung") --
   unterscheidet sie optisch von normalen Nutzer-Playlists.
   ============================================================ */
.featured-badge {
  position: absolute; top: 8px; left: 8px;
  background: linear-gradient(135deg, var(--accent-color,#f4c26f), var(--primary-color,#e5ba73));
  color: #1a1204; font-family: var(--font-main);
  font-size: .6rem; font-weight: 700; letter-spacing: .03em;
  padding: 3px 9px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.featured-playlist-tile {
  --featured-accent: #f4c26f;
  --featured-glow: rgba(244,194,111,.16);
  padding: .55rem;
  border: 1px solid rgba(var(--orn-gold,229,186,115),.13);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  box-shadow: 0 12px 30px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.04);
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.featured-playlist-tile.featured-calm {
  --featured-accent: #c2cfaa;
  --featured-glow: rgba(157,184,142,.17);
}
.featured-playlist-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--orn-gold,229,186,115),.35);
  background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.018));
  box-shadow: 0 18px 38px rgba(0,0,0,.34), 0 0 28px var(--featured-glow);
}
.featured-playlist-art {
  isolation: isolate;
  margin-bottom: .8rem;
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(ellipse at 50% 35%, var(--featured-glow), transparent 60%),
    linear-gradient(145deg, rgba(var(--orn-gold,229,186,115),.08), rgba(11,15,13,.98) 74%);
  box-shadow: inset 0 1px rgba(255,255,255,.07), 0 10px 24px rgba(0,0,0,.28);
}
.featured-calm .featured-playlist-art {
  background:
    radial-gradient(ellipse at 50% 35%, var(--featured-glow), transparent 62%),
    linear-gradient(145deg, rgba(126,154,121,.12), rgba(10,16,15,.98) 74%);
}
.featured-playlist-art::before,
.featured-playlist-art::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 68%;
  aspect-ratio: 1;
  border: 1px solid rgba(var(--orn-gold,229,186,115),.08);
  border-radius: 50%;
  pointer-events: none;
}
.featured-playlist-art::before { transform: scale(1.32); }
.featured-playlist-art::after { transform: scale(1.65); opacity: .55; }
.featured-playlist-art > svg {
  width: 76%;
  height: 76%;
  color: var(--featured-accent);
  opacity: .88;
  filter: drop-shadow(0 0 16px var(--featured-glow));
  transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
}
.featured-playlist-tile:hover .featured-playlist-art > svg {
  transform: scale(1.06);
  opacity: 1;
}
.featured-playlist-art .featured-badge {
  top: 11px;
  left: 11px;
  padding: 5px 10px;
  font-size: .57rem;
  letter-spacing: .045em;
}
.featured-playlist-art .featured-play-button {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-color,#f4c26f), #d7a64f);
  color: #1a1204;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.34), 0 0 20px var(--featured-glow);
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.featured-playlist-art .featured-play-button svg {
  width: 16px;
  height: 16px;
  color: inherit;
  opacity: 1;
  filter: none;
  pointer-events: none;
}
.featured-playlist-art .featured-play-button:hover { transform: scale(1.08); filter: brightness(1.08); }
.featured-playlist-art .featured-play-button:focus-visible {
  outline: 2px solid #f8e7c7;
  outline-offset: 3px;
}
.featured-playlist-tile .playlist-tile-body { padding: 0 .35rem .3rem; }
.featured-playlist-tile .playlist-tile-title {
  font-family: var(--font-heading);
  font-size: .93rem;
  font-weight: 600;
  color: #f4ead8;
  margin-bottom: 7px;
}
.featured-playlist-tile .playlist-tile-meta { min-height: 20px; }
.featured-playlist-tile .playlist-tile-count {
  color: rgba(231,231,234,.62);
  font-size: .68rem;
}
.featured-playlist-count {
  color: var(--featured-accent);
  font-size: .62rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.featured-section-label {
  font-family: var(--font-main); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted-text);
  margin: 0 0 1rem;
}
.featured-section-label.second { margin-top: 2.2rem; }

.playlist-cover-edit-btn {
  position: absolute; bottom: 8px; right: 8px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(9,11,18,0.75); backdrop-filter: blur(6px);
  border: 1px solid rgba(var(--orn-gold,229,186,115),0.35); color: #f8e7c7;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .2s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.playlist-cover-edit-btn:hover { background: rgba(var(--orn-gold,229,186,115),0.3); }
.playlist-cover-edit-btn:active { transform: scale(0.92); }
.playlist-cover-edit-btn svg { width: 14px; height: 14px; pointer-events: none; }

.playlist-tile-title {
  font-size: .85rem; color: var(--text-color); line-height: 1.35; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.playlist-tile-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.playlist-tile-count { font-size: .68rem; color: var(--muted-text); }
.playlist-tile-actions { display: flex; align-items: center; gap: 4px; }
.playlist-tile-actions button {
  background: none; border: none; width: 24px; height: 24px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.playlist-tile-actions button svg { width: 12px; height: 12px; pointer-events: none; }
.playlist-tile-play { color: var(--accent-color); }
.playlist-tile-play:hover { background: rgba(var(--orn-gold,229,186,115),0.18); }
.playlist-tile-rename { color: rgba(231,231,234,0.45); }
.playlist-tile-rename:hover { background: rgba(var(--orn-gold,229,186,115),0.18); color: #f8e7c7; }
.playlist-tile-delete { color: rgba(231,231,234,0.35); }
.playlist-tile-delete:hover { background: rgba(255,90,90,0.14); color: #ff9c9c; }

.playlist-tile-body .playlist-name-input { font-size: 0.8rem; padding: 5px 8px; width: 100%; }

/* ================================================================
   FIX: "Zu Playlist hinzufügen"-Popover -- vorher hatten Titel
   (4px), Beschreibungstext (8px) und die Eingabezeile (0px)
   jeweils UNTERSCHIEDLICHE linke Innenabstände relativ zum
   Popover-Rand -- dadurch verlief der linke Textrand uneben
   (sichtbar im Screenshot). Jetzt trägt NUR noch der Popover
   selbst den Innenabstand, alle Kind-Elemente haben padding:0
   und sind dadurch exakt bündig. Der Plus-Button ist jetzt ein
   klarer, vollständiger Kreis statt einer unklaren Zwischenform.
   ================================================================ */
.playlist-popover {
  position: fixed; z-index: 1200; min-width: 230px; max-width: 280px;
  background: rgba(9,11,18,0.98); border: 1px solid rgba(var(--orn-gold,229,186,115),0.3);
  border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.55);
  padding: 16px;
  display: none;
}
.playlist-popover.open { display: block; }
.playlist-popover-title {
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-color); opacity: .85;
  padding: 0; margin: 0 0 10px;
}
.playlist-popover-list {
  display: flex; flex-direction: column; gap: 4px;
  max-height: 180px; overflow-y: auto;
  padding: 0; margin: 0 0 12px;
}
.playlist-popover-option {
  background: none; border: none; text-align: left; color: var(--text-color);
  font-size: 13px; font-family: var(--font-main);
  padding: 10px 10px; border-radius: 10px; cursor: pointer;
  transition: background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.playlist-popover-option:hover { background: rgba(var(--orn-gold,229,186,115),0.1); color: #f8e7c7; }
.playlist-popover-empty {
  font-size: 12.5px; line-height: 1.6; color: var(--muted-text);
  padding: 0; margin: 0 0 14px;
}
.playlist-popover-new {
  display: flex; align-items: center; gap: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 14px; margin: 0;
}
.playlist-popover-new .playlist-name-input {
  flex: 1; padding: .65rem .9rem; font-size: .85rem; border-radius: 10px;
}
.playlist-popover-new .playlist-add-btn {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
}

.playlist-track-picker {
  width: min(560px, calc(100vw - 24px));
  max-height: min(760px, calc(100vh - 24px));
  max-height: min(760px, calc(100dvh - 24px));
  margin: auto; padding: 18px; border: 1px solid rgba(var(--orn-gold,229,186,115),0.3);
  border-radius: 18px; background: #10110f; color: var(--text-color);
  box-shadow: 0 24px 70px rgba(0,0,0,.7);
  flex-direction: column; gap: 14px;
}
.playlist-track-picker[open] { display: flex; }
.playlist-track-picker::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(5px); }
.playlist-picker-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.playlist-picker-heading h2 { color: #f8e7c7; font: 500 1.15rem/1.3 var(--font-heading); }
.playlist-picker-heading p { margin-top: 3px; color: var(--muted-text); font-size: .74rem; }
.playlist-picker-close {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px;
  border: 1px solid var(--neutral-border); border-radius: 11px;
  background: rgba(255,255,255,.04); color: var(--text-color); font-size: 1.4rem; cursor: pointer;
}
.playlist-picker-search input {
  width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid var(--neutral-border);
  border-radius: 11px; outline: none; background: rgba(255,255,255,.04); color: var(--text-color);
  font: 400 .85rem var(--font-main);
}
.playlist-picker-search input:focus { border-color: rgba(var(--orn-gold,229,186,115),.6); }
.playlist-picker-selection { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.playlist-picker-selection > span { color: var(--muted-text); font-size: .72rem; }
.playlist-picker-selection > div { display: flex; gap: 7px; }
.playlist-picker-selection button {
  min-height: 38px; padding: 0 10px; border: 1px solid var(--neutral-border);
  border-radius: 9px; background: rgba(255,255,255,.035); color: #e9dcc3;
  font: 400 .68rem var(--font-main); cursor: pointer;
}
.playlist-picker-selection button:hover:not(:disabled) { border-color: rgba(var(--orn-gold,229,186,115),.45); }
.playlist-picker-selection button:disabled { opacity: .45; cursor: default; }
.playlist-picker-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start;
  flex: 1 1 auto; gap: 7px; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 2px 3px 2px 0;
}
.playlist-picker-option {
  display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 48px;
  padding: 8px 10px; border: 1px solid var(--neutral-border); border-radius: 11px;
  background: rgba(255,255,255,.025); color: #e9dcc3; font-size: .74rem; line-height: 1.35;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.playlist-picker-option.is-selected {
  border-color: rgba(var(--orn-gold,229,186,115),.55); background: rgba(var(--orn-gold,229,186,115),.1);
}
.playlist-picker-option input { width: 18px; height: 18px; flex: none; accent-color: var(--primary-color,#e5ba73); }
.playlist-picker-option span { min-width: 0; overflow-wrap: anywhere; }
.playlist-picker-empty { grid-column: 1 / -1; padding: 24px 8px; color: var(--muted-text); font-size: .82rem; text-align: center; }
.playlist-picker-feedback { min-height: 1.2em; color: var(--accent-color); font-size: .72rem; }
.playlist-picker-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 12px; border-top: 1px solid var(--neutral-border); }
.playlist-picker-actions button {
  min-height: 44px; padding: 0 15px; border: 1px solid var(--neutral-border);
  border-radius: 10px; background: rgba(255,255,255,.04); color: var(--text-color);
  font: 500 .76rem var(--font-main); cursor: pointer;
}
.playlist-picker-actions .playlist-picker-add { border-color: transparent; background: linear-gradient(135deg,var(--accent-color,#f4c26f),var(--primary-color,#e5ba73)); color: #1a1204; }
.playlist-picker-actions .playlist-picker-add:disabled { opacity: .45; cursor: default; }

/* ================= DOWNLOAD BUTTON (unten) ================= */
.exPlayer {
  display: block; width: 260px; margin: 1rem auto 0; padding: 1rem 1.5rem;
  background: rgba(var(--orn-gold,229,186,115),0.15); color: var(--light-color);
  border: 1px solid rgba(var(--orn-gold,229,186,115),0.35); border-radius: 16px; font-size: 1rem;
  cursor: pointer; transition: var(--transition); backdrop-filter: blur(5px);
  text-align: center; font-weight: 500;
}
.exPlayer:hover { background: rgba(var(--orn-gold,229,186,115),0.28); transform: translateY(-3px); }

/* ================= QUEUE ================= */
.queue-toggle {
  position: fixed; bottom: 1.4rem; right: 1.4rem;
  background: rgba(10,12,20,0.94); color: var(--accent-color);
  border: 1px solid rgba(var(--orn-gold,229,186,115),0.4); border-radius: 50%;
  width: 58px; height: 58px; padding: 0; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2000;
  transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 26px rgba(0,0,0,0.46);
}
.queue-toggle svg { width: 23px; height: 23px; }
.queue-toggle:hover,
.queue-toggle.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:hover { transform: translateY(-2px); }
.queue-toggle.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-toggle::after {
  content: attr(data-count); position: absolute; top: -7px; right: -7px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--accent-color); color: #1a1204; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; line-height: 1;
  border: 2px solid #111;
}
.queue-toggle:not(.has-items)::after { display: none; }

.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; padding: 14px;
  transform: translateY(12px) scale(0.98); opacity: 0; visibility: hidden; pointer-events: none;
  color: var(--text-color);
  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;
  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; flex-shrink: 0;
}
.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(--muted-text); 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: inherit; font-size: 11px; 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; padding: 0; display: grid; place-items: center;
  color: var(--muted-text); 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 {
  list-style: none; display: flex; flex-direction: column; gap: 7px;
  max-height: 270px; overflow-y: auto; overscroll-behavior: contain;
  padding: 0 2px 0 0; margin: 0;
}
.queue-item {
  display: flex; align-items: center; gap: 6px; min-height: 54px;
  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; cursor: pointer;
}
.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 .qi-num {
  font-size: 10px; font-variant-numeric: tabular-nums; color: var(--accent-color);
  width: 23px; flex-shrink: 0; text-align: center;
}
.queue-item .qi-title {
  flex: 1; min-width: 0; font-size: 12px; font-weight: 500; color: var(--text-color);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.queue-item .qi-remove {
  background: transparent; border: 1px solid transparent; color: rgba(231,231,234,0.45);
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.queue-item .qi-remove:hover { color: #ff9caa; background: rgba(239,71,111,0.12); border-color: rgba(239,71,111,0.12); }
.queue-item .qi-remove svg { width: 15px; height: 15px; pointer-events: none; }

.queue-empty {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  text-align: center; font-size: 12px; color: var(--muted-text); padding: 18px 10px; margin: 0;
}
.queue-empty svg { width: 25px; height: 25px; color: var(--accent-color); opacity: 0.72; }
.queue-empty span { color: var(--text-color); font-weight: 500; }
.queue-empty small { max-width: 30ch; font-size: 10px; line-height: 1.5; }

/* ================= FOOTER ================= */
footer { text-align: center; padding: 2rem; margin-top: 2rem; font-size: 0.9rem; opacity: 0.6; position: relative; z-index: 10; }

/* ================= RESPONSIVE ================= */
@media (max-width: 560px) {
  .toolbar { flex-wrap: wrap; gap: 8px; }
  .toolbar-back-btn { order: 0; }
  .toolbar-label { order: 1; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .view-toggle { order: 2; }
  .playlist-view-add-btn { order: 3; width: 100%; min-height: 44px; }
  #main-player {
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas: "art info" "ctrl ctrl" "vol vol";
    row-gap: 1rem; column-gap: 1rem;
    padding: 1rem 1.1rem 1.2rem;
  }
  .mp-art { grid-area: art; width: 56px; height: 56px; }
  .mp-info { grid-area: info; }
  #main-track-title { font-size: 1.05rem; }
  #main-track-sub { font-size: .7rem; }
  #main-controls { grid-area: ctrl; width: 100%; justify-content: center; gap: 8px; }
  .ctrl-side { width: 38px; height: 38px; border-radius: 10px; }
  #main-play-wrap { width: 52px; height: 52px; }

  .mp-volume {
    grid-area: vol;
    width: fit-content;
    justify-self: center;
    margin: 0;
  }
  .mp-volume input[type="range"],
  .mp-volume:hover input[type="range"] { width: 140px; }
}

@media (max-width: 480px) {
  .track { grid-template-columns: 42px minmax(0,1fr) 44px 44px; gap: 8px; padding: .8rem .9rem; }
  .track-menu-btn { width: 40px; height: 40px; }
  .queue-toggle { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .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 { min-height: 58px; }
  .queue-item .qi-remove { width: 44px; height: 44px; }
  .grid, .playlist-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1.1rem; padding: 0 1rem 3rem; }
  .playlist-popover { min-width: 0; width: calc(100vw - 32px); max-width: 320px; }
  .playlist-track-picker { width: calc(100vw - 20px); max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); padding: 14px; gap: 11px; }
  .playlist-picker-list { grid-template-columns: minmax(0, 1fr); min-height: 100px; }
  .playlist-picker-selection { align-items: flex-start; }
  .playlist-picker-selection > div { width: 100%; }
  .playlist-picker-selection button { flex: 1; padding: 0 7px; }
  .playlist-picker-actions { display: grid; grid-template-columns: 1fr 1.5fr; }
  .playlist-picker-actions button { min-height: 48px; padding: 0 8px; }
}
/* ============================================================
   WORTMARKE — Lockup Logo CSS für topbar
   ============================================================ */

.lockup{
  display:inline-flex;align-items:center;gap:.95rem;
  text-decoration:none;color:inherit;cursor:pointer;
}
.mark-wrap{
  display:block;flex-shrink:0;
  transform:rotate(-135deg) scale(.3);opacity:0;
  animation:markSettle 1.05s cubic-bezier(.22,1,.36,1) forwards .1s;
}
@keyframes markSettle{to{transform:none;opacity:1;}}

.mark{
  display:block;width:34px;height:34px;overflow:visible;
  transition:transform 1.15s cubic-bezier(.22,1,.36,1);
  animation:markBreathe 4.5s ease-in-out infinite 1.2s;
}
@keyframes markBreathe{
  0%,100%{filter:drop-shadow(0 0 6px rgba(var(--nbk-accent-rgb,244,194,111),.42));}
  50%    {filter:drop-shadow(0 0 20px rgba(var(--nbk-accent-rgb,244,194,111),1));}
}
.mark .star-outline{fill:none;stroke:url(#goldShine) var(--primary-color);stroke-width:1.6;stroke-linejoin:round;}
.mark .ring-inner{fill:none;stroke:var(--primary-color);stroke-width:.8;opacity:.55;}
.mark .ring-outer{fill:none;stroke:var(--primary-color);stroke-width:.5;stroke-dasharray:2 2;opacity:.4;}

.rule{
  width:1px;height:26px;flex-shrink:0;
  background:linear-gradient(to bottom,transparent,rgba(var(--orn-gold,229,186,115),.55),transparent);
  opacity:0;animation:ruleIn .5s ease forwards .8s;transition:height .6s cubic-bezier(.22,1,.36,1);
}
@keyframes ruleIn{to{opacity:1;}}

.word{
  font-family:var(--font-heading);font-weight:500;font-size:1rem;letter-spacing:.15em;white-space:nowrap;
  background:linear-gradient(100deg,var(--primary-color) 0%,var(--primary-color) 40%,#f8e7c7 50%,var(--primary-color) 60%,var(--primary-color) 100%);
  background-size:300% 100%;background-position:120% 0;
  -webkit-background-clip:text;background-clip:text;color:transparent;
  opacity:0;transform:translateX(-10px);
  animation:wordIn .7s cubic-bezier(.22,1,.36,1) forwards .75s;
  transition:background-position 1s cubic-bezier(.22,1,.36,1);
}
@keyframes wordIn{to{opacity:1;transform:none;}}

.lockup:hover .mark{transform:rotate(180deg);}
.lockup:hover .word{background-position:-60% 0;}
.lockup:hover .rule{height:32px;}

.lockup.sm .mark{width:26px;height:26px;}
.lockup.sm .rule{height:20px;}
.lockup.sm .word{font-size:.8rem;letter-spacing:.13em;}

.topbar{
  position:fixed;top:0;left:0;right:0;z-index:100;
  display:flex;align-items:center;justify-content:space-between;
  padding:2rem clamp(1.2rem,4vw,3rem);
  background:none;border:none;pointer-events:none;
}
.topbar .lockup,.topbar-nav{pointer-events:auto;}
.topbar-nav{display:flex;align-items:center;gap:2rem;}
.topbar-nav a{font-family:var(--font-main,inherit);font-size:.85rem;color:var(--text-light,#fff);text-decoration:none;opacity:.75;transition:opacity .25s ease,color .25s ease;}
.topbar-nav a:hover{opacity:1;color:var(--primary-color);}
@media (max-width:768px){
  .topbar{
    position:static;
    justify-content:center;
    padding:1.2rem 0 .4rem;
  }
  .topbar-nav{display:none;}
  .lockup.sm{gap:.6rem;}
  .lockup.sm .mark{width:22px;height:22px;}
  .lockup.sm .rule{height:16px;}
  .lockup.sm .word{font-size:.7rem;letter-spacing:.1em;}
}

/* ============================================================
   GEPRÜFT-Badge -- kleiner Icon-Kreis statt Text-Pille
   ============================================================ */
.verified-badge {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color,#f4c26f), var(--primary-color,#e5ba73));
  color: #1a1204;
  transition: transform .15s ease, box-shadow .2s ease;
}
.verified-badge svg { width: 9px; height: 9px; flex-shrink: 0; stroke-width: 3; }
.verified-badge .vb-text { display: none; }
.track:hover .verified-badge,
.track.playing .verified-badge,
.tile:hover .verified-badge {
  box-shadow: 0 0 8px rgba(var(--nbk-accent-rgb,244,194,111),0.5);
}

.mp-badge { display: none; }
.mp-badge.mp-badge-visible { display: inline-flex; }

/* ============================================================
   NEU: Genereller Hinweis-Banner (statt einzelner Copyright-
   Badges pro Track) -- weist darauf hin, dass Teile des
   Angebots künftig entfernt werden könnten, um Rechte Dritter
   zu wahren. Schließbar (X oben rechts).
   ============================================================ */
.copyright-notice {
  display: flex; align-items: flex-start; gap: 10px;
  max-width: 960px; margin: 0 auto 1.4rem; padding: .9rem 2.4rem .9rem 1.1rem;
  background: rgba(217, 117, 108, 0.08);
  border: 1px solid rgba(217, 117, 108, 0.3);
  border-radius: 14px;
  position: relative; z-index: 10;
}
.copyright-notice > svg {
  width: 18px; height: 18px; color: #d9756c; flex-shrink: 0; margin-top: 2px;
}
.copyright-notice p {
  font-size: .82rem; color: var(--text-color); line-height: 1.55; margin: 0;
}
.copyright-notice-copy { min-width: 0; }
.copyright-notice-copy p + p { margin-top: .65rem; }
.copyright-notice-close {
  position: absolute; top: 8px; right: 8px;
  background: none; border: none; color: var(--muted-text); cursor: pointer;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease;
  -webkit-tap-highlight-color: transparent; outline: none;
}
.copyright-notice-close:hover { background: rgba(255,255,255,0.06); color: #f8e7c7; }
.copyright-notice-close svg { width: 13px; height: 13px; pointer-events: none; }

@media (max-width: 560px) {
  .copyright-notice { margin: 0 1.1rem 1.2rem; padding: .8rem 2.2rem .8rem 1rem; }
}

/* Playlist detail and persistent now-playing player */
.playlist-detail-hero {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.6vw, 1.5rem);
  position: relative;
  overflow: hidden;
  margin: 0 0 1.8rem;
  padding: clamp(1.1rem, 3vw, 2rem);
  border: 1px solid rgba(var(--orn-gold,229,186,115),.16);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 10% 100%, rgba(var(--orn-gold,229,186,115),.13), transparent 56%),
    linear-gradient(135deg, rgba(30,28,22,.96), rgba(10,13,12,.97) 70%);
  box-shadow: 0 20px 48px rgba(0,0,0,.3), inset 0 1px rgba(255,255,255,.045);
}
.playlist-detail-hero[hidden] { display: none; }
.playlist-detail-top {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  align-items: end;
  gap: clamp(1.2rem, 4vw, 2.4rem);
}
.playlist-detail-cover {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(var(--orn-gold,229,186,115),.28);
  border-radius: 17px;
  background: radial-gradient(circle at 32% 24%, rgba(var(--orn-gold,229,186,115),.22), rgba(11,14,12,.96) 72%);
  box-shadow: 0 14px 34px rgba(0,0,0,.38), 0 0 30px rgba(var(--orn-gold,229,186,115),.08);
  animation: breatheArt 4s ease-in-out infinite;
}
.playlist-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.playlist-detail-cover svg { width: 58%; height: 58%; color: var(--primary-color,#e5ba73); opacity: .76; transition: transform .4s ease; }
/* Wie beim normalen Player: sobald diese Playlist tatsächlich läuft,
   hört das Cover auf zu "atmen" und das Icon dreht sich stattdessen. */
.playlist-detail-hero.is-playing .playlist-detail-cover {
  animation: none;
  box-shadow: inset 0 0 18px rgba(var(--nbk-accent-rgb,244,194,111),.3), 0 14px 34px rgba(0,0,0,.38);
  border-color: rgba(var(--nbk-accent-rgb,244,194,111),.5);
}
.playlist-detail-hero.is-playing .playlist-detail-cover svg {
  animation: starSpin 8s linear infinite;
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .playlist-detail-cover { animation: none; }
  .playlist-detail-hero.is-playing .playlist-detail-cover svg { animation: none; }
}
.playlist-detail-copy { min-width: 0; }
.playlist-detail-eyebrow {
  color: var(--accent-color);
  font: 600 .65rem/1 var(--font-main);
  letter-spacing: .16em;
}
.playlist-detail-copy h1 {
  margin: .55rem 0 .45rem;
  font: 600 clamp(1.45rem, 3.4vw, 2.6rem)/1.12 var(--font-heading);
  color: #f8e7c7;
  background: none;
  -webkit-text-fill-color: currentColor;
}
.playlist-detail-byline,
.playlist-detail-status {
  margin: 0;
  color: rgba(231,231,234,.62);
  font: 400 .75rem/1.6 var(--font-main);
}
.playlist-detail-byline { color: rgba(var(--nbk-accent-rgb,244,194,111),.78); }
.playlist-detail-status {
  min-height: 1.3em;
  margin-top: .5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.playlist-detail-hero.is-playing .playlist-detail-status { color: var(--accent-color,#f4c26f); }
.playlist-detail-actions { display: flex; align-items: center; gap: .65rem; margin-top: 1rem; }
.playlist-detail-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 42px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, background .18s ease;
}
.playlist-detail-play {
  padding: 0 1.15rem;
  border: 0;
  background: linear-gradient(135deg, var(--accent-color,#f4c26f), #d7a64f);
  color: #1a1204;
  font: 600 .76rem var(--font-main);
  box-shadow: 0 7px 20px rgba(0,0,0,.25);
}
.playlist-detail-play:hover { transform: translateY(-1px); filter: brightness(1.08); }
.playlist-detail-hero .playlist-detail-add {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 16px;
  padding: 10px 18px;
  border: 1px solid rgba(var(--nbk-accent-rgb,244,194,111),.45);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-color,#e5ba73), #cf9e50);
  color: #211909;
  font: 500 .78rem/1.4 'Poppins', sans-serif;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.playlist-detail-hero .playlist-detail-add:hover {
  background: #f4cc87;
  transform: translateY(-1px);
}
.playlist-detail-hero .playlist-detail-add:focus-visible {
  outline: 2px solid var(--primary-color,#e5ba73);
  outline-offset: 4px;
}
@media (max-width: 600px) {
  .playlist-detail-hero .playlist-detail-add {
    padding: 10px 12px;
    font-size: .72rem;
  }
}
.playlist-detail-play svg { width: 14px; height: 14px; }
.playlist-detail-shuffle {
  width: 42px;
  padding: 0;
  border: 1px solid rgba(var(--orn-gold,229,186,115),.28);
  background: rgba(var(--orn-gold,229,186,115),.08);
  color: var(--primary-color,#e5ba73);
}
.playlist-detail-shuffle:hover { background: rgba(var(--orn-gold,229,186,115),.18); }
.playlist-detail-shuffle svg { width: 17px; height: 17px; }

/* ============================================================
   Player, in die Playlist-Kachel integriert (ersetzt den separaten
   grossen Player oben, solange eine Playlist geoeffnet ist --
   #main-player-anchor.merged-into-hero blendet ihn dafuer aus).
   ============================================================ */
#main-player-anchor.merged-into-hero { display: none; }

.playlist-hero-player {
  display: flex; flex-direction: column; gap: .8rem;
  padding-top: clamp(.9rem, 2vw, 1.3rem);
  border-top: 1px solid rgba(var(--orn-gold,229,186,115),.14);
}
.playlist-hero-player.is-idle { opacity: .72; }
.playlist-hero-progress {
  display: grid; grid-template-columns: 36px minmax(0,1fr) 36px;
  align-items: center; gap: .6rem;
  color: rgba(231,231,234,.6); font-size: .7rem; font-variant-numeric: tabular-nums;
}
.playlist-hero-progress span:last-child { text-align: right; }
.hero-progress-bg {
  flex: 1; height: 4px; background: rgba(var(--orn-gold,229,186,115),.15);
  border-radius: 2px; position: relative; cursor: pointer;
}
.hero-progress-fill {
  height: 4px; width: 0%; background: linear-gradient(to right,#c9973e,#f8e7c7);
  border-radius: 2px; position: relative; transition: width .12s linear;
}
.hero-progress-fill::after {
  content:''; position:absolute; right:-5px; top:-4px; width:11px; height:11px;
  background:var(--accent-color,#f4c26f); border-radius:50%; box-shadow:0 0 8px rgba(var(--nbk-accent-rgb,244,194,111),.65);
  opacity:0; transition:opacity .15s;
}
.hero-progress-bg:hover .hero-progress-fill::after { opacity: 1; }

.playlist-hero-transport {
  display: flex; align-items: center; justify-content: center; gap: .65rem; flex-wrap: wrap;
}
.playlist-hero-side {
  width: 42px; height: 42px; padding: 0; flex-shrink: 0;
  border-radius: 12px; border: 1px solid var(--neutral-border);
  background: rgba(255,255,255,.02); color: rgba(231,231,234,.55);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: all .2s ease;
}
.playlist-hero-side:hover { background: rgba(var(--orn-gold,229,186,115),.14); color: #f8e7c7; border-color: rgba(var(--orn-gold,229,186,115),.4); }
.playlist-hero-side.ctrl-active { border-color: rgba(var(--orn-gold,229,186,115),.7); background: rgba(var(--orn-gold,229,186,115),.22); color: #f8e7c7; }
.playlist-hero-side svg { width: 15px; height: 15px; }

/* Runder Play/Pause-Button in der Mitte der Transport-Reihe -- bewusst
   im selben Stil wie der grosse Player (#main-play-btn), statt der
   vorherigen laenglichen Text-Pille, die zwischen den runden
   Seiten-Buttons schief/inkonsistent wirkte. */
.playlist-hero-play {
  width: 58px; height: 58px; flex-shrink: 0; border-radius: 50%;
  border: 1.5px solid rgba(var(--orn-gold,229,186,115),.55); padding: 0; margin: 0 .2rem;
  background: radial-gradient(circle at 35% 35%, rgba(var(--nbk-accent-rgb,244,194,111),.4), rgba(var(--orn-gold,229,186,115),.12));
  color: #f8e7c7; font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 0 16px rgba(var(--orn-gold,229,186,115),.25);
  transition: transform .15s ease;
}
.playlist-hero-play:hover { transform: scale(1.06); }
#main-play-icon, #heroPlayIcon {
  display: grid; place-items: center; width: 24px; height: 24px; line-height: 1;
}
#main-play-icon svg, #heroPlayIcon svg {
  display: block; width: 24px; height: 24px; flex-shrink: 0;
}

.playlist-hero-volume {
  display: flex; align-items: center; gap: 10px; align-self: center;
  background: rgba(0,0,0,.25); border: 1px solid rgba(var(--orn-gold,229,186,115),.18);
  border-radius: 999px; padding: 7px 14px 7px 12px; cursor: pointer;
}
.playlist-hero-volume svg { width: 14px; height: 14px; color: rgba(var(--orn-gold,229,186,115),.65); flex-shrink: 0; }
.nasheed-mute-btn {
  display: grid; place-items: center; flex: none;
  width: 28px; height: 28px; padding: 5px;
  border: 0; border-radius: 50%; background: transparent;
  color: var(--primary-color,#e5ba73); cursor: pointer;
}
.nasheed-mute-btn svg { width: 16px; height: 16px; pointer-events: none; }
.nasheed-mute-btn:hover { background: rgba(var(--orn-gold,229,186,115),.14); }
.nasheed-mute-btn:focus-visible { outline: 2px solid var(--primary-color,#e5ba73); outline-offset: 2px; }
.playlist-hero-volume input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 110px; height: 6px;
  border-radius: 999px; background: rgba(255,255,255,.12);
  accent-color: var(--accent-color); cursor: pointer;
}
@media (max-width: 760px) {
  .playlist-detail-top { grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 14px; }
  .playlist-hero-side { width: 38px; height: 38px; border-radius: 10px; }
  .playlist-hero-volume input[type="range"] { width: 80px; }
}

.playlist-detail-playing-indicator {
  display: none;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  position: absolute;
  top: 20px;
  right: 22px;
  color: var(--accent-color,#f4c26f);
}
.playlist-detail-hero.is-playing .playlist-detail-playing-indicator { display: flex; }
.playlist-detail-playing-indicator span,
.playlist-playing-badge i {
  display: block;
  width: 3px;
  height: 45%;
  border-radius: 3px;
  background: currentColor;
  animation: eqBounce .8s ease-in-out infinite;
}
.playlist-detail-playing-indicator span:nth-child(2),
.playlist-playing-badge i:nth-child(2) { height: 100%; animation-delay: .16s; }
.playlist-detail-playing-indicator span:nth-child(3),
.playlist-playing-badge i:nth-child(3) { height: 65%; animation-delay: .32s; }
.playlist-detail-hero:not(.is-playing) .playlist-detail-playing-indicator span,
.playlist-playing-badge:not(.is-playing) i,
.track-now-playing:not(.is-playing) i {
  animation-play-state: paused;
}
.playlist-playing-badge {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(var(--nbk-accent-rgb,244,194,111),.28);
  border-radius: 50%;
  background: rgba(10,12,10,.82);
  color: var(--accent-color,#f4c26f);
  backdrop-filter: blur(10px);
}
.playlist-playing-badge i,
.track-now-playing i {
  display: block;
  width: 2px;
  height: 7px;
  flex: none;
  border-radius: 2px;
  background: currentColor;
  animation: eqBounce .8s ease-in-out infinite;
}
.playlist-playing-badge i:nth-child(2),
.track-now-playing i:nth-child(2) { height: 12px; animation-delay: .16s; }
.playlist-playing-badge i:nth-child(3),
.track-now-playing i:nth-child(3) { height: 9px; animation-delay: .32s; }
.is-current-playlist .playlist-tile-art { border-color: rgba(var(--nbk-accent-rgb,244,194,111),.44); }
.track.current-track:not(.playing) { border-color: rgba(var(--orn-gold,229,186,115),.25); }
.track.current-track .track-title { color: #f8e7c7; }
.track-now-playing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--primary-color,#e5ba73);
  border-radius: 50%;
  background: rgba(var(--orn-gold,229,186,115),.08);
}

@media (max-width: 600px) {
  .playlist-detail-hero {
    gap: .8rem;
    margin-bottom: 1.2rem;
    padding: 14px;
    border-radius: 17px;
  }
  .playlist-detail-top {
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
  }
  .playlist-detail-cover { border-radius: 12px; }
  .playlist-detail-eyebrow { font-size: .56rem; }
  .playlist-detail-copy h1 { margin: .35rem 0; font-size: 1.18rem; }
  .playlist-detail-byline, .playlist-detail-status { font-size: .62rem; }
  .playlist-detail-status { margin-top: .25rem; }
  .playlist-hero-play { width: 50px; height: 50px; font-size: 1rem; }
  .playlist-hero-side { width: 36px; height: 36px; }
  .playlist-hero-volume input[type="range"] { width: 70px; }
  .playlist-detail-playing-indicator { top: 13px; right: 14px; }

  .queue-toggle { right: 14px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 48px; height: 48px; }
  .queue-panel.open {
    right: 10px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    width: min(380px, calc(100vw - 24px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .playlist-detail-playing-indicator span,
  .playlist-playing-badge i { animation: none; }
}

/* ============================================================
   Blauer Kreis/Highlight beim Antippen der Player-Buttons
   auf Mobile (Android Chrome / iOS Safari)
   ============================================================ */
#main-play-btn,
.ctrl-side,
.track-menu-btn,
.tile-menu-btn,
.playlist-cover-edit-btn,
.playlist-tile-actions button,
.view-toggle button,
.browse-tab,
.exPlayer,
.queue-toggle,
#clearQueue {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

#main-play-btn:focus-visible,
.ctrl-side:focus-visible,
.view-toggle button:focus-visible,
.browse-tab:focus-visible {
  outline: 2px solid rgba(var(--orn-gold,229,186,115), 0.6);
  outline-offset: 2px;
}

/* ============================================================
   Playlist-Return-Button -- schwebendes Icon, zeigt an, dass im
   Hintergrund noch eine Playlist läuft, auch wenn man gerade nicht
   mehr auf dieser Playlist-Ansicht ist. Fixed positioniert, also
   unabhängig vom Scroll/Layout der Haupt-Nasheed-Seite -- sichtbar
   egal welcher Tab/welche Ansicht gerade aktiv ist.
   ============================================================ */
.playlist-return-btn {
  position: fixed; bottom: calc(1.4rem + 72px); right: 1.4rem;
  width: 58px; height: 58px; padding: 0; border-radius: 50%;
  background: rgba(10,12,20,0.94); border: 1px solid rgba(var(--orn-gold,229,186,115),0.4);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2000; overflow: visible;
  box-shadow: 0 8px 26px rgba(0,0,0,0.46);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  animation: playlistReturnIn 0.3s ease;
}
.playlist-return-btn[hidden] { display: none !important; }
.playlist-return-btn:hover { transform: translateY(-2px); border-color: rgba(var(--orn-gold,229,186,115),0.72); }
.playlist-return-btn .playlist-return-icon {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; overflow: hidden; color: var(--accent-color);
}
.playlist-return-btn .playlist-return-icon img { width: 100%; height: 100%; object-fit: cover; }
.playlist-return-btn .playlist-return-icon svg { width: 26px; height: 26px; }
.playlist-return-btn.is-playing {
  border-color: rgba(var(--orn-gold,229,186,115),0.75);
  box-shadow: 0 0 0 4px rgba(var(--orn-gold,229,186,115),0.1), 0 8px 26px rgba(0,0,0,0.46);
}
.playlist-return-btn.is-playing::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid rgba(var(--orn-gold,229,186,115),0.55); pointer-events: none;
  animation: playlistReturnPulse 1.8s ease-out infinite;
}
@keyframes playlistReturnPulse {
  0% { transform: scale(0.92); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}
@keyframes playlistReturnIn {
  from { transform: translateY(10px) scale(0.85); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .playlist-return-btn.is-playing::after { animation: none; }
}
@media (max-width: 640px) {
  .playlist-return-btn { right: 14px; bottom: calc(16px + env(safe-area-inset-bottom) + 58px); width: 50px; height: 50px; }
}

/* ============================================================
   NASHEEDS — Playlist-Politur v2 (ersetzt die erste Version dieses
   Blocks).
   ------------------------------------------------------------
   1) Toolbar-Fix: "+ Titel hinzufügen" schwamm bisher frei in der
      Mitte, weil .toolbar mit justify-content:space-between ALLE
      4 Kinder (Zurück, Label, Button, View-Toggle) gleichmäßig
      auseinanderzieht. Jetzt bleiben Zurück+Label links zusammen,
      Button+View-Toggle rutschen als Gruppe nach rechts.
   2) Playlist-Cover ohne Bild: statt des flachen Lesezeichen-Icons
      jetzt mit dezenten konzentrischen Ringen + Glow, im gleichen
      Stil wie eure "BoycottBuddy"-Featured-Playlists. Gilt jetzt
      über .playlist-cover-glyph generisch für ALLE Stellen, an
      denen das Cover gerendert wird (Kachel-Übersicht, großes
      Hero-Cover der geöffneten Playlist, "zurück zur Playlist"-
      Button) -- vorher griff das nur in der Kachel-Übersicht.
============================================================ */

/* NEU: Toolbar -- Button+Toggle als rechte Gruppe statt frei schwebend */
.toolbar{
  justify-content: flex-start;
}
.toolbar-label{
  margin-right: auto;
}

/* NEU: Playlist-Cover ohne eigenes Bild -- Ringe + Glow statt flachem Icon.
   .playlist-cover-glyph ist die SPAN um das SVG und wird an mehreren
   Stellen verwendet (Playlist-Kachel, großes Hero-Cover der geöffneten
   Playlist, "Zur laufenden Playlist zurück"-Button) -- deshalb generisch
   gehalten, statt an einen bestimmten Eltern-Container gebunden. */
.playlist-cover-glyph{
  position:relative;
  display:flex; align-items:center; justify-content:center;
  width:100%; height:100%;
}
.playlist-cover-glyph::before,
.playlist-cover-glyph::after{
  content:'';
  position:absolute;
  z-index:0;
  width:62%;
  aspect-ratio:1;
  border:1px solid rgba(var(--orn-gold,229,186,115),.14);
  border-radius:50%;
  pointer-events:none;
}
.playlist-cover-glyph::before{ transform:scale(1.3); }
.playlist-cover-glyph::after{ transform:scale(1.65); opacity:.55; }
.playlist-cover-glyph svg{
  position:relative; z-index:1;
  width:38%; height:38%;
  opacity:.9;
  color:var(--primary-color,#e5ba73);
  filter:drop-shadow(0 0 10px rgba(var(--nbk-accent-rgb,244,194,111),.45));
  transition:transform .35s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
}
.playlist-tile-art > .playlist-cover-glyph {
  position:absolute; inset:0; width:auto; height:auto;
  display:grid; place-items:center;
}
.playlist-tile-art .playlist-cover-glyph > svg.playlist-default-icon {
  display:block; width:44%; height:auto; aspect-ratio:1; flex:none; opacity:.95;
}
.playlist-tile-art > .playlist-playing-badge {
  top:10px; left:10px; right:auto; bottom:auto;
}
.tile:hover .playlist-cover-glyph svg,
.playlist-tile:hover .playlist-cover-glyph svg{
  transform: scale(1.08);
  opacity: 1;
}
/* Im großen Hero-Cover (Detailansicht einer geöffneten Playlist) und im
   runden "zurück zur Playlist"-Button ist das Icon prominenter, braucht
   also etwas mehr Fläche als in der kleinen Kachel. */
.playlist-detail-cover .playlist-cover-glyph svg,
.playlist-return-icon .playlist-cover-glyph svg{
  width:44%; height:44%;
}

.community-artist-filter { display:flex; align-items:center; gap:12px; margin-top:14px; color:var(--text-muted,#aaa393); font-size:.78rem; }
.community-artist-filter select { flex:1; min-width:0; padding:11px 13px; border:1px solid rgba(var(--orn-gold,229,186,115),.22); border-radius:10px; color:var(--text-light,#f8f9fa); background:rgb(var(--nbk-surface-rgb,20,21,17)); font:inherit; color-scheme:dark; }
.community-artist-name { display:block; font-size:.72rem; color:var(--text-muted,#aaa393); margin-top:4px; }

.community-artist-filter[hidden] { display:none; }
