/* ============================================================
   IMPERIUM Media — site styles
   Light, clean news portal · dark header · logo orange accent
   ============================================================ */

:root {
  --accent: #f46f36;
  --accent-ink: #c24e1d;
  --ink: #1f1c16;
  --ink-soft: #4a463e;
  --muted: #87816f;
  --bg: #faf9f6;
  --surface: #ffffff;
  --border: #e9e5db;
  --dark: #181511;
  --dark-2: #221e18;
  --dark-border: #363026;
  --dark-text: #e6e2d8;
  --dark-muted: #9b9484;
  --radius: 14px;
  --shadow-card: 0 1px 2px rgba(31, 28, 22, 0.05), 0 8px 24px -12px rgba(31, 28, 22, 0.12);
  --maxw: 1200px;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --display-weight: 800;
  --display-tracking: -0.02em;
}

html[data-type="redakcyjna"] {
  --font-display: "Source Serif 4", Georgia, serif;
  --font-body: "Public Sans", system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.012em;
}

html[data-type="geometryczna"] {
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Work Sans", system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.015em;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { background: var(--dark); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  padding-bottom: 0; /* footer carries the room for the radio bar */
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1.12;
  margin: 0;
  text-wrap: pretty;
}

/* ---------------- Header ---------------- */

.site-header {
  background: var(--dark);
  color: var(--dark-text);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--dark-border);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--dark) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 12px 32px -20px rgba(0, 0, 0, 0.55);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand { flex: none; display: flex; align-items: center; }
.brand img { height: 38px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.main-nav a {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--dark-muted);
  padding: 8px 13px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.main-nav a.active { color: #fff; }
.main-nav a.active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.header-right { display: flex; align-items: center; gap: 16px; }

.socials { display: flex; align-items: center; gap: 4px; }

.socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--dark-muted);
  transition: color 0.15s, background 0.15s;
}

.socials a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}

/* ---------------- Hero (live player) ---------------- */

.hero {
  background: var(--dark);
  color: var(--dark-text);
  padding: 48px 0 56px;
  overflow-x: clip; /* the player glow extends past the edges — don't let it widen the page */
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 40px;
  align-items: start;
}

.hero-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 14px;
}

.hero-kicker .live-chip { font-size: 12px; }

.hero-kicker span.loc {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-muted);
}

.hero h1 {
  font-size: 38px;
  color: #fff;
  margin-bottom: 22px;
  min-height: 2lh; /* channel switch swaps the headline — reserve two lines so the player never jumps */
  text-wrap: pretty;
  transition: opacity 0.19s ease, transform 0.19s ease;
}

/* Mid-swap state: a quiet crossfade — no movement, the static owns the moment */
.hero h1.is-swapping {
  opacity: 0;
}

.player-shell {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.player-fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 32px;
  background: radial-gradient(120% 90% at 50% 0%, #2c261c 0%, #181511 100%);
  color: var(--dark-muted);
  font-size: 14.5px;
}

.player-shell.is-error .player-fallback { display: flex; }

.player-fallback strong { color: #fff; font-size: 16px; }

.player-controls {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: rgba(20, 17, 12, 0.72);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s;
}

.pc-btn:hover { background: rgba(20, 17, 12, 0.9); }
.pc-btn svg { width: 16px; height: 16px; fill: currentColor; }
.pc-btn.icon-only { width: 40px; padding: 0; justify-content: center; }
.pc-spacer { flex: 1; }

/* TV-static overlay: covers the video while a channel switch buffers */
.player-static {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: #0c0a08;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.player-shell.is-switching .player-static { opacity: 1; }

.player-static canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  opacity: 0.55;
}

/* Viewport-fill fallback when native fullscreen is unavailable */

.player-shell.fake-fs {
  position: fixed;
  inset: 0;
  z-index: 200;
  aspect-ratio: auto;
  border-radius: 0;
}

.player-shell.fake-fs video { object-fit: contain; }

/* Native fullscreen: letterbox instead of cropping */
.player-shell:fullscreen { border-radius: 0; }
.player-shell:fullscreen video { object-fit: contain; }
.player-shell:-webkit-full-screen video { object-fit: contain; }

html.has-fake-fs, html.has-fake-fs body { overflow: hidden; }

/* Channel rail (telewizja) — program switcher beside the player */

.channel-rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ch-card {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  width: 100%;
  background: var(--dark-2);
  border: 1px solid var(--dark-border);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--dark-muted);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.ch-card:hover { border-color: var(--dark-muted); transform: translateX(2px); }

.ch-card .ch-num {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 9px;
  border: 1px solid var(--dark-border);
  color: var(--dark-muted);
  font-variant-numeric: tabular-nums;
  transition: all 0.2s;
}

.ch-card .ch-meta { min-width: 0; display: block; }

.ch-card .ch-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--dark-text);
  transition: color 0.2s;
}

.ch-card .ch-desc {
  display: block;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--dark-muted);
  margin-top: 3px;
}

.ch-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--dark-border);
  color: var(--dark-muted);
}

.ch-card.active {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 14%, var(--dark-2));
}

.ch-card.active .ch-num {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

.ch-card.active .ch-name { color: #fff; }

html[data-hero="framed"] .ch-card {
  background: var(--surface);
  border-color: var(--border);
  color: var(--muted);
}

html[data-hero="framed"] .ch-card:hover { border-color: var(--muted); }
html[data-hero="framed"] .ch-card .ch-num { border-color: var(--border); color: var(--muted); }
html[data-hero="framed"] .ch-card .ch-name { color: var(--ink); }
html[data-hero="framed"] .ch-card .ch-desc { color: var(--muted); }
html[data-hero="framed"] .ch-badge { border-color: var(--border); color: var(--muted); }
html[data-hero="framed"] .ch-card.active {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 8%, var(--surface));
}
html[data-hero="framed"] .ch-card.active .ch-name { color: var(--ink); }

/* Hero aside — najnowsze */

.hero-aside h2 {
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-muted);
  font-weight: 700;
  margin-bottom: 6px;
  font-family: var(--font-body);
}

.ticker-list { display: flex; flex-direction: column; }

.ticker-list a {
  padding: 14px 2px;
  border-bottom: 1px solid var(--dark-border);
  display: block;
  transition: color 0.15s;
}

.ticker-list a:last-of-type { border-bottom: 0; }

.ticker-list .t-title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--dark-text);
  line-height: 1.35;
  display: block;
  transition: color 0.15s;
}

.ticker-list a:hover .t-title { color: var(--accent); }

.ticker-list .t-meta {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--dark-muted);
}

.aside-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--accent);
}

.aside-more:hover { color: #fff; }

/* Framed hero variant */

html[data-hero="framed"] .hero {
  background: var(--bg);
  color: var(--ink);
  padding: 40px 0 8px;
}

html[data-hero="framed"] .hero h1 { color: var(--ink); }

html[data-hero="framed"] .hero-kicker span.loc { color: var(--muted); }

html[data-hero="framed"] .hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow-card);
}

html[data-hero="framed"] .player-shell {
  border-radius: 10px;
  box-shadow: none;
}

html[data-hero="framed"] .hero-aside h2 { color: var(--muted); }
html[data-hero="framed"] .ticker-list a { border-color: var(--border); }
html[data-hero="framed"] .ticker-list .t-title { color: var(--ink); }
html[data-hero="framed"] .ticker-list a:hover .t-title { color: var(--accent-ink); }
html[data-hero="framed"] .ticker-list .t-meta { color: var(--muted); }
html[data-hero="framed"] .aside-more:hover { color: var(--ink); }

/* ---------------- Sections ---------------- */

.section { padding: 64px 0 8px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-head h2 { font-size: 30px; }

.section-kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 8px;
}

.section-head .more {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-ink);
  white-space: nowrap;
}

.section-head .more:hover { color: var(--ink); }

/* News cards */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(31, 28, 22, 0.06), 0 18px 36px -14px rgba(31, 28, 22, 0.18);
}

.news-card image-slot { width: 100%; height: 200px; }

.news-card .nc-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }

.tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: color-mix(in oklab, var(--accent) 12%, white);
  padding: 4px 9px;
  border-radius: 6px;
}

.news-card h3 { font-size: 19px; line-height: 1.25; }
.news-card:hover h3 { color: var(--accent-ink); }

.nc-date {
  margin-top: auto;
  font-size: 13px;
  color: var(--muted);
}

/* Compact list (najnowsze on light bg) */

.news-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}

.news-list a {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.news-list .d {
  flex: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.news-list .t {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
  transition: color 0.15s;
}

.news-list a:hover .t { color: var(--accent-ink); }

/* Promo split: Radio / Telewizja */

.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.promo-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--dark);
  color: var(--dark-text);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}

.promo-card image-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.55;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s;
}

.promo-card:hover image-slot { transform: scale(1.04); opacity: 0.65; }

.promo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(18, 15, 11, 0.92) 15%, rgba(18, 15, 11, 0.2) 70%);
}

.promo-card .pc-content { padding: 28px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

.promo-card .kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--accent);
}

.promo-card h3 { font-size: 26px; color: #fff; }

.promo-card p { margin: 0; font-size: 14.5px; color: var(--dark-muted); max-width: 42ch; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
}

.btn:hover { background: color-mix(in oklab, var(--accent) 85%, black); }
.btn:active { transform: scale(0.98); }
.btn svg { width: 16px; height: 16px; fill: currentColor; }

.btn.ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--ink);
}

.btn.ghost:hover { border-color: var(--ink); background: transparent; }

.promo-card .btn { margin-top: 8px; }

/* Wide variant: the homepage radio bridge — plays the shared radio in place */

.promo-card--wide { min-height: 320px; }

.promo-card--wide .pc-content { padding: 32px; }

.promo-card--wide p { max-width: 56ch; }

.pc-radio {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  width: 100%;
}

.pc-status { white-space: nowrap; }
.pc-more { white-space: nowrap; }

.pc-play {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s;
}

.pc-play:hover { transform: scale(1.06); }

/* Playing: orange sonar rings ripple out of the button… */
.pc-play { position: relative; }

.pc-play::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) [data-radio-root].is-playing .pc-play::before {
    animation: pc-sonar 1.9s ease-out infinite;
  }
}

@keyframes pc-sonar {
  0% { transform: scale(1); opacity: 0.7; }
  70%, 100% { transform: scale(1.65); opacity: 0; }
}

/* …and a warm glow drifts across the card while the radio plays */
.promo-card--wide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(56% 90% at 12% 100%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

[data-radio-root].promo-card--wide.is-playing::before { opacity: 1; }

/* Particle field in the card's empty right side (canvas painted by site.js) */
.pc-particles {
  position: absolute;
  inset: 0;
  width: 100%;  /* canvas is a replaced element — inset alone won't stretch it */
  height: 100%;
  z-index: 0; /* above the card's darkening gradient so dots stay bright */
  pointer-events: none;
}

.promo-card--wide .pc-content { position: relative; z-index: 1; }

@media (max-width: 560px) {
  .pc-particles { display: none; } /* no empty space to fill on stacked mobile layout */
}

.pc-play svg { width: 24px; height: 24px; fill: currentColor; }

.pc-status { font-size: 14px; color: var(--dark-muted); }

[data-radio-root].is-playing .pc-status { color: #fff; }

.pc-more {
  margin-left: auto;
  padding-right: 16px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.pc-more:hover { color: var(--accent); }

@media (max-width: 640px) {
  .pc-more { margin-left: 0; width: 100%; white-space: normal; }
  .pc-status { white-space: normal; }
}

/* CTA band */

.cta-band {
  margin: 64px 0 0;
  background: var(--dark);
  border-radius: 20px;
  color: #fff;
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.18;
  filter: blur(2px);
  pointer-events: none;
}

.cta-band h2 { font-size: 30px; max-width: 22ch; position: relative; }
.cta-band p { margin: 6px 0 0; color: var(--dark-muted); font-size: 15px; position: relative; }
.cta-band .btn { position: relative; }

/* When the band is a section's sole content (sub-page CTAs), the section's
   own padding provides the rhythm — don't stack the band's margin on top. */
.section .wrap > .cta-band:first-child { margin-top: 0; }

/* Kategorie */

.cat-cloud { display: flex; flex-wrap: wrap; gap: 10px; }

.cat-cloud a {
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-soft);
  transition: all 0.15s;
}

.cat-cloud a:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: color-mix(in oklab, var(--accent) 7%, white);
}

/* ---------------- Page hero (radio / tv) ---------------- */

.page-hero {
  background: var(--dark);
  color: var(--dark-text);
  padding: 48px 0 56px;
}

.page-hero .hero-kicker { margin-bottom: 12px; }

.page-hero h1 { font-size: 42px; color: #fff; max-width: 20ch; }

.page-hero .lede {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--dark-muted);
  max-width: 58ch;
}

.page-hero .hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

.btn.dark-ghost {
  background: transparent;
  border: 1.5px solid var(--dark-border);
  color: var(--dark-text);
}

.btn.dark-ghost:hover { border-color: var(--dark-muted); background: rgba(255,255,255,0.04); }

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 56px;
  align-items: center;
}

/* Radio big player */

.radio-player-card {
  background: var(--dark-2);
  border: 1px solid var(--dark-border);
  border-radius: 22px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8);
}

.rpc-top { display: flex; align-items: center; gap: 18px; }

.rpc-play {
  width: 76px;
  height: 76px;
  flex: none;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.rpc-play:hover { transform: scale(1.05); }
.rpc-play svg { width: 28px; height: 28px; fill: currentColor; }

.rpc-meta .station {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 24px;
  color: #fff;
}

.rpc-meta .status { font-size: 14px; color: var(--dark-muted); margin-top: 3px; }

.eq { display: flex; align-items: flex-end; gap: 3px; height: 26px; }

.eq i {
  width: 4px;
  border-radius: 2px;
  background: var(--accent);
  height: 30%;
  transition: height 0.2s;
}

.is-playing .eq i { animation: eq-bounce 0.9s ease-in-out infinite; }
.is-playing .eq i:nth-child(2) { animation-delay: 0.15s; }
.is-playing .eq i:nth-child(3) { animation-delay: 0.3s; }
.is-playing .eq i:nth-child(4) { animation-delay: 0.45s; }
.is-playing .eq i:nth-child(5) { animation-delay: 0.6s; }

@keyframes eq-bounce {
  0%, 100% { height: 25%; }
  50% { height: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .is-playing .eq i { animation: none; height: 60%; }
}

.rpc-volume { display: flex; align-items: center; gap: 12px; color: var(--dark-muted); }
.rpc-volume svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

input[type="range"].vol {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--dark-border);
  outline: none;
}

input[type="range"].vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 0;
}

input[type="range"].vol::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 0;
}

/* Feature rows (radio/tv pages) */

.feature-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-card);
}

.feature-card .fc-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in oklab, var(--accent) 12%, white);
  color: var(--accent-ink);
  margin-bottom: 16px;
}

.feature-card .fc-icon svg { width: 22px; height: 22px; fill: currentColor; }

.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

/* Video thumbs (telewizja) */

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.video-card { display: flex; flex-direction: column; gap: 12px; }

.video-card .vc-thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.video-card image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }

.video-card .vc-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.video-card .vc-play span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(18, 15, 11, 0.72);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background 0.15s, transform 0.15s;
}

.video-card:hover .vc-play span { background: var(--accent); transform: scale(1.08); }
.video-card .vc-play svg { width: 20px; height: 20px; fill: currentColor; margin-left: 2px; }

.video-card h3 {
  font-size: 16.5px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-card .vc-desc {
  margin: 5px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  white-space: pre-line; /* keep the description's own line breaks */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.video-card .vc-desc.expanded {
  display: block;
  -webkit-line-clamp: none;
}

.video-card .vc-more {
  align-self: flex-start;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-ink);
  white-space: nowrap;
  cursor: pointer;
}

.video-card .vc-more:hover { text-decoration: underline; }

.video-card .vc-meta { font-size: 13px; color: var(--muted); margin-top: 5px; }

.video-card .vc-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #ddd8cc;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.video-card:hover .vc-thumb img { transform: scale(1.05); }

.video-card .vc-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(31, 28, 22, 0.08);
  pointer-events: none;
}

.video-card h3 { transition: color 0.15s; }
.video-card:hover h3 { color: var(--accent-ink); }

/* Loading skeletons */

@keyframes skel-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skel-card, .skel-row {
  border-radius: var(--radius);
  background: linear-gradient(100deg, #efece4 40%, #f7f5ef 50%, #efece4 60%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.4s linear infinite;
}

.skel-card { aspect-ratio: 16 / 11; }

.skel-row {
  height: 58px;
  border-radius: 10px;
  margin: 8px 0;
  background: linear-gradient(100deg, #28231b 40%, #332d23 50%, #28231b 60%);
  background-size: 200% 100%;
}

html[data-hero="framed"] .skel-row {
  background: linear-gradient(100deg, #efece4 40%, #f7f5ef 50%, #efece4 60%);
  background-size: 200% 100%;
}

@media (prefers-reduced-motion: reduce) {
  .skel-card, .skel-row { animation: none; }
}

/* YouTube fallback (playlist embed) */

.video-grid.yt-fallback { display: block; }

.yt-fallback-frame {
  aspect-ratio: 16 / 9;
  max-width: 880px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-card);
}

.yt-fallback-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Click-to-load consent placeholder (YouTube fallback, Google Maps) */

.embed-consent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  min-height: 320px;
  padding: 32px;
  background: var(--dark-2);
  border: 1px dashed var(--dark-border);
  border-radius: inherit;
  color: var(--dark-text);
  font-family: var(--font-body);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.embed-consent:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--dark-2)); }

.embed-consent svg {
  width: 40px;
  height: 40px;
  fill: var(--accent);
}

.embed-consent strong { font-size: 17px; font-weight: 700; }
.embed-consent span { font-size: 13px; color: var(--dark-muted); max-width: 44ch; line-height: 1.5; }

/* Video lightbox */

.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(12, 10, 7, 0.88);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 28px;
}

.video-lightbox .vl-col {
  width: min(1040px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.video-lightbox .vl-frame {
  width: 100%;
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
}

.video-lightbox .vl-info {
  margin-top: 14px;
  background: var(--dark-2);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 22px 26px;
  color: var(--dark-text);
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--dark-border) transparent;
}

.vl-info h3 { font-size: 19px; line-height: 1.35; margin: 0; color: #fff; }
.vl-info .vl-date { display: block; margin-top: 5px; font-size: 13px; color: var(--dark-muted); }

.vl-info .vl-desc {
  margin: 14px 0 0;
  white-space: pre-wrap; /* keep YouTube's paragraphs and line breaks */
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--dark-text);
  white-space: pre-line;
  overflow-wrap: break-word;
}

.vl-info .vl-desc a { color: var(--accent); word-break: break-all; }
.vl-info .vl-desc a:hover { text-decoration: underline; }

.video-lightbox iframe { width: 100%; height: 100%; border: 0; display: block; }

.vl-close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  transition: background 0.15s;
}

.vl-close:hover { background: var(--accent); border-color: transparent; }

.vl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s, opacity 0.15s;
}

.vl-nav svg { width: 22px; height: 22px; fill: currentColor; }
.vl-nav:hover:not(:disabled) { background: var(--accent); border-color: transparent; }
.vl-nav:disabled { opacity: 0.25; cursor: default; }
.vl-prev { left: 26px; }
.vl-next { right: 26px; }

/* Mobile: dock the arrows as a compact pair under the player
   (keyboard nav doesn't exist on touch, so hiding them would
   leave no way to browse) */
@media (max-width: 720px) {
  .video-lightbox { padding-bottom: 88px; }
  .vl-prev, .vl-next {
    top: auto;
    bottom: 18px;
    transform: none;
    width: 46px;
    height: 46px;
  }
  .vl-prev { left: calc(50% - 54px); }
  .vl-next { right: calc(50% - 54px); }
}

/* "Followuj nas" wave marquee — text rides a sine path (SVG textPath) */

.follow-marquee {
  display: block;
  overflow: hidden;
  margin-bottom: 32px;
  user-select: none;
  cursor: pointer;
}

.fm-svg {
  display: block;
  width: 100%;
  height: 190px;
}

.fm-text {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.fm-w-solid { fill: var(--dark-text); }

.fm-w-outline {
  fill: transparent;
  stroke: color-mix(in srgb, #fff 36%, transparent);
  stroke-width: 2;
}

.fm-w-dot { fill: var(--accent); font-size: 0.32em; baseline-shift: 1.2em; }

.follow-marquee:hover .fm-w-solid { fill: var(--accent); }
.follow-marquee:hover .fm-w-outline { stroke: var(--accent); }

/* Dark band variant: the social section sits on the brand dark surface */

.section--dark {
  background: var(--dark);
  padding-top: 40px;
  padding-bottom: 64px;
  margin: 72px 0;
}

.section--dark + .section { padding-top: 0; }

.section--dark .social-card {
  background: color-mix(in srgb, #fff 5%, var(--dark));
  border-color: color-mix(in srgb, #fff 13%, transparent);
}

.section--dark .social-card:hover { border-color: var(--accent); }

.section--dark .social-card .sc-name { color: #fff; }
.section--dark .social-card .sc-desc { color: var(--dark-muted); }
.section--dark .social-card .sc-arrow { color: var(--accent); }

/* Social cards (Facebook / Instagram) */

.fb-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: 48px;
  align-items: center;
}

.fb-intro h2 { font-size: 28px; margin-bottom: 14px; }

.fb-intro p {
  margin: 0 0 24px;
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 48ch;
}

.social-cards { display: flex; flex-direction: column; gap: 16px; }

/* Row variant: equal cards under the FOLLOWUJ NAS marquee */
.social-cards--row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  .social-cards--row { grid-template-columns: 1fr; }
}

.social-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
}

.social-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 2px 4px rgba(31, 28, 22, 0.06), 0 18px 36px -14px rgba(31, 28, 22, 0.18);
}

.social-card .sc-icon {
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--dark);
  color: #fff;
}

.social-card .sc-icon svg { width: 22px; height: 22px; fill: currentColor; }

.social-card .sc-meta { min-width: 0; flex: 1; }

.social-card .sc-name { display: block; font-size: 16px; font-weight: 700; color: var(--ink); }

.social-card .sc-desc {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.4;
}

.social-card .sc-arrow {
  flex: none;
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 18px;
  transition: transform 0.18s;
}

.social-card:hover .sc-arrow { transform: translateX(3px); }

@media (max-width: 1020px) {
  .fb-grid { grid-template-columns: 1fr; }
}


/* ---------------- Pricing / offers / contact ---------------- */

.section-intro {
  margin: -10px 0 26px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 72ch;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.price-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.price-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-card h3 { font-size: 18px; }

.price-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  flex: 1;
}

.price-card .pc-freq { font-size: 13px; color: var(--muted); }

.price-card .amount {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: 28px;
  color: var(--accent-ink);
  margin-top: 6px;
}

.price-card .amount small {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 6px;
}

.price-note {
  margin: 22px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* Offer cards (patronaty) */

.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.offer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.offer-card .kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 8px;
}

.offer-card h3 { font-size: 24px; margin-bottom: 12px; }

.offer-card .lede-s {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.offer-card > :last-child { margin-bottom: 0; }

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list + .lede-s { margin-top: 28px; }

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background-color: var(--accent);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.5L6.5 12.2l1.6-1.6 2.7 2.7 5.1-5.1 1.6 1.6-6.7 6.7Z"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.5L6.5 12.2l1.6-1.6 2.7 2.7 5.1-5.1 1.6 1.6-6.7 6.7Z"/></svg>') center / contain no-repeat;
}

/* Contact page */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: stretch;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-row { display: flex; gap: 16px; align-items: flex-start; }

.contact-row .cr-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in oklab, var(--accent) 12%, white);
  color: var(--accent-ink);
}

.contact-row .cr-icon svg { width: 20px; height: 20px; fill: currentColor; }

.contact-row .cr-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

.contact-row .cr-value { font-size: 15.5px; font-weight: 600; line-height: 1.5; }
.contact-row .cr-value a { color: var(--ink); }
.contact-row .cr-value a:hover { color: var(--accent-ink); }

.map-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  background: var(--surface);
  min-height: 380px;
}

.map-card iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

@media (max-width: 1020px) {
  .price-grid, .price-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .price-grid, .price-grid.cols-2, .price-grid.cols-4, .offer-grid { grid-template-columns: 1fr; }
}

/* Info / legal page (informacje o nadawcy) */

.info-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 22px;
  margin: 0;
  font-size: 14.5px;
}

.info-dl dt { color: var(--muted); font-weight: 600; }
.info-dl dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.info-dl dd a { color: var(--ink); }
.info-dl dd a:hover { color: var(--accent-ink); }

.concession-quote {
  margin: 14px 0 0;
  flex: 0 0 auto;
  border-left: 3px solid var(--accent);
  background: color-mix(in oklab, var(--accent) 6%, white);
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-style: italic;
}

/* Concession cards: natural height — no stretched whitespace under the text */
.price-grid:has(.concession-quote) { align-items: start; }
.price-card:has(.concession-quote) p { flex: 0 0 auto; }

.krrit-note {
  margin-top: 24px;
  padding: 20px 26px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--surface);
}

.krrit-note strong { color: var(--ink); }

/* ---------------- Footer ---------------- */

.site-footer {
  margin-top: 64px;
  background: var(--dark);
  color: var(--dark-muted);
  padding: 56px 0 96px; /* bottom padding sits behind the fixed radio bar */
  font-size: 14.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
}

.site-footer .f-brand img { height: 30px; margin-bottom: 16px; }
.site-footer .f-brand p { margin: 0 0 18px; max-width: 36ch; line-height: 1.6; }

.site-footer h4 {
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-text);
}

.f-links { display: flex; flex-direction: column; gap: 9px; }
.f-links a { transition: color 0.15s; }
.f-links a:hover { color: #fff; }

.f-contact { display: flex; flex-direction: column; gap: 7px; font-style: normal; }
.f-contact a { color: var(--dark-text); }
.f-contact a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

.partner-line { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.partner-line span { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------------- Radio bar (persistent) ---------------- */

.radio-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(18, 15, 11, 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--dark-border);
  color: var(--dark-text);
}

.radio-bar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.rb-play {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.15s;
}

.rb-play:hover { transform: scale(1.07); }
.rb-play svg { width: 16px; height: 16px; fill: currentColor; }

.rb-label { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }

.rb-label .station {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.rb-label .now {
  font-size: 12px;
  color: var(--dark-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.radio-bar .eq { height: 18px; flex: none; }

.rb-spacer { flex: 1; }

.rb-vol-wrap { display: flex; align-items: center; gap: 10px; width: 160px; color: var(--dark-muted); }
.rb-vol-wrap svg { width: 16px; height: 16px; fill: currentColor; flex: none; }

/* Mobile nav (hamburger injected by site.js) */

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--dark-border);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  place-items: center;
  place-content: center;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--dark-text);
  transition: transform 0.2s, opacity 0.2s;
}

.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav { display: none; }

.site-header.nav-open .mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 6px 28px 14px;
  border-top: 1px solid var(--dark-border);
}

.mobile-nav a {
  padding: 13px 2px;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark-muted);
  border-bottom: 1px solid var(--dark-border);
}

.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a:hover { color: #fff; }
.mobile-nav a.active { color: var(--accent); }

/* ---------------- Responsive ---------------- */

@media (max-width: 1020px) {
  .hero-grid, .page-hero-grid { grid-template-columns: 1fr; }
  .news-grid, .feature-grid, .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .nav-toggle { display: grid; }
}

@media (max-width: 640px) {
  .news-grid, .news-list, .promo-grid, .feature-grid, .video-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 30px; }
  .page-hero h1 { font-size: 32px; }
  .cta-band { padding: 32px 28px; }
  .rb-vol-wrap { display: none; }
  .header-inner { gap: 16px; }
  .live-chip .lc-text { display: none; }
}

/* ============================================================
   Polish layer — ambient glow, scroll reveals, finishing touches
   Toggled via html[data-glow] / html[data-motion] (Tweaks panel)
   ============================================================ */

/* Ambient glow behind the live player (dark hero only) */

.hero-card { position: relative; }

html:not([data-glow="off"]) .hero-card::before {
  content: "";
  position: absolute;
  inset: -14% -9%;
  background:
    radial-gradient(55% 55% at 22% 18%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%),
    radial-gradient(50% 60% at 85% 88%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 70%);
  filter: blur(52px);
  opacity: 0.5;
  pointer-events: none;
}

html[data-hero="framed"] .hero-card::before { display: none; }

/* Slow "breathing" — only when motion is allowed */
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]):not([data-glow="off"]) .hero-card::before {
    animation: glow-breathe 9s ease-in-out infinite;
  }
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.34; }
}

/* Page heroes: the glow takes the shape of the logo's crescent mark */

html:not([data-glow="off"]) .page-hero {
  position: relative;
  overflow: hidden;
}

html:not([data-glow="off"]) .page-hero > .wrap { position: relative; z-index: 1; }

html:not([data-glow="off"]) .page-hero::before {
  content: "";
  position: absolute;
  top: 50%;
  right: max(3%, 40px);
  width: clamp(260px, 34vw, 460px);
  aspect-ratio: 1 / 1;
  transform: translateY(-46%) rotate(-10deg);
  background: url("favicon.svg") center / contain no-repeat;
  filter: blur(26px);
  opacity: 0.32;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]):not([data-glow="off"]) .page-hero::before {
    animation: logo-glow-breathe 9s ease-in-out infinite;
  }
}

@keyframes logo-glow-breathe {
  0%, 100% { opacity: 0.32; }
  50% { opacity: 0.2; }
}

/* Scroll reveals — .reveal is added by site.js; without JS nothing hides */

@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: calc(var(--ri, 0) * 70ms);
  }

  html:not([data-motion="off"]) .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

/* Buttons: gentle lift with accent-tinted shadow */

.btn { transition: background 0.15s, transform 0.15s, box-shadow 0.2s; }

.btn:not(.ghost):not(.dark-ghost):hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--accent) 65%, transparent);
}

.btn:active { transform: scale(0.98); box-shadow: none; }

/* Live chip: subtle glow so "NA ŻYWO" reads as a light source */

.live-chip { box-shadow: 0 4px 14px -6px color-mix(in srgb, var(--accent) 75%, transparent); }

/* Keyboard focus + selection in brand color */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }

html.is-navigating { cursor: progress; }

/* 404: short page — let the dark hero fill the viewport so no cream
   strip appears between the message and the footer */
.page-404 {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.page-404 .page-hero {
  flex: 1;
  display: flex;
  align-items: center;
}

.page-404 .site-footer { margin-top: 0; }

.radio-bar { transition: transform 0.3s ease, opacity 0.3s ease; }

body.radio-bar-hidden .radio-bar {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

/* Slim progress bar shown while the in-page router fetches the next page */
#nav-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ============================================================
   Radio loading state + click-to-mute video
   ============================================================ */

[data-radio-toggle] .ic-loading {
  animation: radio-spin 0.9s linear infinite;
  transform-origin: 50% 50%;
}

@keyframes radio-spin {
  to { transform: rotate(360deg); }
}

.player-shell video { cursor: default; }

/* ============================================================
   Partner ads — eimperium.pl (Imperium Telecom)
   ============================================================ */

.partner-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 34px 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.partner-band:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(31, 28, 22, 0.05), 0 18px 36px -16px rgba(31, 28, 22, 0.18);
}

.partner-band .pb-note {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.partner-band .pb-kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.partner-band h2 { font-size: 25px; margin: 8px 0 0; max-width: 30ch; }
.partner-band p { margin: 8px 0 0; color: var(--ink-soft); font-size: 15px; max-width: 56ch; }
.partner-band .btn { flex-shrink: 0; }

/* Logo variant: white panel keeps any partner logo legible */
.partner-band--logo { align-items: center; }

.partner-band--logo .pb-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 24px;
}

.partner-band--logo .pb-logo img {
  display: block;
  width: 200px;
  height: auto;
}

@media (max-width: 800px) {
  .partner-band--logo .pb-logo { align-self: flex-start; }
}

@media (max-width: 800px) {
  .partner-band { flex-direction: column; align-items: flex-start; padding: 28px; }
}

/* Clickable partner mentions */

.partner-line a {
  color: var(--dark-text);
  font-weight: 700;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}

.partner-line a:hover { color: var(--accent); border-color: var(--accent); }

a.ext-link {
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}

a.ext-link:hover { text-decoration-color: var(--accent); }

/* ============================================================
   Corner style — html[data-corners]: round (default) | cut | sharp
   Circles and pills (play buttons, NA ŻYWO chip, badges) stay round.
   ============================================================ */

/* Przycięte — crisp 4–8px */

html[data-corners="cut"] { --radius: 6px; }

html[data-corners="cut"] .hero-card,
html[data-corners="cut"] .cta-band,
html[data-corners="cut"] .radio-player-card,
html[data-corners="cut"] .promo-card,
html[data-corners="cut"] .offer-card,
html[data-corners="cut"] .contact-card,
html[data-corners="cut"] .map-card,
html[data-corners="cut"] .partner-band,
html[data-corners="cut"] .vl-frame,
html[data-corners="cut"] .vl-info { border-radius: 8px; }

html[data-corners="cut"] .ch-card,
html[data-corners="cut"][data-hero="framed"] .player-shell { border-radius: 6px; }

html[data-corners="cut"] .btn,
html[data-corners="cut"] .pc-btn,
html[data-corners="cut"] .ch-num,
html[data-corners="cut"] .feature-card .fc-icon,
html[data-corners="cut"] .contact-row .cr-icon,
html[data-corners="cut"] .skel-row,
html[data-corners="cut"] .nav-toggle { border-radius: 4px; }

/* Ostre — fully square */

html[data-corners="sharp"] { --radius: 0px; }

html[data-corners="sharp"] .hero-card,
html[data-corners="sharp"] .cta-band,
html[data-corners="sharp"] .radio-player-card,
html[data-corners="sharp"] .promo-card,
html[data-corners="sharp"] .offer-card,
html[data-corners="sharp"] .contact-card,
html[data-corners="sharp"] .map-card,
html[data-corners="sharp"] .partner-band,
html[data-corners="sharp"] .vl-frame,
html[data-corners="sharp"] .vl-info,
html[data-corners="sharp"] .ch-card,
html[data-corners="sharp"] .btn,
html[data-corners="sharp"] .pc-btn,
html[data-corners="sharp"] .ch-num,
html[data-corners="sharp"] .feature-card .fc-icon,
html[data-corners="sharp"] .contact-row .cr-icon,
html[data-corners="sharp"] .skel-row,
html[data-corners="sharp"] .nav-toggle,
html[data-corners="sharp"] .main-nav a,
html[data-corners="sharp"] .header-right .socials a,
html[data-corners="sharp"] .embed-consent,
html[data-corners="sharp"][data-hero="framed"] .player-shell { border-radius: 0; }
