/* Web adapter of the ACTUAL Windows IPTVPlayer 0.3.1 stylesheet. Layout dimensions and dark theme retained. */

:root {
  font-size: clamp(13px,.94vw,17px);
}
body {
  overflow: hidden;
}
.hide {
  display: none!important;
}
.build-tag {
  font-size: .61rem;
  letter-spacing: .12em;
  border: 1px solid #5f4584;
  border-radius: 6px;
  padding: .22rem .4rem;
  color: #caacff;
}
.brand-mark {
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-weight: 900;
  color: #0b0711;
}
.tabs {
  flex: none;
  min-height: 64px;
}
.tabs .tab {
  white-space: nowrap;
  padding: .65rem .9rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .92rem;
}
.tabs .tab:hover {
  background: var(--hover);
  color: var(--text);
}
.tabs .tab.active {
  color: var(--text);
  box-shadow: inset 0 -2px var(--accent);
  border-radius: 0;
}
.account-screen {
  height: 100vh;
  display: grid;
  place-items: center;
  overflow-y: auto;
}
.accounts {
  margin: 0 auto;
}
.start-title {
  display: grid;
  gap: .5rem;
}
.kicker {
  font-size: .72rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .13em;
}
.setup {
  margin: 0 auto!important;
}
.account-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  padding: .85rem;
  background: var(--surface-2);
}
.account-tile .account-select {
  flex: 1;
  min-width: 0;
  text-align: left;
  border: 0;
  background: transparent;
}
.account-select strong {
  display: block;
}
.account-select small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  color: var(--muted);
}
.account-tile .mini-danger {
  width: 2.3rem;
  padding: .5rem;
  color: #ffa29e;
  background: transparent;
}
.column-heading {
  height: 48px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  font-size: .72rem;
  letter-spacing: .09em;
  font-weight: 750;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.column-heading small {
  font-size: .73rem;
  letter-spacing: 0;
  font-weight: 400;
}
.browser {
  grid-template-columns: minmax(175px,17%) minmax(250px,1fr) minmax(330px,38%);
  gap: 1vw;
}
.cats,.items,.detail {
  min-width: 0;
}
.detail {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.detail-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 1rem .25rem 1rem;
}
.preview-box {
  width: 100%;
  flex: none;
  cursor: default;
  background: linear-gradient(160deg,#14142b,#030307);
}
.preview-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}
.play-status {
  pointer-events: none;
  background: radial-gradient(circle,#19162d,#06050b 80%);
  font-size: .85rem;
}
.play-status.loading .preview-symbol {
  animation: spin 1s linear infinite;
}
.preview-symbol {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #2b2046;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 1.05rem;
}
.play-status.errored {
  pointer-events: none;
  background: #160b16;
  color: #ffd1ce;
}
.playing-title {
  min-height: 38px;
  padding: .7rem .25rem .45rem;
  color: var(--text);
  font-weight: 640;
  font-size: .96rem;
}
.list-search {
  padding: .65rem .7rem;
  border-bottom: 1px solid var(--line);
}
.list-search input {
  font-size: .82rem;
  padding: .6rem .8rem;
}
.vlist {
  overflow: auto;
  min-height: 0;
  height: 100%;
}
.cats .vlist {
  flex: 1;
}
.cat {
  height: 41px;
  padding: 0 .85rem;
  font-size: .84rem;
  cursor: pointer;
  gap: .4rem;
}
.cat .name {
  min-width: 0;
  flex: 1;
}
.cat.selected {
  background: var(--accent-soft);
  color: var(--text);
}
.ch {
  height: 61px;
  cursor: pointer;
  min-width: 0;
  padding: 0 .65rem;
  grid-template-columns: 1.65rem 2.5rem minmax(0,1fr) 2rem;
  gap: .5rem;
}
.vod {
  height: 72px;
  cursor: pointer;
  padding: 0 .65rem;
  grid-template-columns: 2.4rem minmax(0,1fr) 2rem;
  gap: .65rem;
}
.ch.selected,.vod.selected {
  background: linear-gradient(90deg,#b68cff22,#b68cff08);
  box-shadow: inset 3px 0 var(--accent);
}
.ch .name,.vod .name {
  font-size: .88rem;
}
.ch .now,.vod .now {
  font-size: .75rem;
}
.ch .num {
  font-size: .76rem;
}
.logo {
  width: 2.4rem;
  height: 2rem;
}
.logo.thumb {
  width: 2.35rem;
  height: 3rem;
}
.favbtn {
  padding: .2rem;
  background: none;
  border: 0;
  color: var(--faint);
  font-size: 1.35rem;
}
.favbtn.on {
  color: #ffd166;
}
.d-title {
  font-size: 1.3rem;
  line-height: 1.2;
  margin: 0 0 .5rem;
}
.d-sub {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.45;
}
.d-description {
  line-height: 1.48;
  color: #c6cbd6;
  font-size: .88rem;
}
.d-meta {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: .65rem 0 1rem;
  color: var(--muted);
  font-size: .82rem;
  flex-wrap: wrap;
}
.d-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .9rem 0;
}
.d-actions button {
  border-radius: 999px;
  padding: .53rem .85rem;
  font-size: .82rem;
}
.d-actions .primary {
  background: var(--accent);
  color: #180e2b;
}
.episode-list {
  display: grid;
  gap: .45rem;
  margin: .75rem 0;
}
.episode-row {
  display: flex;
  align-items: center;
  text-align: left;
  gap: .6rem;
  background: #211b32;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: .65rem;
  width: 100%;
  font-size: .82rem;
}
.episode-row:hover {
  background: #2d2342;
}
.season-head {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin: .8rem 0;
}
.season-head button {
  font-size: .75rem;
  padding: .4rem .6rem;
}
.season-head button.active {
  color: var(--accent);
  border-color: var(--accent);
}
.extra-screen {
  height: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 1.3rem;
}
.extra-header {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.extra-header h2 {
  font-size: 1.45rem;
}
.extra-header p {
  margin: 0;
  font-size: .8rem;
}
.settings-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.2rem;
  margin-top: 1.2rem;
}
.settings-nav {
  display: grid;
  gap: .4rem;
  align-content: start;
}
.settings-nav button {
  text-align: left;
  background: transparent;
  border: 0;
  font-size: .88rem;
}
.settings-nav button.selected {
  background: var(--accent-soft);
  color: var(--accent);
}
.settings-detail {
  background: #171327;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 1.3rem;
  min-height: 240px;
}
.settings-detail h3 {
  margin: 0 0 1rem;
}
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .88rem;
}
.setting-row small {
  color: var(--muted);
}
.diag-logs {
  height: 250px;
  max-width: 100%;
  overflow: auto;
  white-space: pre-wrap;
  background: #0a0911;
  padding: .75rem;
  border: 1px solid var(--line);
  font: 12px/1.5 ui-monospace,monospace;
  border-radius: 9px;
}
.guide-content {
  padding: 1rem 0;
}
.guide-item {
  display: flex;
  gap: 1rem;
  align-items: start;
  padding: .8rem;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.guide-item:hover {
  background: var(--hover);
}
.guide-item .glogo {
  width: 55px;
  flex: none;
}
.guide-item strong {
  font-size: .88rem;
}
.guide-item small {
  color: var(--muted);
  display: block;
}
.guide-item .gprog {
  flex: 1;
  min-width: 0;
}
.guide-time {
  color: var(--accent);
  font-size: .75rem;
}
#full-player {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: #000;
}
#full-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#full-player .full-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 16px 22px;
  background: linear-gradient(#000b,transparent);
  pointer-events: none;
}
#full-player .full-top>* {
  pointer-events: auto;
}
.close-full {
  background: #241b3b;
}
#full-status {
  position: absolute;
  top: 44%;
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
  font-size: .95rem;
  color: #ddd;
}
.mini {
  font-size: .8rem;
  color: var(--muted);
}
.preview-box .play-status {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.toast-msg {
  font-size: .84rem;
  color: #ffd2ad;
}
.account-name {
  max-width: 110px;
}
.tabs .brand {
  margin-right: .55rem;
}

@media(max-width:1150px) {
  .browser {
    grid-template-columns: 180px minmax(180px,1fr) minmax(300px,39%);
  }
  .tabs {
    gap: 0;
  }
  .tabs .tab {
    padding: .55rem .5rem;
  }
}

@media(max-width:800px) {
  .browser {
    grid-template-columns: 160px minmax(230px,1fr);
    grid-template-rows: 1fr 240px;
  }
  .browser .detail {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 40% 1fr;
    grid-template-rows: 1fr;
    gap: .7rem;
  }
  .detail .preview-box {
    width: 100%;
  }
  .detail .detail-scroll {
    overflow: auto;
  }
  .playing-title {
    display: none;
  }
  .tabs .tab {
    font-size: .79rem;
  }
  .clock {
    display: none;
  }
}

@media(max-width:600px) {
  .browser {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: calc(100vh - 100px);
  }
  .cats {
    max-height: 130px;
    flex: none;
  }
  .cats .vlist {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
  }
  .cats .cat {
    flex: none;
    height: 45px;
    min-width: 100px;
  }
  .items {
    height: 350px;
    flex: none;
  }
  .detail {
    display: flex!important;
    min-height: 420px;
  }
  .view {
    overflow: auto;
  }
  .tabs {
    flex-wrap: nowrap;
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .settings-nav {
    display: flex;
    overflow-x: auto;
  }
  .account-name {
    display: none;
  }
}

/* Voddler 0.3.3: unified Windows-style search, live programme titles, time-grid EPG */

.search-screen {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.search-input {
  width: min(680px,100%);
  padding: 15px 18px;
  font-size: 1rem;
  border-radius: 12px;
  background: #191329;
  border: 1px solid #423356;
  color: #faf7ff;
}
.search-hint {
  color: var(--muted);
  font-size: .83rem;
}
.search-screen .results {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  gap: 5px;
  flex: 1;
}
.global-result {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 15px;
  background: #181227;
  border: 1px solid transparent;
  border-radius: 9px;
  text-align: left;
  color: var(--text);
  font-size: .91rem;
  cursor: pointer;
}
.global-result:hover,.global-result:focus-visible {
  background: #2c2044;
  border-color: var(--accent);
}
.global-result .tag {
  font-size: .69rem;
  min-width: 49px;
  text-align: center;
  padding: 5px 8px;
  background: #403053;
  border: 1px solid #5e4175;
  border-radius: 6px;
  color: #e7c6ff;
}
.ch .now {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: .78;
}
.guide-screen {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.guide-screen .extra-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.guide-screen .extra-header>div:first-child {
  flex: 1;
}
.guide-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.guide-actions label {
  font-size: .7rem;
  color: var(--muted);
}
.guide-actions select {
  width: auto;
  max-width: 165px;
  padding: 7px 22px 7px 9px;
  background: #201a2e;
  color: var(--text);
  border: 1px solid #453457;
  border-radius: 8px;
  font-size: .78rem;
}
.guide-actions button {
  background: #2c2241;
  color: #f6ecff;
  border: 1px solid #524267;
  padding: 7px 11px;
  border-radius: 9px;
  cursor: pointer;
}
.guide-actions button:hover {
  background: #4a3864;
}
.guide-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.epg-shell {
  min-width: max-content;
  position: relative;
}
.epg-grid-head,.epg-row {
  display: flex;
  align-items: stretch;
  min-height: 62px;
}
.epg-grid-head {
  min-height: 42px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: #1b1629;
}
.epg-grid-head .epg-sticky {
  z-index: 6;
}
.epg-sticky,.epg-channel {
  width: 190px;
  min-width: 190px;
  position: sticky;
  left: 0;
  background: #1a1428;
  border-right: 1px solid #3f3455;
  border-bottom: 1px solid #383047;
  z-index: 3;
}
.epg-sticky {
  font-size: .68rem;
  letter-spacing: .13em;
  display: flex;
  align-items: center;
  padding: 10px;
  color: var(--muted);
}
.epg-channel {
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  padding: 8px 11px;
  color: var(--text);
  border-top: 0;
  cursor: pointer;
  font-size: .82rem;
}
.epg-channel:hover {
  color: #e7c5ff;
  background: #312444;
}
.epg-channel img {
  max-width: 29px;
  max-height: 28px;
  object-fit: contain;
}
.epg-channel span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.epg-ticks {
  position: relative;
  display: block;
  border-bottom: 1px solid #403354;
}
.epg-ticks span {
  position: absolute;
  top: 13px;
  color: #aaa0bc;
  font-size: .72rem;
  transform: translateX(5px);
}
.epg-track {
  position: relative;
  flex: none;
  background: #130e20;
  border-bottom: 1px solid #342c41;
  overflow: hidden;
}
.epg-ticklines {
  position: absolute;
  inset: 0;
  opacity: .25;
  background-image: linear-gradient(to right,#a892ca 1px,transparent 1px);
  pointer-events: none;
}
.epg-program {
  position: absolute;
  top: 8px;
  height: 44px;
  border: 1px solid #49375d;
  border-radius: 7px;
  background: #322643;
  color: #f3eaff;
  text-align: left;
  padding: 5px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  font-size: .8rem;
}
.epg-program:hover {
  background: #563a77;
}
.epg-program.on-air {
  border-color: #ae89dd;
  background: #4a3568;
}
.epg-empty {
  position: absolute;
  top: 20px;
  left: 15px;
  color: #786e87;
  font-size: .76rem;
}
.epg-footer {
  position: sticky;
  left: 0;
  width: max-content;
  color: var(--muted);
  font-size: .7rem;
  padding: 12px;
}
.controls-hidden .full-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s,visibility .3s;
}
.full-top {
  opacity: 1;
  transition: opacity .2s;
}

@media(max-width:850px) {
  .guide-screen .extra-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .epg-sticky,.epg-channel {
    min-width: 145px;
    width: 145px;
  }
}

/* 0.3.4: live programme metadata, polished playback, and a Windows-like EPG. */

.ch {
  height: 87px;
  align-content: center;
  grid-template-columns: 1.45rem 2.45rem minmax(0,1fr) 1.8rem;
  gap: .55rem;
}
.ch .chmain {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: 5px;
  padding: 4px 0;
}
.ch .name {
  display: block;
  max-width: 100%;
  font-size: .85rem;
  line-height: 1.22;
  font-weight: 680;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ch .now {
  display: block;
  line-height: 1.25;
  max-width: 100%;
  font-size: .72rem;
  color: #bcb2ce;
  opacity: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.channel-progress {
  display: block;
  max-width: 100%;
}
.channel-progress .programme-times {
  font-size: .61rem;
  margin: 0 0 4px;
  color: #9b91b1;
}
.channel-progress .programme-progress {
  height: 3px;
}
.programme-times {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: #afa3c3;
  font-size: .77rem;
  margin: 0 0 9px;
}
.programme-times span:nth-child(2) {
  color: #d7c0ff;
  font-weight: 700;
}
.programme-progress {
  width: 100%;
  height: 6px;
  background: #403452;
  overflow: hidden;
  border-radius: 100px;
}
.programme-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg,#a77bfb,#61c8f4);
  border-radius: inherit;
  transition: width .8s linear;
}
.live-programme {
  padding: 15px 15px 16px;
  border: 1px solid #433254;
  border-radius: 13px;
  background: linear-gradient(120deg,#271b3a,#191524);
  margin: 8px 0 10px;
}
.live-chip {
  font-weight: 750;
  letter-spacing: .11em;
  color: #7feac6;
  font-size: .65rem;
}
.live-programme h3 {
  font-size: .8rem;
  color: #d8b5ff;
  font-weight: 650;
  letter-spacing: .015em;
  margin: 7px 0 7px;
}
.live-program-title {
  color: #fff;
  font-weight: 770;
  font-size: 1.12rem;
  line-height: 1.4;
  margin-bottom: 14px;
}
.live-programme .d-sub {
  padding-top: 10px;
  line-height: 1.45;
  max-height: 75px;
  overflow: auto;
}
.upcoming-label {
  font-weight: 740;
  font-size: .7rem;
  color: #bcaed0;
  letter-spacing: .08em;
  margin: 22px 0 6px;
}
.upcoming-item {
  padding: 13px 4px;
  border-bottom: 1px solid #362a44;
  font-size: .88rem;
  color: #e0dbe8;
}
.upcoming-item small {
  display: block;
  margin-top: 5px;
  font-size: .73rem;
  color: #a69ab8;
}

/* Loading: quiet Windows-style spinner instead of a play triangle in a circle. */

.play-status {
  z-index: 4;
  gap: 12px;
  text-align: center;
  background: rgba(11,8,22,.96)!important;
  backdrop-filter: blur(7px);
  color: #eee6fa;
}
.play-status .preview-symbol {
  width: 45px;
  height: 45px;
  background: transparent;
  color: transparent;
  font-size: 0;
  border: 3px solid rgba(186,147,246,.22);
  border-top-color: #bc9aff;
  border-right-color: #7dbaf5;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.play-status:not(.loading):not(.buffering):not(.errored) .preview-symbol {
  border: 0;
  background: #2a1a42;
  color: #d5b8ff;
  font-size: 1.12rem;
  animation: none;
}
.play-status.errored .preview-symbol {
  border: 0;
  color: #ffc7c7;
  background: #602f42;
  font-size: 1rem;
  animation: none;
}
.play-status #play-status-text {
  font-size: .83rem;
  color: #e0d3ee;
  line-height: 1.4;
  max-width: 75%;
  white-space: normal;
}
.play-status.buffering {
  background: rgba(11,8,22,.78)!important;
}

/* Guide top preview is a live media element moved from the right hand panel, not a second stream. */

.guide-screen {
  gap: 0;
}
.guide-feature {
  display: flex;
  gap: 18px;
  align-items: stretch;
  min-height: 178px;
  max-height: 204px;
  background: linear-gradient(110deg,#21182f 5%,#171221 80%);
  border: 1px solid #3c3051;
  border-radius: 14px;
  padding: 13px 18px;
  margin-bottom: 14px;
  overflow: hidden;
  flex: none;
}
.guide-preview-mount {
  width: 270px;
  min-width: 220px;
  max-width: 30%;
  flex: none;
  aspect-ratio: 16/9;
  display: flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  background: #0c0a15;
  border: 1px solid #443255;
  border-radius: 11px;
  overflow: hidden;
}
.guide-preview-placeholder {
  color: #9182a8;
  font-size: .78rem;
  padding: 15px;
  text-align: center;
}
.guide-preview-mount .preview-box {
  height: 100%;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16/9;
  max-height: none;
  border: 0;
  border-radius: 0;
  margin: 0;
}
.guide-preview-mount .preview-box video {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.guide-feature-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}
.guide-feature-label {
  font-size: .63rem;
  letter-spacing: .16em;
  color: #b99add;
  font-weight: 750;
}
.guide-feature-body h3 {
  margin: 0;
  font-size: 1.18rem;
  color: #fff;
  line-height: 1.24;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.guide-feature-current {
  font-size: .91rem;
  font-weight: 630;
  color: #e6dff2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.guide-feature-times {
  font-size: .74rem;
  color: #b7a7cb;
}
.guide-progress {
  height: 4px;
  max-width: 620px;
}
.guide-feature-description {
  font-size: .73rem;
  color: #a697bb;
  max-height: 26px;
  line-height: 1.4;
  overflow: hidden;
  margin: 0;
}
.guide-feature-actions {
  display: flex;
  gap: 7px;
  margin-top: 2px;
}
.guide-feature-actions button {
  padding: 7px 11px;
  font-size: .78rem;
  line-height: 1.1;
  border-radius: 8px;
  cursor: pointer;
}
.guide-screen .extra-header {
  padding: 5px 2px 12px;
}
.guide-screen .extra-header h2 {
  font-size: 1.1rem;
  margin: 0 0 4px;
}
.guide-screen .extra-header p {
  font-size: .73rem;
}
.guide-screen .guide-content {
  min-height: 150px;
  flex: 1;
  margin-top: 5px;
  overscroll-behavior: contain;
}
.epg-shell {
  min-width: max-content;
  --guide-channel-width: 190px;
}
.epg-grid-head {
  z-index: 9;
}
.epg-channel {
  z-index: 7;
  min-height: 63px;
}
.epg-sticky {
  z-index: 10;
}
.epg-now-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e16cbb;
  z-index: 6;
  pointer-events: none;
  box-shadow: 0 0 12px #e16cbb80;
  transform: translateX(-1px);
}
.epg-now-marker::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 32px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f3a0d7;
  box-shadow: 0 0 0 3px #4c2940;
}
.epg-now-marker span {
  position: sticky;
  top: 0;
  display: inline-block;
  white-space: nowrap;
  transform: translateX(-50%);
  padding: 4px 7px;
  background: #bb5997;
  border: 1px solid #ec97c5;
  border-radius: 0 0 5px 5px;
  font-size: .61rem;
  color: white;
  font-weight: 800;
  letter-spacing: .03em;
}
.epg-program.focus {
  outline: 2px solid #e0b5ff;
  z-index: 2;
  background: #654184;
}
.epg-program.on-air {
  background: #5c4678;
  box-shadow: inset 2px 0 #d4afff;
}
.epg-ticks {
  overflow: visible;
}
.epg-track {
  overflow: hidden;
}
.epg-grid-rows {
  position: relative;
}

@media(max-width:1150px) {
  .guide-feature {
    max-height: none;
    min-height: 160px;
  }
  .guide-preview-mount {
    width: 210px;
    min-width: 180px;
  }
  .guide-feature-description {
    display: none;
  }
}

@media(max-width:760px) {
  .guide-feature {
    padding: 9px;
    gap: 10px;
    min-height: 110px;
  }
  .guide-preview-mount {
    min-width: 125px;
    max-width: 42%;
    width: 42%;
  }
  .guide-feature-body h3 {
    font-size: .87rem;
  }
  .guide-feature-current {
    font-size: .77rem;
  }
  .guide-feature-times {
    font-size: .66rem;
  }
  .guide-feature-actions button {
    padding: 5px 7px;
    font-size: .68rem;
  }
  .guide-screen .extra-header {
    gap: 8px;
  }
  .guide-feature-description {
    display: none;
  }
  .guide-feature-label {
    font-size: .55rem;
  }
  .epg-sticky,.epg-channel {
    min-width: 145px;
    width: 145px;
  }
  .epg-shell {
    --guide-channel-width: 145px!important;
  }
}

/* 0.3.5: playback identity carried from Live into TV Guide. Focus and playback are separate. */

.guide-feature.is-playing {
  border-color: #2d6c5e;
  background: linear-gradient(110deg,#152c2c 0%,#171724 68%,#1a1429 100%);
  box-shadow: inset 3px 0 #3ad7a1;
}
.guide-feature-label {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: #77e9bc;
}
.guide-jump {
  border: 1px solid #426959!important;
  background: #203d37!important;
  color: #b6ffda!important;
  font-size: .66rem!important;
  letter-spacing: 0!important;
  padding: 5px 9px!important;
  border-radius: 7px!important;
  cursor: pointer;
}
.guide-jump:hover {
  background: #2b5349!important;
}
.epg-row.is-playing {
  position: relative;
}
.epg-row.is-playing .epg-channel {
  background: #173c35!important;
  border-left: 4px solid #4ce6ab;
  color: #e8fff4;
  box-shadow: inset 0 0 0 1px rgba(91,236,184,.22);
}
.epg-row.is-playing .epg-track {
  background: linear-gradient(90deg,#17443b,#12372e) !important;
  box-shadow: inset 0 1px rgba(83,225,162,.25),inset 0 -1px rgba(83,225,162,.25);
}
.epg-row.is-playing .epg-track::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg,rgba(62,227,163,.12),rgba(62,227,163,.04));
  z-index: 0;
}
.epg-row.is-playing .epg-program {
  background: #285849;
  border-color: #408c6c;
  box-shadow: inset 2px 0 #59dcab;
  color: #e8fff1;
  z-index: 1;
}
.epg-row.is-playing .epg-program.on-air {
  background: #31745a;
  border-color: #66e6aa;
  color: #fff;
}
.epg-row.is-playing .epg-program.focus {
  outline: 2px solid #d7b9ff;
}
.epg-row.is-playing .epg-ticklines {
  z-index: 1;
  opacity: .2;
}
.epg-row.is-guide-focused:not(.is-playing) .epg-channel {
  box-shadow: inset 3px 0 #b997ff;
  color: #f4e8ff;
}
.epg-row.is-guide-focused:not(.is-playing) .epg-track {
  background: #20152b;
}
.epg-playing-flag {
  display: none;
  flex: none;
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #123c2b;
  background: #73f0b9;
  padding: 3px 5px;
  border-radius: 4px;
}
.epg-row.is-playing .epg-playing-flag {
  display: inline-block;
}
.epg-channel-name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.epg-row.is-playing .epg-channel {
  gap: 5px;
  padding-left: 8px;
}

@media(max-width:900px) {
  .epg-playing-flag {
    font-size: .49rem;
    padding: 2px 3px;
  }
  .guide-feature-label {
    gap: 7px;
  }
}

/* 0.3.6: The loading / buffering surface covers the whole video, edge to edge. */

.preview-box {
  position: relative!important;
  overflow: hidden;
  isolation: isolate;
}
.preview-box .play-status {
  position: absolute!important;
  inset: 0!important;
  margin: 0!important;
  top: 0!important;
  left: 0!important;
  right: 0!important;
  bottom: 0!important;
  width: 100%!important;
  height: 100%!important;
  z-index: 8;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 11px;
  padding: 20px;
  text-align: center;
  background: rgba(8,7,18,.96)!important;
  border-radius: 0!important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.preview-box .play-status.hide {
  display: none!important;
}
.preview-box .play-status .preview-symbol {
  background: transparent!important;
  color: transparent!important;
  border: 3px solid rgba(190,155,240,.22)!important;
  border-top-color: #c29aff!important;
  border-right-color: #80d4ff!important;
  width: 38px!important;
  height: 38px!important;
  animation: spin .95s linear infinite!important;
  box-shadow: none!important;
  font-size: 0!important;
}
.preview-box .play-status.errored {
  background: #1b0e20!important;
  color: #ffc8c6;
}
.preview-box .play-status:not(.loading) .preview-symbol {
  animation: none!important;
  border-color: #745179!important;
}
.preview-box #play-status-text {
  font-weight: 550;
  max-width: 90%;
  line-height: 1.5;
  color: #e8dff5;
  font-size: .81rem;
}

/* 0.3.7: restore each Live TV channel's thin programme bar, WITHOUT visible percentages. */

.ch .channel-progress {
  display: block;
  min-width: 0;
  width: 100%;
  margin-top: 2px;
}
.ch .channel-progress:empty {
  display: none;
}
.ch .channel-progress .programme-progress {
  display: block;
  height: 3px;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: #413550;
}
.ch .channel-progress .programme-progress span {
  display: block;
  height: 100%;
}

/* Only start/end times are shown in the current programme detail. */

.programme-times span:nth-child(2) {
  color: #afa3c3;
  font-weight: 400;
}

/* Consistent category count presentation. */

.cats .cat .count {
  flex: none;
  min-width: 2.1em;
  text-align: right;
  font-size: .7rem;
  font-variant-numeric: tabular-nums;
  opacity: .64;
}

/* Guide channel labels and programme cards indicate their click-to-play action. */

.epg-channel,.epg-program {
  cursor: pointer;
}

/* Voddler 0.3.8: Windows catch-up controls and guide archive navigation. */

.brand-logo {
  height: 38px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  flex: none;
}
.brand-logo[hidden],.start-logo[hidden] {
  display: none!important;
}
.start-logo {
  width: min(220px,70%);
  max-height: 90px;
  object-fit: contain;
  object-position: left;
  display: block;
  margin: 0 0 8px;
}
.catchup-pill {
  font-weight: 730;
  display: inline-flex;
  align-items: center;
  font-size: .61rem;
  white-space: nowrap;
  color: #87ebc8;
  border: 1px solid #35675c;
  border-radius: 5px;
  padding: 1px 4px;
  vertical-align: middle;
  margin-left: 5px;
}
.archive-browser {
  margin: 17px 0 12px;
  padding: 12px;
  border: 1px solid #3a3150;
  border-radius: 12px;
  background: #161324;
}
.archive-browser h3 {
  font-size: .92rem;
  margin: 0 0 6px;
  color: #d9c2ff;
}
.archive-days {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 8px 0 12px;
  scrollbar-width: thin;
}
.archive-days button {
  flex: none;
  border: 1px solid #52416d;
  border-radius: 8px;
  background: #241a33;
  color: #cec0de;
  padding: 7px 9px;
  cursor: pointer;
  font-size: .75rem;
}
.archive-days button.active {
  background: #573d7c;
  border-color: #b694fc;
  color: white;
}
.archive-entry {
  display: grid;
  grid-template-columns: 80px minmax(0,1fr) 18px;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 9px 6px;
  border: 0;
  border-bottom: 1px solid #3c304f;
  color: #f0e9f8;
  background: none;
  font-size: .79rem;
  cursor: pointer;
}
.archive-entry:hover {
  background: #342547;
}
.archive-entry strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.archive-time {
  font-size: .69rem;
  color: #a8d5c1;
}
.archive-controls {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px 10px;
  border: 1px solid #275e4b;
  border-radius: 9px;
  background: #153229;
  color: #b7ffe2;
  margin: 4px 0 7px;
}
.archive-position {
  font-size: .67rem;
  letter-spacing: .06em;
  color: #8fdfc3;
  font-weight: 700;
}
.archive-buttons {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.archive-buttons button {
  cursor: pointer;
  font-size: .73rem;
  border: 1px solid #43735e;
  border-radius: 7px;
  color: #e9fff4;
  background: #24503d;
  padding: 6px 9px;
}
.archive-buttons .live-return {
  background: #236449;
  font-weight: 800;
}
.guide-feature .archive-controls {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 2px 0;
}
.epg-program.is-catchup {
  border-bottom: 2px solid #4dbd9d;
}
.epg-program.is-past:not(.is-catchup) {
  opacity: .45;
  cursor: not-allowed;
}

@media(max-width:940px) {
  .brand-logo {
    max-width: 110px;
    height: 31px;
  }
  .archive-entry {
    grid-template-columns: 70px minmax(0,1fr) 12px;
  }
}

/* Voddler 0.3.9: guide legibility, channel labels, consistent Catch-up icons. */

/* Let the guide description and controls use their actual space, rather than clipping the lower lines. */

.guide-feature {
  min-height: 210px;
  max-height: none;
  height: auto;
  align-items: center;
  overflow: visible;
  padding: 16px 18px;
  gap: 20px;
}
.guide-preview-mount {
  width: 270px;
  min-width: 200px;
  max-width: 30%;
  aspect-ratio: 16 / 9;
  align-self: center;
  overflow: hidden;
}
.guide-feature-body {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 7px;
  padding: 2px 0;
  overflow: visible;
}
.guide-feature-body h3 {
  font-size: 1.18rem;
  line-height: 1.35;
  min-height: 1.5em;
}
.guide-feature-current {
  line-height: 1.35;
  min-height: 1.2em;
}
.guide-feature-times {
  font-size: .76rem;
  line-height: 1.45;
  flex: none;
}
.guide-feature-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: none;
  min-height: 0;
  font-size: .78rem;
  line-height: 1.5;
  color: #c9bddb;
  overflow-wrap: anywhere;
  margin: 0;
  opacity: 1;
}
.guide-feature-description:empty {
  display: none;
}
.guide-feature-actions {
  margin-top: 4px;
  flex: none;
  align-items: center;
}
.guide-feature .archive-controls {
  flex: none;
}

/* The left sticky channel column is wide enough for logo, channel name, catch-up and on-air badge. */

.epg-shell {
  --guide-channel-width: 245px;
}
.epg-sticky,.epg-channel {
  width: var(--guide-channel-width)!important;
  min-width: var(--guide-channel-width)!important;
  max-width: var(--guide-channel-width)!important;
  box-sizing: border-box;
}
.epg-channel {
  display: flex;
  min-width: 0;
  gap: 9px;
  padding: 8px 10px;
  align-items: center;
  background: #1b1529;
  white-space: nowrap;
  overflow: hidden;
}
.epg-channel img {
  flex: none;
  max-width: 31px;
  max-height: 31px;
  object-fit: contain;
}
.epg-channel-name {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .81rem;
  font-weight: 550;
  line-height: 1.3;
}
.epg-playing-flag {
  flex: none;
}

/* Round, recognisable replay symbol instead of text arrow; keep number of archive days in list. */

.catchup-pill {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  flex: none;
  border: 1px solid #4c8b75;
  border-radius: 999px;
  background: #17362e;
  color: #9ef1c9;
  padding: 2px 5px;
  font-size: .6rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
  margin-left: 4px;
  white-space: nowrap;
}
.catchup-pill .catchup-symbol {
  display: block;
  flex: none;
  width: 13px;
  height: 13px;
}
.epg-channel .catchup-pill {
  margin-left: 0;
  font-size: .56rem;
  padding: 3px 5px;
}
.epg-channel .catchup-days {
  font-size: .56rem;
}
.epg-program.is-catchup {
  display: flex;
  align-items: center;
  gap: 6px;
}
.epg-program .epg-catchup-icon {
  flex: none;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid #67bfa1;
  color: #a6fbd4;
  background: #163a30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.epg-catchup-icon .catchup-symbol {
  width: 12px;
  height: 12px;
}
.epg-program-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.archive-browser h3 {
  display: flex;
  align-items: center;
  gap: 7px;
}
.archive-browser h3 .catchup-symbol,[data-d-action="archive"] .catchup-symbol {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

/* Keep preview/controls readable on narrow widths. */

@media(max-width:940px) {
  .guide-feature {
    min-height: 180px;
    padding: 12px;
    gap: 12px;
  }
  .guide-preview-mount {
    width: 210px;
    min-width: 150px;
  }
  .guide-feature-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    font-size: .73rem;
  }
  .epg-shell {
    --guide-channel-width: 210px!important;
  }
}

@media(max-width:760px) {
  .guide-feature {
    align-items: flex-start;
    min-height: 0;
    padding: 11px;
    gap: 10px;
  }
  .guide-preview-mount {
    width: 38%;
    min-width: 125px;
    max-width: 38%;
    align-self: flex-start;
  }
  .guide-feature-body {
    gap: 4px;
  }
  .guide-feature-description {
    display: none;
  }
  .epg-shell {
    --guide-channel-width: 182px!important;
  }
  .epg-channel {
    gap: 5px!important;
    padding: 5px!important;
  }
  .epg-channel .catchup-days {
    display: none;
  }
  .epg-channel-name {
    font-size: .72rem;
  }
}

/* Voddler 0.3.10: visual regression fixes for guide, archive icons and legible text. */

/* CSS must ship with a unique filename so the browser/CDN cannot keep the 0.3.8 stylesheet. */

.catchup-symbol {
  display: inline-block !important;
  box-sizing: border-box !important;
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  min-height: 15px !important;
  max-width: 15px !important;
  max-height: 15px !important;
  flex: 0 0 15px !important;
  vertical-align: middle;
  fill: none !important;
  overflow: visible;
}
.catchup-pill .catchup-symbol,
.epg-catchup-icon .catchup-symbol {
  width: 13px !important;
  height: 13px !important;
  min-width: 13px !important;
  min-height: 13px !important;
  max-width: 13px !important;
  max-height: 13px !important;
  flex-basis: 13px !important;
}

/* The 0.3.9 injected SVGs were unconstrained if the old stylesheet was cached. */

.epg-program.is-catchup {
  display: flex;
  align-items: center;
  gap: 6px;
}
.epg-program.is-catchup .epg-catchup-icon {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  flex: 0 0 20px !important;
  overflow: hidden;
  border-radius: 50%;
}
.epg-program.is-catchup .epg-program-title {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Program overview: no fixed-height card and no disappearing description. */

#guide-feature-card.guide-feature {
  display: flex;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 100%;
  height: auto !important;
  min-height: 192px;
  max-height: none !important;
  overflow: visible !important;
  align-items: center;
  padding: 16px 20px;
  gap: 18px;
}
#guide-feature-card .guide-feature-body {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  align-self: stretch;
  justify-content: center;
  gap: 5px;
  padding: 4px 0;
  overflow: visible !important;
}
#guide-feature-card #guide-selected-channel,
#guide-feature-card #guide-selected-now {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
#guide-feature-card #guide-selected-description {
  display: block !important;
  white-space: normal !important;
  overflow-wrap: break-word;
  overflow-y: auto !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: initial !important;
  max-height: 10.5em !important;
  min-height: 0;
  font-size: .81rem;
  line-height: 1.55;
  color: #c6bad9;
  scrollbar-width: thin;
  margin: 3px 0 0;
}
#guide-feature-card #guide-selected-description:empty {
  display: none !important;
}
#guide-feature-card .guide-feature-actions {
  flex: none;
  margin-top: 7px;
}
#guide-feature-card .guide-preview-mount {
  flex: 0 0 270px;
  max-width: 30%;
  min-width: 180px;
  align-self: center;
}

/* Keep the channel name on a dedicated row; catch-up and playing labels below. */

.epg-channel {
  display: grid !important;
  grid-template-columns: 32px minmax(0,1fr) auto;
  grid-template-rows: minmax(18px,auto) minmax(16px,auto);
  gap: 2px 7px !important;
  align-content: center;
  align-items: center;
  box-sizing: border-box;
  padding: 6px 10px !important;
  overflow: hidden;
}
.epg-channel>img {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 29px;
  height: 29px;
  max-width: 29px;
  max-height: 29px;
  align-self: center;
}
.epg-channel>.epg-channel-name {
  display: block;
  grid-column: 2 / 4;
  grid-row: 1;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .81rem;
  font-weight: 600;
}
.epg-channel>.catchup-pill {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
  margin: 0;
}
.epg-channel>.epg-playing-flag {
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
}

/* On very narrow screens retain readability instead of hiding programme descriptions entirely. */

@media(max-width:940px) {
  #guide-feature-card.guide-feature {
    align-items: flex-start;
    padding: 12px;
    gap: 12px;
    min-height: 0;
  }
  #guide-feature-card .guide-preview-mount {
    flex: 0 0 210px;
    max-width: 35%;
    min-width: 140px;
    align-self: flex-start;
  }
  #guide-feature-card #guide-selected-description {
    display: block !important;
    font-size: .75rem;
    max-height: 8em !important;
  }
}

@media(max-width:600px) {
  #guide-feature-card.guide-feature {
    flex-wrap: wrap;
    gap: 8px;
  }
  #guide-feature-card .guide-preview-mount {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    aspect-ratio: 16/9;
  }
  #guide-feature-card .guide-feature-body {
    flex-basis: 100%;
    min-width: 0;
  }
}

/* Voddler 0.3.11: every programme owns only its non-overlapping time slot. */

.epg-track>.epg-program {
  box-sizing: border-box;
  min-width: 0!important;
  max-width: none;
  isolation: isolate;
}
.epg-track>.epg-program .epg-program-title {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.epg-track>.epg-program.is-micro {
  padding: 0!important;
  gap: 0!important;
  min-width: 0!important;
  overflow: hidden;
}
.epg-track>.epg-program.is-micro>* {
  display: none!important;
}

/* 0.3.11: Catch-up panel toggles on the same button; the base .hide rule controls visibility. */

[data-d-action="archive"][aria-expanded="true"] {
  border-color: #a88ada;
  background: #332448;
  color: #f1e6ff;
}

/* 0.3.12: prominent pagination for providers with thousands of Live TV channels. */

.guide-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 13px;
  margin-top: 10px;
  background: #1b1428;
  border: 1px solid #49365d;
  border-radius: 11px;
  color: #f0e9f8;
  flex: none;
}
.guide-page-summary {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
  min-width: 0;
}
.guide-pagination-label {
  font-size: .64rem;
  letter-spacing: .13em;
  font-weight: 800;
  color: #b6a5cd;
}
.guide-page-summary strong {
  font-size: .82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.guide-page-index {
  font-size: .78rem;
  color: #c8b9d7;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.guide-page-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.guide-page-actions label {
  color: #c8b9d7;
  font-size: .75rem;
}
.guide-page-actions input {
  width: 70px;
  min-width: 65px;
  box-sizing: border-box;
  padding: 7px 9px;
  border: 1px solid #604577;
  border-radius: 8px;
  background: #100d19;
  color: #f7efff;
  font-size: .85rem;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
}
.guide-page-actions input::-webkit-inner-spin-button,.guide-page-actions input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.guide-page-actions button {
  cursor: pointer;
  border: 1px solid #59416f;
  border-radius: 8px;
  background: #322443;
  color: #f5eaff;
  padding: 8px 11px;
  font-size: .78rem;
  line-height: 1.2;
  white-space: nowrap;
}
.guide-page-actions button:hover:not(:disabled) {
  background: #49325e;
  border-color: #9872bd;
}
.guide-page-actions button:focus-visible,.guide-page-actions input:focus-visible {
  outline: 2px solid #c99bff;
  outline-offset: 2px;
}
.guide-page-actions button:disabled {
  cursor: default;
  opacity: .4;
}
.guide-screen .guide-content {
  margin-top: 10px;
}

@media(max-width:730px) {
  .guide-pagination {
    padding: 10px;
    gap: 9px;
  }
  .guide-page-actions {
    width: 100%;
  }
  .guide-page-actions button {
    padding: 8px;
  }
  .guide-page-actions input {
    width: 58px;
  }
}

/* 0.3.13 – extended Telia-style EPG timeline and readable programme cards. */

.guide-actions {
  gap: 6px;
}
.guide-actions select#guide-span {
  min-width: 76px;
  max-width: 100px;
}

/* Preserve real broadcast widths. Allow a 12/24-hour timeline to scroll horizontally. */

.guide-screen .guide-content {
  overflow: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}
.epg-shell {
  min-width: max-content;
}
.epg-grid-head {
  position: sticky;
  top: 0;
}
.epg-ticks span {
  white-space: nowrap;
}
.epg-track>.epg-program {
  height: 45px;
  top: 8px;
  min-width: 0!important;
  max-width: none;
  border-radius: 5px;
  box-sizing: border-box;
  padding: 6px 9px!important;
  font-size: .81rem;
  line-height: 1.25;
  text-align: left;
  white-space: normal;
  display: flex;
  align-items: center;
  border-right-color: #725688;
  box-shadow: none;
}
.epg-track>.epg-program:not(.is-catchup) .epg-program-title {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.epg-track>.epg-program.is-short {
  padding: 5px!important;
}
.epg-track>.epg-program.is-short .epg-program-title {
  white-space: nowrap;
  display: block;
  -webkit-line-clamp: unset;
  text-overflow: ellipsis;
}

/* Short slots are shown as slim colored time blocks, not cut off words or overlapping titles. */

.epg-track>.epg-program.is-tiny {
  padding: 0!important;
  justify-content: center;
  min-width: 0!important;
}
.epg-track>.epg-program.is-tiny .epg-program-title {
  display: none!important;
}
.epg-track>.epg-program.is-tiny .epg-catchup-icon {
  display: none!important;
}
.epg-track>.epg-program:hover,.epg-track>.epg-program:focus-visible {
  filter: brightness(1.22);
  z-index: 4;
  outline: 2px solid #d5aaff;
  outline-offset: -2px;
}
.epg-info-tooltip {
  position: fixed;
  z-index: 999;
  pointer-events: none;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #9170bb;
  border-radius: 11px;
  background: #211831;
  color: #f9f3ff;
  box-shadow: 0 12px 38px #000a;
  font-size: .82rem;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}
.epg-info-tooltip strong {
  display: block;
  font-size: .92rem;
  font-weight: 730;
  line-height: 1.3;
  margin-bottom: 4px;
}
.epg-info-tooltip .epg-tip-meta {
  display: block;
  color: #c7afd9;
  font-size: .73rem;
}
.epg-info-tooltip p {
  margin: 8px 0 0;
  color: #d0c3dc;
  font-size: .75rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media(max-width:760px) {
  .guide-actions label[for=guide-span] {
    display: none;
  }
  .epg-info-tooltip {
    max-width: calc(100vw - 24px);
  }
}

/* Voddler 0.3.14 — same Voddler identity, more legible Telia-style schedule cards.
   Card x/width remain based solely on programme timestamps: NO minimum visual
   width may push a programme over the next transmission. */

.guide-screen .epg-row {
  min-height: 78px;
}
.guide-screen .epg-track {
  height: 78px;
  min-height: 78px;
  box-sizing: border-box;
}
.guide-screen .epg-channel {
  min-height: 78px;
  box-sizing: border-box;
}
.guide-screen .epg-track>.epg-program {
  top: 7px;
  height: 63px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 9px!important;
  border-radius: 7px;
  overflow: hidden;
  min-width: 0!important;
  max-width: none;
  white-space: normal;
  line-height: 1.18;
  transition: filter .12s ease,border-color .12s ease;
}
.guide-screen .epg-program-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1 1 auto;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
}
.guide-screen .epg-program .epg-program-title,
.guide-screen .epg-program.is-catchup .epg-program-title {
  display: -webkit-box;
  min-width: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  font-size: .8rem;
  line-height: 1.23;
  font-weight: 550;
}
.guide-screen .epg-program-clock {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #cfbfdc;
  font-size: .68rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.guide-screen .epg-row.is-playing .epg-program-clock {
  color: #b9ecdc;
}

/* Narrow time slots are real: show shortened titles rather than falsifying duration. */

.guide-screen .epg-track>.epg-program.is-short {
  padding: 7px 5px!important;
  gap: 3px;
}
.guide-screen .epg-track>.epg-program.is-short .epg-program-title {
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.guide-screen .epg-track>.epg-program.is-short .epg-program-clock {
  display: none;
}
.guide-screen .epg-track>.epg-program.is-short .epg-catchup-icon {
  width: 13px;
  height: 13px;
}
.guide-screen .epg-track>.epg-program.is-tiny {
  padding: 0!important;
  gap: 0!important;
}
.guide-screen .epg-track>.epg-program.is-tiny .epg-program-copy,
.guide-screen .epg-track>.epg-program.is-tiny .epg-catchup-icon {
  display: none!important;
}
.guide-screen .epg-track>.epg-program.is-micro>* {
  display: none!important;
}
.guide-screen .epg-program:hover,
.guide-screen .epg-program:focus-visible {
  outline: 2px solid #d5aaff;
  outline-offset: -2px;
  z-index: 4;
  filter: brightness(1.18);
}

@media (max-width:760px) {
  .guide-screen .epg-row,.guide-screen .epg-track,.guide-screen .epg-channel {
    min-height: 70px;
    height: 70px;
  }
  .guide-screen .epg-track>.epg-program {
    top: 6px;
    height: 57px;
  }
}

/* 0.3.18 – Playback direct-stream configuration */

.media-host-label {
  display: grid;
  gap: 8px;
  max-width: 640px;
  margin: 16px 0 8px;
  font-weight: 600;
}
.media-host-label input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid rgba(190,162,244,.3);
  border-radius: 10px;
  background: #171325;
  color: #f4efff;
  font: inherit;
}
.media-host-label input:focus {
  outline: 2px solid rgba(168,120,252,.65);
  outline-offset: 1px;
}
.media-proxy-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  font-size: 14px;
}
.media-proxy-label input {
  accent-color: #ab70ff;
  width: 18px;
  height: 18px;
}
.media-proxy-label input:disabled {
  opacity: .45;
}
#media-host-status {
  margin-left: 12px;
}
