/* RealDodos Videos (2026-11-27) – dunkles TV-/YouTube-Design, mobil zuerst */
:root {
  --bg: #0b0b10; --bg2: #13131b; --bg3: #1c1c27; --line: #ffffff14; --tx: #f1f1f5; --tx2: #a3a3b5;
  --acc: #ff4f3d; --acc2: #ff8a1f; --ok: #29d391; --r: 14px;
  --nav-h: 62px; --top-h: 60px; --side-w: 0px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 10px); }
body { margin: 0; background: var(--bg); color: var(--tx); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
p a, .hint a, .foot a { color: var(--acc2); }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
h1 { font-size: 22px; margin: 6px 0 14px; letter-spacing: -.01em; }
h2 { font-size: 17px; margin: 0; }
h2.sub { margin: 22px 0 10px; color: var(--tx2); font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--acc); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--acc2); outline-offset: 2px; }

/* Kopf */
.top { position: sticky; top: 0; z-index: 30; height: calc(var(--top-h) + var(--safe-t)); padding: var(--safe-t) 12px 0; display: flex; align-items: center; gap: 10px;
  background: linear-gradient(#0b0b10f2, #0b0b10e6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font-size: 16px; white-space: nowrap; }
.brand b { font-weight: 800; }
.search { flex: 1; min-width: 0; }
.search input { width: 100%; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); color: var(--tx); padding: 0 16px; font-size: 15px; outline: none; }
.search input:focus { border-color: var(--acc2); background: var(--bg3); }
.ic-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg2); flex-shrink: 0; display: grid; place-items: center; font-size: 17px; }
.ic-btn.on { border-color: var(--ok); box-shadow: 0 0 0 2px #29d39133 inset; }
.acc { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, var(--acc), var(--acc2)); flex-shrink: 0; }
.login { height: 38px; padding: 0 14px; border-radius: 999px; display: grid; place-items: center; border: 1px solid var(--acc2); color: var(--acc2); font-weight: 700; flex-shrink: 0; font-size: 14px; }
@media (max-width: 560px) { .brand span { display: none; } }

/* Navigation: unten am Handy, links ab 900 px */
.nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b); display: flex;
  background: #0b0b10f5; border-top: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--tx2); position: relative; min-width: 0; }
.nav a span { font-size: 19px; line-height: 1; filter: grayscale(.6); }
.nav a.on { color: var(--tx); }
.nav a.on span { filter: none; }
.nav a.on::after { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--acc), var(--acc2)); }
.nav em { position: absolute; top: 6px; left: calc(50% + 8px); font-style: normal; background: var(--acc); color: #fff; border-radius: 99px; font-size: 10px; padding: 0 5px; font-weight: 800; }
main { padding: 12px 0 calc(var(--nav-h) + var(--safe-b) + 20px); min-height: 70vh; }
.view { padding: 0 12px; }
@media (min-width: 900px) {
  :root { --side-w: 92px; }
  .nav { top: calc(var(--top-h) + var(--safe-t)); bottom: 0; right: auto; width: var(--side-w); height: auto; flex-direction: column; justify-content: flex-start; padding: 10px 0; border-top: 0; border-right: 1px solid var(--line); }
  .nav a { flex: 0 0 74px; font-size: 12px; }
  .nav a.on::after { top: 18%; bottom: 18%; left: 0; right: auto; width: 3px; height: auto; border-radius: 0 3px 3px 0; }
  main { margin-left: var(--side-w); padding: 18px 0 40px; }
  .view { padding: 0 24px; }
  .top { padding-left: 20px; padding-right: 20px; }
  .search { max-width: 640px; margin: 0 auto; }
}

/* Hero */
.hero { position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; max-height: 62vh; width: 100%; background: var(--bg2); margin-bottom: 18px; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #0b0b10 0%, #0b0b10cc 18%, transparent 60%), linear-gradient(90deg, #0b0b10aa, transparent 55%); }
.hero-txt { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.hero-txt small { color: var(--acc2); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.hero-txt strong { font-size: clamp(18px, 3.4vw, 34px); line-height: 1.15; max-width: 900px; text-shadow: 0 2px 12px #000a; }
.play { align-self: flex-start; margin-top: 4px; background: #fff; color: #111; font-weight: 800; border-radius: 999px; padding: 9px 18px; font-size: 14px; }
.hero:focus-visible .play, .hero:hover .play { background: var(--acc2); color: #fff; }
@media (min-width: 900px) { .hero { aspect-ratio: 21 / 8; } .hero-txt { padding: 30px; } }

/* Reihen */
.rail { margin: 0 0 22px; }
.rail-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.rail-h h2 { display: flex; align-items: center; gap: 8px; }
.mehr { color: var(--tx2); font-size: 13px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); }
.row { display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 290px); gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 8px; margin: 0 -12px; padding-left: 12px; padding-right: 12px; scrollbar-width: thin; scrollbar-color: #ffffff22 transparent; }
.row > * { scroll-snap-align: start; }
.row.row-short { grid-auto-columns: min(40vw, 170px); }
@media (min-width: 900px) { .row { margin: 0 -24px; padding-left: 24px; padding-right: 24px; grid-auto-columns: 300px; } .row.row-short { grid-auto-columns: 180px; } }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px 12px; }
.grid.grid-short { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.leer, .hint { color: var(--tx2); }
.leer { padding: 8px 0; }
.box { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 0 #ff4f3d88; animation: puls 1.6s infinite; }
@keyframes puls { 70% { box-shadow: 0 0 0 9px #ff4f3d00; } 100% { box-shadow: 0 0 0 0 #ff4f3d00; } }

/* Karten */
.card { display: flex; flex-direction: column; gap: 8px; min-width: 0; border-radius: var(--r); outline-offset: 3px; }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: linear-gradient(135deg, #1d1d2a, #262036); }
.thumb::before { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: #ffffff30; font-size: 30px; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.card:hover .thumb img, .card:focus-visible .thumb img { transform: scale(1.04); }
.card:focus-visible { outline: 3px solid var(--acc2); }
.is-short .thumb { aspect-ratio: 9 / 16; }
.badge { position: absolute; left: 7px; top: 7px; z-index: 1; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; padding: 3px 7px; border-radius: 6px; background: #000b; color: #fff; }
.b-youtube { background: #e00000d9; } .b-site { background: #ff7a1ae0; } .b-twitch-clip, .b-twitch-vod { background: #8a43f2e0; }
.b-live { background: var(--acc); } .b-pl { left: auto; right: 7px; top: auto; bottom: 7px; }
.is-short .badge { display: none; }
.prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #ffffff33; display: none; }
.prog i { display: block; height: 100%; width: 0; background: var(--acc); }
.card.has-prog .prog { display: block; }
.meta { display: flex; flex-direction: column; gap: 3px; padding: 0 2px; min-width: 0; }
.meta strong { font-size: 14.5px; font-weight: 650; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta small { color: var(--tx2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta time:not(:empty)::before { content: " · "; }
.is-short .meta strong { font-size: 13.5px; }

/* Kanäle */
.kanaele { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.kanal { display: flex; align-items: center; gap: 14px; background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.kanal img, .kanal .ph { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.kanal .ph { display: grid; place-items: center; font-size: 28px; background: linear-gradient(135deg, var(--acc), var(--acc2)); }
.kanal .ph.tw { background: #8a43f2; }
.kanal strong { display: block; font-size: 16px; }
.kanal small { color: var(--tx2); }
.kanal:hover, .kanal:focus-visible { border-color: var(--acc2); }
.kanal-kopf { display: flex; align-items: center; gap: 16px; margin: 6px 0 18px; }
.kanal-kopf img { width: 78px; height: 78px; border-radius: 50%; }
.kanal-kopf h1 { margin: 0 0 4px; }
.kanal-kopf p { margin: 0; color: var(--tx2); }
.zurueck { display: inline-block; color: var(--tx2); margin: 4px 0 6px; }

/* Player */
.player { position: fixed; inset: 0; z-index: 50; background: #050508; overflow-y: auto; overscroll-behavior: contain; padding-top: var(--safe-t); }
.p-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: #050508e8; }
.p-brand { color: var(--tx2); font-weight: 700; }
.p-wrap { display: grid; gap: 18px; padding: 0 0 calc(30px + var(--safe-b)); max-width: 1700px; margin: 0 auto; }
@media (min-width: 1100px) { .p-wrap { grid-template-columns: minmax(0, 1fr) 380px; padding: 0 24px 40px; } }
.stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; max-height: calc(100vh - 140px); margin: 0 auto; }
.stage.short { aspect-ratio: 9 / 16; width: auto; height: min(calc(100vh - 150px), 177.7vw); max-width: 100%; }
@media (min-width: 1100px) { .stage { border-radius: 16px; overflow: hidden; } }
.stage iframe, .stage video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 20px; color: #fff; }
.consent-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(.35) blur(2px); }
.consent > *:not(.consent-bg) { position: relative; }
.consent .big { width: 78px; height: 78px; border-radius: 50%; border: 0; background: var(--acc); color: #fff; font-size: 30px; box-shadow: 0 8px 30px #ff4f3d66; }
.consent .big:focus-visible { outline: 4px solid #fff; }
.consent p { max-width: 520px; margin: 0; font-size: 13px; color: #ddd; }
.consent label { font-size: 13px; color: #ccc; display: flex; gap: 6px; align-items: center; }
.p-info { padding: 0 14px; }
@media (min-width: 1100px) { .p-info { padding: 0; } }
.p-info h1 { font-size: 19px; margin: 14px 0 4px; }
.p-ch { color: var(--tx2); margin: 0 0 12px; }
.p-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pill { height: 38px; padding: 0 14px; border-radius: 999px; background: var(--bg3); border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.pill[aria-pressed="true"] { background: #ff4f3d26; border-color: var(--acc); color: #ffb3a8; }
.p-nav { margin-left: auto; display: flex; gap: 6px; }
.p-nav .pill { width: 44px; justify-content: center; font-size: 20px; padding: 0; }
.p-desc { color: var(--tx2); white-space: pre-line; font-size: 14px; max-height: 260px; overflow: auto; }
.p-side { padding: 0 14px; }
.p-side h2 { margin: 0 0 10px; }
.p-list { display: flex; flex-direction: column; gap: 10px; }
.p-list .card { flex-direction: row; gap: 10px; }
.p-list .thumb { width: 168px; flex-shrink: 0; }
.p-list .is-short .thumb { width: 84px; aspect-ratio: 9 / 16; }
.p-list .card.cur { background: var(--bg3); }
.qsel { position: absolute; right: 10px; top: 10px; z-index: 3; background: #000a; color: #fff; border: 1px solid #fff4; border-radius: 8px; height: 30px; font-size: 13px; }

.foot { margin: 30px 12px 0; padding: 18px 0; border-top: 1px solid var(--line); color: var(--tx2); font-size: 13px; }
@media (min-width: 900px) { .foot { margin: 30px 24px 0; } }
.foot .small { font-size: 12px; opacity: .8; }
.toast { position: fixed; z-index: 80; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + var(--safe-b) + 14px); background: #23232f; border: 1px solid var(--line); padding: 10px 16px; border-radius: 12px; box-shadow: 0 10px 30px #0008; max-width: calc(100vw - 30px); }
body.p-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
