.channel-page {
  --channel-shell-width: min(1600px, 85%);
  --channel-tab-gap: clamp(10px, 1.4vw, 16px);
  --channel-banner-safe-top: var(--navbar-layout-bar-height);
  --page-banner-height: 30lvh;
  --page-banner-safe-top: var(--channel-banner-safe-top);
  --page-banner-overlay: #477CA930;
  --page-banner-title-weight: 400;
  --io-duration-default: 700ms;
  --io-easing-default: ease;
  --io-delay-default: 0ms;
  --io-translate-fade-up: 40px;
  --io-translate-fade-right: -40px;
  --io-translate-fade-left: 40px;
  background: #F7FCFF;
  color: var(--ui-color-text-strong);
}

.channel-page .channel-list-shell {
  width: var(--channel-shell-width);
  max-width: none;
}

.channel-page .page-banner.ui-shell {
  width: 100%;
  max-width: none;
}

.channel-list-tabs-nav {
  display: flex;
  justify-content: center;
  width: 100%;
  min-width: 0;
}

.channel-list-tabs {
  --channel-tab-uniform-width: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  min-width: 0;
  gap: var(--channel-tab-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: clip;
  scrollbar-width: none;
}

.channel-list-tabs.is-scrollable {
  justify-content: flex-start;
  overflow-x: clip;
}

.channel-list-tabs::-webkit-scrollbar {
  display: none;
}

.channel-list-tabs > li {
  flex: 0 0 var(--channel-tab-uniform-width);
}

.channel-list-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  padding: 0 clamp(18px, 2vw, 28px);
  box-sizing: border-box;
  min-height: 52px;
  white-space: nowrap;
  color: var(--ui-color-text-muted);
  font-size: var(--font-title-md);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.channel-list-tab::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 90%;
  max-width: 120px;
  height: 3px;
  border-radius: var(--ui-radius-pill);
  background: var(--ui-color-brand-orange);
  opacity: 0;
  transform: translateX(-50%) scaleX(0.4);
  transform-origin: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.channel-list-tab:hover,
.channel-list-tab:focus-visible {
  color: var(--ui-color-brand-blue);
  text-decoration: none;
}

.channel-list-tab:hover::after,
.channel-list-tab:focus-visible::after,
.channel-list-tab.is-active::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.channel-list-tab.is-active {
  color: var(--ui-color-brand-blue);
}

.channel-list-content {
  padding: clamp(15px, 2.6vw, 23px) 0;
}

.channel-list-content.is-loading [data-channel-list-panel] {
  opacity: 0.62;
  transition: opacity 0.2s ease;
}

.channel-list-pagination {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(28px, 3vw, 40px);
  --channel-list-page-link-font-size: var(--font-body-lg);
  --channel-list-page-link-pad-y: 0.4em;
  --channel-list-page-link-pad-x: 0.5em;
  --channel-list-page-link-min-height: calc(var(--channel-list-page-link-font-size) + (var(--channel-list-page-link-pad-y) * 2));
  --channel-list-page-link-min-width: calc(var(--channel-list-page-link-min-height) * 0.75);
}

.channel-list-pagination .pagination {
  margin-bottom: 0;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.channel-list-pagination .page-link {
  min-width: 36px;
  min-height: 44px;
  font-size: var(--channel-list-page-link-font-size);
  line-height: 1;
  border: 1px solid var(--ui-color-brand-blue);
  border-radius: 4px;
  background: var(--ui-surface-card-overlay);
  color: var(--ui-color-brand-blue);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--channel-list-page-link-pad-y) var(--channel-list-page-link-pad-x);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.channel-list-pagination .page-item:not(.active):not(.disabled) .page-link:hover,
.channel-list-pagination .page-item:not(.active):not(.disabled) .page-link:focus-visible {
  transform: translateY(-1px);
}

.channel-list-pagination .page-item.active .page-link {
  border-color: var(--ui-color-brand-orange);
  background: var(--ui-color-brand-orange-surface);
  color: var(--ui-color-brand-orange);
  box-shadow: none;
}

.channel-list-pagination .page-item.disabled .page-link {
  border-color: var(--ui-border-brand-subtle);
  color: var(--ui-color-text-placeholder);
}

.channel-list-empty {
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid var(--ui-border-brand-subtle);
  border-radius: var(--ui-radius-md);
  background: var(--ui-surface-card-overlay);
  color: var(--ui-text-body);
  text-align: center;
  box-shadow: var(--ui-shadow-elevated);
}

.channel-list-io-pending .channel-page [data-io],
.channel-page.channel-io-ready [data-io] {
  opacity: 0;
  will-change: transform, opacity;
  transition-property: transform, opacity, var(--io-extra-transition-property, box-shadow);
  transition-duration:
    var(--io-duration, var(--io-duration-default)),
    var(--io-duration, var(--io-duration-default)),
    var(--io-extra-transition-duration, 0ms);
  transition-timing-function:
    var(--io-easing, var(--io-easing-default)),
    var(--io-easing, var(--io-easing-default)),
    var(--io-extra-transition-easing, ease);
  transition-delay:
    var(--io-delay-out, var(--io-delay, var(--io-delay-default))),
    var(--io-delay-out, var(--io-delay, var(--io-delay-default))),
    var(--io-extra-transition-delay, 0ms);
}

.channel-page.channel-io-ready [data-io].is-inview {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition-delay:
    var(--io-delay-in, var(--io-delay, var(--io-delay-default))),
    var(--io-delay-in, var(--io-delay, var(--io-delay-default))),
    var(--io-extra-transition-delay, 0ms);
}

.channel-list-io-pending .channel-page [data-io="fade-up"],
.channel-page.channel-io-ready [data-io="fade-up"] {
  transform: translate3d(0, var(--io-translate-fade-up), 0);
}

.channel-list-io-pending .channel-page [data-io="fade-right"],
.channel-page.channel-io-ready [data-io="fade-right"] {
  transform: translate3d(var(--io-translate-fade-right), 0, 0);
}

.channel-list-io-pending .channel-page [data-io="fade-lr"],
.channel-page.channel-io-ready [data-io="fade-lr"] {
  transform: translate3d(var(--io-translate-fade-right), 0, 0);
}

.channel-page.channel-io-ready [data-io="fade-lr"].is-page-exit {
  transform: translate3d(calc(var(--io-translate-fade-right) * -1), 0, 0);
}

.channel-list-io-pending .channel-page [data-io="fade-left"],
.channel-page.channel-io-ready [data-io="fade-left"] {
  transform: translate3d(var(--io-translate-fade-left), 0, 0);
}

@media (max-width: 1199.98px) {
  .channel-page .channel-list-shell {
    width: 85%;
  }

  .channel-page {
    --page-banner-height: 180px;
  }

  .channel-list-tabs {
    gap: 12px;
    align-items: stretch;
  }

  .channel-list-tabs.is-scrollable {
    flex-direction: column;
    overflow-x: visible;
  }

  .channel-list-tabs > li {
    flex: 0 0 var(--channel-tab-uniform-width);
  }

  .channel-list-tabs.is-scrollable > li {
    flex: 0 0 auto;
    width: 100%;
  }

  .channel-list-pagination {
    justify-content: center;
  }

  .channel-list-pagination .pagination {
    justify-content: center;
  }
}