/*
==========================================
DATEI: external-player/css/layout.css
ERSTELLT: 2026-04-20
GEÄNDERT: 2026-04-21
ZWECK: Hauptlayout des externen Players.
ÄNDERUNG: FULLPACK v9 EQ DRIFT FIX. EQ-Rahmen fixiert, EQ-Animation nur noch innerhalb
           fester Slots; kein Nach-unten-Rutschen des gesamten Equalizers mehr.
==========================================
*/
.player-shell {
  position: absolute;
  left: 50%;
  top: 66.2%;
  transform: translate(-50%, -50%);
  width: min(54vw, 920px);
  min-height: min(32vh, 410px);
  padding: 0;
  border-radius: 26px;
  box-shadow:
    0 0 0 1px rgba(255, 62, 181, 0.16),
    0 0 28px rgba(255, 62, 181, 0.08),
    0 0 38px rgba(0, 245, 223, 0.06);
  z-index: 2;
  background: linear-gradient(180deg, rgba(5,7,16,0.90), rgba(4,6,14,0.92));
  border: 1px solid rgba(255,255,255,0.10);
}
.neon-frame-shell { border: none; }

.top-hud {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  padding: 14px 16px 0;
}
.brand-kicker, .section-kicker, .info-label, .volume-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.70rem;
}
.hero {
  margin: 0 16px 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(6, 8, 18, 0.68);
  border: 1px solid rgba(255,255,255,0.10);
  min-height: 100px;
}
.hero-label-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.hero-badge {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}
.hero-live {
  color: #ffe5f7;
  background: rgba(255,62,181,0.20);
  border-color: rgba(255,62,181,0.30);
}
.hero-badge.dim { color: var(--muted); }
.hero-title {
  font-size: clamp(1.15rem, 2vw, 2.15rem);
  font-weight: 700;
}
.hero-subtitle { margin-top: 6px; color: var(--muted); font-size: 0.94rem; }

.now-playing {
  padding: 10px 14px;
  margin: 0 16px 10px;
  border-radius: 16px;
  background: rgba(6, 8, 18, 0.66);
  border: 1px solid rgba(255,62,181,0.16);
}
.section-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.meta-line {
  margin-top: 4px;
  color: var(--pink);
  font-weight: 700;
  font-size: 0.98rem;
}
.ghost-btn, .icon-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  cursor: pointer;
}
.ghost-btn {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 8px 12px;
}
.ticker-window {
  position: relative;
  overflow: hidden;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,62,181,0.18);
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
}
.ticker-text {
  white-space: nowrap;
  display: inline-block;
  padding-left: 100%;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0,245,223,0.24);
  animation: tickerMove 14s linear infinite;
}
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.history-panel {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 62, 181, 0.18);
  border-radius: 16px;
  background: rgba(7,10,18,0.88);
}
.history-title { color: var(--cyan); font-weight: 700; margin-bottom: 8px; }
.history-list { margin: 0; padding-left: 18px; max-height: 180px; overflow: auto; }

.info-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr 1fr;
  gap: 10px;
  margin: 0 16px 10px;
}
.info-card {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(6, 8, 18, 0.66);
  border: 1px solid rgba(255,255,255,0.08);
}
.info-value { margin-top: 6px; font-size: 1rem; font-weight: 700; }

.visualizer {
  padding: 10px 14px 14px;
  margin: 0 16px 12px;
  border-radius: 16px;
  background: rgba(6, 8, 18, 0.66);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.eq-bars {
  position: relative;
  height: 124px;
  min-height: 124px;
  max-height: 124px;
  display: grid;
  grid-template-columns: repeat(28, minmax(0, 1fr));
  align-items: stretch;
  gap: 4px;
  margin-top: 12px;
  overflow: hidden;
}
.eq-bar-slot {
  position: relative;
  height: 100%;
  min-height: 100%;
}
.eq-bar-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 12px;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, var(--purple), var(--pink) 58%, var(--cyan));
  box-shadow: 0 0 10px rgba(184,77,255,0.18);
  transform-origin: bottom center;
  will-change: height;
}
.bottom-console {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 0 16px 18px;
  margin-top: 4px;
}
.control-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
}
.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.icon-btn-main { border-color: rgba(255,62,181,0.28); }
.source-chip {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}
.source-chip.is-active {
  border-color: rgba(0,245,223,0.40);
  box-shadow: 0 0 12px rgba(0,245,223,0.14);
}
.timeline-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  align-self: end;
}
.time-chip {
  font-variant-numeric: tabular-nums;
  color: var(--text);
  font-weight: 700;
  min-width: 42px;
  text-align: center;
}
.timeline-bar {
  position: relative;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  overflow: hidden;
}
.timeline-progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 33%;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  box-shadow: 0 0 12px rgba(255,62,181,0.22);
}
.volume-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 170px;
  justify-content: flex-end;
  padding-bottom: 2px;
}
.volume-slider { width: 118px; accent-color: var(--pink); }

.side-meter {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100dvh;
  width: 72px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}
.side-meter.left { left: 10px; }
.side-meter.right { right: 10px; }
.side-meter-stack {
  display: flex;
  gap: 10px;
  height: 100%;
  align-items: stretch;
}
.side-meter-track {
  position: relative;
  width: 18px;
  height: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  overflow: hidden;
  box-shadow: inset 0 0 16px rgba(0,0,0,0.22);
}
.side-meter-track.secondary { opacity: 0.86; }
.side-meter-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14%;
  background: linear-gradient(180deg, rgba(0,245,223,0.90), rgba(255,62,181,0.92));
  box-shadow: 0 0 22px rgba(255,62,181,0.30);
  border-radius: 999px 999px 0 0;
}


/* v17-layout-overlay-cleanup */
.visualizer,
.eq-bars,
.eq-bar-slot,
.eq-bar-fill {
  pointer-events: none !important;
}

.bottom-console,
.control-toolbar,
.timeline-wrap,
.volume-wrap {
  position: relative;
  z-index: 6;
}


/* v18 hard-touch-layout */
.bottom-console,
.control-toolbar,
.timeline-wrap,
.volume-wrap,
.mobile-boost,
.player-shell,
.top-hud,
.hero,
.now-playing,
.info-grid {
  position: relative;
  z-index: 20;
}


/*
==========================================
GEÄNDERT: 2026-04-21
ÄNDERUNG: FULLPACK v20 LAYOUT ORDER FIX.
ZWECK: Trennung oben/unten sauber halten.
       Booster sitzt jetzt strukturell im Hero-Bereich.
       Bottom-Console bleibt reine Bedienzone.
==========================================
*/
.mobile-boost {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 0 0;
}

.hero .mobile-boost {
  margin-top: 2px;
}

.bottom-console .mobile-boost {
  display: none !important;
}


/*
==========================================
GEÄNDERT: 2026-04-21
ÄNDERUNG: FULLPACK v21 MOBILE FULLSCREEN + HERO LOGO.
ZWECK: Logo sauber im Hero-/Header-Bereich integrieren; vollständiger Schriftzug
       wird über ein eingebettetes Header-Logo dargestellt.
==========================================
*/
.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 10px;
}
.hero-brand-image {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  object-fit: contain;
}


/*
==========================================
GEÄNDERT: 2026-04-21
ÄNDERUNG: FULLPACK v22 METADATA REPAIR + PC LAYOUT RECOVERY.
ZWECK: PC wieder auf den letzten guten Layout-Stand zurückführen.
       Mobile-v21 bleibt erhalten.
==========================================
*/
@media (min-width: 861px) {
  .hero-brand {
    display: none !important;
  }

  .hero-title,
  .hero-subtitle {
    display: block !important;
  }

  .player-shell {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    width: min(92vw, 1180px) !important;
    max-width: 1180px !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    border-radius: 28px !important;
    box-shadow: 0 0 28px rgba(0,245,223,0.10), 0 0 24px rgba(255,77,179,0.08) !important;
  }

  .top-hud {
    padding: 14px 18px 0 !important;
    margin: 0 !important;
  }

  .hero {
    margin: 0 18px 10px !important;
    padding: 14px 16px 14px !important;
    min-height: 0 !important;
  }

  .now-playing,
  .info-grid,
  .visualizer,
  .bottom-console {
    margin-left: 18px !important;
    margin-right: 18px !important;
  }
}


/*
==========================================
GEÄNDERT: 2026-04-21
ÄNDERUNG: FULLPACK v23 PC BOOST OUT + EQ CENTER FIX.
ZWECK: Desktop zeigt keinen Booster mehr. Booster bleibt ausschließlich
       auf Mobile sichtbar. Außerdem visuelle Bereinigung für Desktop.
==========================================
*/
@media (min-width: 861px) {
  .mobile-boost,
  .mobile-only {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}


/*
==========================================
GEÄNDERT: 2026-04-21
ÄNDERUNG: FULLPACK v26 PC GEOMETRY RESET + EQ CENTER FIX.
ZWECK: Desktop-Player wieder auf letzte gute Geometrie bringen,
       Branding oben sichtbar halten und nur die EQ-Mitte korrigieren,
       ohne Grid-/Breitenänderungen.
==========================================
*/
@media (min-width: 861px) {
  .frame-stage {
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    min-height: 100vh !important;
    overflow-x: hidden !important;
  }

  .player-shell {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 78px auto 36px auto !important;
    width: min(92vw, 1180px) !important;
    max-width: 1180px !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .top-hud,
  .hero,
  .now-playing,
  .info-grid,
  .visualizer,
  .bottom-console {
    margin-left: 18px !important;
    margin-right: 18px !important;
  }

  .hero {
    padding-top: 14px !important;
  }
}
