html[data-s3-senal] #s3-output .stv-next-panel:has(> .s3-editorial-table) {
  top: 5.8cqw;
  bottom: 5.5cqw;
}
.stv-next-panel > .s3-editorial-table {
  width: 100%;
  height: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: left;
  font-variant-numeric: tabular-nums;
  font-size: clamp(8px, 1.18cqw, 24px);
  line-height: 1.19;
}
.s3-editorial-table :is(th,td) {
  padding: .4cqw 1.1cqw .4cqw 0;
  border-bottom: 1px solid #d9f0ff35;
  overflow-wrap: anywhere;
}
.s3-editorial-table thead th {
  color: var(--next-accent);
  font-size: .85em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .045em;
}
.s3-editorial-table tbody th {
  font-weight: 700;
}
.s3-editorial-table--guide thead th:first-child { width: 17%; }
.s3-editorial-table--ratings thead th:first-child { width: 53%; }
.s3-editorial-table--ratings :is(th,td):not(:first-child) {
  text-align: right;
}
.s3-editorial-table--ratings td strong {
  font-size: 1.4em;
  font-weight: 700;
  white-space: nowrap;
}
.s3-editorial-table--ratings td small {
  color: var(--next-accent);
  font-size: .85em;
}
.s3-editorial-channel, .s3-editorial-programme {
  display: flex;
  align-items: center;
  gap: .8cqw;
  min-width: 0;
}
.s3-editorial-channel > img {
  width: 2.6cqw;
  height: 2.15cqw;
  flex: none;
  object-fit: contain;
}
.s3-editorial-channel > img[data-logo=telecinco] {
  filter: brightness(0) invert(1);
}
.s3-editorial-channel > span:empty {
  width: 2.6cqw;
  flex: none;
}
.s3-editorial-programme > time {
  color: var(--next-accent);
  font-size: .92em;
  font-weight: 650;
  white-space: nowrap;
}
html[data-stv-next-mobile=true] .s3-editorial-table {
  font-size: clamp(9px, 2.7cqw, 13px);
}
html[data-stv-next-mobile=true] .s3-editorial-table :is(th,td) {
  padding: 4px 5px 4px 0;
}
html[data-stv-next-mobile=true] .s3-editorial-table--guide thead th:first-child {
  width: 21%;
}
html[data-stv-next-mobile=true] .s3-editorial-table--guide :is(.s3-editorial-channel,.s3-editorial-programme) {
  display: grid;
  gap: 3px;
}
html[data-stv-next-mobile=true] .s3-editorial-channel > img {
  width: 17px;
  height: 15px;
}
html[data-stv-next-mobile=true] .s3-editorial-channel > span:empty {
  display: none;
}

/* Extra row only on Sports, and only when there are upcoming fixtures. */
html[data-s3-senal] #s3-output[data-s3-canal="5"].s3-with-sports-ticker {
  --s3-sports-footer: max(13%,46px);
  grid-template-rows: max(7.2%,23px) minmax(0,1fr) var(--s3-sports-footer);
}
html[data-s3-senal] #s3-output[data-s3-canal="5"].s3-with-sports-ticker #s3-pie {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  grid-template-rows: minmax(0,1fr) auto;
  row-gap: 0;
}
html[data-s3-senal].s3-tarjeta-en-antena #s3-output[data-s3-canal="5"].s3-with-sports-ticker {
  --s3-promo-bottom: calc(var(--s3-sports-footer) + 3%);
}
html[data-s3-senal] #s3-output[data-s3-canal="5"].s3-with-sports-ticker .s3-player-fullscreen {
  --s3-foot-height: var(--s3-sports-footer);
}
html[data-s3-senal].s3-tarjeta-en-antena #s3-output[data-s3-canal="5"].s3-with-sports-ticker #stvSharedSoundGate {
  bottom: calc(var(--s3-sports-footer) + 1.2cqw)!important;
}
.s3-sports-ticker {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: .75em;
  min-width: 0;
  padding: .32em 0;
  border-top: 1px solid #a1cfdd40;
  color: #fff4df;
  font: 600 12px/1.2 Manrope, Arial, sans-serif;
  font-size: clamp(10px,1.04cqw,21px);
}
.s3-sports-ticker[hidden] { display: none; }
.s3-sports-ticker__label {
  flex: none;
  color: #b9e4f0;
  font-size: .84em;
  font-weight: 780;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.s3-sports-ticker__viewport { flex: 1; min-width: 0; overflow: hidden; }
.s3-sports-ticker__track {
  display: flex;
  width: max-content;
  animation: s3-sports-ticker var(--s3-sports-ticker-seconds,30s) linear infinite;
}
.s3-sports-ticker__group {
  display: flex;
  align-items: center;
  min-width: min(100vw,177.78vh);
  margin: 0;
  padding: 0;
  list-style: none;
}
.s3-sports-ticker__match {
  display: flex;
  align-items: baseline;
  gap: .6em;
  flex: none;
  white-space: nowrap;
  padding-right: 2.2em;
}
.s3-sports-ticker__match time { color: #b9e4f0; font-variant-numeric: tabular-nums; }
.s3-sports-ticker__match span { opacity: .78; }
@keyframes s3-sports-ticker { to { transform: translateX(-50%); } }
@media (max-width:630px) and (orientation:portrait) {
  html[data-s3-senal][data-stv-next-mobile=true] #s3-output[data-s3-canal="5"].s3-with-sports-ticker {
    --s3-sports-footer: 91px;
    grid-template-rows: 46px minmax(0,1fr) var(--s3-sports-footer);
  }
}
@media (prefers-reduced-motion: reduce) {
  .s3-sports-ticker__track { animation: none; }
  .s3-sports-ticker__group[aria-hidden="true"] { display: none; }
  .s3-sports-ticker__viewport { overflow-x: auto; }
}
