.program-schedule-page {
  --schedule-navy: #052f67;
  --schedule-blue: #0879bf;
  --schedule-cyan: #40bdf2;
  --schedule-red: #ee3048;
  width: min(100% - 40px, 980px);
  margin: 42px auto 80px;
  color: #082b58;
}

.program-schedule-heading {
  position: relative;
  z-index: 0;
  top: auto;
  overflow: hidden;
  height: auto !important;
  min-height: 154px;
  padding: 34px 38px;
  border-radius: 22px 22px 0 0;
  color: #fff;
  background:
    radial-gradient(circle at 92% 0%, rgba(64, 189, 242, 0.34), transparent 34%),
    linear-gradient(128deg, #042754, #074687);
}

.program-schedule-heading::after {
  position: absolute;
  right: -38px;
  bottom: -85px;
  width: 230px;
  height: 230px;
  border: 34px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
  content: "";
}

.program-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #76d7ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.program-schedule-heading h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
}

.program-schedule-heading p {
  position: relative;
  z-index: 1;
  max-width: 610px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
}

.program-day-tabs {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  overflow: hidden;
  border: 1px solid #dce7f1;
  border-top: 0;
  background: #fff;
  box-shadow: 0 14px 40px rgba(4, 39, 84, 0.08);
}

.program-day-tab {
  position: relative;
  min-width: 0;
  padding: 18px 8px 17px;
  border: 0;
  border-right: 1px solid #e5edf5;
  color: #687a8e;
  background: #fff;
  font: inherit;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.program-day-tab:last-child {
  border-right: 0;
}

.program-day-tab span {
  display: block;
  overflow: hidden;
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
}

.program-day-tab b {
  display: none;
}

.program-day-tab small {
  display: block;
  min-height: 14px;
  margin-top: 4px;
  color: #94a5b5;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.program-day-tab em {
  display: block;
  margin-top: 4px;
  color: var(--schedule-cyan);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.program-day-tab::after {
  position: absolute;
  right: 18%;
  bottom: 0;
  left: 18%;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--schedule-cyan);
  content: "";
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 160ms ease, transform 160ms ease;
}

.program-day-tab:hover,
.program-day-tab:focus-visible {
  color: var(--schedule-blue);
  background: #f6fbff;
}

.program-day-tab.selected {
  color: var(--schedule-navy);
  background: #f2f9fe;
}

.program-day-tab.selected::after {
  opacity: 1;
  transform: scaleX(1);
}

.program-schedule-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 20px 17px;
}

.program-schedule-current span:first-child {
  color: #7b8b9c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.program-schedule-current h2 {
  margin: 2px 0 0;
  color: var(--schedule-navy);
  font-size: 25px;
}

.program-today-pill {
  padding: 7px 11px;
  border-radius: 999px;
  color: #0574b6;
  background: #e5f6fe;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.program-timeline {
  position: relative;
  padding: 0 0 12px;
}

.program-timeline::before {
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 93px;
  width: 2px;
  background: #cfe2ef;
  content: "";
}

.program-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 70px 18px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 96px;
}

.program-timeline-item > time {
  color: #385570;
  font-size: 14px;
  font-weight: 900;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.program-timeline-dot {
  position: relative;
  z-index: 2;
  width: 10px;
  height: 10px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #9fb8ca;
  box-shadow: 0 0 0 1px #bfd3e1;
}

.program-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 24px;
  gap: 17px;
  align-items: center;
  min-width: 0;
  width: 100%;
  margin: 5px 0;
  padding: 11px 15px 11px 11px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #0a2b53;
  background: #fff;
  box-shadow: 0 7px 24px rgba(4, 39, 84, 0.06);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.program-card:hover,
.program-card:focus-visible {
  border-color: #acdff5;
  box-shadow: 0 12px 30px rgba(4, 72, 124, 0.13);
  outline: none;
  transform: translateY(-1px);
}

.program-card.is-static {
  grid-template-columns: 112px minmax(0, 1fr);
  cursor: default;
}

.program-card.is-static:hover {
  border-color: #e5edf4;
  box-shadow: 0 7px 22px rgba(7, 47, 91, 0.07);
  transform: none;
}

.program-card-media {
  display: block;
  overflow: hidden;
  width: 112px;
  height: 68px;
  border-radius: 9px;
  background: #e9f2f8;
}

.program-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #fff;
  background: linear-gradient(135deg, #06346d, #1595d4);
  font-size: 25px;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.program-image-placeholder span {
  margin-left: 3px;
  padding: 2px 3px;
  border-radius: 2px;
  color: #086da9;
  background: #fff;
  font-size: 10px;
  letter-spacing: -0.03em;
}

.program-card-copy {
  min-width: 0;
}

.program-card-copy strong {
  display: block;
  overflow: hidden;
  color: #082c59;
  font-size: 16px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.program-item-host {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #3e769b;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.program-card-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 5px 0 0;
  color: #6e7f8f;
  font-size: 12px;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.program-card-arrow {
  color: #9ab1c3;
  font-size: 28px;
  font-weight: 300;
}

.program-live-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  color: var(--schedule-red);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.program-live-label i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--schedule-red);
  box-shadow: 0 0 0 4px rgba(238, 48, 72, 0.13);
  animation: program-live-pulse 1.8s ease-in-out infinite;
}

.program-timeline-item.is-live > time {
  color: var(--schedule-red);
}

.program-timeline-item.is-live .program-timeline-dot {
  width: 14px;
  height: 14px;
  margin-left: -2px;
  border-width: 4px;
  background: var(--schedule-red);
  box-shadow: 0 0 0 2px rgba(238, 48, 72, 0.18);
}

.program-timeline-item.is-live .program-card {
  border-color: rgba(238, 48, 72, 0.35);
  background:
    linear-gradient(90deg, rgba(238, 48, 72, 0.08), transparent 45%),
    #fff;
  box-shadow: 0 12px 32px rgba(238, 48, 72, 0.1);
}

.program-empty {
  margin: 12px 0 20px 107px;
  padding: 35px;
  border: 1px dashed #c4d7e5;
  border-radius: 14px;
  color: #6c7e90;
  background: #f7fafc;
  text-align: center;
}

.program-empty strong {
  color: #183f69;
}

.program-empty p {
  margin: 6px 0 0;
  font-size: 13px;
}

.program-modal-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  background: rgba(3, 19, 39, 0.62);
  backdrop-filter: blur(6px);
}

.program-modal {
  position: fixed;
  z-index: 81;
  top: 50%;
  left: 50%;
  overflow: hidden;
  width: min(620px, calc(100% - 36px));
  max-height: min(760px, calc(100vh - 48px));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 32px 90px rgba(1, 17, 36, 0.34);
  transform: translate(-50%, -50%);
}

.program-modal-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0 0 3px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #fff;
  background: rgba(4, 37, 77, 0.72);
  font: 28px/1 Arial, sans-serif;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.program-modal-content {
  overflow-y: auto;
  max-height: min(760px, calc(100vh - 48px));
}

.program-modal-image {
  display: block;
  width: 100%;
  max-height: 330px;
  object-fit: cover;
}

.program-modal-body {
  padding: 30px 34px 34px;
}

.program-modal-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 20px;
}

.program-modal-kicker .program-live-label {
  margin: 0;
}

.program-modal-kicker time {
  color: var(--schedule-blue, #0879bf);
  font-size: 14px;
  font-weight: 900;
}

.program-modal h2 {
  margin: 8px 0 0;
  color: var(--schedule-navy, #052f67);
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1.1;
}

.program-modal-host {
  margin: 12px 0 0;
  color: #2875a3;
  font-size: 13px;
  font-weight: 700;
}

.program-modal-description {
  margin-top: 22px;
  color: #3e4f5f;
  font-size: 15px;
  line-height: 1.65;
}

.program-modal-description > :first-child {
  margin-top: 0;
}

.program-modal-description > :last-child {
  margin-bottom: 0;
}

body.program-modal-open {
  overflow: hidden;
}

@keyframes program-live-pulse {
  50% {
    box-shadow: 0 0 0 7px rgba(238, 48, 72, 0.03);
  }
}

@media (max-width: 760px) {
  .program-schedule-page {
    width: min(100% - 22px, 980px);
    margin: 22px auto 58px;
  }

  .program-schedule-heading {
    padding: 27px 23px;
    border-radius: 17px 17px 0 0;
  }

  .program-schedule-heading p {
    font-size: 13px;
  }

  .program-day-tabs {
    overflow-x: auto;
    grid-template-columns: repeat(7, minmax(64px, 1fr));
    scrollbar-width: none;
  }

  .program-day-tabs::-webkit-scrollbar {
    display: none;
  }

  .program-day-tab {
    padding: 14px 7px 13px;
  }

  .program-day-tab span {
    display: none;
  }

  .program-day-tab b {
    display: block;
    font-size: 13px;
    font-weight: 900;
  }

  .program-day-tab small {
    font-size: 10px;
  }

  .program-schedule-current {
    padding: 30px 8px 13px;
  }

  .program-schedule-current h2 {
    font-size: 21px;
  }

  .program-timeline::before {
    left: 61px;
  }

  .program-timeline-item {
    grid-template-columns: 47px 12px minmax(0, 1fr);
    gap: 8px;
    min-height: 88px;
  }

  .program-timeline-item > time {
    font-size: 12px;
  }

  .program-timeline-dot {
    width: 9px;
    height: 9px;
  }

  .program-card {
    grid-template-columns: 76px minmax(0, 1fr) 12px;
    gap: 10px;
    padding: 9px;
    border-radius: 12px;
  }

  .program-card.is-static {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .program-card-media {
    width: 76px;
    height: 58px;
  }

  .program-card-copy strong {
    font-size: 14px;
  }

  .program-item-host,
  .program-card-copy p {
    font-size: 10px;
  }

  .program-card-copy p {
    -webkit-line-clamp: 1;
  }

  .program-card-arrow {
    font-size: 21px;
  }

  .program-empty {
    margin-left: 72px;
    padding: 26px 15px;
  }

  .program-modal {
    top: auto;
    bottom: 0;
    width: 100%;
    max-height: calc(100vh - 26px);
    border-radius: 22px 22px 0 0;
    transform: translateX(-50%);
  }

  .program-modal-content {
    max-height: calc(100vh - 26px);
  }

  .program-modal-image {
    max-height: 240px;
  }

  .program-modal-body {
    padding: 25px 22px 36px;
  }
}

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