/* A private broadcast guide: station identities, current film and a timed lineup. */
.cosmos-channels [data-cosmos-channels] { max-width: 1440px; margin-inline: auto; color: var(--cosmos-paper); }
.cosmos-channels :is(h2,h3,p) { margin: 0; }
.cosmos-channels button { cursor: pointer; }
.cosmos-channels :is(button,a,input,select):focus-visible { outline: 2px solid var(--cosmos-sky); outline-offset: 4px; }
.cosmos-broadcast-nav { display: flex; gap: clamp(12px,2.8vw,34px); border-bottom: 1px solid var(--cosmos-line); padding-bottom: 6px; overflow-x: auto; }
.cosmos-broadcast-nav a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; font-size: .8125rem; color: var(--cosmos-muted); border-bottom: 2px solid transparent; }
.cosmos-broadcast-nav [aria-current] { border-color: var(--cosmos-sky); color: var(--cosmos-paper); }
.cosmos-channel-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 22px; }
.cosmos-channel-toolbar p { color: var(--cosmos-muted); font-size: .8125rem; }
.cosmos-channel-toolbar > div, .cosmos-channel-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cosmos-channel-toolbar button, .cosmos-channel-actions :is(button,a), .cosmos-channel-creator button, .cosmos-channel-schedule > button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 14px; border: 1px solid var(--cosmos-line); border-radius: 5px; font: 500 .8125rem var(--cosmos-font); color: var(--cosmos-paper); background: #15202a; transition: background var(--cosmos-instant), border-color var(--cosmos-instant); }
.cosmos-channel-toolbar button:hover, .cosmos-channel-actions :is(button,a):hover, .cosmos-channel-creator button:hover { background: #25343f; border-color: #9bbacc70; }
.cosmos-channels button:disabled { opacity: .5; cursor: wait; }
.cosmos-channel-feature { position: relative; isolation: isolate; overflow: hidden; min-height: 380px; display: flex; align-items: end; background: #10191f; border-top: 1px solid #ffffff20; }
.cosmos-channel-feature > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cosmos-channel-feature::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#050a11ee 0%,#070c12d6 42%,#070c1222 100%),linear-gradient(0deg,#080e15ed,transparent 80%); }
.cosmos-channel-feature > div { width: 100%; padding: clamp(24px,3.8vw,48px); }
.cosmos-channel-feature .cosmos-label { font-size: .6875rem; color: var(--cosmos-sky); margin-bottom: 30px; }
.cosmos-channel-station { display: flex; align-items: center; gap: 9px; font-size: .8125rem; color: var(--cosmos-soft); }
.cosmos-channel-feature h2 { max-width: 750px; overflow-wrap: anywhere; font-size: clamp(2.5rem,4.3vw,4.6rem); font-weight: 450; line-height: 1.08; letter-spacing: -.045em; margin-block: 12px 22px; }
.cosmos-channel-feature h2 + p { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; font-size: .8125rem; color: var(--cosmos-soft); }
.cosmos-channels .cosmos-broadcast-badge { margin: 0; display: inline-flex; align-items: center; gap: 7px; font: .6875rem var(--cosmos-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--cosmos-muted); }
.cosmos-broadcast-badge[data-phase="on-air"] { color: #acdfea; }
.cosmos-broadcast-badge[data-phase="on-air"]::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.cosmos-channel-actions { margin-top: 25px; }
.cosmos-channel-actions button:first-child { background: var(--cosmos-paper); color: #0a131d; border-color: transparent; }
.cosmos-channel-actions button:first-child:hover { background: white; }
.cosmos-channel-actions a { background: transparent; border-color: transparent; }
.cosmos-channel-feature small { display: block; margin-top: 15px; color: var(--cosmos-muted); font-size: .6875rem; line-height: 1.5; }
.cosmos-channels progress { display: block; width: 100%; height: 2px; appearance: none; border: 0; background: #b9d5e22b; color: var(--cosmos-sky); }
.cosmos-channels progress::-webkit-progress-bar { background: #b9d5e22b; }
.cosmos-channels progress::-webkit-progress-value { background: var(--cosmos-sky); }
.cosmos-channels progress::-moz-progress-bar { background: var(--cosmos-sky); }
.cosmos-channel-feature progress { max-width: 470px; margin-top: 25px; }
.cosmos-channel-guide, .cosmos-channel-schedule { margin-top: 44px; }
.cosmos-channel-guide > header, .cosmos-channel-schedule > header { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding-bottom: 24px; border-bottom: 1px solid var(--cosmos-line); }
.cosmos-channels :is(.cosmos-channel-guide,.cosmos-channel-schedule) h2 { font-size: clamp(1.6rem,2.3vw,2.3rem); font-weight: 450; letter-spacing: -.035em; margin-top: 9px; }
.cosmos-channel-guide > header > p, .cosmos-channel-schedule > header > time { font: .75rem var(--cosmos-mono); color: var(--cosmos-muted); white-space: nowrap; }
.cosmos-channel-guide > header > p > span { margin-inline: 7px; }
.cosmos-channel-row { display: grid; grid-template-columns: minmax(190px,1fr) minmax(0,2.7fr); border-bottom: 1px solid var(--cosmos-line); }
.cosmos-channel-row__station { display: flex; gap: 15px; align-items: center; padding: 24px 20px 24px 0; min-width: 0; }
.cosmos-channel-row__station > span { font: 300 1.7rem var(--cosmos-mono); color: #92adc1; }
.cosmos-channel-row__station > div { min-width: 0; flex: 1; }
.cosmos-channel-row__station h3 { font-size: .875rem; font-weight: 500; overflow-wrap: anywhere; }
.cosmos-channel-row__station small { display: block; margin-top: 8px; font-size: .6875rem; color: var(--cosmos-muted); }
.cosmos-channel-row__station svg { width: 16px; flex-shrink: 0; color: var(--cosmos-muted); }
.cosmos-channel-row__programs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.cosmos-channels .cosmos-channel-program { position: relative; display: flex; flex-direction: column; gap: 9px; width: auto; min-width: 0; padding: 24px; border: 0; border-left: 1px solid var(--cosmos-line); border-radius: 0; background: transparent; }
.cosmos-channels .cosmos-channel-program.is-now { background: #9cc3d807; }
.cosmos-channels .cosmos-channel-program:hover, .cosmos-channel-row__station:hover { background: #b3ddff0c; }
.cosmos-channel-program strong { font-size: .875rem; line-height: 1.4; font-weight: 500; overflow-wrap: anywhere; }
.cosmos-channel-program time { font: .6875rem var(--cosmos-mono); color: var(--cosmos-muted); }
.cosmos-channel-program progress { position: absolute; bottom: 0; left: 0; }
.cosmos-channel-row__programs > p { font-size: .8125rem; padding: 28px 22px; color: var(--cosmos-muted); }
.cosmos-channel-schedule ol { list-style: none; padding: 0; margin: 0; }
.cosmos-channel-schedule li { display: flex; align-items: center; gap: 22px; border-bottom: 1px solid var(--cosmos-line); padding-block: 18px; }
.cosmos-channel-schedule li > time { min-width: 70px; font: .75rem var(--cosmos-mono); color: var(--cosmos-sky); }
.cosmos-channel-schedule li > img { width: 45px; height: 65px; object-fit: cover; }
.cosmos-channel-schedule li > div { min-width: 0; flex: 1; }
.cosmos-channel-schedule h3 { font-size: 1rem; font-weight: 450; overflow-wrap: anywhere; }
.cosmos-channel-schedule li p { font-size: .75rem; color: var(--cosmos-muted); margin-top: 8px; }
.cosmos-channel-schedule li a { display: inline-flex; align-items: center; gap: 12px; font-size: .75rem; min-height: 44px; }
.cosmos-channel-schedule > button { margin-top: 20px; }
.cosmos-channel-empty, .cosmos-channel-loading { padding: 45px 0; }
.cosmos-channel-empty h2 { font-size: 2.2rem; font-weight: 450; margin-block: 12px; }
.cosmos-channel-empty p { color: var(--cosmos-muted); line-height: 1.6; }
.cosmos-channel-empty a { display: inline-block; min-height: 44px; margin-top: 14px; color: var(--cosmos-sky); }
.cosmos-channels [data-channel-feedback]:not([hidden]), .cosmos-channels [data-channel-create-error]:not([hidden]) { padding: 15px; margin-bottom: 16px; border-left: 2px solid var(--cosmos-warm); background: #33281c66; color: var(--cosmos-paper); font-size: .8125rem; line-height: 1.6; }
.cosmos-channel-creator { color-scheme: dark; box-sizing: border-box; width: min(620px,calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 28px; margin: auto; overflow: auto; overscroll-behavior: contain; background: #0c131d; color: var(--cosmos-paper); border: 1px solid #92b4ce55; border-radius: 8px; box-shadow: 0 30px 100px #000b; }
.cosmos-channel-creator::backdrop { background: #03070cb8; }
.cosmos-channel-creator > header { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.cosmos-channel-creator h2 { font-size: 1.9rem; letter-spacing: -.035em; font-weight: 450; margin-top: 10px; }
.cosmos-channel-creator > header button { width: 44px; padding: 10px; flex-shrink: 0; background: transparent; }
.cosmos-channel-creator > header button span { display: none; }
.cosmos-channel-creator > header button::after { content: none; }
.cosmos-channel-creator form > label { display: grid; gap: 10px; margin-bottom: 22px; font-size: .8125rem; }
.cosmos-channel-creator input:not([type=checkbox]), .cosmos-channel-creator select { width: 100%; min-height: 44px; padding: 12px; border: 1px solid #8da2b743; border-radius: 4px; background: #111c28; color: var(--cosmos-paper); font: .875rem var(--cosmos-font); }
.cosmos-channel-creator [hidden] { display: none !important; }
.cosmos-channel-creator section > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block: 24px 18px; }
.cosmos-channel-creator h3 { font-size: 1rem; font-weight: 500; }
.cosmos-channel-creator [data-channel-selected-count] { color: var(--cosmos-sky); font: .6875rem var(--cosmos-mono); }
.cosmos-channel-filter { display: grid; gap: 9px; font-size: .75rem; color: var(--cosmos-muted); }
.cosmos-channel-asset-list { max-height: 250px; overflow: auto; margin-top: 18px; overscroll-behavior: contain; }
.cosmos-channel-asset { display: flex; gap: 14px; align-items: center; min-height: 60px; border-bottom: 1px solid var(--cosmos-line); padding: 10px 4px; cursor: pointer; }
.cosmos-channel-asset input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--cosmos-sky); }
.cosmos-channel-asset strong { display: block; font-size: .875rem; font-weight: 450; }
.cosmos-channel-asset small { display: block; margin-top: 5px; font-size: .6875rem; color: var(--cosmos-muted); }
.cosmos-channel-help { font-size: .75rem; line-height: 1.6; color: var(--cosmos-muted); margin-block: 12px 22px !important; }
.cosmos-channel-creator footer { margin-top: 24px; display: flex; justify-content: end; }
.cosmos-channel-creator [type=submit] { background: var(--cosmos-paper); color: #0a131d; }
@media (max-width: 1000px) {
  .cosmos-channel-row { grid-template-columns: 1fr; }
  .cosmos-channel-row__station { padding-block: 18px; }
  .cosmos-channels .cosmos-channel-program:first-child { border-left: 0; }
  .cosmos-channel-row__programs { padding-bottom: 10px; }
  .cosmos-channel-schedule li { gap: 15px; }
}
@media (max-width: 600px) {
  .cosmos-channel-toolbar { flex-direction: column; align-items: stretch; padding-block: 18px; }
  .cosmos-channel-toolbar > div { justify-content: space-between; gap: 8px; }
  .cosmos-channel-toolbar button { padding-inline: 10px; font-size: .75rem; }
  .cosmos-channel-feature { min-height: 360px; }
  .cosmos-channel-feature > div { padding: 24px 18px; }
  .cosmos-channel-feature h2 { font-size: 2.6rem; }
  .cosmos-channel-feature .cosmos-label { font-size: .6875rem; line-height: 1.6; margin-bottom: 28px; }
  .cosmos-channel-actions { gap: 8px; }
  .cosmos-channel-actions :is(button,a) { font-size: .75rem; padding-inline: 12px; }
  .cosmos-channel-guide > header { align-items: start; flex-direction: column; gap: 12px; }
  .cosmos-channels .cosmos-channel-program { padding: 18px 12px; }
  .cosmos-channel-program time { font-size: .6875rem; }
  .cosmos-channel-schedule li { flex-wrap: wrap; gap: 12px; }
  .cosmos-channel-schedule li > time { min-width: 60px; }
  .cosmos-channel-schedule li > img { width: 34px; height: 49px; }
  .cosmos-channel-schedule li > div { flex-basis: 130px; }
  .cosmos-channel-schedule li > a { margin-left: auto; }
  .cosmos-channel-creator { padding: 22px 18px; }
  .cosmos-channel-creator h2 { font-size: 1.65rem; }
}
@media (prefers-reduced-motion: reduce) { .cosmos-channels :is(button,a) { transition: none; } }
