/**
 * ============================================================
 * Nossmann Music Player – player_6.css (Strikte Tabellenstruktur)
 * ============================================================
 */

/* Modal Backdrop & Overlay */
.nmp-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nmp-modal-backdrop.nmp-active {
  opacity: 1;
  pointer-events: auto;
}

.nmp-modal-content {
  position: relative;
  background: #1a1a1a;
  border-radius: 12px;
  padding: 30px 20px 20px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: 95vw;
  width: 750px;
  box-sizing: border-box;
  transform: translate(0px, 0px) scale(1);
}

.nmp-modal-handle {
  position: absolute;
  top: 10px;
  left: 15px;
  cursor: grab;
  font-size: 16px;
  color: #888;
  user-select: none;
  z-index: 10;
}

.nmp-modal-handle:active {
  cursor: grabbing;
}

.nmp-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: #333;
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 10;
  transition: background 0.2s;
}

.nmp-modal-close:hover {
  background: #ffba00;
  color: #000;
}

.nmp-modal-content .nmp-player-wrapper {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  grid-template-rows: auto auto auto;
  gap: 10px 15px;
  align-items: center;
  color: #fff;
  font-family: inherit;
  margin-top: 5px;
}

.nmp-modal-content .nmp-cover {
  grid-row: span 2;
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  background: #333;
  cursor: pointer;
}

.nmp-modal-content .nmp-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nmp-modal-content .nmp-info {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

.nmp-modal-content .nmp-title {
  font-weight: bold;
  font-size: 16px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nmp-modal-content .nmp-sub-row {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: #aaa;
  gap: 2px;
}

.nmp-modal-content .nmp-genre {
  font-weight: bold;
  color: #ffba00;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nmp-modal-content .nmp-artist {
  color: #ccc;
}

.nmp-modal-content .nmp-center-meta {
  grid-column: 2 / 4;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 12px;
}

.nmp-modal-content .nmp-stat-box {
  display: flex;
  gap: 5px;
  color: #888;
}

.nmp-modal-content .nmp-stat-box .nmp-plays-val,
.nmp-modal-content .nmp-stat-box .nmp-downloads-val {
  color: #fff;
  font-weight: 500;
}

.nmp-modal-content .nmp-time-box {
  background: #111;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #333;
  display: flex;
  gap: 6px;
}

.nmp-modal-content .nmp-timer-val {
  color: #ffba00;
  font-family: monospace;
  font-weight: bold;
}

.nmp-modal-content .nmp-controls {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.nmp-modal-content .nmp-btn {
  background: #f0f0f0;
  border: none;
  color: #111;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.nmp-modal-content .nmp-btn:hover {
  background: #ffba00;
  color: #000;
}

.nmp-modal-content .nmp-wave-container {
  grid-column: 1 / 4;
  grid-row: 3;
  width: 100%;
  height: 30px;
  background: #111;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 5px;
}

.nmp-wave-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================================
   INLINE-PLAYER
============================================================ */
#music-root {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

#music-root .nmp-player-wrapper {
  background: #2b2b2b;
  border: 1px solid #383838;
  border-radius: 8px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  grid-template-areas: 
    "cover info center controls"
    "cover desc desc desc";
  align-items: center;
  gap: 8px 16px;
  color: #fff;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

#music-root .nmp-player-wrapper:hover {
  border-color: #555;
}

#music-root .nmp-cover {
  grid-area: cover;
  width: 80px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
  background: #1a1a1a;
  cursor: pointer;
  flex-shrink: 0;
  align-self: start;
}

#music-root .nmp-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#music-root .nmp-info {
  grid-area: info;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

#music-root .nmp-title {
  font-weight: bold;
  font-size: 15px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

#music-root .nmp-sub-row {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: #999;
  gap: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#music-root .nmp-genre {
  font-weight: bold;
  color: #ddd;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

#music-root .nmp-artist {
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#music-root .nmp-center-meta {
  grid-area: center;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: #888;
  background: transparent;
  padding: 0;
  white-space: nowrap;
}

#music-root .nmp-stat-box:nth-of-type(1),
#music-root .nmp-stat-box:nth-of-type(2) {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

#music-root .nmp-plays-val,
#music-root .nmp-downloads-val {
  color: #fff;
  font-weight: 500;
}

#music-root .nmp-time-box {
  background: #171717;
  border: 1px solid #282828;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  color: #888;
  white-space: nowrap;
}

#music-root .nmp-timer-val {
  color: #fff;
  font-weight: bold;
}

#music-root .nmp-controls {
  grid-area: controls;
  display: flex;
  align-items: center;
  gap: 8px;
}

#music-root .nmp-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: #10b981 !important;
  color: #ffffff !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 14px !important;
  transition: background 0.2s ease, transform 0.2s ease !important;
  padding: 0 !important;
}

#music-root .nmp-btn:hover {
  background: #059669 !important;
  transform: scale(1.08) !important;
}

/* Eigene volle Reihe unten für den verlängerten Text */
#music-root .nmp-description {
  grid-area: desc;
  font-size: 12px;
  color: #aaa;
  white-space: normal;
  word-break: break-word;
  border-top: 1px solid #383838;
  padding-top: 8px;
  margin-top: 2px;
}

/* Tooltip-Styling für die Buttons */
#music-root [data-tooltip] {
  position: relative;
}

#music-root [data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f1f1f;
  color: #ffffff;
  border: 1px solid #333333;
  padding: 5px 10px;
  font-size: 11px;
  font-family: inherit;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

#music-root .nmp-wave-container {
  display: none;
}

/* Beschreibung als schöner Tooltip bei Hover über den Player */
#music-root .nmp-player-wrapper[data-tooltip-desc]:hover::before {
  content: attr(data-tooltip-desc);
  position: absolute;
  bottom: 105%;
  left: 14px;
  right: 14px;
  background: #1f1f1f;
  color: #ffffff;
  border: 1px solid #444;
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 6px;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
  white-space: normal;
  line-height: 1.4;
}

/* ============================================================
   TOP 5 & NEUESTE LISTEN UNTEN (Master-Tabellen-Struktur)
============================================================ */

.nmp-stats-tables-container, 
.stats-tables-wrapper,
.footer-lists-grid {
  display: block !important;
  width: 100% !important;
  margin-top: 35px !important;
  box-sizing: border-box !important;
}

/* Master-Tabelle (Erzwingt genau 1 Zeile mit 3 Haupt-Spalten nebeneinander) */
.nmp-stats-tables-container > table, 
.stats-tables-wrapper > table, 
.footer-lists-grid > table,
.nmp-master-table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 20px 0 !important; /* Abstand zwischen den 3 Boxen */
  table-layout: fixed !important;
  margin: 0 !important;
  display: table !important;
}

.nmp-stats-tables-container > table > tr, 
.stats-tables-wrapper > table > tr, 
.footer-lists-grid > table > tr,
.nmp-master-row {
  display: table-row !important;
}

/* Die 3 Hauptspalten (td), die jeweils eine komplette Box darstellen */
.nmp-stats-tables-container > table > tr > td, 
.stats-tables-wrapper > table > tr > td, 
.footer-lists-grid > table > tr > td,
.nmp-master-cell {
  display: table-cell !important;
  width: 33.333% !important;
  vertical-align: top !important;
  padding: 0 !important;
  float: none !important;
}

/* Das Design der Boxen in den Hauptspalten */
#nmp-newest-list, 
#nmp-top-plays-list, 
#nmp-top-downloads-list,
.nmp-table-box,
.footer-lists-grid td > div {
  background: #555555 !important;
  border: 1px solid #262626 !important;
  border-radius: 10px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  overflow: hidden !important; /* Hält den Footer sauber in den abgerundeten Ecken */
}

/* Inhaltlicher Padding-Bereich oben in der Box */
.nmp-widget-content {
  padding: 18px 20px 0 20px !important;
}

/* Überschriften */
#nmp-newest-list h3, 
#nmp-top-plays-list h3, 
#nmp-top-downloads-list h3,
.nmp-table-box h3,
.footer-lists-grid h3 {
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: bold !important;
  margin-top: 0 !important;
  margin-bottom: 14px !important;
  border-bottom: 1px solid #2a2a2a !important;
  padding-bottom: 10px !important;
}

/* Die Innentabellen für die Titelzeilen */
#nmp-newest-list table:not(.nmp-master-table), 
#nmp-top-plays-list table:not(.nmp-master-table), 
#nmp-top-downloads-list table:not(.nmp-master-table),
.nmp-table-box table:not(.nmp-master-table) {
  width: 100% !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  table-layout: fixed !important;
  display: table !important;
}

#nmp-newest-list tr, 
#nmp-top-plays-list tr, 
#nmp-top-downloads-list tr,
.nmp-table-box tr {
  display: table-row !important;
  border-bottom: 1px solid #222222;
  transition: background 0.15s;
}

#nmp-newest-list tr:last-child, 
#nmp-top-plays-list tr:last-child, 
#nmp-top-downloads-list tr:last-child,
.nmp-table-box tr:last-child {
  border-bottom: none;
}

#nmp-newest-list tr:hover td, 
#nmp-top-plays-list tr:hover td, 
#nmp-top-downloads-list tr:hover td,
.nmp-table-box tr:hover td {
  background: #000000 !important;
  cursor: pointer;
}

#nmp-newest-list tr:hover td:first-child, 
#nmp-top-plays-list tr:hover td:first-child, 
#nmp-top-downloads-list tr:hover td:first-child,
.nmp-table-box tr:hover td:first-child {
  border-top-left-radius: 4px !important;
  border-bottom-left-radius: 4px !important;
}

#nmp-newest-list tr:hover td:last-child, 
#nmp-top-plays-list tr:hover td:last-child, 
#nmp-top-downloads-list tr:hover td:last-child,
.nmp-table-box tr:hover td:last-child {
  border-top-right-radius: 4px !important;
  border-bottom-right-radius: 4px !important;
}

/* Die 3 Spalten (td) pro Song-Zeile */
.nmp-col-badge {
  display: table-cell !important;
  width: 32px !important;
  color: #ffba00 !important;
  font-weight: bold !important;
  padding: 9px 4px !important;
  font-size: 13px !important;
  vertical-align: middle !important;
}

.nmp-col-title {
  display: table-cell !important;
  width: 100% !important;
  max-width: 150px !important;
  text-align: left !important;
  padding: 9px 8px !important;
  color: #dddddd !important;
  font-size: 13px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  vertical-align: middle !important;
}

.nmp-col-meta {
  display: table-cell !important;
  width: 95px !important;
  text-align: right !important;
  color: #ffffff !important;
  padding: 9px 4px !important;
  font-size: 12px !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: normal !important;
}

/* Styling für die Statistik-Footer am Ende der Boxen */
.nmp-stats-footer {
  margin-top: 15px;
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-size: 13px;
  color: #d0d0d0;
  letter-spacing: 0.3px;
}

/* Responsive Fallback für kleine Bildschirme */
@media (max-width: 900px) {
  .nmp-stats-tables-container > table, 
  .stats-tables-wrapper > table, 
  .footer-lists-grid > table,
  .nmp-master-table {
    display: block !important;
  }
  .nmp-stats-tables-container tr, 
  .stats-tables-wrapper tr, 
  .footer-lists-grid tr,
  .nmp-master-row {
    display: block !important;
  }
  .nmp-stats-tables-container td, 
  .stats-tables-wrapper td, 
  .footer-lists-grid td,
  .nmp-master-cell {
    display: block !important;
    width: 100% !important;
    margin-bottom: 15px !important;
  }
}



/* ============================================================
   PULLDOWN-MENÜ & GLOBALE AKTIONS-BUTTONS (Oben)
============================================================ */
.nmp-global-controls,
.nmp-actions-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

#nmp-sort-select {
  background: #1a1a1a;
  border: 1px solid #333;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

#nmp-sort-select:hover,
#nmp-sort-select:focus {
  border-color: #ffba00;
}

#nmp-btn-play-all,
#nmp-btn-shuffle,
.nmp-global-btn {
  background: #222;
  border: 1px solid #333;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

#nmp-btn-play-all:hover,
#nmp-btn-shuffle:hover,
.nmp-global-btn:hover {
  background: #ffba00;
  border-color: #ffba00;
  color: #000;
  font-weight: 500;
}

/* Stellt sicher, dass die Top-5-Sektion als Container nebeneinander greift */
.nmp-stats-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.nmp-stat-column {
  flex: 1;
  box-sizing: border-box;
}

/* Responsiv für kleinere Bildschirme (optional, falls es auf Handys untereinander soll) */
@media (max-width: 768px) {
  .nmp-stats-container {
    flex-direction: column;
  }
}

/* Hauptcontainer für den Steuerungsbereich oben */
.nmp-controls-top-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  background: #555555;
  padding: 15px;
  border-radius: 8px;
  box-sizing: border-box;
  margin-bottom: 20px;
}

/* Pulldown Menü bündig innerhalb des Containers */
.nmp-sort-select {
  width: calc(100% - 30px); /* berücksichtigt das Padding links/rechts */
  margin: 0 auto;
  padding: 12px 15px;
  background: #2a2a2a;
  color: #fff;
  border: 1px solid #3d3d3d;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  cursor: pointer;
  display: block;
}

/* Wrapper für die beiden Buttons in einer Zeile */
.nmp-buttons-row {
  display: flex;
  width: calc(100% - 30px); /* gleiche Breite wie das Pulldown-Menü */
  margin: 0 auto;
  gap: 0px;                /* Abstand nur zwischen den Buttons */
}

/* Beide Buttons teilen sich exakt den Platz */
.nmp-action-btn {
  flex: 1;
  padding: 10px 10px;
  background: #2a2a2a;
  color: #fff;
  border: 1px solid #3d3d3d;
  border-radius: 14px;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.2s;
}

.nmp-action-btn:hover {
  background: #353535;
}


/* Pagination / Seitennavigation im selben schicken Dark-Style */
.nmp-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-family: inherit;
  color: #ccc;
}

.nmp-pagination button, 
.nmp-pagination .nmp-page-item {
  background: #2a2a2a;
  color: #fff;
  border: 1px solid #3d3d3d;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.nmp-pagination button:hover,
.nmp-pagination .nmp-page-item:hover {
  background: #353535;
}

.nmp-pagination .active {
  background: #ffba00; /* Oder deine Akzentfarbe */
  color: #000;
  border-color: #ffba00;
  font-weight: bold;
}

/* Zentrierter Pagination-Container im einheitlichen Look */
.nmp-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 25px 0;
  width: 100%;
}

/* Einheitlicher Button- und Seitenzahlen-Style */
.nmp-page-item {
  background: #2a2a2a !important;
  color: #fff !important;
  border: 1px solid #3d3d3d !important;
  padding: 10px 14px !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  box-sizing: border-box;
}

.nmp-page-item:hover:not(:disabled) {
  background: #353535 !important;
  border-color: #555 !important;
}

/* Aktive Seite im gewohnten Akzent-Look */
.nmp-page-item.active {
  background: #ffba00 !important;
  color: #000 !important;
  border-color: #ffba00 !important;
  font-weight: bold;
}

/* Haupt-Wrapper des Player-Fensters */
.nmp-player-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  position: relative;
  box-sizing: border-box;
}

/* 1. Cover links */
.nmp-cover {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
}

.nmp-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 2. Titel und Infos daneben */
.nmp-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
  min-width: 180px;
}

.nmp-title {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 4px;
}

.nmp-sub-row {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #aaa;
}

.nmp-genre {
  color: #ffba00;
  font-weight: 600;
  text-transform: uppercase;
}

/* 3. Statistiken und Timer in der Mitte */
.nmp-center-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 13px;
  color: #ccc;
  margin-left: auto;
  margin-right: auto;
}

.nmp-stat-box, .nmp-time-box {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nmp-stat-label {
  color: #888;
}

.nmp-time-box {
  background: #111;
  border: 1px solid #333;
  padding: 4px 8px;
  border-radius: 4px;
}

/* 4. Steuerungsknöpfe rechts */
.nmp-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.nmp-btn {
  background: #f0f0f0;
  color: #111;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.nmp-btn:hover {
  background: #ffba00;
}

/* 5. Waveform-Container unten über die volle Breite */
.nmp-wave-container {
  width: 100%;
  height: 26px;
  background: #111;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 5px;
}

.nmp-wave-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Vorschaubild und Layout im Lightbox-Modal-Player anpassen */
.nmp-modal-content .nmp-player-wrapper {
  display: grid !important;
  grid-template-columns: 80px 1fr !important;
  grid-template-rows: auto auto auto auto !important;
  gap: 12px 15px !important;
}

/* Vorschaubild ganz nach oben links */
.nmp-modal-content .nmp-cover {
  grid-column: 1 !important;
  grid-row: 1 / 3 !important;
  width: 80px !important;
  height: 80px !important;
}

/* Titel und Infos rechts neben das Bild */
.nmp-modal-content .nmp-info {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

/* Steuerungsbuttons (Play, Skip etc.) in die nächste Zeile oder passend daneben */
.nmp-modal-content .nmp-controls {
  grid-column: 2 !important;
  grid-row: 2 !important;
  justify-content: flex-start !important;
}

/* Statistiken und Timer darunter */
.nmp-modal-content .nmp-center-meta {
  grid-column: 1 / 3 !important;
  grid-row: 3 !important;
}

/* Waveform ganz unten */
.nmp-modal-content .nmp-wave-container {
  grid-column: 1 / 3 !important;
  grid-row: 4 !important;
}

/* Vorschaubild und Layout im Lightbox-Modal-Player anpassen */
.nmp-modal-content .nmp-player-wrapper {
  display: grid !important;
  grid-template-columns: 80px 1fr auto !important;
  grid-template-rows: auto auto auto !important;
  gap: 12px 15px !important;
  align-items: center !important;
}

.nmp-modal-content .nmp-cover {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 80px !important;
  height: 80px !important;
}

.nmp-modal-content .nmp-info {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

.nmp-modal-content .nmp-controls {
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-content: flex-end !important;
}

.nmp-modal-content .nmp-center-meta {
  grid-column: 1 / 4 !important;
  grid-row: 2 !important;
  justify-content: center !important;
}

.nmp-modal-content .nmp-wave-container {
  grid-column: 1 / 4 !important;
  grid-row: 3 !important;
}

/* Deutlicherer Hover-Effekt mit stärkerem Schatten und hellerem Hintergrund */
#music-root .nmp-player-wrapper {
  transition: all 0.2s ease !important;
}

#music-root .nmp-player-wrapper:hover {
  background: #3c3c3c !important;
  border-color: #ffba00 !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6) !important;
  transform: translateY(-2px);
}

/* Deutlichere farbliche Unterschiede im Grauton für gerade und ungerade Tracks */
#music-root .nmp-player-wrapper:nth-child(odd) {
  background: #282828 !important;
}

#music-root .nmp-player-wrapper:nth-child(even) {
  background: #191919 !important;
}

/* ============================================================
    LIGHTBOX PLAYER - CONTROLS, BUTTONS & TOOLTIPS
============================================================ */

/* Tooltips für alle Lightbox-Controls aktivieren */
.nmp-modal-backdrop [data-tooltip],
.nmp-modal-content [data-tooltip],
.nmp-modal-player [data-tooltip],
.nmp-modal-container [data-tooltip],
.lightbox [data-tooltip] {
  position: relative;
}

.nmp-modal-backdrop [data-tooltip]:hover::after,
.nmp-modal-content [data-tooltip]:hover::after,
.nmp-modal-player [data-tooltip]:hover::after,
.nmp-modal-container [data-tooltip]:hover::after,
.lightbox [data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f1f1f;
  color: #ffffff;
  border: 1px solid #333333;
  padding: 5px 10px;
  font-size: 11px;
  font-family: inherit;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Genereller metallischer Look & 3D-Effekt im Kassettendeck-Stil für alle Lightbox-Buttons */
.nmp-modal-backdrop button,
.nmp-modal-content button,
.nmp-modal-player button,
.nmp-modal-container button {
  background: linear-gradient(135deg, #4a4a4a 0%, #2b2b2b 50%, #1a1a1a 100%) !important;
  border: 1px solid #555555 !important;
  border-top-color: #666666 !important;
  border-bottom-color: #111111 !important;
  color: #e0e0e0 !important;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -2px 3px rgba(0, 0, 0, 0.4) !important;
}

.nmp-modal-backdrop button:hover,
.nmp-modal-content button:hover,
.nmp-modal-player button:hover,
.nmp-modal-container button:hover {
  background: linear-gradient(135deg, #555555 0%, #333333 50%, #222222 100%) !important;
  transform: translateY(-2px) scale(1.04) !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -2px 3px rgba(0, 0, 0, 0.5) !important;
}

.nmp-modal-backdrop button:active,
.nmp-modal-content button:active,
.nmp-modal-player button:active,
.nmp-modal-container button:active {
  background: linear-gradient(135deg, #1c1c1c 0%, #2a2a2a 100%) !important;
  transform: translateY(2px) scale(0.97) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.6) !important;
}

/* Speziell für den Play- und Download-Button in der Lightbox:
    Kreisrund, Metall-Look beibehalten, aber das Symbol in Rot */
.nmp-modal-content .nmp-modal-play-btn,
.nmp-modal-content .nmp-modal-download-btn,
.nmp-modal-player .nmp-modal-play,
.nmp-modal-player .nmp-modal-download,
.nmp-modal-container .nmp-play-btn,
.nmp-modal-container .nmp-download-btn {
  border-radius: 50% !important;
}

.nmp-modal-content .nmp-modal-play-btn .nmp-icon,
.nmp-modal-content .nmp-modal-download-btn .nmp-icon,
.nmp-modal-player .nmp-modal-play span,
.nmp-modal-player .nmp-modal-download span,
.nmp-modal-player .nmp-modal-play,
.nmp-modal-player .nmp-modal-download {
  color: #ef4444 !important; /* Kräftiges Rot für das Symbol */
}

/* Lightbox: Modal Content Container muss relativ sein für absolute Platzierung */
.nmp-modal-content {
  position: relative !important;
}

/* Verschiebe-Hand oben links */
.nmp-modal-content .nmp-modal-handle {
  position: absolute !important;
  top: 5px !important;
  left: 5px !important;
  cursor: grab !important;
  z-index: 10 !important;
  font-size: 16px !important;
}

/* Schließen-Button oben rechts auf gleicher Höhe */
.nmp-modal-content .nmp-modal-close {
  position: absolute !important;
  top: 5px !important;
  right: 5px !important;
  z-index: 10 !important;
}

/* Universelles Erzwingen der vollen Beschreibung im Modal (inkl. Flexbox-Sicherheit) */
.nmp-modal-content *,
.nmp-modal-player *,
.nmp-modal-container * {
  text-overflow: clip !important;
}

.nmp-modal-content p,
.nmp-modal-content div[class*="desc"],
.nmp-modal-content div[class*="text"],
.nmp-modal-content div[class*="instrument"],
.nmp-modal-player p,
.nmp-modal-player div[class*="desc"],
.nmp-modal-player div[class*="text"],
.nmp-modal-player div[class*="instrument"],
.nmp-modal-container p,
.nmp-modal-container div[class*="desc"],
.nmp-modal-container div[class*="text"],
.nmp-modal-container div[class*="instrument"] {
  white-space: normal !important;
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  text-align: justify !important;
  text-justify: inter-word !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

/* Styling, volle Breite und Blocksatz für die Beschreibung im Modal-Player */
.nmp-modal-content .nmp-info {
  display: block !important;
  width: 100% !important;
}

.nmp-modal-content .nmp-modal-description {
  display: block !important;
  width: 100% !important;
  clear: both !important;
  margin-top: 12px !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: #ccc !important;
  white-space: normal !important;
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  text-align: justify !important;
  text-justify: inter-word !important;
  hyphens: auto !important;
  -webkit-hyphens: auto !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

/* ============================================================
   ULTIMATIVE MOBILE RESPONSIVE KORREKTUREN (Handys & kleine Tablets)
============================================================ */
@media (max-width: 900px) {
  /* 1. Globaler Schutz gegen horizontales Herausragen */
  html, body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  /* 2. Gesamten Player-Container und Root-Element zähmen */
  #music-root,
  .nmp-player-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    margin: 0 auto !important;
  }

  /* 3. Oberes Dropdown-Menü & Action-Leisten vollbreit machen */
  .nmp-controls-top-container,
  .nmp-sort-select,
  .nmp-buttons-row,
  #sort-select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* 4. Den Inline-Player zwingen, sich auf dem Handy untereinander zu stapeln */
  #music-root .nmp-player-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    padding: 12px !important;
    box-sizing: border-box !important;
  }

  /* Einzelne Elemente im Player-Wrapper anpassen */
  #music-root .nmp-cover {
    width: 100% !important;
    height: 120px !important;
    max-height: 120px !important;
  }

  #music-root .nmp-cover img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  #music-root .nmp-info {
    width: 100% !important;
    min-width: 0 !important;
  }

  #music-root .nmp-center-meta {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin: 0 !important;
  }

  #music-root .nmp-controls {
    display: flex !important;
    justify-content: flex-end !important;
    width: 100% !important;
    gap: 8px !important;
  }

  #music-root .nmp-wave {
    width: 100% !important;
  }

  /* 5. Die 3 Master-Spalten unten untereinander anordnen */
  .nmp-stats-tables-container > table, 
  .stats-tables-wrapper > table, 
  .footer-lists-grid > table,
  .nmp-master-table,
  .nmp-info-table {
    display: block !important;
    width: 100% !important;
    border-spacing: 0 !important;
  }
  
  .nmp-stats-tables-container tr, 
  .stats-tables-wrapper tr, 
  .footer-lists-grid tr,
  .nmp-master-row,
  .nmp-info-table tr {
    display: block !important;
    width: 100% !important;
  }
  
  .nmp-stats-tables-container td, 
  .stats-tables-wrapper td, 
  .footer-lists-grid td,
  .nmp-master-cell,
  .nmp-info-table td {
    display: block !important;
    width: 100% !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
  }

  #nmp-newest-list, 
  #nmp-top-plays-list, 
  #nmp-top-downloads-list,
  .nmp-table-box,
  .footer-lists-grid td > div {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  .nmp-col-title {
    max-width: 180px !important;
  }
}

/* Für extrem kleine Bildschirme */
@media (max-width: 480px) {
  .nmp-col-title {
    max-width: 130px !important;
    font-size: 12px !important;
  }
  
  .nmp-col-meta {
    font-size: 11px !important;
    width: 85px !important;
  }
}
/* ============================================================
   FIX FÜR DIE FESTE BREITE IM INLINE-STYLE AUF HANDYS
============================================================ */
@media (max-width: 900px) {
  #nmp-sort-select,
  .nmp-sort-select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}