:root {
  --bg: #0b1120; --surface: #131c31; --border: #233152;
  --text: #f1f5f9; --muted: #94a3b8; --red: #ef4444;
  --blue: #3b82f6; --green: #10b981; --scale: 1;
}
body.light {
  --bg: #f1f5f9; --surface: #ffffff; --border: #cbd5e1;
  --text: #0f172a; --muted: #475569;
}
body.big-font { --scale: 1.22; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg); color: var(--text);
  font-size: calc(16px * var(--scale)); line-height: 1.5; padding-bottom: 70px;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

.top-bar { background: #0f172a; color: #cbd5e1; font-size: 13px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.top-flex { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.live-pill { background: rgba(239,68,68,0.2); color: #fca5a5; padding: 2px 10px; border-radius: 99px; font-weight: 700; }
select { background: #1e293b; color: #fff; border: 1px solid #334155; border-radius: 6px; padding: 2px 6px; }

header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 0; position: sticky; top: 0; z-index: 50; }
.head-flex { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.logo { background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; font-weight: 900; font-size: 20px; padding: 6px 12px; border-radius: 10px; display: inline-block; }
.age { background: rgba(0,0,0,0.25); font-size: 11px; padding: 2px 5px; border-radius: 4px; margin-left: 4px; }
.btn { background: var(--bg); border: 1px solid var(--border); padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: 14px; }
.btn-red { background: #ef4444; color: #fff; border: none; }

.ticker { background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 0; font-size: 14px; }
.ticker-tag { background: #ef4444; color: #fff; font-weight: 800; font-size: 11px; padding: 2px 7px; border-radius: 4px; margin-right: 8px; }

.socials { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-top: 16px; }
.soc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.soc-link { padding: 11px; border-radius: 10px; font-weight: 700; text-align: center; color: #fff; display: block; }

.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0; }
.tab { background: var(--surface); border: 1px solid var(--border); padding: 8px 14px; border-radius: 99px; white-space: nowrap; font-weight: 600; font-size: 14px; }
.tab.active { background: #ef4444; color: #fff; border-color: #ef4444; }

.grid { display: grid; grid-template-columns: 260px 1fr 290px; gap: 18px; }
.box { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.box h3 { font-size: 16px; margin-bottom: 12px; }
.row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.row:last-child { border-bottom: none; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; margin-bottom: 16px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.cat-tag { background: rgba(59,130,246,0.15); color: #60a5fa; padding: 2px 8px; border-radius: 6px; font-weight: 700; }
.card h2 { font-size: calc(20px * var(--scale)); margin-bottom: 10px; cursor: pointer; }
.card h2:hover { color: #60a5fa; }
.tldr { background: var(--bg); border-left: 3px solid #3b82f6; padding: 10px; border-radius: 0 8px 8px 0; font-size: 14px; margin-bottom: 10px; }

.input { width: 100%; padding: 9px 12px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); color: var(--text); margin-bottom: 10px; }
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 100; align-items: center; justify-content: center; padding: 16px; }
.modal-box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; max-width: 680px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 22px; }

.cookie { position: fixed; bottom: 14px; left: 14px; right: 14px; max-width: 860px; margin: 0 auto; background: #1e293b; color: #fff; border: 1px solid #475569; padding: 12px 16px; border-radius: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; z-index: 90; font-size: 13px; }
footer { margin-top: 30px; border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted); font-size: 13px; }

@media (max-width: 980px) { .grid { grid-template-columns: 1fr; } .soc-grid { grid-template-columns: repeat(2, 1fr); } }
