/* Global Style -----------------------------------------------------------------------------*/

:root {
  --bg: #ffffff;
  --headers: #1d1d1f;
  --text: #555555;
  --faded-text: #999;
  --border: 1px solid #e5e5e7;
  --border-color-only: #e5e5e748;
  --surface: #fafafa;
  --surface-deep: #f5f5f79f;
  --icon: 40px;
  --icon-s: 26px;
  --accent: #E52338;
  --translucent: rgba(0, 0, 0, 0.6);

  --max-width: 1040px;

  --h1: clamp(2.6rem, 4vw, 3.4rem);
  --h2: clamp(2.0rem, 3vw, 2.5rem);
  --h3: clamp(1rem, 2.3vw, 1.2rem);
  --p: clamp(.90rem, 1.3vw, 1rem);

  --p-lg: clamp(.9rem, 1.6vw, .95rem);
  --p-sm: clamp(0.87rem, 1.1vw, 0.90rem);
  --p-xs: clamp(0.8rem, 0.95vw, 0.87rem);
  --p-xxs: clamp(0.75rem, 0.90vw, 0.80rem);
  --p-xxxs: clamp(0.60rem, 0.90vw, 0.65rem);
  --eyebrow: clamp(0.75rem, 1vw, 0.9rem);

  --radius: 20px;
  --gap: 24px;
  --padding: 24px;



  --ease: cubic-bezier(.22, .98, .36, 1);
  --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  --box-shadow-hover: 0 6px 18px rgba(0, 0, 0, 0.08);
  --box-shadow-strong: 0 12px 30px rgba(0, 0, 0, 0.10);
  --transition: 0.3s ease;


  /* HEADER AND NAVBAR ROOT */
  --nav-bg: rgba(245, 245, 247, 0.55);
  --nav-bg-scrolled: rgba(245, 245, 247, 0.92);
  --nav-text: #1d1d1f;
  --hairline: rgba(0, 0, 0, 0.12);

  /* FOOTER ROOT */
  --footer-bg: #FAFAFA;
  --footer-text: #6e6e73;
  --footer-title: #1d1d1f;
  --footer-border: #d2d2d7;
}


html.dark {
  --bg: #0F0F11;
  --headers: #ffffff;
  --text: #d7d7d9;
  --faded-text: #8b8b8f;
  --border: 1px solid rgba(255, 255, 255, 0.08);
  --border-color-only: rgba(255, 255, 255, 0.06);
  --surface: #1A1A1C;
  --surface-deep: #13131580;

  --icon: 40px;
  --icon-s: 26px;
  --accent: #E52338;
  --max-width: 1040px;

  --h1: clamp(2.6rem, 4vw, 3.4rem);
  --h2: clamp(2.0rem, 3vw, 2.5rem);
  --h3: clamp(1rem, 2.3vw, 1.2rem);
  --p: clamp(.90rem, 1.3vw, 1rem);

  --p-lg: clamp(.9rem, 1.6vw, .95rem);
  --p-sm: clamp(0.87rem, 1.1vw, 0.90rem);
  --p-xs: clamp(0.8rem, 0.95vw, 0.87rem);
  --eyebrow: clamp(0.75rem, 1vw, 0.9rem);

  --radius: 20px;
  --gap: 24px;
  --padding: 24px;

  --ease: cubic-bezier(.22, .98, .36, 1);
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  --box-shadow-hover: 0 6px 22px rgba(0, 0, 0, 0.65);
  --box-shadow-strong: 0 14px 34px rgba(0, 0, 0, 0.75);
  --transition: 0.3s ease;

  /* HEADER & NAV — glossy translucent glass */
  --nav-bg: rgba(22, 22, 24, 0.55);
  --nav-bg-scrolled: rgba(22, 22, 24, 0.92);
  --nav-text: #f7f7f8;
  --hairline: rgba(255, 255, 255, 0.12);

  /* FOOTER */
  --footer-bg: #0F0F11;
  --footer-text: #9c9ca1;
  --footer-title: #ffffff;
  --footer-border: rgba(255, 255, 255, 0.08);
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--headers);
  line-height: 1.7;
}

.channels-section {
  padding: 96px 24px;
  display: flex;
  justify-content: center;
  border-bottom: var(--border);
}

.channels-container {
  width: 100%;
  max-width: var(--max-width);
}

.wiz-center {
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .12em;
  color: var(--text);
  margin-bottom: 12px;
}

.channels-icon {
  font-size: 56px;
  margin-bottom: 18px;
}

.channels-h1,
.channels-h2,
.channels-h3 {
  margin: 0 0 20px;
  font-weight: 600;
}

.channels-h1 {
  font-size: clamp(2.6rem, 4vw, 3.4rem);
}

.channels-h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  margin-top: 64px;
}

.channels-p {
  margin: 0 auto 18px;
  color: var(--text);
  max-width: 720px;
}


.channels-scrollable::-webkit-scrollbar {
  width: 3px;
}

.channels-scrollable::-webkit-scrollbar-track {
  margin: 15px auto;
  background: var(--bg);
}

.channels-scrollable::-webkit-scrollbar-thumb {
  background: var(--faded-text);
  border-radius: 10px;
}

.channels-scrollable::-webkit-scrollbar-thumb:hover {
  background: var(--text);
}

/* NEW: Featured Header with lines */
.channels-featured-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 48px 0 32px 0;
  width: 100%;
  text-align: center;
}

.channels-featured-header-line {
  flex: 1;
  height: 1px;
  background: var(--headers);
  max-width: 200px;
  margin: auto 50px;
}

.channels-featured-header-text {
  padding: 0 20px;
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  font-weight: 600;
  color: var(--headers);
  white-space: nowrap;
}

/* Mini Boxes - Fluid same row */
.channels-mini-grid {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 48px;
}

.channels-mini-box {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  cursor: pointer;
  flex: 1;
  text-align: center;
  font-size: var(--h3);
  font-weight: 500;
  transition: all 0.25s ease;
  min-width: 50px;
  position: relative;
  overflow: hidden;
}

.channels-mini-box:hover {
  transform: translateY(-4px);
  background: var(--surface-deep);
  box-shadow: var(--box-shadow-strong);
}

.channels-mini-box.channels-active {
  border-color: var(--headers);
}

/* Active indicator for mini-box */
.channels-mini-box.channels-active::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--headers);
  border-radius: 2px;
}

/* Grid & Cards */
.channels-grid {
  display: grid;
  gap: 20px;
}

.channels-grid.channels-featured {
  grid-template-columns: repeat(6, 1fr);
}

.channels-card {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s;
}

.channels-card:hover {
  transform: scale(1.05);
}

.channels-card-image-container {
  width: 100%;
  background: var(--surface);
  border-radius: 25px;
  overflow: hidden;
  position: relative;
  border: var(--border);
}

.channels-card.channels-poster .channels-card-image-container {
  padding-bottom: 150%;
  border-radius: 15px;
}

.channels-card.channels-channel .channels-card-image-container {
  padding-bottom: 56.25%;
}

.channels-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.channels-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: var(--p-xxs);
  padding: 1px 10px;
  border-radius: 999px;
  font-weight: 800;
  z-index: 2;
}

/* FIXED: Card titles more bold and clean */
.channels-card-title {
  font-size: var(--p-xs);
  text-align: center;
  margin-top: 12px;

  line-height: 1.35;
  min-height: calc(1.35em * 2);

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;

  overflow: hidden;
  text-overflow: ellipsis;

  font-weight: 600;
  color: var(--headers);
  letter-spacing: -0.01em;
}

/* Show More Card Style */
.channels-show-more-card {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s;
  text-decoration: none;
}

.channels-show-more-card:hover {
  transform: scale(1.05);
}

.channels-show-more-content {
  width: 100%;
  background: var(--surface);
  border-radius: 25px;
  overflow: hidden;
  position: relative;
  border: var(--border);
  padding-bottom: 150%;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.channels-show-more-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  padding: 20px;
}

.channels-show-more-icon {
  font-size: 30px;
  color: var(--headers);
  margin-bottom: 5px;
  display: block;
  transition: transform 0.3s var(--ease);
}

.channels-show-more-card:hover .channels-show-more-icon {
  transform: translateX(5px);
}

.channels-show-more-text {
  font-size: var(--p-xs);
  font-weight: 600;
  color: var(--headers);
  line-height: 1.2;
}

.channels-show-more-card.channels-channel .channels-show-more-content {
  padding-bottom: 56.25%;
}

/* Browse Header */
.channels-browse-header {
  background: var(--bg);
  margin: 20px auto;
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 10px 0;
  border-bottom: var(--border);
}

.channels-browse-header-content {
  width: 92vw;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.channels-back-button {
  padding: 10px 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: var(--headers);
}

.channels-back-button:hover {
  opacity: .85;
  transition: var(--ease);
}

/* Mobile back button icon only */
.channels-mobile-back-button {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: var(--border);
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--headers);
}

/* Global Search Button */
.channels-global-search-button {
  padding: 10px 20px;
  border: var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--headers);
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
}


.channels-global-search-button i {
  font-size: var(--h3);
  color: var(--headers);
}

.channels-global-search-button:hover {
  background: var(--surface-deep);
  border-color: var(--headers);
}

.channels-global-search-button.channels-active {
  background: var(--headers);
  color: var(--bg);
  border-color: var(--headers);
}

.channels-global-search-button.channels-active i {
  color: var(--bg);
}

.channels-global-search-button.channels-active:hover {
  background: var(--headers);
  color: var(--bg);
}

/* Search Box with Category Filter */
.channels-search-box {
  position: relative;
  width: 100%;
  max-width: 700px;
}

.channels-search-box input {
  width: 100%;
  padding: 14px 48px 14px 18px;
  border-radius: 999px;
  color: var(--headers);
  border: var(--border);
  font-size: var(--p-xxs);
  background: var(--surface);
  outline: none;
}

.channels-search-box input:focus {
  border-color: var(--headers);
}

.channels-search-box button {
  position: absolute;
  color: var(--headers);
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
}

/* Search Category Indicator */
.channels-search-category-indicator {
  position: absolute;
  bottom: -25px;
  left: 0;
  right: 0;
  text-align: left;
  font-size: var(--p-xxxs);
  color: var(--headers);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 1;
}

.channels-search-category-indicator.channels-active {
  opacity: 1;
  transform: translateY(0);
}

.channels-search-category-indicator .channels-filter-text {
  color: var(--headers);
  padding: 4px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  pointer-events: auto;
}

.channels-filter-text {
  margin-top: 10px;
}

.channels-search-category-indicator .channels-remove-filter {
  background: none;
  border: none;
  color: var(--headers);
  cursor: pointer;
  padding: 2px;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.channels-search-category-indicator .channels-remove-filter:hover {
  color: var(--accent);
}

/* List Layout */
.channels-list-container {
  width: 90vw;
  max-width: 2000px;
  margin: 25px auto;
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 20px;
  min-height: 100vh;
}

.channels-categories-sidebar,
.channels-content-area {
  border: var(--border);
  border-radius: 20px;
  background: var(--bg);
  overflow-y: auto;
}

.channels-categories-sidebar {
  top: 60px;
  height: 90vh;
  padding: 10px;
}

.channels-content-area {
  height: 90vh;
  padding: 10px;
}

.channels-category-item {
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 12px;
  margin-bottom: 8px;
  border: var(--border);
  background: var(--surface);
  transition: background 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channels-category-item:hover {
  background: var(--surface-deep);
}

.channels-category-item.channels-active {
  background: var(--headers);
  color: var(--bg);
}

.channels-browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  padding: 0;
  width: 100%;
}

/* Channel List */
.channels-channel-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  width: 100%;
}

.channels-channel-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 10px 16px;
  border: var(--border);
  border-radius: 12px;
  background: var(--surface);
  transition: background 0.2s;
  width: 100%;
}

.channels-channel-row:hover {
  background: var(--surface-deep);
}

.channels-channel-image {
  width: 60px;
  height: 34px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--surface-deep);
}

.channels-channel-name {
  font-weight: 600;
  font-size: var(--p);
  line-height: 1.4;

  min-height: calc(1.4em * 2);

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;

  overflow: hidden;
  text-overflow: ellipsis;

  color: var(--headers);
}

.channels-channel-type {
  color: var(--accent);
  font-size: var(--p-xxs);
  font-weight: 600;
  padding: 4px 10px;
  white-space: nowrap;
}

/* Mobile Controls */
.channels-mobile-controls {
  background: var(--bg);
  padding: 16px 20px;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  border-bottom: var(--border);
}

.channels-mobile-controls.channels-active {
  display: flex;
}

.channels-mobile-controls .channels-category-dropdown {
  position: relative;
  flex: 1;
  padding: 10px 16px;
  border: var(--border);
  border-radius: 15px;
  background: var(--surface);
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 200px;
}

/* Mobile Dropdown - Fixed positioning */
.channels-mobile-controls .channels-category-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 450px;
  background: var(--surface);
  border: var(--border);
  border-radius: 20px;
  box-shadow: var(--box-shadow-strong);
  z-index: 100;
  overflow-y: auto;
  padding: 10px;
  margin-top: 8px;
}

.channels-mobile-controls .channels-category-dropdown-menu.channels-active {
  display: block;
}

.channels-mobile-controls .channels-search-icon-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: var(--border);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Search Modal */
.channels-search-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.channels-search-modal-overlay.channels-active {
  display: flex;
}

.channels-search-modal-content {
  background: var(--bg);
  border-radius: 24px;
  width: 100%;
  max-width: 1000px;
  max-height: 85vh;
  overflow: hidden;
  position: relative;
  box-shadow: var(--box-shadow);
}

.channels-search-modal-header {
  padding: 24px;
  border-bottom: var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.channels-search-modal-body {
  padding: 25px;
  overflow-y: auto;
  max-height: calc(90vh - 90px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 200px;
  width: 100%;
}

/* Search Modal Alert */
.channels-search-modal-alert {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--headers);
  color: var(--bg);
  padding: 12px 24px;
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  display: none;
  align-items: center;
  gap: 12px;
  z-index: 1001;
  animation: channels-slideDown 0.3s ease-out;
  font-size: var(--p-sm);
  font-weight: 500;
  white-space: nowrap;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channels-search-modal-alert.channels-active {
  display: flex;
}

@keyframes channels-slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Search Results Header */
.channels-search-results-header {
  width: 100%;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: var(--border);
}

.channels-search-results-header h3 {
  font-size: var(--p-lg);
  font-weight: 600;
  color: var(--headers);
  margin: 0;
}

.channels-search-results-header p {
  font-size: var(--p-sm);
  color: var(--faded-text);
  margin: 5px 0 0 0;
}

/* No Results Message */
.channels-no-results {
  text-align: center;
  color: var(--faded-text);
  font-size: var(--p);
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.channels-no-results i {
  font-size: 48px;
  opacity: 0.5;
}

/* Search Results Container */
.channels-search-results-container {
  width: 100%;
  padding: 0;
  max-width: 100%;
}

/* Loading Indicator */
.channels-category-loading {
  text-align: center;
  padding: 20px;
  color: var(--text);
  font-size: var(--p);
}

.channels-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--surface);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: channels-spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes channels-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Load More Sentinel */
.channels-load-more-sentinel {
  height: 50px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 14px;
  opacity: 0.7;
  grid-column: 1 / -1;
}

.channels-load-more-sentinel .channels-spinner {
  width: 20px;
  height: 20px;
  margin: 0 10px 0 0;
}

/* Search Results Grid - Full Width */
.channels-search-results-grid {
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
}

/* Make channel list in search modal full width */
.channels-search-modal-body .channels-channel-list,
.channels-search-modal-body .channels-browse-grid {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

/* Search Category Indicator in Modal */
.channels-search-modal-content .channels-search-category-indicator {
  position: static;
  margin: 0 auto 15px;
  text-align: center;
  opacity: 0;
  transform: none;
  height: 0;
  overflow: hidden;
  transition: all 0.2s ease;
}

.channels-search-modal-content .channels-search-category-indicator.channels-active {
  opacity: 1;
  height: auto;
  overflow: visible;
  margin: 0 auto 15px;
}

.channels-search-modal-content .channels-search-category-indicator .channels-filter-text {
  background: var(--surface);
  color: var(--headers);
  padding: 6px 16px;
  border-radius: 999px;
  border: var(--border);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: var(--p-xxs);
  pointer-events: auto;
}

.channels-search-modal-content .channels-search-category-indicator .channels-remove-filter {
  background: none;
  border: none;
  color: var(--headers);
  cursor: pointer;
  padding: 2px;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-left: 4px;
}

.channels-search-modal-content .channels-search-category-indicator .channels-remove-filter:hover {
  background: var(--surface-deep);
  color: var(--accent);
}

/* Responsive */
@media(max-width:1100px) {
  .channels-grid.channels-featured {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media(max-width:1020px) {
  .channels-mini-box {
    min-width: 180px;
    padding: 24px 20px;
  }
}

@media(max-width:900px) {
  .channels-grid.channels-featured {
    grid-template-columns: repeat(4, 1fr);
  }

  .channels-list-container {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .channels-browse-header {
    display: none;
  }

  .channels-mobile-controls {
    display: flex;
  }

  .channels-categories-sidebar:not(.channels-mobile-floating) {
    display: none;
  }

  .channels-content-area {
    height: 90vh;
    margin-top: 20px;
  }

  /* Show mobile back button and adjust layout */
  .channels-mobile-back-button {
    display: flex;
  }

  .channels-mobile-controls {
    justify-content: flex-start;
    gap: 12px;
  }

  .channels-mobile-controls .channels-category-dropdown {
    flex: 1;
    min-width: 150px;
  }

  /* Header layout */
  .channels-search-modal-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    /* 🔥 push to edges */
    gap: 10px;

    /* Reduce right padding */
    padding: 20px;
  }

  /* Search box hugs the left */
  .channels-search-box {
    flex: 1;
    max-width: 100%;
  }

  /* Icon-only global search hugs the right */
  .channels-global-search-button {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    flex-shrink: 0;
    justify-content: center;

    font-size: 0;
    /* hide text */
  }

  /* Restore icon size */
  .channels-global-search-button i {
    font-size: var(--h2);
    line-height: 1;
    margin-left: 8px;
    font-weight: 100;
  }


}

@media(max-width:768px) {
  .channels-section {
    padding: 64px 20px;
  }

  .channels-grid.channels-featured {
    grid-template-columns: repeat(3, 1fr);
  }

  .channels-mini-box {
    min-width: 160px;
    padding: 20px 16px;
  }

  .channels-channel-row {
    grid-template-columns: 50px 1fr auto;
    gap: 12px;
    padding: 12px;
  }

  .channels-channel-image {
    width: 50px;
    height: 28px;
  }

  .channels-search-modal-body {
    padding: 20px;
  }

  .channels-search-modal-alert {
    font-size: var(--p-xs);
    padding: 10px 16px;
    max-width: 95%;
  }
}

@media(max-width:640px) {
  .channels-section {
    padding: 48px 16px;
  }

  .channels-mini-box.channels-active::after {
    width: 50px;
  }

  .channels-grid.channels-featured {
    grid-template-columns: repeat(3, 1fr);
  }

  .channels-mini-grid {
    gap: 10px;
  }

  .channels-mini-box {
    flex: 0 0 calc(33% - 12px);
    min-width: auto;
    margin-bottom: 12px;
  }
}

@media(max-width:480px) {
  .channels-grid.channels-featured {
    grid-template-columns: repeat(2, 1fr);
  }

  .channels-search-modal-alert {
    font-size: var(--p-xxs);
    padding: 8px 12px;
  }
}

.channels-fade-in {
  animation: channels-fadeIn 0.3s ease-out;
}

@keyframes channels-fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}