.touch-controls { display: none; }

@media (max-width:760px) {
  [data-touch-gallery] {
    --touch-gap: 11px;
    --touch-width: min(86%, 460px);
    min-width: 0;
  }
  [data-touch-gallery] [data-touch-track] {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    gap: var(--touch-gap);
    padding: 3px 0 5px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    touch-action: pan-x pan-y pinch-zoom;
  }
  [data-touch-track]::-webkit-scrollbar { display:none; }
  [data-touch-track] > .touch-card {
    position: relative;
    flex: 0 0 var(--touch-width);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    touch-action: pan-x pan-y pinch-zoom;
    -webkit-tap-highlight-color: transparent;
  }
  [data-touch-single] [data-touch-track] > .touch-card { flex-basis: min(100%,520px); }
  [data-touch-track] > .touch-card::before {
    content: '';
    position: absolute;
    z-index: 1; inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    box-shadow: inset 0 0 0 2px var(--brand);
    background: radial-gradient(circle at var(--touch-x,50%) var(--touch-y,50%),rgb(255 203 43 / .32),transparent 64%);
    transition: opacity 140ms ease-out;
  }
  [data-touch-track] > .touch-card.touch-pressed::before,
  [data-touch-track] > .touch-card:active::before { opacity: 1; transition-duration: 45ms; }
  [data-touch-track] > .touch-card:focus-visible { outline: 3px solid var(--brand); outline-offset:-4px; }

  /* The horizontal strip owns visibility on mobile, including the peek at the next card. */
  [data-touch-gallery] [data-touch-track] > .touch-card.motion-reveal[data-motion-edge] {
    opacity: 1; translate: none;
  }
  .home-tv .home-programs > .touch-card:nth-child(n),
  .directory [data-touch-track] > .touch-card,
  .related [data-touch-track] > .touch-card {
    display: flex;
    height: auto;
    min-height: 215px;
    max-height: 368px;
    aspect-ratio: 1.15;
    padding: clamp(16px, 5vw, 27px);
    border-radius: 5px;
  }
  .home-tv .home-programs > .touch-card:nth-child(n) h3,
  .directory [data-touch-track] h3,
  .related [data-touch-track] h3 {
    font-size: clamp(32px, 8.2vw, 54px);
    line-height: .98;
    margin-block: 5px;
  }
  .home-tv .home-programs > .touch-card p { max-width:29ch; font-size: 13px; }
  .home-tv .home-programs > .touch-card:nth-child(n) .tile-arr,
  .related [data-touch-track] .tile-arr, .directory [data-touch-track] .tile-arr {
    display: grid; width: 32px; height: 32px; flex: none;
  }
  .touch-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 5px 0; color: inherit; }
  [data-touch-single] > .touch-controls { display: none; }
  .touch-pagination, .touch-arrows { display:flex; align-items:center; gap: 8px; }
  .touch-pagination [data-touch-status] { font: 700 13px/1 var(--body); font-variant-numeric: tabular-nums; white-space:nowrap; }
  .touch-meter { width: clamp(38px, 12vw, 82px); height: 3px; position:relative; }
  .touch-meter::before { content:''; position:absolute; inset:0; background:currentColor; opacity:.22; }
  .touch-meter i {
    display:block; width:calc(100% / var(--touch-count,1)); height:100%; background:var(--brand);
    transform:translateX(calc(var(--touch-index,0) * 100%));
    transition:transform 180ms ease-out;
  }
  .touch-hint { font-size:12px; font-weight:600; }
  .touch-arrows { gap: 6px; }
  .touch-arrows button {
    display:grid; place-items:center; padding:0; width:44px; height:44px;
    border:1px solid currentColor; border-radius:50%; background:transparent; color:inherit;
  }
  .touch-arrows button:not([aria-disabled=true]):active { border-color:var(--brand); background:var(--brand); color:var(--coal); }
  .touch-arrows button[aria-disabled=true] { opacity:.34; }
  .touch-arrows svg { width:18px; height:18px; }
  .touch-controls + .home-program-foot { margin-top:10px; }
}
@media (max-width:760px) and (prefers-reduced-motion:no-preference) {
  [data-touch-track] > .touch-card > img {
    transform:translate3d(var(--swipe-shift,0px),0,0) scale(1.095);
    transition: scale .15s ease-out;
    scale: 1;
  }
  [data-touch-track] > .touch-card.touch-pressed > img { scale: 1.035; }
  [data-touch-track] > .touch-card .tile-arr,
  [data-touch-track] > .touch-card .sport-slide-caption > span { transition: background-color .13s,color .13s; }
  .touch-pressed .tile-arr, .touch-pressed .sport-slide-caption > span { background:var(--brand); color:var(--coal); }
}
@media (pointer:coarse) {
  #home-links a:active, .home-more-tv a:active, .service-strip a:active { color:var(--coal); background:var(--brand); }
  .btn:active, .pkg-more:active, .home-business-actions a:active, .home-portal-options a:active {
    box-shadow:inset 0 0 0 2px currentColor;
  }
}
