:root {
  color-scheme: dark;
  --bg: #08090a;
  --panel: #0f1011;
  --surface: rgba(255,255,255,.025);
  --surface-hover: rgba(255,255,255,.045);
  --text: #f7f8f8;
  --secondary: #d0d6e0;
  --muted: #8a8f98;
  --dim: #62666d;
  --border: rgba(255,255,255,.08);
  --border-subtle: rgba(255,255,255,.05);
  --accent: #7170ff;
  --accent-dark: #5e6ad2;
  --green: #10b981;
  --suno: #f4a261;
  --video: #9b8cff;
  --image: #4cc9f0;
  --ai: #78d6a3;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv01','ss03';
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 68% 0%, rgba(94,106,210,.12), transparent 32rem),
    radial-gradient(circle at 12% 28%, rgba(76,201,240,.06), transparent 24rem),
    var(--bg);
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.017) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.017) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 74%);
}
button, input, select { font: inherit; }
a { color: inherit; }

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1200px) / 2));
  background: rgba(8,9,10,.82);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 510; text-decoration: none; letter-spacing: -.18px; }
.brand-mark { width: 24px; height: 24px; display: flex; align-items: flex-end; gap: 3px; padding: 4px; border: 1px solid var(--border); border-radius: 6px; background: rgba(255,255,255,.03); }
.brand-mark span { width: 3px; border-radius: 2px; background: linear-gradient(var(--accent), #8ca0ff); }
.brand-mark span:nth-child(1) { height: 7px; }
.brand-mark span:nth-child(2) { height: 14px; }
.brand-mark span:nth-child(3) { height: 10px; }
.live-state { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(16,185,129,.08), 0 0 14px rgba(16,185,129,.65); }

main { position: relative; width: min(1200px, calc(100% - 48px)); margin: auto; }
.hero { padding: 92px 0 72px; max-width: 960px; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 23px; color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.eyebrow span:first-child { color: #b6b5ff; }
.eyebrow span + span::before { content: ''; display: inline-block; width: 22px; height: 1px; margin-right: 14px; vertical-align: middle; background: var(--border); }
h1 { margin: 0; max-width: 900px; font-size: clamp(42px, 6.2vw, 76px); line-height: .98; letter-spacing: -.045em; font-weight: 510; }
h1 span { color: transparent; background: linear-gradient(100deg, #fff 5%, #a8b3ff 55%, #74d9ef); background-clip: text; -webkit-background-clip: text; }
.hero > p { max-width: 730px; margin: 30px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.65; font-weight: 300; }
.stats { display: flex; gap: 0; margin-top: 48px; width: fit-content; border: 1px solid var(--border-subtle); border-radius: 10px; background: var(--surface); overflow: hidden; }
.stats div { min-width: 145px; display: flex; flex-direction: column; gap: 5px; padding: 18px 22px; border-right: 1px solid var(--border-subtle); }
.stats div:last-child { border-right: 0; }
.stats strong { font-family: 'JetBrains Mono', monospace; font-size: 20px; font-weight: 500; }
.stats span { color: var(--dim); font-size: 12px; }

.dashboard { padding: 0 0 96px; }
.toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; }
.search { height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 13px; color: var(--muted); background: rgba(255,255,255,.022); border: 1px solid var(--border); border-radius: 8px; transition: border-color .2s, background .2s; }
.search:focus-within { border-color: rgba(113,112,255,.6); background: rgba(255,255,255,.035); box-shadow: 0 0 0 3px rgba(113,112,255,.08); }
.search svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.search input { min-width: 0; flex: 1; color: var(--text); background: none; border: 0; outline: 0; font-size: 14px; }
.search input::placeholder { color: var(--dim); }
kbd { padding: 2px 7px; color: var(--dim); border: 1px solid var(--border); border-radius: 4px; background: rgba(255,255,255,.03); font: 11px 'JetBrains Mono', monospace; }
.sort-control select { height: 48px; padding: 0 38px 0 14px; color: var(--secondary); background: #101112; border: 1px solid var(--border); border-radius: 8px; outline: none; cursor: pointer; }
.filters { display: flex; gap: 8px; padding: 20px 0 18px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: 0 0 auto; padding: 8px 11px; color: var(--muted); background: transparent; border: 1px solid var(--border-subtle); border-radius: 999px; font-size: 12px; cursor: pointer; transition: .2s ease; }
.filter span { margin-left: 5px; color: var(--dim); font-family: 'JetBrains Mono', monospace; font-size: 10px; }
.filter:hover { color: var(--text); border-color: var(--border); background: var(--surface); }
.filter.active { color: var(--text); background: rgba(113,112,255,.12); border-color: rgba(113,112,255,.4); }
.filter.active span { color: #aaa9ff; }
.result-meta { display: flex; justify-content: space-between; padding: 2px 2px 14px; color: var(--dim); font-size: 11px; font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .05em; }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.news-card { min-width: 0; display: flex; flex-direction: column; padding: 24px; background: var(--surface); border: 1px solid var(--border-subtle); border-radius: 10px; transition: transform .22s ease, background .22s ease, border-color .22s ease; }
.news-card:hover { transform: translateY(-2px); background: var(--surface-hover); border-color: var(--border); }
.card-topline { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.category-badge { padding: 4px 8px; border-radius: 999px; border: 1px solid currentColor; font: 10px 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .06em; }
.category-badge[data-category='suno'] { color: var(--suno); background: rgba(244,162,97,.07); }
.category-badge[data-category='video'] { color: var(--video); background: rgba(155,140,255,.07); }
.category-badge[data-category='bild'] { color: var(--image); background: rgba(76,201,240,.07); }
.category-badge[data-category='ki'] { color: var(--ai); background: rgba(120,214,163,.07); }
time { color: var(--dim); font: 11px 'JetBrains Mono', monospace; }
.news-card h2 { margin: 19px 0 12px; color: var(--text); font-size: 21px; line-height: 1.28; letter-spacing: -.025em; font-weight: 510; }
.summary { margin: 0; flex: 1; color: var(--muted); font-size: 14px; line-height: 1.7; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 19px; }
.tags span { color: var(--dim); font-size: 10px; padding: 3px 6px; border-radius: 4px; background: rgba(255,255,255,.03); border: 1px solid var(--border-subtle); }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 19px; margin-top: 20px; border-top: 1px solid var(--border-subtle); }
.source { min-width: 0; display: flex; align-items: center; gap: 7px; color: var(--dim); font-size: 11px; }
.source-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-dot { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: var(--green); }
.read-link { flex: 0 0 auto; color: var(--secondary); text-decoration: none; font-size: 12px; }
.read-link span { color: var(--accent); }
.read-link:hover { color: var(--text); }
.empty-state { padding: 70px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: 10px; }
.empty-state > div { color: var(--accent); font: 28px 'JetBrains Mono', monospace; }
.empty-state h2 { margin: 12px 0 6px; color: var(--secondary); font-size: 18px; font-weight: 510; }
.empty-state p { margin: 0; font-size: 13px; }
footer { position: relative; width: min(1200px, calc(100% - 48px)); margin: auto; display: flex; justify-content: space-between; gap: 24px; padding: 30px 0 42px; color: var(--dim); border-top: 1px solid var(--border-subtle); font-size: 11px; }
footer p { margin: 0; }
footer strong { color: var(--muted); font-weight: 510; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 760px) {
  .topbar { padding: 0 20px; }
  main, footer { width: min(100% - 32px, 1200px); }
  .hero { padding: 64px 0 52px; }
  .stats { width: 100%; }
  .stats div { min-width: 0; flex: 1; padding: 15px 12px; }
  .stats strong { font-size: 17px; }
  .stats span { font-size: 10px; }
  .toolbar { grid-template-columns: 1fr; }
  .sort-control select { width: 100%; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card { padding: 20px; }
  .result-meta span:last-child { display: none; }
  footer { flex-direction: column; }
}

@media (max-width: 420px) {
  .live-state span:last-child { display: none; }
  h1 { font-size: 39px; }
  .eyebrow span:first-child { display: none; }
  .eyebrow span + span::before { display: none; }
  .card-footer { align-items: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
