/* TVOE.TV public channel catalogue — cabinet visual language. */
body.channel-list-page {
  background: #f7f9fc;
}

body.channel-list-page .movie-area {
  padding-top: 26px !important;
  padding-bottom: 76px !important;
  background: #f7f9fc;
}

body.channel-list-page .movie-area > .container {
  width: 100%;
  max-width: 1384px;
}

.channel-catalog-shell {
  width: 100%;
  min-width: 0;
  padding: 0 18px;
}

.channel-catalog-shell [hidden] {
  display: none !important;
}

.channel-catalog-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 410px);
  gap: 28px;
  align-items: center;
  min-height: 210px;
  margin-bottom: 22px;
  padding: 28px 30px;
  overflow: hidden;
  border: 1px solid rgba(41, 182, 246, .27);
  border-radius: 24px;
  background:
    radial-gradient(circle at 91% 5%, rgba(41, 182, 246, .23), transparent 34%),
    linear-gradient(135deg, #fff 0%, #f1faff 100%);
  box-shadow: var(--account-shadow);
}

.channel-catalog-hero::after {
  position: absolute;
  right: -62px;
  bottom: -118px;
  width: 252px;
  height: 252px;
  border: 28px solid rgba(41, 182, 246, .07);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.channel-catalog-hero__main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.channel-catalog-hero__icon {
  display: inline-flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--account-accent), var(--account-accent-strong));
  box-shadow: 0 14px 30px rgba(22, 155, 216, .25);
  color: #fff;
  font-size: 25px;
}

.channel-catalog-eyebrow,
.channel-catalog-results__eyebrow {
  display: block;
  color: #087db3;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .13em;
}

.channel-catalog-eyebrow {
  margin-bottom: 6px;
}

.channel-catalog-hero h1 {
  margin: 0;
  color: var(--account-ink);
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 850;
  letter-spacing: -.04em;
  line-height: 1.06;
}

.channel-catalog-hero p {
  max-width: 700px;
  margin: 10px 0 0;
  color: var(--account-muted);
  font-size: 15px;
  line-height: 1.55;
}

.channel-catalog-summary {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 19px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 17px 38px rgba(15, 23, 42, .07);
  backdrop-filter: blur(10px);
}

.channel-catalog-metric {
  min-width: 0;
  padding: 11px 13px;
  border-radius: 13px;
  background: #f3f7fb;
}

.channel-catalog-metric small {
  display: block;
  margin-bottom: 3px;
  color: var(--account-muted);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.25;
}

.channel-catalog-metric strong {
  color: var(--account-ink);
  font-size: 24px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.channel-catalog-metric--archive,
.channel-catalog-metric--adult {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.channel-catalog-metric--archive > span,
.channel-catalog-metric--adult > span {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(21, 132, 91, .11);
  color: #11724f;
}

.channel-catalog-metric--adult > span {
  background: rgba(229, 72, 77, .1);
  color: #c33a40;
}

.channel-catalog-metric--archive strong,
.channel-catalog-metric--adult strong {
  font-size: 19px;
}

.channel-catalog-layout {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.channel-catalog-sidebar,
.channel-catalog-toolbar,
.channel-catalog-results {
  border: 1px solid var(--account-border);
  background: var(--account-surface);
  box-shadow: var(--account-shadow);
}

.channel-catalog-sidebar {
  position: sticky;
  top: calc(var(--site-header-height, 60px) + 20px);
  max-height: calc(100vh - var(--site-header-height, 60px) - 40px);
  padding: 16px;
  overflow: auto;
  border-radius: 20px;
  scrollbar-width: thin;
}

.channel-catalog-sidebar__heading {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  padding: 2px 4px 13px;
  border-bottom: 1px solid var(--account-border);
}

.channel-catalog-sidebar__heading > span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: rgba(41, 182, 246, .12);
  color: #087db3;
}

.channel-catalog-sidebar h2 {
  margin: 0;
  color: var(--account-ink);
  font-size: 16px;
  font-weight: 820;
}

.channel-category-nav,
.channel-category-nav > div {
  display: grid;
  gap: 6px;
}

.channel-category-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  align-items: center;
  padding: 9px 10px 9px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #344054;
  font: inherit;
  font-size: 13px;
  font-weight: 730;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: background .17s ease, color .17s ease, transform .17s ease;
}

.channel-category-button strong {
  display: inline-flex;
  min-width: 30px;
  height: 26px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #eef3f7;
  color: #667085;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.channel-category-button:hover {
  background: #f3f8fc;
  color: #087db3;
  transform: translateX(2px);
}

.channel-category-button.is-active {
  background: linear-gradient(135deg, rgba(41, 182, 246, .16), rgba(41, 182, 246, .08));
  color: #087db3;
}

.channel-category-button.is-active strong {
  background: #087db3;
  color: #fff;
}

.channel-category-button.is-empty:not(.is-active) {
  opacity: .46;
}

.channel-catalog-main {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.channel-catalog-toolbar {
  position: sticky;
  z-index: 10;
  top: calc(var(--site-header-height, 60px) + 14px);
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(160px, 190px);
  gap: 12px;
  align-items: end;
  padding: 16px;
  border-radius: 18px;
}

.channel-catalog-search {
  position: relative;
  min-width: 0;
}

.channel-catalog-search__icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 15px;
  color: #7b879b;
  transform: translateY(-50%);
  pointer-events: none;
}

.channel-catalog-search input,
.channel-catalog-control select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d5dee8;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--account-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  outline: 0;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.channel-catalog-search input {
  padding: 0 46px 0 44px;
}

/* Keep only the catalogue's accessible clear button, not the browser's duplicate. */
.channel-catalog-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.channel-catalog-search input::placeholder {
  color: #8b96a8;
  font-weight: 500;
}

.channel-catalog-search input:focus,
.channel-catalog-control select:focus {
  border-color: #087db3;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(8, 125, 179, .16);
}

.channel-catalog-search__clear {
  position: absolute;
  top: 50%;
  right: 7px;
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #667085;
  cursor: pointer;
  transform: translateY(-50%);
}

.channel-catalog-search__clear:hover {
  background: #eaf1f6;
  color: #087db3;
}

.channel-catalog-control {
  display: grid;
  gap: 6px;
}

.channel-catalog-control label {
  color: #667085;
  font-size: 11px;
  font-weight: 760;
}

.channel-catalog-control select {
  padding: 0 36px 0 12px;
  cursor: pointer;
}

.channel-catalog-control--category {
  display: none;
}

.channel-catalog-filter {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 5px;
  min-height: 48px;
  padding: 4px;
  border: 1px solid #d5dee8;
  border-radius: 12px;
  background: #f3f6f9;
}

.channel-catalog-filter button {
  display: inline-flex;
  min-width: 62px;
  min-height: 38px;
  gap: 7px;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #667085;
  font: inherit;
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
  cursor: pointer;
}

.channel-catalog-filter button:hover {
  color: #087db3;
}

.channel-catalog-filter button.is-active {
  background: #087db3;
  box-shadow: 0 6px 15px rgba(8, 125, 179, .2);
  color: #fff;
}

.channel-catalog-results {
  min-width: 0;
  padding: 22px;
  border-radius: 21px;
}

.channel-catalog-results__heading {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
}

.channel-catalog-results__eyebrow {
  margin-bottom: 4px;
}

.channel-catalog-results h2 {
  margin: 0;
  color: var(--account-ink);
  font-size: clamp(22px, 2.3vw, 29px);
  font-weight: 840;
  letter-spacing: -.025em;
}

.channel-catalog-results__count {
  margin: 0;
  color: #667085;
  font-size: 13px;
  font-weight: 720;
  text-align: right;
}

.channel-catalog-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--account-border);
}

.channel-catalog-notes > span {
  display: inline-flex;
  min-height: 34px;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 10px;
  background: #f4f7fa;
  color: #667085;
  font-size: 12px;
  font-weight: 680;
}

.channel-catalog-notes > span:first-child i {
  color: #15845b;
}

.channel-catalog-notes > span:last-child i {
  color: #d53b43;
}

.channel-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 12px;
}

.channel-catalog-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 13px;
  min-width: 0;
  min-height: 88px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dce4ec;
  border-radius: 15px;
  background: #f8fafc;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.channel-catalog-card:hover {
  border-color: rgba(8, 125, 179, .3);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .07);
  transform: translateY(-1px);
}

.channel-catalog-card__media {
  position: relative;
  display: inline-flex;
  width: 62px;
  height: 62px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, .07);
  border-radius: 14px;
  background: #fff;
  color: #9aa6b7;
}

.channel-catalog-card__media > i {
  font-size: 21px;
  transition: opacity .12s ease;
}

.channel-catalog-card__media.has-logo > i {
  opacity: 0;
}

.channel-catalog-card__logo {
  position: absolute;
  inset: 5px;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  object-fit: contain;
  opacity: 0;
  transition: opacity .15s ease;
}

.channel-catalog-card__logo.is-loaded {
  opacity: 1;
}

.channel-catalog-card__copy {
  min-width: 0;
}

.channel-catalog-card__copy h3 {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--account-ink);
  font-size: 14px;
  font-weight: 810;
  line-height: 1.3;
}

.channel-catalog-card__category {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #778399;
  font-size: 11px;
  font-weight: 620;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-catalog-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.channel-catalog-badge {
  display: inline-flex;
  min-height: 23px;
  gap: 5px;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(21, 132, 91, .1);
  color: #11724f;
  font-size: 10px;
  font-weight: 790;
  line-height: 1;
}

.channel-catalog-badge--adult {
  background: rgba(229, 72, 77, .1);
  color: #bf343b;
}

.channel-catalog-empty {
  display: grid;
  min-height: 260px;
  justify-items: center;
  align-content: center;
  padding: 28px;
  border: 1px dashed rgba(8, 125, 179, .25);
  border-radius: 16px;
  background: #f7fbfe;
  color: #667085;
  text-align: center;
}

.channel-catalog-empty > span {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 15px;
  background: rgba(41, 182, 246, .13);
  color: #087db3;
  font-size: 20px;
}

.channel-catalog-empty strong {
  color: var(--account-ink);
  font-size: 17px;
}

.channel-catalog-empty p {
  max-width: 430px;
  margin: 7px 0 16px;
  line-height: 1.5;
}

.channel-catalog-empty .theme-btn,
.channel-catalog-more .theme-btn {
  display: inline-flex !important;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 0;
  border-radius: 11px;
  background: #087db3 !important;
  color: #fff !important;
  font: inherit;
  font-size: 13px;
  font-weight: 780;
  cursor: pointer;
}

.channel-catalog-error {
  border-color: rgba(229, 72, 77, .28);
  background: #fff8f8;
}

.channel-catalog-error > span {
  background: rgba(229, 72, 77, .1);
  color: #c33a40;
}

.channel-catalog-more {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--account-border);
}

.channel-catalog-more p {
  margin: 0;
  color: #667085;
  font-size: 12px;
  font-weight: 680;
}

.channel-catalog-more__actions {
  display: flex;
  min-width: min(100%, 330px);
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.channel-catalog-more__actions .theme-btn {
  flex: 1 1 0;
  gap: 8px;
}

.channel-catalog-more__previous {
  background: #edf7fb !important;
  box-shadow: inset 0 0 0 1px rgba(8, 125, 179, .24) !important;
  color: #087db3 !important;
}

.channel-catalog-more [hidden] {
  display: none !important;
}

.channel-category-button:focus-visible,
.channel-catalog-filter button:focus-visible,
.channel-catalog-search__clear:focus-visible,
.channel-catalog-empty .theme-btn:focus-visible,
.channel-catalog-more .theme-btn:focus-visible {
  outline: 3px solid #087db3;
  outline-offset: 2px;
}

@media (max-width: 1199.98px) {
  .channel-catalog-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  }

  .channel-catalog-toolbar {
    grid-template-columns: minmax(220px, 1fr) auto;
  }

  .channel-catalog-control--sort {
    grid-column: 2;
  }
}

@media (max-width: 991.98px) {
  body.channel-list-page .movie-area {
    padding-top: 18px !important;
  }

  .channel-catalog-shell {
    padding: 0 10px;
  }

  .channel-catalog-hero {
    grid-template-columns: 1fr;
  }

  .channel-catalog-summary {
    width: 100%;
  }

  .channel-catalog-layout {
    grid-template-columns: 1fr;
  }

  .channel-catalog-sidebar {
    display: none;
  }

  .channel-catalog-toolbar {
    position: static;
    grid-template-columns: minmax(0, 1fr) minmax(180px, .55fr);
  }

  .channel-catalog-control--category {
    display: grid;
  }

  .channel-catalog-search {
    grid-column: 1 / -1;
  }

  .channel-catalog-filter,
  .channel-catalog-control--sort {
    grid-column: auto;
  }
}

@media (max-width: 767.98px) {
  .channel-catalog-hero {
    gap: 20px;
    padding: 23px;
    border-radius: 21px;
  }

  .channel-catalog-hero__main {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
  }

  .channel-catalog-hero__icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }

  .channel-catalog-hero h1 {
    font-size: clamp(27px, 8vw, 36px);
  }

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

  .channel-catalog-control--category,
  .channel-catalog-search {
    grid-column: 1 / -1;
  }

  .channel-catalog-results {
    padding: 18px;
  }

  .channel-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-catalog-results__heading {
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {
  body.channel-list-page .movie-area > .container {
    padding-right: 8px;
    padding-left: 8px;
  }

  .channel-catalog-shell {
    padding: 0;
  }

  .channel-catalog-hero {
    min-height: 0;
    padding: 19px;
    border-radius: 19px;
  }

  .channel-catalog-hero__main {
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
  }

  .channel-catalog-hero__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 20px;
  }

  .channel-catalog-eyebrow {
    font-size: 10px;
  }

  .channel-catalog-hero p {
    grid-column: 1 / -1;
    font-size: 13px;
  }

  .channel-catalog-summary {
    gap: 8px;
    padding: 10px;
    border-radius: 15px;
  }

  .channel-catalog-metric {
    padding: 9px 10px;
  }

  .channel-catalog-metric strong {
    font-size: 20px;
  }

  .channel-catalog-metric--archive,
  .channel-catalog-metric--adult {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 7px;
  }

  .channel-catalog-metric--archive > span,
  .channel-catalog-metric--adult > span {
    width: 28px;
    height: 28px;
  }

  .channel-catalog-toolbar,
  .channel-catalog-results {
    padding: 14px;
    border-radius: 17px;
  }

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

  .channel-catalog-control--category,
  .channel-catalog-search,
  .channel-catalog-filter,
  .channel-catalog-control--sort {
    grid-column: 1;
  }

  .channel-catalog-filter {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .channel-catalog-filter button {
    min-width: 0;
    padding-inline: 7px;
  }

  .channel-catalog-results__heading {
    display: grid;
    gap: 7px;
  }

  .channel-catalog-results__count {
    text-align: left;
  }

  .channel-catalog-notes {
    display: grid;
  }

  .channel-catalog-grid {
    grid-template-columns: 1fr;
  }

  .channel-catalog-card {
    min-height: 82px;
  }

  .channel-catalog-more {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    justify-items: stretch;
  }

  .channel-catalog-more__actions {
    width: 100%;
  }

  .channel-catalog-more .theme-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .channel-catalog-card,
  .channel-category-button,
  .channel-catalog-card__logo {
    transition: none;
  }
}

@media (forced-colors: active) {
  .channel-category-button.is-active,
  .channel-catalog-filter button.is-active,
  .channel-catalog-card {
    border: 1px solid CanvasText;
  }

  .channel-category-button:focus-visible,
  .channel-catalog-filter button:focus-visible,
  .channel-catalog-search__clear:focus-visible {
    outline-color: Highlight;
  }
}
