/* The directory receiver surrounds each provider's own picture. */
#watch {
  --receiver-night: #031021;
  --receiver-gold: #ffda83;
  --receiver-edge: #487388;
  --receiver-key: linear-gradient(165deg, #203d50, #10283b 48%, #081a2a 90%);
  --gutter: clamp(.55rem, 2.5vw, 1.15rem);
  width: min(47rem, calc(100% - .65rem));
  background: radial-gradient(ellipse at 70% 3%, #12354c, transparent 49%), var(--receiver-night);
  border: 1px solid #396071;
  border-radius: 1rem;
  color: #f6f8fc;
  box-shadow: 0 12px 60px #0009, inset 0 0 0 2px #051420;
}
#watch::backdrop { background: #010a16ed; }
#watch .player-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .45rem .7rem;
  position: static;
  padding: .55rem var(--gutter) .4rem;
  background: radial-gradient(ellipse at 67% 88%, #aa733440, transparent 38%), linear-gradient(135deg, #061324, #0c2439 70%, #071526);
  border: 0;
  touch-action: pan-y;
}
#watch .receiver-brand {
  display: grid;
  grid-template-columns: clamp(2.8rem, 10vw, 4.5rem) minmax(0, auto);
  justify-content: start;
  align-items: end;
  column-gap: .2rem;
  color: #ffe0a0;
  font: italic 750 clamp(1.18rem, 4.7vw, 1.85rem)/1.02 system-ui,sans-serif;
}
#watch .receiver-brand::before {
  content: '';
  grid-row: span 2;
  align-self: stretch;
  min-height: 2.7rem;
  background: url('/tv-directory/remote-sunrise.webp') 3% 50% / auto 100% no-repeat;
  mix-blend-mode: lighten;
  mask-image: linear-gradient(90deg, transparent, black 8% 85%, transparent);
}
#watch .receiver-brand small {
  align-self: start;
  margin-top: .22rem;
  color: #f3cf87;
  font: 650 .77rem/1.1 system-ui,sans-serif;
  letter-spacing: .18em;
  text-align: center;
}
#watch #channel-label {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: clamp(.6rem, 2vw, 1.15rem);
  min-height: 3.1rem;
  padding: .35rem clamp(.55rem, 2vw, 1.1rem);
  border: 1px solid #5a8d9d;
  border-radius: .85rem;
  background: linear-gradient(180deg, #154058, #061a2a 62%, #0b2738);
  box-shadow: inset 0 1px 0 #c0f4ff44, inset 0 -2px 7px #54d9ff17;
}
#watch #channel-number {
  flex: none;
  padding: .12em .48em;
  border: 1px solid #b99452;
  border-radius: .4rem;
  background: linear-gradient(150deg, #382b19, #0d1014 65%);
  box-shadow: 0 0 9px #e4aa422b, inset 0 0 5px #f8c75b26;
  color: var(--receiver-gold);
  font: italic 800 clamp(1.05rem, 3.8vw, 1.6rem)/1.32 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#watch #channel-name { font-size: clamp(1rem, 3.4vw, 1.4rem); font-weight: 750; line-height: 1.16; overflow-wrap: anywhere; }
#watch #media:not(:empty) { background: #000; }
#watch:not(.expanded) .sheet:not(:fullscreen) #media:not(:empty) {
  margin-inline: clamp(.18rem, .8vw, .45rem);
  border: 1px solid #436977;
  border-radius: .55rem;
  overflow: clip;
}
#watch .program-caption { text-align: center; padding: .55rem var(--gutter) .25rem; }
#watch #program { margin: 0; font: 750 clamp(1.3rem, 4.3vw, 1.95rem)/1.15 system-ui,sans-serif; overflow-wrap: anywhere; }
#watch #format { display: flex; align-items: center; justify-content: center; gap: .55rem; margin: .18rem 0 0; color: var(--receiver-gold); font-size: .93rem; font-weight: 550; overflow-wrap: anywhere; }
#watch #format::before, #watch #format::after { content: ''; flex: 0 1 3rem; height: 1px; background: linear-gradient(90deg, transparent, #947644); }
#watch #format::after { transform: rotate(180deg); }
#watch #format:empty { display: none; }
#watch .pm-player-strip { background: transparent; padding: .35rem var(--gutter); }
#watch .pm-player-strip:has(.pm-message:empty):has(.pm-choices[hidden]):has(.pm-spotlight[hidden]) { display: none; }
#watch .tune {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .55rem;
  padding: .4rem var(--gutter) .45rem;
  background: transparent;
  border: 0;
  touch-action: pan-y;
}
#watch .tuner-rocker {
  display: grid;
  grid-template-columns: auto minmax(1.5rem, 1fr) auto;
  align-items: center;
  gap: .22rem;
  padding: .26rem;
  border: 1px solid #c8a35e;
  border-radius: 3rem;
  background: linear-gradient(#0e2437, #04101f 47%, #081a2a);
  box-shadow: inset 0 1px 3px #f9e09647, 0 0 8px #db9d351a;
}
#watch .tuner-rocker button, #watch #back, #watch .play-tools button, #watch #directory-audio-home summary, #watch #station-source a {
  min-height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .4rem;
  padding: .48rem clamp(.5rem, 2vw, .9rem);
  border: 1px solid var(--receiver-edge);
  border-radius: .6rem;
  background: var(--receiver-key);
  color: #f7fbff;
  box-shadow: inset 0 1px 0 #c8f7ff33, inset 0 -2px 3px #031120aa;
  font: 650 clamp(.875rem, 2.7vw, 1rem)/1.2 system-ui,sans-serif;
  text-decoration: none;
}
#watch .tuner-rocker button, #watch #back { border-radius: 2rem; border-color: #a79261; }
#watch :is(#back,#previous)::before, #watch #next::after, #watch .pm-audio summary::after {
  content: ''; display: inline-block; width: .45em; height: .45em; flex: none;
  border: solid var(--receiver-gold); border-width: 0 2px 2px 0; transform: rotate(135deg);
}
#watch #next::after, #watch .pm-audio summary::after { transform: rotate(-45deg); }
#watch .pm-audio[open] summary::after { transform: rotate(45deg); }
#watch .tuner-scale {
  position: relative; display: block; height: 1.8rem;
  background: linear-gradient(90deg, transparent, #e5b455 45% 55%, transparent) center 73% / 100% 1px no-repeat;
}
#watch .tuner-scale::before, #watch .tuner-scale::after {
  position: absolute; content: ''; inset: 48% 0 27%;
  background: repeating-linear-gradient(90deg, #d7a64c 0 1px, transparent 1px 7px);
  mask-image: linear-gradient(90deg, transparent, #000 12% 88%, transparent);
}
#watch .tuner-scale::after { top: 31%; background: repeating-linear-gradient(90deg, #f0cd79 0 1px, transparent 1px 35px); }
#watch .tuner-scale i { position: absolute; z-index: 1; left: 50%; top: 7%; bottom: 14%; width: 2px; background: #ffefb7; box-shadow: 0 0 5px 1px #ffb334, 0 0 12px #ffae27; }
#watch .tuner-scale i::after { content: ''; position: absolute; bottom: 0; left: -2px; width: 6px; height: 6px; border-radius: 50%; background: #ffe8a0; }
#watch .play-tools { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; gap: .44rem; padding: 0; }
#watch .play-tools:has(#expand[hidden]) { grid-template-columns: minmax(0,1fr) auto; }
#watch #open-stations::before { content: ''; width: 1em; height: .8em; flex: none; background: repeating-linear-gradient(to bottom, var(--receiver-gold) 0 2px, transparent 2px 5px); }
#watch #expand::before { content: ''; width: .84em; height: .84em; flex: none; border: 2px solid #e1faff; mask: linear-gradient(90deg, #000 28%, transparent 28% 72%, #000 72%), linear-gradient(#000 28%, transparent 28% 72%, #000 72%); mask-composite: intersect; }
#watch .play-tools #player-star { min-width: 3rem; color: var(--receiver-gold); font-size: 1.6rem; line-height: 1; }
#watch #player-star[aria-pressed=true] { border-color: var(--receiver-gold); background: linear-gradient(150deg, #534324, #1a2830); }
#watch .sheet > article { margin: 0 var(--gutter) var(--gutter); padding: .65rem; border: 1px solid #3e6578; border-radius: .8rem; background: linear-gradient(145deg, #0b2437, #061423); }
#watch #song-choice { display: grid; gap: .28rem; color: #d8e6f0; font-size: .94rem; }
#watch #song-list { width: 100%; min-height: 44px; margin: 0; border-color: #486c82; border-radius: .48rem; }
#watch #directory-audio-home summary { width: 100%; justify-content: start; }
#watch #directory-audio-home summary::before {
  content: ''; width: 1.1rem; height: 1.1rem; background-color: var(--receiver-gold);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9h4l5-4v14l-5-4H3zM15 8a6 6 0 0 1 0 8m3-11a10 10 0 0 1 0 14'/%3E%3C/svg%3E") center / contain no-repeat;
}
#watch #directory-audio-home summary::after { margin-inline-start: auto; }
#watch #song-choice:not([hidden]) + #directory-audio-home:not(:empty) { margin-top: .5rem; }
#watch .actions:not(:has(> :not([hidden]))), #watch:has(.pm-player-strip[hidden]) #directory-audio-home, #watch .station-credits:has(#rights[hidden]):has(#terms[hidden]) { display: none; }
#watch .station-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
#watch #directory-player-voice { padding: 0; background: none; }
#watch #station-source { display: flex; flex-wrap: wrap; gap: .4rem; }
#watch #station-source a { color: #bdeff9; }
#watch .station-credits summary { cursor: pointer; min-height: 44px; padding: .55rem 0; }
#watch .station-credits p { margin: .2rem 0; }
#watch .picker-inner { overflow-y: auto; }
#watch #station-options { flex: 1 1 auto; min-height: 3.5rem; }
#watch :is(button, summary, select, a):focus-visible { outline: 3px solid #ffe195; outline-offset: -3px; }
#watch button:active { filter: brightness(1.25); }
#watch.expanded { width: 100%; max-width: none; border-radius: 0; }
:is(#watch.expanded .sheet, #watch .sheet:fullscreen) .program-caption,
:is(#watch.expanded .sheet, #watch .sheet:fullscreen) .receiver-brand,
:is(#watch.expanded .sheet, #watch .sheet:fullscreen) .tuner-rocker { display: none; }
:is(#watch.expanded .sheet, #watch .sheet:fullscreen) .player-head { display: flex; min-height: 0; padding-block: .2rem; }
:is(#watch.expanded .sheet, #watch .sheet:fullscreen) #channel-label { flex: 1; min-height: 0; border: 0; background: none; box-shadow: none; }
@media (orientation: portrait) {
  :is(#watch.expanded .sheet, #watch .sheet:fullscreen):has(#media:is(.book-channel, .portrait-video)):not(:has(#station-picker[open])) > #receiver-controls.tune { display: block; order: 1; }
}
@media (orientation: landscape) and (max-height: 36rem) {
  #watch:not(.expanded) .sheet:not(:fullscreen):has(#media:not(:empty)) { display: flex; flex-direction: column; }
  :is(#watch.expanded .sheet, #watch .sheet:fullscreen):has(#media.book-channel) .play-tools { grid-template-columns: 1fr; }
}
@media (max-width: 22rem) {
  #watch .play-tools { gap: .25rem; }
  #watch .play-tools button { padding-inline: .32rem; }
  #watch .play-tools #player-star { min-width: 44px; }
}
