/* ===================== */
/* BASIS */
/* ===================== */
* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skipLink {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 3000;
  padding: 10px 14px;
  border-radius: 6px;
  background: #fff;
  color: #000;
  font-weight: 800;
  transform: translateY(-150%);
}

.skipLink:focus {
  transform: translateY(0);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: #121212;
  color: white;
}

main {
  max-width: 1280px;
  margin: auto;
  padding: 24px 20px 20px;
  padding-bottom: 44px;
}

main.withSidebar {
  max-width: 1500px;
}

body.playerVisible main {
  padding-bottom: 120px;
}

h1 {
  font-size: 1.15rem;
  margin: 0;
  letter-spacing: 0;
}

h2 {
  margin-top: 40px;
  border-bottom: 1px solid #333;
  padding-bottom: 5px;
}

/* Links */
a {
  color: #1db954;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:where(a, button, input, summary):focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* ===================== */
/* HEADER / INTRO */
/* ===================== */
.siteHeader {
  background: #000;
  border-bottom: 1px solid #242424;
  position: sticky;
  top: 0;
  z-index: 900;
}

.siteHeaderInner {
  max-width: 1280px;
  margin: auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  min-width: 0;
}

.brandIcon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1db954;
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex: 0 0 auto;
}

.headerInfoLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #1db954;
  color: #000;
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.headerInfoLink:hover {
  background: #1ed760;
  color: #000;
  text-decoration: none;
}

.mainNav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mainNav a {
  color: #b3b3b3;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 999px;
}

.mainNav a:hover {
  color: white;
  background: #1f1f1f;
  text-decoration: none;
}

.menuToggle {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #1f1f1f;
  color: white;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.menuToggle span {
  position: relative;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.menuToggle span::before,
.menuToggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.menuToggle span::before {
  top: -6px;
}

.menuToggle span::after {
  top: 6px;
}

.noticeSection {
  background: #1f1f1f;
  border: 1px solid #333;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.35);
  color: #d6d6d6;
  padding: 22px;
  margin-bottom: 34px;
  position: relative;
  text-align: center;
}

.noticeSection h2 {
  border: none;
  margin: 0 0 12px;
  padding: 0;
  color: white;
}

.noticeSection p {
  margin: 0 0 8px;
  line-height: 1.5;
}

.noticeSection p:last-of-type {
  margin-bottom: 0;
}

.noticeActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.noticeButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #1db954;
  color: #000;
  font-weight: 700;
}

.noticeButton:hover {
  background: #1ed760;
  color: #000;
  text-decoration: none;
}

.noticeClose {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #b3b3b3;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.noticeClose:hover {
  background: #2a2a2a;
  color: white;
}

.noticeCollapsed {
  display: block;
  width: 100%;
  margin: 0 0 34px;
  padding: 12px 16px;
  border: 1px solid #333;
  border-radius: 8px;
  background: #1f1f1f;
  color: #b3b3b3;
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.noticeCollapsed[hidden] {
  display: none;
}

.noticeCollapsed:hover {
  color: white;
  border-color: #1db954;
}

#nutzungshinweise {
  margin-top: 42px;
}

.siteFooter {
  max-width: 1280px;
  margin: 38px auto 92px;
  padding: 22px 0 0;
  border-top: 1px solid #242424;
  color: #8f8f8f;
}

.footerLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: center;
}

.footerLinks a {
  color: #b3b3b3;
  font-size: 0.92rem;
  font-weight: 700;
}

.footerLinks a:hover {
  color: #1db954;
  text-decoration: none;
}

.legalSection {
  max-width: 860px;
  margin: 34px auto 0;
  text-align: left;
}

.legalSection h2 {
  text-align: center;
}

.legalBack {
  display: inline-flex;
  margin-bottom: 18px;
  color: #1db954;
  font-weight: 700;
}

/* ===================== */
/* GRID / CARDS */
/* ===================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.topSongsGrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.appShell {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.accountSidebar {
  position: sticky;
  top: 86px;
  align-self: start;
  min-width: 0;
}

.contentColumn {
  min-width: 0;
}

.accountSidebar .authPanel,
.accountSidebar .adminPanel {
  margin-bottom: 16px;
}

.accountMenu {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid #282828;
  border-radius: 8px;
  background: #181818;
}

.accountMenu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 6px;
  color: #b3b3b3;
  font-weight: 800;
}

.accountMenu a:hover,
.accountMenu a.active {
  background: #282828;
  color: white;
  text-decoration: none;
}

.accountMenu i {
  width: 18px;
  color: #1db954;
  text-align: center;
}

.card {
  background: #181818;
  border-radius: 10px;
  padding: 15px;
  transition: 0.2s;
}
.card {
  display: flex;
  flex-direction: column;
}
.card:hover {
  background: #282828;
  transform: translateY(-3px);
}

/* ===================== */
/* COVER */
/* ===================== */
.cover {
  position: relative;
  height: 180px;
  background: #333;
  border-radius: 8px;
  overflow: hidden;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* &#9654;ÃƒÂ¯Ã‚Â¸Ã‚Â Play Button im Cover */
.playBtn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1db954;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 20px;
  color: black;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.2s;
}

.cover:hover .playBtn {
  opacity: 1;
  transform: translateY(0);
}

.playBtn:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ÃƒÂ¢Ã‚ÂÃ‚Â¤ÃƒÂ¯Ã‚Â¸Ã‚Â Favorit */
.favBtn {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 18px;
  color: white;
  cursor: pointer;

  display: none;
}
.chip.special {
  background: gold;
  color: black;
}
/* ===================== */
/* TEXT */
/* ===================== */
.title {
  font-weight: bold;
  margin-top: 10px;
  line-height: 1.2;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

  overflow: hidden;

  min-height: 2.4em; /* 👈 FIX */
}
.meta {
  font-size: 0.85rem;
  color: #aaa;
  line-height: 1.2;

  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;

  overflow: hidden;

  min-height: 1.2em; /* 👈 FIX */
}

@media (max-width: 600px) {
  .title {
    font-size: 0.85rem;
  }
}
/* ===================== */
/* PROGRESS (KARTE) */
/* ===================== */
.progress {
  width: 100%;
  height: 4px;
  background: #333;
  margin-top: 8px;
  border-radius: 2px;
  overflow: hidden;
}

.progressBar {
  height: 100%;
  width: 0%;
  background: #1db954;
}

/* ===================== */
/* BUTTONS */
/* ===================== */
.btn {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 12px;
  background: #1db954;
  color: black;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #1ed760;
}

.downloadBtn {
  display: none;
}

.card.playing .downloadBtn {
  display: inline-flex;
}

.playlistBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
}

.downloadBtn {
  align-items: center;
  gap: 8px;
}

.coverFallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #b3b3b3;
  font-size: 2rem;
}

.playlistBtn.active {
  background: white;
  color: black;
}

.playlistHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 12px;
}

.playlistHeader h2 {
  margin: 0;
}

.playlistControls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.roundPlayBtn {
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: #1db954;
  color: #000;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.roundPlayBtn:hover {
  background: #1ed760;
}

.roundPlayBtn i {
  font-size: 1.35rem;
}

.roundPlayBtn:disabled,
.playlistShuffleBtn:disabled {
  opacity: 0.45;
  cursor: default;
}

.playlistShuffleBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
}

/* ===================== */
/* PLAYER BAR */
/* ===================== */
#playerBar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: #181818;
  border-top: 1px solid #282828;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
}

#playerBar[hidden] {
  display: none;
}

/* LEFT */
.playerLeft {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 25%;
}

.playerCover {
  width: 56px;
  height: 56px;
  background: #333;
  border-radius: 4px;
  overflow: hidden;
}

.playerCover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CENTER */
.playerCenter {
  display: flex;
  align-items: center;
  gap: 15px;
}

.playerCenter button {
  background: none;
  border: none;
  color: #b3b3b3;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.playerCenter button i {
  font-size: 1.15rem;
}

.playerCenter button:hover {
  color: white;
}

/* &#9654;ÃƒÂ¯Ã‚Â¸Ã‚Â MAIN PLAY BUTTON */
.playerDownload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #b3b3b3;
  text-decoration: none;
}

.playerDownload i {
  font-size: 1rem;
}

.playerDownload:hover {
  background: #282828;
  color: white;
}

.playerDownload[aria-disabled="true"] {
  opacity: 0.35;
  pointer-events: none;
}

.playMain {
  background: white;
  color: black;
  border-radius: 50%;
  width: 48px;
  height: 48px;
}

.playMain i {
  font-size: 1.25rem;
}

/* RIGHT */
.playerRight {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 30%;
}

.progressWrapper {
  flex: 1;
}

.progressTrack {
  height: 4px;
  background: #535353;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}

#progressBar {
  height: 100%;
  width: 0%;
  background: #1db954;
}

/* ===================== */
/* PLAYING STATE */
/* ===================== */
.card.playing {
  outline: 2px solid #1db954;
  box-shadow: 0 0 15px rgba(29,185,84,0.5);
}

/* ===================== */
/* SEARCH */
/* ===================== */
input {
  width: 100%;
  padding: 12px;
  margin: 0;
  border-radius: 8px;
  border: 1px solid #333;
  background: #222;
  color: white;
  font-size: 1rem;
  line-height: 1.2;
  outline: none;
}

input::placeholder {
  color: #aaa;
  font-size: 1rem;
}

input:focus {
  border-color: #1db954;
  box-shadow: 0 0 0 3px rgba(29,185,84,0.18);
}

input[type="checkbox"] {
  width: auto;
  padding: 0;
  margin: 0;
  accent-color: #1db954;
  box-shadow: none;
}

.authPanel,
.adminPanel {
  background: #181818;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 28px;
}

.authPanel[hidden] {
  display: none;
}

.authPanel.authModal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,0.72);
  border: none;
  border-radius: 0;
  margin: 0;
}

.authPanel.authModal[hidden] {
  display: none;
}

.authModalBox {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: #181818;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.55);
}

.authClose {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #b3b3b3;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.authClose:hover {
  background: #282828;
  color: white;
}

.authModal .formGrid {
  grid-template-columns: 1fr;
}

.authPanel h2,
.adminPanel h2 {
  border: none;
  margin: 0 0 12px;
  padding: 0;
}

.formGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: end;
}

.formField {
  display: grid;
  gap: 6px;
  color: #b3b3b3;
  font-size: 0.9rem;
  min-width: 0;
}

.passwordField {
  display: block;
  position: relative;
}

.passwordField input {
  min-width: 0;
  padding-right: 46px;
  width: 100%;
}

.passwordToggle {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #b3b3b3;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.passwordToggle:hover {
  background: #2a2a2a;
  color: white;
}

.passwordToggle i {
  font-size: 1rem;
  pointer-events: none;
}

.formMessage {
  color: #ff7676;
  margin: 0 0 12px;
}

.authDivider {
  height: 1px;
  background: #333;
  margin: 18px 0;
}

.authSwitch {
  color: #b3b3b3;
  margin: 14px 0 0;
  text-align: center;
}

.authSwitch button {
  border: none;
  background: transparent;
  color: #1db954;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0;
}

.authSwitch button:hover {
  color: #1ed760;
  text-decoration: underline;
}

.registerPanel[hidden] {
  display: none;
}

.authStatus {
  color: #b3b3b3;
  margin: 0 0 16px;
}

.folderOptions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 10px 0 14px;
}

.folderOptions label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d6d6d6;
  font-size: 0.9rem;
}

.termsField {
  align-self: center;
}

.termsField span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d6d6d6;
}

.termsConsent {
  display: grid;
  gap: 8px;
  color: #b3b3b3;
  font-size: 0.88rem;
  line-height: 1.45;
}

.termsConsent label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d6d6d6;
}

.termsConsent p {
  margin: 0;
}

.userAdminItem {
  border-top: 1px solid #333;
  padding-top: 14px;
  margin-top: 14px;
}

.userAdminItem summary {
  cursor: pointer;
  color: white;
  font-weight: 700;
  list-style-position: inside;
}

.userAdminBody {
  margin-top: 14px;
}

.adminActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.adminStats {
  margin-top: 0;
}

.adminStats h2 {
  font-size: 1.1rem;
}

.statsTableWrap {
  overflow-x: auto;
  margin-top: 14px;
}

.statsTable {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  color: #d6d6d6;
  font-size: 0.92rem;
}

.statsTable th,
.statsTable td {
  padding: 10px 12px;
  border-bottom: 1px solid #2a2a2a;
  text-align: left;
  vertical-align: top;
}

.statsTable th {
  color: white;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.statsTable td:nth-child(3),
.statsTable td:nth-child(4) {
  width: 110px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.statsTable span {
  display: block;
  color: #9f9f9f;
  margin-top: 3px;
}

.searchIntro {
  color: #aaa;
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 10px 0 14px;
}

.searchBox {
  position: relative;
  margin-bottom: 16px;
}

.searchBox i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #b3b3b3;
  pointer-events: none;
}

.searchBox input {
  padding-left: 42px;
}

/* ===================== */
/* MOBILE */
/* ===================== */
@media (max-width: 600px) {

  .siteHeaderInner {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand {
    flex: 1 1 auto;
    order: 1;
  }

  h1 {
    font-size: 1rem;
  }

  .headerInfoLink {
    order: 3;
    flex: 1 0 100%;
  }

  .menuToggle {
    display: inline-flex;
    order: 2;
  }

  .mainNav {
    display: none;
    flex-basis: 100%;
    order: 4;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding-top: 8px;
  }

  .mainNav a {
    padding: 10px 12px;
  }

  .siteHeader.menuOpen .mainNav {
    display: flex;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .appShell {
    display: block;
  }

  .accountSidebar {
    position: static;
  }

  .playerLeft {
    display: none;
  }

  .playerRight {
    display: none;
  }

  #playerBar {
     justify-content: space-between;
  }

  .playBtn {
    opacity: 1;
    transform: none;
  }
}
.filters {
  display: block;
  margin-bottom: 10px;
}
.chipGroup {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: #222;
  color: white;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  border: 1px solid #333;
}

.chip:hover {
  background: #333;
}

.chip.active {
  background: #1db954;
  color: black;
  border-color: #1db954;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.resetBtn {
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #333;
  color: white;
  border: none;
  cursor: pointer;
}

.resetBtn:hover {
  background: #555;
}
.resetBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  background: #333;
  color: white;
  border: none;
  cursor: pointer;
  height: 36px;
}

.resetBtn:hover {
  background: #555;
}
@media (max-width: 600px) {

  #playerBar {
    height: 60px;
    padding: 8px 10px;
  }

  /* Links kompakter */
  .playerLeft {
    display: flex;
    gap: 8px;
    width: auto;
  }

  .playerCover {
    width: 40px;
    height: 40px;
  }

  #nowPlaying {
    font-size: 0.85rem;
  }

  #nowArtist {
    font-size: 0.7rem;
    color: #aaa;
  }

  /* Mitte: nur Play */
  .playerCenter {
    gap: 10px;
  }

.playerCenter button {
  display: flex;
}

.playerCenter button i {
  font-size: 1.05rem;
}

  .playMain {
    width: 42px;
    height: 42px;
  }

  /* Rechts komplett aus */
  .playerRight {
    display: none;
  }

}
@media (max-width: 600px) {

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }

  .topSongsGrid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .card {
    padding: 10px;
  }

  .cover {
    height: 120px;
  }

  .title {
    font-size: 0.9rem;
  }

  .meta {
    font-size: 0.75rem;
  }

  .playBtn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

}
@media (max-width: 600px) {

  h2 {
    font-size: 1.2rem;
  }

}
