/* ==========================================================================
   IPTV Adults — channels.html page-specific styles (loaded AFTER style.css)
   Full channel directory: search, region/category pills, collapsible cards
   Neon Noir theme
   ========================================================================== */

/* ---------- Page head ---------- */
.page-head {
  padding: 140px 0 64px;
  text-align: center;
  background:
    radial-gradient(560px 320px at 86% -10%, rgba(255, 45, 120, 0.16), transparent 70%),
    radial-gradient(500px 320px at 4% 110%, rgba(124, 58, 237, 0.14), transparent 70%),
    var(--bg);
}
.page-head h1 {
  margin: 18px 0 0;
  font-family: var(--font-head);
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--text);
}
.page-head h1 .accent {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.page-head-sub {
  max-width: 640px;
  margin: 18px auto 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
}
.page-head-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
  list-style: none;
  padding: 0;
}
.page-head-stats li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}
.page-head-stats .icon { width: 15px; height: 15px; color: var(--neon-soft); }
.page-head-stats strong {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-family: var(--font-head);
}

/* ---------- Directory section spacing ---------- */
.section--tight-top { padding-top: 24px; }

/* Keep the sticky toolbar working: overflow-x:hidden on html/body creates a
   scroll container that breaks position:sticky — `clip` prevents horizontal
   scroll WITHOUT becoming a scroll container. */
html, body { overflow-x: clip; }

/* ---------- Sticky directory toolbar ---------- */
.chn-toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(8, 8, 15, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  padding: 14px 0;
  transition: border-color .25s, box-shadow .25s;
}
.chn-toolbar.stuck {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.chn-search {
  max-width: 620px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  padding: 12px 20px;
  transition: border-color .2s, box-shadow .2s;
}
.chn-search:focus-within {
  border-color: var(--neon);
  box-shadow: 0 0 0 4px rgba(255, 45, 120, 0.22);
}
.chn-search .icon { width: 18px; height: 18px; color: var(--neon-soft); flex-shrink: 0; }
.chn-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-body);
}
.chn-search input::placeholder { color: var(--muted); }

.chn-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 960px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
.chn-pills + .chn-pills { margin-top: 8px; }
.chn-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 9px 18px;
  margin: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  transition: all .2s ease;
}
.chn-pill:hover { border-color: rgba(255, 45, 120, 0.55); color: var(--neon-soft); transform: translateY(-1px); }
.chn-pill.active {
  background: var(--grad-neon);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 45, 120, 0.35);
}

.chn-resultcount {
  text-align: center;
  color: var(--neon-soft);
  font-size: 13.5px;
  font-weight: 600;
  margin: 16px 0 4px;
  min-height: 20px;
}

/* ---------- Region blocks & country cards ---------- */
.chn-region-block { margin-bottom: 52px; }
.chn-region-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  border-left: 4px solid var(--neon);
  padding-left: 14px;
  margin: 0 0 20px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.chn-region-title span {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.chn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.chn-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.chn-card:hover {
  border-color: rgba(255, 45, 120, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.chn-card.open { border-color: rgba(255, 45, 120, 0.55); box-shadow: 0 10px 28px rgba(255, 45, 120, 0.14); }
.chn-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
}
.chn-flag {
  font-size: 22px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 22px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface-2);
}
.chn-flag .fi { width: 30px; height: 22px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); }
.chn-flag.emoji { background: transparent; width: auto; height: auto; }
.chn-name {
  flex: 1;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.chn-count {
  color: var(--neon-soft);
  background: rgba(255, 45, 120, 0.12);
  border: 1px solid rgba(255, 45, 120, 0.26);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}
.chn-chev { color: var(--neon-soft); transition: transform .3s; flex-shrink: 0; font-size: 14px; }
.chn-card.open .chn-chev { transform: rotate(180deg); }
.chn-body { display: none; padding: 0 18px 16px; max-height: 360px; overflow-y: auto; }
.chn-card.open .chn-body { display: block; }
.chn-body::-webkit-scrollbar { width: 5px; }
.chn-body::-webkit-scrollbar-thumb { background: rgba(255, 45, 120, .4); border-radius: 99px; }
.chn-body::-webkit-scrollbar-track { background: rgba(255, 45, 120, .07); border-radius: 99px; }
.chn-list {
  white-space: pre-wrap;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.9;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}
.chn-none {
  text-align: center;
  color: var(--muted);
  padding: 60px 0;
  display: none;
}
.chn-none .btn { margin-top: 16px; }

/* ---------- Responsive ---------- */
@media (min-width: 900px) {
  .chn-list { columns: 2; column-gap: 28px; }
}
@media (max-width: 879px) {
  .chn-toolbar { top: 0; }
}
@media (max-width: 640px) {
  .page-head { padding: 120px 0 48px; }
  .chn-pills { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .chn-pills::-webkit-scrollbar { display: none; }
  .chn-pill { padding: 8px 15px; font-size: 12px; }
  .chn-grid { grid-template-columns: 1fr; }
}

/* Adult category hub (channels.html) */
.hub-grid { align-items: stretch; }
.hub-card { display: flex; flex-direction: column; }
.hub-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hub-card-top .feature-icon { margin: 0; }
.hub-count { font-size: 12px; font-weight: 700; color: var(--neon-soft); background: rgba(255, 45, 120, 0.12); border: 1px solid rgba(255, 45, 120, 0.26); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.hub-samples { list-style: none; margin: 14px 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hub-samples li { font-size: 12px; font-weight: 600; color: var(--body); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; }
.hub-link { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--neon-soft); text-decoration: none; }
.hub-link .icon { width: 15px; height: 15px; transition: transform .2s ease; }
.hub-link:hover { color: var(--neon); }
.hub-link:hover .icon { transform: translateX(4px); }
.hub-fullist { display: flex; align-items: center; justify-content: space-between; gap: 28px; border-radius: var(--radius-lg); padding: 34px 38px; }
.hub-fullist h2 { margin: 10px 0 10px; }
.hub-fullist p { margin: 0; max-width: 560px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.hub-fullist .btn { flex: none; }
@media (max-width: 760px) {
  .hub-fullist { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
}
.page-head h1.display-xl { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.page-head .age-badge { font-size: 14px; }
