/* iTV Uganda v30 — isolated Schedule + Presenters repair
   Scope: /itv-uganda/schedule/ and /itv-uganda/presenters/ only.
   This file intentionally does not replace the shared iTHM stylesheet. */

/* =========================================================
   SCHEDULE — compact premium hero
   ========================================================= */
body[data-itv-section="schedule"] .page-hero.itv-section-hero {
  min-height: 0;
}

body[data-itv-section="schedule"] .itv-section-hero-grid {
  min-height: 0;
}

@media (min-width: 761px) {
  body[data-itv-section="schedule"] .page-hero.itv-section-hero,
  body[data-itv-section="schedule"] .itv-section-hero-grid {
    min-height: 350px;
  }

  body[data-itv-section="schedule"] .itv-section-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(285px, 430px);
    align-items: center;
    gap: clamp(24px, 3.4vw, 46px);
    padding: 24px 0 26px;
  }

  body[data-itv-section="schedule"] .itv-section-hero-copy {
    max-width: 650px;
  }

  body[data-itv-section="schedule"] .itv-section-hero h1 {
    font-size: clamp(2.45rem, 3.7vw, 3.9rem);
    line-height: .98;
    margin-bottom: 12px;
  }

  body[data-itv-section="schedule"] .itv-section-hero p {
    max-width: 590px;
    font-size: clamp(.98rem, 1.2vw, 1.08rem);
    line-height: 1.5;
  }

  body[data-itv-section="schedule"] .itv-section-actions {
    margin-top: 16px;
  }

  body[data-itv-section="schedule"] .itv-section-signals {
    margin-top: 13px;
  }

  body[data-itv-section="schedule"] .itv-section-visual {
    width: 100%;
    max-width: 430px;
    justify-self: end;
  }

  body[data-itv-section="schedule"] .itv-visual-frame {
    aspect-ratio: 16 / 9;
    transform: none;
    border-radius: 23px;
  }

  body[data-itv-section="schedule"] .itv-section-visual:hover .itv-visual-frame {
    transform: translateY(-4px);
  }
}

@media (min-width: 761px) and (max-width: 1050px) {
  body[data-itv-section="schedule"] .itv-section-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(275px, 39%);
    gap: 24px;
    padding: 22px 0 24px;
  }

  body[data-itv-section="schedule"] .itv-section-hero h1 {
    font-size: clamp(2.25rem, 4.7vw, 3.1rem);
  }

  body[data-itv-section="schedule"] .itv-section-actions {
    gap: 9px;
  }

  body[data-itv-section="schedule"] .itv-section-actions .btn {
    padding-inline: 14px;
  }
}

@media (max-width: 760px) {
  body[data-itv-section="schedule"] .itv-section-hero-grid {
    gap: 20px;
    padding: 27px 0 32px;
  }

  body[data-itv-section="schedule"] .itv-section-hero h1 {
    font-size: clamp(2.15rem, 10vw, 2.85rem);
    line-height: .98;
    margin-bottom: 12px;
  }

  body[data-itv-section="schedule"] .itv-section-hero p {
    font-size: .94rem;
    line-height: 1.52;
  }

  body[data-itv-section="schedule"] .itv-section-actions {
    margin-top: 18px;
  }

  body[data-itv-section="schedule"] .itv-section-signals {
    margin-top: 14px;
  }

  body[data-itv-section="schedule"] .itv-section-visual {
    width: min(100%, 470px);
    justify-self: center;
  }

  body[data-itv-section="schedule"] .itv-visual-frame {
    aspect-ratio: 16 / 9;
    border-radius: 20px;
  }

  body[data-itv-section="schedule"] .itv-visual-topbar {
    left: 10px;
    right: 10px;
    top: 10px;
  }

  body[data-itv-section="schedule"] .itv-visual-badge {
    left: 13px;
    bottom: 12px;
  }
}

/* =========================================================
   PRESENTERS — restored v6 circular cards, locally scoped
   ========================================================= */
body[data-itv-section="presenters"] .presenters-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}

body[data-itv-section="presenters"] .presenter-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d9e5f2;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 5%, rgba(64, 177, 255, .1), transparent 34%),
    linear-gradient(180deg, #f8fbff 0, #fff 48%);
  box-shadow: 0 18px 50px rgba(5, 31, 68, .08);
  text-align: center;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

body[data-itv-section="presenters"] .presenter-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #23b9ff, #4268ff 52%, #ff315c);
  opacity: .9;
}

body[data-itv-section="presenters"] .presenter-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 76px rgba(5, 31, 68, .17);
  border-color: #82baf0;
}

body[data-itv-section="presenters"] .presenter-card figure {
  --crop-x: 50%;
  --crop-y: 35%;
  --crop-scale: 1.15;
  position: relative;
  width: min(198px, 68%);
  aspect-ratio: 1;
  margin: 30px auto 4px;
  padding: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #dff1ff, #c9e2f7);
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow:
    0 0 0 7px rgba(24, 139, 235, .18),
    0 0 34px rgba(17, 139, 237, .48),
    0 20px 44px rgba(5, 31, 68, .24);
  transition: transform .28s ease, box-shadow .28s ease;
  animation: itv-presenter-card-glow 3.4s ease-in-out infinite;
}

body[data-itv-section="presenters"] .presenter-card:hover figure {
  transform: translateY(-3px) scale(1.025);
  box-shadow:
    0 0 0 8px rgba(24, 139, 235, .24),
    0 0 44px rgba(17, 139, 237, .62),
    0 24px 52px rgba(5, 31, 68, .29);
}

body[data-itv-section="presenters"] .presenter-card figure img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--crop-x) var(--crop-y);
  transform: scale(var(--crop-scale));
  transform-origin: var(--crop-x) var(--crop-y);
  transition: filter .35s ease;
}

body[data-itv-section="presenters"] .presenter-card:hover figure img {
  filter: saturate(1.05) contrast(1.02);
}

@keyframes itv-presenter-card-glow {
  0%, 100% {
    box-shadow:
      0 0 0 7px rgba(24, 139, 235, .16),
      0 0 28px rgba(17, 139, 237, .36),
      0 20px 44px rgba(5, 31, 68, .22);
  }
  50% {
    box-shadow:
      0 0 0 8px rgba(24, 139, 235, .25),
      0 0 44px rgba(17, 139, 237, .58),
      0 20px 48px rgba(5, 31, 68, .25);
  }
}

body[data-itv-section="presenters"] .presenter-card-body {
  padding: 20px 22px 25px;
}

body[data-itv-section="presenters"] .presenter-role {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf4ff;
  color: #175eaa;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

body[data-itv-section="presenters"] .presenter-card h2 {
  color: #081d3d;
  font-size: 1.48rem;
  line-height: 1.12;
  margin: 14px 0 8px;
}

body[data-itv-section="presenters"] .presenter-programme {
  display: block;
  color: #173d6c;
  font-size: 1rem;
}

body[data-itv-section="presenters"] .presenter-airtime {
  margin-top: 7px;
  color: #63758d;
  font-size: .88rem;
  line-height: 1.45;
}

body[data-itv-section="presenters"] .presenter-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 142px;
  margin-top: 18px;
  padding: 11px 17px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 12px;
  background: linear-gradient(135deg, #0d5fb7, #1d91ed 58%, #32b9ff);
  color: #fff;
  text-decoration: none;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(21, 111, 198, .24), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

body[data-itv-section="presenters"] .presenter-profile-btn::after {
  content: "→";
  font-size: 1.08em;
  transition: transform .22s ease;
}

body[data-itv-section="presenters"] .presenter-profile-btn:hover,
body[data-itv-section="presenters"] .presenter-profile-btn:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 14px 31px rgba(21, 111, 198, .36), 0 0 24px rgba(45, 176, 255, .22);
}

body[data-itv-section="presenters"] .presenter-profile-btn:hover::after,
body[data-itv-section="presenters"] .presenter-profile-btn:focus-visible::after {
  transform: translateX(3px);
}

body[data-itv-section="presenters"] .presenters-loading,
body[data-itv-section="presenters"] .presenters-empty {
  grid-column: 1 / -1;
  padding: 48px;
  border: 1px dashed #b7cadf;
  border-radius: 22px;
  text-align: center;
  color: #657991;
  background: #f7fbff;
}

@media (max-width: 900px) {
  body[data-itv-section="presenters"] .presenters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (max-width: 580px) {
  body[data-itv-section="presenters"] .presenters-grid {
    grid-template-columns: 1fr;
  }

  body[data-itv-section="presenters"] .presenter-card {
    width: 100%;
    max-width: 460px;
    margin-inline: auto;
  }

  body[data-itv-section="presenters"] .presenter-card figure {
    width: min(190px, 62vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-itv-section="presenters"] .presenter-card figure {
    animation: none;
  }
  body[data-itv-section="presenters"] .presenter-card,
  body[data-itv-section="presenters"] .presenter-card figure,
  body[data-itv-section="presenters"] .presenter-profile-btn {
    transition: none;
  }
}
