/* ==========================================================================
   Rojadirecta — livello grafico
   --------------------------------------------------------------------------
   Riproduzione del layout misurato su rojadirecta.eu (istantanea 2026-03-12).
   Le misure non sono stimate: vengono da tools/measure.js e da compare.js.
   L'originale è una tabella del 2007; qui lo stesso modello di scatola è
   ricostruito con flex/grid e token numerati, senza condividere il codice.

   Struttura:
     1. Token
     2. Reset
     3. Struttura (finestra, testata, menu, piè di pagina)
     4. Griglia del contenuto
     5. Palinsesto
     6. Tabella delle emittenti
     7. Box laterali
     8. Articoli e indici
     9. Componenti di testo (FAQ, fonti, tabelle, avvisi)
    10. Responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Token
   -------------------------------------------------------------------------- */

:root {
  /* Superfici */
  --c-page:      #efefef;  /* sfondo della pagina          */
  --c-window:    #ffffff;  /* la finestra centrale         */
  --c-window-bd: #333333;  /* filetto laterale             */
  --c-red:       #d20808;  /* testate, accenti             */
  --c-bar:       #cfcfcf;  /* menu e striscia del footer   */
  --c-head:      #e7e8ed;  /* righe del palinsesto         */
  --c-head-alt:  #d5d8e0;  /* righe pari, corpo dei box    */
  --c-even:      #eddedc;  /* righe pari della tabella     */

  /* Testo */
  --c-text:      #333333;
  --c-text-nav:  #555555;
  --c-text-dim:  #666666;
  --c-black:     #000000;
  --c-white:     #ffffff;

  /* Tipografia */
  --f-body: Verdana, Arial, sans-serif;
  --f-ui:   Arial, Helvetica, sans-serif;
  --f-plain: sans-serif;

  /* Misure della struttura */
  --w-window:    775px;
  --h-header:    100px;
  --h-subtitle:  25px;
  --h-footer-min: 48px;

  /* Griglia del contenuto */
  --w-content: 773px;
  --w-main:    421px;
  --w-side:    326px;
  --w-gutter:  13px;

  /* Palinsesto */
  --w-agenda:      415px;
  --h-agenda:      400px;
  --w-agenda-row:  398px;
  --h-agenda-row:  14px;

  /* Tabella delle emittenti */
  --w-streams: 399px;

  /* Box laterali */
  --h-box-head: 19px;
  --h-box-a:    119px;
  --gap-boxes:  19px;

  /* Interazione */
  --c-hover:  #d20808;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */

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

html { width: 100%; }

body {
  margin: 0;
  width: 100%;
  background: var(--c-page);
  color: var(--c-text);
  font: 16px/1.35 var(--f-body);
  text-align: center;
  -webkit-text-size-adjust: 100%;
}

img { border: 0; max-width: 100%; }

a { text-decoration: none; }

a:link,
a:visited,
a:active { color: var(--c-text-nav); }

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

.u-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Struttura
   -------------------------------------------------------------------------- */

.window {
  width: var(--w-window);
  margin: 0 auto;
  padding-bottom: 3px;
  background: var(--c-window);
  border-left: 1px solid var(--c-window-bd);
  border-right: 1px solid var(--c-window-bd);
  text-align: center;
}

/* -- Testata --------------------------------------------------------------- */

.masthead {
  position: relative;
  height: var(--h-header);
  background: var(--c-red);
}

/* Il marchio è 129x129 e sborda dal nastro di 100px, come nell'originale:
   immagine a y = -4.5px, quindi 24.5px sotto il nastro. */
.masthead__logo {
  position: absolute;
  left: 0;
  top: -4.5px;
  width: 129px;
  height: 129px;
  z-index: 3;
  display: block;
}

.masthead__logo img {
  display: block;
  width: 129px;
  height: 129px;
}

/* Insegna testuale 550x70, a y = 14.5px */
.masthead__wordmark {
  position: absolute;
  left: 159px;
  top: 14.5px;
  width: 550px;
  height: 70px;
  z-index: 2;
  background: url("../img/insegna-testuale.gif") no-repeat 0 0;
}

/* -- Menu superiore -------------------------------------------------------- */

.topnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: var(--h-subtitle);
  background: var(--c-bar);
  color: var(--c-text-nav);
  font: 11px var(--f-plain);
}

.topnav__link { color: var(--c-text-nav); }

.topnav__sep {
  margin: 0 3px;
  color: var(--c-text-nav);
}

/* Selettore lingua: il riquadro resta trasparente sul nastro grigio e il
   margine destro di 7px è ciò che determina il rientro del nastro. */
.topnav__lang {
  position: relative;
  display: inline-block;
  margin: 0 7px 0 4px;
  padding: 0 10px;
  border: 1px solid var(--c-red);
  font: 700 11px var(--f-plain);
  color: var(--c-text-nav);
  cursor: pointer;
}

.topnav__lang-current {
  color: var(--c-text-nav);
  cursor: pointer;
}

.topnav__lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: -1px;
  z-index: 30;
  min-width: 150px;
  padding: 8px;
  background: var(--c-bar);
  border: 1px solid var(--c-red);
  font: 400 12px var(--f-plain);
  text-align: right;
  white-space: nowrap;
}

.topnav__lang:hover .topnav__lang-menu,
.topnav__lang:focus-within .topnav__lang-menu { display: block; }

.topnav__lang-menu a {
  display: block;
  color: var(--c-text-nav);
}

.topnav__lang-menu a b { font-weight: 700; }

/* -- Piè di pagina --------------------------------------------------------- */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: var(--h-footer-min);
  margin: 0 3px;
  padding: 6px 10px;
  background: var(--c-bar);
  color: var(--c-text-nav);
  font: 12px/15px var(--f-plain);
}

.footer__links { line-height: 18px; }

.footer__sep { margin: 0 4px; }

.footer__cc {
  display: block;
  margin: 5px 0 3px;
  line-height: 0;
}

.footer__cc a { display: inline-block; }

.footer__cc img {
  display: block;
  width: 88px;
  height: 31px;
  border: 0;
}

.footer__note {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   4. Griglia del contenuto
   -------------------------------------------------------------------------- */

.content {
  display: grid;
  grid-template-columns: var(--w-main) var(--w-side);
  column-gap: var(--w-gutter);
  width: 766.1px;
  margin: 6px 0 0 3.5px;
  padding: 0 0 0 3px;
  text-align: left;
}

/* Solo la home ha un'altezza fissa: tiene il palinsesto e i box allineati.
   Le pagine articolo hanno testo che scorre e devono poter crescere. */
.content--schedule { min-height: 511px; }
.content--schedule .side { grid-column: 2; }

/* --------------------------------------------------------------------------
   5. Palinsesto
   -------------------------------------------------------------------------- */

.broadcasts__bar {
  height: 70px;
  padding: 2px;
  background: var(--c-red);
  border: 1px outset var(--c-red);
  color: var(--c-white);
  font: 14px var(--f-ui);
}

.broadcasts__bar-inner {
  display: flex;
  align-items: flex-start;
  height: 100%;
}

.broadcasts__bar-title {
  flex: 1 1 auto;
  padding-top: 3px;
}

.broadcasts__bar-title b { font-weight: 700; }

.broadcasts__bar-tools {
  flex: 0 0 226px;
  width: 226px;
  align-self: flex-start;
  padding-top: 7px;
  font: 700 10px var(--f-ui);
  line-height: 1;
}

.broadcasts__tz { color: var(--c-white); cursor: pointer; }

.broadcasts__clock {
  margin-left: 3px;
  color: var(--c-white);
  font-variant-numeric: tabular-nums;
}

.broadcasts__formats { font-weight: 400; }
.broadcasts__formats label { cursor: pointer; }
.broadcasts__formats input { margin: 0 1px 0 3px; vertical-align: middle; }

/* Ricerca: riga flessibile, il campo cede larghezza al pulsante tradotto
   invece di mandarlo a capo (errore visto in roja con pulsanti lunghi). */
.broadcasts__search {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 15px;
}

.broadcasts__search input[type="text"] {
  box-sizing: content-box;
  flex: 0 1 auto;
  width: 140px;
  min-width: 0;
  padding: 1px 2px;
  border: 2px inset #767676;
  background: var(--c-white);
  color: var(--c-black);
  font: 13.3333px Arial;
}

.broadcasts__search button {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 1px 6px;
  font: 13.3333px Arial;
}

/* Elenco scorrevole: <ol> semantico, senza marcatori, misure 421x406. */
.broadcasts__list {
  width: 421px;
  height: 406px;
  margin: 0;
  padding: 2px;
  list-style: none;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px outset var(--c-head-alt);
}

.event { display: block; }

.event__toggle {
  display: block;
  width: var(--w-agenda-row);
  margin: 0;
  padding: 1px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--c-head);
  color: var(--c-black);
  border: 1px outset var(--c-head-alt);
  font: 12px var(--f-ui);
  text-align: left;
  cursor: pointer;
}

.event__toggle:hover { background: var(--c-head-alt); }

.event__time { color: var(--c-black); }
.event__name { font-weight: 700; }

.event__panel { display: none; margin-bottom: 5.5px; }
.event.is-open > .event__panel { display: block; }

.event__note {
  width: var(--w-streams);
  margin: 2px 0 0;
  color: var(--c-text-dim);
  font: 11px var(--f-body);
}

/* Righe filtrate: tolte dal flusso ma presenti nel DOM, così un crawler che
   non esegue JS vede comunque tutti gli eventi. */
.event[hidden] { display: none; }

/* "Carica altri eventi" */
.broadcasts__more {
  display: block;
  width: 421px;
  height: 29px;
  padding: 2px;
  background: var(--c-head);
  border: 1px outset var(--c-head-alt);
  color: var(--c-black);
  font: 700 12px var(--f-ui);
  text-align: center;
  cursor: pointer;
}

/* Impaginazione lato client: solo dopo il JS. */
.broadcasts__list.is-paged .event[data-page="2"] { display: none; }

.broadcasts__search-note {
  margin: 4px 0 0;
  color: var(--c-white);
  font: 400 10px var(--f-ui);
}

/* --------------------------------------------------------------------------
   6. Tabella delle emittenti
   -------------------------------------------------------------------------- */

.streams {
  width: var(--w-streams);
  border-collapse: separate;
  border-spacing: 1px;
  font: 11px Verdana, Arial;
  text-align: left;
}

.streams th,
.streams td {
  padding: 0;
  background: var(--c-window);
  border: 0;
}

.streams th {
  color: var(--c-text);
  font-weight: 400;
  text-align: left;
}

.streams th > span { display: block; }

/* Stato "live" aggiunto dal JS quando si apre un pannello. */
.streams.is-live th {
  background: var(--c-red) url("../img/ordina-neutro.gif") 6px center no-repeat;
  color: var(--c-white);
  cursor: pointer;
}

.streams.is-live th > span { padding-left: 18px; }
.streams.is-live th:hover { color: var(--c-white); }

.streams.is-live th[aria-sort="descending"],
.streams.is-live th[aria-sort="ascending"] {
  background-color: var(--c-even);
  color: var(--c-black);
}

.streams.is-live th[aria-sort="descending"] { background-image: url("../img/ordina-decrescente.gif"); }
.streams.is-live th[aria-sort="ascending"]  { background-image: url("../img/ordina-crescente.gif"); }

.streams.is-live tbody tr:nth-child(even) td { background: var(--c-even); }

.streams__play { font-weight: 700; }

/* --------------------------------------------------------------------------
   7. Box laterali
   -------------------------------------------------------------------------- */

.side { display: flex; flex-direction: column; }

.box { width: var(--w-side); }
.box + .box { margin-top: var(--gap-boxes); }

.box__head {
  margin: 0;
  height: var(--h-box-head);
  padding-left: 2px;
  background: var(--c-red);
  font: 400 12px var(--f-ui);
  color: var(--c-white);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}

.box__body {
  height: var(--h-box-a);
  overflow: visible;
  white-space: nowrap;
  font: 12px var(--f-body);
}

.box--matches .box__body { background: var(--c-head-alt); }
.box--highlights .box__body { background: var(--c-head); height: auto; }

.box--matches .box__row { width: 325px; background: var(--c-head-alt); }
.box--highlights .box__row { width: 338px; background: var(--c-head); }

.box__row {
  display: block;
  padding: 1px;
  line-height: 15px;
  color: var(--c-text-nav);
  overflow: hidden;
  text-overflow: ellipsis;
}

.box__row,
.box__row:link,
.box__row:visited {
  color: var(--c-text-nav);
  text-decoration: none;
}

.box__row:hover { color: var(--c-hover); }

/* --------------------------------------------------------------------------
   8. Articoli e indici
   -------------------------------------------------------------------------- */

.article {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 16px 6.55px 28px 0;
  text-align: left;
  font-family: var(--f-body);
}

.article__breadcrumb {
  margin-bottom: 10px;
  color: var(--c-text-dim);
  font: 11px var(--f-plain);
}

.article__breadcrumb a { color: var(--c-text-nav); }

.article__title {
  margin: 0 0 6px;
  color: var(--c-red);
  font: 700 22px/1.25 var(--f-ui);
}

.article__meta {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-head-alt);
  color: var(--c-text-dim);
  font: 11px var(--f-plain);
}

/* Avatar della redazione: inline, tondo, piccolo. */
.article__avatar {
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-right: 5px;
  border-radius: 50%;
  vertical-align: -7px;
  background: var(--c-head) url("../img/authors/redazione.png") center/cover no-repeat;
}

.article__lead {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.article p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.6;
}

.article h2 {
  margin: 22px 0 8px;
  color: var(--c-red);
  font: 700 16px var(--f-ui);
}

.article h3 {
  margin: 16px 0 6px;
  color: var(--c-text);
  font: 700 13px var(--f-ui);
}

.article ul,
.article ol {
  margin: 0 0 14px;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.7;
}

/* Indice delle pagine di una categoria */
.index-list {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 16px 6.55px 28px 0;
  text-align: left;
}

.index-list h1 {
  margin: 0 0 14px;
  color: var(--c-red);
  font: 700 22px var(--f-ui);
}

.index-list h2 {
  margin: 20px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--c-head-alt);
  color: var(--c-red);
  font: 700 14px var(--f-ui);
}

.index-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.index-list li {
  padding: 4px 0;
  border-bottom: 1px solid var(--c-head);
  font: 12px var(--f-body);
  overflow-wrap: break-word;
}

.index-list a { color: var(--c-text-nav); }

/* Introduzione della home, sotto il palinsesto: dentro la griglia occupa
   entrambe le colonne, così resta allineata al bordo del contenuto. */
.home-intro {
  grid-column: 1 / -1;
  width: auto;
  margin: 18px 0 0;
  padding: 3px 0 0;
  text-align: left;
  font-family: var(--f-body);
}

/* Il blocco del palinsesto sta nella prima colonna */
.broadcasts { grid-column: 1; min-width: 0; }

.home-intro__heading {
  margin: 0 0 8px;
  color: var(--c-red);
  font: 700 17px var(--f-ui);
}

.home-intro__lead {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.home-intro p {
  margin: 0 0 11px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--c-text);
}

.home-intro__browse {
  margin: 16px 0 6px;
  color: var(--c-text);
  font: 700 13px var(--f-ui);
}

.home-intro__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-intro__links li {
  padding: 3px 0;
  border-bottom: 1px solid var(--c-head);
  font-size: 12px;
}

.home-intro__links a { font-weight: 700; }

/* --------------------------------------------------------------------------
   9. Componenti di testo
   -------------------------------------------------------------------------- */

.tablewrap {
  margin: 0 0 16px;
  overflow-x: auto;
}

.table-caption {
  margin: 0 0 5px;
  color: var(--c-text-dim);
  font: 11px var(--f-plain);
}

.article table {
  width: 100%;
  margin: 0 0 16px;
  border-collapse: collapse;
  font: 12px var(--f-body);
}

.article th {
  padding: 5px 8px;
  background: var(--c-red);
  color: var(--c-white);
  text-align: left;
}

.article td {
  padding: 5px 8px;
  border-bottom: 1px solid var(--c-head-alt);
}

.article tr:nth-child(even) td { background: var(--c-head); }

.notice {
  margin: 0 0 16px;
  padding: 9px 11px;
  background: var(--c-head);
  border-left: 3px solid var(--c-red);
  font-size: 12px;
  line-height: 1.6;
}

.notice p { margin: 0; font-size: 12px; }

.notice-title {
  display: block;
  margin-bottom: 4px;
}

.notice-warn { border-left-color: #c07a00; background: #fdf3e0; }
.notice-good { border-left-color: #2f7d32; background: #eef7ee; }

.toc {
  margin: 0 0 18px;
  padding: 9px 11px;
  background: var(--c-head);
  font-size: 12px;
}

.toc h2 {
  margin: 0 0 6px;
  font: 700 12px var(--f-ui);
  color: var(--c-text);
}

.toc ol { margin: 0; padding-left: 18px; }
.toc li { line-height: 1.7; }

.sources {
  margin: 22px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--c-head-alt);
  font-size: 12px;
}

.sources h2 {
  margin: 0 0 6px;
  font: 700 14px var(--f-ui);
  color: var(--c-red);
}

.sources-intro { margin: 0 0 8px; font-size: 12px; }

.sources ul { margin: 0; padding-left: 18px; }
.sources li { margin-bottom: 4px; line-height: 1.5; }

.faq { margin: 24px 0 0; }

.faq h2 {
  margin: 0 0 8px;
  color: var(--c-red);
  font: 700 16px var(--f-ui);
}

.faq-item {
  border-bottom: 1px solid var(--c-head-alt);
}

.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  cursor: pointer;
  font: 700 13px var(--f-ui);
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq-icon {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--c-red);
  border-bottom: 2px solid var(--c-red);
  transform: rotate(45deg);
  transition: transform 120ms;
}

.faq-item[open] .faq-icon { transform: rotate(-135deg); }

.faq-body { padding: 0 0 9px; }
.faq-body p { margin: 0 0 8px; font-size: 12px; }

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
  margin: 18px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--c-head-alt);
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   10. Responsive
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  z-index: 100;
  padding: 8px 14px;
  background: var(--c-red);
  color: var(--c-white);
  font: 700 12px var(--f-ui);
}

.skip-link:focus {
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  clip-path: none;
}

@media (max-width: 860px) {
  .window {
    width: 100%;
    max-width: 100%;
    padding-bottom: 0;
    border: 0;
  }

  .masthead { height: 76px; }
  .masthead__logo { top: -4px; width: 92px; height: 92px; }
  .masthead__logo img { width: 92px; height: 92px; }

  .masthead__wordmark {
    left: 104px;
    top: 14px;
    right: 8px;
    width: auto;
    height: 48px;
    background-size: contain;
    background-position: left center;
  }

  .topnav {
    flex-wrap: wrap;
    justify-content: center;
    height: auto;
    padding: 4px 8px;
    row-gap: 2px;
  }

  .topnav__link,
  .topnav__sep,
  .topnav__lang { line-height: 24px; }

  .topnav__link,
  .topnav__lang-current {
    display: inline-block;
    padding: 0 2px;
  }

  .topnav__lang { padding: 0 10px; }

  .topnav__lang-menu {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    text-align: center;
  }

  .content {
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    padding: 6px 8px 10px;
  }

  .broadcasts__bar { height: auto; }
  .broadcasts__bar-inner { display: block; height: auto; }
  .broadcasts__bar-title { padding: 3px 0 6px; }

  .broadcasts__bar-tools {
    flex: none;
    width: auto;
    padding-top: 0;
  }

  .broadcasts__formats label {
    display: inline-block;
    padding: 5px 4px;
    line-height: 24px;
  }

  .broadcasts__formats input { width: 16px; height: 16px; }

  .broadcasts__tz { display: inline-block; padding: 6px 0; line-height: 24px; }

  .broadcasts__search { margin-top: 2px; display: flex; gap: 6px; }

  .broadcasts__search input[type="text"] {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 28px;
  }

  .broadcasts__search button { padding: 4px 12px; min-height: 28px; }

  .broadcasts__search-note { font-size: 12px; }

  .broadcasts__list {
    width: 100%;
    height: auto;
    max-height: 70vh;
  }

  .event__toggle {
    width: 100%;
    padding: 5px 4px;
    line-height: 1.4;
  }

  .broadcasts__more {
    width: 100%;
    height: auto;
    padding: 8px 2px;
  }

  .streams {
    display: block;
    width: 100%;
    overflow-x: auto;
  }

  .streams th > span { padding-top: 6px; padding-bottom: 6px; }
  .streams td { padding-top: 6px; padding-bottom: 6px; }

  .side { margin-top: 18px; }
  .box { width: 100%; }
  .box--matches .box__row,
  .box--highlights .box__row { width: 100%; }
  .box__row { padding: 5px 1px; }

  .box__head {
    height: auto;
    padding: 0;
    line-height: 16px;
  }

  .box__head a {
    display: block;
    min-height: 24px;
    padding: 5px 2px;
  }

  .box__body { height: auto; max-height: 260px; overflow-y: auto; }

  .footer {
    height: auto;
    min-height: 48px;
    margin: 0;
    padding: 8px 10px;
  }

  .footer__links { line-height: 24px; }
  .footer__links a { display: inline-block; min-height: 24px; padding: 4px 2px 0; }

  .article,
  .index-list { width: auto; padding: 14px 10px 24px; }

  .home-intro {
    width: auto;
    margin: 18px 0 0;
    padding: 3px 10px 0;
  }

  .home-intro__links li { padding: 5px 0; }
  .home-intro__links a { display: inline-block; min-height: 24px; padding: 4px 0 0; }

  .index-list li { padding: 5px 0; }
  .index-list li a { display: block; min-height: 24px; padding: 4px 0 0; }

  .link-grid { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .masthead { height: 64px; }
  .masthead__logo { width: 76px; height: 76px; }
  .masthead__logo img { width: 76px; height: 76px; }
  .masthead__wordmark { left: 86px; height: 40px; top: 12px; }

  .broadcasts__list { max-height: 60vh; }

  .article__title { font-size: 19px; }
}

/* ===========================================================================
   Stream page (ECO.md §11 — player playbook)
   =========================================================================== */

/* Il box del player ha ESATTAMENTE il rapporto dell'iframe del provider.
   aspect-ratio sul contenitore + width/height 100% sull'iframe eliminano
   ogni ritaglio o banda nera (ECO.md §11.3). */
.player-stage {
  position: relative;
  max-width: 650px;
  margin: 0 auto;
  aspect-ratio: 650 / 500;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}

.player-stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Quando non c'è ancora un embed, il box resta ma con il messaggio. */
.player-stage--empty {
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-placeholder {
  max-width: 480px;
  padding: 1.4rem 1.6rem;
  color: #e8e8e8;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

.player-placeholder strong {
  display: block;
  margin-bottom: .5rem;
  font-size: 15px;
  color: #fff;
}

.player-placeholder p {
  margin: 0;
  color: #c9c9c9;
}

.player-page__back {
  max-width: 650px;
  margin: 1rem auto 0;
  font-size: 13px;
}

.expired-text {
  max-width: 650px;
  padding: .9rem 1.1rem;
  background: #fdf3e2;
  border: 1px solid #c07a00;
  border-left: 5px solid #c07a00;
  border-radius: 4px;
  color: #5a3a00;
  font-size: 14px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Palinsesto dentro .article (pagine categoria).
   .article ol aggiunge padding-left 22px + font 13px: sulle categorie la
   lista eventi risultava più "bulky" e disallineata rispetto alla home.
   Qui il componente riprende le proprie misure, come sulla home.
   -------------------------------------------------------------------------- */
.article .broadcasts__list {
  margin: 0;
  padding: 2px;
  font-size: 11px;
  line-height: normal;
  list-style: none;
}

.article .broadcasts__list .event__toggle { width: var(--w-agenda-row); }
.article .broadcasts__list .streams { width: var(--w-streams); }

/* Titolo della sezione eventi: stessa scala dei titoli dell'articolo. */
.article .links-heading {
  margin: 18px 0 8px;
  font-size: 15px;
  border-bottom: 0;
  padding-bottom: 0;
  color: var(--c-red);
  font-family: var(--f-ui);
  font-weight: 700;
}

/* La tabella .streams dentro .article riprende le misure del componente:
   .article table impone width:100% + padding 5px 8px + header rosso, che
   rendeva la lista "bulky" rispetto alla home. */
.article .streams {
  width: var(--w-streams);
  margin: 0;
  border-collapse: separate;
  border-spacing: 1px;
  font: 11px Verdana, Arial;
}
.article .streams th,
.article .streams td {
  padding: 0;
  border-bottom: 0;
}
.article .streams th {
  background: var(--c-window);
  color: var(--c-black);
}
.article .streams.is-live th {
  background: var(--c-red);
  color: var(--c-white);
}
.article .streams tr:nth-child(even) td { background: var(--c-window); }
.article .streams.is-live tbody tr:nth-child(even) td { background: var(--c-even); }

