:root {
  --of-bg: #080808;
  --of-panel: #111;
  --of-panel-2: #181818;
  --of-line: rgba(255, 255, 255, .12);
  --of-muted: #b7b7b7;
  --of-text: #fff;
  --of-radius: 26px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--of-bg);
  color: var(--of-text);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.of-skip { position: fixed; left: 16px; top: -70px; z-index: 100; padding: 12px 16px; background: #fff; color: #000; }
.of-skip:focus { top: 16px; }

.of-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  padding: 0 clamp(20px, 4vw, 68px);
  background: rgba(8, 8, 8, .92);
  border-bottom: 1px solid var(--of-line);
  backdrop-filter: blur(18px);
}
.of-logo {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: .8px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.of-header nav { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2.8vw, 42px); }
.of-header nav a { color: #c8c8c8; font-size: 14px; font-weight: 750; }
.of-header nav a:hover, .of-header nav a:focus, .of-header nav a[aria-current="page"] { color: #fff; }
.of-header-actions { display: flex; align-items: center; gap: 10px; }
.of-header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.of-watch-page {
  position: relative;
  min-height: calc(100vh - 112px);
  isolation: isolate;
  overflow: hidden;
  padding: 54px clamp(20px, 4vw, 68px) 80px;
}
.of-watch-page::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0 0 auto;
  height: min(72vh, 760px);
  background-image: linear-gradient(180deg, rgba(0,0,0,.2), var(--of-bg) 92%), var(--of-backdrop);
  background-position: center top;
  background-size: cover;
  filter: grayscale(1) contrast(1.05);
  opacity: .34;
}
.of-watch-page::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at 70% 16%, transparent, rgba(8,8,8,.32) 48%, var(--of-bg) 84%);
}
.of-watch-shell { width: min(1540px, 100%); margin: 0 auto; }
.of-page-heading { margin-bottom: 24px; }
.of-eyebrow { margin: 0 0 10px; color: #d5d5d5; font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.of-page-heading h1 { margin: 0; max-width: 900px; font-size: clamp(38px, 5vw, 72px); line-height: .98; letter-spacing: -.045em; }
.of-page-heading p:last-child { max-width: 760px; margin: 14px 0 0; color: #d0d0d0; line-height: 1.6; }

.of-watch-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 355px); gap: 24px; align-items: start; }
.of-player-shell {
  overflow: hidden;
  border: 1px solid var(--of-line);
  border-radius: var(--of-radius);
  background: #000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
}
.of-player-frame,
.title-player-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.of-player-frame video,
.title-page-player { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.of-player-copy {
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  padding: clamp(20px, 3vw, 34px);
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.82), transparent);
}
.of-player-copy h2 { margin: 0; font-size: clamp(24px, 3vw, 48px); letter-spacing: -.035em; }
.of-player-copy p { margin: 8px 0 0; color: rgba(255,255,255,.82); font-weight: 700; }

.title-custom-controls {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto auto minmax(70px, 110px) auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 54px clamp(16px, 2.7vw, 32px) 22px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.92));
}
.title-control-button,
.title-control-select {
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.11);
  color: #fff;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}
.title-control-button:hover, .title-control-button:focus { background: #fff; color: #000; outline: 0; }
.title-control-range { width: 100%; accent-color: #fff; cursor: pointer; }
.title-control-time { min-width: 90px; color: #eee; font-size: 12px; font-variant-numeric: tabular-nums; text-align: center; }
.title-control-speed-wrap { display: inline-flex; }
.title-player-error {
  position: absolute;
  z-index: 9;
  inset: 50% auto auto 50%;
  width: min(430px, calc(100% - 40px));
  transform: translate(-50%, -50%);
  padding: 24px;
  border: 1px solid var(--of-line);
  border-radius: 18px;
  background: rgba(15,15,15,.96);
  text-align: center;
}
.title-player-error strong, .title-player-error span { display: block; margin-bottom: 10px; }
.title-player-status { position: absolute; z-index: 7; left: 20px; bottom: 90px; padding: 8px 12px; border-radius: 8px; background: rgba(0,0,0,.8); }

.of-side-panel {
  overflow: hidden;
  border: 1px solid var(--of-line);
  border-radius: var(--of-radius);
  background: rgba(16,16,16,.94);
  box-shadow: 0 22px 64px rgba(0,0,0,.36);
}
.of-poster-wrap { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.of-poster-wrap img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.of-poster-wrap::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, #111); }
.of-side-copy { padding: 24px; }
.of-side-copy h2 { margin: 0; font-size: 26px; letter-spacing: -.025em; }
.of-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 12px 0 0; color: #c7c7c7; font-size: 13px; font-weight: 700; }
.of-description { margin: 18px 0 0; color: #c7c7c7; line-height: 1.62; }
.of-free-badge { display: inline-flex; margin-top: 20px; padding: 8px 12px; border: 1px solid #fff; border-radius: 999px; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.of-side-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.of-action { min-height: 46px; border: 1px solid var(--of-line); border-radius: 12px; background: #fff; color: #000; font-weight: 900; cursor: pointer; }
.of-action-secondary { background: transparent; color: #fff; }

.of-detail-section { margin-top: 40px; }
.of-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 16px; }
.of-section-heading h2 { margin: 0; font-size: clamp(25px, 3vw, 38px); }
.of-section-heading span { color: var(--of-muted); font-size: 13px; }
.of-info-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--of-line); border-radius: 20px; background: var(--of-panel); }
.of-info-grid div { padding: 20px; border-right: 1px solid var(--of-line); }
.of-info-grid div:last-child { border-right: 0; }
.of-info-grid dt { color: var(--of-muted); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.of-info-grid dd { margin: 7px 0 0; font-weight: 800; }
.of-access-note { color: var(--of-muted); font-size: 13px; line-height: 1.5; }

.of-episode-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.of-season-select { min-height: 44px; padding: 0 38px 0 16px; border: 1px solid var(--of-line); border-radius: 10px; background: #171717; color: #fff; font-weight: 800; }
.of-episode-list { display: grid; gap: 12px; }
.of-episode-card {
  display: grid;
  grid-template-columns: 52px 180px 1fr auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--of-line);
  border-radius: 16px;
  background: var(--of-panel);
  color: #fff;
  text-align: left;
  cursor: pointer;
}
.of-episode-card.is-active { border-color: #fff; background: #1d1d1d; }
.of-episode-number { color: var(--of-muted); font-size: 20px; font-weight: 900; text-align: center; }
.of-episode-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; filter: grayscale(1); }
.of-episode-card h3 { margin: 0 0 6px; font-size: 17px; }
.of-episode-card p { margin: 0; color: var(--of-muted); font-size: 13px; line-height: 1.45; }
.of-episode-duration { color: #ddd; font-size: 12px; font-weight: 800; }

.of-live-page { padding-top: 38px; }
.of-live-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, 390px); gap: 22px; align-items: start; }
.of-live-stage { overflow: hidden; border: 1px solid var(--of-line); border-radius: var(--of-radius); background: #000; }
.of-live-stage video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.of-live-now { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 20px 24px; background: var(--of-panel); }
.of-live-now h2 { margin: 4px 0 0; font-size: clamp(23px, 2.8vw, 36px); }
.of-live-now p { margin: 6px 0 0; color: var(--of-muted); }
.of-live-label { color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.of-live-label::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #fff; }
.of-live-free { padding: 10px 14px; border: 1px solid #fff; border-radius: 999px; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.of-guide-panel { max-height: min(74vh, 720px); overflow: hidden; border: 1px solid var(--of-line); border-radius: var(--of-radius); background: var(--of-panel); }
.of-guide-title { position: sticky; top: 0; z-index: 2; padding: 22px 22px 16px; background: #111; border-bottom: 1px solid var(--of-line); }
.of-guide-title h2 { margin: 0; font-size: 25px; }
.of-guide-title p { margin: 7px 0 0; color: var(--of-muted); font-size: 13px; }
.of-live-channels { max-height: calc(min(74vh, 720px) - 85px); overflow-y: auto; }
.live-channel { display: grid; grid-template-columns: 58px 1fr; gap: 14px; width: 100%; padding: 16px 20px; border: 0; border-bottom: 1px solid var(--of-line); background: transparent; color: #fff; text-align: left; cursor: pointer; }
.live-channel:hover, .live-channel:focus, .live-channel.is-active { background: #fff; color: #000; outline: 0; }
.live-channel-number { align-self: center; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.live-channel strong, .live-channel span span { display: block; }
.live-channel strong { font-size: 14px; }
.live-channel span span { margin-top: 5px; overflow: hidden; color: #aaa; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.live-channel.is-active span span, .live-channel:hover span span { color: #444; }
.of-schedule { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--of-line); border-radius: 18px; background: var(--of-line); }
.guide-row { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 18px 20px; background: var(--of-panel); }
.guide-row time { color: var(--of-muted); font-variant-numeric: tabular-nums; }
.guide-row strong { font-size: 14px; }

/* Source-inspired electronic program guide used only by the Live TV test. */
.of-guide-page { --of-guide-sticky-top: 78px; min-height: calc(100vh - 112px); padding: 8px 0 64px; background: #000; }
.of-guide-shell { width: min(1600px, calc(100vw - 64px)); margin: 0 auto; }
.of-guide-hero { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 34px; align-items: stretch; padding: 24px 0 28px; }
.of-guide-hero-copy { min-height: 292px; display: flex; flex-direction: column; justify-content: center; }
.of-guide-live-pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.of-guide-live-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px rgba(255,255,255,.46); }
.of-guide-hero-copy h1 { max-width: 680px; margin: 0; font-size: clamp(40px, 4vw, 54px); line-height: 1.02; letter-spacing: -.045em; }
/* Custom title logo in place of the typed title (live-tv-guide.js setTitle). */
.of-guide-title-logo { display: block; width: auto; height: auto; max-width: min(460px, 100%); max-height: 132px; object-fit: contain; object-position: left center; filter: drop-shadow(0 3px 14px rgba(0,0,0,.4)); }
.of-guide-details-copy h2 .of-guide-title-logo { max-height: 84px; margin-bottom: 4px; }
.of-footer-credit { margin-top: 8px; color: #777; font-size: 12px; }
.of-guide-preview-meta, .of-guide-preview-time, .of-guide-preview-desc { max-width: 720px; }
.of-guide-preview-meta { margin: 15px 0 0; color: #eee; font-size: 16px; font-weight: 800; }
.of-guide-preview-time { margin: 8px 0 0; color: #ddd; font-size: 14px; }
.of-guide-preview-desc { min-height: 70px; margin: 13px 0 0; color: #c8c8c8; font-size: 15px; line-height: 1.58; }
.of-guide-preview-actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.of-guide-preview-actions .of-action { width: auto; min-width: 150px; padding-inline: 22px; }
.of-guide-preview-actions .of-free-badge { margin: 0; }
.of-guide-hero-media { position: relative; z-index: 20; }
.of-guide-hero-media-card { position: relative; min-height: 292px; overflow: hidden; border: 1px solid rgba(255,255,255,.06); border-radius: 20px; background: linear-gradient(180deg,rgba(30,31,35,.96),rgba(17,18,20,.98)); box-shadow: 0 24px 52px rgba(0,0,0,.34); }
.of-guide-hero-media-card video { display: block; width: 100%; min-height: 292px; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.of-guide-player-actions { position: absolute; z-index: 5; top: 12px; right: 12px; display: flex; gap: 8px; opacity: 0; transition: opacity .18s; }
.of-guide-hero-media-card:hover .of-guide-player-actions, .of-guide-hero-media-card:focus-within .of-guide-player-actions, .of-guide-hero-media.is-docked .of-guide-player-actions { opacity: 1; }
.of-guide-player-actions button { min-width: 42px; height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(0,0,0,.72); color: #fff; font-size: 11px; font-weight: 900; cursor: pointer; }
.of-guide-player-actions button:hover, .of-guide-player-actions button:focus { background: #fff; color: #000; outline: 0; }
.of-guide-player-overlay { position: absolute; z-index: 3; inset: auto 0 0; display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 58px 16px 16px; background: linear-gradient(transparent, rgba(0,0,0,.92)); pointer-events: none; }
.of-guide-player-overlay > strong { max-width: 42%; font-size: 14px; letter-spacing: .04em; }
.of-guide-player-overlay > span { display: flex; min-width: 0; flex-direction: column; align-items: end; text-align: right; }
.of-guide-player-overlay b, .of-guide-player-overlay small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.of-guide-player-overlay b { font-size: 13px; }
.of-guide-player-overlay small { margin-top: 3px; color: #bbb; font-size: 11px; }
.of-guide-hero-media.is-docked .of-guide-hero-media-card { position: fixed; z-index: 100; right: 28px; bottom: 28px; width: 360px; min-height: 203px; border-radius: 17px; box-shadow: 0 22px 72px rgba(0,0,0,.72); }
.of-guide-hero-media.is-docked video { min-height: 203px; }

.of-guide-section { margin-top: 18px; }
.of-guide-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin: 0 0 18px; }
.of-guide-section-heading h2 { margin: 0; font-size: clamp(28px, 3vw, 42px); letter-spacing: -.035em; }
.of-guide-section-heading > p { max-width: 470px; margin: 0; color: var(--of-muted); font-size: 13px; line-height: 1.5; text-align: right; }
/* No frame around the guide, as on Classix: the grid sits on the page and runs its
   full height (no inner scroll box); the time row sticks under the header instead. */
.of-guide-frame { position: relative; }
.of-guide-grid-shell { display: grid; grid-template-columns: 138px minmax(0, 1fr); grid-template-rows: 56px auto; gap: 10px; align-items: start; }
.of-guide-corner { position: sticky; z-index: 15; top: var(--of-guide-sticky-top); grid-column: 1; grid-row: 1; height: 56px; box-shadow: 0 -10px 0 #000, 0 10px 0 #000; border: 0; border-radius: 9px; background: #242424; color: #fff; font-size: 13px; font-weight: 950; letter-spacing: .12em; cursor: pointer; }
/* The NOW button is a target icon, as in the Classix guide; it turns gold on hover. */
.of-guide-corner-now { display: grid; place-items: center; padding: 0; background: rgba(34,35,39,.92); transition: color .18s, background .18s; }
.of-guide-corner-now svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.of-guide-corner-now .of-now-dot { fill: currentColor; stroke: none; }
.of-guide-corner-now:hover, .of-guide-corner-now:focus-visible { background: rgba(50,51,57,.98); color: #d6b75f; outline: 0; }
.of-guide-corner-now:focus-visible { box-shadow: 0 -10px 0 #000, 0 10px 0 #000, inset 0 0 0 2px #d6b75f; }
.of-guide-corner-now:active svg { transform: scale(.92); }
/* Header: the shared search box and Sign In (site.css + account-ui.js) in place of "Back to home". */
.of-header-actions .test-header-search { width: clamp(170px, 16vw, 240px); }
.of-header-search-icon { display: none; width: 38px; height: 38px; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(0,0,0,.4); color: #fff; cursor: pointer; }
.of-header-search-icon svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.of-header-search-icon:hover, .of-header-search-icon:focus-visible { border-color: #fff; outline: 0; }
@media (max-width: 650px) { .of-header-search-icon { display: grid; } }
.of-guide-time-header-wrap { position: sticky; z-index: 15; top: var(--of-guide-sticky-top); grid-column: 2; grid-row: 1; height: 56px; overflow: hidden; background: #000; box-shadow: 0 -10px 0 #000, 0 10px 0 #000; }
.of-guide-time-header { position: relative; height: 56px; will-change: transform; }
.of-guide-time-slot { position: absolute; top: 0; height: 56px; display: flex; align-items: end; padding: 0 16px 12px; overflow: hidden; border-radius: 8px; background: rgba(34,35,39,.92); color: #eee; font-size: 15px; font-weight: 750; letter-spacing: -.01em; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(255,255,255,.045); transition: background .18s,color .18s,box-shadow .18s; }
.of-guide-time-slot.is-anchor { background: rgba(50,51,57,.98); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.of-guide-channel-rail { grid-column: 1; grid-row: 2; }
.of-guide-channel-row { width: 100%; height: 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; margin-bottom: 8px; padding: 0 12px; overflow: hidden; border: 0; border-radius: 8px; background: rgba(36,37,41,.94); color: #f4f4f4; text-align: center; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.045); transition: background .18s,color .18s,box-shadow .18s; }
.of-guide-channel-row small { color: #999; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.of-guide-channel-row strong { display: -webkit-box; width: 100%; overflow: hidden; font-size: 16px; line-height: 1.04; text-overflow: ellipsis; word-break: break-word; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
/* Channel logos (channel-fonts.css): the themed names draw larger than plain text. */
.of-guide-channel-row strong { display: block; word-break: normal; overflow-wrap: normal; }
.of-guide-channel-row strong .of-channel-logo { display: block; overflow: hidden; font-size: 19px; line-height: 1.12; }
.of-guide-player-overlay > strong .of-channel-logo { font-size: 24px; line-height: 1.1; text-shadow: 0 2px 8px rgba(0,0,0,.7); }
.of-guide-channel-row:hover,.of-guide-channel-row:focus, .of-guide-channel-row.is-active { background: rgba(58,59,64,.98); color: #fff; outline: 0; box-shadow: inset 0 0 0 2px #fff; }
.of-guide-channel-row:hover small, .of-guide-channel-row.is-active small { color: #ddd; }
.of-guide-grid-wrap { grid-column: 2; grid-row: 2; width: 100%; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-color: #777 #171717; }
.of-guide-grid-wrap::-webkit-scrollbar { width: 11px; height: 11px; }
.of-guide-grid-wrap::-webkit-scrollbar-track { background: transparent; }
.of-guide-grid-wrap::-webkit-scrollbar-thumb { border: 3px solid #0d0d0d; border-radius: 999px; background: rgba(255,255,255,.28); }
.of-guide-grid { position: relative; min-width: 100%; }
.of-guide-grid-rows { position: absolute; inset: 0; }
.of-guide-grid-row { position: absolute; left: 0; width: 100%; }
.of-guide-program-cell { position: absolute; top: 0; height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 12px; overflow: hidden; border: 0; border-radius: 8px; background: rgba(43,43,43,.96); color: #fff; text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.045); transition: background .18s,transform .18s,box-shadow .18s; }
.of-guide-program-cell > span { min-width: 0; }
.of-guide-program-cell strong, .of-guide-program-cell small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.of-guide-program-cell strong { font-size: 16px; line-height: 1.24; }
.of-guide-program-cell small { display: none; margin-top: 6px; color: rgba(255,255,255,.76); font-size: 11px; line-height: 1.3; }
.of-guide-program-cell i { position: absolute; right: 10px; bottom: 8px; display: none; color: rgba(255,255,255,.72); font-size: 12px; font-style: italic; font-weight: 800; }
.of-guide-program-cell:hover, .of-guide-program-cell:focus, .of-guide-program-cell.is-focused { z-index: 4; align-items: flex-start; background: rgba(82,82,82,.98); color: #fff; outline: 0; box-shadow: inset 0 0 0 2px #fff; transform: translateY(-1px); }
.of-guide-program-cell:hover small, .of-guide-program-cell:focus small, .of-guide-program-cell.is-focused small, .of-guide-program-cell.is-live small { display: block; }
.of-guide-program-cell:hover i, .of-guide-program-cell:focus i, .of-guide-program-cell.is-focused i { display: block; }
.of-guide-program-cell.is-live { background: rgba(68,68,70,.98); }
.of-guide-program-cell.is-live small { color: #fff; font-weight: 900; }
.of-guide-now-line { position: absolute; z-index: 10; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: linear-gradient(180deg,rgba(255,255,255,.98),rgba(247,247,247,.92) 42%,rgba(232,232,232,.72)); box-shadow: 0 0 0 1px rgba(255,255,255,.06); opacity: .98; pointer-events: none; }
.of-guide-now-line::before { content: ""; position: absolute; top: 0; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); }
.of-guide-section > .of-access-note { margin: 14px 4px 0; }

.of-guide-details-sheet { position: fixed; inset: auto 34px 34px auto; width: min(408px, calc(100vw - 44px)); max-width: none; max-height: calc(100vh - 68px); margin: 0; padding: 0; overflow: auto; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; background: #191a1f; color: #fff; box-shadow: 0 26px 60px rgba(0,0,0,.58); }
.of-guide-details-sheet::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(9px); }
.of-guide-details-sheet[open] { display: block; animation: of-guide-sheet-in .18s ease both; }
.of-guide-details-sheet > img { display: block; width: 100%; min-height: 226px; aspect-ratio: 16 / 9; object-fit: contain; background: #101114; filter: grayscale(1); }
.of-guide-details-copy { padding: 22px 22px 20px; }
.of-guide-details-copy h2 { margin: 12px 0 0; font-size: 24px; line-height: 1.08; letter-spacing: -.03em; }
.of-guide-details-actions { display: flex; gap: 10px; margin-top: 20px; }
.of-guide-details-actions .of-action { width: auto; padding-inline: 20px; }
.of-guide-details-close { position: absolute; z-index: 2; top: 10px; right: 10px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(0,0,0,.58); color: #fff; font-size: 18px; cursor: pointer; }
@keyframes of-guide-sheet-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.of-footer { display: flex; justify-content: space-between; gap: 30px; padding: 34px clamp(20px, 4vw, 68px); border-top: 1px solid var(--of-line); color: var(--of-muted); }
.of-footer .of-logo { color: #fff; font-size: 24px; }
.of-footer p { margin: 10px 0 0; font-size: 13px; }

/* Keep the supplied Classix-style stage and details column fitted as one unit. */
@media (min-width: 1051px) {
  .of-watch-shell { width: min(1500px, 100%); }
  .of-watch-grid { grid-template-columns: minmax(0, 1fr) clamp(310px, 23vw, 370px); align-items: stretch; }
  .of-player-shell,
  .of-side-panel { height: clamp(440px, 39vw, 640px); }
  .of-player-frame,
  .title-player-frame { height: 100%; aspect-ratio: auto; }
  .of-side-panel { display: flex; flex-direction: column; }
  .of-poster-wrap { flex: 0 0 38%; aspect-ratio: auto; }
  .of-side-copy { min-height: 0; display: flex; flex: 1; flex-direction: column; overflow-y: auto; padding: 22px; scrollbar-color: rgba(255,255,255,.28) transparent; }
  .of-side-copy h2 { font-size: 24px; }
  .of-description { display: -webkit-box; overflow: hidden; font-size: 14px; -webkit-box-orient: vertical; -webkit-line-clamp: 6; }
  .of-side-actions { margin-top: auto; padding-top: 18px; }
  .of-free-badge { align-self: flex-start; }
}

@media (max-width: 1050px) {
  .of-header { grid-template-columns: auto 1fr; }
  .of-header nav { order: 3; grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; padding-bottom: 15px; }
  .of-header-actions { justify-self: end; }
  .of-watch-grid, .of-live-grid { grid-template-columns: 1fr; }
  .of-side-panel { display: grid; grid-template-columns: 280px 1fr; }
  .of-poster-wrap { height: 100%; aspect-ratio: auto; }
  .of-guide-panel { max-height: 520px; }
  .of-live-channels { max-height: 435px; }
  .of-guide-shell { width: min(100% - 36px, 980px); }
  .of-guide-hero { grid-template-columns: 1fr; gap: 18px; }
  .of-guide-hero-copy { min-height: 0; }
  .of-guide-hero-media { max-width: 760px; }
}

@media (max-width: 720px) {
  .of-header { min-height: 68px; gap: 18px; padding: 0 16px; }
  .of-logo { font-size: 30px; letter-spacing: .5px; }
  .of-header-button { min-height: 36px; padding: 0 12px; }
  .of-header nav { gap: 20px; }
  .of-watch-page { padding: 34px 14px 58px; }
  .of-page-heading h1 { font-size: 40px; }
  .of-player-shell, .of-live-stage, .of-side-panel, .of-guide-panel { border-radius: 18px; }
  .of-player-copy { padding: 17px; }
  .of-player-copy h2 { font-size: 22px; }
  .title-custom-controls { grid-template-columns: auto minmax(80px, 1fr) auto auto auto; gap: 8px; padding: 45px 12px 12px; }
  .title-control-volume, .title-control-mute, .title-control-speed-wrap { display: none; }
  .title-control-button { min-height: 38px; padding: 0 11px; }
  .title-control-time { min-width: 76px; font-size: 10px; }
  .of-side-panel { display: block; }
  .of-poster-wrap { aspect-ratio: 16 / 8; }
  .of-info-grid { grid-template-columns: 1fr 1fr; }
  .of-info-grid div:nth-child(2) { border-right: 0; }
  .of-info-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--of-line); }
  .of-episode-card { grid-template-columns: 38px 100px 1fr; gap: 10px; }
  .of-episode-duration { display: none; }
  .of-episode-card p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .of-live-now { grid-template-columns: 1fr; }
  .of-live-free { justify-self: start; }
  .of-footer { display: block; }
  .of-guide-page { padding-bottom: 48px; }
  .of-guide-shell { width: calc(100% - 20px); }
  .of-guide-hero { padding-top: 18px; }
  .of-guide-hero-copy h1 { font-size: 40px; }
  .of-guide-preview-desc { min-height: 0; }
  .of-guide-hero-media-card, .of-guide-hero-media-card video { min-height: 0; }
  .of-guide-hero-media.is-docked .of-guide-hero-media-card { right: 10px; bottom: calc(74px + env(safe-area-inset-bottom)); width: min(320px, calc(100vw - 20px)); min-height: 180px; }
  .of-guide-hero-media.is-docked video { min-height: 180px; }
  .of-guide-section-heading { display: block; }
  .of-guide-section-heading > p { margin-top: 8px; text-align: left; }
  .of-guide-grid-shell { grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: 50px auto; gap: 7px; }
  .of-guide-corner, .of-guide-time-header, .of-guide-time-slot { height: 50px; }
  .of-guide-time-slot { padding: 0 9px 9px; font-size: 11px; }
  .of-guide-channel-row { padding-inline: 8px; }
  .of-guide-channel-row strong { font-size: 11px; }
  .of-guide-channel-row strong .of-channel-logo { font-size: 14px; }
  .of-guide-page { --of-guide-sticky-top: 68px; }
  .of-guide-program-cell { padding-inline: 9px; }
  .of-guide-program-cell strong { font-size: 11px; }
  .of-guide-program-cell i { display: none; }
  .of-guide-details-sheet[open] { display: block; }
  .of-guide-details-sheet { inset: auto 10px 10px auto; width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  .of-guide-details-sheet > img { width: 100%; min-height: 0; height: 210px; }
  .of-guide-details-copy { padding: 28px 22px; }
  .of-guide-details-actions { flex-wrap: wrap; }
}
