/* ==========================================================================
   KI-Radar — Nächtlicher Nachrichten-Leitstand
   Tinte, warmes Weiß, ein Signal-Amber. Ruhige Dichte, keine Karten-Deko.
   ========================================================================== */

:root {
  --bg: #0a0c10;
  --bg-raised: #10131a;
  --bg-hover: #151924;
  --bg-active: #1a1f2c;
  --line: rgba(236, 231, 220, 0.08);
  --line-strong: rgba(236, 231, 220, 0.16);
  --text: #ece7dc;
  --text-dim: #a09a8d;
  --text-faint: #7e796d;
  --accent: #f0b03f;
  --accent-bright: #ffc95c;
  --accent-soft: rgba(240, 176, 63, 0.13);
  --accent-line: rgba(240, 176, 63, 0.35);
  --green: #8fbf7f;
  --red: #e2705c;
  --font-sans: 'Schibsted Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;
  --sidebar-w: 264px;
  --radius: 10px;
  --shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.7);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { height: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-y: scroll;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1100px 500px at 75% -10%, rgba(240, 176, 63, 0.05), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(90, 120, 190, 0.05), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

::selection { background: var(--accent); color: #14100a; }

a { color: inherit; }

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input, select {
  font-family: inherit;
  color: var(--text);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.app { display: flex; position: relative; z-index: 1; }

.sidebar {
  width: var(--sidebar-w);
  position: fixed;
  inset: 0 auto 0 0;
  padding: 26px 18px 18px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 26px;
  background: rgba(10, 12, 16, 0.7);
  backdrop-filter: blur(8px);
  z-index: 40;
  overflow-y: auto;
}

.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  padding: 0 40px 120px;
}

.topbar {
  max-width: 880px;
  margin: 0 auto;
  padding: 34px 0 18px;
  position: relative;
}

.view {
  max-width: 880px;
  margin: 0 auto;
  outline: none;
}

/* --------------------------------------------------------------------------
   Brand — Radar-Sweep
   -------------------------------------------------------------------------- */

.brand { display: flex; align-items: center; gap: 12px; padding: 0 6px; }

.brand-mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  position: relative;
  flex: none;
  background:
    radial-gradient(circle at center, rgba(240, 176, 63, 0.12) 0 18%, transparent 20%),
    linear-gradient(var(--line) 1px, transparent 1px) center / 100% 50%,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) center / 50% 100%;
  overflow: hidden;
}

.brand-mark::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 295deg, rgba(240, 176, 63, 0.02) 300deg, rgba(240, 176, 63, 0.55) 358deg, var(--accent) 360deg);
  animation: radar-sweep 4.5s linear infinite;
}

.brand-mark::after {
  content: '';
  position: absolute;
  width: 6px; height: 6px;
  top: 9px; right: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px 1px rgba(240, 176, 63, 0.7);
  animation: radar-blip 4.5s linear infinite;
}

@keyframes radar-sweep { to { transform: rotate(360deg); } }
@keyframes radar-blip {
  0%, 12% { opacity: 0; }
  16%, 40% { opacity: 1; }
  75%, 100% { opacity: 0; }
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 15px;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1px;
}

/* --------------------------------------------------------------------------
   Sidebar-Navigation
   -------------------------------------------------------------------------- */

.nav { display: flex; flex-direction: column; gap: 2px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  text-align: left;
  width: 100%;
  transition: background 0.15s, color 0.15s;
}

.nav-item svg { width: 17px; height: 17px; flex: none; }

.nav-item:hover { background: var(--bg-hover); color: var(--text); }

.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent-bright);
  font-weight: 700;
}

.nav-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-faint);
  background: var(--bg-active);
  border-radius: 99px;
  padding: 1px 7px;
}

.nav-item.active .nav-badge { background: rgba(240, 176, 63, 0.18); color: var(--accent-bright); }

.side-section { display: flex; flex-direction: column; gap: 10px; }

.side-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  padding: 0 6px;
}

.side-bottom { margin-top: auto; }

.status-line {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-faint);
  padding: 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; }
.status-dot.warn { background: var(--accent); }

/* --------------------------------------------------------------------------
   Chips
   -------------------------------------------------------------------------- */

.chip-col { display: flex; flex-direction: column; gap: 2px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s;
  text-align: left;
}

.chip:hover { background: var(--bg-hover); color: var(--text); }

.chip.active { background: var(--accent-soft); color: var(--accent-bright); }

.chip .count { margin-left: auto; font-size: 10px; color: var(--text-faint); }
.chip.active .count { color: var(--accent); }

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip-row .chip {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 5px 12px;
}

.chip-row .chip.active { border-color: var(--accent-line); }

/* --------------------------------------------------------------------------
   Topbar
   -------------------------------------------------------------------------- */

.top-date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.top-row { display: flex; align-items: flex-end; gap: 16px; }

.top-title { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }

.top-sub { color: var(--text-dim); font-size: 14px; margin-top: 6px; }

.top-sub .new-hint { color: var(--accent-bright); font-weight: 600; }

.top-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.searchbox { position: relative; }

.searchbox input {
  width: 210px;
  padding: 8px 12px 8px 34px;
  font-size: 13.5px;
  transition: width 0.2s, border-color 0.2s;
}

.searchbox input:focus { width: 260px; border-color: var(--accent-line); outline: none; }

.searchbox svg {
  position: absolute;
  left: 11px; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  color: var(--text-faint);
  pointer-events: none;
}

.filters-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  transition: all 0.15s;
  white-space: nowrap;
}

.btn svg { width: 15px; height: 15px; }

.btn:hover { color: var(--text); border-color: var(--line-strong); background: var(--bg-hover); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #171207;
  font-weight: 700;
}

.btn-primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); color: #171207; }

.btn-icon {
  padding: 8px;
  border-radius: 8px;
  color: var(--text-dim);
  border: 1px solid var(--line);
  display: inline-flex;
  transition: all 0.15s;
}

.btn-icon svg { width: 16px; height: 16px; }
.btn-icon:hover { color: var(--text); background: var(--bg-hover); }
.btn-icon.spinning svg { animation: spin 0.9s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   Feed
   -------------------------------------------------------------------------- */

.day-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 30px 0 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}

.day-header::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.day-header .day-count { color: var(--text-faint); }

.row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 0 14px;
  padding: 16px 10px 16px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s;
  animation: row-in 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 26ms);
}

@keyframes row-in {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: none; }
}

.row:hover { background: var(--bg-hover); }

.row-dot { padding-top: 8px; display: flex; justify-content: center; }

.row-dot i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(240, 176, 63, 0.6);
}

.row.read .row-dot i { background: transparent; box-shadow: none; }

.row-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.row-meta .src { color: var(--text-dim); font-weight: 500; }
.row-meta .kind { display: inline-flex; align-items: center; gap: 4px; }
.row-meta .kind svg { width: 11px; height: 11px; }
.row-meta .kind.video { color: var(--red); }
.row-meta .kind.podcast { color: var(--green); }

.row-title {
  font-size: 16.5px;
  font-weight: 650;
  line-height: 1.32;
  letter-spacing: -0.01em;
  margin-top: 5px;
}

.row.read .row-title { color: var(--text-dim); font-weight: 500; }

.row-title a { text-decoration: none; }
.row-title a:hover { color: var(--accent-bright); }

.row-summary {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.55;
  margin-top: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.row.expanded .row-summary { -webkit-line-clamp: unset; }

.row-thumb {
  width: 108px; height: 72px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
  margin-top: 4px;
  background: var(--bg-raised);
}

.row-actions {
  grid-column: 2 / -1;
  display: none;
  gap: 6px;
  margin-top: 12px;
}

.row.expanded .row-actions { display: flex; flex-wrap: wrap; }

.row-actions .btn { font-size: 12px; padding: 6px 11px; }

.btn.saved-active { color: var(--accent-bright); border-color: var(--accent-line); background: var(--accent-soft); }

.load-more { display: flex; justify-content: center; padding: 28px 0; }

/* Re-Render derselben Ansicht: keine Einzugs-Animation wiederholen */
.no-anim .row,
.no-anim .video-card { animation: none; }

/* --------------------------------------------------------------------------
   Briefing
   -------------------------------------------------------------------------- */

.briefing-hero {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin-top: 8px;
  background: linear-gradient(140deg, rgba(240, 176, 63, 0.07), transparent 45%);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.briefing-hero h2 { font-size: 19px; font-weight: 750; letter-spacing: -0.01em; }
.briefing-hero p { color: var(--text-dim); font-size: 13.5px; margin-top: 4px; }
.briefing-hero .btn-primary { margin-left: auto; }

.brief-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 14px;
  padding: 16px 6px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.brief-num {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
  font-weight: 600;
  text-align: right;
}

.brief-title { font-size: 15.5px; font-weight: 650; line-height: 1.35; }
.brief-title a { text-decoration: none; }
.brief-title a:hover { color: var(--accent-bright); }
.brief-sub { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }
.brief-summary { color: var(--text-dim); font-size: 13px; margin-top: 4px; line-height: 1.5; }

/* --------------------------------------------------------------------------
   Video-Grid
   -------------------------------------------------------------------------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px 18px;
  margin-top: 22px;
}

.video-card {
  cursor: pointer;
  border-radius: var(--radius);
  animation: row-in 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 30ms);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-raised);
}

.video-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.video-card:hover .video-thumb img { transform: scale(1.045); }

.video-thumb .play-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8, 9, 12, 0.25);
  opacity: 0;
  transition: opacity 0.2s;
}

.video-card:hover .play-badge { opacity: 1; }

.play-badge span {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #171207;
}

.play-badge svg { width: 18px; height: 18px; margin-left: 2px; }

.video-card .unread-pip {
  position: absolute;
  top: 8px; left: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(240, 176, 63, 0.8);
}

.video-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card.read .video-title { color: var(--text-dim); font-weight: 500; }

.video-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 5px;
}

/* --------------------------------------------------------------------------
   Audio / Gassi-Modus
   -------------------------------------------------------------------------- */

.audio-hero {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  margin-top: 10px;
  background:
    radial-gradient(600px 220px at 20% 0%, rgba(240, 176, 63, 0.08), transparent 65%),
    var(--bg-raised);
}

.audio-hero h2 { font-size: 20px; font-weight: 750; }
.audio-hero > p { color: var(--text-dim); font-size: 14px; margin-top: 6px; max-width: 520px; }

.audio-starts { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

.player-panel {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  background: var(--bg-raised);
}

.player-now {
  display: flex;
  gap: 18px;
  align-items: center;
}

.player-info { min-width: 0; flex: 1; }

.player-pos {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.player-title { font-size: 17px; font-weight: 700; line-height: 1.3; margin-top: 6px; }

.player-src { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); margin-top: 5px; text-transform: uppercase; letter-spacing: 0.06em; }

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
}

.pc-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--text-dim);
  transition: all 0.15s;
}

.pc-btn svg { width: 18px; height: 18px; }
.pc-btn:hover { color: var(--text); border-color: var(--text-faint); }

.pc-play {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: #171207;
  display: grid;
  place-items: center;
  border: none;
  transition: transform 0.15s, box-shadow 0.3s;
}

.pc-play svg { width: 26px; height: 26px; margin-left: 2px; }
.pc-play svg.pause-ic { margin-left: 0; }
.pc-play:hover { transform: scale(1.05); }

.pc-play.playing {
  animation: glow-pulse 2.4s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240, 176, 63, 0.45); }
  50% { box-shadow: 0 0 0 16px rgba(240, 176, 63, 0); }
}

.player-opts {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 22px;
  flex-wrap: wrap;
}

.rate-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid var(--line);
  color: var(--text-dim);
  transition: all 0.15s;
}

.rate-pill:hover { color: var(--text); }
.rate-pill.active { background: var(--accent-soft); color: var(--accent-bright); border-color: var(--accent-line); }

.audio-progress {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-faint);
}

.audio-progress .bar {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: var(--bg-active);
  overflow: hidden;
  cursor: pointer;
}

.audio-progress .bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  width: 0%;
  transition: width 0.3s linear;
}

.queue-list { margin-top: 10px; }

.queue-item {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 12px;
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  align-items: center;
  font-size: 13.5px;
  color: var(--text-dim);
}

.queue-item:hover { background: var(--bg-hover); color: var(--text); }
.queue-item.current { color: var(--accent-bright); background: var(--accent-soft); }
.queue-item .qi-num { font-family: var(--font-mono); font-size: 11px; text-align: right; color: var(--text-faint); }
.queue-item.current .qi-num { color: var(--accent); }
.queue-item .qi-src { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; color: var(--text-faint); }

.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  width: 16px;
}

.eq i { width: 3px; background: var(--accent); border-radius: 1px; animation: eq-b 0.9s ease-in-out infinite; }
.eq i:nth-child(1) { height: 40%; animation-delay: -0.3s; }
.eq i:nth-child(2) { height: 100%; animation-delay: -0.15s; }
.eq i:nth-child(3) { height: 65%; }

@keyframes eq-b {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

.eq.paused i { animation-play-state: paused; }

.section-h {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 36px 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.section-h .sub { font-size: 12px; color: var(--text-faint); font-weight: 400; font-family: var(--font-mono); }

/* --------------------------------------------------------------------------
   Mini-Player (unten)
   -------------------------------------------------------------------------- */

#minibar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(calc(-50% + var(--sidebar-w) / 2));
  z-index: 60;
  width: min(560px, calc(100vw - var(--sidebar-w) - 48px));
  display: none;
}

#minibar.visible { display: block; animation: rise-in 0.3s cubic-bezier(0.2, 0.7, 0.3, 1); }

@keyframes rise-in {
  from { opacity: 0; transform: translateX(calc(-50% + var(--sidebar-w) / 2)) translateY(14px); }
}

.minibar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(20, 24, 32, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
}

.minibar-inner .mb-title {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.minibar-inner .mb-sub { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); text-transform: uppercase; }

.mb-btn { padding: 7px; border-radius: 8px; color: var(--text-dim); display: inline-flex; }
.mb-btn svg { width: 16px; height: 16px; }
.mb-btn:hover { color: var(--text); background: var(--bg-hover); }
.mb-btn.mb-play { color: var(--accent-bright); }

/* --------------------------------------------------------------------------
   Speed-Modus
   -------------------------------------------------------------------------- */

.speed-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 9, 12, 0.97);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  animation: fade-in 0.25s ease;
}

@keyframes fade-in { from { opacity: 0; } }

.speed-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
}

.speed-progress {
  flex: 1;
  height: 4px;
  background: var(--bg-active);
  border-radius: 99px;
  overflow: hidden;
}

.speed-progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.25s ease;
}

.speed-count { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }

.speed-stage {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 12px 22px 30px;
  overflow: hidden;
}

.speed-card {
  width: min(620px, 100%);
  will-change: transform, opacity;
}

.speed-card.anim-in { animation: card-in 0.32s cubic-bezier(0.2, 0.7, 0.3, 1); }
.speed-card.fly-left { animation: fly-left 0.26s ease-in forwards; }
.speed-card.fly-right { animation: fly-right 0.26s ease-in forwards; }

@keyframes card-in {
  from { opacity: 0; transform: translateX(46px) rotate(0.8deg); }
}
@keyframes fly-left {
  to { opacity: 0; transform: translateX(-120px) rotate(-2deg); }
}
@keyframes fly-right {
  to { opacity: 0; transform: translateX(120px) rotate(2deg); }
}

.speed-card .sc-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  display: flex;
  gap: 12px;
}

.speed-card .sc-meta .dim { color: var(--text-faint); }

.speed-card h2 {
  font-size: clamp(22px, 4.2vw, 34px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin-top: 14px;
}

.speed-card .sc-summary {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.65;
  margin-top: 16px;
  max-height: 210px;
  overflow: hidden;
}

.speed-card .sc-img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-top: 18px;
}

.speed-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 22px calc(26px + env(safe-area-inset-bottom));
  flex-wrap: wrap;
}

.speed-hint {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-faint);
  padding-bottom: 14px;
}

.speed-hint kbd {
  font-family: inherit;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 1px 5px;
  margin: 0 2px;
}

.speed-done {
  text-align: center;
  max-width: 420px;
}

.speed-done .big { font-size: 44px; }
.speed-done h2 { font-size: 26px; font-weight: 800; margin-top: 14px; }
.speed-done p { color: var(--text-dim); margin-top: 10px; }
.speed-done .row-actions-c { display: flex; gap: 10px; justify-content: center; margin-top: 24px; }

/* --------------------------------------------------------------------------
   Overlays: Reader & Video
   -------------------------------------------------------------------------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(6, 7, 10, 0.82);
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  padding: 24px;
  animation: fade-in 0.2s ease;
}

.video-modal { width: min(960px, 100%); }

.video-modal .vm-frame {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #000;
  box-shadow: var(--shadow);
}

.video-modal iframe { width: 100%; height: 100%; border: 0; display: block; }

.video-modal .vm-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.video-modal .vm-title { font-weight: 700; font-size: 15px; flex: 1; min-width: 0; }

.reader {
  width: min(700px, 100%);
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 36px 40px 44px;
  box-shadow: var(--shadow);
}

.reader .rd-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.reader h1 { font-size: 25px; font-weight: 800; line-height: 1.25; letter-spacing: -0.015em; margin: 12px 0 4px; }

.reader .rd-actions { display: flex; gap: 8px; margin: 18px 0 8px; flex-wrap: wrap; }

.reader .rd-body { margin-top: 14px; }

.reader .rd-body p {
  font-size: 16px;
  line-height: 1.75;
  color: #d9d4c8;
  margin: 0 0 18px;
}

.reader .rd-body p.rd-h { font-weight: 750; font-size: 18px; color: var(--text); margin-top: 26px; }

.reader .rd-loading { display: flex; align-items: center; gap: 12px; color: var(--text-dim); padding: 20px 0; }

.spinner {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
  flex: none;
}

/* --------------------------------------------------------------------------
   Leere Zustände / Laden
   -------------------------------------------------------------------------- */

.empty {
  text-align: center;
  padding: 90px 20px;
  color: var(--text-dim);
}

.empty .e-icon { font-size: 34px; margin-bottom: 14px; }
.empty h3 { font-weight: 700; color: var(--text); font-size: 17px; }
.empty p { font-size: 13.5px; margin-top: 6px; }
.empty .btn { margin-top: 18px; }

.skel-row {
  height: 74px;
  border-radius: 8px;
  margin: 14px 0;
  background: linear-gradient(100deg, var(--bg-raised) 40%, var(--bg-active) 50%, var(--bg-raised) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}

@keyframes shimmer { to { background-position: -200% 0; } }

.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(calc(-50% + var(--sidebar-w) / 2));
  background: var(--bg-active);
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  z-index: 120;
  animation: rise-fade 2.2s ease forwards;
  pointer-events: none;
}

@keyframes rise-fade {
  0% { opacity: 0; transform: translateX(calc(-50% + var(--sidebar-w) / 2)) translateY(10px); }
  12%, 82% { opacity: 1; transform: translateX(calc(-50% + var(--sidebar-w) / 2)) translateY(0); }
  100% { opacity: 0; }
}

/* --------------------------------------------------------------------------
   Mobile Tab-Bar
   -------------------------------------------------------------------------- */

.tabbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  background: rgba(12, 14, 19, 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 2px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-faint);
  border-radius: 10px;
  position: relative;
}

.tab-item svg { width: 20px; height: 20px; }
.tab-item.active { color: var(--accent-bright); }

.tab-item .tab-badge {
  position: absolute;
  top: 3px; right: calc(50% - 20px);
  min-width: 15px; height: 15px;
  border-radius: 99px;
  background: var(--accent);
  color: #171207;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

/* --------------------------------------------------------------------------
   Speed-FAB (nur mobil) & Sichtbarkeits-Utilities
   -------------------------------------------------------------------------- */

.fab {
  display: none;
  position: fixed;
  right: 16px;
  bottom: calc(78px + env(safe-area-inset-bottom));
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #171207;
  place-items: center;
  z-index: 65;
  box-shadow: 0 10px 30px -6px rgba(240, 176, 63, 0.45);
  transition: bottom 0.25s ease, transform 0.15s;
}

.fab svg { width: 24px; height: 24px; }
.fab:active { transform: scale(0.93); }

body.has-minibar .fab { bottom: calc(148px + env(safe-area-inset-bottom)); }

.mobile-only { display: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .main { padding: 0 26px 130px; }
}

@media (max-width: 920px) {
  .sidebar { display: none; }
  .desktop-only { display: none !important; }
  .mobile-only { display: inline-flex; }
  .fab { display: grid; }
  .main { margin-left: 0; padding: 0 16px 150px; }
  .tabbar { display: grid; }
  .topbar { padding-top: 20px; }
  .top-title { font-size: 24px; }
  .top-actions { width: 100%; margin-left: 0; margin-top: 14px; }
  .top-row { flex-wrap: wrap; }
  .searchbox { flex: 1; }
  .searchbox input { width: 100%; }
  .searchbox input:focus { width: 100%; }
  .row { grid-template-columns: 12px 1fr; }
  .row-thumb { display: none; }
  .filters-row { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; margin: 14px -16px 0; padding: 0 16px; }
  .filters-row::-webkit-scrollbar { display: none; }
  .filters-row .chip { flex: none; }
  #minibar {
    transform: translateX(-50%);
    width: calc(100vw - 20px);
    bottom: calc(64px + env(safe-area-inset-bottom));
  }
  .mb-btn { padding: 11px; }
  .minibar-inner { padding: 8px 10px; }
  @keyframes rise-in { from { opacity: 0; transform: translateX(-50%) translateY(14px); } }
  .toast { transform: translateX(-50%); bottom: 140px; }
  @keyframes rise-fade {
    0% { opacity: 0; transform: translateX(-50%) translateY(10px); }
    12%, 82% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; }
  }
  .player-panel { padding: 18px; }
  .briefing-hero .btn-primary { margin-left: 0; }
  .reader { padding: 26px 20px 34px; }
  .audio-starts .btn { flex: 1 1 100%; justify-content: center; padding: 12px; font-size: 14px; }
  .pc-play { width: 84px; height: 84px; }
  .pc-btn { width: 54px; height: 54px; }
}

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