@font-face {
  font-family: FranceTVBrown;
  src: url("FranceTVBrownTT-Regular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: FranceTVBrown;
  src: url("FranceTVBrownTT-Bold.ttf") format("truetype");
  font-weight: 800;
}

:root {
  --ink: #101824;
  --muted: #66727f;
  --teal: #246f83;
  --teal-2: #5db7c6;
  --cyan: #e8f6f8;
  --gold: #d7aa2e;
  --gold-soft: #fff6d8;
  --coral: #d84d46;
  --paper: #ffffff;
  --mist: #f3f8f6;
  --line: #d9e8ea;
  --shadow: 0 18px 46px rgba(23, 52, 62, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(93, 183, 198, 0.18), transparent 32rem),
    linear-gradient(180deg, #f7fbf7 0%, #eef5f2 100%);
  color: var(--ink);
  font-family: FranceTVBrown, Avenir, system-ui, sans-serif;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(36, 111, 131, 0.14);
  background: rgba(247, 251, 247, 0.88);
  backdrop-filter: blur(18px);
}

.brand img {
  display: block;
  width: 178px;
  max-width: 46vw;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.topnav a,
.ghost-action,
.primary-action,
.day-tabs button,
.timeline-rail button,
.details-toggle,
.replay-link {
  min-height: 36px;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--teal);
  white-space: nowrap;
}

.search-open {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  white-space: nowrap;
}

.search-open span:first-child {
  font-size: 1.35rem;
  line-height: 1;
}

.mobile-search-bar {
  display: none;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: start center;
  padding: 92px 18px 24px;
  background: rgba(16, 24, 36, 0.52);
  backdrop-filter: blur(8px);
}

.search-overlay[hidden] {
  display: none;
}

.search-is-open {
  overflow: hidden;
}

.search-panel {
  width: min(680px, 100%);
  max-height: calc(100vh - 116px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(16, 24, 36, 0.3);
}

.search-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 14px;
}

.search-header .panel-kicker {
  display: block;
  margin-bottom: 5px;
}

.search-header h2 {
  margin: 0;
  font-size: 1.45rem;
}

.search-close {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--mist);
  color: var(--ink);
  cursor: pointer;
  font: 400 1.8rem/1 FranceTVBrown, sans-serif;
}

.search-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0 22px;
  padding: 0 14px;
  border: 2px solid var(--teal);
  border-radius: 8px;
  background: #fff;
}

.search-icon {
  color: var(--teal);
  font-size: 1.4rem;
}

.search-field input {
  width: 100%;
  min-height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.search-help {
  margin: 9px 22px 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

.search-results {
  max-height: min(55vh, 520px);
  overflow-y: auto;
  padding: 0 12px 14px;
}

.search-result {
  display: grid;
  width: 100%;
  gap: 3px;
  padding: 13px 10px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.search-result:hover,
.search-result:focus-visible {
  background: var(--cyan);
  outline: none;
}

.search-result-meta {
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 800;
}

.search-result strong {
  font-size: 1rem;
}

.search-result > span:last-child:not(.search-result-meta) {
  color: var(--muted);
  font-size: 0.82rem;
}

.search-empty {
  margin: 0;
  padding: 24px 12px;
  color: var(--muted);
  text-align: center;
}

.entry-card.search-target {
  outline: 4px solid rgba(215, 170, 46, 0.62);
  outline-offset: 3px;
}

main {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
  padding: clamp(24px, 4vw, 46px) 0 20px;
}

.hero-copy {
  display: flex;
  min-height: 274px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 3.4vw, 34px);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(36, 111, 131, 0.92), rgba(16, 24, 36, 0.93)),
    url("logo-1ere.png") center / 48% auto no-repeat;
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-main {
  display: grid;
  gap: 12px;
}

.hero-radio-player {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  max-width: 520px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-radio-copy {
  display: grid;
  gap: 3px;
}

.hero-radio-copy span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-radio-copy strong {
  color: #fff;
  font-size: 1rem;
  line-height: 1.1;
}

.radio-player-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.radio-play-button,
.radio-stop-button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 900;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.radio-play-button {
  padding: 0 18px;
  background: var(--gold);
  color: var(--ink);
}

.radio-stop-button {
  width: 64px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.radio-play-button:hover,
.radio-stop-button:hover {
  transform: translateY(-1px);
}

.radio-play-button:disabled,
.radio-stop-button:disabled {
  cursor: default;
  opacity: 0.46;
  transform: none;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 620px;
  margin-bottom: 10px;
  font-size: clamp(2.1rem, 4.1vw, 3.35rem);
  line-height: 1;
}

.lead {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.45;
}

.week-line {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 34px;
  align-items: center;
  margin: 4px 0 0;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.primary-action,
.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.primary-action {
  background: var(--gold);
  color: var(--ink);
}

.ghost-action {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #fff;
}

.now-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid rgba(36, 111, 131, 0.16);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.qr-desktop-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(36, 111, 131, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 42px rgba(26, 45, 59, 0.1);
  backdrop-filter: blur(10px);
}

.qr-copy {
  display: grid;
  gap: 5px;
}

.qr-copy strong {
  font-size: 1.08rem;
  line-height: 1.08;
}

.qr-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

.qr-image {
  display: block;
  width: 104px;
  height: 104px;
  padding: 6px;
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.now-thumb {
  width: 100%;
  height: 108px;
  margin: 14px 0 2px;
  border-radius: 14px;
  object-fit: cover;
}

.now-card-header {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--coral);
  font-weight: 800;
  text-transform: uppercase;
}

.live-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 7px rgba(216, 77, 70, 0.14);
}

.now-time {
  margin: 14px 0 3px;
  color: var(--teal);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 0.95;
}

.now-thumb:not([hidden]) + .now-time {
  margin-top: 14px;
}

.now-card h2 {
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.04;
}

#now-meta {
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.45;
}

.progress {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6eff0;
}

.progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--teal-2));
}

.next-box {
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--cyan);
}

.next-box > span {
  display: block;
  margin-bottom: 6px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.next-box strong {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
  gap: 4px;
}

.next-title-item {
  display: block;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.25;
}

.quick-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 12px 0 42px;
}

.service-strip {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  margin: 38px 0 18px;
  padding: 18px;
  border: 1px solid rgba(36, 111, 131, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 34px rgba(23, 52, 62, 0.08);
  scroll-margin-top: 110px;
}

.highlights-strip {
  display: grid;
  grid-template-columns: minmax(190px, 0.32fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin: 8px 0 42px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(36, 111, 131, 0.95), rgba(16, 24, 36, 0.94)),
    url("logo-1ere.png") 5% 50% / 220px auto no-repeat;
  box-shadow: var(--shadow);
}

.highlights-strip[hidden] {
  display: none;
}

.highlights-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.highlights-heading strong {
  font-size: 1.28rem;
  line-height: 1.12;
}

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

.highlight-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.highlight-card:hover {
  border-color: rgba(224, 175, 47, 0.72);
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.highlight-time {
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 800;
}

.highlight-title {
  display: block;
  margin-bottom: 3px;
  font-weight: 800;
}

.highlight-detail {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.88rem;
  line-height: 1.25;
}

.highlight-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.service-strip strong {
  display: block;
  font-size: 1.12rem;
}

.service-actions,
.social-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.service-actions a,
.archive-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(36, 111, 131, 0.22);
  border-radius: 999px;
  background: var(--cyan);
  color: var(--teal);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.archives-menu {
  position: relative;
  display: inline-flex;
}

.archive-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  width: min(320px, 82vw);
  padding: 10px;
  border: 1px solid rgba(36, 111, 131, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 38px rgba(21, 32, 43, 0.14);
}

.archive-status {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.archive-list {
  display: grid;
  gap: 8px;
}

.archive-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start !important;
  min-height: auto !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  background: var(--paper-soft) !important;
  text-align: left;
}

.archive-item-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.social-actions a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(36, 111, 131, 0.22);
  border-radius: 50%;
  background: #fff;
}

.social-actions img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.event-banner,
.quick-card,
.tonight,
.programme,
.replays {
  border: 1px solid rgba(36, 111, 131, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 34px rgba(23, 52, 62, 0.08);
}

.quick-card {
  display: block;
  padding: 18px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.quick-card:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 111, 131, 0.28);
  box-shadow: 0 16px 38px rgba(23, 52, 62, 0.12);
}

.quick-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

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

.event-banner {
  margin: 8px 0 26px;
  overflow: hidden;
}

.event-banner[hidden] {
  display: none;
}

.event-banner-link {
  display: block;
  background: #fff;
}

.event-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.event-banner-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
}

.event-banner-bar strong {
  display: block;
  font-size: 1.14rem;
}

.banner-action {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.tonight,
.programme,
.replays {
  margin-bottom: 26px;
  padding: clamp(20px, 4vw, 34px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.tonight-list,
.replay-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.spotlight,
.replay-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.spotlight-thumb,
.entry-thumb,
.replay-thumb {
  display: block;
  width: 100%;
  border-radius: 13px;
  object-fit: cover;
}

.spotlight-thumb,
.replay-thumb {
  height: 92px;
  margin-bottom: 14px;
}

.entry-thumb {
  width: 118px;
  height: 74px;
}

.spotlight:first-child {
  background: linear-gradient(145deg, var(--gold-soft), #fff);
  border-color: rgba(215, 170, 46, 0.45);
}

.spotlight.is-journal {
  background: linear-gradient(145deg, #fff, #e8f6f8);
  border-color: rgba(36, 111, 131, 0.3);
}

.time {
  color: var(--teal);
  font-size: 1.2rem;
  font-weight: 800;
}

.category,
.tag {
  display: inline-flex;
  width: max-content;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-category {
  margin-left: 6px;
  background: var(--gold-soft);
  color: #8a6517;
}

.programme-layout {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
}

.day-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.day-tabs button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--teal);
  padding: 0 16px;
  cursor: pointer;
}

.day-tabs button[aria-selected="true"] {
  background: var(--teal);
  color: #fff;
}

.timeline-rail {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.timeline-rail strong {
  color: var(--teal);
}

.timeline-rail button {
  border: 0;
  background: var(--mist);
  color: var(--ink);
  cursor: pointer;
}

.entries {
  display: grid;
  gap: 10px;
}

.entry-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 118px) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.entry-card.is-now {
  border-color: rgba(216, 77, 70, 0.55);
  box-shadow: inset 4px 0 0 var(--coral), 0 12px 30px rgba(216, 77, 70, 0.12);
}

.entry-card.is-event {
  border-color: rgba(215, 170, 46, 0.52);
  background: linear-gradient(145deg, var(--gold-soft), #fff);
}

.entry-card h3 {
  margin: 4px 0 8px;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
}

.entry-card:not(.has-thumb) {
  grid-template-columns: 86px minmax(0, 1fr) auto;
}

.entry-summary {
  display: none;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.entry-card.is-open .entry-summary {
  display: block;
}

.details-toggle,
.replay-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(36, 111, 131, 0.22);
  background: var(--cyan);
  color: var(--teal);
  cursor: pointer;
  padding: 0 12px;
}

.replay-link {
  background: var(--teal);
  color: #fff;
}

.entry-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.footer-note {
  margin: 26px 0 60px;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0 44px;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer a {
  color: rgba(102, 114, 127, 0.72);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--teal);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(247, 251, 247, 0.96);
  }

  .brand {
    align-self: center;
  }

  .brand img {
    width: 132px;
  }

  .topnav {
    justify-content: center;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .hero,
  .quick-panels,
  .programme-layout,
  .service-strip,
  .highlights-strip {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .now-card {
    min-height: 0;
  }

  .qr-desktop-card {
    display: none;
  }

  .now-card {
    order: -1;
  }

  .tonight-list,
  .replay-grid {
    grid-template-columns: 1fr 1fr;
  }

  .timeline-rail {
    position: sticky;
    top: 116px;
    z-index: 45;
    display: flex;
    overflow-x: auto;
    margin: -2px -4px 4px;
    padding: 10px 4px;
    border: 0;
    border-radius: 0;
    background: rgba(247, 251, 247, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 20px rgba(23, 52, 62, 0.08);
  }

  .timeline-rail strong {
    display: none;
  }

  .timeline-rail button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
  }

  .service-actions,
  .social-actions {
    justify-content: flex-start;
  }

  .highlights-list {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .highlight-card {
    min-width: min(86vw, 360px);
    grid-template-columns: auto minmax(0, 1fr);
  }

  .highlight-badge {
    grid-column: 2;
    width: max-content;
  }

  .entry-card {
    grid-template-columns: 72px minmax(0, 92px) minmax(0, 1fr);
  }

  .entry-actions {
    grid-column: 3;
    justify-content: flex-start;
  }

  .entry-card:not(.has-thumb) {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .entry-card:not(.has-thumb) .entry-actions {
    grid-column: 2;
  }

  .entry-thumb {
    width: 92px;
    height: 62px;
  }
}

@media (max-width: 560px) {
  main {
    width: min(100% - 22px, 1240px);
  }

  .hero {
    padding-top: 12px;
    gap: 12px;
  }

  .topbar {
    gap: 8px;
    padding: 8px 11px;
  }

  .topnav {
    justify-content: flex-start;
  }

  .brand img {
    width: 126px;
  }

  .topnav a {
    min-height: 34px;
    padding: 0 12px;
  }

  .search-open {
    display: none;
  }

  .mobile-search-bar {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    gap: 10px;
    margin: 12px 0 0;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    box-shadow: 0 8px 22px rgba(23, 52, 62, 0.09);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    text-align: left;
  }

  .mobile-search-icon {
    color: var(--teal);
    font-size: 1.45rem;
    line-height: 1;
  }

  .search-overlay {
    align-items: end;
    padding: 70px 0 0;
  }

  .search-panel {
    width: 100%;
    max-height: calc(100vh - 70px);
    border-radius: 8px 8px 0 0;
  }

  .hero-copy,
  .now-card {
    min-height: 0;
  }

  .hero-copy,
  .now-card,
  .event-banner,
  .quick-card,
  .tonight,
  .programme,
  .replays {
    border-radius: 18px;
  }

  .hero-copy {
    padding: 20px;
  }

  h1 {
    font-size: 2.24rem;
    line-height: 1;
  }

  .lead {
    font-size: 0.98rem;
  }

  .week-line {
    min-height: 30px;
    font-size: 0.92rem;
  }

  .now-thumb {
    height: 108px;
  }

  .now-time {
    font-size: 2.38rem;
  }

  .now-card h2 {
    font-size: 1.55rem;
  }

  .next-box strong {
    grid-template-columns: 1fr;
  }

  .hero-actions a {
    width: 100%;
  }

  .hero-radio-player {
    grid-template-columns: 1fr;
  }

  .event-banner-bar {
    display: grid;
    align-items: stretch;
  }

  .banner-action {
    width: 100%;
  }

  .radio-player-controls {
    width: 100%;
  }

  .radio-play-button,
  .radio-stop-button {
    flex: 1;
  }

  .tonight-list,
  .replay-grid {
    grid-template-columns: 1fr;
  }

  .entry-card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    border-radius: 14px;
  }

  .entry-actions {
    grid-column: 2;
    gap: 6px;
  }

  .entry-card.has-thumb {
    grid-template-columns: 58px 84px minmax(0, 1fr);
  }

  .entry-card.has-thumb .entry-actions {
    grid-column: 3;
  }

  .entry-thumb {
    width: 84px;
    height: 58px;
    border-radius: 12px;
  }

  .entry-card h3 {
    margin-bottom: 6px;
    font-size: 1.12rem;
    line-height: 1.12;
  }

  .category {
    font-size: 0.76rem;
  }

  .details-toggle,
  .replay-link {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.88rem;
  }

  .time {
    font-size: 1.32rem;
  }
}
