/* Tokens portados de bizkaia-now (web/src/styles/tokens.css): solo valores. */
:root {
  color-scheme: light dark;
  --bg: #efeae0;
  --surface-1: #f2eee5;
  --surface-2: #ebe5d9;
  --surface-3: #e6e0d3;
  --text: #15130e;
  --text-muted: #625d51;
  --line: #ddd6c8;
  --line-strong: #857d6a;
  --accent: #c20f1e;
  --accent-text: #c20f1e;
  --on-accent: #efeae0;
  --accent-container: #f0d3cf;
  --on-accent-container: #a50c19;
  --error: #a50c19;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15130e;
    --surface-1: #1e1b15;
    --surface-2: #27241d;
    --surface-3: #312d25;
    --text: #e6e1d5;
    --text-muted: #a39b86;
    --line: #3c372d;
    --line-strong: #8a826f;
    --accent: #ff3b49;
    --accent-text: #ff6a6a;
    --on-accent: #15130e;
    --accent-container: #551014;
    --on-accent-container: #ffb3b0;
    --error: #ff6a6a;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
main, .top { max-width: 880px; margin: 0 auto; padding: 0 16px; }
.top { padding-top: 16px; padding-bottom: 8px; }
.brand { font-weight: 700; color: var(--accent-text); text-decoration: none; }
a { color: var(--accent-text); }
h1 { font-size: 1.6rem; margin: 8px 0; }
h2 { font-size: 1.15rem; margin: 20px 0 6px; }
.muted { color: var(--text-muted); font-size: 0.9rem; }

.card { background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin: 16px 0; }
.narrow { max-width: 520px; margin: 48px auto; }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.row input { flex: 1 1 260px; }

input[type="text"], input[type="search"] {
  width: 100%; padding: 10px 12px; font: inherit; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 6px;
}
button, .btn {
  display: inline-block; padding: 10px 14px; font: inherit; cursor: pointer; text-decoration: none;
  color: var(--on-accent); background: var(--accent); border: 0; border-radius: 6px;
}
.btn { background: var(--surface-3); color: var(--text); border: 1px solid var(--line-strong); }

.videos { list-style: none; padding: 0; margin: 12px 0; }
.video {
  display: flex; gap: 12px; align-items: center; padding: 8px; margin-bottom: 8px;
  color: var(--text); text-decoration: none; background: var(--surface-1);
  border: 1px solid var(--line); border-radius: 8px;
}
.video img { width: 160px; height: 90px; object-fit: cover; border-radius: 4px; flex: none; }
.video .meta { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.badge { padding: 2px 8px; font-size: 0.8rem; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line); white-space: nowrap; }
.s-listo { background: var(--accent-container); color: var(--on-accent-container); }
.s-error { color: var(--error); border-color: var(--error); }

.alert { padding: 10px 12px; border-radius: 6px; background: var(--accent-container); color: var(--on-accent-container); }
.alert.error { border: 1px solid var(--error); }
.alert pre { white-space: pre-wrap; word-break: break-word; }

.player { margin: 12px 0; max-width: 640px; }
.player img { width: 100%; height: auto; border-radius: 8px; display: block; }
.player iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; }

.tabs { display: flex; gap: 4px; margin-top: 16px; border-bottom: 1px solid var(--line); }
.tabs button { background: transparent; color: var(--text-muted); border-radius: 6px 6px 0 0; }
.tabs button[aria-selected="true"] { color: var(--text); background: var(--surface-2); }
.panel[hidden] { display: none; }
.tldr { font-size: 1.05rem; }
blockquote { margin: 8px 0; padding-left: 12px; border-left: 3px solid var(--accent); color: var(--text-muted); }
.ts { font-variant-numeric: tabular-nums; font-size: 0.9rem; }

details { margin: 8px 0; }
pre { white-space: pre-wrap; word-break: break-word; background: var(--surface-2); padding: 10px; border-radius: 6px; }

@media (max-width: 600px) {
  .video { flex-wrap: wrap; }
  .video img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}
