* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  min-height: 100vh;
  color: #ffffff;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  background: #000000;
  overflow: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 14% 20%, rgba(231, 170, 81, 0.38) 0%, rgba(172, 112, 49, 0.20) 20%, transparent 43%),
    radial-gradient(circle at 88% 82%, rgba(197, 140, 61, 0.42) 0%, rgba(141, 90, 27, 0.23) 22%, transparent 46%),
    radial-gradient(circle at 72% 14%, rgba(253, 222, 146, 0.22) 0%, rgba(226, 165, 78, 0.12) 20%, transparent 39%),
    radial-gradient(circle at 40% 68%, rgba(172, 112, 49, 0.31) 0%, rgba(141, 90, 27, 0.18) 25%, transparent 51%),
    linear-gradient(145deg, transparent 0%, transparent 40%, rgba(231, 170, 81, 0.13) 41%, rgba(172, 112, 49, 0.07) 59%, transparent 61%),
    linear-gradient(25deg, transparent 0%, transparent 47%, rgba(197, 140, 61, 0.12) 48%, rgba(141, 90, 27, 0.07) 65%, transparent 67%),
    #020100;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.86) 16%, rgba(0, 0, 0, 0.45) 34%, transparent 56%),
    radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.34) 46%, rgba(0, 0, 0, 0.86) 100%),
    linear-gradient(180deg, rgba(172, 112, 49, 0.07) 0%, transparent 36%, transparent 70%, rgba(141, 90, 27, 0.07) 100%);
  z-index: -1;
}

.app {
  width: 100%;
  min-height: 100vh;
  display: flex;
  position: relative;
  z-index: 1;
}

.sidebar {
  width: 280px;
  min-height: 100vh;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-right: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    18px 0 60px rgba(0, 0, 0, 0.28),
    inset -1px 0 0 rgba(255, 255, 255, 0.05);
  position: relative;
}

.sidebarLogo {
  position: absolute;
  top: -120px;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 1;
}

.sidebarLogoImage {
  width: 370px;
  height: auto;
  display: block;
  /*
    ViewBox 1500×1500 @ width 370px → scale 0.2467
    Krone bei SVG x=185 → 185×0.2467 = 45.6px vom SVG-Rand
    SVG-Offset: (280−370)/2 + 25 = −20px  →  Krone bei −20+45.6 = 25.6px in Sidebar

    Beim Plattformwechsel: Krone bleibt immer bei 25.6px, solange
    alle Logos dieselbe ViewBox (1500×1500) mit Krone bei x=185 verwenden.
    Schriftzug "music" / "gaming" / … erscheint rechts ab ~196px.
  */
  margin-left: -20px;
  pointer-events: none;
}

.mainContent {
  flex: 1;
  min-height: 100vh;
  position: relative;
  margin-right: 0;
  transition: margin-right 0.28s ease;
}

.sidebarNav {
  width: 100%;
  padding: 132px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.navButton {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  transition: 0.2s ease;
}

.navButton:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.12);
}

.navButton.active {
  color: #ffffff;
  background: rgba(172, 112, 49, 0.26);
  border-color: rgba(231, 170, 81, 0.46);
  box-shadow: 0 0 28px rgba(231, 170, 81, 0.18);
}

.navIcon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  fill: currentColor;
}

.radioIcon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.radioIcon circle {
  fill: currentColor;
  stroke: none;
}

.sidebarSectionTitle {
  margin: 28px 16px 8px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.createButton {
  color: rgba(255, 255, 255, 0.86);
}


.topBar {
  width: 100%;
  height: 96px;
  padding: 28px 34px;
  display: flex;
  align-items: center;
}

.searchPanel {
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 460px;
  background: #000000;
  border: 1px solid rgba(231, 170, 81, 0.46);
  border-radius: 24px;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.45),
    0 0 22px rgba(231, 170, 81, 0.08);
  overflow: hidden;
  z-index: 10;
  transition:
    width 0.28s ease,
    height 0.28s ease,
    top 0.28s ease,
    left 0.28s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    border-radius 0.5s ease-in-out;
}

.searchPanel.open {
  width: 540px;
  border-radius: 18px;
  border-color: rgba(231, 170, 81, 0.75);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(231, 170, 81, 0.20);
}

.searchBox {
  width: 100%;
  height: 48px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.searchIcon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  fill: rgba(255, 255, 255, 0.55);
}

.searchBox input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #ffffff;
  font-size: 15px;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
}

.searchBox input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.searchDropdown {
  height: 0;
  border-top: 1px solid transparent;
  transition: height 0.22s ease, border-color 0.22s ease;
}

.searchPanel.open .searchDropdown {
  height: 60px;
  border-color: rgba(255, 255, 255, 0.07);
}

.searchPanel.expanded {
  width: calc(100vw - 560px);
  height: 100vh;
  top: 0;
  border-radius: 0;
  box-shadow: none;
}

.searchOverlayLeft,
.searchOverlayRight {
  position: fixed;
  top: 0;
  width: 280px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 9;
}

.searchOverlayLeft {
  left: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.searchBackButton {
  display: none;
  position: absolute;
  left: 20px;
  top: 28px;
  height: 48px;
  align-items: center;
  gap: 10px;
  border: none;
  outline: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 700;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: color 0.2s ease;
  z-index: 1;
}

.searchBackButton:hover {
  color: #ffffff;
}

.searchBackButton svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.searchPanel.expanded .searchBackButton {
  display: flex;
}

.searchOverlayRight {
  right: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.searchOverlayLeft.visible,
.searchOverlayRight.visible {
  opacity: 1;
  pointer-events: auto;
}

.searchPanel.expanded .searchBox {
  height: 48px;
  margin-top: 28px;
  margin-left: auto;
  margin-right: auto;
  max-width: 600px;
  border: none;
  border-bottom: 1px solid rgba(231, 170, 81, 0.46);
  border-radius: 0;
}

.searchPanel.expanded .searchDropdown {
  height: calc(100vh - 76px);
  border-color: transparent;
  overflow-y: auto;
  transition: none;
}

.searchIcon {
  cursor: pointer;
}

.searchClose {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: none;
  outline: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s ease;
}

.searchClose:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.searchClose svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.searchPanel.open .searchClose {
  display: flex;
}

.searchNoResults {
  padding: 0 18px;
  height: 60px;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 14px;
  font-weight: 600;
}


.pageArea {
  width: 100%;
  padding: 36px 54px;
}

.page {
  display: none;
  max-width: 980px;
}

.page.active {
  display: block;
}

.page h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.page p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 17px;
  line-height: 1.7;
}

.centerGlassRectangle {
  width: 1360px;
  height: 58px;
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  transition: left 0.28s ease;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    18px 0 60px rgba(0, 0, 0, 0.28),
    inset -1px 0 0 rgba(255, 255, 255, 0.05);
  z-index: 5;
  pointer-events: auto;
}

.playerSongInfo {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.playerCover {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(231, 170, 81, 0.85), rgba(82, 45, 14, 0.75)),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  flex: 0 0 42px;
}

.playerSongText {
  min-width: 0;
}

.playerSongName {
  max-width: 230px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playerArtistName {
  max-width: 230px;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playerCenter {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 500px;
  height: 50px;
  transform: translate(-50%, -50%);
}

.playerControls {
  position: absolute;
  left: 50%;
  top: 1px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.playerButton {
  width: 27px;
  height: 27px;
  border: none;
  outline: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: 0.2s ease;
}

.playerButton:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.playerButton svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.queueButton svg {
  width: 18px;
  height: 18px;
}

.queueButton.active {
  color: #ff6a00;
}

.queuePanel {
  position: fixed;
  top: 0;
  right: 0;
  width: 480px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-left: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    -18px 0 60px rgba(0, 0, 0, 0.28),
    inset 1px 0 0 rgba(255, 255, 255, 0.05);
  transform: translateX(100%);
  pointer-events: none;
  transition: transform 0.28s ease;
  z-index: 20;
  overflow-y: auto;
}

.queueEmpty {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.28);
  font-size: 14px;
  font-weight: 500;
  pointer-events: none;
}

.queuePanel.open {
  transform: translateX(0);
  pointer-events: auto;
}

.playButton {
  width: 28px;
  height: 28px;
  color: #000000;
  background: #ffffff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.16);
}

.playButton:hover {
  color: #000000;
  background: rgba(255, 255, 255, 0.9);
}

.playIcon {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
}

.playerModeButton .shuffleIcon {
  display: none;
}

.playerModeButton .modeBadge {
  display: none;
}

.playerModeButton.modeRepeat,
.playerModeButton.modeRepeatOne,
.playerModeButton.modeShuffle {
  color: #ff6a00;
}

.playerModeButton.modeRepeatOne .modeBadge {
  display: block;
  position: absolute;
  top: -2px;
  right: 1px;
  color: #ff6a00;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.playerModeButton.modeShuffle .repeatIcon {
  display: none;
}

.playerModeButton.modeShuffle .shuffleIcon {
  display: block;
}

.playerProgress {
  position: absolute;
  left: 50%;
  bottom: 1px;
  transform: translateX(-50%);
  width: 420px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.playerTime {
  width: 34px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.playerLine {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transition: height 0.15s ease;
  cursor: pointer;
}

.playerProgress:hover .playerLine {
  height: 5px;
}

.playerLineFill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: rgba(231, 170, 81, 0.85);
  position: relative;
  transition: box-shadow 0.15s ease;
}

.playerProgress:hover .playerLineFill {
  box-shadow: 0 0 8px rgba(231, 170, 81, 0.6);
}

.playerLineFill::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
  transition: transform 0.15s ease;
}

.playerProgress:hover .playerLineFill::after {
  transform: translateY(-50%) scale(1);
}

.volumeControl {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  height: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.volumeMuteButton {
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex: 0 0 20px;
}

.volumeIcon {
  width: 20px;
  height: 20px;
  fill: rgba(255, 255, 255, 0.62);
}

.muteStrike {
  display: none;
  stroke: #ff6a00;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.volumeMuteButton.muted .muteStrike {
  display: block;
}

.volumeSlider {
  width: 120px;
  height: 4px;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  outline: none;
  cursor: pointer;
}

.volumeSlider::-webkit-slider-thumb {
  width: 13px;
  height: 13px;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.22);
}

.volumeSlider::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: none;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.22);
}

.sidebarProfile {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  transition: 0.2s ease;
}

.sidebarProfile:hover {
  background: rgba(255, 255, 255, 0.05);
}

.profileAvatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(231, 170, 81, 0.85), rgba(82, 45, 14, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.14);
  flex: 0 0 36px;
}

.profileUsername {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profileArrow {
  width: 8px;
  height: 14px;
  flex: 0 0 8px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.38);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.28s ease;
}

.sidebarProfile.open .profileArrow {
  transform: rotate(-90deg);
}

.profileMenuWrapper {
  position: absolute;
  bottom: 77px;
  left: 0;
  width: 100%;
  overflow: hidden;
}

.profileMenu {
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.profileMenu.open {
  transform: translateY(0);
}

.profileMenuItem {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  transition: 0.2s ease;
  text-align: left;
}

.profileMenuItem:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.12);
}

.profileMenuItem.active {
  color: #ffffff;
  background: rgba(172, 112, 49, 0.26);
  border-color: rgba(231, 170, 81, 0.46);
  box-shadow: 0 0 28px rgba(231, 170, 81, 0.18);
}

.profileMenuIcon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: currentColor;
}

.profileMenuDivider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 4px 14px;
}

.profileMenuItemLogout {
  color: rgba(255,255,255,0.45) !important;
}
.profileMenuItemLogout:hover {
  color: rgba(255,255,255,0.85) !important;
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.1) !important;
  box-shadow: none !important;
}
.profileMenuItemLogout .profileMenuIcon {
  stroke: currentColor;
  fill: none;
}

.sidebarLogin {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 700;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  transition: 0.2s ease;
  text-align: left;
}

.sidebarLogin:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.sidebarLoginIcon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  flex: 0 0 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebarLoginIcon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

html[data-logged-in="0"] .sidebarProfile,
html[data-logged-in="0"] .profileMenuWrapper {
  display: none;
}

html[data-logged-in="1"] .sidebarLogin {
  display: none;
}

.loginModal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(5, 3, 1, 0.80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 32vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.loginModal.open {
  opacity: 1;
  pointer-events: auto;
}

html[data-login-modal-restored="1"] #loginModal {
  opacity: 1;
  pointer-events: auto;
  transition: none;
}

html[data-login-modal-restored="1"] #loginModal .loginModalInner {
  transform: scale(1) translateY(0);
  transition: none;
}

html[data-register-modal-restored="1"] #registerModal {
  opacity: 1;
  pointer-events: auto;
  transition: none;
}

html[data-register-modal-restored="1"] #registerModal .loginModalInner {
  transform: scale(1) translateY(0);
  transition: none;
}

.loginModalInner {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  transform: scale(0.97) translateY(14px);
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.loginModal.open .loginModalInner {
  transform: scale(1) translateY(0);
}

.loginModalClose {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 32px;
  height: 32px;
  border: none;
  outline: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 999px;
  transition: 0.2s ease;
}

.loginModalClose:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
}

.loginModalClose svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/*
  SVG viewBox 1500×1500. Actual content: x 185–751, y 698–802.
  At width 370px (scale 0.2467):
    content-left  = 45.6px   content-top    = 172.2px
    content-width = 139.6px  content-height = 25.7px
    content-centerX = 115.4px (from SVG left)

  negative-margin trick:
    margin-top: -162px  →  -( 172.2 − 10 )  →  content starts 10px from wrapper top
    margin-bottom: -162px →  wrapper height = 370 − 162 − 162 = 46px  (10px pad each side)
    margin-left: calc(50% − 115px)  →  content center = 50% of wrapper  ✓
*/
.loginModalLogoWrap {
  overflow: hidden;
  margin-bottom: 32px;
}

.loginModalLogo {
  width: 370px;
  height: auto;
  display: block;
  margin-top: -162px;
  margin-bottom: -162px;
  margin-left: calc(50% - 115px);
}

.loginModalTitle {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 8px;
}

.loginModalSub {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  margin-bottom: 36px;
}

.loginModalFields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.loginModalField {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.loginModalLabel {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.loginModalInputWrap {
  position: relative;
  display: flex;
  align-items: center;
}

.loginModalInputWrap .loginModalInput {
  padding-right: 36px;
}

.loginModalEyeBtn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}

.loginModalEyeBtn:hover {
  color: rgba(255, 255, 255, 0.7);
}

.loginModalEyeBtn:focus,
.loginModalEyeBtn:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.eyeIcon {
  width: 17px;
  height: 17px;
}

.eyeShow {
  display: none;
}

.eyeHide {
  display: block;
}

.loginModalInput {
  width: 100%;
  height: 42px;
  padding: 0 2px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font-size: 15px;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  outline: none;
  transition: border-color 0.2s ease;
}

.loginModalInput::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.loginModalInput:focus {
  border-color: rgba(255, 106, 0, 0.8);
}

.loginModalInput:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.loginModalActions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.loginModalSubmit {
  flex: 1;
  height: 48px;
  border: none;
  border-radius: 0;
  background: linear-gradient(135deg, #ff6a00, #cc4f00);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: 0.15s ease;
}

.loginModalSubmit:hover {
  background: linear-gradient(135deg, #ff7d1a, #e05500);
}

.loginModalSubmit:active {
  transform: scale(0.98);
}

.loginModalRegister {
  flex: 1;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.38);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: color 0.15s ease;
}

.loginModalRegister:hover {
  color: rgba(255, 255, 255, 0.65);
}

.loginModalRegister:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.loginModalSocial {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.loginModalSocialBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.loginModalSocialBtn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
}

.loginModalSocialBtn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.loginModalSocialBtn:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.registerModalInner {
  max-width: 500px;
  margin-top: 76px;
}

/* OTP steps (2 & 3): switch the overlay from centered to top-aligned so the
   content starts at the same Y position as the login modal.
   The login modal centers at 34vh (= (100vh - 32vh padding-bottom) / 2).
   Its content top = 34vh - half-of-login-height ≈ calc(34vh - 300px).
   We replicate that by anchoring OTP content to that same top edge. */
#registerModal.regOtpMode {
  align-items: flex-start;
  padding-top: max(12px, calc(34vh - 300px));
  padding-bottom: 0;
}
#registerModal.regOtpMode .registerModalInner {
  margin-top: 0;
}

.registerModalInner .loginModalSub {
  margin-bottom: 24px;
}

.registerFields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  margin-bottom: 24px;
}


.loginModalWeiter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.loginModalWeiter svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.loginModalDivider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 16px;
  color: rgba(255, 255, 255, 0.2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.loginModalDivider::before,
.loginModalDivider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

/* ── Visuelles Feedback: Inhalt skaliert, Button-Container bleibt fix ── */

.navButton svg, .navButton span,
.profileMenuItem svg, .profileMenuItem span {
  transition: transform 0.1s ease;
}
.navButton:active svg, .navButton:active span,
.profileMenuItem:active svg, .profileMenuItem:active span {
  transform: scale(1.12);
}

.playIcon {
  transition: transform 0.1s ease;
}
.playButton:active .playIcon {
  transform: scale(1.22);
}

.playerButton:not(.playButton) svg {
  transition: transform 0.1s ease;
}
.playerButton:not(.playButton):active svg {
  transform: scale(1.2);
}

.searchIcon {
  transition: transform 0.1s ease;
}
.searchIcon:active {
  transform: scale(1.22);
}

.searchClose svg {
  transition: transform 0.1s ease;
}
.searchClose:active svg {
  transform: scale(1.22);
}

.searchBackButton svg,
.searchBackButton span {
  transition: transform 0.1s ease;
}
.searchBackButton:active svg,
.searchBackButton:active span {
  transform: scale(1.12);
}

.volumeIcon {
  transition: transform 0.1s ease;
}
.volumeMuteButton:active .volumeIcon {
  transform: scale(1.22);
}

.volumeSlider::-webkit-slider-thumb {
  transition: transform 0.1s ease;
}
.volumeSlider:active::-webkit-slider-thumb {
  transform: scale(1.5);
}

/* ── Scrollbar ── */

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(231, 170, 81, 0.3);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(231, 170, 81, 0.55);
}

html[data-page="startPage"] #startPage,
html[data-page="playlistsPage"] #playlistsPage,
html[data-page="artistsPage"] #artistsPage,
html[data-page="releasesPage"] #releasesPage,
html[data-page="radioPage"] #radioPage,
html[data-page="newPlaylistPage"] #newPlaylistPage { display: block; }

html[data-muted="1"] .muteStrike { display: block; }

html[data-profile-open="1"] .profileMenu { transform: translateY(0); }
html[data-profile-open="1"] .sidebarProfile .profileArrow { transform: rotate(-90deg); }

html[data-search-expanded="1"] .searchPanel {
  width: calc(100vw - 560px);
  height: 100vh;
  top: 0;
  border-radius: 0;
  box-shadow: none;
}
html[data-search-expanded="1"] .searchPanel .searchBox {
  height: 76px;
  padding-top: 28px;
  max-width: 600px;
  margin: 0 auto;
  border: none;
  border-bottom: 1px solid rgba(231, 170, 81, 0.46);
  border-radius: 0;
}
html[data-search-expanded="1"] .searchPanel .searchDropdown {
  height: calc(100vh - 76px);
  border-color: transparent;
  overflow-y: auto;
}
html[data-search-expanded="1"] .searchPanel .searchBackButton { display: flex; }
html[data-search-expanded="1"] .searchPanel .searchClose { display: flex; }
html[data-queue-open="1"] .queuePanel { pointer-events: auto; transform: translateX(0); }
html[data-queue-open="1"] .queueButton { color: #ff6a00; }
html[data-queue-open="1"] .mainContent { margin-right: 480px; }
html[data-queue-open="1"] .searchPanel { left: calc(50% - 100px); }
html[data-queue-open="1"] .centerGlassRectangle { left: calc(50% - 100px); }

html[data-search-expanded="1"] .searchOverlayLeft,
html[data-search-expanded="1"] .searchOverlayRight { opacity: 1; pointer-events: auto; }

html[data-player-mode="repeat"] .playerModeButton,
html[data-player-mode="repeatOne"] .playerModeButton,
html[data-player-mode="shuffle"] .playerModeButton { color: #ff6a00; }

html[data-player-mode="repeatOne"] .playerModeButton .modeBadge {
  display: block;
  position: absolute;
  top: -2px;
  right: 1px;
  color: #ff6a00;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

html[data-player-mode="shuffle"] .playerModeButton .repeatIcon { display: none; }
html[data-player-mode="shuffle"] .playerModeButton .shuffleIcon { display: block; }

html[data-page="settingsPage"] #settingsPage,
html[data-page="profilePage"] #profilePage { display: block; }

html[data-page="settingsPage"] [data-page="settingsPage"].profileMenuItem,
html[data-page="profilePage"] [data-page="profilePage"].profileMenuItem {
  color: #ffffff;
  background: rgba(172, 112, 49, 0.26);
  border-color: rgba(231, 170, 81, 0.46);
  box-shadow: 0 0 28px rgba(231, 170, 81, 0.18);
}

html[data-page="startPage"] [data-page="startPage"].navButton,
html[data-page="playlistsPage"] [data-page="playlistsPage"].navButton,
html[data-page="artistsPage"] [data-page="artistsPage"].navButton,
html[data-page="releasesPage"] [data-page="releasesPage"].navButton,
html[data-page="radioPage"] [data-page="radioPage"].navButton,
html[data-page="newPlaylistPage"] [data-page="newPlaylistPage"].navButton {
  color: #ffffff;
  background: rgba(172, 112, 49, 0.26);
  border-color: rgba(231, 170, 81, 0.46);
  box-shadow: 0 0 28px rgba(231, 170, 81, 0.18);
}

/* ── Punkt 4: Goldener Tastaturfokus ── */

*:focus-visible {
  outline: 2px solid rgba(231, 170, 81, 0.9) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 4px rgba(231, 170, 81, 0.18) !important;
}

.searchBox input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* ── Punkt 5: Spielerleiste Hover (experimentell) ── */

.centerGlassRectangle {
  transition: left 0.28s ease, transform 0.22s ease;
}

.centerGlassRectangle:hover {
  transform: translateX(-50%) scaleX(1.022) scaleY(1.006);
}

/* ── Punkt 6: Seiten Einblenden (experimentell) ── */

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page.active {
  animation: pageFadeIn 0.22s ease forwards;
}

/* ── Registrierung: Multi-Step ────────────────────────────────────────────── */

.regStep {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* OTP-Eingabe: 6 Einzelboxen ─────────────────────────────────────────────── */

.otpRow {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 28px 0 20px;
}

.otpDigit {
  width: 48px;
  height: 58px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #ffffff;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  caret-color: transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
  -moz-appearance: textfield;
}

.otpDigit::-webkit-outer-spin-button,
.otpDigit::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.otpDigit:focus {
  border-color: rgba(255, 106, 0, 0.85);
  background: rgba(255, 106, 0, 0.06);
  outline: none;
}

.otpDigit.filled {
  border-color: rgba(255, 255, 255, 0.28);
}

/* Info-Text über OTP ─────────────────────────────────────────────────────── */

.regCodeInfo {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  margin-bottom: 2px;
  line-height: 1.5;
  text-align: center;
}

.regCodeTarget {
  color: #ffffff;
  font-weight: 600;
}

/* Fehlermeldung ──────────────────────────────────────────────────────────── */

.regError {
  min-height: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #ff5757;
  margin-bottom: 12px;
  line-height: 1.4;
  text-align: center;
}

/* "Code erneut senden"-Button ────────────────────────────────────────────── */

.resendBtn {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 14px 0 0;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.28);
  cursor: not-allowed;
  transition: color 0.2s ease;
  text-align: center;
}

.resendBtn:not(:disabled) {
  color: rgba(255, 106, 0, 0.9);
  cursor: pointer;
}

.resendBtn:not(:disabled):hover {
  color: #ff6a00;
  text-decoration: underline;
}

/* Auth-Fehlermeldung im Login-Modal ──────────────────────────────────────── */

.loginError {
  min-height: 18px;
  font-size: 13px;
  font-weight: 500;
  color: #ff5757;
  margin-bottom: 12px;
  line-height: 1.4;
}

.loginError.ok {
  color: rgba(80, 210, 120, 0.9);
}

/* Passwort / E-Mail vergessen Links ──────────────────────────────────────── */

.loginForgotLinks {
  margin: 2px 0 16px;
  line-height: 1;
}

.loginForgotLink {
  display: inline;
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: color 0.15s ease;
}

.loginForgotLink:hover {
  color: rgba(255, 106, 0, 0.85);
}

.loginForgotLink:focus-visible {
  outline: none;
}

.loginForgotDot {
  display: inline;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.18);
  margin: 0 5px;
  user-select: none;
}

/* Gerät merken ──────────────────────────────────────────────────────────── */

.loginRememberDevice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  margin-bottom: 16px;
  user-select: none;
}

.loginRememberDevice:hover {
  color: rgba(255, 255, 255, 0.75);
}

.loginRememberDevice input[type="checkbox"] {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  accent-color: var(--orange, #ff6a00);
  cursor: pointer;
}

/* E-Mail Treffer Anzeige ─────────────────────────────────────────────────── */

.forgotEmailResult {
  background: rgba(255, 106, 0, 0.08);
  border: 1px solid rgba(255, 106, 0, 0.25);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.forgotEmailHint {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 6px;
}

.forgotEmailAddress {
  font-size: 16px;
  font-weight: 700;
  color: #ff6a00;
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE  —  MUSIK-SEITE
═══════════════════════════════════════════════════════════════════════════ */

/* ── Mobile Header (nur auf Mobilgeräten sichtbar) ──────────────────────── */

.mobileHeader {
  display: none;
  position: sticky;
  top: 0;
  z-index: 10;
  height: calc(56px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 12px 0;
  align-items: flex-end;
  gap: 10px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

.mobileHeaderTitle {
  flex: 1;
  font-size: 17px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.02em;
}

.mobileSearchBtn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.mobileSearchBtn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.mobileSearchBtn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ── Hamburger Button ───────────────────────────────────────────────────── */

.mobileMenuBtn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
  padding: 0;
  color: rgba(255, 255, 255, 0.75);
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.mobileMenuBtn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.mobileMenuBtn span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

html[data-mobile-nav="1"] .mobileMenuBtn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

html[data-mobile-nav="1"] .mobileMenuBtn span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

html[data-mobile-nav="1"] .mobileMenuBtn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Sidebar Backdrop ───────────────────────────────────────────────────── */

.sidebarBackdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

html[data-mobile-nav="1"] .sidebarBackdrop {
  opacity: 1;
  pointer-events: auto;
}

/* ── 1280px: Großes Tablet ──────────────────────────────────────────────── */

@media (max-width: 1280px) {
  .centerGlassRectangle {
    width: min(1200px, calc(100vw - 56px));
  }
}

/* ── 1100px ─────────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .volumeSlider         { width: 80px; }
  .playerProgress       { width: 360px; }
  .centerGlassRectangle { width: min(960px, calc(100vw - 56px)); }
}

/* ── 900px: Tablet ──────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .sidebar              { width: 220px; }
  .sidebarLogoImage     { width: 300px; }
  .sidebarNav           { padding-top: 110px; }
  .centerGlassRectangle { width: min(800px, calc(100vw - 240px)); }
  .playerProgress       { width: 280px; }
  .playerSongName       { max-width: 160px; }
  .playerArtistName     { max-width: 160px; }
  .volumeSlider         { width: 60px; }
  html[data-queue-open="1"] .queuePanel  { width: 320px; }
  html[data-queue-open="1"] .mainContent { margin-right: 320px; }
}

@media (max-width: 768px) {
  html {
    --mobile-bottom-inset: max(env(safe-area-inset-bottom, 0px), var(--vv-bottom-inset, 0px));
    height: 100%;
  }

  /* Body-Scrolling auf Mobile aktivieren.
     overflow:hidden im Basis-CSS dient nur dazu, Desktop-Seiteneffekte
     (z.B. horizontaler Überlauf durch die fixierte Suchleiste) zu vermeiden.
     Auf Mobile scrollen wir normal auf Body-Ebene — kein verschachtelter
     Scroll-Container, damit position:fixed (Sidebar, Playerleiste) korrekt
     funktioniert. */
  body {
    height: 100dvh;
    min-height: 100dvh;
    background-color: #020100;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body::before,
  body::after {
    bottom: calc(-1 * var(--mobile-bottom-inset));
  }

  /* App-Layout: einfache Spalte, volle Mindesthöhe */
  .app {
    flex-direction: column;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  /* Sidebar: Flex-Spalte — alle Inhalte im normalen Fluss */
  .sidebar {
    position: fixed;
    left: -300px;
    top: 0;
    bottom: 0;
    height: 100%;
    z-index: 100;
    width: 280px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.28s ease;
    /* Fester Hintergrund: backdrop-filter wird auf vielen Android-Browsern
       nicht unterstützt — ohne Fallback wäre die Sidebar fast transparent */
    background: rgba(12, 7, 2, 0.97);
    /* Abstand nach unten: Login-Button darf nicht hinter
       der fixierten Playerleiste (68px + 10px Abstand) verschwinden */
    padding-bottom: 90px;
  }

  /* Logo: Desktop-Trick (top:-120px) nicht für Mobile */
  .sidebarLogo {
    display: none;
  }

  /* Nav: füllt verfügbaren Raum, scrollt intern auf iOS & Android */
  .sidebarNav {
    flex: 1;
    min-height: 0;
    padding: 12px 0 8px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  /* Nav-Buttons: sofort auf Touch reagieren, kein 300ms-Scroll-Delay */
  .navButton {
    touch-action: manipulation;
  }

  /* Profil-Dropdown: position:absolute damit die Nav-Liste nicht
     zusammengedrückt wird. Klappt ÜBER die Nav-Buttons auf. */
  .profileMenuWrapper {
    position: absolute;
    /* bottom: padding(90) + login(70) + profile(70) = 230px
       → Wrapper-Unterseite liegt direkt über den Buttons */
    bottom: 230px;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
    /* eigener dunkler Hintergrund — sonst scheinen Nav-Buttons durch */
    background: rgba(10, 6, 2, 0.99);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 10;
  }

  html[data-profile-open="1"] .profileMenuWrapper {
    max-height: 300px;
  }

  /* Profil-Menü-Einträge: genauso strukturiert wie Desktop */
  .profileMenuItem {
    height: 52px;
    padding: 0 16px;
    font-size: 14px;
    touch-action: manipulation;
  }

  /* Login- und Profil-Button: immer am unteren Rand sichtbar,
     kein Scrollen nötig um sie zu erreichen */
  .sidebarLogin,
  .sidebarProfile {
    position: static;
    flex-shrink: 0;
    width: 100%;
    touch-action: manipulation;
  }

  .sidebarBackdrop {
    display: block;
  }

  html[data-mobile-nav="1"] .sidebar {
    left: 0;
    box-shadow: 8px 0 48px rgba(0, 0, 0, 0.75);
  }

  /* Backdrop deckt nur den Bereich RECHTS der Sidebar ab.
     Dadurch blockiert es niemals Klicks/Touches auf die Sidebar,
     egal welcher Stacking-Context gilt. */
  html[data-mobile-nav="1"] .sidebarBackdrop {
    left: 280px;
  }

  /* Mobile Header: sichtbar, klebt beim Scrollen oben */
  .mobileHeader {
    display: flex;
  }

  /* Desktop-Abstandhalter: ausgeblendet */
  .topBar {
    display: none;
  }

  /* Main Content: normaler Fluss, Body scrollt */
  .mainContent {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }

  /* Suchfeld: standardmäßig versteckt, Vollbild wenn aufgeklappt */
  .searchPanel {
    display: none;
  }

  html[data-search-expanded="1"] .searchPanel {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
    background: rgba(2, 1, 0, 0.98);
    transform: none;
    z-index: 50;
    border: none;
  }

  html[data-search-expanded="1"] .searchPanel .searchBox {
    height: 56px;
    padding: 0 16px;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(231, 170, 81, 0.45);
  }

  html[data-search-expanded="1"] .searchPanel .searchDropdown {
    height: calc(100dvh - 56px);
    border-color: transparent;
    overflow-y: auto;
    transition: none;
  }

  html[data-search-expanded="1"] .searchPanel .searchBackButton {
    display: flex;
  }

  .searchOverlayLeft,
  .searchOverlayRight {
    display: none;
  }

  /* Player Bar: volle Breite, kompakt */
  .centerGlassRectangle {
    width: calc(100vw - 16px);
    left: 8px;
    transform: none;
    bottom: env(safe-area-inset-bottom, 0px);
    border-radius: 16px;
    height: 68px;
    padding-bottom: 0;
    isolation: isolate;
  }

  .centerGlassRectangle::after {
    display: none;
  }

  .centerGlassRectangle:hover {
    transform: none;
  }

  .playerSongName   { max-width: 130px; font-size: 12px; }
  .playerArtistName { max-width: 130px; font-size: 10px; }

  .playerSongInfo { top: 34px; }

  .volumeControl    { display: none; }
  .queueButton      { display: none; }
  .playerModeButton { display: none; }

  /* Player-Steuerung: rechtsbündig */
  .playerCenter {
    position: absolute;
    left: auto;
    right: 14px;
    top: 0;
    bottom: var(--mobile-bottom-inset);
    transform: none;
    width: 118px;
    height: auto;
    display: flex;
    align-items: center;
  }

  .playerControls { gap: 8px; top: 50%; transform: translateY(-50%); }
  .playerButton   { width: 30px; height: 30px; }
  .playButton     { width: 32px; height: 32px; }

  /* Fortschrittsleiste: Bodenstreifen */
  .playerProgress {
    position: absolute;
    bottom: 8px;
    left: 14px;
    right: 14px;
    width: auto;
    transform: none;
    gap: 5px;
  }

  .playerTime { width: 26px; font-size: 10px; }

  /* Queue: Vollbild auf Mobilgeräten */
  .queuePanel                              { width: 100%; height: calc(100dvh + var(--mobile-bottom-inset)); max-height: calc(100dvh + var(--mobile-bottom-inset)); padding-bottom: var(--mobile-bottom-inset); }
  html[data-queue-open="1"] .mainContent   { margin-right: 0; }
  html[data-queue-open="1"] .centerGlassRectangle { left: 8px; }

  /* Seiteninhalte */
  .pageArea {
    padding: 20px 16px calc(100px + var(--mobile-bottom-inset));
    flex: 1;
  }

  .page h1 { font-size: 28px; }
  .page p  { font-size: 14px; }

  /* ── Login / Registrierung: Bottom-Sheet ─────────────────────────────── */
  /* Grid-Layout:
       Row 1 (1fr)  = dunkler Overlay-Bereich über dem Sheet
                      → Close-Button sitzt hier unten-rechts, direkt über dem Sheet
       Row 2 (auto) = der eigentliche Sheet-Inhalt                                */
  .loginModal {
    display: grid;
    grid-template-rows: 1fr auto;
    padding: 0;
  }

  /* X-Button: Grid-Teilnehmer in Row 1, klebt am unteren rechten Rand
     direkt ÜBER dem Sheet — immer sichtbar und tippbar */
  .loginModalClose {
    position: static;
    grid-row: 1;
    align-self: end;
    justify-self: end;
    margin: 0 16px 12px 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.14);
    top: auto;
    right: auto;
  }

  /* Sheet-Inhalt: scrollbar + max-Höhe */
  .loginModalInner {
    grid-row: 2;
    max-width: 100%;
    width: 100%;
    background: #0a0a0a;
    border-radius: 20px 20px 0 0;
    padding: 8px 20px 40px;
    transform: translateY(30px);
    overflow-y: auto;
    max-height: 88vh;
    -webkit-overflow-scrolling: touch;
  }

  .loginModal.open .loginModalInner {
    transform: translateY(0);
  }

  /* Drag-Handle oben */
  .loginModalInner::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 2px;
    margin: 10px auto 20px;
  }

  .registerModalInner {
    grid-row: 2;
    max-width: 100%;
    width: 100%;
    margin-top: 0;
    background: #0a0a0a;
    border-radius: 20px 20px 0 0;
    padding: 8px 20px 40px;
    overflow-y: auto;
    max-height: 88vh;
    -webkit-overflow-scrolling: touch;
  }

  .registerModalInner::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 2px;
    margin: 10px auto 20px;
  }

  #registerModal.regOtpMode {
    padding-top: 0;
  }

  /* Logo: korrekte Margins für Mobile (Skalierung 280px statt 370px).
     Basis-CSS hat margin-top/bottom: -162px für 370px → skaliert auf 280px:
       content-top bei 280px = 172.2 × (280/370) = 130px
       padding oben/unten: 10px
       → margin-top: -(130-10) = -120px
       → margin-bottom: -(280-130-20-10) = -120px
       → sichtbare Höhe: 280 - 120 - 120 = 40px  ✓
     margin-left: content-center 115px × (280/370) = 87px → calc(50% - 87px) */
  .loginModalLogo {
    width: 280px;
    margin-top: -120px;
    margin-bottom: -120px;
    margin-left: calc(50% - 87px);
  }

  .loginModalLogoWrap {
    overflow: hidden;
    margin-bottom: 20px;
  }

  /* Titel + Untertitel kompakter */
  .loginModalTitle {
    font-size: 22px;
    margin-bottom: 4px;
  }

  .loginModalSub {
    font-size: 13px;
    margin-bottom: 14px;
  }

  /* Eingabefelder: kompakter, aber gut tippbar (min. 44px) */
  .loginModalFields {
    gap: 10px;
    margin-bottom: 12px;
  }

  .loginModalInput {
    height: 46px;
    font-size: 15px;
    padding: 0 14px;
  }

  .loginModalInputWrap .loginModalInput {
    padding-right: 44px;
  }

  /* Actions-Buttons: volle Breite, gut tippbar */
  .loginModalActions {
    gap: 8px;
    margin-top: 14px;
    margin-bottom: 12px;
  }

  .loginModalSubmit,
  .loginModalRegister {
    flex: 1;
    min-height: 46px;
    font-size: 14px;
  }

  /* Divider */
  .loginModalDivider {
    margin: 14px 0;
    font-size: 12px;
  }

  /* Social-Buttons: kompakt, gut tippbar */
  .loginModalSocial {
    gap: 8px;
  }

  .loginModalSocialBtn {
    padding: 11px 12px;
    font-size: 13px;
    min-height: 44px;
    gap: 8px;
  }

  .loginModalSocialBtn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  /* "Gerät merken" — kompakter */
  .loginRememberDevice {
    margin: 10px 0 0;
    font-size: 12px;
    gap: 6px;
  }

  /* Passwort vergessen Links */
  .loginForgotLinks {
    margin: 8px 0;
    font-size: 12px;
  }

  /* Register: immer einSpaltig (alle Felder untereinander) */
  .registerFields {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* OTP-Code-Eingabe: größere Felder */
  .otpRow {
    gap: 8px;
    justify-content: center;
  }

  .otpDigit {
    width: 42px;
    height: 52px;
    font-size: 22px;
  }

  /* ── Player: fehlende Bedienelemente auf Mobile verfügbar machen ───────── */

  /* Playerleiste etwas höher für zusätzliche Controls */
  .centerGlassRectangle {
    height: calc(78px + var(--mobile-bottom-inset));
  }

  /* Shuffle/Repeat-Button anzeigen */
  .playerModeButton {
    display: flex;
    width: 26px;
    height: 26px;
  }

  /* Lautstärke: Mute-Button anzeigen, Slider ausgeblendet lassen */
  .volumeControl {
    display: flex;
    align-items: center;
    position: absolute;
    right: 168px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    padding: 0;
    gap: 0;
    width: auto;
    border: none;
  }

  .volumeSlider {
    display: none;
  }

  .volumeMuteButton {
    width: 28px;
    height: 28px;
  }

  .volumeIcon {
    width: 18px;
    height: 18px;
  }

  /* Song-Info: etwas schmaler damit Platz für Lautstärke-Button */
  .playerSongName   { max-width: 100px; }
  .playerArtistName { max-width: 100px; }

  /* Controls-Bereich: breiter für Mode-Button */
  .playerCenter {
    width: 155px;
  }

  .playerControls {
    gap: 5px;
  }

  .playerButton   { width: 28px; height: 28px; }
  .playButton     { width: 32px; height: 32px; }

  /* Fortschrittsleiste: mehr Abstand nach unten */
  .playerProgress {
    bottom: 9px;
  }
}

/* ── 480px: Kleines Handy ───────────────────────────────────────────────── */

@media (max-width: 480px) {
  .playerSongName       { max-width: 95px; }
  .playerArtistName     { max-width: 95px; }
  .centerGlassRectangle { border-radius: 14px; height: calc(64px + var(--mobile-bottom-inset)); }
  .playerSongInfo       { top: 32px; }
  .otpDigit             { width: 38px; height: 48px; font-size: 20px; }
  .otpRow               { gap: 6px; }
  .registerFields       { grid-template-columns: 1fr; }
  .searchBox input      { font-size: 14px; }
}
