/* Grundlayout */
:root { --gap: 12px; }
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #0b0b0b;
  color: #eee;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  line-height: 1.5;
}

/* Header: Logo links, Titel rechts */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Logo links, Titel rechts */
  gap: 12px;
  background: #111;
  padding: 8px 16px;
  border-bottom: 1px solid #1c1c1c;
}
.logo { height: 40px; width: auto; }
.site-title {
  margin: 0;
  font-size: 18px;
  color: #f5f5f5;
  letter-spacing: .2px;
  text-align: right;
}

.container { padding: 12px 16px 16px; }

/* Now Playing */
.now-playing{
  max-width: 980px;
  margin: 8px auto 0;
  padding: 8px 12px;
  background:#121212;
  border:1px solid #1c1c1c;
  border-radius: 12px;
  font-size: 14px;
  color:#ddd;
}
.now-playing b{ color:#fff; }

/* Player direkt unter Header */
.player-wrapper { display: flex; justify-content: center; margin: 8px 0 var(--gap); }
#playerSlot {
  width: 100%;
  max-width: 980px;
}

#playerSlot iframe, #playerSlot video {
  width: 100%;
  max-width: 980px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
}

/* Early Bird CTA Button */
.early-bird-cta{
  width: 100%;
  max-width: 980px;
  height: 60px;
  margin: 10px auto var(--gap);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .2px;
  text-align: center;
  color: #1a1400;
  background: linear-gradient(180deg, #f6d26b 0%, #d4a72c 100%);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.early-bird-cta:hover{
  filter: brightness(1.05);
}
.early-bird-cta:active{
  transform: translateY(1px);
}

/* Tabs & Chips jetzt unter dem Player */
.tabs { display: flex; gap: 8px; margin: 0 0 10px; flex-wrap: wrap; }
.tab {
  background: #222;
  border: 0;
  border-radius: 8px;
  padding: 6px 12px;
  color: #ddd;
  cursor: pointer;
}
.tab[aria-selected="true"] { background: #c1bc7f; color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.chip {
  background: #333;
  border: 0;
  border-radius: 999px;
  padding: 4px 10px;
  color: #ccc;
  cursor: pointer;
  font-size: 14px;
}
.chip.active { background: #c1bc7f; color: #fff; }

/* Grid der Videos */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 12px;
  margin-bottom: 12px; /* Abstand zum Ticker */
}
.card {
  background: #181818;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.card img.thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #000;
}
.card .title { font-weight: 600; padding: 6px 8px; }
.card .muted, .muted { color: #888; font-size: 13px; padding: 0 8px 8px; }

.card.active {
  outline: 2px solid #c1bc7f;
  box-shadow: 0 0 0 3px rgba(193,188,127,.25);
  transform: translateY(-1px);
}
.card.active .title::before {
  content: "▶ ";
  color: #c1bc7f;
}


/* --- Ticker (sauberer, nur Bild klickbar) --- */
.ticker {
  height: 50px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, #0a0a0a 0%, #111 100%);
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  margin-top: 4px;
  margin-bottom: 12px;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 18px;               /* wichtig: identisch in JS verwenden */
  height: 50px;
  will-change: transform;
}

.ticker-item {             /* <a> ist das Item, nur Bild klickbar */
  display: inline-flex;
  align-items: center;
  padding: 0;              /* keine Extrapadding, sonst verschiebt die Breite */
  margin: 0;
  white-space: nowrap;
  text-decoration: none;
}

.ticker-item img {
  display: block;
  height: 46px;            /* leicht kleiner als 50px Container */
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

/* Footer – klassisch, mittig */
.footer {
  background: #111;
  color: #aaa;
  text-align: center;
  padding: 14px;
  font-size: 13px;
}
.footer p { margin: 4px 0; }
.footer a {
  color: #bbb;
  text-decoration: none;
}
.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ===== Mobile-Optimierung für Video-"Buttons" (Cards) ===== */

/* bis 900px: eher kompakt, 3 Spalten */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .card img.thumb { height: 110px; aspect-ratio: auto; }
  .card .title { font-size: 13px; padding: 4px 6px; }
  .card { border-radius: 8px; }
}

/* bis 600px: noch kompakter, 2 Spalten */
@media (max-width: 600px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .card img.thumb { height: 90px; }
  .card .title { font-size: 12px; }
  .card .muted { display: none; } /* Meta ausblenden, wirkt „buttoniger“ */
  .card { border-radius: 8px; }
}

/* sehr schmal (z. B. 320px): 2 Spalten bleiben, noch kleinere Thumbs */
@media (max-width: 360px) {
  .grid { gap: 6px; }
  .card img.thumb { height: 80px; }
  .card .title { font-size: 11px; }
}
