.kijker-tv {
  --k-bg: #100e0c;
  --k-surface: #221e19;
  --k-text: #f4efe6;
  --k-accent: #e4a15a;
  --k-ink: #1a140e;
  --k-line: rgba(255, 255, 255, 0.12);
  --k-muted: rgba(244, 239, 230, 0.62);
  height: 100vh;
  height: 100dvh;
  display: grid !important;
  grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.72fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  grid-template-areas: none;
  overflow: hidden;
  background: var(--k-bg);
  color: var(--k-text);
  font: 17px/1.35 Outfit, ui-sans-serif, system-ui, sans-serif;
}

.kijker-tv button,
.kijker-tv input {
  font: inherit;
  color: inherit;
  background: var(--k-surface);
  border: 0;
  border-radius: 0;
}

.kijker-tv button {
  cursor: pointer;
}

.kijker-tv button:focus,
.kijker-tv input:focus,
.kijker-tv a:focus {
  outline: 3px solid #67f0ea;
  outline-offset: 2px;
}

.kijker-tv .playcol {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.kijker-tv .sidecol {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0;
  min-height: 0 !important;
  height: 100%;
  overflow: hidden !important;
  border-left: 1px solid var(--k-line);
}

.kijker-tv .stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  background: #000;
}

.kijker-tv .stage.full {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}

.kijker-tv #kijker-exit {
  display: none !important;
}

.kijker-tv .stage.full.show-exit #kijker-exit {
  display: inline-flex !important;
  position: absolute;
  z-index: 6;
  top: 16px;
  right: 16px;
  align-items: center;
  justify-content: center;
  height: 52px;
  margin: 0;
  padding: 0 18px;
  background: #e4a15a;
  color: #1a140e;
  font-weight: 700;
  cursor: pointer;
}

.kijker-tv video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.kijker-tv video::cue {
  visibility: hidden;
  opacity: 0;
}

.kijker-tv .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  background: rgba(16, 14, 12, 0.8);
  color: var(--k-accent);
  font-weight: 700;
}

.kijker-tv .overlay[hidden] {
  display: none !important;
}

.kijker-tv .overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
}

.kijker-tv .overlay button {
  margin-top: 12px;
  height: 44px;
  padding: 0 16px;
  background: var(--k-accent);
  color: var(--k-ink);
  font-weight: 700;
}

.kijker-tv .transport {
  display: block !important;
  flex: 0 0 auto;
  width: 100% !important;
  padding: 8px;
  border-top: 1px solid var(--k-line);
  background: var(--k-bg);
}

.kijker-tv .now {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.kijker-tv .now p {
  flex: 1;
  min-width: 0;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kijker-tv .now button {
  width: auto !important;
  min-width: 52px;
  height: 48px;
  margin: 0 !important;
  padding: 0 12px !important;
  flex: 0 0 auto;
  color: var(--k-accent);
  font-size: 22px;
}

.kijker-tv .line {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch;
  width: 100%;
  height: 48px;
}

.kijker-tv .line .row {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
}

.kijker-tv .line .star,
.kijker-tv .line .star.on {
  background: transparent;
  color: var(--k-accent);
  font-size: 22px;
  border-left: 1px solid var(--k-line);
}

.kijker-tv .keys {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 8px;
  width: 100% !important;
  margin-top: 8px;
}

.kijker-tv .keys button {
  display: inline-flex !important;
  flex: 1 1 0 !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 52px;
  margin: 0 !important;
  float: none !important;
  padding: 0 8px;
  white-space: nowrap;
}

.kijker-tv .keys .accent,
.kijker-tv .choices button.on {
  background: var(--k-accent);
  color: var(--k-ink);
  font-weight: 700;
}

.kijker-tv .choices {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  flex: 0 0 auto;
  padding: 8px;
}

.kijker-tv .choices button {
  min-height: 52px;
}

.kijker-tv .channellist {
  min-height: 0 !important;
  flex: 1 1 auto;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border-top: 1px solid var(--k-line);
  background: var(--k-surface);
}

.kijker-tv .channellist header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
}

.kijker-tv .channellist header span {
  color: var(--k-muted);
}

#kijker #kijker-search {
  display: block;
  box-sizing: border-box;
  width: calc(100% - 24px) !important;
  margin: 0 12px 8px !important;
  height: 48px !important;
  padding: 0 12px !important;
  background: #100e0c !important;
  color: #f4efe6 !important;
  -webkit-text-fill-color: #f4efe6 !important;
  caret-color: #e4a15a !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 0 !important;
  font-size: 18px !important;
  line-height: 48px !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#kijker #kijker-search::placeholder {
  color: rgba(244, 239, 230, 0.55) !important;
  -webkit-text-fill-color: rgba(244, 239, 230, 0.55) !important;
  opacity: 1 !important;
}

#kijker #kijker-search[hidden] {
  display: none !important;
}

.kijker-tv #kijker-rows {
  display: block !important;
  flex: 1 1 0% !important;
  min-height: 0 !important;
  height: calc(100vh - 250px) !important;
  max-height: calc(100vh - 250px) !important;
  overflow-x: hidden !important;
  overflow-y: scroll !important;
  overflow-anchor: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
}

.kijker-tv .row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 48px;
  padding: 0 12px;
  text-align: left;
  background: transparent;
  border-bottom: 1px solid var(--k-line);
}

.kijker-tv .row.on {
  background: rgba(255, 255, 255, 0.06);
  color: var(--k-accent);
}

.kijker-tv .row span {
  color: var(--k-muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .kijker-tv {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .kijker-tv .stage {
    height: 32vh;
    flex: none;
  }
  .kijker-tv .sidecol {
    border-left: 0;
    height: auto !important;
    overflow: visible !important;
  }
  .kijker-tv #kijker-rows {
    height: 55vh !important;
    max-height: 55vh !important;
  }
}
