/* Oct 2026: compact editorial rhythm, safe live geometry and mobile legibility.
 * This finishing layer intentionally follows the legacy custom CSS/snippets.
 * Brand artwork and the separate Ads draft keep their original styling. */
body.wp-theme-playtv:not(.page-id-51123) {
  --quality-ink: #172235;
  --quality-muted: #566579;
  --quality-paper: #ffffff;
  --quality-soft: #f3f6fa;
  --quality-border: #dfe5ef;
  --quality-accent: #167db2;
  --quality-glow: #56d6ee;
}
html[data-playtv-mode="dark"] body.wp-theme-playtv:not(.page-id-51123) {
  --quality-ink: #f1f5fc;
  --quality-muted: #b7c3d6;
  --quality-paper: #121a28;
  --quality-soft: #192335;
  --quality-border: #34435b;
  --quality-accent: #72def0;
}
body.wp-theme-playtv:not(.page-id-51123) :is(.live-layout,.programming-grid,.program-copy,.article-layout,.article-body,.brand-statement-copy) {
  min-width: 0;
}
body.wp-theme-playtv:not(.page-id-51123) :is(h1,h2,h3,h4,p,.live-next strong) {
  overflow-wrap: break-word;
}
body.wp-theme-playtv:not(.page-id-51123) :is(main,.portal-header,.nav-menu,.site-footer,.newsletter-popup) :is(h1,h2,h3,h4,h5,h6) {
  font-family: Oxygen,Arial,sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -.02em !important;
}
body.wp-theme-playtv:not(.page-id-51123) .portal-header {
  box-shadow: 0 1px 0 rgba(91,183,226,.18),0 4px 18px rgba(5,15,30,.08);
}
body.wp-theme-playtv:not(.page-id-51123) .portal-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg,transparent 4%,rgba(94,116,213,.45) 30%,rgba(65,178,200,.42) 72%,transparent 96%);
}
body.wp-theme-playtv:not(.page-id-51123) :is(button,a,summary):focus-visible {
  outline: 2px solid var(--quality-accent);
  outline-offset: 3px;
}

/* The stream always owns its own 16:9 box; programme text cannot stretch it. */
body.wp-theme-playtv:not(.page-id-51123) #aovivo .live-layout {
  align-items: start !important;
  grid-template-columns: minmax(0,1.75fr) minmax(280px,.85fr) !important;
  border: 1px solid var(--quality-border) !important;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(9,19,38,.06);
  overflow: hidden;
}
body.wp-theme-playtv:not(.page-id-51123) #aovivo .live-player {
  align-self: start !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16/9 !important;
  position: relative !important;
  background: #080d15 !important;
  overflow: hidden !important;
}
body.wp-theme-playtv:not(.page-id-51123) #aovivo .live-player > video {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16/9 !important;
  object-fit: contain !important;
  margin: 0 !important;
}
body.wp-theme-playtv:not(.page-id-51123) #aovivo .live-player-badge {
  pointer-events: none !important;
  top: 14px;
  left: 14px;
  font-size: 10px !important;
  z-index: 4;
}
body.wp-theme-playtv:not(.page-id-51123) #aovivo .live-player-poster:not([hidden]) {
  position: absolute !important;
  inset: 0 !important;
  height: 100% !important;
  width: 100% !important;
  min-height: 0 !important;
  justify-content: center !important;
  background: #101722 !important;
}
body.wp-theme-playtv:not(.page-id-51123) #aovivo .live-player-poster img {
  display: none !important;
}
body.wp-theme-playtv:not(.page-id-51123) .playtv-rights-slate button {
  position: static !important;
  transform: none !important;
  min-height: 44px !important;
  height: auto !important;
  width: auto !important;
  margin: 0 !important;
  flex: 0 0 auto;
}
body.wp-theme-playtv:not(.page-id-51123) #aovivo .live-details {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  position: relative !important;
  inset: auto !important;
  min-width: 0 !important;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  padding: clamp(20px,2.2vw,28px) !important;
  background: #111b2f !important;
  color: #f1f5fc !important;
  box-shadow: inset 0 1px 0 rgba(111,198,244,.18);
}
body.wp-theme-playtv:not(.page-id-51123) #aovivo .live-status-label {
  flex-wrap: wrap !important;
  gap: 10px !important;
}
body.wp-theme-playtv:not(.page-id-51123) #aovivo .live-status-label small {
  font-size: 11px !important;
  line-height: 1.5 !important;
  white-space: normal !important;
  color: #b7c8e2 !important;
}
body.wp-theme-playtv:not(.page-id-51123) #aovivo .live-current h3 {
  font-family: Oxygen,Arial,sans-serif !important;
  font-size: clamp(22px,1.9vw,28px) !important;
  line-height: 1.3 !important;
  letter-spacing: -.015em !important;
  margin: 0 !important;
  max-width: 100% !important;
  color: #fff !important;
}
body.wp-theme-playtv:not(.page-id-51123) #aovivo .live-progress {
  height: 3px;
  margin: 16px 0 11px;
  background: #2f405c;
}
body.wp-theme-playtv:not(.page-id-51123) #aovivo .live-progress i {
  background: linear-gradient(90deg,#5380ed,#56d6ee);
  box-shadow: 0 0 8px rgba(86,214,238,.15);
}
body.wp-theme-playtv:not(.page-id-51123) #aovivo .live-next {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto !important;
  gap: 8px 14px !important;
  align-items: start !important;
  position: static !important;
  padding: 16px 0 !important;
}
body.wp-theme-playtv:not(.page-id-51123) #aovivo .live-next strong {
  font-size: 14px !important;
  line-height: 1.5 !important;
  font-weight: 700 !important;
  min-width: 0 !important;
  color: #f1f5fc !important;
}
body.wp-theme-playtv:not(.page-id-51123) #aovivo .live-next > span {
  font-size: 12px !important;
  line-height: 1.6 !important;
  white-space: nowrap;
  color: #b7c8e2 !important;
}
body.wp-theme-playtv:not(.page-id-51123) #aovivo .live-schedule-action {
  position: static !important;
  transform: none !important;
  min-height: 44px !important;
  height: auto !important;
  width: 100% !important;
  margin-top: 18px !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  border-radius: 6px !important;
}
body.wp-theme-playtv:not(.page-id-51123) #aovivo .program-release {
  grid-template-columns: auto minmax(120px,.7fr) minmax(0,1.5fr) !important;
  gap: 10px 20px !important;
  padding: 20px 24px !important;
  border-radius: 6px;
  background: var(--quality-paper) !important;
  color: var(--quality-ink) !important;
  border-color: var(--quality-border) !important;
  border-left-color: var(--quality-accent) !important;
}
body.wp-theme-playtv:not(.page-id-51123) #aovivo .program-release h3 {
  line-height: 1.3 !important;
  color: var(--quality-ink) !important;
}
body.wp-theme-playtv:not(.page-id-51123) #aovivo .program-release p {
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: var(--quality-muted) !important;
  min-width: 0;
}

/* Refined hierarchy, without changing official imagery or sponsor palettes. */
body.wp-theme-playtv:not(.page-id-51123) .programming-heading h2 {
  font-family: Oxygen,Arial,sans-serif !important;
  font-size: clamp(29px,3.1vw,42px) !important;
  line-height: 1.2 !important;
  position: relative;
}
body.wp-theme-playtv:not(.page-id-51123) .programming-heading h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg,#5861bb,#20adc6);
  margin-top: 14px;
}
body.wp-theme-playtv:not(.page-id-51123) .program-card {
  border: 1px solid var(--quality-border) !important;
  border-radius: 10px !important;
  box-shadow: 0 3px 16px rgba(13,32,64,.04);
  overflow: hidden;
  transition: border-color .18s ease,box-shadow .18s ease;
}
body.wp-theme-playtv:not(.page-id-51123) .program-card:hover {
  border-color: #b7c8e1 !important;
  box-shadow: 0 6px 20px rgba(22,47,84,.07);
}
html[data-playtv-mode="dark"] body.wp-theme-playtv:not(.page-id-51123) .program-card {
  border-color: #334a60 !important;
  box-shadow: 0 0 0 1px rgba(67,170,194,.04),0 8px 24px rgba(2,8,18,.12);
}
html[data-playtv-mode="dark"] body.wp-theme-playtv:not(.page-id-51123) .program-card:hover {
  border-color: #4b7688 !important;
  box-shadow: 0 0 14px rgba(73,183,205,.06),0 8px 24px rgba(2,8,18,.14);
}
body.wp-theme-playtv:not(.page-id-51123) .program-card .program-copy {
  min-width: 0;
  padding: 22px !important;
}
body.wp-theme-playtv:not(.page-id-51123) .program-card .program-copy h3,
body.wp-theme-playtv:not(.page-id-51123) .program-card .program-copy h3 a {
  font-family: Oxygen,Arial,sans-serif !important;
  font-size: clamp(21px,1.7vw,25px) !important;
  font-weight: 700 !important;
  letter-spacing: -.015em !important;
  line-height: 1.35 !important;
  color: var(--quality-ink) !important;
}
body.wp-theme-playtv:not(.page-id-51123) .program-card .program-copy p {
  font-family: Oxygen,Arial,sans-serif !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: var(--quality-muted) !important;
}
body.wp-theme-playtv:not(.page-id-51123) .article-header h1 {
  font-family: Oxygen,Arial,sans-serif !important;
  font-size: clamp(32px,4.2vw,56px) !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: -.02em !important;
}
body.wp-theme-playtv:not(.page-id-51123) .article-breadcrumbs {
  flex-wrap: wrap;
  row-gap: 8px;
}
body.wp-theme-playtv:not(.page-id-51123) .article-body :is(p,li) {
  line-height: 1.8 !important;
  overflow-wrap: break-word;
}
body.wp-theme-playtv:not(.page-id-51123) .spotlight-news-card h2 {
  font-family: Oxygen,Arial,sans-serif !important;
  font-size: clamp(27px,3vw,40px) !important;
  font-weight: 700 !important;
  line-height: 1.24 !important;
  letter-spacing: -.015em !important;
}
body.wp-theme-playtv:not(.page-id-51123) .spotlight-slide > .spotlight-art-link {
  border-color: #bdcde0 !important;
  box-shadow: 0 8px 26px rgba(17,42,77,.06);
}
html[data-playtv-mode="dark"] body.wp-theme-playtv:not(.page-id-51123) .spotlight-slide > .spotlight-art-link {
  border-color: #39556c !important;
  box-shadow: 0 0 0 1px rgba(90,182,209,.05),0 0 18px rgba(97,116,213,.06);
}
body.wp-theme-playtv:not(.page-id-51123) .spotlight[data-carousel] > .spotlight-controls > button {
  border-radius: 50% !important;
  background: var(--quality-soft) !important;
  color: var(--quality-ink) !important;
  border: 1px solid var(--quality-border) !important;
  transition: border-color .18s ease, color .18s ease;
}
body.wp-theme-playtv:not(.page-id-51123) .spotlight[data-carousel] > .spotlight-controls > button:hover {
  color: var(--quality-accent) !important;
  border-color: var(--quality-accent) !important;
}

/* One 16:9 slide, without caption bands. Promotional covers have their own copy;
   photo-led stories retain a compact headline inside the image. */
body.wp-theme-playtv:not(.page-id-51123) .spotlight[data-carousel] {
  display: flex !important;
  flex-direction: column !important;
  aspect-ratio: auto !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden;
  padding-bottom: 12px !important;
}
body.wp-theme-playtv:not(.page-id-51123) .spotlight[data-carousel] > .spotlight-track {
  display: block !important;
  aspect-ratio: 16/9 !important;
  position: relative !important;
  inset: auto !important;
  height: auto !important;
  min-height: 0 !important;
}
body.wp-theme-playtv:not(.page-id-51123) .spotlight-slide {
  position: absolute !important;
  inset: 0 !important;
  width: 100%;
  height: 100%;
  visibility: hidden;
  transition: opacity .55s ease, visibility 0s .55s;
}
body.wp-theme-playtv:not(.page-id-51123) .spotlight-slide.is-active {
  visibility: visible;
  transition: opacity .55s ease, visibility 0s;
  animation: none !important;
  transform: none !important;
}
body.wp-theme-playtv:not(.page-id-51123) .spotlight-slide > .spotlight-art-link {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  height: 100% !important;
  border: 1px solid var(--quality-border) !important;
  border-radius: 4px;
  overflow: hidden;
  background: var(--quality-paper) !important;
}
body.wp-theme-playtv:not(.page-id-51123) .spotlight-slide > .spotlight-art-link::after,
body.wp-theme-playtv:not(.page-id-51123) .spotlight-slide > .spotlight-art-link::before {
  display: none !important;
}
body.wp-theme-playtv:not(.page-id-51123) .spotlight-slide:not(.spotlight-slide--cover) > .spotlight-art-link::after {
  display: block !important;
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,rgba(4,8,15,.95),rgba(4,8,15,.42) 40%,transparent 75%);
}
body.wp-theme-playtv:not(.page-id-51123) .spotlight-slide > .spotlight-art-link > .ident-art {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: 16/9 !important;
}
body.wp-theme-playtv:not(.page-id-51123) .spotlight-slide > .spotlight-art-link .ident-art__image {
  object-fit: contain !important;
  object-position: center !important;
  animation: none !important;
  transform: none !important;
}
body.wp-theme-playtv:not(.page-id-51123) .spotlight .spotlight-news-card {
  position: absolute !important;
  inset: auto auto 0 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0,1fr);
  width: min(88%,900px) !important;
  max-width: 100% !important;
  min-height: 0 !important;
  gap: 8px !important;
  padding: clamp(20px,3.2vw,40px) !important;
  align-content: end !important;
  border: 0 !important;
  background: transparent !important;
  color: #fff !important;
}
body.wp-theme-playtv:not(.page-id-51123) .spotlight .spotlight-slide--cover .spotlight-news-card { display: none !important; }
body.wp-theme-playtv:not(.page-id-51123) .spotlight .spotlight-news-card h2 {
  grid-column: 1;
  grid-row: 2;
  display: -webkit-box !important;
  font-size: clamp(23px,2.7vw,34px) !important;
  line-height: 1.25 !important;
  color: #fff !important;
  margin: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-shadow: none !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3 !important;
}
body.wp-theme-playtv:not(.page-id-51123) .spotlight .spotlight-news-card > span {
  grid-column: 1;
  grid-row: 1;
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: #86ddec !important;
  letter-spacing: .04em !important;
}
body.wp-theme-playtv:not(.page-id-51123) .spotlight .spotlight-news-card :is(small,p,b) { display: none !important; }
body.wp-theme-playtv:not(.page-id-51123) .spotlight[data-carousel] > .spotlight-controls {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  min-height: 32px !important;
  margin-top: 8px !important;
  pointer-events: auto;
}
body.wp-theme-playtv:not(.page-id-51123) .spotlight[data-carousel] > .spotlight-controls > button {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  height: 32px !important;
  min-width: 32px !important;
  width: 32px !important;
  border: 0 !important;
  background: transparent !important;
  color: #d3e2f3 !important;
}
body.wp-theme-playtv:not(.page-id-51123) .spotlight[data-carousel] > .spotlight-controls > .spotlight-progress-track {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  flex: 0 0 166px !important;
}

@media (max-width:1000px) {
  body.wp-theme-playtv:not(.page-id-51123) #aovivo .live-layout {
    grid-template-columns: minmax(0,1fr) !important;
  }
  body.wp-theme-playtv:not(.page-id-51123) #aovivo .program-release {
    grid-template-columns: auto minmax(0,1fr) !important;
  }
  body.wp-theme-playtv:not(.page-id-51123) #aovivo .program-release p { grid-column: 1/-1; }
}
@media (max-width:767px) {
  body.wp-theme-playtv:not(.page-id-51123) .spotlight[data-carousel] {
    padding: 10px 12px 14px !important;
  }
  body.wp-theme-playtv:not(.page-id-51123) .spotlight .spotlight-news-card {
    width: 100% !important;
    gap: 5px !important;
    padding: 16px 18px !important;
  }
  body.wp-theme-playtv:not(.page-id-51123) .spotlight .spotlight-news-card h2 {
    font-size: clamp(18px,5.1vw,27px) !important;
  }
  body.wp-theme-playtv:not(.page-id-51123) .spotlight .spotlight-news-card > span {
    font-size: 10px !important;
    letter-spacing: .02em !important;
  }
  body.wp-theme-playtv:not(.page-id-51123) .spotlight .spotlight-news-card :is(small,p,b) { display: none !important; }
  body.wp-theme-playtv:not(.page-id-51123) #aovivo { padding: 10px 12px 16px !important; }
  body.wp-theme-playtv:not(.page-id-51123) #aovivo .live-details { padding: 20px !important; }
  body.wp-theme-playtv:not(.page-id-51123) #aovivo .live-current h3 { font-size: 24px !important; }
  body.wp-theme-playtv:not(.page-id-51123) #aovivo .program-release {
    grid-template-columns: minmax(0,1fr) !important;
    padding: 18px 20px !important;
  }
  body.wp-theme-playtv:not(.page-id-51123) #aovivo .program-release p { grid-column: auto; }
  body.wp-theme-playtv:not(.page-id-51123) #aovivo .weekly-schedule > header h3 {
    font-size: 25px !important;
    line-height: 1.25 !important;
  }
  body.wp-theme-playtv:not(.page-id-51123) #aovivo .schedule-list article {
    grid-template-columns: 54px minmax(0,1fr) !important;
    gap: 12px !important;
    padding: 14px 4px !important;
  }
  body.wp-theme-playtv:not(.page-id-51123) #aovivo .schedule-list article strong {
    font-size: 15px !important;
    line-height: 1.45 !important;
  }
  body.wp-theme-playtv:not(.page-id-51123) #aovivo .schedule-list article p {
    font-size: 12px !important;
    line-height: 1.65 !important;
  }
  body.wp-theme-playtv:not(.page-id-51123) .programming-grid { gap: 20px !important; }
  body.wp-theme-playtv:not(.page-id-51123) .program-card .program-copy { padding: 20px !important; }
  body.wp-theme-playtv:not(.page-id-51123) .program-card .program-copy h3,
  body.wp-theme-playtv:not(.page-id-51123) .program-card .program-copy h3 a { font-size: 22px !important; }
  body.wp-theme-playtv:not(.page-id-51123) .article-header h1 { font-size: clamp(32px,9vw,42px) !important; }
  body.wp-theme-playtv:not(.page-id-51123) .article-meta { flex-wrap: wrap; }
  body.wp-theme-playtv:not(.page-id-51123) .article-layout { padding-inline: 20px !important; }
  body.wp-theme-playtv:not(.page-id-51123) .playtv-rights-slate {
    gap: 8px !important;
    padding: 16px !important;
  }
  body.wp-theme-playtv:not(.page-id-51123) .playtv-rights-slate strong { font-size: 24px !important; }
  body.wp-theme-playtv:not(.page-id-51123) .playtv-rights-slate span { font-size: 13px !important; line-height: 1.5 !important; }
}
@media (max-width:420px) {
  body.wp-theme-playtv:not(.page-id-51123) .header-main {
    grid-template-columns: 40px minmax(0,1fr) auto;
    gap: 8px;
    padding-inline: 12px;
  }
  body.wp-theme-playtv:not(.page-id-51123) .header-contact { display: none !important; }
  body.wp-theme-playtv:not(.page-id-51123) .header-advertise {
    font-size: 11px !important;
    min-height: 36px;
    padding: 9px 10px;
    letter-spacing: .02em;
  }
}
@media (prefers-reduced-motion:reduce) {
  body.wp-theme-playtv:not(.page-id-51123) :is(.spotlight-slide,.spotlight-news-card *,.program-card) {
    animation: none !important;
    transition: none !important;
  }
}
/* Mobile live video stays clear of optional launchers while it is on screen.
   Consent/chat/newsletter dialogs and footer links are deliberately untouched. */
@media (max-width:767px) {
  body.playtv-live-in-view #ht-ctc-chat,
  body.playtv-live-in-view .newsletter-launcher,
  body.playtv-live-in-view .cky-btn-revisit-wrapper {
    visibility:hidden !important;
    pointer-events:none !important;
  }
}
