:root {
  color-scheme: dark;
  --ink: #07090f;
  --ink-2: #0c1018;
  --line: rgba(255, 255, 255, .1);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #7dd3fc;
}
html {
  min-height: 100%;
  background-color: var(--ink);
}
html, body { min-height: 100%; }
body.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.site-main { flex: 1 0 auto; width: 100%; }
.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
body {
  margin: 0;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(56, 189, 248, .14), transparent 52%),
    radial-gradient(900px 500px at 110% 0%, rgba(99, 102, 241, .14), transparent 48%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-position: center top;
}
.glass-nav, .glass-card, .glass-btn, .glass-input, .portal-select {
  background: rgba(12, 16, 24, .62);
  border: 1px solid var(--line);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.glass-nav { background: rgba(7, 9, 15, .82); }
.glass-card { border-radius: 1rem; }
.glass-btn {
  border-radius: .8rem;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
  cursor: pointer;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
}
.glass-btn:hover { border-color: rgba(125, 211, 252, .35); background: rgba(56, 189, 248, .12); }
.glass-btn:disabled,
.glass-btn[disabled] {
  opacity: .4;
  pointer-events: none;
  cursor: default;
}
.glass-btn.is-primary, .glass-btn-primary {
  background: linear-gradient(180deg, rgba(56, 189, 248, .28), rgba(14, 165, 233, .16));
  border-color: rgba(125, 211, 252, .35);
}
.glass-btn.is-danger {
  border-color: rgba(248, 113, 113, .38);
  color: #fecaca;
}
.glass-btn.is-danger:hover {
  border-color: rgba(248, 113, 113, .55);
  background: rgba(244, 63, 94, .14);
}
.glass-input, select.glass-input, textarea.glass-input {
  width: 100%;
  border-radius: .8rem;
  padding: .55rem .75rem;
  color: #e2e8f0;
  outline: none;
  background: rgba(12, 16, 24, .72);
}
.glass-input:focus { border-color: rgba(125, 211, 252, .45); }
.nav-link {
  padding: .4rem .75rem;
  border-radius: .75rem;
  color: #cbd5e1;
  white-space: nowrap;
}
.nav-link.is-active, .nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.header-bar { width: 100%; }
.header-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
}
.nav-toggle { display: none; }
.portal-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .15rem;
  flex: 1;
}
.icon-btn {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  flex: 0 0 auto;
}
.icon-btn i { font-size: 1.05rem; color: currentColor; }
.bi { color: currentColor; }
.portal-logo {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: normal;
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
}
.portal-logo span {
  font-weight: bolder;
  color: #fff;
}
.fav-btn.is-favorite,
#favoriteBtn.is-favorite {
  border-color: rgba(250, 204, 21, .45);
  background: rgba(250, 204, 21, .12);
}
.channel-card, .tile { transition: transform .15s ease, border-color .15s ease; }
.channel-card:hover, .tile:hover { transform: translateY(-1px); border-color: rgba(125, 211, 252, .28); }
.player-16x9 { position: relative; padding-top: 56.25%; overflow: hidden; border-radius: .85rem; }
.player-16x9 video, .player-16x9 .player-shell { position: absolute; inset: 0; width: 100%; height: 100%; }
.player-shell { display: flex; flex-direction: column; justify-content: space-between; background: transparent; border: 0; box-shadow: none; }
.epg-item.is-now { border-color: rgba(56, 189, 248, .45); background: rgba(14, 165, 233, .12); }
.hidden { display: none !important; }
kbd { border: 1px solid rgba(255,255,255,.12); border-radius: .4rem; padding: .05rem .35rem; font-size: .75rem; }
.range { accent-color: #38bdf8; }
.toast {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 80;
  padding: .8rem 1rem; border-radius: .9rem;
  max-width: min(90vw, 22rem);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, .55);
  overflow: hidden;
}
.login-methods {
  align-items: stretch;
}
.login-methods > .glass-btn,
.login-methods > .telegram-login-overlay {
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  height: 2.75rem;
  box-sizing: border-box;
}
.telegram-login-overlay {
  position: relative;
  display: flex;
  width: 100%;
  height: 2.75rem;
  min-height: 2.75rem;
  overflow: hidden;
  border-radius: .8rem;
}
.telegram-login-overlay .glass-btn {
  width: 100%;
  height: 100%;
  min-height: 2.75rem;
  padding-top: 0;
  padding-bottom: 0;
  justify-content: center;
}
.telegram-login-widget {
  position: absolute;
  inset: 0;
  opacity: 0.011;
}
.telegram-login-widget iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: .35rem;
  background: rgba(7, 9, 15, .7);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  padding: 0;
  margin: 0;
  flex: 0 0 auto;
}
input[type="checkbox"]:checked {
  background: linear-gradient(180deg, #38bdf8, #0ea5e9);
  border-color: #7dd3fc;
}
input[type="checkbox"]:checked::after {
  content: "\F26E";
  font-family: "bootstrap-icons";
  font-size: .78rem;
  line-height: 1;
  color: #071018;
  transform: none;
}
input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(125, 211, 252, .45);
  outline-offset: 2px;
}

select.glass-input {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #7dd3fc 50%),
    linear-gradient(135deg, #7dd3fc 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% - 3px),
    calc(100% - 11px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}
.glass-input:disabled,
.glass-input[disabled],
.glass-input[readonly] {
  opacity: .45;
  cursor: not-allowed;
}
.portal-select-wrap {
  position: relative;
  width: 100%;
}
.portal-select-wrap.is-disabled {
  opacity: .45;
  pointer-events: none;
}
.portal-select-btn {
  width: 100%;
  text-align: left;
  justify-content: space-between;
  min-height: 2.5rem;
  padding: .55rem .75rem;
  border-radius: .8rem;
}
.portal-select-btn::after {
  content: "";
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  padding: 3px;
  transform: rotate(45deg);
  opacity: .7;
  margin-left: .6rem;
}
.portal-select-wrap.is-open .portal-select-btn::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.portal-select-menu {
  position: fixed;
  z-index: 90;
  max-height: 320px;
  overflow: auto;
  border-radius: .9rem;
  padding: .35rem;
}
.portal-select-option {
  padding: .55rem .7rem;
  border-radius: .65rem;
  cursor: pointer;
  color: #e2e8f0;
}
.portal-select-option + .portal-select-option {
  margin-top: .4rem;
}
.portal-select-option:hover,
.portal-select-option.is-active {
  background: rgba(56, 189, 248, .16);
}

details > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .5rem;
}
details > summary::-webkit-details-marker { display: none; }
details > summary::after {
  content: "";
  margin-left: auto;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  padding: 3px;
  transform: rotate(45deg);
  opacity: .7;
}
details[open] > summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.tile {
  padding: .7rem .8rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 64px;
}
.tile.user-card, .tile.service-card, .faq-card {
  min-height: 0;
  align-items: stretch;
  flex-direction: column;
}
.tile-logo, .avatar-sq {
  width: 40px;
  height: 40px;
  border-radius: .7rem;
  object-fit: contain;
  background: rgba(0,0,0,.28);
  flex: 0 0 auto;
}
.tile-title {
  display: block;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.2;
  min-width: 0;
}
.tile-meta {
  font-size: .72rem;
  color: var(--muted);
  margin-top: .15rem;
}
.cards-grid {
  display: grid;
  gap: .7rem;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.playlist-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: .7rem;
}
.faq-grid {
  display: grid;
  gap: 1rem;
  min-width: 0;
}
.faq-devices {
  display: grid;
  gap: .75rem;
}
@media (min-width: 640px) {
  .faq-devices { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: 1fr 1fr; }
}
.compact-form {
  display: grid;
  gap: .5rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  align-items: end;
}
.user-card details, .service-card details, .faq-card details, .playlist-item-card details {
  width: 100%;
}
.playlist-item-card.is-dragging { opacity: .55; }
.playlist-item-card.drag-over { border-color: rgba(125, 211, 252, .55); }
.drag-handle {
  cursor: grab;
  opacity: .55;
  user-select: none;
  padding: 0 .25rem;
}
.drag-handle:active { cursor: grabbing; }
.profile-hero {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  flex-wrap: wrap;
}
.avatar-sq {
  width: 84px;
  height: 84px;
  border-radius: 1.1rem;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(56,189,248,.25), rgba(99,102,241,.18));
  font-size: 2rem;
}
.avatar-sq img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.progress-bar {
  height: .45rem;
  border-radius: 99px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.progress-bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  transition: width .25s ease;
}
.progress-bar.is-danger > span { background: #f87171; }
.progress-bar.is-success > span { background: #34d399; }
.player-btn.is-recording,
#playerMobileRecordBtn.is-recording {
  border-color: rgba(248, 113, 113, .45);
  background: rgba(248, 113, 113, .18);
  color: #fecaca;
}
.monitor-row {
  display: grid;
  grid-template-columns: 56px 1fr 1fr minmax(120px, .8fr);
  gap: .6rem;
  align-items: center;
  padding: .7rem .8rem;
}
@media (max-width: 800px) {
  .monitor-row { grid-template-columns: 1fr 1fr; }
}
.api-fields { display: none; gap: .75rem; }
.api-fields.is-open { display: grid; }

.portal-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 16rem;
  gap: .75rem;
  color: #9ca3af;
  grid-column: 1 / -1;
  width: 100%;
  text-align: center;
}
.cards-grid.is-loading,
.playlist-items.is-loading,
#faqExamples.is-loading {
  min-height: 16rem;
}
.channel-loading {
  display: flex;
  min-height: 16rem;
  align-items: center;
  justify-content: center;
}
.channel-loading {
  width: 100%;
}
.portal-loader-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid rgba(255,255,255,.15);
  border-top-color: #fff;
  border-radius: 50%;
  animation: portal-spin .7s linear infinite;
}
@keyframes portal-spin { to { transform: rotate(360deg); } }

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 211, 252, .45) rgba(255,255,255,.06);
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track {
  background: rgba(255,255,255,.04);
  border-radius: 99px;
}
*::-webkit-scrollbar-thumb {
  background: rgba(125, 211, 252, .35);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: rgba(125, 211, 252, .55);
  background-clip: padding-box;
}
.portal-select-menu {
  scrollbar-width: thin;
  scrollbar-color: rgba(125, 211, 252, .5) rgba(255,255,255,.04);
}

.player-16x9 { background: #000; }
.player-col { min-width: 0; }
.player-shell {
  z-index: 4;
  padding: 0;
  color: #fff;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.player-topbar,
.player-dock,
.player-center-toggle,
.player-btn,
.player-live-btn,
.player-quality-btn,
.player-quality-menu,
.player-subs-btn,
.player-subs-menu {
  pointer-events: auto;
}
.player-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 28px;
  background: linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.18) 70%, transparent 100%);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
}
.player-top-left,
.player-top-actions,
.player-left-controls,
.player-right-controls,
.player-control-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.player-now-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  color: rgba(255,255,255,.92);
  max-width: 42vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-control-row { justify-content: space-between; }
.player-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 61, 87, .16);
  border: 1px solid rgba(255, 93, 109, .35);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
}
.player-status-pill.is-archive {
  background: rgba(56, 189, 248, .16);
  border-color: rgba(125, 211, 252, .35);
}
.player-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4d62;
  box-shadow: 0 0 0 0 rgba(255, 77, 98, .7);
  animation: player-pulse 1.6s ease-out infinite;
}
.player-status-pill.is-archive .player-status-dot {
  background: #7dd3fc;
  box-shadow: none;
  animation: none;
}
@keyframes player-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 98, .55); }
  70% { box-shadow: 0 0 0 8px rgba(255, 77, 98, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 98, 0); }
}
.player-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.player-btn:hover { background: rgba(255,255,255,.12); }
.player-btn:disabled { opacity: .35; pointer-events: none; }
.player-btn.is-busy,
.player-btn:disabled.is-busy {
  opacity: 1;
  pointer-events: none;
}
.player-btn.is-busy i { animation: portal-spin .7s linear infinite; }
.player-btn i { font-size: 1.05rem; pointer-events: none; }
.player-center-toggle {
  width: 68px;
  height: 68px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: rgba(0,0,0,.42);
  color: #fff;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  opacity: 0;
  transform: scale(.96);
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
}
.player-center-toggle:hover {
  transform: scale(1.04);
  background: rgba(0,0,0,.58);
}
.player-dock {
  padding: 0 14px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.42) 70%, transparent 100%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}
#playerWrapper.is-ui-visible .player-topbar,
#playerWrapper.is-paused .player-topbar,
#playerWrapper.is-ui-visible .player-dock,
#playerWrapper.is-paused .player-dock,
#playerWrapper.is-ui-visible .player-center-toggle,
#playerWrapper.is-paused .player-center-toggle {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
#playerWrapper:not(.is-native-player):not(.is-ui-visible):not(.is-paused) .player-topbar,
#playerWrapper:not(.is-native-player):not(.is-ui-visible):not(.is-paused) .player-dock,
#playerWrapper:not(.is-native-player):not(.is-ui-visible):not(.is-paused) .player-center-toggle {
  opacity: 0;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  #playerWrapper:not(.is-native-player):not(.is-ui-visible):not(.is-paused) {
    cursor: none;
  }
}
.player-progress-wrap {
  margin: 0 0 8px;
}
.player-time-label {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,.78);
  white-space: nowrap;
}
.player-time-sep { color: rgba(255,255,255,.35); font-size: 12px; }
.player-progress,
.player-volume {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}
.player-progress::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,.22);
}
.player-volume::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 99px;
  background: rgba(255,255,255,.22);
}
.player-progress::-webkit-slider-thumb,
.player-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border-radius: 50%;
  border: 0;
  background: #fff;
}
.player-progress::-moz-range-track,
.player-volume::-moz-range-track {
  height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,.22);
}
.player-progress::-moz-range-thumb,
.player-volume::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}
.player-volume-wrap {
  display: inline-flex;
  align-items: center;
  width: 84px;
}
body.iframe-body.is-iframe-mobile .player-volume-wrap,
body.iframe-body.is-iframe-mobile #playerMuteBtn {
  display: none !important;
}
.player-live-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
}
.player-live-btn:hover { background: rgba(255,255,255,.12); }
.player-quality {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.player-quality-btn {
  width: auto;
  min-width: 38px;
  padding: 0 10px;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
}
.player-quality-label {
  max-width: 4.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-quality-menu,
.player-subs-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  min-width: 112px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(8, 12, 22, .92);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
  z-index: 8;
}
.player-quality-menu[hidden],
.player-subs-menu[hidden] { display: none; }
.player-quality-option,
.player-subs-option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.player-quality-option:hover,
.player-subs-option:hover { background: rgba(255,255,255,.1); }
.player-quality-option.is-active,
.player-subs-option.is-active {
  background: rgba(56, 189, 248, .18);
  color: #e0f2fe;
}
.player-subs {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.player-subs-btn {
  width: auto;
  min-width: 38px;
  padding: 0 10px;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
}
.player-subs-btn.is-on {
  background: rgba(56, 189, 248, .18);
}
.player-subs-label {
  max-width: 6.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#playerWrapper.is-native-player .player-quality,
#playerWrapper.is-native-player .player-subs {
  display: none !important;
}
body.iframe-body.is-iframe-mobile .player-quality-btn,
body.iframe-body.is-iframe-mobile .player-subs-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  gap: 4px;
}
body.iframe-body.is-iframe-mobile .player-quality-label,
body.iframe-body.is-iframe-mobile .player-subs-label {
  font-size: 10px;
  max-width: 3.8em;
}
body.iframe-body.is-iframe-mobile .player-right-controls {
  gap: 4px;
}
@media (max-width: 420px) {
  body.iframe-body.is-iframe-mobile .player-quality-label,
  body.iframe-body.is-iframe-mobile .player-subs-label {
    display: none;
  }
}
#playerWrapper .player-center-toggle i { pointer-events: none; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .portal-nav {
    display: none;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    order: 3;
  }
  .portal-nav.is-open { display: flex; }
  .portal-nav .nav-link { width: 100%; }
  .header-actions { order: 2; }
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  margin: 0 0 1.1rem;
  font-size: .85rem;
  color: var(--muted);
}
.breadcrumbs a { color: #cbd5e1; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs-sep { opacity: .45; font-size: .7rem; display: inline-flex; }
.breadcrumbs-current { color: #fff; }

.back-to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.35rem;
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.faq-card { padding: 1.35rem 1.5rem; }
.faq-grid,
.faq-examples,
.faq-example-list,
.faq-example-card {
  min-width: 0;
  max-width: 100%;
}
.faq-examples {
  margin-top: 1.75rem;
  padding: 1.35rem 1.5rem;
  overflow: hidden;
}
.faq-example-list {
  display: grid;
  gap: .85rem;
}
.faq-example-card {
  overflow: hidden;
  padding: 1.1rem 1.25rem;
}
.faq-example-card pre {
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-size: .78rem;
  line-height: 1.45;
}

.player-epg-grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}
.player-epg-grid.has-epg {
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, .85fr);
}
@media (max-width: 1024px) {
  .player-epg-grid.has-epg { grid-template-columns: 1fr; }
}

.epg-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  padding: .9rem;
  box-sizing: border-box;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 1rem;
  box-shadow: none;
  backdrop-filter: none;
  overflow: hidden;
}
.epg-panel.hidden { display: none !important; }
#epgTabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  position: relative;
}
#epgTabs .epg-tab,
#epgTabs .epg-day-btn {
  border-radius: 1.2rem;
  padding: 4px 10px;
  font-size: 13px;
  flex: 0 0 auto;
}
#epgTabs .epg-day-btn:disabled {
  opacity: .35;
  pointer-events: none;
}
#epgTabs .epg-day-label {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
#epgTabs .epg-day-picker {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
#epgTabs .epg-tab.is-primary {
  background: rgba(0, 128, 255, .25);
  border-color: rgba(0, 128, 255, .4);
}
.player-time-wrap {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  margin: 0;
  padding: 0 .15rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  user-select: none;
}
.player-time-wrap.hidden { display: none !important; }
#epgContent {
  flex: 1 1 auto;
  overflow-y: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0 2px 0 0;
  min-height: 0;
}
.epg-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  width: 100%;
  text-align: left;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.epg-row:last-child { border-bottom: 0; }
.epg-row.is-now { color: #fff; background: rgba(14, 165, 233, .08); }
.epg-time {
  flex: 0 0 auto;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: .5rem;
  background: rgba(0, 128, 255, .2);
  border: 1px solid rgba(125, 211, 252, .28);
}
.epg-catchup {
  margin-left: auto;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: .6rem;
}
.epg-now-expand {
  border: 0;
  background: transparent;
  color: #9cc7ff;
  padding: 0 2px;
  text-decoration: underline;
  font-size: 12px;
  cursor: pointer;
}
.epg-now-wrap {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 1rem;
  padding: .85rem 1rem;
  box-shadow: none;
  backdrop-filter: none;
}

#playerWrapper.player-stage {
  border-radius: .85rem;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}
#playerWrapper.player-stage video {
  border-radius: inherit;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.player-subtitles {
  position: absolute;
  z-index: 3;
  top: auto;
  left: 8%;
  right: 8%;
  bottom: 12%;
  width: auto;
  height: auto;
  max-height: 28%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
  pointer-events: none;
  transition: bottom .2s ease;
}
.player-subtitles[hidden],
.player-subtitles.is-empty {
  display: none;
}
#playerWrapper.is-ui-visible .player-subtitles,
#playerWrapper.is-paused .player-subtitles {
  bottom: 96px;
}
#playerWrapper.is-native-player .player-subtitles {
  bottom: 18%;
}
#playerWrapper.is-native-player.is-fullscreen .player-subtitles {
  display: none;
}
.player-subtitles-cue {
  display: inline-block;
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  max-height: calc(1.35em * 3 + .9em);
  padding: .45em .9em;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  border-radius: 10px;
  background: rgba(6, 10, 18, .72);
  color: #fff;
  font-size: clamp(13px, 2.35vw, 22px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .01em;
  text-align: center;
  text-wrap: balance;
  white-space: pre-line;
  text-shadow: 0 1px 2px rgba(0,0,0,.85);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}
body.iframe-body .player-subtitles-cue {
  font-size: clamp(12px, 2.1vw, 20px);
  padding: .4em .8em;
}
body.iframe-body.is-iframe-mobile .player-subtitles {
  left: 5%;
  right: 5%;
  bottom: 14%;
}
body.iframe-body.is-iframe-mobile #playerWrapper.is-ui-visible .player-subtitles,
body.iframe-body.is-iframe-mobile #playerWrapper.is-paused .player-subtitles {
  bottom: 78px;
}
body.iframe-body.is-iframe-mobile .player-subtitles-cue {
  font-size: clamp(12px, 3.4vw, 16px);
  font-weight: 600;
  padding: .38em .7em;
  border-radius: 8px;
}
#playerWrapper video::cue {
  background: rgba(6, 10, 18, .72);
  color: #fff;
  font-size: 1.05em;
  text-shadow: 0 1px 2px rgba(0,0,0,.85);
}
#playerWrapper.has-custom-subs video::cue {
  opacity: 0;
  visibility: hidden;
}
#playerWrapper.player-stage:fullscreen,
#playerWrapper.player-stage:-webkit-full-screen,
#playerWrapper.player-stage:-moz-full-screen {
  border: 0 !important;
  border-radius: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
  padding-top: 0 !important;
  overflow: hidden !important;
  background: #000;
}
#playerWrapper.player-stage.is-fullscreen {
  border: 0 !important;
  border-radius: 0 !important;
  padding-top: 0 !important;
  overflow: hidden !important;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
}
#playerWrapper.player-stage:fullscreen,
#playerWrapper.player-stage:-webkit-full-screen,
#playerWrapper.player-stage:-moz-full-screen,
#playerWrapper.player-stage.is-fullscreen,
#playerWrapper.player-stage:fullscreen video,
#playerWrapper.player-stage:-webkit-full-screen video,
#playerWrapper.player-stage:-moz-full-screen video,
#playerWrapper.player-stage.is-fullscreen video {
  border-radius: 0 !important;
}
#playerWrapper.player-stage.is-native-player .player-shell {
  display: none !important;
}
#playerWrapper.player-stage.is-native-player video {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.player-mobile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .7rem;
}
.player-mobile-actions.hidden { display: none; }
.player-mobile-actions .glass-btn {
  flex: 1 1 0;
  justify-content: center;
  min-height: 44px;
}
.player-mobile-actions .glass-btn.is-busy,
.player-mobile-actions .glass-btn:disabled.is-busy {
  opacity: 1;
  pointer-events: none;
}
.player-mobile-archive-seek {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-top: .15rem;
}
.player-mobile-archive-seek.hidden { display: none; }
.player-mobile-archive-seek .player-progress {
  width: 100%;
}
.player-mobile-archive-times {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
  color: rgba(226, 232, 240, .85);
}
.player-mobile-actions .glass-btn.is-on {
  border-color: rgba(125, 211, 252, .45);
  background: rgba(56, 189, 248, .16);
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.playlist-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .35rem;
}
.playlist-field {
  display: grid;
  gap: .3rem;
  font-size: .8rem;
  color: var(--muted);
}
.playlist-field .glass-input { color: var(--text); }
.playlist-custom-tags {
  min-height: auto;
  padding-top: 0;
}
.search-modal {
  width: min(100%, 64rem);
  max-width: 100%;
  min-width: 0;
  max-height: min(90vh, 860px);
  overflow-x: hidden;
  overflow-y: auto;
}
.search-filters {
  display: grid;
  gap: .5rem;
  min-width: 0;
}
@media (min-width: 768px) {
  .search-filters { grid-template-columns: 220px minmax(0, 1fr); }
}
.search-results-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: 1fr;
  min-width: 0;
}
.search-results-grid > * {
  min-width: 0;
  max-width: 100%;
}
@media (min-width: 640px) {
  .search-results-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .search-results-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.search-result-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 14px;
  min-width: 0;
  overflow: hidden;
}
.search-result-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  overflow: hidden;
  padding-right: 2.6rem;
  color: inherit;
  text-decoration: none;
}
.search-result-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(8, 10, 18, .35);
  flex: 0 0 auto;
}
.search-result-fav {
  position: absolute;
  top: 12px;
  right: 12px;
}
.search-result-fav.is-favorite {
  color: #facc15;
}
.search-result-card .tile-title,
.search-result-card .tile-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.playlist-replace-result-btn {
  justify-content: center;
  width: 100%;
}
.users-table-wrap { overflow-x: auto; }
.users-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 .55rem;
  min-width: 860px;
}
.users-table th {
  text-align: left;
  font-size: .72rem;
  color: var(--muted);
  font-weight: 600;
  padding: 0 .55rem .2rem;
}
.users-table td {
  background: rgba(12, 16, 24, .62);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: .55rem;
  vertical-align: middle;
}
.users-table td:first-child { border-left: 1px solid var(--line); border-radius: .8rem 0 0 .8rem; }
.users-table td:last-child { border-right: 1px solid var(--line); border-radius: 0 .8rem .8rem 0; }
.users-table .glass-input { min-width: 0; }
.admin-check {
  min-height: 3rem;
  padding-top: .75rem;
  padding-bottom: .75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.admin-check input[type="checkbox"] {
  margin: 0;
}
.admin-check.is-disabled,
label.is-disabled {
  opacity: .45;
  pointer-events: none;
}

.channel-card-actions {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-left: auto;
  flex: 0 0 auto;
}
.archive-hint {
  position: relative;
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .75rem;
  border: 1px solid rgba(125, 211, 252, .28);
  background: linear-gradient(180deg, rgba(56, 189, 248, .16), rgba(14, 165, 233, .06));
  cursor: default;
}
.archive-hint i {
  font-size: .95rem;
  color: #7dd3fc;
}
.archive-hint::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  padding: .4rem .65rem;
  border-radius: .65rem;
  background: rgba(8, 12, 20, .96);
  border: 1px solid rgba(125, 211, 252, .32);
  color: #e2e8f0;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 8;
}
.archive-hint::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  border: 6px solid transparent;
  border-top-color: rgba(125, 211, 252, .32);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 8;
}
.archive-hint:hover::after,
.archive-hint:focus-visible::after,
.archive-hint:hover::before,
.archive-hint:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

body.iframe-body {
  margin: 0;
  min-height: 100%;
  background-color: #07090f;
  background-image:
    radial-gradient(900px 420px at 12% -8%, rgba(56, 189, 248, .16), transparent 52%),
    radial-gradient(700px 380px at 110% 0%, rgba(99, 102, 241, .14), transparent 48%);
}
body.iframe-is-player {
  overflow: hidden;
  height: 100%;
  background-image: none;
  background: #000;
}
html:has(body.iframe-is-player) {
  height: 100%;
  overflow: hidden;
}
body.iframe-is-gate,
body.iframe-is-picker {
  overflow: auto;
  min-height: 100dvh;
}
.iframe-gate {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.iframe-gate-card {
  width: min(26rem, 100%);
  display: grid;
  gap: 1rem;
  text-align: center;
}
.iframe-gate-icon {
  width: 3.6rem;
  height: 3.6rem;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 1.1rem;
  background: linear-gradient(135deg, rgba(56, 189, 248, .35), rgba(99, 102, 241, .28));
  font-size: 1.5rem;
}
.iframe-picker {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
}
.iframe-picker-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1rem;
}
.iframe-picker-filters {
  display: grid;
  gap: .7rem;
  margin-bottom: 1rem;
}
@media (min-width: 720px) {
  .iframe-picker-filters { grid-template-columns: 1fr 1fr 1.2fr; }
}
.iframe-play-icon {
  color: rgba(255,255,255,.55);
  font-size: 1.05rem;
}
.iframe-player-content,
.iframe-player,
#playerWrapper.iframe-player {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding-top: 0 !important;
  border-radius: 0 !important;
  overflow: hidden;
  background: #000;
}
#playerWrapper.iframe-player video {
  border-radius: 0 !important;
}
.iframe-state {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #07090f;
}
.iframe-epg-modal {
  width: min(42rem, 100%);
  max-height: min(86dvh, 720px);
  display: flex;
  flex-direction: column;
}
.iframe-epg-panel {
  height: auto !important;
  max-height: min(68dvh, 560px);
  background: rgba(255,255,255,.03);
}
.iframe-epg-panel #epgContent {
  max-height: min(58dvh, 480px);
}
#iframeEpgBtn:not(.hidden) {
  background: rgba(56, 189, 248, .18);
}
.player-btn.is-favorite,
#favoriteBtn.is-favorite.player-btn {
  border-color: rgba(250, 204, 21, .45);
  background: rgba(250, 204, 21, .16);
}
.iframe-picker .cards-grid,
.iframe-picker .cards-grid.is-loading {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.iframe-player .player-topbar {
  align-items: flex-start;
  padding: 12px 14px 24px;
}
.iframe-channel-now {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: min(62vw, 680px);
  flex: 1;
}
.iframe-channel-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(8, 10, 18, .55);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.iframe-channel-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.iframe-channel-logo i {
  font-size: 1.2rem;
  color: rgba(255,255,255,.72);
}
.iframe-channel-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(8, 10, 18, .48);
  text-shadow: 0 1px 5px #000;
}
.iframe-channel-copy #channelTitle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(.8rem, 2vw, 1rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.iframe-channel-copy #iframeNowText {
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.76);
  font-size: clamp(.65rem, 1.6vw, .82rem);
}
.iframe-player .player-status-pill {
  flex: 0 0 auto;
}
@media (max-width: 640px) {
  .iframe-player .player-status-pill { display: none; }
  .iframe-channel-logo { width: 38px; height: 38px; }
  .iframe-channel-now { max-width: calc(100% - 8rem); }
}
.iframe-player .player-dock {
  padding: 0 12px 14px;
}

.donate-intro {
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.25rem;
}
.donate-grid {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}
@media (min-width: 768px) {
  .donate-grid { grid-template-columns: 1fr 1fr; }
}
.donate-card {
  padding: 1.35rem 1.5rem;
  min-width: 0;
  height: 100%;
}
.donate-card-title {
  font-weight: 700;
  margin-bottom: .65rem;
}
.donate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.donate-intro p,
.donate-card p {
  color: #cbd5e1;
  line-height: 1.55;
}

.admin-limits {
  display: grid;
  gap: .5rem;
  margin-top: 1.25rem;
  padding-top: .5rem;
}
@media (min-width: 768px) {
  .admin-limits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.home-filters {
  display: grid;
  gap: .5rem;
  align-items: stretch;
}
@media (min-width: 640px) {
  .home-filters { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .home-filters { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(0, 1.35fr) auto auto; }
}
.home-m3u-btn {
  min-height: 2.5rem;
  padding: .55rem .9rem;
  white-space: nowrap;
}
.maintenance-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
#adminRecordingsMonitor > summary.admin-monitor-summary,
.admin-monitor-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: .75rem;
}
#adminRecordingsMonitor > summary.admin-monitor-summary::-webkit-details-marker,
.admin-monitor-summary::-webkit-details-marker { display: none; }
.theme-toggle-btn { white-space: nowrap; }

html[data-theme="light"] {
  color-scheme: light;
  --ink: #eef3f8;
  --ink-2: #f7f9fc;
  --line: rgba(59, 76, 107, .16);
  --text: #1f2937;
  --muted: rgba(31, 41, 55, .66);
  --accent: #4f46e5;
  --accent-2: #6366f1;
}
html[data-theme="light"] body {
  background-color: var(--ink);
  background-image:
    radial-gradient(900px 520px at 12% -12%, rgba(148, 163, 184, .30), transparent 62%),
    radial-gradient(760px 480px at 92% 8%, rgba(165, 180, 252, .24), transparent 58%);
  color: var(--text);
}
html[data-theme="light"] .glass-nav,
html[data-theme="light"] .glass-card,
html[data-theme="light"] .glass-btn,
html[data-theme="light"] .glass-input,
html[data-theme="light"] .portal-select,
html[data-theme="light"] .portal-select-menu {
  background: rgba(255, 255, 255, .62);
  border-color: var(--line);
  color: var(--text);
  box-shadow: 0 18px 45px rgba(46, 62, 92, .13);
}
html[data-theme="light"] .glass-nav {
  background: rgba(248, 250, 252, .82);
}
html[data-theme="light"] .glass-btn:hover,
html[data-theme="light"] .nav-link:hover,
html[data-theme="light"] .nav-link.is-active {
  background: rgba(255, 255, 255, .88);
  color: #111827;
}
html[data-theme="light"] .glass-btn.is-danger {
  color: #be123c;
  border-color: rgba(244, 63, 94, .35);
}
html[data-theme="light"] .glass-btn.is-danger:hover {
  background: rgba(244, 63, 94, .1);
  color: #9f1239;
}
html[data-theme="light"] .portal-logo,
html[data-theme="light"] .portal-logo span,
html[data-theme="light"] .nav-link,
html[data-theme="light"] .nav-link.is-active,
html[data-theme="light"] .nav-link:hover,
html[data-theme="light"] .text-white,
html[data-theme="light"] .text-slate-50,
html[data-theme="light"] .text-slate-100,
html[data-theme="light"] .text-slate-200,
html[data-theme="light"] .tile-title,
html[data-theme="light"] .breadcrumbs a,
html[data-theme="light"] .breadcrumbs a:hover,
html[data-theme="light"] .breadcrumbs-current,
html[data-theme="light"] .epg-row.is-now,
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] .font-medium,
html[data-theme="light"] .font-semibold {
  color: var(--text);
}
html[data-theme="light"] .text-slate-300,
html[data-theme="light"] .text-slate-400,
html[data-theme="light"] .text-slate-500,
html[data-theme="light"] .tile-meta,
html[data-theme="light"] .breadcrumbs,
html[data-theme="light"] .site-footer {
  color: var(--muted);
}
html[data-theme="light"] .text-sky-200,
html[data-theme="light"] .text-sky-300,
html[data-theme="light"] .text-cyan-200,
html[data-theme="light"] .text-cyan-300 {
  color: #1d4ed8;
}
html[data-theme="light"] .glass-input,
html[data-theme="light"] select.glass-input,
html[data-theme="light"] textarea.glass-input {
  color: var(--text);
}
html[data-theme="light"] .portal-select-option { color: var(--text); }
html[data-theme="light"] .portal-select-option:hover,
html[data-theme="light"] .portal-select-option.is-active {
  background: rgba(99, 102, 241, .12);
}
html[data-theme="light"] .users-table td {
  background: rgba(255, 255, 255, .55);
}
html[data-theme="light"] .progress-bar { background: rgba(31, 41, 55, .08); }
html[data-theme="light"] input[type="checkbox"] {
  background: rgba(255, 255, 255, .8);
  border-color: rgba(31, 41, 55, .22);
}
html[data-theme="light"] .donate-intro p,
html[data-theme="light"] .donate-card p {
  color: var(--muted);
}
html[data-theme="light"] .epg-panel {
  background: rgba(255, 255, 255, .45);
  border-color: var(--line);
}
html[data-theme="light"] .epg-row { border-bottom-color: rgba(31, 41, 55, .08); color: var(--text); }
html[data-theme="light"] .epg-now-wrap {
  background: rgba(241, 245, 249, .78);
  border-color: var(--line);
  color: var(--text);
}
html[data-theme="light"] .epg-now-expand { color: #3730a3; }
html[data-theme="light"] .modal-backdrop { background: rgba(15, 23, 42, .35); }
html[data-theme="light"] .search-result-logo {
  background: rgba(255, 255, 255, .7);
  border-color: rgba(31, 41, 55, .12);
}
html[data-theme="light"] .toast { color: var(--text); }
html[data-theme="light"] body.iframe-body {
  background-color: var(--ink);
  background-image:
    radial-gradient(900px 520px at 12% -12%, rgba(148, 163, 184, .30), transparent 62%),
    radial-gradient(760px 480px at 92% 8%, rgba(165, 180, 252, .24), transparent 58%);
  color: var(--text);
}
html[data-theme="light"] #playerWrapper.player-stage,
html[data-theme="light"] body.iframe-is-player {
  background: #000;
  background-image: none;
}
html[data-theme="light"] .player-shell,
html[data-theme="light"] .player-shell .bi,
html[data-theme="light"] .player-btn,
html[data-theme="light"] .player-live-btn,
html[data-theme="light"] .player-quality-btn,
html[data-theme="light"] .player-quality-option,
html[data-theme="light"] .player-subs-btn,
html[data-theme="light"] .player-subs-option,
html[data-theme="light"] .player-time-label {
  color: #fff;
}
html[data-theme="light"] body.iframe-is-player .portal-logo,
html[data-theme="light"] body.iframe-is-player .portal-logo span {
  color: #fff;
}

