/* Studio:Channel84 — public site
   Night-plum ground, Studio magenta, neon cyan. Podcasts are FM frequencies, video channels are TV stations. */

@font-face { font-family: 'Audiowide'; src: url('/fonts/audiowide-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/instrument-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/instrument-sans-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/instrument-sans-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/instrument-sans-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/instrument-sans-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #1B0820; --bg-deep: #12051A; --panel: #241029; --panel-2: #2E1235;
  --ink: #FBEFF8; --ink-strong: #FFFFFF; --soft: #E4CDE0; --muted: #C9A9C4;
  --magenta: #A0006E; --pink: #FF7BC4; --cyan: #4DE8E0; --twitch: #9146FF; --youtube: #FF3B3B;
  --line: rgba(251, 239, 248, 0.12); --line-2: rgba(251, 239, 248, 0.2);
  --display: 'Audiowide', 'Instrument Sans', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1240px; --radius: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--body); }
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pink); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--ink-strong); line-height: 1.15; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.display { font-family: var(--display); font-weight: 400; letter-spacing: -0.005em; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; z-index: 20; }
.skip:focus { top: 12px; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 16px/1 var(--body);
  text-decoration: none; border: 2px solid transparent; cursor: pointer; background: none; color: var(--ink); }
.btn--white { background: #FFF; color: var(--bg); font-weight: 700; }
.btn--white:hover { background: var(--soft); color: var(--bg); }
.btn--line { border-color: rgba(251, 239, 248, 0.5); }
.btn--line:hover { border-color: var(--ink); color: var(--ink); }
.btn--magenta { background: var(--magenta); color: #FFF; }
.btn--magenta:hover { background: #C2188A; color: #FFF; }
.btn--twitch { background: var(--twitch); color: #FFF; min-height: 44px; }
.btn--youtube { background: #CC0000; color: #FFF; min-height: 44px; }
.btn--twitch:hover, .btn--youtube:hover { color: #FFF; filter: brightness(1.1); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn--accent { background: var(--accent, var(--pink)); color: var(--accent-ink, #1B0820); font-weight: 700; }
.btn--accent:hover { color: var(--accent-ink, #1B0820); filter: brightness(1.08); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- header */
.site-head { border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 5; }
.site-head__in { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 52px; height: 52px; border-radius: 10px; }
.brand span { font: 20px var(--display); color: var(--ink); }
.nav { display: flex; gap: 24px; margin-left: auto; font-weight: 500; font-size: 16px; }
.nav a { text-decoration: none; padding: 6px 0; }
.nav a[aria-current="page"] { color: var(--pink); box-shadow: inset 0 -2px 0 var(--pink); }
.search-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--magenta); color: #FFF; }
.search-link:hover { color: #FFF; background: #C2188A; }
.menu-btn { display: none; margin-left: auto; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line-2); background: none; color: var(--ink); font: 600 16px var(--body); }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-deep); flex-direction: column; gap: 0; padding: 8px 24px 20px; border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; font-size: 19px; border-bottom: 1px solid var(--line); }
  .search-link { margin-left: 0; }
}

/* ---------- sections */
.section { padding-top: 72px; padding-bottom: 24px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { font: clamp(30px, 3.4vw, 44px) var(--display); }
.section-head p { max-width: 32em; color: var(--muted); }
.page-head { padding-top: 56px; padding-bottom: 8px; }
.page-head h1 { font: clamp(36px, 4.6vw, 60px) var(--display); }
.page-head p { margin-top: 14px; max-width: 40em; font-size: 19px; color: var(--soft); }

/* ---------- hero + channel guide */
.hero { background: linear-gradient(180deg, #2A0B30 0%, var(--bg) 100%); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero h1 { font: clamp(36px, 4.1vw, 58px)/1.06 var(--display); text-shadow: 0 0 28px rgba(255, 79, 176, 0.55); overflow-wrap: break-word; }
.hero p { margin: 24px 0; max-width: 34em; font-size: 19px; color: var(--soft); }
@media (max-width: 980px) { .hero__in { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; } .hero h1 { font-size: clamp(36px, 8vw, 58px); } }

.guide { background: var(--bg-deep); border: 1px solid rgba(77, 232, 224, 0.35); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); min-width: 0; }
.guide__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; background: linear-gradient(90deg, var(--magenta), #5A1A8C); }
.guide__head h2 { font: 20px var(--display); }
.guide__head span { font-size: 14px; color: #FFE6F5; }
.guide__row { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 14px 22px; border-bottom: 1px solid rgba(251, 239, 248, 0.08); }
.guide__row > :first-child, .guide__row > :last-child { padding-top: 2px; }
.guide__row > a:last-child { font-weight: 600; font-size: 15px; }
.guide__row:last-child { border-bottom: 0; }
.guide__row:hover { background: rgba(255, 255, 255, 0.04); }
.guide__when { font-size: 14px; color: var(--muted); }
.guide__show { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; font-weight: 600; color: var(--accent); }
.guide__meta { font-weight: 500; color: var(--muted); }
.guide__meta::before { content: '·'; margin-right: 8px; }
.guide__note { font-size: 15px; color: var(--soft); }
.guide__show::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.guide__title { font-weight: 600; color: var(--ink-strong); line-height: 1.35; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.guide__title a { text-decoration: none; }
.guide__row--live { background: rgba(255, 59, 59, 0.08); }
.guide__row--next { background: rgba(77, 232, 224, 0.07); }
.guide__row--next .guide__when { color: var(--cyan); font-weight: 600; }
.guide__empty { padding: 22px; color: var(--muted); }
@media (max-width: 560px) { .guide__row { grid-template-columns: 1fr; gap: 4px; } }

.on-air { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: #E0182D; color: #FFF; font-size: 13px; font-weight: 700; }
.on-air::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #FFF; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .on-air::before { animation: none; } }

/* ---------- the FM dial (podcasts) */
.fm { position: relative; height: 46px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(180deg, #2B1A08 0%, #1E1206 100%); border: 1px solid rgba(255, 216, 77, 0.25); }
.fm::before { content: ''; position: absolute; inset: 8px 10px 18px; opacity: 0.7;
  background: repeating-linear-gradient(90deg, rgba(255, 233, 163, 0.55) 0 1px, transparent 1px 8px),
              repeating-linear-gradient(90deg, rgba(255, 233, 163, 0.9) 0 2px, transparent 2px 40px);
  -webkit-mask: linear-gradient(180deg, #000 55%, transparent 56%, transparent 100%); mask: linear-gradient(180deg, #000 55%, transparent 56%); }
.fm__scale { position: absolute; left: 10px; right: 10px; bottom: 3px; display: flex; justify-content: space-between; font: 10px/1 var(--body); color: rgba(255, 233, 163, 0.75); }
.fm__needle { position: absolute; top: 4px; bottom: 4px; width: 3px; margin-left: -1px; border-radius: 2px; background: var(--accent, #FF3B3B); box-shadow: 0 0 10px var(--accent, #FF3B3B); }
.fm-freq { font: 30px var(--display); color: var(--accent); letter-spacing: 0.02em; }
.fm-freq small { font: 600 13px var(--body); margin-left: 4px; color: var(--muted); letter-spacing: 0.08em; }

/* ---------- the TV station (video channels) */
.tv { position: relative; aspect-ratio: 4 / 3; border-radius: 22% / 18%; padding: 0; overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, color-mix(in srgb, var(--accent) 35%, #0B0410) 0%, #0B0410 75%);
  border: 6px solid #3A2A3F; box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8), 0 0 0 2px #120615; display: grid; place-items: center; }
.tv::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 3px); }
.tv__ch { position: absolute; top: 10px; right: 14px; font: 18px var(--display); color: #7CFF9B; text-shadow: 0 0 8px rgba(124, 255, 155, 0.8); }
.tv__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.tv__name { position: relative; z-index: 1; font: 22px var(--display); color: #FFF; text-align: center; padding: 0 16px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); }
.tv__live { position: absolute; left: 12px; top: 10px; z-index: 1; }

/* ---------- channel tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.tile { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); }
.tile:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); color: var(--ink); }
.tile h3 { font-size: 22px; }
.tile p { font-size: 15px; color: #D6BCD1; }
.tile__foot { margin-top: auto; font-size: 14px; color: var(--muted); }
.tile .tv { width: 100%; max-width: 300px; margin-inline: auto; }
.tile__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

/* ---------- live strip */
.livebox { border-radius: 22px; padding: 36px; background: linear-gradient(120deg, #3B0F4A 0%, #25093A 60%, #14223A 100%); border: 1px solid rgba(183, 156, 255, 0.3); }
.watch { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.watch__card { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: center; padding: 16px; border-radius: 16px; background: rgba(18, 5, 26, 0.6); }
.watch__card h3 { font-size: 20px; }
.watch__card > a { text-decoration: none; }
.watch__card p { font-size: 15px; color: #D6BCD1; margin: 4px 0 12px; }


/* ---------- blog */
.blog-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }
.feature { display: flex; flex-direction: column; gap: 14px; }
.feature img, .ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--panel-2); }
.ph { display: grid; place-items: center; color: var(--muted); }
.feature h3 { font-size: clamp(24px, 2.4vw, 30px); }
.feature h3 a, .mini h3 a, .card h3 a { text-decoration: none; }
.kicker { font-size: 14px; font-weight: 600; color: var(--accent, var(--muted)); text-decoration: none; }
.mini { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.mini:last-child { border-bottom: 0; }
.mini img, .mini .ph { width: 96px; height: 72px; aspect-ratio: auto; border-radius: 10px; object-fit: cover; }
.mini h3 { font-size: 18px; line-height: 1.3; margin-top: 2px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.card { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.card__pic { display: block; aspect-ratio: 1; background: var(--panel-2); overflow: hidden; }
.card__pic img, .card__pic .ph { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; object-position: center; display: block; border-radius: 0; }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.card__body .meta { margin-top: auto; padding-top: 4px; }
.card h3 { font-size: 21px; }
.card p { color: #D6BCD1; font-size: 15px; }
.meta { font-size: 14px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; text-decoration: none; }
.chip[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pager { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 40px 0 8px; }
.pager a, .pager span { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; }
.pager span[aria-current] { background: var(--ink); color: var(--bg); }

/* ---------- long text (posts, pages, episode notes) */
.prose { max-width: 720px; font-size: 18px; line-height: 1.7; color: #F3E4EF; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font: 28px var(--display); margin-top: 1.6em; }
.prose h3 { font-size: 22px; margin-top: 1.4em; }
.prose img { border-radius: 12px; display: block; }
.prose figure { margin: 1.4em 0; }
.prose figcaption { font-size: 15px; color: var(--muted); margin-top: 8px; }
.prose blockquote { margin-left: 0; padding-left: 20px; border-left: 3px solid var(--pink); color: var(--soft); }
.prose a { color: var(--pink); }
.prose a:hover { color: #FFF; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose iframe, .prose audio { width: 100%; border: 0; border-radius: 12px; }
.embed { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; padding: 20px; border-radius: 12px; background: var(--bg-deep); border: 1px dashed var(--line-2); }
.embed__load { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--ink); color: var(--bg); font: 600 15px var(--body); cursor: pointer; }
.embed small { color: var(--muted); font-size: 13px; }
.embed iframe { width: 100%; border: 0; border-radius: 10px; }
.embed.is-loaded { padding: 0; border: 0; background: none; }

.post-head { padding-top: 48px; padding-bottom: 28px; max-width: 860px; }
.post-head h1 { font: clamp(34px, 4.4vw, 56px)/1.08 var(--display); margin: 10px 0 14px; }
.post-hero { border-radius: 18px; width: 100%; max-height: 560px; object-fit: cover; margin-bottom: 36px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-bottom: 56px; }
@media (max-width: 1000px) { .post-layout { grid-template-columns: 1fr; } }
.aside-box { padding: 22px; border-radius: var(--radius); background: var(--panel); display: flex; flex-direction: column; gap: 12px; }
.aside-box h2 { font-size: 18px; }

/* ---------- comments */
.comments { max-width: 720px; padding: 40px 0 0; border-top: 1px solid var(--line); margin-top: 48px; }
.comments h2 { font: 28px var(--display); margin-bottom: 20px; }
.comment { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment__who { font-weight: 700; color: var(--ink-strong); }
.comment__host { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--magenta); color: #FFF; font-size: 12px; font-weight: 700; }
.comment__body { margin-top: 6px; white-space: pre-line; }
.comment__replies { margin: 10px 0 0 22px; padding-left: 18px; border-left: 2px solid var(--line-2); }
.comment__replies .comment { border-bottom: 0; padding: 10px 0; }
.reply-link { background: none; border: 0; color: var(--pink); font: 600 14px var(--body); cursor: pointer; padding: 8px 0 0; min-height: 36px; }

/* ---------- forms */
.form { display: grid; gap: 16px; max-width: 640px; padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.form input[type=text], .form input[type=email], .form input[type=search], .form textarea, .form select {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 10px; border: 1px solid rgba(251, 239, 248, 0.3); background: var(--bg-deep); color: var(--ink); font: 400 16px var(--body); }
.form textarea { min-height: 140px; resize: vertical; }
.form .check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-weight: 400; }
.form .check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--pink); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form .two { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: 12px; background: rgba(77, 232, 224, 0.12); border: 1px solid rgba(77, 232, 224, 0.4); }
.notice--warn { background: rgba(255, 166, 92, 0.12); border-color: rgba(255, 166, 92, 0.5); }

/* ---------- show page */
.show-hero { border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 100%); }
.show-hero__in { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
@media (max-width: 820px) { .show-hero__in { grid-template-columns: 1fr; gap: 28px; } .show-art { max-width: 280px; } }
.show-art { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; border: 2px solid var(--accent); background: var(--panel); }
.show-art--tv { border: 0; }
.show-hero h1 { font: clamp(40px, 5vw, 68px)/1.02 var(--display); margin: 14px 0; }
.show-hero .tagline { max-width: 34em; font-size: 19px; color: var(--soft); margin-bottom: 22px; }
.show-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 15px; color: var(--soft); }
.show-meta .fm { width: 220px; }
.two-col { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.ep-list a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.ep-list span:last-child { color: var(--muted); font-size: 15px; white-space: nowrap; }
.player { margin-top: 16px; }
.player audio { width: 100%; }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.video { display: flex; flex-direction: column; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px; }
.video img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; width: 100%; background: var(--panel-2); }
.panel { padding: 24px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 15px; text-decoration: none; }
.links a:hover { border-color: var(--pink); }

/* ---------- hosts */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.person { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.person img, .person .avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--panel-2); }
.avatar { display: grid; place-items: center; font: 30px var(--display); color: var(--ink); }
.person h2, .person h3 { font-size: 22px; }
.person p { font-size: 15px; color: #D6BCD1; margin: 6px 0 10px; }
.person .links a { min-height: 36px; font-size: 14px; }

/* ---------- schedule */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.day { border-radius: 14px; background: var(--panel); border: 1px solid var(--line); padding: 12px; min-height: 140px; }
.day h3 { font-size: 15px; margin-bottom: 10px; color: var(--muted); font-weight: 600; }
.day--today { border-color: var(--cyan); }
.day--today h3 { color: var(--cyan); }
.slot { display: block; padding: 8px 10px; border-radius: 10px; margin-bottom: 8px; background: color-mix(in srgb, var(--accent) 18%, transparent); border-left: 3px solid var(--accent); text-decoration: none; font-size: 14px; }
.slot strong { display: block; color: var(--ink-strong); }
@media (max-width: 1000px) { .week { grid-template-columns: 1fr; } .day { min-height: 0; } }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 14px; color: var(--muted); font-weight: 600; }
.scroll { overflow-x: auto; }

/* ---------- support + footer */
.support { background: var(--magenta); margin-top: 72px; }
.support__in { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; padding-top: 56px; padding-bottom: 56px; }
.support h2 { font: clamp(26px, 3vw, 36px) var(--display); }
.support p { color: #FFE6F5; margin-top: 10px; max-width: 34em; }
.support .btn { background: #FFF; color: #4A0634; min-height: 44px; }
.support .btn:hover { background: #FFE6F5; color: #4A0634; }
.badges { padding-top: 32px; padding-bottom: 32px; text-align: center; }
.badges img { height: 64px; width: auto; margin: 4px; vertical-align: middle; }
.site-foot { background: var(--bg-deep); }
main { padding-bottom: 72px; }
main:has(> .support:last-child) { padding-bottom: 0; }
.site-foot__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 32px; }
.site-foot h2 { font-size: 16px; margin-bottom: 8px; }
.site-foot nav { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.site-foot nav a { text-decoration: none; }
.site-foot__bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; padding-bottom: 28px; font-size: 14px; color: var(--muted); }
.site-foot__bar nav { display: flex; gap: 18px; }
.site-foot__bar a { text-decoration: none; }
.site-foot__bar nav { flex-direction: row; gap: 18px; }
@media (max-width: 560px) {
  .tile .tv { max-width: 240px; width: 100%; margin-inline: auto; }
  .watch__card { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
  .watch__card .tv { border-width: 4px; }
  .watch__card .tv__ch, .watch__card .tv__name { font-size: 11px !important; }
  .tiles { grid-template-columns: 1fr; }
}

/* ---------- galleries (post gallery + WordPress galleries inside posts) and the full-size viewer */
.gallery-block { margin-top: 48px; max-width: 900px; }
.gallery-block h2 { font-size: 28px; margin-bottom: 18px; display: flex; align-items: baseline; gap: 12px; }
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.gallery-grid li { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.gallery-grid a { display: block; border-radius: 12px; overflow: hidden; }
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: transform 0.2s; }
.gallery-grid a:hover img { transform: scale(1.03); }
.prose figure.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 1.4em 0; }
.prose figure.gallery figure { margin: 0; }
.prose figure.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; cursor: zoom-in; }
.prose figure.gallery figcaption { font-size: 13px; }
dialog.viewer { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 3, 14, 0.96); color: var(--ink); }
dialog.viewer[open] { display: grid; grid-template-rows: 1fr auto; }
.viewer__stage { display: grid; place-items: center; min-height: 0; padding: 56px 72px 12px; }
.viewer__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.viewer__bar { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 12px 20px 24px; text-align: center; color: var(--soft); }
.viewer button { min-width: 48px; min-height: 48px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(36, 16, 41, 0.85); color: #FFF; font: 600 16px var(--body); cursor: pointer; }
.viewer__close { position: absolute; top: 14px; right: 14px; padding: 0 18px; }
.viewer__prev, .viewer__next { position: absolute; top: 50%; transform: translateY(-50%); font-size: 22px !important; }
.viewer__prev { left: 14px; } .viewer__next { right: 14px; }
@media (max-width: 600px) { .viewer__stage { padding: 64px 8px 8px; } .viewer__prev, .viewer__next { top: auto; bottom: 18px; transform: none; } }
@media (max-width: 820px) { .show-hero__in > .tv { width: 100%; max-width: 320px; margin-inline: auto; } }

/* ---------- a channel's own menu (Show, Episodes, its pages) */
.show-nav { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 4; }
.show-nav__in { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: thin; }
.show-nav a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--soft); }
.show-nav a:hover { color: #FFF; background: rgba(255, 255, 255, 0.06); }
.show-nav a[aria-current="page"] { background: var(--accent); color: var(--accent-ink, #1B0820); }
.sub-hero { padding-top: 48px; padding-bottom: 28px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 100%); }
.sub-hero h1 { font: clamp(34px, 4.4vw, 56px)/1.08 var(--display); margin-top: 10px; }

/* ---------- header on phones: name and Menu button never touch */
@media (max-width: 900px) {
  .site-head__in { gap: 12px; }
  .brand { min-width: 0; flex: 1 1 auto; }
  .brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .menu-btn { flex: none; }
}
@media (max-width: 480px) {
  .brand img { width: 44px; height: 44px; }
  .brand span { font-size: 16px; }
  .menu-btn { padding: 0 14px; }
}
@media (max-width: 340px) { .brand span { display: none; } }

/* ---------- filters, word cloud, video shelves */
.chip__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent, var(--muted)); margin-right: 8px; }
.chip[aria-current="page"] .chip__dot { background: var(--bg); }
.cloud { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); line-height: 1.3; }
.cloud a { text-decoration: none; color: var(--soft); }
.cloud a:hover, .cloud a[aria-current="page"] { color: var(--pink); }
.shelf { padding-top: 40px; }
.shelf + .shelf { border-top: 1px solid var(--line); margin-top: 32px; }
.shelf__title { font: 26px var(--display); margin-top: 6px; }

.watch__card .tv__name { padding: 18px 10px 0; line-height: 1.2; }

/* ---------- tidy links: "Email · Bluesky · Instagram" */
.tlinks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; font-size: 15px; }
.tlinks li:not(:last-child)::after { content: '·'; margin: 0 10px; color: var(--muted); }
.tlinks a { color: var(--soft); text-decoration: underline; text-decoration-color: rgba(251, 239, 248, 0.3); }
.tlinks a:hover { color: var(--pink); text-decoration-color: currentColor; }

/* ---------- Meet the hosts */
.hosts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.host-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--accent); }
.host-card__head { display: flex; gap: 16px; align-items: center; }
.host-card__pic { flex: none; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; background: var(--panel-2); }
.host-card__pic--none { display: grid; place-items: center; font: 30px var(--display); color: var(--ink); background: color-mix(in srgb, var(--accent) 30%, var(--panel-2)); }
.host-card h2 { font-size: 22px; }
.host-card__shows { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 4px; font-size: 14px; font-weight: 600; }
.host-card__shows a { color: var(--accent); text-decoration: none; }
.host-card__bio { color: #D6BCD1; font-size: 15px; }
@media (max-width: 420px) { .hosts { grid-template-columns: 1fr; } .host-card { padding: 18px; } }

/* ---------- Talk to us: the network inbox and the form first, then each show */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "form network" "shows shows"; gap: 28px 40px; align-items: start; }
.contact__side { display: contents; }
#form { grid-area: form; }
.contact__network { grid-area: network; }
.contact__main { grid-area: shows; padding-top: 16px; }
.contact__network h2 { font-size: 20px; }
.contact__network .muted { margin: 4px 0 10px; }
.contact__email { font-weight: 600; color: var(--ink-strong); word-break: break-word; }
.contact .form { padding: 22px; max-width: none; }
.directory { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); column-gap: 40px; }
.directory > li { display: grid; gap: 6px; align-content: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.directory__name { display: flex; align-items: center; gap: 0 10px; flex-wrap: wrap; font-weight: 700; font-size: 19px; }
.directory__name a { text-decoration: none; color: var(--ink-strong); }
.directory__name .chip__dot { margin: 0; }
@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; grid-template-areas: "network" "form" "shows"; }
  .directory { grid-template-columns: 1fr; }
}

/* ---------- Talk to us: write or record */
.modes { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.modes label { display: flex !important; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); cursor: pointer; font-weight: 600; }
.modes input { width: 18px; height: 18px; accent-color: var(--pink); margin: 0; }
.modes label:has(input:checked) { border-color: var(--pink); background: rgba(255, 123, 196, 0.1); }
.modes label:has(input:focus-visible) { outline: 3px solid var(--cyan); outline-offset: 2px; }
.voice { display: grid; gap: 12px; padding: 16px; border-radius: 12px; background: var(--bg-deep); border: 1px dashed var(--line-2); }
.voice__rec { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.voice__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; border: 0; background: #E0182D; color: #FFF; font: 700 16px var(--body); cursor: pointer; }
.voice__btn.is-on { background: #FFF; color: #8C0A1A; }
.voice__dot { width: 12px; height: 12px; border-radius: 50%; background: currentColor; }
.voice__btn.is-on .voice__dot { border-radius: 2px; animation: blink 1.2s infinite; }
.voice__time { font: 600 16px var(--body); font-variant-numeric: tabular-nums; color: var(--soft); }
.voice audio { width: 100%; }
@media (max-width: 420px) { .modes { grid-template-columns: 1fr; } }
/* Channel colours used as text are lifted toward white so every colour reads on the dark ground (WCAG AA) */
.kicker, .guide__show, .host-card__shows a, .tile .fm-freq, .fm-freq { color: color-mix(in srgb, var(--accent, var(--pink)) 72%, #FFFFFF); }

/* ---------- v1.5: picture viewer fits the screen */
dialog.viewer { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; overflow: hidden; }
dialog.viewer[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.viewer__stage { display: flex; align-items: center; justify-content: center; min-height: 0; min-width: 0; overflow: hidden; padding: 56px 72px 12px; }
.viewer__stage img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 600px) { .viewer__stage { padding: 64px 8px 8px; } .viewer__bar { padding-bottom: 80px; } }
.prose img { max-width: 100%; height: auto; }
.prose img[data-zoom] { cursor: zoom-in; }

/* ---------- v1.5: Recently aired (laid out like the homepage channel guide) */
.guide--aired { max-width: 860px; }
.guide__type { justify-self: start; display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); font-size: 12px; font-weight: 600; white-space: nowrap; }
.guide--aired .guide__title a[target="_blank"]::after { content: ' ↗'; font-size: 0.85em; color: var(--muted); }

/* ---------- v1.5: magazines are Teletext pages */
.ttx { position: relative; display: grid; grid-template-rows: auto 1fr auto; aspect-ratio: 4 / 3; width: 100%; max-width: 300px; margin-inline: auto;
  padding: 10px 12px; border-radius: 10px; background: #000; overflow: hidden; border: 2px solid color-mix(in srgb, var(--accent) 55%, #000);
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-weight: 700; }
.ttx::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 3px); }
.ttx__top { display: flex; justify-content: space-between; font-size: 13px; color: #FFF; letter-spacing: 0.06em; }
.ttx__top span:first-child { color: #FFFF00; }
.ttx__name { align-self: center; justify-self: start; padding: 4px 10px; background: var(--accent); color: #000; font-size: 22px; line-height: 1.15;
  text-transform: uppercase; letter-spacing: 0.04em; transform: scaleY(1.6); transform-origin: left center; overflow-wrap: anywhere; max-width: 100%; }
.ttx__img { align-self: center; width: 100%; height: 100%; max-height: 150px; object-fit: contain; image-rendering: pixelated; }
.ttx__bar { display: block; height: 10px; background: repeating-linear-gradient(90deg, #00FFFF 0 12px, #FF00FF 12px 24px, #FFFF00 24px 36px, #00FF00 36px 48px); opacity: 0.35; }
.ttx__bar span { display: block; height: 100%; background: #00FF00; }
.ttx__bar:has(span) { opacity: 1; background: #222; }
.show-hero__in > .ttx { max-width: 320px; }
.ttx-page { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-weight: 700; color: #FFFF00; background: #000; padding: 2px 10px; border-radius: 4px; font-size: 24px; }
.progress__line { margin-top: 14px; font-size: 24px; font-weight: 700; color: var(--ink-strong); }
.progress__bar { margin-top: 16px; height: 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.progress__bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.progress__count { margin-top: 8px; color: var(--soft); font-variant-numeric: tabular-nums; }
.also-on { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 4px; font-size: 14px; color: var(--muted); }
.also-on__n { padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line-2, rgba(255,255,255,.25)); color: var(--ink-strong); font-weight: 600; }
.also-on__n.ttx-page { border: 0; border-radius: 4px; font-size: 14px; }
section.wrap:not(.two-col) > .panel.progress { max-width: 760px; }

/* v1.6 show page: tidy 50/50 rows */
.section-tight { padding-top: 24px; padding-bottom: 0; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.split > :only-child { grid-column: 1 / -1; }
.split > .panel { min-width: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.host-list { display: grid; gap: 18px; }
.host-row { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; }
.host-row img, .host-row .avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--panel-2); font-size: 22px; }
.twitch-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; align-items: center; }
@media (max-width: 900px) { .twitch-panel { grid-template-columns: 1fr; } }
.twitch-panel .btn { display: inline-flex; }
.split .ep-list a:last-child { border-bottom: 0; }

/* v1.6 every-episode list */
.eps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.eps__season { display: flex; align-items: center; gap: 14px; margin: 18px 0 2px; font: 15px var(--display); color: color-mix(in srgb, var(--accent, var(--pink)) 45%, #FFF); }
.eps__season:first-child { margin-top: 0; }
.eps__season::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ep { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 20px; align-items: center;
  padding: 16px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line);
  transition: border-color .15s, background .15s, transform .15s; }
.ep:hover { border-color: color-mix(in srgb, var(--accent, var(--pink)) 60%, transparent); background: var(--panel-2); }
.ep:focus-within { border-color: var(--cyan); }
.ep__art { width: 104px; height: 104px; border-radius: 12px; object-fit: cover; background: var(--panel-2); }
.ep__art--num { display: grid; place-items: center; font: 30px var(--display); background: var(--accent, var(--magenta)); color: var(--accent-ink, #FFF); }
.ep__num { font: 13px var(--display); letter-spacing: .04em; color: color-mix(in srgb, var(--accent, var(--pink)) 45%, #FFF); margin-bottom: 4px; }
.ep__title { font: 600 20px/1.25 var(--body); }
.ep__title a { text-decoration: none; }
.ep__title a::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.ep__title a:focus-visible { outline: none; }
.ep__ex { margin-top: 6px; color: var(--soft); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.ep__meta span + span::before { content: "·"; margin-right: 14px; }
.ep__play { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent, var(--magenta)); color: var(--accent-ink, #FFF); transition: transform .15s; }
.ep__play:hover { color: var(--accent-ink, #FFF); transform: scale(1.08); }
@media (max-width: 640px) {
  .ep { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 12px; align-items: start; }
  .ep__art { width: 72px; height: 72px; }
  .ep__art--num { font-size: 22px; }
  .ep__play { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; }
  .ep:has(.ep__play) .ep__meta { padding-right: 52px; min-height: 44px; align-items: center; }
  .ep__title { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .ep, .ep__play { transition: none; } .ep__play:hover { transform: none; } }

/* v1.6 homepage "Pick a channel" tabs */
.chtabs__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.chtabs__list { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.chtabs__tab { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border: 0; border-radius: 999px; background: none; color: var(--soft); font: 600 16px/1 var(--body); cursor: pointer; transition: background .2s, color .2s; }
.chtabs__tab:hover { color: var(--ink-strong); background: var(--panel-2); }
.chtabs__tab[aria-selected="true"] { background: var(--magenta); color: #FFF; }
.chtabs__n { font-size: 13px; font-weight: 500; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.chtabs__time { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--cyan); transition: width .1s linear; }
.chtabs__tab[aria-selected="false"] .chtabs__time { display: none; }
.chtabs.is-waiting .chtabs__time { opacity: .45; }
.chtabs__pause { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--soft); font: 500 15px var(--body); cursor: pointer; }
.chtabs__pause:hover { color: var(--ink-strong); border-color: var(--ink); }
.chtabs__pause[aria-pressed="true"] { color: var(--ink-strong); border-color: var(--cyan); }
/* Without the script every group shows, one after another */
.chtabs:not(.is-tabs) .chtabs__panel + .chtabs__panel { margin-top: 28px; }
.chtabs:not(.is-tabs) .chtabs__heading { font-size: 18px; color: var(--soft); margin-bottom: 14px; }
/* With it, the panels sit on top of each other so the page doesn't jump as they change */
.chtabs.is-tabs .chtabs__panels { display: grid; }
.chtabs.is-tabs .chtabs__panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .35s, transform .35s, visibility 0s .35s; }
.chtabs.is-tabs .chtabs__panel.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .35s, transform .35s; }
.chtabs.is-tabs .chtabs__heading { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 520px) { .chtabs__list { display: flex; width: 100%; } .chtabs__tab { flex: 1; justify-content: center; padding: 0 10px; } }
@media (prefers-reduced-motion: reduce) { .chtabs.is-tabs .chtabs__panel, .chtabs.is-tabs .chtabs__panel.is-active { transition: none; transform: none; } .chtabs__time { transition: none; } }

/* Homepage blog: a strip of the newest post from each show, with the chosen one shown large below */
.postrail__bar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.postrail__strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 14px; overflow-x: auto; padding: 2px 2px 10px;
  scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.postrail__card { position: relative; overflow: hidden; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .2s, background .2s; }
.postrail__card:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); color: var(--ink); }
.postrail__card img, .postrail__card .ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--panel-2); }
.postrail__title { font-weight: 600; font-size: 16px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.postrail__card .meta { margin-top: auto; font-size: 13px; }
.postrail__time { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); transition: width .1s linear; }
.postrail.is-on .postrail__card[aria-selected="true"] { border-color: var(--accent); background: var(--panel-2); }
.postrail.is-on .postrail__card[aria-selected="false"] .postrail__time { display: none; }
.postrail.is-waiting .postrail__time { opacity: .45; }
.postrail__controls { display: flex; gap: 8px; justify-content: flex-end; }
.postrail__btn { min-width: 44px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--soft); font: 500 18px var(--body); cursor: pointer; }
.postrail__btn:hover { color: var(--ink-strong); border-color: var(--ink); }

.postrail__stage { display: grid; }
.postrail__panel { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px; align-items: center;
  padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--accent); }
.postrail__art img, .postrail__art .ph { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: var(--panel-2); }
.postrail__text { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; min-width: 0; }
.postrail__text h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; }
.postrail__text h3 a { text-decoration: none; }
.postrail__text p { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.postrail__read { margin-top: 6px; }
.postrail__all { margin-top: 24px; }
/* Without the script only the newest post is shown large; the strip still links to every post */
.postrail:not(.is-on) .postrail__panel + .postrail__panel { display: none; }
.postrail.is-on .postrail__panel { opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .35s, transform .35s, visibility 0s .35s; }
.postrail.is-on .postrail__panel.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .35s, transform .35s; }
@media (max-width: 820px) { .postrail__panel { grid-template-columns: 1fr; gap: 18px; padding: 16px; } .postrail__strip { grid-auto-columns: minmax(200px, 70%); } }
@media (prefers-reduced-motion: reduce) { .postrail.is-on .postrail__panel, .postrail.is-on .postrail__panel.is-active { transition: none; transform: none; } .postrail__time { transition: none; } }
