/*
Theme Name: Radio Stanisławów — Na antenie
Author: Radio Stanisławów
Description: Autorski motyw radia: ekipa, muzyka i stały odtwarzacz. Współpracuje z wtyczką RS Radio Core.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: radio-stanislawow
License: GPL-2.0-or-later
*/
:root {
  --bg: #11130f;
  --panel: #1c2018;
  --ink: #f7f7ed;
  --muted: #adb2a3;
  --lime: #d0ff42;
  --orange: #ff5724;
  --line: #3e4436;
  --heading: Impact, 'Arial Narrow', 'Liberation Sans Narrow', sans-serif;
  --body: Arial, Helvetica, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 24px;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  padding-bottom: 112px;
  overflow-x: hidden;
  max-width: 100%;
}

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

a:hover {
  color: var(--lime);
}

button, input, textarea, select {
  font: inherit;
}

button, a, input, textarea, summary {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

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

button:disabled {
  opacity: .5;
  cursor: wait;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3 {
  line-height: 1.03;
}

h1 {
  font-family: var(--heading);
  font-weight: 900;
  font-size: clamp(3rem, 6.4vw, 6.4rem);
}

h2 {
  font-family: var(--heading);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

h3 {
  font-size: 1.12rem;
  line-height: 1.2;
}

p {
  margin-bottom: 1em;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 5px;
}

.wrap {
  width: min(1440px, calc(100% - 80px));
  margin-inline: auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .075em;
  font-size: .69rem;
  font-weight: 800;
}

/* HEADER */
.site-header {
  min-height: 110px;
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
  z-index: 5;
}

.wordmark {
  font-family: var(--heading);
  font-size: 1.6rem;
  line-height: .95;
  font-weight: 900;
  letter-spacing: -.02em;
  flex-shrink: 0;
}

.wordmark span {
  font-size: 1.23em;
}

.wordmark img {
  max-height: 65px;
  max-width: 65px;
}

.site-header nav {
  margin-left: auto;
}

.menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  padding: 0;
  margin: 0;
}

.menu a {
  font-weight: 700;
  font-size: .95rem;
}

.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  border-radius: 7px;
  background: var(--lime);
  color: #11130f;
  padding: 18px 25px;
  font-family: var(--heading);
  font-size: 1.25rem;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 900;
  white-space: nowrap;
  transition: background .15s, transform .15s;
}

.play-button:hover {
  background: #e1ff89;
  transform: translateY(-2px);
}

.play-symbol {
  font-family: Arial, sans-serif;
  font-size: 1.25em;
}

.menu-toggle {
  display: none;
}

/* HERO */
.hero {
  position: relative;
  min-height: 510px;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.hero-photo {
  position: absolute;
  right: 0;
  top: -110px;
  width: 62%;
  height: 640px;
  z-index: -1;
  overflow: hidden;
}

.hero-photo:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 32%), linear-gradient(0deg, var(--bg), transparent 18%);
}

.hero-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 45%;
}

.hero-copy {
  width: 57%;
  padding: 20px 0 34px;
  min-width: 0;
}

.hero h1 {
  max-width: 820px;
  margin: 0 0 18px;
  text-wrap: balance;
  line-height: .97;
}

.hero-kicker {
  color: var(--muted);
  font-size: .64rem;
  margin-bottom: 24px;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 100%;
  background: var(--lime);
  margin-right: 8px;
}

/* USUNIĘTY TEKST: "Fikcyjna ekipa. Głosy tworzone z AI. Muzyka i radiowe spięcia." */
.hero-tagline {
  display: none !important;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: stretch;
  margin-top: 26px;
}

.hero-play {
  font-size: 1.8rem;
  padding: 24px 28px;
  min-height: 100px;
}

.hero-play .play-symbol {
  font-size: 1.4em;
}

.on-air {
  background: var(--orange);
  color: #100f09;
  padding: 15px 20px;
  border-radius: 8px;
  min-width: 220px;
  max-width: 320px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.on-air strong {
  font-family: var(--heading);
  font-size: 1.6rem;
  line-height: 1.15;
  margin: 3px 0 6px;
}

.hero-track {
  border-top: 1px solid #1117;
  padding-top: 7px;
  font-size: .8rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.hero-disclosure {
  font-size: .65rem;
  color: var(--muted);
  margin: 14px 0 0;
}

.paper {
  position: absolute;
  z-index: 1;
  color: #1a1b15;
  background: #f0eedc;
  box-shadow: 3px 6px 14px #0005;
  padding: 12px 15px;
  font-style: italic;
  font-weight: 700;
  font-size: .8rem;
  max-width: 190px;
  line-height: 1.3;
}

.paper-one {
  left: 11%;
  top: 108px;
  transform: rotate(-9deg);
}

.paper-two {
  right: 6%;
  top: 250px;
  transform: rotate(8deg);
}

/* PASEK RAMÓWKI */
.schedule-strip {
  border-block: 1px solid var(--line);
  padding: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 30px;
  align-items: center;
  font-size: .83rem;
}

.schedule-strip b {
  font-size: .62rem;
  color: var(--lime);
  margin-right: 9px;
  letter-spacing: .05em;
}

.schedule-strip small {
  color: var(--muted);
  margin-left: 7px;
}

.schedule-strip > a {
  margin-left: auto;
  white-space: nowrap;
}

/* ==========================================================================
   SEKCJA GŁÓWNA: EKIPA (CREW) I CO ZNOWU ODWALILI (STORIES) - POPRAWKA FLEX/GRID
   ========================================================================== */
.home-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 36px;
  padding-block: 30px;
  align-items: start;
}

.home-columns > * {
  min-width: 0;
  width: 100%;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  min-width: 0;
}

.section-heading h2 {
  margin: 0;
  white-space: nowrap;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.section-heading:after {
  content: '';
  height: 1px;
  background: var(--line);
  flex: 1;
  min-width: 16px;
  order: 1;
}

.section-heading > a {
  font-size: .7rem;
  white-space: nowrap;
  order: 2;
  flex-shrink: 0;
}

/* EKIPA - elastyczny Flexbox/Grid bez ściskania na laptopach */
.crew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 14px;
  width: 100%;
}

.crew-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.crew-card > a {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.crew-card img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 25%;
  filter: saturate(.85);
  width: 100%;
  border-radius: 4px;
}

.crew-card > div,
.crew-card > a > div {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: space-between;
  margin-top: 10px;
  min-width: 0;
}

.crew-card h3 {
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(1.05rem, 1.2vw, 1.3rem);
  overflow-wrap: break-word;
  min-width: 0;
}

.crew-card p {
  font-size: .68rem;
  color: var(--muted);
  line-height: 1.4;
  margin: 6px 0 0;
}

.circle-arrow {
  background: var(--lime);
  color: #111;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 18px;
  flex-shrink: 0;
  transition: transform .15s ease;
}

/* CO ZNOWU ODWALILI - elastyczne karty Flexbox */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  width: 100%;
}

.story-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.story-card > a {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding-bottom: 4px;
}

.story-card img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  border-radius: 4px;
}

.story-meta {
  display: block;
  text-transform: uppercase;
  font-size: .58rem;
  letter-spacing: .06em;
  color: var(--muted);
  margin-top: 10px;
}

.story-card h3 {
  padding-right: 34px;
  font-family: var(--heading);
  font-size: clamp(1.1rem, 1.25vw, 1.25rem);
  line-height: 1.15;
  margin: 6px 0 0;
  overflow-wrap: break-word;
}

.story-card .circle-arrow {
  position: absolute;
  right: 0;
  bottom: 0;
}

/* BANER GŁOSOWY */
.voice-banner {
  background: var(--lime);
  color: #11130f;
  border-radius: 9px;
  padding: 25px 32px;
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 10px;
  margin-bottom: 36px;
}

.voice-banner h2 {
  font-size: clamp(1.8rem, 3.5vw, 3.3rem);
  margin: 0;
}

.voice-banner p {
  font-size: .85rem;
  margin: 6px 0 0;
}

.voice-banner .eyebrow {
  font-size: .65rem;
  margin: 0 0 7px;
}

.megaphone {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  transform: rotate(-15deg);
}

.banner-link {
  margin-left: auto;
  border-radius: 50%;
  background: #111;
  color: var(--lime);
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  font-size: 40px;
  flex-shrink: 0;
}

.banner-link:hover {
  background: #3b4623;
}

/* STOPKA */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 12px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 35px;
  align-items: center;
}

.footer-top p {
  font-size: .8rem;
  color: var(--muted);
  margin: 0;
}

.footer-top > a:last-child {
  margin-left: auto;
  font-size: .85rem;
}

.wordmark.small {
  font-size: 1.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 25px;
  font-size: .75rem;
  margin: 20px 0;
}

.social-links {
  color: var(--muted);
}

.footer-links details {
  position: relative;
}

.footer-links summary {
  cursor: pointer;
}

.footer-links details[open] a {
  display: block;
  padding: 5px;
}

.disclosure {
  color: var(--muted);
  font-size: .65rem;
  max-width: 920px;
}

.disclosure a {
  text-decoration: underline;
}

/* STAŁY ODTWARZACZ */
.persistent-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #11130ff7;
  border-top: 1px solid #515a42;
  backdrop-filter: blur(14px);
  z-index: 40;
  padding: 15px 0;
  padding-bottom: max(15px, env(safe-area-inset-bottom));
}

.player-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.dock-play {
  font-size: 1.1rem;
  min-width: 165px;
  padding: 17px 20px;
}

.dock-show {
  border-right: 1px solid var(--line);
  padding-right: 24px;
  max-width: 270px;
  min-width: 180px;
}

.dock-show strong {
  display: block;
  font-family: var(--heading);
  font-size: 1.2rem;
}

.dock-show .eyebrow {
  color: var(--muted);
  font-size: .56rem;
}

.dock-track {
  flex: 1;
  min-width: 0;
  font-size: .82rem;
}

.dock-track > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dock-track small {
  display: block;
  font-size: .65rem;
  color: var(--muted);
  margin-top: 4px;
}

.volume {
  font-size: .6rem;
  color: var(--muted);
  max-width: 120px;
}

.volume input {
  display: block;
  width: 110px;
  accent-color: var(--orange);
  margin-top: 5px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 10px;
  z-index: 100;
  background: var(--lime);
  color: #111;
  padding: 10px;
}

.skip-link:focus {
  top: 10px;
}

#navigation-status:not(:empty) {
  position: fixed;
  z-index: 70;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  padding: 12px 20px;
  background: var(--lime);
  color: #111;
  border-radius: 5px;
  font-size: .85rem;
}

#navigation-status a {
  color: #111;
  text-decoration: underline;
}

/* PODSTRONY */
.page-content {
  padding: 45px 0;
}

.page-heading {
  max-width: 1000px;
  margin-bottom: 35px;
}

.page-heading .eyebrow {
  color: var(--lime);
}

.page-heading h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  margin-bottom: 25px;
}

.entry-content {
  line-height: 1.75;
}

.entry-content > p, .entry-content > ul, .entry-content > h2 {
  max-width: 850px;
}

.entry-content a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content h2 {
  margin-top: 35px;
}

.entry-content h3 {
  margin-top: 20px;
}

.content-cta {
  margin-top: 60px;
  background: var(--panel);
  border-left: 5px solid var(--lime);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.content-cta h2 {
  font-size: 2.5rem;
  margin: 5px 0 10px;
}

.content-cta p {
  margin: 0;
  color: var(--muted);
}

.content-cta .eyebrow {
  color: var(--lime);
}

.article-content {
  max-width: 1000px;
}

.article-cover {
  max-height: 550px;
  object-fit: cover;
  width: 100%;
  margin-bottom: 35px;
}

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

.archive-grid h2 {
  font-size: 1.8rem;
  margin-top: 10px;
}

.archive-grid p {
  font-size: .9rem;
  color: var(--muted);
}

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

.crew-profile {
  border-bottom: 1px solid var(--line);
  padding-bottom: 25px;
  scroll-margin-top: 30px;
  min-width: 0;
}

.crew-profile img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.crew-profile h2 {
  margin-top: 20px;
}

.crew-profile .tagline {
  color: var(--lime);
  font-size: 1.1rem;
  font-weight: 700;
}

.crew-profile audio {
  width: 100%;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
}

.schedule-table th, .schedule-table td {
  padding: 20px 15px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.schedule-table th {
  color: var(--lime);
}

.schedule-table td:first-child {
  white-space: nowrap;
}

.schedule-table tr.is-current {
  background: var(--panel);
}

.schedule-note {
  color: var(--muted);
  font-size: .8rem;
}

.recorder {
  max-width: 760px;
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.recorder label {
  display: block;
  margin: 20px 0 7px;
}

.recorder input[type=text] {
  width: 100%;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 13px;
}

.recorder .consent {
  display: flex;
  gap: 12px;
  font-size: .85rem;
}

.recorder .consent input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.recorder button {
  border: 0;
  border-radius: 5px;
  padding: 13px 18px;
  background: var(--lime);
  color: #111;
  font-weight: 700;
}

.recorder .secondary {
  background: #3b4430;
  color: var(--ink);
}

.recorder-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.recorder audio {
  display: block;
  width: 100%;
  margin: 20px 0;
}

.recorder [hidden] {
  display: none;
}

.recorder-status {
  color: var(--lime);
}

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

.real-team img {
  height: 290px;
  width: 100%;
  object-fit: cover;
  object-position: top;
}

.real-team h3 {
  margin: 15px 0;
}

.real-team p {
  font-size: .9rem;
}

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

.link-panel {
  padding: 25px;
  background: var(--panel);
  border: 1px solid var(--line);
  min-width: 0;
}

.link-panel h2 {
  margin-top: 0;
}

.legacy-catalog {
  overflow-wrap: anywhere;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.legacy-catalog table {
  width: 100%;
  border-collapse: collapse;
}

.legacy-catalog td, .legacy-catalog th {
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.legacy-catalog .track-card,
.legacy-catalog .track {
  background: var(--panel);
  padding: 24px;
  scroll-margin-top: 30px;
  border: 1px solid var(--line);
  min-width: 0;
}

.legacy-catalog .track h3 {
  font-family: var(--heading);
  font-size: 1.6rem;
  margin: 12px 0;
}

.legacy-catalog .track p {
  font-size: .85rem;
}

.legacy-catalog details {
  font-size: .8rem;
  margin-top: 12px;
}

.legacy-catalog summary {
  cursor: pointer;
  color: var(--lime);
}

.legacy-catalog dt {
  font-weight: 700;
}

.legacy-catalog dd {
  margin-left: 0;
}

.legacy-catalog .track-no {
  color: var(--muted);
  margin-right: 10px;
}

.legacy-catalog .badge {
  font-size: .65rem;
  color: var(--muted);
}

.legacy-catalog img {
  max-height: 350px;
  object-fit: contain;
}

.legacy-catalog audio {
  max-width: 100%;
  width: 100%;
}

.legacy-catalog .license-note {
  font-size: .8rem;
  color: var(--muted);
}

.catalog-search {
  display: block;
  margin: 20px 0;
}

.catalog-search input {
  display: block;
  width: 100%;
  max-width: 700px;
  padding: 14px;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  margin-top: 8px;
}

.catalog-count {
  color: var(--muted);
  font-size: .8rem;
}

.full-team .profile {
  display: grid;
  grid-template-columns: minmax(180px, 30%) 1fr;
  gap: 35px;
  margin: 35px 0 60px;
}

.full-team .portrait-frame img {
  width: 100%;
  height: auto;
}

.full-team h3 {
  font-family: var(--heading);
  font-size: 2rem;
}

.full-team .degree {
  color: var(--muted);
}

.archive-links li {
  margin: 18px 0;
}

.archive-links time {
  color: var(--muted);
  margin-right: 15px;
}

[data-history-list] li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

[data-history-list] time {
  color: var(--lime);
  margin-right: 16px;
}

.admin-bar .site-header {
  scroll-margin-top: 32px;
}

[hidden] {
  display: none !important;
}

.alignwide {
  max-width: 1200px;
}

.wp-block-image img {
  height: auto;
}

.wp-caption-text {
  font-size: .8rem;
  color: var(--muted);
}

.screen-reader-text {
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  position: absolute;
}

.pagination {
  margin: 25px 0;
}

.page-numbers {
  padding: 10px;
}

.current {
  color: var(--lime);
}

/* ==========================================================================
   STYLIZACJA ROZKŁADU JAZDY (/rozklad/) - JAK NA ROZKLAD.HTML
   ========================================================================== */
.rs-transport,
.transport-wrap,
.rozklad-wrap {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.transport-controls,
.rs-transport-controls,
.rozklad-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  background: var(--panel);
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.transport-controls select,
.transport-controls input,
.rs-transport select,
.rs-transport input {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 14px;
  min-width: 180px;
  flex: 1 1 200px;
}

/* Tabela odjazdów na wzór tablicy z rozklad.html */
.transport-table,
.rs-departures-table,
.entry-content table.transport-table,
.rs-transport table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.transport-table thead th,
.rs-departures-table thead th,
.rs-transport table thead th {
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  padding: 8px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.transport-table tbody tr,
.rs-departures-table tbody tr,
.rs-transport table tbody tr {
  background: var(--panel);
  transition: transform .15s ease, background-color .15s ease;
}

.transport-table tbody tr:hover,
.rs-departures-table tbody tr:hover,
.rs-transport table tbody tr:hover {
  background: #252b1f;
  transform: translateY(-1px);
}

.transport-table td,
.rs-departures-table td,
.rs-transport table td {
  padding: 15px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: .92rem;
}

.transport-table td:first-child,
.rs-departures-table td:first-child,
.rs-transport table td:first-child {
  border-left: 4px solid var(--lime);
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  font-family: var(--heading);
  font-size: 1.35rem;
  color: var(--lime);
  white-space: nowrap;
}

.transport-table td:last-child,
.rs-departures-table td:last-child,
.rs-transport table td:last-child {
  border-right: 1px solid var(--line);
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.line-badge,
.bus-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #11130f;
  color: var(--lime);
  border: 1px solid var(--lime);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--heading);
  font-size: 1.1rem;
  min-width: 44px;
}

.status-scheduled,
.badge-scheduled {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700;
  background: rgba(208, 255, 66, 0.12);
  color: var(--lime);
  border: 1px solid rgba(208, 255, 66, 0.35);
}

.status-forecast,
.badge-forecast {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700;
  background: rgba(255, 87, 36, 0.15);
  color: var(--orange);
  border: 1px solid rgba(255, 87, 36, 0.4);
}

/* ==========================================================================
   MEDIA QUERIES - LAPTOPY, TABLETY I TELEFONY (RWD)
   ========================================================================== */

@media (min-width: 1500px) {
  .hero { min-height: 550px; }
  .hero-photo { height: 690px; }
}

/* Laptopy (do 1360px) - układamy Ekipę i Co znowu odwalili pod sobą, 
   dzięki czemu 5 kart ekipy i 3 karty historii mają pełną szerokość i się nie rozjeżdżają */
@media (max-width: 1360px) {
  .wrap {
    width: calc(100% - 56px);
  }
  .home-columns {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .crew-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
  }
  .story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

/* Mniejsze laptopy i tablety poziomo (do 1150px) */
@media (max-width: 1150px) {
  .wrap {
    width: calc(100% - 44px);
  }
  .site-header {
    gap: 20px;
    min-height: 95px;
  }
  .menu {
    gap: 14px 20px;
  }
  .hero-photo {
    right: 0;
  }
  .hero-copy {
    width: 65%;
  }
  .hero-play {
    font-size: 1.45rem;
    padding: 20px;
  }
  .on-air {
    min-width: 200px;
  }
  .crew-card img {
    aspect-ratio: 3 / 4;
  }
  .story-card img {
    aspect-ratio: 1.55;
  }
  .story-card h3 {
    font-size: 1.3rem;
  }
  .hero h1 {
    font-size: clamp(3rem, 5.5vw, 4.8rem);
  }
  .paper-one {
    left: 35%;
  }
  .paper-two {
    right: 2%;
    top: 235px;
  }
  .volume {
    display: none;
  }
}

/* Tablety pionowo (do 920px) */
@media (max-width: 920px) {
  .crew-grid {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  }
  .story-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* Telefony / Mobile (do 760px) */
@media (max-width: 760px) {
  body {
    padding-bottom: 110px;
  }
  .wrap {
    width: calc(100% - 32px);
  }
  .site-header {
    min-height: 76px;
    gap: 12px;
  }
  .wordmark {
    font-size: 1.1rem;
  }
  .wordmark img {
    max-height: 46px;
    max-width: 46px;
  }
  .header-play {
    display: none;
  }
  .menu-toggle {
    display: block;
    margin-left: auto;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
    padding: 8px 12px;
    border-radius: 5px;
  }
  .site-header nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--panel);
    padding: 20px;
    border: 1px solid var(--line);
    z-index: 50;
  }
  .site-header nav.is-open {
    display: block;
  }
  .menu {
    flex-direction: column;
    gap: 16px;
  }
  .hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .hero-copy {
    width: 100%;
    padding: 16px 0 20px;
    order: 0;
  }
  .hero-kicker {
    font-size: .56rem;
    margin-bottom: 14px;
  }
  .hero h1 {
    font-size: clamp(2.4rem, 10.5vw, 4.2rem);
    max-width: 100%;
    text-wrap: balance;
  }
  .hero-actions {
    margin-top: 18px;
    gap: 10px;
    display: flex;
    flex-wrap: wrap;
  }
  .hero-play {
    font-size: 1.1rem;
    padding: 16px 14px;
    min-height: 80px;
    gap: 8px;
    flex: 1 1 150px;
  }
  .on-air {
    min-width: 0;
    flex: 1 1 150px;
    padding: 12px;
    max-width: none;
  }
  .on-air strong {
    font-size: 1.15rem;
  }
  .on-air .eyebrow {
    font-size: .52rem;
  }
  .hero-track {
    font-size: .68rem;
  }
  .hero-disclosure {
    font-size: .58rem;
  }
  /* Naprawa rozpychania ekranu przez zdjęcie na mobile */
  .hero-photo {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 260px;
    order: 1;
    z-index: 0;
    border-radius: 8px;
  }
  .hero-photo > img {
    object-position: center 35%;
  }
  .hero-photo:after {
    background: linear-gradient(0deg, var(--bg), transparent 25%);
  }
  .paper {
    font-size: .62rem;
    max-width: 135px;
    padding: 8px 10px;
  }
  .paper-one {
    left: 6%;
    top: 12px;
  }
  .paper-two {
    right: 4%;
    top: 75px;
  }
  .schedule-strip {
    font-size: .74rem;
    flex-wrap: wrap;
    gap: 7px 12px;
    padding: 14px 0;
  }
  .schedule-strip > span {
    width: 100%;
  }
  .schedule-strip > a {
    margin-left: 0;
    margin-top: 4px;
    color: var(--lime);
  }
  .home-columns {
    padding-block: 24px;
    gap: 32px;
  }
  .section-heading {
    gap: 10px;
    flex-wrap: wrap;
  }
  .section-heading h2 {
    font-size: 1.45rem;
  }
  .section-heading > a {
    font-size: .63rem;
  }
  /* Ekipa na mobile jako wygodna siatka 2-kolumnowa Flexbox (bez ucinania i poziomego scrolla) */
  .crew-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 6px;
  }
  .crew-card {
    flex: 1 1 calc(50% - 6px);
    max-width: calc(50% - 6px);
    min-width: 130px;
  }
  .crew-card img {
    aspect-ratio: 3 / 4;
  }
  .crew-card p {
    font-size: .72rem;
  }
  .story-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .story-card > a {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
  }
  .story-card img {
    grid-row: 1 / 3;
    aspect-ratio: 1;
    width: 100px;
  }
  .story-card h3 {
    font-size: 1.15rem;
    margin-top: 4px;
    padding-right: 32px;
  }
  .story-meta {
    margin-top: 2px;
  }
  .story-card .circle-arrow {
    bottom: 4px;
  }
  .voice-banner {
    padding: 20px 18px;
    gap: 14px;
    margin-bottom: 25px;
    flex-wrap: wrap;
  }
  .megaphone {
    display: none;
  }
  .voice-banner h2 {
    font-size: 1.85rem;
    line-height: 1.05;
  }
  .voice-banner p {
    font-size: .78rem;
  }
  .banner-link {
    width: 44px;
    height: 44px;
    font-size: 26px;
  }
  .footer-top {
    flex-wrap: wrap;
    gap: 16px;
  }
  .footer-top > a:last-child {
    margin-left: 0;
    width: 100%;
    font-size: .8rem;
  }
  .footer-links {
    gap: 12px 18px;
  }
  .persistent-player {
    padding: 10px 0;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
  .player-inner {
    gap: 12px;
  }
  .dock-show {
    display: none;
  }
  .dock-play {
    min-width: 115px;
    font-size: .95rem;
    padding: 14px 12px;
    gap: 8px;
  }
  .dock-track {
    font-size: .72rem;
  }
  .dock-track small {
    font-size: .62rem;
  }
  .page-content {
    padding: 25px 0;
  }
  .page-heading h1 {
    font-size: clamp(2.2rem, 9vw, 3rem);
    overflow-wrap: anywhere;
  }
  .crew-profiles, .archive-grid, .real-team, .link-panels, .legacy-catalog, .full-team .profile {
    grid-template-columns: 1fr;
  }
  .full-team .portrait-frame {
    max-width: 330px;
  }
  .content-cta {
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
  }
  .content-cta h2 {
    font-size: 1.9rem;
  }
  .schedule-table th, .schedule-table td {
    padding: 12px 6px;
    font-size: .76rem;
  }
  .schedule-table th:last-child, .schedule-table td:last-child {
    display: none;
  }
  .recorder {
    padding: 18px;
  }
  .real-team img {
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
	
  }
  .archive-grid .story-card > a {
    display: block;
  }
  .archive-grid .story-card img {
    width: 100%;
    aspect-ratio: 1.6;
  }

  /* Rozkład jazdy na mobile - zamiana wierszy tabeli w karty Flexbox */
  .transport-table thead,
  .rs-departures-table thead,
  .rs-transport table thead {
    display: none;
  }
  .transport-table,
  .transport-table tbody,
  .rs-departures-table,
  .rs-departures-table tbody,
  .rs-transport table,
  .rs-transport table tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .transport-table tbody tr,
  .rs-departures-table tbody tr,
  .rs-transport table tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--lime);
    border-radius: 8px;
  }
  .transport-table td,
  .rs-departures-table td,
  .rs-transport table td {
    border: 0 !important;
    padding: 0 !important;
    font-size: .88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}


/* Dwa równe kafelki w jednym wierszu na telefonie. */
@media (max-width:760px) {
 .hero-actions { display:flex; flex-direction:row; flex-wrap:nowrap; align-items:stretch; gap:10px; }
 .hero-actions .play-button, .hero-actions .on-air { flex:1 1 0; width:0; min-width:0; max-width:none; height:auto; max-height:none; min-height:80px; overflow-wrap:anywhere; }
 .hero-actions .play-button { white-space:normal; padding:14px 8px; gap:6px; }
 .hero-actions [data-play-label] { min-width:0; max-width:5ch; line-height:1.15; }
 .hero-actions .on-air { align-items:flex-start; }
 .hero-actions .hero-track { width:100%; }
 .crew-card { min-width:0; }
}
.schedule-strip > a { z-index:1; }

/* 1.1.6: equal photo frames and aligned captions in each card row. */
.crew-card img,
.crew-profile img,
.stories-section .story-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  margin-bottom: 0;
  filter: none;
}
.stories-section .story-card img { object-position: center; }
.crew-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1151px) and (max-width: 1360px) {
  .crew-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .stories-section .story-card > a {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .stories-section .story-meta { margin-top: 10px; }
}

/* Fotografia grupowa na /o-radiu/ - proporcje 1:1, bez przycinania twarzy. */
.rs-team-group { max-width: 640px; margin: 20px auto 35px; text-align: center; }
.rs-team-group img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center top; border-radius: 12px; }
.rs-team-group figcaption { margin-top: 9px; color: var(--muted); font-size: .88rem; }
