:root {
    --bg: #f5f2ea;
    --bg-end: #f8f5ef;
    --bg-accent: rgba(19, 75, 147, 0.08);
    --panel: #fffdf8;
    --panel-alt: #f9f5ec;
    --line: #d8d1c0;
    --line-strong: #c8bea8;
    --text: #1f1b16;
    --muted: #665d51;
    --program: #134b93;
    --program-soft: #e8f0fb;
    --direct: #bb1e2d;
    --direct-soft: #f9e8ea;
    --replay: #1f7a48;
    --replay-soft: #e8f5ec;
    --neutral-soft: #f2ede3;
    --shadow: 0 18px 40px rgba(47, 34, 15, 0.06);
    --radius: 22px;
}

html[data-theme="dark"] {
    --bg: #10151c;
    --bg-end: #121a24;
    --bg-accent: rgba(127, 180, 255, 0.08);
    --panel: #171e28;
    --panel-alt: #1c2531;
    --line: #2c3848;
    --line-strong: #3a4759;
    --text: #f2f5f9;
    --muted: #aeb8c8;
    --program: #7fb4ff;
    --program-soft: rgba(127, 180, 255, 0.12);
    --direct: #ff7381;
    --direct-soft: rgba(255, 115, 129, 0.12);
    --replay: #53c282;
    --replay-soft: rgba(83, 194, 130, 0.12);
    --neutral-soft: #202a37;
    --shadow: 0 20px 46px rgba(0, 0, 0, 0.26);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, var(--bg-accent), transparent 30%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-end) 100%);
    font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
}

.front-fatal {
    padding: 24px;
}

.front-fatal-box {
    max-width: 880px;
    margin: 0 auto;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 28px;
}

.front-fatal-box h1 {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.05;
}

.front-fatal-box p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.6;
}

.front-fatal-ref {
    margin-top: 14px;
    font-family: Menlo, Monaco, Consolas, monospace;
    font-size: 14px;
}

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

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

.shell {
    width: min(1240px, 100%);
    margin: 0 auto;
    padding: 24px;
}

.masthead {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.main-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1 1 auto;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.92);
    color: var(--muted);
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

html[data-theme="dark"] .main-nav a {
    background: rgba(23, 30, 40, 0.94);
}

.main-nav a.active {
    border-color: var(--program);
    background: var(--program);
    color: #fff;
}

.main-nav a.nav-home {
    width: 44px;
    min-width: 44px;
    padding: 0;
}

.main-nav a.nav-home svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

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

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.92);
    color: var(--muted);
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

html[data-theme="dark"] .theme-toggle {
    background: rgba(23, 30, 40, 0.94);
}

.theme-toggle:hover {
    border-color: var(--program);
    color: var(--program);
}

.theme-toggle svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-toggle .icon-sun {
    display: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 22px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

html[data-theme="dark"] .site-footer {
    background: linear-gradient(180deg, #151d28 0%, #131a24 100%);
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 14px;
}

.footer-meta strong {
    color: var(--text);
    font-weight: 600;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--muted);
    font-size: 14px;
}

html[data-theme="dark"] .footer-nav a {
    color: #c8d3e2;
}

.footer-nav a:hover {
    color: var(--program);
}

.footer-side {
    display: flex;
    align-items: center;
    gap: 14px;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.search-form input,
.search-form button {
    min-height: 40px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    font: inherit;
}

html[data-theme="dark"] .search-form input,
html[data-theme="dark"] .search-form button {
    background: #111823;
}

.search-form input {
    min-width: 0;
    width: 240px;
    padding: 0 14px;
}

.search-form button {
    padding: 0 14px;
    cursor: pointer;
}

.search-form-page {
    margin-top: 14px;
    max-width: 640px;
}

.search-form-page input {
    flex: 1 1 auto;
    width: auto;
}

.search-results-shell {
    min-height: 180px;
}

.page-search .gsc-control-cse,
.page-search .gsc-control-cse-en {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.footer-debug {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.footer-debug-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel-alt);
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    line-height: 1;
}

.hero {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: linear-gradient(180deg, #fffefb 0%, #fbf6ee 100%);
    box-shadow: var(--shadow);
}

html[data-theme="dark"] .hero {
    background: linear-gradient(180deg, #1a2230 0%, #161d28 100%);
}

.eyebrow {
    margin: 0 0 10px;
    font-size: clamp(11px, 1.2vw, 12px);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

h1 {
    margin: 0;
    font-size: clamp(28px, 4.2vw, 48px);
    line-height: 1.02;
}

.lead {
    margin: 12px 0 0;
    max-width: 72ch;
    color: var(--muted);
    font-size: clamp(15px, 2vw, 17px);
    line-height: 1.6;
}

.page-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 20px;
}

.page-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.page-rail {
    margin-top: 20px;
    min-width: 0;
}

.adsense-slot {
    display: block;
    border: 1px solid rgba(123, 135, 154, 0.22);
}

.adsense-slot-header,
.adsense-slot-footer {
    margin-top: 20px;
}

.adsense-slot-rail {
    display: none;
}

.adsense-slot ins {
    min-height: 90px;
}

.adsense-slot-rail ins {
    min-height: 600px;
}

.panel {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

html[data-theme="dark"] .editorial-block,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .table-shell,
html[data-theme="dark"] tbody tr {
    background: var(--panel);
}

.editorial-block {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
}

.editorial-block h2 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.25;
}

.editorial-block p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.editorial-program {
    background: var(--program-soft);
    border-color: rgba(19, 75, 147, 0.18);
}

.editorial-direct {
    background: var(--direct-soft);
    border-color: rgba(187, 30, 45, 0.18);
}

.date-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.toolbar-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.8);
}

html[data-theme="dark"] .toolbar-link {
    background: rgba(23, 30, 40, 0.92);
}

.toolbar-link.is-disabled {
    opacity: .45;
    pointer-events: none;
}

.nav-arrow-mobile {
    display: none;
    font-size: 26px;
    line-height: 1;
}

.date-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
    min-width: 0;
}

.date-form label {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.date-form input,
.date-form select,
.date-form button {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    font: inherit;
}

html[data-theme="dark"] .date-form input,
html[data-theme="dark"] .date-form select,
html[data-theme="dark"] .date-form button {
    background: #111823;
}

.date-form button {
    cursor: pointer;
}

.table-shell {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel);
}

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

thead th {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--panel-alt);
    text-align: left;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

tbody td {
    padding: 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody td:first-child {
    width: 1%;
    white-space: nowrap;
    padding-right: 8px;
}

tbody td:nth-child(2),
tbody td:nth-child(3) {
    padding-left: 10px;
}

.channel-cell {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.channel-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 112px;
    min-width: 112px;
}

.channel-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.channel-logo {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    display: grid;
    place-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

html[data-theme="dark"] .channel-logo {
    background: #111823;
}

.logochaine {
    display: block;
    width: 100%;
    height: auto;
}

html[data-theme="dark"] .logochaine {
    filter:
        drop-shadow(0 0 10px rgba(127, 180, 255, 0.22))
        drop-shadow(0 0 18px rgba(255, 255, 255, 0.10));
}

.channel-logo span {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.channel-name {
    margin: 0;
    width: 100%;
    text-align: center;
    font-size: 13px;
    line-height: 1.35;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.action-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.action-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 13px;
    color: var(--muted);
}

html[data-theme="dark"] .action-chip {
    background: #111823;
}

.action-chip.direct {
    border-color: rgba(187, 30, 45, 0.2);
    background: var(--direct-soft);
    color: var(--direct);
}

.action-chip.direct.is-current {
    border-color: var(--direct);
    background: var(--direct);
    color: #fff;
}

.action-chip.replay {
    border-color: rgba(31, 122, 72, 0.2);
    background: var(--replay-soft);
    color: var(--replay);
}

.action-chip.replay.is-current {
    border-color: var(--replay);
    background: var(--replay);
    color: #fff;
}

.action-chip.program {
    border-color: rgba(19, 75, 147, 0.18);
    background: var(--program-soft);
    color: var(--program);
}

.action-chip.program.is-current {
    border-color: var(--program);
    background: var(--program);
    color: #fff;
}

.programme-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(19, 75, 147, 0.14);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, var(--program-soft) 100%);
}

html[data-theme="dark"] .programme-card {
    background: linear-gradient(180deg, rgba(127, 180, 255, 0.08) 0%, rgba(127, 180, 255, 0.15) 100%);
}

.programme-card.empty {
    border-color: var(--line);
    background: var(--neutral-soft);
}

.programme-time {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--program);
    line-height: 1;
}

.programme-card.empty .programme-time {
    color: var(--muted);
}

.programme-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.28;
}

.programme-meta,
.programme-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.programme-subtitle {
    font-size: 15px;
}

.site-meta {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.programme-meta {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid rgba(19, 75, 147, 0.16);
    border-radius: 999px;
    background: rgba(19, 75, 147, 0.08);
    color: var(--program);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
}

html[data-theme="dark"] .programme-meta {
    border-color: rgba(127, 180, 255, 0.2);
    background: rgba(127, 180, 255, 0.12);
    color: var(--program);
}

.empty-state {
    padding: 28px;
    border: 1px dashed var(--line-strong);
    border-radius: 20px;
    background: var(--panel-alt);
    color: var(--muted);
    text-align: center;
}

.placeholder-card {
    padding: 22px;
    border: 1px dashed var(--line-strong);
    border-radius: 22px;
    background: var(--panel-alt);
}

.placeholder-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.legal-head .lead {
    margin-top: 8px;
}

.legal-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.legal-section h2,
.legal-card h3 {
    margin: 0;
}

.legal-section h2 {
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.08;
}

.legal-section p,
.legal-card p,
.legal-list li {
    margin: 0;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.7;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.legal-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel-alt);
}

.legal-list {
    margin: 0;
    padding-left: 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.seo-html {
    color: var(--text);
    line-height: 1.7;
}

.seo-html > :first-child {
    margin-top: 0;
}

.seo-html > :last-child {
    margin-bottom: 0;
}

.seo-html h2,
.seo-html h3 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.2;
}

.seo-html p,
.seo-html ul,
.seo-html ol {
    margin: 0 0 14px;
}

.seo-html a {
    color: var(--program);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.program-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.program-detail-main {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1 1 620px;
}

.program-detail-logo {
    width: 90px;
    height: 90px;
    flex: 0 0 90px;
    display: grid;
    place-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

html[data-theme="dark"] .program-detail-logo {
    background: #111823;
}

.program-detail-copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.program-detail-copy h1 {
    margin: 0;
    font-size: clamp(30px, 4.4vw, 46px);
    line-height: 1.03;
}

.program-detail-copy .lead {
    margin: 0;
}

.program-detail-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.program-detail-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 18px;
}

.program-meta-grid,
.program-neighbors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.program-neighbors.is-single {
    grid-template-columns: 1fr;
}

.program-meta-box {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel-alt);
    padding: 14px;
}

.program-meta-box strong {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.program-neighbor-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.program-section + .program-section {
    margin-top: 18px;
}

.program-section h2 {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.25;
}

.channel-page-head {
    display: grid;
    gap: 18px;
}

.channel-page-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.channel-page-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.channel-page-logo {
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
}

.channel-page-copy {
    min-width: 0;
}

.channel-page-copy h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.04;
}

.channel-page-date {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 500;
    line-height: 1.2;
}

.channel-page-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.channel-zapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.channel-zapper-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.channel-zapper-grid {
    display: flex;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 1px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.channel-zapper-grid::-webkit-scrollbar {
    display: none;
}

.channel-zapper-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 66px;
    min-height: 66px;
    padding: 1px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    transition: transform .18s ease;
}

.channel-zapper-link:hover {
    transform: translateY(-1px);
}

.channel-zapper-logo {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 253, 248, 0.92);
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.channel-zapper-link:hover .channel-zapper-logo {
    border-color: rgba(19, 75, 147, 0.26);
}

.channel-zapper-link.is-current .channel-zapper-logo {
    border-color: var(--program);
    background: rgba(19, 75, 147, 0.08);
    box-shadow: 0 0 0 1px rgba(19, 75, 147, 0.06);
}

html[data-theme="dark"] .channel-zapper-link {
}

html[data-theme="dark"] .channel-zapper-logo {
    background: rgba(23, 30, 40, 0.94);
    border-color: rgba(124, 145, 172, 0.18);
}

html[data-theme="dark"] .channel-zapper-link:hover .channel-zapper-logo {
    border-color: rgba(104, 155, 232, 0.28);
}

html[data-theme="dark"] .channel-zapper-link.is-current .channel-zapper-logo {
    background: rgba(19, 75, 147, 0.22);
    border-color: rgba(104, 155, 232, 0.34);
    box-shadow: 0 0 0 1px rgba(104, 155, 232, 0.12);
}

.channel-highlight-live {
    background: linear-gradient(180deg, #fdecec 0%, #f9dfdf 100%);
    border-color: rgba(187, 30, 45, 0.24);
}

.channel-highlight-upcoming {
    background: linear-gradient(180deg, #eef8f2 0%, #e6f3eb 100%);
    border-color: rgba(31, 122, 72, 0.2);
}

html[data-theme="dark"] .channel-highlight-live {
    background: linear-gradient(180deg, rgba(255, 115, 129, 0.14) 0%, rgba(255, 115, 129, 0.08) 100%);
    border-color: rgba(255, 115, 129, 0.24);
}

html[data-theme="dark"] .channel-highlight-upcoming {
    background: linear-gradient(180deg, rgba(83, 194, 130, 0.12) 0%, rgba(83, 194, 130, 0.08) 100%);
    border-color: rgba(83, 194, 130, 0.22);
}

.channel-day-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.channel-day-item {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 18px;
    align-items: flex-start;
}

.channel-day-item.is-live {
    border-color: rgba(187, 30, 45, 0.22);
}

.channel-day-time {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.channel-day-start {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--program);
}

.channel-day-end {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.2;
}

.channel-day-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.channel-day-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.channel-day-heading h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.12;
}

.channel-day-heading h2 a:hover {
    color: var(--program);
}

.channel-day-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.channel-upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.channel-upcoming-item {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    color: inherit;
}

.channel-upcoming-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.channel-upcoming-time {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.channel-upcoming-hour {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--program);
}

.channel-upcoming-date {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.channel-upcoming-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.channel-upcoming-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.12;
}

.live-channel-player {
    display: grid;
    gap: 16px;
}

.fake-player {
    display: block;
    color: inherit;
}

.fake-player-screen {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 360px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 28%),
        linear-gradient(180deg, #0f141c 0%, #151d28 100%);
    text-align: center;
}

.fake-player-core {
    display: grid;
    justify-items: center;
    gap: 18px;
    max-width: 640px;
}

.fake-player-logo {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 80px;
    height: 80px;
    flex: 0 0 80px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.fake-player-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(187, 30, 45, 0.92);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fake-player-play {
    display: inline-grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border: 2px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 36px;
    line-height: 1;
    padding-left: 6px;
}

.fake-player-copy {
    display: grid;
    gap: 6px;
    justify-items: center;
    max-width: 520px;
}

.fake-player-copy .broadcast-title {
    color: #fff;
    font-size: clamp(34px, 4.2vw, 52px);
}

.fake-player-copy .site-meta {
    color: rgba(233, 239, 248, 0.76);
}

.video-shell {
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #0c1118;
    aspect-ratio: 16 / 9;
}

.video-shell iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.live-external-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.live-head .lead {
    margin-top: 8px;
}

.stasera-head .lead {
    margin-top: 8px;
    margin-bottom: 14px;
}

.stasera-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.ora-head .lead {
    margin-top: 8px;
    margin-bottom: 14px;
}

.ora-slot-nav {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.ora-slot-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ora-slot-strip::-webkit-scrollbar {
    display: none;
}

.ora-slot-strip .action-chip {
    flex: 0 0 auto;
    white-space: nowrap;
}

.ora-grid-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    --ora-channel-width: 124px;
    --ora-grid-gap: 16px;
}

.ora-grid-head,
.ora-row {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.ora-grid-head,
.ora-rows {
    position: relative;
    z-index: 1;
}

.ora-grid-lines {
    position: absolute;
    top: 34px;
    right: 0;
    bottom: 0;
    left: calc(var(--ora-channel-width) + var(--ora-grid-gap));
    z-index: 0;
    pointer-events: none;
}

.ora-grid-midline,
.ora-grid-nowline {
    position: absolute;
    top: 0;
    bottom: 0;
}

.ora-grid-midline {
    z-index: 0;
    left: 50%;
    width: 1px;
    background: rgba(216, 209, 192, 0.7);
    transform: translateX(-0.5px);
}

.ora-grid-nowline {
    z-index: 4;
    width: 2px;
    background: var(--direct);
    box-shadow: 0 0 0 1px rgba(187, 30, 45, 0.12);
    transform: translateX(-1px);
}

.ora-grid-head-channel {
    min-height: 1px;
}

.ora-scale {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: end;
    min-height: 30px;
    padding-bottom: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ora-scale::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--line);
}

.ora-scale-start {
    justify-self: start;
}

.ora-scale-middle {
    justify-self: center;
}

.ora-scale-end {
    justify-self: end;
}

.ora-rows {
    display: flex;
    flex-direction: column;
}

.ora-row {
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.ora-row:first-child {
    padding-top: 0;
    border-top: 0;
}

.ora-channel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    min-width: 0;
}

.ora-channel-logo {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    padding: 10px;
}

.ora-channel-name {
    margin: 0;
    max-width: 100%;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    word-break: break-word;
}

.ora-track {
    position: relative;
    min-height: 126px;
    overflow: hidden;
}

.ora-segment {
    position: absolute;
    top: 10px;
    bottom: 10px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    padding: 12px 14px;
    overflow: hidden;
    border: 1px solid rgba(19, 75, 147, 0.16);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(225, 236, 252, 0.96) 0%, rgba(214, 229, 249, 0.94) 100%);
    color: inherit;
}

.ora-segment.is-live {
    border-color: rgba(187, 30, 45, 0.2);
    background: linear-gradient(180deg, rgba(253, 236, 236, 0.98) 0%, rgba(249, 225, 225, 0.96) 100%);
}

.ora-segment:hover {
    border-color: rgba(19, 75, 147, 0.28);
    transform: translateY(-1px);
}

.ora-segment-time {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--program);
    white-space: nowrap;
}

.ora-segment.is-live .ora-segment-time {
    color: var(--direct);
}

.ora-segment-title {
    display: block;
    overflow: hidden;
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.14;
    word-break: normal;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.ora-segment.is-compact {
    gap: 6px;
    padding: 10px 12px;
}

.ora-segment.is-compact .ora-segment-time {
    font-size: 18px;
}

.ora-segment.is-compact .ora-segment-title {
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.ora-segment.is-small {
    align-items: flex-start;
    gap: 4px;
    padding: 8px 10px;
}

.ora-segment.is-small .ora-segment-time {
    font-size: 17px;
}

.ora-segment.is-small .ora-segment-title {
    font-size: 12px;
    line-height: 1.08;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.ora-segment.is-tiny {
    justify-content: center;
    padding: 8px 6px;
}

.ora-segment.is-tiny .ora-segment-time {
    font-size: 15px;
    text-align: center;
}

.ora-segment.is-tiny .ora-segment-title {
    display: none;
}

html[data-theme="dark"] .ora-track {
}

html[data-theme="dark"] .ora-grid-midline {
    background: rgba(124, 145, 172, 0.26);
}

html[data-theme="dark"] .ora-segment {
    border-color: rgba(104, 155, 232, 0.2);
    background: linear-gradient(180deg, rgba(35, 48, 69, 0.96) 0%, rgba(29, 42, 61, 0.94) 100%);
}

html[data-theme="dark"] .ora-segment.is-live {
    border-color: rgba(255, 115, 129, 0.22);
    background: linear-gradient(180deg, rgba(86, 34, 43, 0.96) 0%, rgba(69, 28, 37, 0.94) 100%);
}

.settimana-shell {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.settimana-table {
    min-width: 1080px;
    width: 100%;
    border-collapse: collapse;
}

.settimana-table th,
.settimana-table td {
    vertical-align: top;
}

.settimana-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.settimana-table thead th:first-child {
    min-width: 140px;
}

.settimana-channel {
    width: 140px;
    min-width: 140px;
}

.settimana-cell {
    min-width: 188px;
}

.settimana-card {
    min-height: 180px;
}

.settimana-empty {
    display: grid;
    place-items: center;
    min-height: 180px;
    border: 1px dashed var(--line-strong);
    border-radius: 18px;
    background: var(--neutral-soft);
    color: var(--muted);
    font-size: 24px;
    line-height: 1;
}

.audiences-days {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.audience-day-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 156px;
    justify-content: flex-end;
}

.audience-day-card h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.08;
}

.audience-day-card:hover {
    border-color: rgba(15, 92, 77, 0.24);
    transform: translateY(-1px);
}

.audiences-chart {
    overflow: hidden;
}

.audiences-chart svg {
    display: block;
}

.audience-channel {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.audience-channel-logo {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    padding: 6px;
    border-radius: 12px;
}

.audience-channel-copy {
    min-width: 0;
    line-height: 1.35;
}

.audiences-table tbody td {
    vertical-align: middle;
}

.audience-metric {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.audience-metric-value {
    display: block;
    flex: 0 0 auto;
    min-width: 0;
}

.audience-bar {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #efe6d5;
}

.audience-bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #0f5c4d;
}

html[data-theme="dark"] .audience-bar {
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .audience-bar-fill {
    background: #53c282;
}

.stasera-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    border-color: rgba(19, 75, 147, 0.16);
    background: linear-gradient(180deg, #ffffff 0%, var(--program-soft) 100%);
    transition: border-color .18s ease, transform .18s ease;
}

html[data-theme="dark"] .stasera-card {
    background: linear-gradient(180deg, rgba(127, 180, 255, 0.08) 0%, rgba(127, 180, 255, 0.15) 100%);
}

.stasera-card:hover {
    border-color: rgba(19, 75, 147, 0.26);
    transform: translateY(-1px);
}

.stasera-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.stasera-meta-row {
    margin-top: -2px;
}

.live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.live-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    transition: border-color .18s ease, transform .18s ease;
}

.live-card:hover {
    border-color: rgba(19, 75, 147, 0.2);
    transform: translateY(-1px);
}

.live-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.live-card-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.live-card-logo {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    padding: 8px;
}

.live-card-brand-copy {
    min-width: 0;
}

.live-card-channel,
.live-card-time {
    margin: 0;
}

.live-card-channel {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.15;
}

.live-card-time {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.3;
}

.live-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.live-card-body h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.1;
}

.live-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.live-progress {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(19, 75, 147, 0.08);
    overflow: hidden;
}

.live-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #bb1e2d 0%, #f05266 100%);
}

html[data-theme="dark"] .live-progress {
    background: rgba(127, 180, 255, 0.12);
}

html[data-theme="dark"] .live-progress span {
    background: linear-gradient(90deg, #ff7381 0%, #ff9ba8 100%);
}

.program-description {
    line-height: 1.7;
    color: var(--text);
}

.broadcast-highlight {
    display: flex;
    align-items: center;
    gap: 16px;
}

.broadcast-upcoming {
    background: linear-gradient(180deg, #eef8f2 0%, #e6f3eb 100%);
    border-color: rgba(31, 122, 72, 0.2);
}

.broadcast-live {
    background: linear-gradient(180deg, #fdecec 0%, #f9dfdf 100%);
    border-color: rgba(187, 30, 45, 0.24);
}

html[data-theme="dark"] .broadcast-upcoming {
    background: linear-gradient(180deg, rgba(83, 194, 130, 0.12) 0%, rgba(83, 194, 130, 0.08) 100%);
    border-color: rgba(83, 194, 130, 0.22);
}

html[data-theme="dark"] .broadcast-live {
    background: linear-gradient(180deg, rgba(255, 115, 129, 0.14) 0%, rgba(255, 115, 129, 0.08) 100%);
    border-color: rgba(255, 115, 129, 0.24);
}

.broadcast-logo {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    display: grid;
    place-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

html[data-theme="dark"] .broadcast-logo {
    background: #111823;
}

.broadcast-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
}

.broadcast-kicker,
.broadcast-title {
    margin: 0;
}

.broadcast-kicker {
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.broadcast-title {
    font-size: clamp(26px, 3.3vw, 40px);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.broadcast-title strong {
    font-weight: 700;
}

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

.broadcast-meta-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(16, 34, 24, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    color: rgba(16, 34, 24, 0.92);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.broadcast-meta-time {
    min-height: 40px;
    padding: 0 16px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    border-width: 2px;
    background: rgba(255, 255, 255, 0.82);
}

.broadcast-live .broadcast-meta-chip {
    border-color: rgba(124, 18, 29, 0.14);
    color: rgba(92, 15, 24, 0.94);
}

.broadcast-upcoming .broadcast-meta-chip {
    border-color: rgba(22, 88, 53, 0.14);
    color: rgba(18, 74, 45, 0.92);
}

.broadcast-live .broadcast-meta-time {
    border-color: rgba(187, 30, 45, 0.28);
    background: rgba(255, 255, 255, 0.9);
    color: rgba(134, 18, 31, 0.98);
}

.broadcast-upcoming .broadcast-meta-time {
    border-color: rgba(31, 122, 72, 0.26);
    background: rgba(255, 255, 255, 0.9);
    color: rgba(18, 88, 53, 0.98);
}

html[data-theme="dark"] .broadcast-meta-chip {
    background: rgba(17, 24, 35, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(233, 239, 248, 0.88);
}

html[data-theme="dark"] .broadcast-meta-time {
    background: rgba(17, 24, 35, 0.82);
    border-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.broadcast-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.broadcast-actions.standalone {
    margin-top: 0;
}

@media (max-width: 700px) {
    .shell {
        padding: 18px;
    }

    .masthead {
        align-items: flex-start;
    }

    .main-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .main-nav a {
        flex: 0 0 auto;
        min-height: 40px;
        padding: 0 14px;
        white-space: nowrap;
    }

    .nav-arrow {
        flex: 0 0 42px;
        min-width: 42px;
        min-height: 42px;
        justify-content: center;
        padding: 0;
    }

    .nav-arrow-desktop {
        display: none;
    }

    .nav-arrow-mobile {
        display: block;
    }

    .date-nav {
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
    }

    .date-form {
        flex: 1 1 auto;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .date-form label {
        display: none;
    }

    .date-form input,
    .date-form select {
        min-width: 0;
        width: 100%;
        flex: 1 1 auto;
        padding: 0 12px;
    }

    .date-form button {
        flex: 0 0 auto;
        min-height: 42px;
        padding: 0 12px;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-side {
        width: 100%;
        justify-content: space-between;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .search-form-footer {
        width: 100%;
        order: 3;
    }

    .search-form-footer input {
        flex: 1 1 auto;
        width: auto;
    }

    .footer-debug {
        width: 100%;
    }

    .hero,
    .panel {
        padding: 18px;
    }

    .eyebrow {
        margin-bottom: 8px;
        font-size: 10px;
        letter-spacing: 0.14em;
    }

    h1 {
        font-size: clamp(20px, 8.2vw, 34px);
        line-height: 1.06;
    }

    .lead {
        font-size: 14px;
        line-height: 1.5;
    }

    .program-detail-header,
    .program-detail-main,
    .program-detail-grid,
    .program-neighbors,
    .program-meta-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .channel-page-top,
    .channel-page-brand,
    .channel-day-item,
    .channel-upcoming-item {
        grid-template-columns: 1fr;
        display: grid;
    }

    .channel-page-actions {
        justify-content: flex-start;
    }

    .channel-zapper-grid {
        gap: 10px;
    }

    .channel-zapper-link {
        min-width: 72px;
        min-height: 72px;
    }

    .channel-page-logo {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
    }

    .video-shell {
        aspect-ratio: 16 / 10;
    }

    .fake-player-screen {
        min-height: 260px;
        padding: 22px;
    }

    .fake-player-logo {
        top: 16px;
        right: 16px;
        width: 64px;
        height: 64px;
        flex-basis: 64px;
        padding: 10px;
    }

    .fake-player-play {
        width: 72px;
        height: 72px;
        font-size: 30px;
    }

    .fake-player-copy .broadcast-title {
        font-size: clamp(28px, 7vw, 38px);
    }

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

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

    .ora-slot-nav {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        gap: 8px;
    }

    .ora-grid-panel {
        --ora-channel-width: 88px;
        --ora-grid-gap: 12px;
    }

    .ora-grid-head,
    .ora-row {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 12px;
    }

    .ora-grid-lines {
        top: 28px;
    }

    .ora-scale {
        min-height: 24px;
        font-size: 10px;
        letter-spacing: 0.08em;
    }

    .ora-channel-logo {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
        padding: 8px;
    }

    .ora-channel-name {
        font-size: 13px;
    }

    .ora-track {
        min-height: 106px;
    }

    .ora-segment {
        top: 8px;
        bottom: 8px;
        padding: 9px 10px;
        border-radius: 16px;
    }

    .ora-segment-time {
        font-size: 18px;
    }

    .ora-segment-title {
        font-size: 14px;
    }

    .ora-segment.is-compact .ora-segment-time {
        font-size: 16px;
    }

    .ora-segment.is-compact .ora-segment-title {
        font-size: 12px;
    }

    .ora-segment.is-small .ora-segment-time {
        font-size: 15px;
    }

    .ora-segment.is-small .ora-segment-title {
        font-size: 11px;
    }

    .settimana-shell {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .audiences-days {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .live-card {
        padding: 16px;
        gap: 12px;
    }

    .stasera-card {
        padding: 16px;
        gap: 12px;
    }

    .live-card-top {
        flex-direction: column;
    }

    .stasera-card-top {
        flex-direction: column;
    }

    .live-card-brand {
        align-items: flex-start;
    }

    .live-card-logo {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }

    .live-card-channel {
        font-size: 16px;
    }

    .live-card-body h2 {
        font-size: 22px;
    }

    .live-progress {
        height: 8px;
    }

    .channel-day-time {
        gap: 2px;
    }

    .channel-day-start {
        font-size: 30px;
    }

    .channel-day-heading h2 {
        font-size: 24px;
    }

    .channel-upcoming-hour {
        font-size: 24px;
    }

    .channel-upcoming-title {
        font-size: 21px;
    }

    .program-detail-logo {
        width: 78px;
        height: 78px;
        flex-basis: 78px;
    }

    .broadcast-highlight {
        align-items: flex-start;
    }

    .broadcast-logo {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
    }

    .broadcast-title {
        font-size: clamp(22px, 7vw, 30px);
    }

    .broadcast-meta-chip {
        min-height: 30px;
        padding: 0 10px;
        font-size: 13px;
    }

    .broadcast-meta-time {
        min-height: 36px;
        padding: 0 14px;
        font-size: 19px;
    }

    .program-detail-copy h1 {
        font-size: clamp(22px, 7vw, 34px);
    }

    .table-shell {
        overflow: visible;
        border: 0;
        background: transparent;
    }

    table,
    thead,
    tbody,
    tr,
    th,
    td {
        display: block;
    }

    thead {
        display: none;
    }

    tbody {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    tbody tr {
        border: 1px solid var(--line);
        border-radius: 22px;
        background: var(--panel);
        box-shadow: var(--shadow);
        overflow: hidden;
    }

    tbody td {
        padding: 16px 18px;
        border-bottom: 1px solid var(--line);
    }

    tbody td:first-child,
    tbody td:nth-child(2),
    tbody td:nth-child(3) {
        width: auto;
        white-space: normal;
        padding-left: 18px;
        padding-right: 18px;
    }

    tbody td:last-child {
        border-bottom: 0;
    }

    tbody td[data-label]::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 10px;
        color: var(--muted);
        font-size: 12px;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .channel-identity {
        flex-basis: 72px;
    }

    .page-home tbody {
        gap: 16px;
    }

    .page-home tbody tr {
        display: flex;
        flex-direction: column;
    }

    .page-home tbody td,
    .page-home tbody td:first-child,
    .page-home tbody td:nth-child(2),
    .page-home tbody td:nth-child(3) {
        width: auto;
        white-space: normal;
        padding: 14px 16px;
    }

    .page-home tbody td[data-label]::before {
        display: none;
    }

    .page-home .home-channel {
        border-bottom: 1px solid var(--line);
    }

    .page-home .channel-identity {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex: 1 1 auto;
    }

    .page-home .channel-brand {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        flex: 1 1 auto;
    }

    .page-home .channel-name {
        text-align: left;
        font-size: 20px;
        font-weight: 600;
        line-height: 1.2;
    }

    .page-home .action-row {
        justify-content: flex-end;
        flex: 0 0 auto;
    }

    .page-home .home-pt1 {
        border-bottom: 1px solid var(--line);
    }

    .page-home tr.no-pt2 .home-pt1 {
        border-bottom: 0;
    }

    .page-home .home-pt2.is-empty {
        display: none;
    }

    .page-settimana .settimana-shell {
        overflow-x: auto;
        border: 1px solid var(--line);
        background: var(--panel);
    }

    .page-settimana .settimana-table {
        display: table;
        min-width: 1080px;
    }

    .page-settimana .settimana-table thead {
        display: table-header-group;
    }

    .page-settimana .settimana-table tbody {
        display: table-row-group;
    }

    .page-settimana .settimana-table tr {
        display: table-row;
    }

    .page-settimana .settimana-table th,
    .page-settimana .settimana-table td {
        display: table-cell;
    }

    .page-settimana .settimana-table tbody tr {
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }

    .page-settimana .settimana-table tbody td {
        padding: 14px;
        border-bottom: 1px solid var(--line);
    }

    .page-settimana .settimana-table tbody td:first-child,
    .page-settimana .settimana-table tbody td:nth-child(2),
    .page-settimana .settimana-table tbody td:nth-child(3) {
        width: auto;
        white-space: normal;
        padding-left: 14px;
        padding-right: 14px;
    }

    .page-settimana .settimana-table tbody td[data-label]::before {
        display: none;
    }
}

@media (min-width: 1180px) {
    .page-body {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .page-rail {
        position: sticky;
        top: 24px;
        align-self: start;
    }

    .adsense-slot-rail {
        display: block;
    }
}
