/* =============================================================================
   Tukker FM — CMS glue

   The other stylesheets are the Tukker FM design as it was built. This file
   only fits that design around markup the CMS adds: <picture> wrappers from
   responsive images, buttons where the design had links, the full-width row
   under the grid, and the pages the old site did not have (programma, team).
   ========================================================================== */

.sprite { display: none; }

/* Responsive images arrive as <picture><img class="…"></picture>; the wrapper
   must not become a box of its own inside the design's flex and grid cards. */
.card picture,
.card__media picture,
.tile picture,
.feature__media picture,
.person picture,
.schedule__slot picture,
.page-article picture { display: contents; }

/* The full-width sections under the main column and the rail. */
.layout-wide { display: flex; flex-direction: column; gap: var(--gap); }
.layout-wide:not(:has(*)) { display: none; }

/* Rows that switch the stream are buttons, not links. */
button.row { width: 100%; font: inherit; font-weight: 700; color: inherit; cursor: pointer; }
.rows--2 button.row { font-size: 14.5px; }
.row[aria-pressed='true'] { background: var(--red); color: #fff; }
.row[aria-pressed='true'] .row__chevron { color: #fff; }
.row:disabled { cursor: default; opacity: 0.6; }

/* Headings that sit under a badge. */
.spotlight__heading,
.event__heading { margin: 8px 0 14px; }

/* Player bar: the plugin's player.js expects the input itself to carry
   .player-bar__volume, so the design's wrapper gets its own name. */
.player-bar__volume-wrap { display: flex; align-items: center; gap: 10px; color: var(--red-dark); font-size: 20px; }
.player-bar__volume-wrap .range { width: 110px; }
.player-bar__play svg { width: 22px; height: 22px; fill: currentColor; }
.player-bar__play:not(:has(svg))::before {
  content: '';
  width: 0;
  height: 0;
  margin-left: 4px;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent currentColor;
}
.player-bar__cover .cover__art[hidden] { display: none; }

/* Content pages: one panel with the editor's sections as running text. */
.page-article .prose + .prose { margin-top: 18px; }
.page-article .prose figure { margin: 18px 0; }
.page-article .prose img { max-width: 100%; height: auto; border-radius: var(--radius-s); }

/* Agenda, listen and playlist details. */
.agenda__lead { margin-bottom: 0; }
.province-field { max-width: 340px; }
.reception__editions { margin-top: 6px; }
.reception__note { margin: 4px 0 0; }
.listen-section__title { margin: 4px 0 10px; }
.playlist__hour { margin: 20px 0 8px; }
.playlist__more { margin-top: 16px; }
.news-title { margin-bottom: 14px; }

/* Programma: the day's slots as a list of rows. */
.schedule { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.schedule__slot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-s);
  background: var(--tile);
}
.schedule__slot.is-current { background: var(--pink); }
.schedule__time {
  flex: 0 0 56px;
  display: flex;
  flex-direction: column;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--red-dark);
}
.schedule__time span { font-size: 13px; font-weight: 600; color: var(--text-3); }
.schedule__photo {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  overflow: hidden;
}
.schedule__photo.card__img--placeholder img { width: 80%; }
.schedule__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.schedule__text strong { font-size: 16px; }
.schedule__text a:hover { color: var(--red-dark); }
.schedule__text span { font-size: 14px; color: var(--text-3); }

/* Team. */
.team__live { margin: 6px 0 20px; }
.team__photo { width: min(100%, 420px); height: auto; border-radius: var(--radius); margin: 6px 0 18px; }

/* Contact forms (contact-form plugin) inside a page panel. */
.page-article form { margin-top: 18px; }

/* Contact forms (contact-form plugin): Tukker FM's field and button look.
   Inside a page panel the form's own panel is flattened, so it does not draw a
   card within a card. */
.page .page-article .panel.cform { padding: 0; margin-top: 22px; background: none; box-shadow: none; border: 0; }
.page .cform .panel__head .icon { display: none; }
.page .cform__form { display: grid; gap: 14px; max-width: 640px; }
.page .cform__label { font-size: 14px; font-weight: 700; color: var(--text); }
.page .cform__input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-s);
  background: #fff;
  font: inherit;
  font-size: 16px;
  color: var(--text);
}
.page textarea.cform__input { min-height: 140px; resize: vertical; }
.page .cform__input:focus { outline: 3px solid rgba(227, 6, 19, 0.25); border-color: var(--red); }
.page .cform__help { font-size: 13.5px; color: var(--text-3); }
.page .cform__error { font-size: 13.5px; font-weight: 600; color: var(--red-dark); }
.page .cform__consent input,
.page .cform__option input { accent-color: var(--red); width: 20px; height: 20px; }
.page .cform .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--pill);
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.page .cform .btn:hover { background: var(--red-dark); }
.page .cform .btn .icon { width: 18px; height: 18px; }
.page-article .prose img { max-height: 480px; width: auto; object-fit: cover; }

/* "Tukker FM App" bar above the header, phones only (shown by tukker.js). */
.app-banner { display: flex; align-items: center; gap: 10px; padding: 8px max(12px, env(safe-area-inset-left, 0px)); background: var(--maroon); color: #fff; }
.app-banner[hidden] { display: none; }
.app-banner__close { display: grid; place-items: center; width: 32px; height: 32px; margin: -4px 0; padding: 0; border: 0; background: none; color: #f4dfe0; cursor: pointer; }
.app-banner__close .icon { width: 16px; height: 16px; }
.app-banner__icon { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.app-banner__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.app-banner__text strong { font-size: 14.5px; }
.app-banner__text span { font-size: 13px; color: #f4dfe0; }
.app-banner__cta { flex: none; background: #fff; color: var(--red-dark); }
@media (min-width: 721px) { .app-banner { display: none !important; } }

/* Event cards (homepage "Andere evenementen", agenda): one 16:10 visual each. */
.card--event .card__place { margin-top: -6px; }
.card--past .card__img { filter: grayscale(0.6); opacity: 0.85; }
.agenda__intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.agenda__intro .panel__lead { flex: 1 1 320px; margin: 0; }

/* "Tukker FM in je zak": copy left, the app on two phones right, store badges below. */
.apppanel { position: relative; min-height: 252px; overflow: hidden; }
.apppanel__phone { position: absolute; top: 14px; right: -6px; width: 46%; max-width: 190px; pointer-events: none; }
.apppanel__body { position: relative; max-width: 56%; }
.storebadges { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; max-width: 60%; }
.storebadges img { height: 44px; width: auto; border-radius: 7px; }
@media (max-width: 720px) {
  .apppanel { min-height: 0; }
  .apppanel__phone { width: 40%; top: 50%; transform: translateY(-50%); }
}

/*
 * Hero shade, strong enough for WCAG AA over any video frame.
 * White text needs at least ~65% maroon over a white frame (pink text a little
 * more), so the shade never drops below that where text sits: the left 60% on
 * wide screens, all of it below 980px, where the text can run the full width.
 */
.hero__shade {
  background: linear-gradient(90deg, rgba(72, 2, 6, 0.9) 0%, rgba(72, 2, 6, 0.8) 45%, rgba(72, 2, 6, 0.72) 62%, rgba(72, 2, 6, 0.45) 100%);
}
@media (max-width: 980px) {
  .hero__shade { background: rgba(72, 2, 6, 0.8); }
}

/* Tukker TV: the label over the live picture gets a scrim it can rely on. */
.tvplayer__badges { background: linear-gradient(180deg, rgba(28, 1, 3, 0.82) 0%, rgba(28, 1, 3, 0.55) 60%, rgba(28, 1, 3, 0) 100%); padding-bottom: 28px; }

/*
 * Tukker FM's gradient, as tukker.fm draws its footer: red-dark on the left
 * to maroon on the right (#bb0510 → #480206, both theme tokens).
 */
:root {
  --gradient-tukker: linear-gradient(90deg, var(--red-dark) 0%, var(--maroon) 100%);
}
.site-footer { background: var(--gradient-tukker); }
.site-footer__bar { background: var(--black); }

.onair__cover,
.listen-live__cover,
.player-bar__cover,
.card__img--placeholder,
.recent__thumb,
.track__thumb {
  /* Missing artwork: the station's social profile photo: the logo on textured red. It already
     carries the logo, so the separate white logo on top is hidden. */
  background: url('/assets/theme/tukker/placeholder.webp') center / cover no-repeat, var(--red);
}
.cover__logo,
.card__img--placeholder > img { visibility: hidden; }
