/* Watch and guide surfaces use the approved GGTV product shell. */
.ggtv-watch { --tv-panel: #081723eb; --tv-border: #294d62; --tv-soft: #bbd0df; --tv-focus: #f9de94; }
.ggtv-watch [hidden] { display: none !important; }
.ggtv-watch .tv-main { box-sizing: border-box; width: min(1450px, calc(100% - 2 * var(--product-gutter))); max-width: none; margin: 0 auto; padding: clamp(22px, 3.2vw, 48px) 0 42px; display: block; }
.tv-main :focus-visible { outline: 2px solid var(--tv-focus); outline-offset: 3px; }
.tv-main :is(button, input, a, summary) { scroll-margin-block: 12px calc(var(--gg-bottom-bar-height, 80px) + 16px); }
.tv-main :is(h1,h2,p,ul) { margin-block-start: 0; }
.tv-main h1,.tv-main h2 { color: var(--ggtv-copy); letter-spacing: -.035em; line-height: 1.1; }
.tv-main h1 { font-size: clamp(2.5rem, 4.5vw, 4.35rem); margin-bottom: 8px; }
.tv-heading,.tv-guide-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 26px; margin-bottom: 20px; }
.tv-heading p,.tv-guide-top p { color: var(--tv-soft); margin: 0; }
.tv-guide-top h2 { margin: 0 0 6px; font-size: clamp(1.65rem, 2.8vw, 2.55rem); }
.tv-btn,.tv-main .tv-btn { min-height: 42px; padding: 8px 14px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #39647d; border-radius: 9px; margin: 0; background: #102a3d; box-shadow: none; color: #f3faff; font: inherit; font-size: .91rem; font-weight: 720; cursor: pointer; text-decoration: none; white-space: nowrap; }
.tv-main .tv-btn:hover:not(:disabled),.tv-main .tv-btn[aria-pressed="true"] { color: #dbfcff; background: #12394e; border-color: #7ee6f0; }
.tv-main .tv-btn:disabled { opacity: .55; cursor: default; }
.tv-main .tv-primary { color: #001920; background: #7aeeef; border-color: #a2f7f6; font-weight: 820; }
.tv-main .tv-primary:hover:not(:disabled) { color: #001920; background: #b0ffff; }
.tv-guide-link { align-self: flex-end; }
.tv-notice { padding: 11px 15px; color: #ffe1a1; border: 1px solid #796443; border-radius: 10px; background: #2b2118; }
.tv-watch-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(272px, 1fr); gap: clamp(14px, 1.8vw, 26px); align-items: start; }
.tv-player,.tv-details,.tv-next,.tv-guide,.tv-sources,.tv-dialog { background: var(--tv-panel); border: 1px solid var(--tv-border); border-radius: 15px; box-shadow: 0 18px 38px #0007; }
.tv-player { overflow: hidden; border-color: #49768e; }
.tv-stage { position: relative; background: #03070d; aspect-ratio: 16 / 9; display: grid; place-items: center; }
.tv-stage:focus-visible { outline-offset: -4px; }
.tv-stage video,.tv-stage .tv-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.tv-stage .tv-poster { object-fit: cover; opacity: .9; }
.tv-stage:fullscreen { width: 100%; height: 100%; }
.tv-overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; text-align: center; background: linear-gradient(0deg, #020917dc, #03091431 70%); }
.tv-overlay > div { display: grid; justify-items: center; gap: 9px; }
.tv-overlay .tv-kicker { color: #fff; background: #001220d9; border-radius: 5px; padding: 3px 9px; }
.tv-overlay .tv-primary { min-height: 50px; font-size: 1rem; padding-inline: 20px; }
.tv-overlay p { margin: 0; font-size: .86rem; color: #f4fbff; background: #001220df; padding: 2px 7px; border-radius: 4px; }
.tv-overlay p:empty { display: none; }
.tv-controls { padding: 9px 12px; display: flex; justify-content: space-between; gap: 7px 16px; flex-wrap: wrap; background: #0a1927; }
.tv-control-group { display: flex; gap: 6px; }
.tv-controls .tv-btn { min-height: 44px; }
.tv-audio-note { padding: 9px 12px; margin: 0; border-top: 1px solid var(--tv-border); color: #ffdda3; }
.tv-information { min-width: 0; display: grid; gap: 10px; }
.tv-details { padding: clamp(16px, 2vw, 30px); }
.tv-detail-top,.tv-time-row { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 12px; }
.tv-time-row { justify-content: space-between; font-size: .81rem; color: var(--tv-soft); font-variant-numeric: tabular-nums; margin-bottom: 9px; }
.tv-on-now,.tv-kicker { font-size: .75rem; font-weight: 850; letter-spacing: .115em; text-transform: uppercase; color: #91f4f7; }
.tv-on-now { background: #0b3d4d; border: 1px solid #248198; border-radius: 5px; padding: 3px 8px; white-space: nowrap; }
.tv-channel-name { color: #cce6f6; font-size: .88rem; font-weight: 720; }
.tv-details h2 { margin: clamp(12px, 1.7vw, 24px) 0 8px; font-size: clamp(1.5rem, 3vw, 2.8rem); overflow-wrap: anywhere; }
.tv-summary { color: #e6f1f9; margin: 10px 0; }
.tv-secondary { color: var(--tv-soft); font-size: .88rem; margin-bottom: 0; }
.tv-details progress { accent-color: #69ebf5; display: block; width: 100%; height: 7px; margin: 15px 0 6px; border: 0; border-radius: 5px; color: #69ebf5; background-color: #243c50; }
.tv-details progress::-webkit-progress-bar { background: #243c50; border-radius: 5px; }
.tv-details progress::-webkit-progress-value { background: #69ebf5; border-radius: 5px; }
.tv-text,.tv-main .tv-text { background: transparent; border: 0; box-shadow: none; font: inherit; font-size: .87rem; font-weight: 680; color: #94f6fa; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 10px 0; }
.tv-next { display: grid; gap: 4px; padding: 14px clamp(16px, 2vw, 30px); background: linear-gradient(115deg, #12283d, #0a1a2c); }
.tv-next .tv-kicker { color: #b1bfff; }
.tv-next strong { font-size: 1.06rem; color: #f5fbff; }
.tv-guide { padding: clamp(14px, 2vw, 28px); margin-top: clamp(20px, 3.2vw, 46px); scroll-margin-top: 16px; }
.tv-guide time { font-variant-numeric: tabular-nums; }
.tv-form,.tv-guide-toolbar,.tv-times,.tv-time-label,.tv-schedule-actions { display: flex; align-items: center; gap: 8px; }
.tv-guide-toolbar,.tv-times { justify-content: space-between; flex-wrap: wrap; }
.tv-guide-toolbar { padding-bottom: 13px; border-bottom: 1px solid var(--tv-border); }
.tv-times { margin: 12px 0 14px; row-gap: 8px; color: var(--tv-soft); font-size: .87rem; }
.tv-time-label { flex-wrap: wrap; }
.tv-main input:is([type="search"],[type="date"],[inputmode="numeric"]) { margin: 0; min-height: 42px; border-radius: 8px; border: 1px solid #487287; color: #f3faff; background: #091b2a; box-sizing: border-box; padding: 7px 9px; font: inherit; font-size: .93rem; width: auto; max-width: 100%; }
.tv-main input::placeholder { color: #bcd1df; opacity: 1; }
.tv-main input[inputmode="numeric"] { width: 105px; }
.tv-main input[type="search"] { width: min(265px, 100%); }
.tv-filters { display: flex; gap: 7px; flex-wrap: wrap; }
.tv-filters .tv-btn { border-radius: 999px; padding-inline: 12px; }
.tv-guide-message { margin: 16px 0; color: var(--tv-soft); }
.tv-table { border-collapse: separate; border-spacing: 6px; table-layout: fixed; width: calc(100% + 12px); margin-inline: -6px; background: transparent; box-shadow: none; }
.tv-table :is(th,td) { border: 0; text-align: left; padding: 0; background: transparent; vertical-align: stretch; }
.tv-table thead th { font-size: .82rem; font-weight: 740; color: #b7ccd9; padding: 0 10px 3px; }
.tv-table .tv-station { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: stretch; min-height: 81px; background: #102638; border: 1px solid #335169; border-radius: 9px; overflow: clip; --station-accent: #9feaf4; }
.tv-table .tv-station[data-accent="amber"] { --station-accent: #ffd28e; }
.tv-table .tv-station[data-accent="pink"] { --station-accent: #ffc5e8; }
.tv-table .tv-station[data-accent="violet"] { --station-accent: #d9ceff; }
.tv-table tr[data-selected] .tv-station { border-color: #7de7ee; }
.tv-table .tv-station .tv-btn { display: flex; justify-content: flex-start; min-width: 0; border: 0; text-align: left; color: #edf8ff; background: transparent; gap: 10px; padding: 9px 8px 9px 11px; border-radius: 0; white-space: normal; }
.tv-table .tv-station .tv-btn:focus-visible { outline-offset: -4px; }
.tv-station-icon { width: 46px; height: 42px; flex: 0 0 auto; object-fit: contain; }
.tv-station-label { display: grid; min-width: 0; line-height: 1.15; color: #f0f8ff; }
.tv-station-number { color: var(--station-accent); font-size: .75rem; letter-spacing: .07em; margin-bottom: 3px; }
.tv-table .tv-station .tv-fav { width: 43px; padding: 0; justify-content: center; color: #ccddeb; font-size: 1.2rem; }
.tv-table .tv-station .tv-fav[aria-pressed="true"] { color: #ffcf88; background: #3a2e22; }
.tv-main .tv-slot { width: 100%; min-height: 81px; height: 100%; box-sizing: border-box; padding: 8px 12px; border-radius: 9px; border: 1px solid #355368; background: #0d2031; display: grid; gap: 3px; align-content: center; text-align: left; color: #edf8ff; font: inherit; line-height: 1.22; cursor: pointer; box-shadow: none; margin: 0; }
.tv-slot strong { overflow-wrap: anywhere; font-size: .91rem; }
.tv-slot time { font-size: .78rem; color: #bfd1e0; }
.tv-main .tv-slot.tv-current { background: #10384a; border-color: #36687c; }
.tv-main tr[data-selected] .tv-slot.tv-current { border-color: #7de7ee; box-shadow: inset 3px 0 #79f3f3; }
.tv-main .tv-slot:hover { border-color: #8ee9f5; background: #174052; }
.tv-guide-note { margin: 9px 0 0; color: var(--tv-soft); font-size: .85rem; }
.tv-sources { margin-top: 16px; padding: 12px 16px; }
.tv-sources summary { cursor: pointer; font-weight: 720; min-height: 30px; }
.tv-sources ul { display: grid; gap: 13px 20px; grid-template-columns: repeat(auto-fit,minmax(min(100%,285px),1fr)); padding: 0; list-style: none; margin: 12px 0 0; }
.tv-sources li,.tv-credit { color: var(--tv-soft); font-size: .88rem; line-height: 1.5; }
.tv-sources li strong { display: block; color: #fff; }
.tv-credit a { margin-inline-end: 11px; display: inline-block; }
.tv-dialog { color: #f2f7ff; padding: 22px; max-width: min(530px, calc(100% - 34px)); border-color: #78c7d8; }
.tv-dialog::backdrop { background: #000b; }
.tv-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 9px; }
.tv-dialog h2 { font-size: 1.7rem; margin-bottom: 5px; }
.tv-dialog p { margin-bottom: 9px; }
.tv-dialog .tv-primary { margin-top: 15px; }
.tv-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 960px) {
  .tv-watch-grid { grid-template-columns: minmax(0,1.65fr) minmax(242px,1fr); }
  .tv-station-icon { width: 34px; height: 34px; }
  .tv-table .tv-station .tv-btn { gap: 6px; padding-inline: 6px; }
}
@media (max-width: 720px) {
  .ggtv-watch .tv-main { width: calc(100% - 26px); padding-top: 20px; }
  .tv-heading p { font-size: .95rem; }
  .tv-heading,.tv-guide-top { align-items: flex-start; flex-wrap: wrap; }
  .tv-guide-link { align-self: flex-start; }
  .tv-watch-grid { grid-template-columns: minmax(0, 1fr); }
  .tv-information { gap: 8px; }
  .tv-controls { padding-inline: 7px; gap: 7px; }
  .tv-control-group { flex-wrap: wrap; }
  .tv-controls .tv-btn { padding-inline: 9px; }
  .tv-form,.tv-search,.tv-main .tv-search input { width: 100%; }
  .tv-schedule-actions { flex-wrap: wrap; }
  .tv-table { display: block; width: 100%; margin: 0; }
  .tv-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .tv-table tbody { display: grid; gap: 10px; }
  .tv-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 4px; padding: 5px; background: #091926; border-radius: 12px; border: 1px solid var(--tv-border); }
  .tv-table tbody th,.tv-table tbody td:last-child { grid-column: 1 / -1; }
  .tv-table .tv-station { min-height: 52px; }
  .tv-table .tv-station .tv-btn { padding-inline: 10px; }
  .tv-main .tv-slot { min-height: 71px; padding-inline: 8px; }
  .tv-slot::before { content: attr(data-label); color: #a9e5ee; font-size: .73rem; font-weight: 700; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.tv-player:fullscreen { display: flex; flex-direction: column; border: 0; border-radius: 0; background: #03070d; }
.tv-player:fullscreen .tv-stage { flex: 1; aspect-ratio: auto; }
.tv-player:fullscreen .tv-controls { flex: 0 0 auto; }
.tv-table :is(th,td) { vertical-align: middle; }

/* Free TV channel rail and seven-day guide. The network chrome remains in the
   approved shared stylesheets. */
.tv-quick-tune { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 12px; padding: 9px 0; margin-top: 17px; border-block: 1px solid #284555; }
.tv-quick-label { color: var(--tv-soft); font-size: .81rem; font-weight: 780; }
.tv-quick-channels,.tv-guide-days { display: flex; align-items: stretch; gap: 6px; }
.tv-quick-channels { overflow-x: auto; padding: 5px 4px 8px; scrollbar-width: thin; }
.tv-quick-channel { flex: 0 0 auto; }
.tv-quick-channel img { width: 34px; height: 25px; object-fit: contain; }
.tv-quick-channel .tv-station-number { color: #abebf1; margin: 0; }
.tv-main .tv-quick-channel[aria-current="true"] { border-color: #7ee6f0; background: #12394e; }
.tv-guide-days { flex-wrap: wrap; margin: 14px 0 0; }
.tv-main .tv-guide-day { display: grid; text-align: left; justify-content: flex-start; gap: 2px; min-width: 93px; line-height: 1.16; padding: 8px 12px; }
.tv-guide-day small { color: #bed3e1; font-size: .77rem; font-weight: 650; }
.tv-feature { color: #d9cfff; font-size: .81rem; font-weight: 710; margin-bottom: 4px; }
.tv-slot .tv-feature { display: block; margin: 0; overflow-wrap: anywhere; }
.tv-main select#guide-hour { color: #f3faff; background: #091b2a; min-height: 42px; padding: 7px 9px; border-radius: 8px; border: 1px solid #487287; font: inherit; font-size: .9rem; max-width: 100%; }
.tv-table .tv-station .tv-full-day { grid-column: 1; min-height: 35px; padding: 5px 10px 7px 12px; border-top: 1px solid #29465c; color: #b9e6f1; font-size: .78rem; }
.tv-table .tv-station .tv-fav { grid-column: 2; grid-row: 1 / span 2; }
.tv-slot-empty { box-sizing: border-box; min-height: 81px; height: 100%; display: grid; align-content: center; padding: 9px 11px; border: 1px dashed #3a566b; border-radius: 9px; color: var(--tv-soft); font-size: .87rem; }
.tv-day-panel { margin-top: 17px; padding: clamp(12px,2vw,24px); border: 1px solid #41627a; border-radius: 12px; background: #0a1724; scroll-margin-block: 16px calc(var(--gg-bottom-bar-height,80px) + 16px); }
.tv-day-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; }
.tv-day-head h3 { margin: 0; }
.tv-day-list { display: grid; gap: 5px; grid-template-columns: repeat(2,minmax(0,1fr)); list-style: none; margin: 12px 0; padding: 0; }
.tv-day-list li { min-width: 0; }
.tv-day-list .tv-slot { min-height: 66px; }
.tv-day-panel #channel-day-status:empty { display: none; }
#guide-retry { margin-bottom: 14px; }
.tv-dialog { max-height: calc(100dvh - 56px); }
.tv-dialog .tv-credit { overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .tv-quick-tune { grid-template-columns: minmax(0,1fr); gap: 4px; padding: 8px 0 3px; }
  .tv-quick-channels { padding-inline: 3px; }
  .tv-guide-days { flex-wrap: nowrap; overflow-x: auto; padding: 5px 4px 8px; scrollbar-width: thin; }
  .tv-guide-day { flex: 0 0 auto; }
  .tv-day-list { grid-template-columns: minmax(0,1fr); }
  .tv-slot-empty { min-height: 71px; }
}

