:root {
  color-scheme: dark;
  --bg: #04070c;
  --panel: rgba(10, 14, 22, 0.78);
  --panel-strong: rgba(10, 14, 22, 0.92);
  --panel-soft: rgba(255, 255, 255, 0.06);
  --text: #f7f9fc;
  --muted: #9ba7bc;
  --accent: #f4a646;
  --accent-strong: #ffca62;
  --accent-soft: rgba(244, 166, 70, 0.18);
  --lime-soft: rgba(116, 250, 129, 0.22);
  --blue-soft: rgba(91, 169, 255, 0.2);
  --border: rgba(255, 255, 255, 0.12);
  --danger: #ff7c7c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #020305;
  color: var(--text);
  font-family: "Segoe UI", system-ui, sans-serif;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(244, 166, 70, 0.15), transparent 22%),
    radial-gradient(circle at left center, rgba(91, 169, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #091019 0%, #05070b 55%, #030406 100%);
}

.app-shell,
.viewer-shell {
  min-height: 100vh;
}

.app-shell:fullscreen,
.app-shell:-webkit-full-screen,
.app-shell:-moz-full-screen,
.app-shell:-ms-fullscreen {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
}

.player-screen {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.app-shell:fullscreen .player-screen,
.app-shell:-webkit-full-screen .player-screen,
.app-shell:-moz-full-screen .player-screen,
.app-shell:-ms-fullscreen .player-screen,
.player-screen:fullscreen,
.player-screen:-webkit-full-screen,
.player-screen:-moz-full-screen,
.player-screen:-ms-fullscreen {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  background: #000;
}

html:fullscreen .player-screen,
html:-webkit-full-screen .player-screen,
html:-moz-full-screen .player-screen,
html:-ms-fullscreen .player-screen,
body.is-app-fullscreen .player-screen {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  background: #000;
}

.app-shell:fullscreen .video-stage,
.app-shell:-webkit-full-screen .video-stage,
.app-shell:-moz-full-screen .video-stage,
.app-shell:-ms-fullscreen .video-stage,
.player-screen:fullscreen .video-stage,
.player-screen:-webkit-full-screen .video-stage,
.player-screen:-moz-full-screen .video-stage,
.player-screen:-ms-fullscreen .video-stage,
html:fullscreen .video-stage,
html:-webkit-full-screen .video-stage,
html:-moz-full-screen .video-stage,
html:-ms-fullscreen .video-stage,
body.is-app-fullscreen .video-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}

.app-shell:fullscreen .video-player,
.app-shell:-webkit-full-screen .video-player,
.app-shell:-moz-full-screen .video-player,
.app-shell:-ms-fullscreen .video-player,
.player-screen:fullscreen .video-player,
.player-screen:-webkit-full-screen .video-player,
.player-screen:-moz-full-screen .video-player,
.player-screen:-ms-fullscreen .video-player,
html:fullscreen .video-player,
html:-webkit-full-screen .video-player,
html:-moz-full-screen .video-player,
html:-ms-fullscreen .video-player,
body.is-app-fullscreen .video-player {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
}

body.is-app-fullscreen .player-screen {
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  background: #000 !important;
}

body.is-app-fullscreen .video-stage {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 0 !important;
}

body.is-app-fullscreen .video-player {
  display: block !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
}

.player-backdrop {
  position: absolute;
  inset: 0;
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(3, 5, 9, 0.55) 0%, rgba(3, 5, 9, 0.08) 24%, rgba(3, 5, 9, 0.78) 100%),
    radial-gradient(circle at bottom center, rgba(244, 166, 70, 0.14), transparent 30%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.72s ease;
  will-change: opacity;
}

body.is-controls-idle .player-backdrop,
body.is-app-fullscreen .player-backdrop {
  opacity: 0;
}

.top-bar,
.channel-hud,
.timeline-shell {
  position: relative;
  z-index: 3;
}

.top-bar {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px 0;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.42s ease;
  will-change: transform, opacity;
}

.brand-kicker,
.brand-meta,
.channel-group,
.chip-label,
.guide-meta,
.timeline-window-label,
.timeline-scale-item,
.modal-kicker {
  margin: 0;
  color: var(--muted);
}

.brand-kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#appTitle {
  margin: 8px 0 6px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.02;
}

.brand-meta {
  font-size: 14px;
}

.top-actions,
.channel-meta-line,
.modal-actions,
.timeline-nav,
.guide-topline,
.guide-day-chip,
.guide-programme-tags,
.modal-tags {
  display: flex;
  align-items: center;
}

.top-actions,
.channel-meta-line,
.modal-actions,
.timeline-nav,
.guide-topline,
.guide-programme-tags,
.modal-tags {
  gap: 12px;
}

.glass-button,
.timeline-control,
.modal-action,
.guide-group-button,
.guide-channel-button,
.timeline-segment,
.guide-day-chip {
  font: inherit;
}

.glass-button,
.timeline-control,
.modal-action {
  border: 1px solid var(--border);
  background: rgba(7, 11, 16, 0.62);
  color: var(--text);
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.glass-button:hover,
.timeline-control:hover,
.modal-action:hover,
.guide-group-button:hover,
.guide-channel-button:hover,
.timeline-segment:hover,
.guide-day-chip:hover {
  transform: translateY(-1px);
}

.glass-button:focus-visible,
.timeline-control:focus-visible,
.modal-action:focus-visible,
.guide-group-button:focus-visible,
.guide-channel-button:focus-visible,
.guide-icon-button:focus-visible,
.guide-day-chip:focus-visible,
.guide-programme-card:focus-visible,
.timeline-segment:focus-visible,
.icon-button:focus-visible,
.volume-icon-button:focus-visible,
.volume-control:focus-within {
  outline: 2px solid rgba(255, 215, 120, 0.94);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(255, 197, 74, 0.16);
}

.glass-button {
  padding: 12px 16px;
  border-radius: 999px;
}

.timeline-control {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 16px;
  padding: 0;
}

.timeline-control.is-live {
  color: #ff6d6d;
}

.video-stage {
  position: absolute;
  inset: 0;
  background: #000;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #000;
}

.loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: rgba(1, 2, 4, 0.72);
  font-size: 20px;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.hidden {
  display: none !important;
}

body.is-controls-idle .top-bar {
  opacity: 0;
  transform: translateY(calc(-100% - 24px));
}

.channel-hud {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 122px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px) 140px;
  gap: 18px;
  align-items: end;
}

.channel-main {
  min-width: 0;
}

.channel-group {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.channel-title {
  margin: 8px 0 14px;
  font-size: clamp(30px, 4.2vw, 66px);
  line-height: 0.98;
  max-width: 11ch;
  text-wrap: balance;
}

.channel-meta-line {
  flex-wrap: wrap;
}

.stream-pill,
.drm-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(6, 10, 15, 0.74);
  backdrop-filter: blur(14px);
  font-size: 13px;
  text-transform: uppercase;
}

.stream-pill {
  color: #fff4dd;
}

.drm-pill {
  color: #ffd4d4;
  border-color: rgba(255, 124, 124, 0.34);
  background: rgba(110, 24, 24, 0.3);
}

.guide-meta {
  font-size: 14px;
}

.programme-now-next {
  display: grid;
  gap: 10px;
}

.programme-chip {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(6, 10, 15, 0.72);
  backdrop-filter: blur(16px);
}

.programme-chip strong {
  display: block;
  margin-top: 6px;
  font-size: 17px;
  line-height: 1.35;
}

.channel-visual {
  display: flex;
  justify-content: flex-end;
}

.channel-logo-card {
  width: 132px;
  height: 132px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 10, 16, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  place-items: center;
}

.channel-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.timeline-shell {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 20px;
  padding: 8px 10px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(7, 10, 16, 0.82), rgba(3, 5, 8, 0.94));
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.timeline-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.timeline-meta {
  min-width: 0;
}

.timeline-focus-title {
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-window-label {
  margin-top: 2px;
  font-size: 11px;
  color: rgba(219, 227, 239, 0.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-scale {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 6px;
  font-size: 10px;
}

.timeline-rail-shell {
  position: relative;
  margin-top: 6px;
  padding-top: 2px;
}

.timeline-now-marker {
  position: absolute;
  top: -1px;
  bottom: -1px;
  width: 2px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  z-index: 2;
  pointer-events: none;
}

.timeline-rail {
  position: relative;
  display: block;
  min-height: 20px;
}

.timeline-segment {
  position: absolute;
  top: 0;
  bottom: 0;
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  color: var(--text);
  overflow: hidden;
  cursor: pointer;
}

.timeline-segment-fill {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.14);
}

.timeline-segment.is-current {
  border-color: rgba(244, 166, 70, 0.42);
}

.timeline-segment.is-next .timeline-segment-fill {
  background: #5ba9ff;
}

.timeline-segment.is-past .timeline-segment-fill {
  background: rgba(116, 250, 129, 0.3);
}

.timeline-segment.is-selected {
  border-color: rgba(255, 255, 255, 0.52);
}

.timeline-live-progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, rgba(244, 166, 70, 0.42), rgba(244, 166, 70, 0.86));
  pointer-events: none;
  z-index: 1;
}

.timeline-live-marker {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 11px;
  border-radius: 999px;
  background: #fff4d8;
  box-shadow: 0 0 0 2px rgba(244, 166, 70, 0.36), 0 0 14px rgba(244, 166, 70, 0.68);
  transform: translateX(-50%);
  pointer-events: auto;
  cursor: pointer;
  z-index: 3;
}

.timeline-live-marker.is-active {
  background: #ffb44f;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.34), 0 0 18px rgba(255, 180, 79, 0.86);
}

.timeline-segment.is-archived::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 1px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #ffe4bb;
}

.guide-overlay,
.programme-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
}

.guide-overlay-backdrop,
.programme-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 8, 0.3);
  backdrop-filter: blur(12px);
}

.guide-overlay-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(1640px, calc(100vw - 32px));
  height: min(calc(100vh - 32px), 980px);
  margin: 16px auto;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(9, 13, 19, 0.76), rgba(5, 7, 12, 0.82));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.guide-topline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px 10px;
  border-bottom: 0;
}

.guide-top-tools {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.guide-hidden-tools {
  display: none !important;
}

.guide-groups-top {
  display: flex;
  flex: 1 1 auto;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 2px 8px;
  scrollbar-width: none;
  scroll-behavior: smooth;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  user-select: none;
  cursor: grab;
}

#guideGroups.guide-groups-top {
  display: flex !important;
  flex-direction: row !important;
  grid-template-columns: none !important;
  grid-auto-flow: column;
  align-items: stretch;
}

.guide-groups-top::-webkit-scrollbar {
  display: none;
}

.guide-groups-top .guide-group-button {
  width: max-content;
  min-width: 0;
  flex: 0 0 auto;
  padding: 6px 13px;
  min-height: 34px;
  border-radius: 999px;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.02);
}

.guide-groups-top .guide-group-count {
  display: none;
}

.guide-groups-top.is-dragging {
  cursor: grabbing;
}

.guide-search {
  width: min(340px, 36vw);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 12px 16px;
  font: inherit;
}

.guide-days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.guide-day-chip {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
}

.guide-day-chip.is-active {
  color: #ffe9cb;
  border-color: rgba(244, 166, 70, 0.4);
  background: rgba(244, 166, 70, 0.16);
}

.guide-grid {
  display: grid;
  grid-template-columns: 220px 320px minmax(0, 1fr);
  min-height: 0;
}

.guide-grid-compact {
  grid-template-columns: 370px minmax(0, 1fr);
}

.guide-channels-column {
  min-width: 340px;
}

.guide-programme-column {
  min-width: 0;
}

.guide-column {
  min-width: 0;
  min-height: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.guide-programme-column {
  border-right: 0;
}

.guide-column-body {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px;
}

.guide-groups,
.guide-channels,
.programme-list {
  display: grid;
  gap: 10px;
}

.guide-channels {
  align-content: start;
  grid-auto-rows: min-content;
}

.programme-list {
  align-content: start;
  grid-auto-rows: min-content;
  padding-top: var(--programme-list-pad-top, clamp(260px, 42vh, 440px));
  padding-bottom: var(--programme-list-pad-bottom, clamp(260px, 42vh, 440px));
}

.guide-group-button,
.guide-channel-button {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
}

.guide-group-button.is-active,
.guide-channel-button.is-active {
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.04);
}

.guide-channel-button.is-key-focus {
  border-color: rgba(255, 215, 120, 0.96);
  background:
    linear-gradient(90deg, rgba(255, 207, 92, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 2px rgba(255, 208, 90, 0.26), 0 16px 38px rgba(255, 176, 54, 0.12);
}

.guide-groups-top .guide-group-button.is-active {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.guide-groups-top .guide-group-button.is-key-focus {
  border-color: rgba(255, 215, 120, 0.96);
  background: rgba(255, 207, 92, 0.12);
  box-shadow: 0 0 0 2px rgba(255, 208, 90, 0.24), 0 12px 28px rgba(255, 176, 54, 0.1);
}

.guide-icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(8, 12, 18, 0.46);
  color: var(--text);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.guide-icon-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(10, 16, 24, 0.58);
}

.guide-close-button {
  font-size: 24px;
  line-height: 1;
}

.guide-group-name,
.guide-channel-name {
  display: block;
  font-size: 14px;
}

.guide-group-count,
.guide-channel-now {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.guide-channel-button {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 70px;
}

.guide-channel-logo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: contain;
  padding: 8px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.guide-channel-copy {
  min-width: 0;
}

.guide-programme-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.028));
  padding: 15px 16px 14px;
  display: grid;
  gap: 11px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.guide-programme-card.is-current {
  border-color: rgba(244, 166, 70, 0.46);
  background: rgba(244, 166, 70, 0.12);
}

.guide-programme-card.is-playing {
  border-color: rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent 34%),
    rgba(244, 166, 70, 0.16);
  box-shadow: inset 0 0 0 1px rgba(244, 166, 70, 0.32), 0 18px 42px rgba(244, 166, 70, 0.12);
}

.guide-programme-card.is-next {
  border-color: rgba(91, 169, 255, 0.34);
  background: rgba(91, 169, 255, 0.1);
}

.guide-programme-card.is-selected {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26), 0 18px 36px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

.guide-programme-card.is-key-focus {
  border-color: rgba(255, 215, 120, 0.96);
  background:
    linear-gradient(90deg, rgba(255, 207, 92, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.032));
  box-shadow: 0 0 0 2px rgba(255, 208, 90, 0.26), 0 18px 42px rgba(255, 176, 54, 0.14);
}

.guide-programme-card.is-archived {
  border-style: solid;
}

.guide-programme-more {
  width: 100%;
  min-height: 34px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.guide-programme-more:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
}

.guide-programme-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.guide-programme-time-block {
  display: grid;
  gap: 2px;
  flex: 0 0 auto;
}

.guide-programme-time {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.guide-programme-date {
  color: #d9e0eb;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.guide-programme-tags {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.guide-programme-tag,
.modal-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 12px;
}

.guide-programme-tag.is-accent,
.modal-tag {
  color: #ffe4bb;
}

.guide-programme-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.28;
}

.guide-programme-desc {
  margin: 0;
  color: #cfd8e6;
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guide-programme-action {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffe4bb;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.guide-programme-card.is-playing .guide-programme-action {
  background: rgba(255, 255, 255, 0.14);
  color: #fff8e8;
}

.programme-modal-card {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 40px));
  margin: min(12vh, 100px) auto 0;
  padding: 28px 28px 24px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(12, 16, 22, 0.96), rgba(7, 9, 14, 0.98));
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 34px;
  cursor: pointer;
}

.modal-head {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.modal-channel-logo {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  object-fit: contain;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.modal-head-copy {
  min-width: 0;
}

.modal-title {
  margin: 10px 0 14px;
  font-size: 30px;
  line-height: 1.12;
}

.ghost-tag {
  color: var(--muted);
}

.modal-tags {
  flex-wrap: wrap;
  row-gap: 8px;
}

.modal-tag {
  background: rgba(255, 255, 255, 0.08);
  color: #ffe7bf;
}

.modal-description {
  margin: 18px 0 0;
  color: #dde5f0;
  font-size: 16px;
  line-height: 1.78;
  white-space: pre-wrap;
}

.modal-actions {
  margin-top: 24px;
}

.modal-action {
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #ffe9cb;
}

.ghost-action {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.legal-footer {
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-footer a {
  color: #ffd692;
}

@media (max-width: 1160px) {
  .channel-hud {
    grid-template-columns: minmax(0, 1fr) 1fr;
    bottom: 142px;
  }

  .channel-visual {
    display: none;
  }

  .guide-grid {
    grid-template-columns: 190px 280px minmax(0, 1fr);
  }
}

@media (max-width: 920px) {
  .top-bar {
    flex-direction: column;
    align-items: start;
  }

  .top-actions {
    flex-wrap: wrap;
  }

  .channel-hud {
    left: 18px;
    right: 18px;
    bottom: 148px;
    grid-template-columns: 1fr;
  }

  .programme-now-next {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-shell {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .guide-overlay-panel {
    width: calc(100vw - 18px);
    height: calc(100vh - 18px);
    margin: 9px;
  }

  .guide-topline {
    flex-direction: column;
    align-items: stretch;
  }

  .guide-search {
    width: 100%;
  }

  .guide-grid {
    grid-template-columns: 150px 220px minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .channel-title {
    font-size: clamp(28px, 8vw, 44px);
    max-width: none;
  }

  .programme-now-next {
    grid-template-columns: 1fr;
  }

  .timeline-toolbar {
    grid-template-columns: 1fr;
  }

  .timeline-meta {
    order: -1;
  }

  .timeline-nav {
    justify-content: space-between;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-column {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .guide-programme-column {
    border-bottom: 0;
  }

  .modal-head {
    grid-template-columns: 1fr;
  }
}

/* Final guide/timeline overrides */
.guide-days-shell {
  position: relative;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.guide-search-overlay {
  position: absolute;
  left: 0;
  top: -1px;
  z-index: 3;
  display: flex;
  align-items: center;
  width: min(360px, 34vw);
  padding-right: 8px;
}

.guide-icon-button,
.guide-arrow-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.guide-icon-button:hover,
.guide-arrow-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}

.guide-arrow-button {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.92);
}

.guide-arrow-button:disabled {
  opacity: 0.34;
  cursor: default;
  transform: none;
}

.guide-search {
  width: 100%;
  background: rgba(7, 11, 16, 0.92);
}

.guide-days {
  min-width: 0;
  padding: 2px 2px 4px;
  border-bottom: 0;
  scrollbar-width: none;
}

.guide-day-chip {
  padding: 8px 14px;
}

.guide-days::-webkit-scrollbar,
.guide-column-body::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.guide-days::-webkit-scrollbar-track,
.guide-column-body::-webkit-scrollbar-track {
  background: transparent;
}

.guide-days::-webkit-scrollbar-thumb,
.guide-column-body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.guide-days::-webkit-scrollbar-thumb:hover,
.guide-column-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

.guide-column-body {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.timeline-focus-title {
  font-size: 18px;
  line-height: 1.18;
  font-weight: 600;
}

.timeline-window-label {
  display: block;
  font-size: 12px;
}

.timeline-scale {
  position: relative;
  gap: 8px;
  margin-top: 6px;
  padding: 0 0 8px;
}

.timeline-scale::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: rgba(184, 191, 205, 0.34);
}

.timeline-scale-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.timeline-scale-item::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 1px;
  height: 6px;
  background: rgba(184, 191, 205, 0.5);
}

.timeline-scale-item.is-day-boundary::before {
  height: 10px;
  background: rgba(255, 255, 255, 0.74);
}

.timeline-scale-day {
  display: inline-flex;
  align-items: center;
  min-height: 16px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #d6dde8;
  font-size: 10px;
  letter-spacing: 0.02em;
}

.timeline-scale-hour {
  color: rgba(184, 191, 205, 0.92);
}

.timeline-rail-shell {
  margin-top: 2px;
  padding-top: 0;
}

.timeline-rail {
  min-height: 12px;
}

.timeline-segment {
  border-radius: 3px;
}

.timeline-segment.is-archived::after {
  top: 50%;
  width: 3px;
  height: 3px;
  transform: translateY(-50%);
}

.top-bar {
  align-items: flex-start;
}

.channel-corner-copy #appTitle,
.channel-corner-copy #topChannelTitle {
  margin: 6px 0 0;
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.02;
}

.channel-corner-copy .brand-kicker {
  font-size: 12px;
  color: rgba(231, 238, 248, 0.78);
}

.channel-hud {
  bottom: 118px;
  grid-template-columns: minmax(0, 1fr) 140px;
}

.channel-main {
  display: grid;
  align-content: end;
  gap: 10px;
}

.channel-group,
.channel-title,
.stream-pill,
.guide-meta {
  display: none !important;
}

.channel-meta-line {
  gap: 0;
}

.programme-now-next.inline-programmes {
  display: none !important;
}

.programme-chip {
  padding: 12px 14px;
}

.programme-chip strong {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.28;
}

.programme-chip.is-current-chip {
  border-color: rgba(244, 166, 70, 0.34);
  background: rgba(244, 166, 70, 0.1);
}

.guide-icon-button {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  backdrop-filter: none;
}

.guide-icon-button:hover {
  background: transparent;
}

.guide-search-overlay {
  gap: 8px;
  width: min(420px, 40vw);
  padding-right: 0;
}

.guide-search {
  padding-right: 40px;
}

.guide-search-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.guide-days {
  scrollbar-width: none;
}

.guide-days::-webkit-scrollbar,
.guide-column-body::-webkit-scrollbar {
  display: none;
}

.guide-column-body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.timeline-segment-fill {
  background: rgba(148, 156, 170, 0.22);
}

.timeline-segment.is-before-focus .timeline-segment-fill {
  background: rgba(148, 156, 170, 0.22);
}

.timeline-segment.is-after-focus .timeline-segment-fill {
  background: rgba(148, 156, 170, 0.22);
}

.timeline-segment.is-current .timeline-segment-fill {
  background: linear-gradient(90deg, rgba(244, 166, 70, 0.52), rgba(244, 166, 70, 0.9));
}

.timeline-segment.is-selected .timeline-segment-fill {
  background: rgba(148, 156, 170, 0.24);
}

.timeline-segment.is-next .timeline-segment-fill {
  background: rgba(148, 156, 170, 0.22);
}

.timeline-segment.is-past:not(.is-selected):not(.is-current) .timeline-segment-fill {
  background: rgba(148, 156, 170, 0.22);
}

.timeline-segment.is-archived .timeline-segment-fill {
  background: linear-gradient(90deg, rgba(116, 250, 129, 0.24), rgba(116, 250, 129, 0.42));
}

.timeline-segment.is-archived.is-past:not(.is-selected):not(.is-current) .timeline-segment-fill,
.timeline-segment.is-archived.is-selected:not(.is-current) .timeline-segment-fill {
  background: linear-gradient(90deg, rgba(116, 250, 129, 0.24), rgba(116, 250, 129, 0.42));
}

.timeline-segment.is-current .timeline-segment-fill,
.timeline-segment.is-current.is-archived .timeline-segment-fill,
.timeline-segment.is-current.is-selected .timeline-segment-fill {
  background: linear-gradient(90deg, rgba(244, 166, 70, 0.52), rgba(244, 166, 70, 0.9));
}

.timeline-segment.is-selected {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.timeline-segment:not(.is-archived) .timeline-live-progress {
  background: linear-gradient(90deg, rgba(176, 184, 196, 0.36), rgba(210, 216, 225, 0.58));
}

.timeline-segment.has-archive-window .timeline-segment-fill,
.timeline-segment.has-archive-window.is-current .timeline-segment-fill,
.timeline-segment.has-archive-window.is-current.is-archived .timeline-segment-fill,
.timeline-segment.has-archive-window.is-current.is-selected .timeline-segment-fill {
  background: rgba(148, 156, 170, 0.22);
}

.timeline-archive-window {
  position: absolute;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(116, 250, 129, 0.24), rgba(116, 250, 129, 0.48));
  pointer-events: none;
  z-index: 1;
}

.timeline-segment.is-current .timeline-archive-window {
  background: linear-gradient(90deg, rgba(116, 250, 129, 0.18), rgba(116, 250, 129, 0.34));
}

.timeline-segment.is-synthetic-archive .timeline-archive-window {
  background: repeating-linear-gradient(
    90deg,
    rgba(116, 250, 129, 0.18) 0,
    rgba(116, 250, 129, 0.18) 10px,
    rgba(116, 250, 129, 0.34) 10px,
    rgba(116, 250, 129, 0.34) 20px
  );
}

.timeline-segment.has-archive-window .timeline-live-progress {
  z-index: 2;
}

.timeline-segment.is-archive-playing {
  border-color: rgba(255, 211, 77, 0.82);
  box-shadow: 0 0 0 1px rgba(255, 211, 77, 0.22), 0 0 18px rgba(255, 169, 46, 0.2);
}

.timeline-segment.is-archive-playing .timeline-segment-fill,
.timeline-segment.has-archive-window.is-archive-playing .timeline-segment-fill,
.timeline-segment.has-archive-window.is-archive-playing.is-current .timeline-segment-fill,
.timeline-segment.has-archive-window.is-archive-playing.is-selected .timeline-segment-fill {
  background: linear-gradient(90deg, rgba(255, 211, 77, 0.34), rgba(255, 159, 46, 0.66));
}

.timeline-segment.is-archive-playing .timeline-archive-window,
.timeline-segment.is-archive-playing.is-current .timeline-archive-window {
  background: linear-gradient(90deg, rgba(255, 225, 92, 0.46), rgba(255, 158, 48, 0.82));
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.video-player {
  object-fit: contain;
  object-position: center center;
}

#topChannelTitle {
  margin: 8px 0 0;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.96;
}

.player-panel {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  z-index: 4;
  display: grid;
  max-width: calc(100vw - 48px);
  gap: 8px;
  padding: 10px 12px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(5, 8, 13, 0.7), rgba(2, 3, 6, 0.88));
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.34);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.42s ease;
  will-change: transform, opacity;
}

body.is-controls-idle .player-panel {
  opacity: 0;
  transform: translateY(calc(100% + 28px));
}

.player-info-row,
.player-controls-row,
.programme-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.programme-progress-meta {
  display: none;
}

.player-current-block,
.player-next-block {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.player-current-title,
.player-next-title {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-current-title {
  font-size: 20px;
  line-height: 1.25;
  color: var(--text);
}

.player-next-label,
.player-next-title,
.timeline-window-label {
  font-size: 14px;
  color: rgba(234, 238, 245, 0.86);
}

.player-next-block.is-empty {
  visibility: hidden;
}

.player-control-cluster,
.player-status-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-status-cluster {
  justify-content: flex-end;
  min-width: 0;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}

.icon-button-live {
  color: #ff7979;
}

.timeline-scale-shell,
.timeline-rail-shell,
.programme-progress-shell {
  position: relative;
  min-width: 0;
}

.timeline-scale-shell {
  padding-top: 2px;
}

.timeline-scale {
  min-height: 26px;
}

.timeline-rail-shell {
  min-height: 16px;
}

.timeline-rail {
  min-height: 14px;
  gap: 3px;
}

.timeline-now-marker {
  top: -2px;
}

.programme-progress-shell {
  display: grid;
  gap: 6px;
}

.programme-progress-rail {
  position: relative;
  width: 100%;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.programme-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, rgba(116, 250, 129, 0.5), rgba(244, 166, 70, 0.7));
}

.programme-progress-marker {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 2px;
  background: #fff8ea;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
  transform: translateX(-1px);
}

.guide-overlay-panel {
  background: rgba(8, 12, 18, 0.62);
  backdrop-filter: blur(22px);
}

@media (max-width: 980px) {
  .player-panel {
    left: 14px;
    right: 14px;
    bottom: 14px;
    gap: 7px;
    padding: 10px;
  }

  .player-info-row,
  .player-controls-row,
  .programme-progress-meta {
    flex-wrap: wrap;
  }

  .player-current-title {
    font-size: 17px;
  }

  .player-control-cluster {
    flex-wrap: wrap;
  }
}

/* CT225 player controls refresh */
.player-panel {
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.player-info-card,
.player-control-card {
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(5, 8, 13, 0.7), rgba(2, 3, 6, 0.88));
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}

.minimal-control-card {
  display: none;
}

body.is-minimal-interface .player-info-card,
body.is-minimal-interface .player-control-card {
  display: none;
}

body.is-minimal-interface .minimal-control-card {
  display: grid;
}

.player-info-card {
  display: grid;
  gap: 8px;
  padding: 10px 14px;
}

.player-control-card {
  display: grid;
  gap: 8px;
  padding: 10px 12px 12px;
}

.player-info-kicker {
  color: rgba(234, 238, 245, 0.58);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-info-details {
  display: none;
  max-width: 1120px;
  color: rgba(234, 238, 245, 0.86);
}

.player-info-card.is-expanded .player-info-details {
  display: grid;
  gap: 8px;
}

.player-info-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.player-info-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(234, 238, 245, 0.82);
  font-size: 11px;
}

.player-info-tag.is-accent {
  color: #ffe4bb;
}

.player-info-description {
  margin: 0;
  max-width: 980px;
  color: rgba(234, 238, 245, 0.9);
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.player-info-detail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: rgba(234, 238, 245, 0.66);
  font-size: 12px;
}

.player-controls-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}

.player-main-controls {
  justify-content: flex-start;
}

.player-edge-controls {
  justify-content: flex-end;
}

.icon-button.is-active {
  border-color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.16);
}

.programme-progress-times {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: rgba(234, 238, 245, 0.58);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.programme-progress-times strong {
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff2da;
  font-size: 13px;
}

.programme-progress-times span:last-child {
  text-align: right;
}

.timeline-segment,
.programme-progress-rail {
  cursor: pointer;
}

.guide-day-divider {
  position: sticky;
  top: -12px;
  z-index: 2;
  margin: 2px 0;
  padding: 8px 0 4px;
  background: linear-gradient(180deg, rgba(8, 12, 18, 0.86), rgba(8, 12, 18, 0));
}

.guide-day-divider-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.09);
  color: #dce3ee;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .player-controls-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .player-main-controls,
  .player-edge-controls,
  .player-status-cluster {
    justify-content: center;
  }
}

/* CT225 transport/control pass */
.channel-corner-copy {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-channel-logo {
  width: clamp(76px, 7.5vw, 118px);
  height: clamp(76px, 7.5vw, 118px);
  border-radius: 24px;
  object-fit: contain;
  padding: 8px;
  background: rgba(7, 10, 16, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.3);
}

.top-channel-copy {
  display: grid;
  gap: 6px;
}

.channel-corner-copy #topChannelTitle {
  margin: 0;
  font-size: clamp(44px, 5.2vw, 72px);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.channel-corner-copy .brand-kicker {
  font-size: clamp(18px, 1.55vw, 24px);
  letter-spacing: 0.12em;
}

.player-info-card,
.player-control-card {
  background: linear-gradient(180deg, rgba(5, 8, 13, 0.5), rgba(2, 3, 6, 0.68));
  border-color: rgba(255, 255, 255, 0.085);
}

.player-info-details {
  max-width: none;
}

.player-info-detail-tags {
  align-items: center;
}

.player-info-tag {
  min-height: 22px;
  padding: 3px 9px;
}

.player-info-description {
  max-width: 1040px;
  font-size: 15px;
  line-height: 1.55;
}

.player-info-people {
  display: grid;
  gap: 4px;
  color: rgba(234, 238, 245, 0.68);
  font-size: 12px;
  line-height: 1.35;
}

.player-controls-row {
  width: 100%;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.player-guide-controls {
  justify-content: flex-start;
}

.player-main-controls {
  min-width: 0;
  justify-content: center;
  flex-wrap: nowrap;
}

.player-edge-controls {
  min-width: 0;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.labeled-button,
.text-button,
.live-now-button {
  width: auto;
  min-width: 38px;
  padding: 0 12px;
  grid-auto-flow: column;
  gap: 8px;
}

.guide-open-button {
  min-width: 112px;
  justify-content: center;
  text-transform: none;
}

.text-button {
  min-width: 82px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
}

.start-button {
  font-size: 13px;
}

.play-toggle-button {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 18px;
}

.live-now-button {
  color: #ffe8e8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ff3d3d;
  box-shadow: 0 0 0 4px rgba(255, 61, 61, 0.16), 0 0 16px rgba(255, 61, 61, 0.82);
}

.volume-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
}

.volume-icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font-size: 15px;
}

.volume-popover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  display: grid;
  grid-template-columns: 20px 20px;
  align-items: center;
  gap: 5px;
  width: 58px;
  height: 176px;
  padding: 11px 6px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 8, 13, 0.78);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.volume-control.is-open .volume-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.volume-control input[type="range"] {
  --volume-level: 0%;
  width: 20px;
  height: 148px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
  direction: rtl;
  writing-mode: vertical-lr;
}

.volume-control input[type="range"]::-webkit-slider-runnable-track {
  width: 2px;
  height: 148px;
  border-radius: 999px;
  background: linear-gradient(to top, #f4a646 0 var(--volume-level), rgba(255, 255, 255, 0.26) var(--volume-level) 100%);
}

.volume-control input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 13px;
  height: 13px;
  margin-left: -5.5px;
  border-radius: 999px;
  border: 2px solid rgba(8, 10, 14, 0.9);
  background: #ffbd5a;
  box-shadow: 0 0 0 2px rgba(244, 166, 70, 0.26);
}

.volume-control input[type="range"]::-moz-range-track {
  width: 2px;
  height: 148px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
}

.volume-control input[type="range"]::-moz-range-progress {
  width: 2px;
  border-radius: 999px;
  background: #f4a646;
}

.volume-control input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  border: 2px solid rgba(8, 10, 14, 0.9);
  background: #ffbd5a;
}

.volume-ticks {
  display: grid;
  height: 148px;
  align-content: space-between;
  color: rgba(234, 238, 245, 0.58);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.volume-ticks span {
  position: relative;
  min-width: 18px;
  text-align: right;
}

.volume-ticks span::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 50%;
  width: 5px;
  height: 1px;
  background: rgba(234, 238, 245, 0.48);
}

.subtitle-button {
  width: 38px;
  min-width: 38px;
  padding: 0;
}

.subtitle-icon {
  width: 22px;
  height: 15px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 3px 4px;
  border: 1.6px solid currentColor;
  border-radius: 4px;
}

.subtitle-icon span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.timeline-scale-shell {
  padding-top: 0;
  margin-bottom: -4px;
}

.timeline-scale {
  position: relative;
  display: block;
  min-height: 20px;
  height: 22px;
  gap: 0;
}

.timeline-scale-item {
  position: absolute;
  top: 0;
  bottom: 0;
  flex-direction: row;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  transform: translateX(-50%);
}

.timeline-scale-item.is-start {
  transform: none;
}

.timeline-scale-item.is-end {
  transform: translateX(-100%);
}

.timeline-scale-item::before {
  left: 50%;
}

.timeline-scale-item.is-start::before {
  left: 0;
}

.timeline-scale-item.is-end::before {
  left: 100%;
}

.timeline-scale-day {
  min-height: 0;
  padding: 0;
  background: transparent;
  color: rgba(214, 221, 232, 0.72);
  font-size: 10px;
  white-space: nowrap;
}

.timeline-rail-shell {
  margin-top: 0;
  padding-top: 0;
}

.timeline-segment.is-archived::after {
  content: none;
}

.programme-progress-shell {
  gap: 4px;
}

.programme-progress-rail {
  height: 24px;
}

.programme-boundary,
.programme-current-time {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  color: rgba(255, 248, 234, 0.82);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}

.programme-boundary-start {
  left: 10px;
}

.programme-boundary-end {
  right: 10px;
}

.programme-current-time {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.36);
  color: #fff7e8;
  transform: translate(8px, -50%);
}

.programme-current-time.is-near-end {
  transform: translate(calc(-100% - 8px), -50%);
}

.programme-current-time.is-edge-hidden {
  display: none;
}

.programme-progress-marker {
  z-index: 2;
}

.guide-day-divider {
  position: relative;
  top: auto;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin: 4px 0;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.045);
}

.guide-day-divider-label {
  display: inline-flex;
  justify-content: center;
  gap: 10px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(220, 227, 238, 0.72);
  font-size: 12px;
}

.guide-day-weekday {
  min-width: 96px;
  text-align: right;
  text-transform: capitalize;
}

.guide-day-date {
  min-width: 44px;
  text-align: left;
  color: rgba(255, 231, 194, 0.78);
}

.guide-channel-button {
  position: relative;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  min-height: 72px;
  padding: 0 14px 0 0;
  overflow: hidden;
}

.guide-channel-button.is-playing {
  border-color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(90deg, rgba(244, 166, 70, 0.12), rgba(255, 255, 255, 0.045));
  box-shadow: inset 0 0 0 1px rgba(244, 166, 70, 0.28);
}

.guide-channel-logo {
  align-self: stretch;
  width: 74px;
  height: 100%;
  border-radius: 16px;
  padding: 0;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.045);
}

.guide-channel-copy {
  padding: 10px 72px 10px 0;
}

.guide-channel-archive-tag {
  position: absolute;
  top: 8px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(244, 166, 70, 0.16);
  color: #ffe0ad;
  font-size: 11px;
  line-height: 1;
}

.guide-channel-playing-tag {
  position: absolute;
  top: 8px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff8e8;
  font-size: 11px;
  line-height: 1;
}

.guide-channel-button.is-playing .guide-channel-archive-tag {
  top: 34px;
}

.minimal-control-card {
  width: 100%;
  min-width: 0;
  gap: 12px;
  padding: 0 16px 2px;
  border: 0;
  background: transparent;
  color: rgba(233, 238, 246, 0.86);
  backdrop-filter: none;
  box-shadow: none;
}

.minimal-controls-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: 34px;
  gap: 14px;
}

.minimal-control-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.minimal-left-controls {
  justify-content: flex-start;
}

.minimal-center-controls {
  justify-content: center;
}

.minimal-right-controls {
  justify-content: flex-end;
}

.minimal-icon-action,
.minimal-text-action {
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(233, 238, 246, 0.84);
  box-shadow: none;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.minimal-icon-action {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 30px;
  font-size: 21px;
  letter-spacing: -0.04em;
}

.minimal-text-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  color: rgba(233, 238, 246, 0.78);
  font-size: 14px;
  font-weight: 650;
}

.minimal-play-action {
  width: 38px;
  font-size: 25px;
  color: #fff7e8;
}

.minimal-icon-action:hover,
.minimal-text-action:hover {
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.26);
}

.minimal-progress-shell {
  display: grid;
  gap: 8px;
  padding: 0 2px 1px;
}

.minimal-progress-labels {
  position: relative;
  min-height: 18px;
  color: rgba(230, 235, 244, 0.68);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.minimal-progress-time {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.72);
}

.minimal-progress-start {
  left: 0;
  transform: none;
}

.minimal-progress-end {
  right: 0;
  transform: none;
}

.minimal-progress-current {
  padding: 0 7px;
  color: #fff7e8;
  font-size: 13px;
  font-weight: 700;
}

.minimal-progress-current.is-near-end {
  transform: translateX(calc(-100% - 8px));
}

.minimal-progress-current.is-edge-hidden {
  display: none;
}

.minimal-progress-rail {
  position: relative;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(180, 188, 200, 0.28);
  cursor: pointer;
  overflow: hidden;
}

.minimal-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: rgba(232, 236, 244, 0.56);
}

.minimal-progress-marker {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  background: #fff8ea;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 16px rgba(255, 248, 234, 0.45);
  transform: translateX(-1px);
}

@media (max-width: 1180px) {
  .player-controls-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .player-guide-controls,
  .player-main-controls,
  .player-edge-controls {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Remote / keyboard focus model */
.player-screen.is-remote-focus {
  box-shadow: inset 0 0 0 2px rgba(255, 215, 120, 0.42), inset 0 0 44px rgba(255, 178, 58, 0.12);
}

.icon-button.is-remote-focus,
.minimal-icon-action.is-remote-focus,
.minimal-text-action.is-remote-focus,
.volume-control.is-remote-focus .volume-icon-button,
.modal-action.is-key-focus {
  border-color: rgba(255, 215, 120, 0.96);
  background:
    linear-gradient(180deg, rgba(255, 207, 92, 0.18), rgba(255, 255, 255, 0.07)),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 2px rgba(255, 208, 90, 0.26), 0 14px 32px rgba(255, 176, 54, 0.14);
  color: #fff7e6;
}

.minimal-icon-action.is-remote-focus,
.minimal-text-action.is-remote-focus {
  border-radius: 999px;
  padding-inline: 10px;
}

.timeline-rail-shell.is-remote-focus,
.programme-progress-rail.is-remote-focus,
.minimal-progress-rail.is-remote-focus {
  outline: 2px solid rgba(255, 215, 120, 0.84);
  outline-offset: 4px;
  box-shadow: 0 0 0 4px rgba(255, 197, 74, 0.16), 0 12px 32px rgba(255, 176, 54, 0.12);
}

.timeline-rail.is-remote-focus .timeline-segment {
  border-color: rgba(255, 255, 255, 0.18);
}

.volume-control.is-remote-focus .volume-popover {
  border-color: rgba(255, 215, 120, 0.62);
  box-shadow: 0 0 0 2px rgba(255, 208, 90, 0.18), 0 18px 44px rgba(0, 0, 0, 0.42);
}
