/*
  style.css
  Dunkles Gaming-/Streaming-Design.
  Akzentfarben laut PROJECT.md: Hauptfarbe Blau, Zweitfarbe Weiß.
*/

/* ---------------------------------------------------------
   Design Tokens
--------------------------------------------------------- */
:root {
  --color-bg: #0b0e14;
  --color-bg-alt: #10141d;
  --color-surface: #161b26;
  --color-surface-hover: #1d2432;
  --color-border: #262d3d;

  --color-text: #e8ecf3;
  --color-text-muted: #a7b0c0;

  --color-accent: #3b82f6;
  --color-accent-hover: #5b95f7;
  --color-accent-contrast: #ffffff;

  --color-live: #ef4444;
  --color-offline: #6b7280;

  --color-twitch: #9146ff;
  --color-twitch-hover: #a970ff;

  --font-base: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;

  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

/* ---------------------------------------------------------
   Reset & Basics
--------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.25;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Sichtbare Fokuszustände für Tastaturbedienbarkeit */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Erzwingt, dass das hidden-Attribut IMMER greift - auch wenn eine
   Komponente ihr eigenes display (z. B. flex/grid) setzt, das die
   UA-Regel für [hidden] sonst überschreiben würde. */
[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 var(--radius-md) 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------------------------------------------------------
   Buttons
--------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-accent-contrast);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-accent);
}

/* Klar erkennbarer Haupt-Call-to-Action zum Twitch-Kanal */
.btn--twitch {
  background-color: var(--color-twitch);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(145, 70, 255, 0.35);
}

.btn--twitch:hover {
  background-color: var(--color-twitch-hover);
}

.btn--large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

/* ---------------------------------------------------------
   Header & Navigation
--------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background-color: rgba(11, 14, 20, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: 0.5px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle__bar {
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
}

.nav-list {
  display: flex;
  gap: 28px;
}

.nav-list a {
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.nav-list a:hover {
  color: var(--color-text);
}

/* Hebt den Navigationspunkt der aktuell geöffneten Seite hervor */
.nav-list a.is-active {
  color: var(--color-accent-hover);
  font-weight: 700;
}

/* ---------------------------------------------------------
   Hero / Startseite
--------------------------------------------------------- */
.hero {
  padding: 88px 0 96px;
  background:
    radial-gradient(ellipse at top, rgba(59, 130, 246, 0.22), transparent 60%),
    var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at top, black, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
}

.hero__avatar-wrapper {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  padding: 4px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
  box-shadow: 0 0 0 1px var(--color-border), 0 12px 32px rgba(59, 130, 246, 0.25);
}

.hero__avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid var(--color-bg);
  background-color: var(--color-surface);
}

.hero__status {
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -1px;
}

.hero__slogan {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.hero__game {
  display: inline-block;
  align-self: center;
  margin: 0 0 32px;
  padding: 6px 16px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--color-accent-hover);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}

/* Live-Status-Anzeige (Platzhalterkomponente) */
.live-indicator {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

.live-indicator--offline {
  background-color: rgba(107, 114, 128, 0.2);
  color: var(--color-offline);
}

.live-indicator--live {
  background-color: rgba(239, 68, 68, 0.2);
  color: var(--color-live);
}

/* ---------------------------------------------------------
   Sections (generisch)
--------------------------------------------------------- */
.section {
  padding: 88px 0;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
}

.section__intro {
  color: var(--color-text-muted);
  max-width: 640px;
  margin-bottom: 40px;
}

/* Überschrift + "Alle ansehen"-Link nebeneinander (z. B. VOD-Vorschau auf der Startseite) */
.section__header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.section__header-row .section__intro {
  margin-bottom: 0;
}

/* Einfache Scroll-Animation */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------
   Twitch-Embed
--------------------------------------------------------- */
.twitch-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background-color: #000;
}

.twitch-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.twitch-fallback {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

/* ---------------------------------------------------------
   Karten (Clips & VODs)
--------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
}

.vod-card__link {
  display: block;
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: var(--color-surface-hover);
}

.card__body {
  padding: 16px 20px 20px;
}

.card__title {
  font-size: 1.05rem;
  font-weight: 700;
}

.card__meta {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0 0 16px;
}

/* Teaser-Text auf den Übersichtskarten der Startseite */
.card__text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0 0 16px;
}

/* Clip-Karten: Vorschaubild mit Dauer-Badge + eigenständigem Twitch-Link */
.clip-card__media {
  position: relative;
}

.clip-card__duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 2px 8px;
  border-radius: 6px;
  background-color: rgba(11, 14, 20, 0.85);
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.clip-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent-hover);
  font-weight: 600;
  font-size: 0.95rem;
}

.clip-card__link::after {
  content: "\2197";
}

.clip-card__link:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* ---------------------------------------------------------
   Mediathek (media.php)
--------------------------------------------------------- */
.media-card__media {
  position: relative;
}

.media-card__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
}

.media-card__type-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 2px 8px;
  border-radius: 6px;
  background-color: rgba(11, 14, 20, 0.85);
  color: var(--color-text);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.media-card__unavailable {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  background-color: rgba(11, 14, 20, 0.65);
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.media-card__featured-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background-color: rgba(59, 130, 246, 0.15);
  color: var(--color-accent-hover);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.clip-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Vorschau-Umschalter (Text-Button, optischer wie .clip-card__link) */
.clip-card__preview-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: var(--color-accent-hover);
  font-weight: 600;
  font-size: 0.95rem;
}

.clip-card__preview-toggle:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Eingebetteter Vorschau-Player, überdeckt das Vorschaubild nach Klick */
.clip-card__embed {
  position: absolute;
  inset: 0;
  background-color: #000;
}

.clip-card__embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------------------------------------------------------
   Clips: Steuerung (Sortierung/Zeitraum), Skeleton, "Mehr anzeigen"
--------------------------------------------------------- */
.clips-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}

.clips-controls__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.clips-controls__label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--color-text-muted);
}

.clips-select {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.clips-select:hover {
  border-color: var(--color-accent);
}

.vods-search-input {
  width: 240px;
  max-width: 100%;
}

.vods-search-input::placeholder {
  color: var(--color-text-muted);
}

.clip-card-skeleton__thumb {
  aspect-ratio: 16 / 9;
}

.clip-card-skeleton__title {
  height: 20px;
  width: 75%;
  margin: 0 0 10px;
}

.clip-card-skeleton__meta {
  height: 14px;
  width: 45%;
}

.clips-load-more {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.empty-state {
  color: var(--color-text-muted);
}

/* ---------------------------------------------------------
   Filter-Leiste (VOD-Mediathek)
--------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.filter-button {
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-button:hover {
  color: var(--color-text);
}

.filter-button.is-active {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-accent-contrast);
}

/* ---------------------------------------------------------
   Streamplan
--------------------------------------------------------- */
.schedule-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.schedule-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 16px;
  padding: 18px 22px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.schedule-item__day {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.schedule-item__time {
  color: var(--color-accent-hover);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.schedule-note {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ---------------------------------------------------------
   Discord-Sektion
--------------------------------------------------------- */
.discord-section {
  background:
    radial-gradient(ellipse at bottom, rgba(59, 130, 246, 0.15), transparent 60%),
    var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.discord-section__inner {
  text-align: center;
  max-width: 640px;
}

.discord-section__text {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.discord-benefits {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
  text-align: left;
}

.discord-benefits li {
  position: relative;
  padding-left: 24px;
  color: var(--color-text);
}

.discord-benefits li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.discord-app {
  margin: 32px 0;
  text-align: left;
}

.discord-icon-skeleton {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Kleiner grüner Punkt vor der Online-Zahl (Discord-typische Präsenzanzeige) */
.discord-online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #3ba55d;
  margin-right: 6px;
}

.discord-rules-note {
  margin-top: 20px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ---------------------------------------------------------
   Über mich
--------------------------------------------------------- */
.about__inner {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 48px;
  align-items: center;
}

.about__image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.about__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background-color: var(--color-surface);
}

.about__facts {
  margin-top: 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 20px;
}

.about__facts dt {
  font-weight: 700;
  color: var(--color-text-muted);
}

.about__facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------
   Setup
--------------------------------------------------------- */
.setup-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.setup-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 22px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.setup-item__category {
  font-weight: 700;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.setup-item__detail {
  font-weight: 600;
}

/* ---------------------------------------------------------
   Social Media
--------------------------------------------------------- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.social-link {
  display: block;
  text-align: center;
  padding: 18px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: all var(--transition-fast);
}

.social-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-hover);
}

.social-link--placeholder {
  cursor: not-allowed;
  color: var(--color-text-muted);
  opacity: 0.6;
}

.social-link--placeholder:hover {
  border-color: var(--color-border);
  color: var(--color-text-muted);
}

/* ---------------------------------------------------------
   Kontakt
--------------------------------------------------------- */
.contact-email {
  margin-bottom: 16px;
}

.contact-note {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  max-width: 640px;
}

.contact-note a {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg-alt);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-social,
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-social a,
.footer-legal a {
  color: var(--color-text-muted);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.footer-social a:hover,
.footer-legal a:hover {
  color: var(--color-text);
}

.footer-copyright {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* ---------------------------------------------------------
   Rechtliche Seiten (Impressum / Datenschutz)
--------------------------------------------------------- */
.legal-content {
  padding: 64px 0 96px;
  max-width: 800px;
}

.legal-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 24px;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 32px;
}

.legal-content p,
.legal-content li {
  color: var(--color-text-muted);
}

.legal-content .placeholder {
  color: var(--color-accent-hover);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--color-accent-hover);
  font-weight: 600;
}

/* ---------------------------------------------------------
   Responsive: Tablet & Mobile
--------------------------------------------------------- */
@media (max-width: 900px) {
  .about__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about__facts {
    text-align: left;
  }
}

/*
  Breakpoint deckt auch Tablet-Breiten ab (z. B. 768px), da die
  vollständige Desktop-Navigation mit 10 Menüpunkten dort nicht mehr
  ohne horizontales Scrollen in den Header passt.
*/
@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
  }

  .nav-menu.is-open {
    max-height: 500px;
  }

  .nav-list {
    flex-direction: column;
    padding: 16px 24px;
    gap: 18px;
  }
}

@media (max-width: 760px) {
  .hero {
    padding: 56px 0 64px;
  }

  .hero__avatar-wrapper {
    width: 104px;
    height: 104px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------
   Twitch Live-Status (twitch.php + js/twitch-live.js)
--------------------------------------------------------- */
.twitch-app {
  margin-top: 8px;
}

/* Deutlich gekennzeichneter Hinweis, wenn der lokale Mock-Modus aktiv ist */
.twitch-mock-banner {
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid #f59e0b;
  background-color: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Ladezustand (Skeleton) */
.twitch-skeleton {
  border-radius: var(--radius-md);
  background: linear-gradient(
    90deg,
    var(--color-surface) 25%,
    var(--color-surface-hover) 37%,
    var(--color-surface) 63%
  );
  background-size: 400% 100%;
  animation: twitch-skeleton-shimmer 1.4s ease infinite;
}

@keyframes twitch-skeleton-shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

.twitch-skeleton--badge {
  width: 90px;
  height: 28px;
  margin-bottom: 16px;
}

.twitch-skeleton--title {
  width: min(60%, 420px);
  height: 28px;
  margin-bottom: 24px;
}

.twitch-skeleton--player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
}

.twitch-error-note {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--color-text-muted);
}

/* Gemeinsamer Badge-Abstand für LIVE/OFFLINE (nutzt .live-indicator) */
.twitch-badge {
  margin-bottom: 12px;
}

/* Live-Zustand: Kopfbereich mit Avatar, Titel/Meta, CTA-Button */
.twitch-live__header,
.twitch-offline__header {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.twitch-live__avatar,
.twitch-offline__image {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background-color: var(--color-surface);
  border: 2px solid var(--color-border);
}

.twitch-live__meta,
.twitch-offline__meta {
  flex: 1 1 240px;
  min-width: 0;
}

.twitch-live__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}

.twitch-live__submeta {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.twitch-live__dot {
  margin: 0 6px;
}

.twitch-offline__text {
  font-weight: 600;
  margin: 0;
}

/* Player + Chat nebeneinander (Desktop), gestapelt/reduziert (Mobile) */
.twitch-live__layout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.twitch-live__layout .twitch-embed {
  flex: 1 1 640px;
  margin: 0;
}

.twitch-chat {
  flex: 1 1 300px;
  max-width: 340px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background-color: #000;
}

.twitch-chat iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.twitch-offline__previews {
  margin-top: 8px;
}

@media (max-width: 900px) {
  .twitch-chat {
    max-width: 100%;
    aspect-ratio: 16 / 6;
  }
}

@media (max-width: 640px) {
  .twitch-chat {
    display: none;
  }
}

@media (max-width: 480px) {
  .twitch-live__header,
  .twitch-offline__header {
    flex-direction: column;
    align-items: flex-start;
  }
}
