/* Streamer – Seite, Bühne, Karten, Boxen · © 2026 gameserver-install.de · by rumpel
   Passt sich dem Design an: Flächen aus currentColor gemischt, Akzent je Plattform (--st-c). */
.st { --st-line: color-mix(in srgb, currentColor 12%, transparent); --st-soft: color-mix(in srgb, currentColor 5%, transparent); --st-muted: color-mix(in srgb, currentColor 62%, transparent);
    --st-live: #eb0400; --st-r: 12px; --st-ease: cubic-bezier(.2, .7, .2, 1); }
.st *, .st *::before, .st *::after { box-sizing: border-box; }
.st img { max-width: 100%; }
.st-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: -1px; }
.st-muted { color: var(--st-muted); }

/* ---------- Seite: Seitenleiste + Hauptbereich ---------- */
.st-page { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; container-type: inline-size; }
.st-side { position: sticky; top: 16px; border: 1px solid var(--st-line); border-radius: var(--st-r); padding: 10px 6px; background: var(--st-soft); max-height: calc(100vh - 32px); overflow: auto; }
.st-side__head { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin: 4px 10px 8px; color: var(--st-muted); font-weight: 700; }
.st-side__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.st-side__item { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px; color: inherit; text-decoration: none; transition: background .2s; }
.st-side__item:hover, .st-side__item:focus-visible, .st-side__item.is-active { background: color-mix(in srgb, var(--st-c) 14%, transparent); }
.st-side__item:not(.is-live) { opacity: .62; }
.st-side__txt { min-width: 0; display: grid; line-height: 1.25; }
.st-side__txt b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-side__txt small { font-size: 12px; color: var(--st-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-side__stat { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-variant-numeric: tabular-nums; }
.st-dot { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, currentColor 30%, transparent); display: inline-block; flex: none; }
.is-live .st-dot, .st-dot--on { background: var(--st-live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-live) 22%, transparent); animation: stPulse 2s ease-in-out infinite; }
@keyframes stPulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--st-live) 0%, transparent); } }

.st-ava { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--st-c, #888) 35%, #111); color: #fff; font-weight: 800; box-shadow: 0 0 0 2px color-mix(in srgb, var(--st-c, #888) 70%, transparent); }
.is-live > .st-ava, .is-live .st-ava { box-shadow: 0 0 0 2px var(--st-live); }
.st-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }

.st-head h1 { margin: 0 0 6px; }
.st-lead { margin: 0 0 8px; color: var(--st-muted); max-width: 70ch; }
.st-count { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; font-weight: 600; }
.st-h { font-size: 18px; margin: 28px 0 12px; }
.st-empty { padding: 30px; border: 1px dashed var(--st-line); border-radius: var(--st-r); text-align: center; color: var(--st-muted); }

/* ---------- Bühne ---------- */
.st-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-radius: var(--st-r); overflow: hidden; border: 1px solid var(--st-line); background: var(--st-soft); scroll-margin-top: 80px; }
.st-stage.has-chat { grid-template-columns: minmax(0, 1fr) 340px; }
.st-stage__screen { position: relative; aspect-ratio: 16 / 9; background: #0b0b10; overflow: hidden; color: #fff; }
.st-stage__thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); transform: scale(1.02); transition: transform 6s var(--st-ease); }
.st-stage:hover .st-stage__thumb { transform: scale(1.06); }
.st-stage__ph { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--st-c) 55%, #000), #07070b 70%); }
.st-stage__ph img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px color-mix(in srgb, var(--st-c) 70%, #fff); }
.st-stage__ph b { font-size: 72px; opacity: .55; }
.st-stage__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.st-consent { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 16px; text-align: center; background: linear-gradient(0deg, rgba(5, 5, 9, .78), rgba(5, 5, 9, .35)); }
.st-play { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px 12px 14px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: 16px; color: #fff;
    background: var(--st-c); box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--st-c) 80%, transparent); transition: transform .2s var(--st-ease), filter .2s; }
.st-stage[data-platform="kick"] .st-play { color: #0b0b10; }
.st-play:hover, .st-play:focus-visible { transform: translateY(-2px) scale(1.03); filter: brightness(1.08); }
.st-play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.st-consent small { max-width: 46ch; font-size: 12px; opacity: .85; }
.st-remember { font-size: 12px; display: inline-flex; gap: 6px; align-items: center; opacity: .9; cursor: pointer; }
.st-stage__chat { border-left: 1px solid var(--st-line); position: relative; min-height: 0; background: color-mix(in srgb, currentColor 3%, transparent); display: grid; place-items: center; padding: 16px; text-align: center; color: var(--st-muted); font-size: 13px; }
.st-stage__chat iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.st-stage__info { grid-column: 1 / -1; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; }
.st-stage__info .st-ava { width: 52px; height: 52px; font-size: 20px; }
.st-stage__name { margin: 0; font-size: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.st-stage__title { margin: 2px 0 0; overflow-wrap: anywhere; }
.st-stage__meta { margin: 2px 0 0; font-size: 13px; color: var(--st-muted); display: flex; gap: 12px; flex-wrap: wrap; }
.st-stage__meta span:empty { display: none; }
.st-plat { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--st-c) 18%, transparent); color: inherit; border: 1px solid color-mix(in srgb, var(--st-c) 45%, transparent); }
.st-out { font-size: 13px; font-weight: 600; color: inherit; text-decoration: none; padding: 8px 12px; border-radius: 9px; border: 1px solid var(--st-line); white-space: nowrap; }
.st-out:hover { border-color: var(--st-c); }
.st-stage.is-playing .st-stage__thumb, .st-stage.is-playing .st-badge, .st-stage.is-playing .st-viewers { display: none; }

.st-badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 3px 7px; border-radius: 5px; text-transform: uppercase; }
.st-badge--live { background: var(--st-live); color: #fff; }
.st-stage__screen > .st-badge, .st-card__img > .st-badge { position: absolute; left: 10px; top: 10px; z-index: 1; }
.st-viewers { position: absolute; left: 10px; bottom: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .65); color: #fff; font-variant-numeric: tabular-nums; }
.st-viewers i { width: 7px; height: 7px; border-radius: 50%; background: var(--st-live); }
.st [hidden] { display: none !important; }

/* ---------- Karten ---------- */
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.st-card { display: grid; gap: 10px; color: inherit; text-decoration: none; }
.st-card__img { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #0b0b10; transition: transform .25s var(--st-ease), box-shadow .25s; }
.st-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-card__ph { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--st-c) 45%, #000), #07070b 75%); color: #fff; }
.st-card__ph b { font-size: 46px; opacity: .55; }
.st-card:hover .st-card__img, .st-card:focus-visible .st-card__img, .st-card.is-active .st-card__img { transform: translate(4px, -4px); box-shadow: -4px 4px 0 var(--st-c); }
.st-card:focus-visible { outline: none; }
.st-card__body { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; }
.st-card__text { display: grid; min-width: 0; line-height: 1.3; }
.st-card__title { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-card__name, .st-card__cat { font-size: 12.5px; color: var(--st-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-card__cat:empty { display: none; }
.st-grid--off .st-card__img { aspect-ratio: 16 / 7; }
.st-grid--off .st-card:not(:hover) { opacity: .8; }

/* ---------- Boxen ---------- */
.st-box .st-side__list { margin-bottom: 8px; }
.st-more { font-size: 13px; font-weight: 600; }
.st-box--stage .st-stage__info { grid-template-columns: 40px minmax(0, 1fr); }
.st-box--stage .st-stage__info .st-ava { width: 40px; height: 40px; }
.st-box--stage .st-out { grid-column: 1 / -1; justify-self: start; }
.st-box--stage .st-stage__name { font-size: 15px; }

.st-bar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--st-line); background: var(--st-soft); overflow: hidden; }
.st-bar__track { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.st-bar__run { display: flex; width: max-content; animation: stRun 40s linear infinite; }
.st-bar:hover .st-bar__run, .st-bar:focus-within .st-bar__run { animation-play-state: paused; }
.st-bar__set { display: flex; gap: 28px; padding-right: 28px; }
.st-bar a { white-space: nowrap; color: inherit; text-decoration: none; font-size: 14px; }
.st-bar a b { color: var(--st-c); }
.st-bar a:hover { text-decoration: underline; }
@keyframes stRun { to { transform: translateX(-50%); } }

/* ---------- Handy / schmale Bereiche ---------- */
@container (max-width: 980px) {
    .st-stage.has-chat { grid-template-columns: minmax(0, 1fr); }
    .st-stage__chat { border-left: 0; border-top: 1px solid var(--st-line); height: 380px; }
    .st-stage.has-chat:not(.is-playing) .st-stage__chat { display: none; }
}
@media (max-width: 860px) {
    .st-page { grid-template-columns: minmax(0, 1fr); }
    .st-side { position: static; max-height: none; padding: 8px; }
    .st-side__head { display: none; }
    .st-page .st-side__list { display: flex; overflow-x: auto; gap: 6px; scroll-snap-type: x mandatory; padding-bottom: 4px; }
    .st-page .st-side__list li { flex: 0 0 auto; scroll-snap-align: start; }
    .st-page .st-side__item { grid-template-columns: 30px auto auto; padding: 6px 10px 6px 6px; border: 1px solid var(--st-line); }
    .st-page .st-side__item .st-ava { width: 30px; height: 30px; }
    .st-page .st-side__txt small { display: none; }
}
@media (max-width: 560px) {
    .st-stage__info { grid-template-columns: 40px minmax(0, 1fr); }
    .st-stage__info .st-ava { width: 40px; height: 40px; }
    .st-out { grid-column: 1 / -1; justify-self: start; }
    .st-play { font-size: 14px; padding: 10px 16px 10px 12px; }
    .st-consent small { display: none; }
    .st-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .st-bar__run { animation: none; }
    .st-bar__track { overflow-x: auto; }
    .is-live .st-dot, .st-dot--on { animation: none; }
    .st-stage__thumb, .st-card__img, .st-play { transition: none; }
}
