/*
Theme Name: Sófár
Description: Theme of the Sófár sites (radiozs.sofar.hu, later sofar.hu and regi.sofar.hu): quiet, modern, with the Sófár spiral. The radio parts (live box, schedule, player) are a module switched on per site.
Author: Attila Seres
Version: 0.1.0
Requires PHP: 7.4
Text Domain: sofar
*/

/* Fonts: self-hosted variable fonts (OFL), latin + latin-ext */
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(assets/fonts/source-sans-3-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(assets/fonts/source-sans-3-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url(assets/fonts/source-sans-3-latin-wght-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url(assets/fonts/source-sans-3-latin-ext-wght-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(assets/fonts/fraunces-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(assets/fonts/fraunces-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Colours: warm paper and ink; the spiral's bordeaux for accents, its gold for small highlights */
:root {
  --bg: #f7f3ea; --card: #fffdf8; --ink: #24201a; --muted: #6d655a; --line: #e5dccb; --soft: #efe8da;
  --accent: #8c1f3d; --accent-ink: #fff; --gold: #b4862a; --live: #c0392b;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px; --radius: 14px;
  color-scheme: light;
}
/* Dark colours, switched off for now (Jata, 2026-11-08: the theme is light only; dark comes back later):
   they apply to <html data-theme="dark"> only, which nothing sets yet */
:root[data-theme="dark"] { --bg: #15130f; --card: #1d1a15; --ink: #ece6da; --muted: #a49b8c; --line: #322d25; --soft: #26221b;
  --accent: #e3a5b5; --accent-ink: #1d1014; --gold: #d8b45f; --live: #ef6b5d; color-scheme: dark; }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); margin: 0 0 .3em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }
.skip-link:focus { left: 8px; }

/* Header, as the 2003 logo: the spiral shines in from the top left corner like the sun, the wordmark beside it,
   the tagline under it */
.site-header { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--card); }
.site-header::before { content: ""; position: absolute; left: -170px; top: -170px; width: 420px; height: 420px;   /* its centre a little inside the corner (Jata) */
  background: url(assets/img/sofar-spiral.jpg) center / cover; border-radius: 50%; pointer-events: none;
  -webkit-mask-image: radial-gradient(circle, #000 52%, transparent 71%); mask-image: radial-gradient(circle, #000 52%, transparent 71%);
  animation: sun 90s linear infinite; filter: var(--spiral-filter, none); }   /* turns slowly, always (Jata); tinted per site */
@keyframes sun { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .site-header::before { animation: none; } }
:root[data-theme="dark"] .site-header::before { opacity: .85; }
.header-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 16px; color: var(--ink); text-decoration: none; }
/* the wordmark is wider than the 2003 scan (its aspect is free, as in the GIF), the tagline exactly as wide */
.site-header { --wm-w: 205px; --wm-h: 70px; --brand-x: 185px; }
/* the wordmark at a fixed distance from the window's left edge, on the spiral's fading rim, whatever the width
   (Jata's screenshot); the content column may start left or right of it */
.brand { margin-left: calc(var(--brand-x) - 20px - max(0px, (100vw - var(--wrap)) / 2)); }
.brand-text { display: flex; flex-direction: column; gap: 6px; width: var(--wm-w); }
.wordmark img { display: block; width: var(--wm-w); height: var(--wm-h); }   /* the logo SVG stretches to the box */
/* the wordmark lies 40% over the spiral, its frame clear (Jata): a paper halo keeps the strokes apart from the rays */
.wordmark { display: block; }
.wordmark img { position: relative; filter: drop-shadow(0 0 1px var(--card)) drop-shadow(0 0 3px var(--card)); }
.tagline { position: relative; color: var(--ink); text-shadow: 0 0 2px var(--card), 0 0 4px var(--card), 0 0 8px var(--card), 0 0 12px var(--card); }
.site-name { font: 600 1.6rem/1.1 var(--serif); }
.tagline { display: block; font-size: calc(var(--wm-w) / 13.6); line-height: 1.2; white-space: nowrap; color: var(--muted); text-align: right; }
.header-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.dates { margin: 0; font-size: .85rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.hebdate { color: var(--gold); }
.nav-row { display: flex; align-items: center; gap: 4px; }
.search-open { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: none; color: var(--ink); cursor: pointer; }
.search-open:hover, .search-open:focus-visible { background: var(--soft); }
.search-open svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
/* the search box over a blurred page */
.search-dialog { width: min(640px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--radius);
  background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgb(0 0 0 / .3); }
.search-dialog::backdrop { background: rgb(20 16 10 / .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.search-dialog-inner { position: relative; padding: 28px 24px 24px; }
.search-dialog-form { display: flex; gap: 10px; }
.search-dialog-form input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink); font: inherit; font-size: 1.15rem; }
.search-dialog-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.search-dialog-form button { display: grid; place-items: center; padding: 0 16px; border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 600; cursor: pointer; }
.search-dialog-form button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.search-close { position: absolute; top: 4px; right: 8px; border: 0; background: none; color: var(--muted); font-size: 1.5rem;
  line-height: 1; padding: 4px 8px; cursor: pointer; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a { display: block; padding: 6px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { background: var(--soft); }
/* tablets and phones: the smaller sun and wordmark (the big sun would reach into the dates and the menu) */
@media (max-width: 1000px) {
  .site-header { --wm-w: 160px; --wm-h: 55px; --brand-x: 76px; }
  .site-header::before { width: 220px; height: 220px; left: -95px; top: -95px; }
}
@media (max-width: 640px) {
  .header-side { align-items: flex-start; width: 100%; }
  .dates { justify-content: flex-start; }
}

/* Layout */
.site-main { padding-top: 32px; padding-bottom: 64px; }
.with-sidebar { display: grid; gap: 28px; }
@media (min-width: 960px) { .with-sidebar { grid-template-columns: minmax(0, 1fr) 280px; } }
.narrow { max-width: 760px; }
.home .entry-content, .page-full .entry-content { max-width: none; }   /* the front page and the pages over the full width (Jata) */
.page-head { margin-bottom: 20px; }
.eyebrow { margin: 0 0 4px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.lead { color: var(--muted); }
.meta { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.meta a { color: inherit; }

/* Listings: one row per post, with a play button when it is a recording */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.row-body { min-width: 0; }
.row-title { font-size: 1.15rem; margin: 0; }
.row-title a { color: var(--ink); text-decoration: none; }
.row-title a:hover { color: var(--accent); }
.row-excerpt { margin: 6px 0 0; color: var(--muted); }
.play-btn, .player-toggle { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.play-btn svg, .player-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.play-btn.loading svg, .play-btn.loading img { animation: spin 1s linear infinite; }
.play-btn img.play-icon { width: 20px; height: 20px; display: block; }
.prog-recs .play-btn img.play-icon { width: 14px; height: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
.pagination, .nav-links { margin-top: 28px; display: flex; gap: 6px; flex-wrap: wrap; }
.page-numbers { padding: 6px 12px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.page-numbers.current { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Posts and pages */
.entry-content { max-width: 70ch; }
.with-sidebar .entry-content, .with-sidebar .summary-video { max-width: none; }   /* up to the sidebar (Jata) */
.entry-video .yt { margin: 0 0 4px; max-width: none; }   /* a post's one video on top (video site) */
.entry-content audio, .entry-content .wp-audio-shortcode, .entry-content .mejs-container { display: none !important; }
.entry-content iframe { max-width: 100%; }
/* embedded videos (YouTube oEmbed in a paragraph) centred, with room above and below */
.entry-content p:has(> iframe[src*="youtube"]), .entry-content .wp-block-embed { margin: 40px 0; text-align: center; }
.entry-content iframe[src*="youtube"] { display: block; margin: 0 auto; width: min(100%, 720px); height: auto; aspect-ratio: 16 / 9; }
.listen { display: flex; align-items: center; gap: 12px; margin: 8px 0 24px; padding: 14px 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); }
.listen span { font-weight: 600; }
.intro-listen span { font-weight: 400; }   /* the [lejatszo] description: a sentence, not a label */
/* the post's short summary (its excerpt); an empty one shows a placeholder to editors only */
.summary { margin: 0 0 24px; padding: 14px 18px; border-left: 4px solid var(--gold); background: var(--soft); border-radius: 0 var(--radius) var(--radius) 0; }
.summary p { margin: 0 0 .7em; }
.summary p:last-child { margin-bottom: 0; }
.summary-video { margin: 28px 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft);
  font-size: .93rem; line-height: 1.6; max-width: 70ch; }
.summary-video .summary-label { margin: 0 0 8px; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.summary.empty { background: none; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-style: italic; }
.row-summary { margin: 6px 0 0; color: var(--ink); }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .95rem; }
.post-nav .next { margin-left: auto; text-align: right; }
/* the front page's highlighted box carries inline colours from the old theme: the theme's own win */
.kiemel { display: block; margin: 0 0 24px; padding: 16px 18px !important; border-radius: var(--radius);
  background: var(--soft) !important; color: var(--ink) !important; border: 0 !important; border-left: 4px solid var(--gold) !important;
  font-size: 1.05rem !important; line-height: 1.5; text-align: left !important; width: auto !important; }

/* Side column */
.sidebar .widget { margin-bottom: 28px; }
.widget-title { font-size: 1.05rem; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); display: inline-block; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 4px 0; border-bottom: 1px dashed var(--line); color: var(--muted); font-size: .95rem; }
.sidebar li a { color: var(--ink); text-decoration: none; }
.sidebar li a:hover { color: var(--accent); }
.sidebar .children { margin: 4px 0 0 14px; }
.sidebar .children li:last-child { border-bottom: 0; }
.sidebar select { width: 100%; padding: 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; }

/* Radio: the live box of the front page */
.radio-box { margin: 0 0 36px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.radio-head { display: flex; gap: 18px; align-items: center; }
.live-btn { flex: none; width: 72px; height: 72px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; text-decoration: none; }
.live-btn svg { width: 30px; height: 30px; fill: currentColor; }
.live-btn.locked { background: var(--soft); color: var(--muted); }
.live-btn.locked svg { width: 26px; height: 26px; }
.radio-now { min-width: 0; flex: 1; }
.radio-clock { margin: 0 0 0 8px; align-self: flex-start; }
.radio-time { font: 600 1.9rem/1 var(--serif); font-variant-numeric: tabular-nums; letter-spacing: .01em; color: var(--ink); }
@media (max-width: 640px) { .radio-head { flex-wrap: wrap; } .radio-clock { order: -1; width: 100%; margin: 0 0 4px; text-align: right; } .radio-time { font-size: 1.4rem; } }
.radio-status { margin: 0; font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px color-mix(in srgb, var(--live) 20%, transparent); }
.live-dot.off { background: var(--muted); box-shadow: none; }
.live-text { font-weight: 700; color: var(--ink); }
.radio-items { margin: 4px 0 0; font: 560 1.25rem/1.35 var(--serif); }
.radio-items a { color: var(--ink); text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); }
.radio-items .ep, .radio-next .ep { font-family: var(--sans); font-weight: 400; font-size: .85em; color: var(--muted); }
.radio-items .ep a, .radio-next .ep a { color: var(--muted); }
.zene { color: var(--muted); font-family: var(--sans); font-weight: 400; font-size: .9em; }
.zene::before { content: "♪ "; color: var(--gold); }
.radio-progress { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.radio-progress[hidden], .radio-progress .bar[hidden] { display: none; }
.bar { flex: 1; height: 5px; border-radius: 3px; background: var(--soft); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width 1s linear; }
.ptime { margin-left: auto; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.radio-next { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.radio-next li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; font-size: .95rem; }
.radio-next .h { color: var(--muted); font-variant-numeric: tabular-nums; }
.radio-next li.now { background: var(--soft); border-radius: 8px; margin: 0 -10px; padding: 6px 10px; box-shadow: inset 3px 0 0 var(--gold); }
.radio-next li.now .h { color: var(--ink); font-weight: 600; }
.radio-next a { color: var(--ink); }
.min { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .radio-box { padding: 16px; } .live-btn { width: 60px; height: 60px; } .radio-items { font-size: 1.1rem; } }

/* The player bar */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--card); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgb(0 0 0 / .08); }
.player[hidden] { display: none; }
.player-inner { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.player-info { flex: 1; min-width: 0; }
.player-title { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-seek { width: 100%; accent-color: var(--accent); }
.player.is-live .player-bar { display: none; }
.player-time { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.player-close { border: 0; background: none; color: var(--muted); font-size: 1.6rem; cursor: pointer; line-height: 1; padding: 4px 8px; }
body:has(.player:not([hidden])) .site-footer { padding-bottom: 90px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: .9rem; }
.footer-inner { padding-top: 24px; padding-bottom: 24px; }
.colophon { margin: 0; display: flex; align-items: center; gap: 8px; }
.badge { border-radius: 50%; }

/* Search form */
.search-form { display: flex; gap: 8px; }
.search-field { flex: 1; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; }
.search-submit { padding: 8px 14px; border: 0; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font: inherit; cursor: pointer; }

/* YouTube videos as cards (inc/youtube.php): click to load the player */
.yt { margin: 32px auto; max-width: 760px; }
.yt-play { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #000; cursor: pointer; aspect-ratio: 16 / 9; }
.yt-play img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .2s, transform .4s; }
.yt-play:hover img { opacity: 1; transform: scale(1.02); }
.yt-btn { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 6px 24px rgb(0 0 0 / .35); }
.yt-btn svg { width: 34px; height: 34px; fill: currentColor; margin-left: 4px; }
.yt figcaption { margin-top: 8px; color: var(--muted); font-size: .92rem; text-align: center; }
.yt iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.yt-gone-box { display: flex; align-items: center; justify-content: center; gap: 12px; aspect-ratio: 16 / 9; border: 1px dashed var(--line);
  border-radius: var(--radius); color: var(--muted); background: var(--soft); padding: 16px; text-align: center; }
.yt-gone-box svg { width: 28px; height: 28px; fill: currentColor; opacity: .5; flex: none; }

/* The video front page (front-videos.php, Füles) */
.fv-intro { display: grid; gap: 24px 48px; margin: 8px 0 44px; padding: 28px 32px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); }
@media (min-width: 900px) { .fv-intro { grid-template-columns: 1fr 260px; } }
.fv-intro h1 { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 2.8rem); }
.fv-intro-text p { margin: 0 0 12px; max-width: 72ch; }
.fv-intro-text p:last-child { margin-bottom: 0; }
.fv-intro-widget + .fv-intro-widget { margin-top: 12px; }   /* one paragraph block = one widget */
.fv-years h2 { margin: 6px 0 12px; font-size: 1.05rem; padding-bottom: 8px; border-bottom: 2px solid var(--gold); display: inline-block; }
@media (max-width: 600px) { .fv-intro { padding: 20px 18px; } }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  color: var(--ink); text-decoration: none; font-size: .92rem; }
.chips a span { color: var(--muted); font-size: .82em; margin-left: 2px; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.fv-section { margin: 0 0 44px; }
.fv-head { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 16px; margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.fv-head h2 { margin: 0; font-size: 1.5rem; }
.fv-head h2 a { color: var(--ink); text-decoration: none; }
.fv-head h2 a:hover { color: var(--accent); }
.page-head h1 .count, .fv-head h2 .count { color: var(--muted); font-weight: 400; font-size: .8em; }
.fv-head p { grid-column: 1 / -1; grid-row: 2; margin: 0; color: var(--muted); font-size: .95rem; max-width: 75ch; }
.fv-all { font-weight: 600; text-decoration: none; white-space: nowrap; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px 20px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card a { display: block; color: var(--ink); text-decoration: none; }
.card-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--soft); }
.card-thumb img, .card-blank { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card a:hover .card-thumb img { transform: scale(1.03); }
.card-play { position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; display: grid;
  place-items: center; background: var(--accent); color: var(--accent-ink); box-shadow: 0 2px 8px rgb(0 0 0 / .25); }
.card-play svg { width: 18px; height: 18px; fill: currentColor; margin-left: 2px; }
.card-title { display: block; margin-top: 10px; font-family: var(--serif); font-size: 1.05rem; line-height: 1.25; font-weight: 560; }
.card a:hover .card-title { color: var(--accent); }
@media (max-width: 600px) { .cards { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; } .card-title { font-size: .95rem; }
  .fv-head { grid-template-columns: 1fr; } .fv-all { grid-row: 3; } }
.card .meta { display: block; }
.cards-list { margin-top: 8px; }
.card-blank { background: url(assets/img/sofar-spiral-halvany.jpg) center / 140% no-repeat; filter: var(--spiral-filter, none); opacity: .55; }
.footer-nav ul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: var(--accent); }

/* The radio's front page (front-radio.php): programme cards with a few recordings */
.fv-more { margin-top: 14px; font-weight: 600; }
.fv-more a { text-decoration: none; }
.prog-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.prog-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.prog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 4px; }
.prog-card h3 { margin: 0; font-size: 1.15rem; }
.prog-head .fv-all { font-size: .9rem; }
.prog-card h3 a { color: var(--ink); text-decoration: none; }
.prog-card h3 a:hover { color: var(--accent); }
.prog-card h3 .count { color: var(--muted); font-weight: 400; font-size: .8em; }
.prog-desc { margin: 0 0 10px; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.prog-recs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.prog-recs li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .95rem; line-height: 1.3; }
.prog-recs li:last-child { border-bottom: 0; }
.prog-recs .play-btn { flex: none; width: 30px; height: 30px; }
.prog-recs .play-btn svg { width: 14px; height: 14px; }
.prog-recs a { color: var(--ink); text-decoration: none; min-width: 0; }
.prog-recs a:hover { color: var(--accent); }
