:root {
  --bg: #141210;
  --panel: #1d1a17;
  --panel-2: #272320;
  --line: #312c27;
  --text: #f1ece4;
  --muted: #a39a8e;
  --accent: #b69cff;
  --radius: 14px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}
body[data-tab="aus"] { --accent: #f2b544; }
body[data-tab="world"] { --accent: #4fd1c5; }
body[data-tab="uk"] { --accent: #5b9cf6; }
body[data-tab="us"] { --accent: #ff7a6b; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 Inter, system-ui, -apple-system, sans-serif; padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.wrap { max-width: 760px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
[hidden] { display: none !important; }

.top { position: sticky; top: 0; z-index: 5; background: rgba(20, 18, 16, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding-top: calc(10px + env(safe-area-inset-top)); }
.brand { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
h1 { font: 700 23px/1.1 var(--serif); margin: 0; letter-spacing: -.2px; }
h1 span { color: var(--accent); font-style: italic; font-weight: 600; }
.mark { width: 22px; height: 24px; vertical-align: -3px; margin-right: 8px; color: var(--text); }
.sub { color: var(--muted); font-size: 12px; white-space: nowrap; }
.tools { display: flex; gap: 8px; align-items: center; }
.chips { flex: 1; display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--panel); padding: 6px 13px; border-radius: 999px; cursor: pointer; font-size: 13.5px; color: var(--muted); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #141210; font-weight: 600; }
.searchbtn { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; cursor: pointer; }
.searchbtn svg { width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.searchrow { padding-bottom: 10px; }
.searchrow input { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; outline: none; }
.searchrow input:focus { border-color: var(--accent); }

h2 { font: 700 13px Inter, sans-serif; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin: 22px 0 6px; }
.empty { color: var(--muted); padding: 22px 0; text-align: center; }

/* lead (top story) cards */
.lead { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
.lead img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: var(--panel-2); }
.lead .body { padding: 12px 14px 13px; }
.lead h3 { font: 600 19px/1.25 var(--serif); margin: 4px 0 6px; }
.lead p { margin: 0; color: var(--muted); font-size: 13.5px; }
.count { display: inline-block; font-size: 11px; font-weight: 700; color: #141210; background: var(--accent); border-radius: 999px; padding: 1px 8px; margin-right: 6px; }
.also { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; display: grid; gap: 6px; }
.also a { display: grid; grid-template-columns: 96px 1fr; gap: 8px; font-size: 13px; color: var(--muted); }
.also b { color: var(--text); font-weight: 600; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.also span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* story rows */
.story { display: grid; grid-template-columns: 1fr 84px; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.story.noimg { grid-template-columns: 1fr; }
.story .src { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.story .src .sec { color: var(--accent); }
.story h3 { font: 600 16.5px/1.3 var(--serif); margin: 3px 0 4px; }
.story p { margin: 0; color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story img { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; background: var(--panel-2); }
.rel { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .5px; color: #141210; background: var(--accent); border-radius: 4px; padding: 0 5px; margin-right: 6px; vertical-align: 1px; }

/* releases strip */
.strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip a { flex: none; width: 230px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.strip .src { font-size: 11px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.strip b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font: 600 14.5px/1.3 var(--serif); margin-top: 3px; }
.strip span { display: block; color: var(--muted); font-size: 11.5px; margin-top: 4px; }

/* podcasts */
.show { display: grid; grid-template-columns: 56px 1fr; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; }
.show img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--panel-2); }
.show h3 { margin: 0; font-size: 15px; }
.show .by { color: var(--muted); font-size: 12px; }
.ep { grid-column: 1/-1; display: block; border-top: 1px solid var(--line); padding-top: 8px; }
.ep b { display: block; font-weight: 500; font-size: 14px; line-height: 1.3; }
.ep span { color: var(--muted); font-size: 12px; }

.more { display: block; width: 100%; margin: 14px 0; padding: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: var(--muted); cursor: pointer; }
.foot { color: var(--muted); font-size: 11.5px; margin-top: 22px; }

.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(29, 26, 23, .97); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.tabbar button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); cursor: pointer; padding: 4px 0; }
.tabbar svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabbar button.on { color: var(--text); }
.tabbar button.on svg { stroke: var(--accent); }
.lead .story-src { font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }
