/* ==========================================================================
   Design concept: "Channel Index" — 复古 Teletext(图文电视) 信息服务美学
   Teletext（如英国 Ceefax、法国 Antiope）历史上就是通过电视频道播出的
   "频道信息/节目索引服务"，概念上与这个产品(频道百科/查询站)高度契合。
   配色沿用经典 teletext 调色板：黑底 + 青/黄/品红/绿 四色高对比文字。
   ========================================================================== */

:root {
  --bg: #0a0a0f;
  --surface: #121218;
  --surface-2: #17171f;
  --border: #2a2a35;
  --text: #f2f2f2;
  --text-dim: #8a8a96;

  --cyan: #00e5ff;
  --yellow: #ffd400;
  --magenta: #ff3ea5;
  --green: #00ff85;

  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', monospace;
  --font-sans: 'IBM Plex Sans', -apple-system, sans-serif;
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* -------------------- Page header: teletext "tuning" bar -------------------- */

.pageband {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.pageband-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 10px 20px;
  max-width: 1040px;
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
}

.pageband .page-no {
  color: var(--yellow);
  font-weight: 600;
}

.pageband .cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--cyan);
  margin-left: 2px;
  animation: blink 1.1s steps(2) infinite;
  vertical-align: -2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
}

header.site {
  padding: 14px 0 16px;
}

nav.crumbs {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
}
nav.crumbs a { color: var(--cyan); }
nav.crumbs .sep { margin: 0 6px; color: var(--text-dim); }

/* -------------------- Top navigation bar -------------------- */

.topnav {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

/* -------------------- Back to top -------------------- */

.backtop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--yellow);
  background: var(--yellow);
  color: var(--bg);
  font-size: 18px;
  font-family: var(--font-mono);
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 50;
}
.backtop:hover {
  background: var(--bg);
  color: var(--yellow);
}
.backtop.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.topnav-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand-sm {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-sm:hover { text-decoration: none; }
.brand-sm .brand-logo {
  width: 24px;
  height: 24px;
  flex: none;
  display: block;
}
.brand-sm .brand-name {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.2px;
}
.brand-sm .brand-dot {
  color: var(--yellow);
}

.mainnav {
  display: flex;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  flex: 1;
}
.mainnav a { color: var(--text-dim); }
.mainnav a:hover { color: var(--cyan); text-decoration: none; }

.navsearch input {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 7px 12px;
  width: 220px;
}
.navsearch input:focus-visible { outline: 2px solid var(--cyan); }
.navsearch input::placeholder { color: var(--text-dim); }

@media (max-width: 720px) {
  .topnav-inner { flex-wrap: wrap; gap: 12px; }
  .mainnav { order: 3; width: 100%; gap: 16px; }
  .navsearch { order: 2; margin-left: auto; }
  .navsearch input { width: 160px; }
}

/* -------------------- Stat strip -------------------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 28px 0;
}
.stat {
  background: var(--surface);
  padding: 18px 16px;
  text-align: center;
}
.stat .v {
  display: block;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--cyan);
}
.stat .k {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}
@media (max-width: 560px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

/* -------------------- Popular channels grid -------------------- */

.pchan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.pchan-grid.rel-grid {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 720px) {
  .pchan-grid.rel-grid { grid-template-columns: repeat(2, 1fr); }
}
.pchan {
  background: var(--surface);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.pchan:hover { background: var(--surface-2); text-decoration: none; }
.pchan-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  padding: 4px;
}
.pchan-logo.placeholder {
  background: var(--surface-2);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
}
.pchan-name { font-size: 13px; font-weight: 600; }
.pchan-country { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }

/* -------------------- How it works -------------------- */

.howit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.howit {
  background: var(--surface);
  padding: 22px 20px;
}
.howit .step {
  font-family: var(--font-mono);
  color: var(--magenta);
  font-size: 13px;
  font-weight: 700;
}
.howit h3 {
  font-size: 15px;
  margin: 10px 0 8px;
}
.howit p {
  font-size: 13.5px;
  color: var(--text-dim);
  margin: 0;
}
@media (max-width: 720px) {
  .howit-grid { grid-template-columns: 1fr; }
}

/* -------------------- Footer 3-column -------------------- */

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-top: 8px;
}
.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col p {
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
  max-width: 380px;
}
.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--cyan); text-decoration: none; }
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

/* -------------------- Simple index page (all countries / all categories) -------------------- */

.az-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.az-item {
  background: var(--surface);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
}
.az-item:hover { background: var(--surface-2); }
.az-item .n { font-family: var(--font-mono); color: var(--text-dim); font-size: 12px; }

/* -------------------- Footer -------------------- */

footer.site {
  margin-top: 60px;
  padding: 32px 0 50px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* -------------------- Section headings, index-numbered -------------------- */

.section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 44px 0 16px;
}

.section-head .idx {
  font-family: var(--font-mono);
  color: var(--bg);
  background: var(--magenta);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 7px;
}

.section-head h2 {
  font-family: var(--font-mono);
  font-size: 17px;
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.section-head h2 a { color: var(--cyan); }

.section-head .count {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 13px;
  margin-left: auto;
}

/* -------------------- Grid of country / category tiles -------------------- */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.tile {
  background: var(--surface);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.12s ease;
}
.tile:hover { background: var(--surface-2); text-decoration: none; }

.tile .flag { font-size: 22px; }

.tile .tname { font-weight: 600; font-size: 15px; }
.tile .tcount {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  display: block;
  margin-top: 2px;
}

.tile.cat { border-left: 3px solid var(--magenta); }
.tile.cat:nth-child(4n+2) { border-left-color: var(--cyan); }
.tile.cat:nth-child(4n+3) { border-left-color: var(--yellow); }
.tile.cat:nth-child(4n+4) { border-left-color: var(--green); }

/* -------------------- Channel list rows -------------------- */

.channel-list {
  border: 1px solid var(--border);
}

.channel-row {
  display: grid;
  grid-template-columns: 44px 40px minmax(170px, 230px) repeat(var(--cols, 2), minmax(110px, 1fr)) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.channel-row:last-child { border-bottom: none; }
.channel-row:hover { background: var(--surface-2); }

.channel-row .num {
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 13px;
}

.channel-row .logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #fff;
  border-radius: 3px;
  padding: 3px;
}
.channel-row .logo.placeholder {
  background: var(--surface-2);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
}

.channel-row .cname-wrap { min-width: 0; }
.channel-row .cname {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  font-size: 14.5px;
}
.channel-row .col {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  min-width: 0;
}
.channel-row .col .flag-img {
  width: 18px;
  height: 12px;
  vertical-align: -2px;
  margin-right: 4px;
}
.channel-row .cmeta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 3px;
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 6px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  margin-right: 4px;
}
.tag.news { border-color: var(--magenta); color: var(--magenta); }
.tag.general { border-color: var(--cyan); color: var(--cyan); }
.tag.entertainment { border-color: var(--yellow); color: var(--yellow); }
.tag.sports { border-color: var(--green); color: var(--green); }
.tag.nsfw { border-color: var(--magenta); color: var(--magenta); }

/* -------------------- Filter bar (client-side, vanilla JS demo) -------------------- */

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.filter-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 0.6px;
  width: 74px;
  flex-shrink: 0;
}
.filter-group .filterbar { margin-bottom: 0; flex: 1; }
.filter-group:last-of-type { margin-bottom: 22px; }

.filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.filterbar button {
  background: var(--surface);
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 6px 12px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.filterbar button:hover { color: var(--text); border-color: var(--text-dim); }
.filterbar button.active {
  color: var(--bg);
  background: var(--cyan);
  border-color: var(--cyan);
}

/* -------------------- Channel detail page -------------------- */

.channel-hero {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.channel-hero .logo-lg {
  width: 96px;
  height: 96px;
  background: #fff;
  border-radius: 6px;
  padding: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

.channel-hero h1 {
  font-family: var(--font-display);
  font-weight: 340;
  font-size: 34px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 28px 0;
}

.fact {
  background: var(--surface);
  padding: 14px 16px;
}
.fact .k {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.fact .v { font-size: 14.5px; margin-top: 4px; font-weight: 500; }
.fact .v a { color: var(--cyan); }
.fact .v a:hover { text-decoration: underline; }
.fact .v .flag-img { margin-right: 6px; }

.watch-box {
  border: 1px solid var(--green);
  background: rgba(0,255,133,0.06);
  padding: 18px 20px;
  margin: 24px 0;
}
.watch-box .label {
  font-family: var(--font-mono);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.watch-box a.official-btn {
  display: inline-block;
  margin-top: 10px;
  border: 1px solid var(--green);
  color: var(--green);
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.watch-box a.official-btn:hover { background: var(--green); color: var(--bg); text-decoration: none; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.faq-item .q {
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 6px;
}
.faq-item .q::before { content: "Q · "; color: var(--text-dim); }
.faq-item .a::before { content: "A · "; color: var(--text-dim); }

/* -------------------- Footer -------------------- */

footer.site {
  margin-top: 60px;
  padding: 24px 0 50px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 12px;
}

.disclaimer {
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.6;
  max-width: 640px;
  margin: 28px auto 0;
  text-align: center;
}

@media (max-width: 900px) {
  .channel-row { grid-template-columns: 40px 38px 1fr auto; }
  .channel-row .col { display: none; }
}
@media (max-width: 620px) {
  .channel-row { grid-template-columns: 32px 34px 1fr; }
  .channel-row .status-col { display: none; }
  .channel-hero { flex-direction: column; }
  .filterbar button,
  .pager a.pg,
  .pager .cur { padding: 8px 12px; }
}

/* -------------------- Production additions -------------------- */

/* Page band right-side production label */
.pageband .prod-tag {
  color: var(--text-dim);
  white-space: nowrap;
}

/* Note shown when a hub page lists only the first N channels */
.note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  border: 1px dashed var(--border);
  padding: 10px 14px;
  margin: 14px 0 22px;
}
.note a { color: var(--cyan); }

/* Status column in channel rows */
.channel-row .status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.6px;
  color: var(--text-dim);
  text-align: right;
  white-space: nowrap;
}
.channel-row .status.active { color: var(--green); }
.channel-row .status.closed { color: var(--magenta); }

/* Closed-channel notice on detail pages */
.closed-note {
  border: 1px solid var(--magenta);
  background: rgba(255, 62, 165, 0.06);
  padding: 14px 18px;
  margin: 18px 0;
  color: var(--text-dim);
  font-size: 13.5px;
}
.closed-note .label {
  font-family: var(--font-mono);
  color: var(--magenta);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

/* Related-links strip on channel detail pages */
.related { margin-top: 28px; }
.related a {
  display: inline-block;
  margin: 0 8px 8px 0;
  border: 1px solid var(--border);
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}
.related a:hover { color: var(--cyan); border-color: var(--cyan); text-decoration: none; }

/* Search page */
.searchbox {
  display: flex;
  gap: 10px;
  margin: 24px 0 10px;
}
.searchbox input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 11px 14px;
  min-width: 0;
}
.searchbox button {
  background: var(--cyan);
  color: var(--bg);
  border: 1px solid var(--cyan);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  padding: 0 20px;
  cursor: pointer;
  white-space: nowrap;
}
.result-count {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
  margin: 18px 0 8px;
}
.search-hint {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  margin: 0 0 8px;
}
.search-results { border: 1px solid var(--border); }
.sr-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.sr-row:last-child { border-bottom: none; }
.sr-row:hover { background: var(--surface-2); }
.sr-row .num {
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 13px;
  width: 34px;
  flex-shrink: 0;
}
.sr-row .n { font-weight: 600; font-size: 14px; }
.sr-row .m {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  margin-left: auto;
  white-space: nowrap;
}
.search-empty {
  border: 1px dashed var(--border);
  padding: 40px 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}
@media (max-width: 560px) {
  .searchbox { flex-direction: column; }
  .searchbox button { padding: 10px 14px; }
}

/* Legal pages (privacy / terms) */
.legal { max-width: 720px; }
.legal .updated {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin: 0 0 20px;
}
.legal h2 {
  font-family: var(--font-display);
  font-weight: 340;
  font-size: 24px;
  margin: 34px 0 10px;
}
.legal h2:first-of-type { margin-top: 24px; }
.legal p, .legal li { color: var(--text-dim); font-size: 14.5px; line-height: 1.7; }
.legal a { color: var(--cyan); }
.legal ul { padding-left: 20px; }

/* 404 page */
.notfound { padding: 70px 0 16px; text-align: center; }
.notfound .nf-code {
  font-family: var(--font-display);
  font-weight: 340;
  font-size: 96px;
  line-height: 1;
  color: var(--cyan);
  margin: 0 0 8px;
}
.notfound h1 {
  font-family: var(--font-display);
  font-weight: 340;
  font-size: 36px;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.notfound p { color: var(--text-dim); font-size: 15px; margin: 0; }

/* Compact channel list used on hub pages with many channels */
.channel-row.compact .logo { width: 32px; height: 32px; }
@media (max-width: 620px) {
  .channel-row.compact { grid-template-columns: 32px 30px 1fr; }
}

/* Broadcast versions (channel detail page, metadata only) */
.versions { border: 1px solid var(--border); }
.vrow {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.vrow:last-child { border-bottom: none; }
.vrow .vname {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--cyan);
}
.vrow .vmain {
  color: var(--green);
  font-size: 10px;
  border: 1px solid var(--green);
  padding: 1px 4px;
  margin-left: 6px;
  vertical-align: 1px;
}
.vrow .vmeta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
}
@media (max-width: 560px) {
  .vrow { grid-template-columns: 1fr; gap: 4px; }
}

/* Load more button on hub pages */
.loadmore {
  background: var(--surface);
  color: var(--cyan);
  border: 1px solid var(--cyan);
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 9px 18px;
  cursor: pointer;
  margin: 4px 0 22px;
}
.loadmore:hover { background: var(--cyan); color: var(--bg); }
.loadmore:disabled { opacity: 0.55; cursor: progress; }

/* 分页导航 */
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 18px 0 8px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.pager a.pg {
  color: var(--cyan);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 6px 11px;
}
.pager a.pg:hover { border-color: var(--cyan); text-decoration: none; }
.pager .cur {
  color: var(--bg);
  background: var(--cyan);
  border: 1px solid var(--cyan);
  padding: 6px 11px;
  font-weight: 700;
}
.pager .dots { color: var(--text-dim); padding: 6px 2px; }

/* SVG 国旗（替换 emoji） */
.flag-img {
  width: 24px;
  height: 16px;
  object-fit: cover;
  vertical-align: -3px;
  border-radius: 2px;
  border: 1px solid var(--border);
}
h1 .flag-img {
  width: 32px;
  height: 20px;
  vertical-align: -4px;
  margin-right: 6px;
}
.tile .flag .flag-img {
  width: 44px;
  height: 29px;
  vertical-align: -6px;
}
.pchan-country .flag-img {
  width: 18px;
  height: 12px;
  vertical-align: -2px;
  margin-right: 4px;
}
.channel-row .cmeta .flag-img {
  width: 18px;
  height: 12px;
  vertical-align: -2px;
}
.fact .v .flag-img {
  width: 28px;
  height: 18px;
  vertical-align: -4px;
  margin-right: 6px;
}
.az-item .flag-img {
  width: 22px;
  height: 15px;
  vertical-align: -3px;
  margin-right: 6px;
}
.channel-hero h1 .flag-img {
  width: 34px;
  height: 22px;
  vertical-align: -5px;
  margin-right: 6px;
}
