/* Channel list — standalone /channels page (new window) */
.channels-body {
  min-height: 100dvh;
  background: #0a0a0e;
}

.channels-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 8, 12, 0.95);
  position: sticky;
  top: 0;
  z-index: 20;
}

.channels-topbar__brand img {
  display: block;
  height: 36px;
  width: auto;
}

.channels-topbar__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9b7bff;
}

.channels-page {
  padding: 1.25rem 0 2rem;
}

.container--wide {
  max-width: 1280px;
}

.channel-browser--page {
  padding: 0;
}

.channel-browser__intro {
  text-align: center;
  margin-bottom: 1.25rem;
}

.channel-browser__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9b7bff;
  margin-bottom: 0.75rem;
}

.channel-browser__lead {
  max-width: 40rem;
  margin: 0 auto 1.1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.channel-browser__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.5rem;
  margin: 0 0 0.75rem;
}

.channel-browser__stats--three {
  gap: 1.25rem 3.5rem;
  margin-bottom: 1.25rem;
}

.channel-browser__stats--three dd {
  font-size: 1.65rem;
}

.channel-browser__stats div {
  text-align: center;
}

.channel-browser__stats dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.channel-browser__stats dd {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-light);
}

.channel-browser__stats > div {
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

.channel-browser__stats > div.is-active {
  opacity: 1;
}

.channel-browser__stats > div.is-active:has(#channel-stat-live) dd {
  color: var(--blue);
}

.channel-browser__stats > div.is-active:has(#channel-stat-movies) dd,
.channel-browser__stats > div.is-active:has(#channel-stat-series) dd {
  color: var(--gold-light);
}

.lineup-count--live {
  color: var(--blue);
}

.lineup-count--vod {
  color: var(--gold-light);
}

.hero__stat-btn .lineup-count--live {
  color: inherit;
}

.hero__stat-btn:hover .lineup-count--live,
.hero__stat-btn:focus-visible .lineup-count--live {
  color: var(--blue);
}

.hero__stat-btn .lineup-count--vod {
  color: inherit;
}

.hero__stat-btn:hover .lineup-count--vod,
.hero__stat-btn:focus-visible .lineup-count--vod {
  color: var(--gold-light);
}

.channel-browser__status {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.channel-search--global {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 42rem;
  margin: 0 auto 1rem;
}

.channel-search--global input[type="search"] {
  flex: 1 1 16rem;
  min-width: 0;
}

.channel-kind-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.channel-kind-tabs__btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.channel-kind-tabs__btn:hover,
.channel-kind-tabs__btn:focus-visible {
  border-color: rgba(0, 200, 255, 0.35);
  color: var(--text);
}

.channel-kind-tabs__btn.is-active {
  border-color: rgba(0, 200, 255, 0.55);
  background: rgba(0, 200, 255, 0.1);
  color: var(--blue);
}

.channel-kind-tabs__btn[data-kind="vod-movies"].is-active {
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-light);
}

.channel-kind-tabs__btn[data-kind="vod-series"].is-active {
  border-color: rgba(155, 123, 255, 0.5);
  background: rgba(155, 123, 255, 0.12);
  color: #c4b5fd;
}

.channel-global-results {
  margin-bottom: 1.5rem;
}

.channel-global-results .channel-list__item {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.channel-list__meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 400;
}

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

.channel-browser__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.channel-panel {
  display: flex;
  flex-direction: column;
  min-height: min(72vh, 640px);
  background: #f4f4f6;
  border: 1px solid #c8c8d0;
  border-radius: 6px;
  padding: 0.85rem;
  color: #1a1a22;
}

.channel-panel__head {
  margin-bottom: 0.65rem;
}

.channel-panel__head h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1a1a22;
}

.channel-panel__active {
  font-size: 0.8rem;
  color: #444;
  margin: 0 0 0.5rem;
  line-height: 1.35;
  font-weight: 600;
}

.channel-search {
  display: flex;
  gap: 0.35rem;
}

.channel-search input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.6rem;
  font-size: 0.88rem;
  border: 1px solid #b0b0b8;
  border-radius: 4px;
  background: #fff;
  color: #1a1a22;
}

.channel-search input:focus {
  outline: 2px solid #1a8cff;
  outline-offset: 1px;
}

.channel-search .btn {
  flex-shrink: 0;
}

.channel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  overflow-y: auto;
  max-height: min(58vh, 520px);
  min-height: 280px;
  border: 1px solid #d0d0d8;
  border-radius: 4px;
  background: #fff;
  padding: 0.35rem;
}

.channel-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.3rem;
  font-size: 0.84rem;
  line-height: 1.3;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font);
  transition: filter 0.12s;
}

.channel-list__item--category {
  background: #2f2f38;
  color: #f5f5f8;
}

.channel-list__item--category:hover {
  filter: brightness(1.1);
}

.channel-list__item--category.is-active {
  background: linear-gradient(90deg, #1a8cff, #0088ee);
  color: #fff;
  box-shadow: 0 2px 8px rgba(26, 140, 255, 0.35);
}

.channel-list__count {
  font-size: 0.72rem;
  opacity: 0.9;
  flex-shrink: 0;
}

.channel-list__label {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.channel-list__item--channel {
  background: linear-gradient(90deg, #1a9e52, #22b564);
  color: #fff;
}

.channel-list__item--channel:hover {
  filter: brightness(1.05);
}

.channel-list__empty {
  padding: 1.25rem;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

.channel-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin-top: 0.65rem;
  padding-top: 0.5rem;
}

.channel-pager__btn {
  min-width: 2rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.8rem;
  font-family: var(--font);
  border: 1px solid #b8b8c0;
  border-radius: 4px;
  background: #fff;
  color: #444;
  cursor: pointer;
}

.channel-pager__btn:hover:not(:disabled) {
  border-color: #1a8cff;
  color: #1a8cff;
}

.channel-pager__btn.is-active {
  background: #1a8cff;
  border-color: #1a8cff;
  color: #fff;
}

.channel-pager__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hero__stat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.hero__stat-btn:hover strong,
.hero__stat-btn:focus-visible strong {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.compare__link-btn {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.compare__link-btn:hover strong,
.compare__link-btn:focus-visible strong {
  color: var(--blue);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .channel-browser__grid {
    grid-template-columns: 1fr;
  }

  .channel-panel {
    min-height: 360px;
  }

  .channel-list {
    max-height: 320px;
  }

  .channels-topbar__title {
    font-size: 1rem;
  }
}
