/* ============================================================
   TV Regional MT — TV Online
   Estética: broadcast / news editorial. Azul-noite + vermelho ao vivo.
   ============================================================ */

:root {
  --bg:        #0b0f1a;
  --bg-soft:   #111726;
  --bg-card:   #161d30;
  --bg-card-2: #1c2540;
  --line:      #26304d;
  --text:      #eef2fb;
  --text-dim:  #9aa6c4;
  --text-mute: #6b779a;
  --accent:    #e11d2a;  /* vermelho "ao vivo" */
  --accent-2:  #2563eb;  /* azul */
  --radius:    14px;
  --maxw:      1400px;   /* largura máxima do conteúdo (centralizado) */
  --shadow:    0 18px 50px rgba(0,0,0,.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Archivo', system-ui, sans-serif;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(37,99,235,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(225,29,42,.10), transparent 55%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Topo (banner + cabeçalho) ----------
   No desktop o wrapper é transparente (display:contents): o cabeçalho mantém
   seu sticky próprio. No celular o wrapper inteiro fica fixo no topo (ver media query). */
.site-top { display: contents; }

/* ---------- Banner (full-width, sem margens) ---------- */
.site-banner {
  display: block;
  width: 100%;
  line-height: 0;
}
.site-banner a { display: block; line-height: 0; }
.banner-img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(11,15,26,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-nav {
  display: flex;
  gap: 6px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.header-nav::-webkit-scrollbar { display: none; }

.nav-chip {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: .18s;
}
.nav-chip:hover { color: var(--text); background: var(--bg-card); }
.nav-chip.active { color: #fff; border-color: var(--line); background: var(--bg-card-2); }

.header-search {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.header-search input {
  width: 220px;
  max-width: 38vw;
  padding: 9px 32px 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  transition: .18s;
}
.header-search input::placeholder { color: var(--text-mute); }
.header-search input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-card-2);
  width: 260px;
}
.header-search input::-webkit-search-cancel-button { display: none; }
.search-clear {
  position: absolute;
  right: 8px;
  border: 0;
  background: transparent;
  color: var(--text-mute);
  font-size: 13px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.search-clear:hover { color: var(--accent); }

/* ============================================================
   Programas em destaque (grade fixa — 2 linhas de 4, sem movimento)
   ============================================================ */
.carousel-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 34px) clamp(16px, 4vw, 48px) 4px;
}
.carousel-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.4vw, 18px);
}
/* Mobile: 2 programas por linha (inclusive em telas pequenas) */
@media (max-width: 900px) { .carousel-track { grid-template-columns: repeat(2, 1fr); } }

.carousel-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--bg-card);
  padding: 0;
  text-align: left;
  isolation: isolate;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.carousel-card:hover {
  transform: translateY(-4px);
  border-color: var(--cardcolor, var(--accent-2));
  box-shadow: var(--shadow);
}
.cc-img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.carousel-card:hover .cc-img { transform: scale(1.06); }
.cc-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(11,15,26,.96) 8%, rgba(11,15,26,.55) 55%, rgba(11,15,26,.05) 100%);
}
.cc-content {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px 14px 18px;
  display: flex; flex-direction: column; gap: 2px;
}
.cc-content::before {
  content: ''; position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 4px; border-radius: 4px; background: var(--cardcolor, var(--accent-2));
}
.cc-tag {
  font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-mute);
}
.cc-name { font-size: 16px; font-weight: 800; line-height: 1.15; color: #fff; }
.cc-meta {
  margin-top: 4px; font-size: 11.5px; font-weight: 700;
  color: var(--cardcolor, var(--accent-2)); filter: brightness(1.5);
}

/* ============================================================
   Blocos por programa (player + lista de episódios)
   ============================================================ */
.blocos {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(10px, 2vw, 20px) clamp(16px, 4vw, 48px) 12px;
  display: flex;
  flex-direction: column;
  gap: clamp(34px, 4.5vw, 56px);
}
.pstage { scroll-margin-top: 80px; }

.pstage-head {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px;
  margin-bottom: 16px; padding-left: 16px; position: relative;
}
.pstage-head::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 5px; border-radius: 5px; background: var(--pcolor, var(--accent));
}
.pstage-tag {
  align-self: center;
  font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: var(--pcolor, var(--accent)); filter: brightness(1.4);
}
.pstage-name {
  font-family: 'Anton', sans-serif; font-weight: 400;
  font-size: clamp(20px, 2.6vw, 30px); letter-spacing: .5px; line-height: 1;
}
.pstage-desc { color: var(--text-dim); font-size: 14px; }

.pstage-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}
.pstage-main { min-width: 0; }

/* ----- Frame do player (modelo "Parceiros") -----
   Player no quadrante superior-esquerdo; coluna "Parceiros Oficiais"
   à direita; faixa "Nossos Parceiros" sob o player. Moldura neon na
   cor de cada programa (var(--pcolor)). */
.pstage-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(150px, 21%, 250px);
  gap: clamp(12px, 1.5vw, 22px);
  align-items: stretch;
  padding: clamp(16px, 1.9vw, 28px);
  border-radius: 18px;
  background:
    radial-gradient(130% 90% at 50% -10%, color-mix(in srgb, var(--pcolor) 24%, transparent), transparent 60%),
    linear-gradient(180deg, #0d1122 0%, #070810 100%);
  border: 1px solid color-mix(in srgb, var(--pcolor) 45%, var(--line));
  box-shadow:
    inset 0 0 70px rgba(0,0,0,.55),
    0 0 26px color-mix(in srgb, var(--pcolor) 28%, transparent),
    var(--shadow);
}

/* Cantos "tech" neon */
.frame-corner {
  position: absolute; width: 26px; height: 26px; z-index: 2;
  border: 2px solid var(--pcolor);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--pcolor) 70%, transparent));
  pointer-events: none;
}
.fc-tl { top: 9px; left: 9px;  border-right: 0; border-bottom: 0; border-radius: 9px 0 0 0; }
.fc-tr { top: 9px; right: 9px; border-left: 0;  border-bottom: 0; border-radius: 0 9px 0 0; }
.fc-bl { bottom: 9px; left: 9px;  border-right: 0; border-top: 0; border-radius: 0 0 0 9px; }
.fc-br { bottom: 9px; right: 9px; border-left: 0;  border-top: 0; border-radius: 0 0 9px 0; }

/* Arena = player + faixa inferior de parceiros */
.pstage-arena {
  display: flex; flex-direction: column;
  gap: clamp(12px, 1.4vw, 20px);
  min-width: 0;
}
.pstage-stage .pstage-frame {
  border-color: color-mix(in srgb, var(--pcolor) 55%, var(--line));
  box-shadow:
    0 0 20px color-mix(in srgb, var(--pcolor) 25%, transparent),
    var(--shadow);
}

/* Blocos de anúncio + cabeçalhos */
.ad-block { display: flex; flex-direction: column; min-width: 0; }
.ad-head {
  font-family: 'Anton', sans-serif; font-weight: 400;
  text-transform: uppercase; letter-spacing: 2px; color: #fff;
  margin-bottom: 10px;
}
/* "Nossos Parceiros" — título central com linhas laterais */
.ad-head-line {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: clamp(12px, 1.2vw, 16px);
}
.ad-head-line::before, .ad-head-line::after {
  content: ''; height: 2px; flex: 1; max-width: 120px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--pcolor));
  box-shadow: 0 0 8px color-mix(in srgb, var(--pcolor) 60%, transparent);
}
.ad-head-line::after { transform: scaleX(-1); }
/* "Parceiros Oficiais" — estrelas + pílula com troféu */
.ad-head-oficiais { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.ad-head-stars {
  font-size: 9px; letter-spacing: 4px; color: var(--pcolor);
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--pcolor) 80%, transparent));
}
.ad-head-title {
  font-size: clamp(11px, 1vw, 14px); letter-spacing: 1.5px;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--pcolor) 70%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--pcolor) 30%, #0d1122), #0a0c16);
  box-shadow: 0 0 14px color-mix(in srgb, var(--pcolor) 35%, transparent);
}

/* Faixa inferior (4 quadros) e coluna oficial (5 quadros) */
.ad-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 1vw, 14px); }
.ad-row .ad-slot { min-height: clamp(56px, 6vw, 84px); }
.ad-col { display: flex; flex-direction: column; gap: clamp(8px, .9vw, 12px); flex: 1; }
.ad-col .ad-slot { flex: 1 1 0; min-height: 52px; }

/* Quadro de anúncio (branco, logo contido) */
.ad-slot {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; overflow: hidden; text-decoration: none;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--pcolor) 35%, #cfd5e6);
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.ad-slot img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 8px; }
a.ad-slot:hover {
  transform: translateY(-2px);
  border-color: var(--pcolor);
  box-shadow: 0 0 16px color-mix(in srgb, var(--pcolor) 55%, transparent), 0 8px 20px rgba(0,0,0,.45);
}
/* Vazio: placeholder neon escuro com o tamanho recomendado */
.ad-slot.is-empty {
  flex-direction: column; gap: 4px; text-align: center; padding: 4px;
  background: rgba(255,255,255,.03);
  border: 1px dashed color-mix(in srgb, var(--pcolor) 45%, var(--line));
  box-shadow: none;
}
.ad-slot-label {
  font-size: 9px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  color: color-mix(in srgb, var(--pcolor) 55%, var(--text-mute));
}
.ad-slot-size {
  font-size: 11px; font-weight: 800; letter-spacing: .5px;
  color: color-mix(in srgb, var(--pcolor) 75%, #ffffff);
}

/* Player (capa com play → iframe ao clicar) */
.pstage-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.pstage-frame:not(.playing) { cursor: pointer; }
.pstage-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.pstage-poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.pstage-skel {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-2) 37%, var(--bg-card) 63%);
  background-size: 400% 100%; animation: shimmer 1.4s ease infinite;
}
.pstage-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: var(--accent); color: #fff;
  font-size: 26px; padding-left: 5px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  transition: transform .18s, filter .18s;
}
.pstage-frame:hover .pstage-play { transform: translate(-50%, -50%) scale(1.08); filter: brightness(1.1); }
.pstage-badge {
  position: absolute; left: 14px; top: 14px;
  background: rgba(11,15,26,.82); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line);
}

.pstage-now { margin-top: 16px; }
.pstage-now-prog {
  display: inline-block;
  font-size: clamp(14px, 1.6vw, 17px); font-weight: 800; letter-spacing: 1px;
  margin-bottom: 6px;
}
.np-prog-name { text-transform: uppercase; color: var(--pcolor, var(--accent)); }
.np-prog-date { color: #fff; text-transform: none; letter-spacing: .3px; }
.pstage-now-row { display: flex; align-items: flex-start; gap: 14px; }
.pstage-now-title { font-size: clamp(17px, 2vw, 22px); font-weight: 800; line-height: 1.25; flex: 1; min-width: 0; }

/* Botão "Compartilhar" (ao lado do título do vídeo em destaque) */
.share-btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--bg-card); color: var(--text);
  border: 1px solid color-mix(in srgb, var(--pcolor, var(--accent)) 45%, var(--line));
  font-family: inherit; font-weight: 700; font-size: 13px; cursor: pointer;
  transition: transform .15s, border-color .15s, box-shadow .15s, background .15s;
}
.share-btn:hover {
  transform: translateY(-1px);
  border-color: var(--pcolor, var(--accent));
  background: var(--bg-card-2);
  box-shadow: 0 0 14px color-mix(in srgb, var(--pcolor, var(--accent)) 35%, transparent);
}
.share-btn svg { width: 16px; height: 16px; }
@media (max-width: 560px) { .share-btn span { display: none; } .share-btn { padding: 8px; } }

/* Toast (link copiado) */
.app-toast {
  position: fixed; left: 50%; bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  background: rgba(22,163,74,.15); border: 1px solid #1e5b39; color: #86efac;
  font-weight: 700; font-size: 14px; padding: 12px 20px; border-radius: 12px;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 99;
}
.app-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Lista de episódios (ao lado do player) */
.pstage-list {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 520px;
  display: flex;
  flex-direction: column;
}
.pstage-list-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.pstage-list-head h3 { font-size: 14px; font-weight: 700; }
.pstage-count { font-size: 12px; color: var(--text-mute); font-weight: 600; }
.pstage-list-scroll { overflow-y: auto; padding: 8px; }
.pstage-list-scroll::-webkit-scrollbar { width: 8px; }
.pstage-list-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }

.ep-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s;
}
.ep-item:hover { background: var(--bg-card); }
.ep-item.active { background: var(--bg-card-2); }
.ep-item.active .ep-title { color: #fff; }

.ep-thumb {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 7px;
  overflow: hidden;
  background: var(--bg-card);
}
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-item.active .ep-thumb::after {
  content: '▶ AGORA';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11,15,26,.65);
  color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .5px;
}
.ep-info { min-width: 0; padding-top: 2px; }
.ep-title {
  font-size: 13.5px; font-weight: 600; line-height: 1.35;
  color: var(--text-dim);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.ep-date { font-size: 11.5px; color: var(--text-mute); margin-top: 6px; }

/* ---------- Skeletons ---------- */
.skeleton-list { padding: 4px; }
.sk-item {
  height: 80px; border-radius: 10px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-2) 37%, var(--bg-card) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 38px; height: 38px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}

/* ---------- Erro ---------- */
.ep-error {
  padding: 28px 18px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}
.ep-error strong { color: var(--accent); }

/* ============================================================
   Todos os vídeos + paginação
   ============================================================ */
.section-title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: .5px;
  margin-bottom: 20px;
  position: relative;
  padding-left: 16px;
}
.section-title::before {
  content: '';
  position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 5px; border-radius: 5px;
  background: var(--accent);
}

.all-videos-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px clamp(16px, 4vw, 48px) 50px;
}
.all-videos-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}
.all-videos-head .section-title { margin-bottom: 0; }
.all-count { color: var(--text-mute); font-size: 13.5px; font-weight: 700; }

.all-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  min-height: 160px;
}
@media (max-width: 1100px) { .all-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .all-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .all-grid { grid-template-columns: 1fr; } }
.all-loading {
  grid-column: 1 / -1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  padding: 40px; color: var(--text-dim); font-weight: 600;
}

.vcard {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.vcard:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.vcard-thumb { position: relative; aspect-ratio: 16/9; background: var(--bg-card-2); }
.vcard-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vcard-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .18s; background: rgba(11,15,26,.4);
}
.vcard:hover .vcard-play { opacity: 1; }
.vcard-play span {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; padding-left: 3px;
}
.vcard-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.vcard-prog {
  font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
  color: var(--vcolor, var(--accent)); filter: brightness(1.4);
}
.vcard-title {
  font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vcard-date { margin-top: auto; font-size: 12px; color: var(--text-mute); font-weight: 600; }

.pagination {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px; margin-top: 28px;
}
.pg-btn {
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-card); color: var(--text-dim);
  font-weight: 700; font-size: 14px; cursor: pointer;
  transition: .15s;
}
.pg-btn:hover:not(:disabled) { color: #fff; border-color: var(--accent); }
.pg-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.pg-btn:disabled { opacity: .4; cursor: not-allowed; }
.pg-ellipsis { color: var(--text-mute); padding: 0 4px; }

/* ---------- Rodapé ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px;
  text-align: center;
  color: var(--text-mute);
  font-size: 13px;
}

/* ---------- Responsivo ---------- */
@media (max-width: 920px) {
  .pstage-body { grid-template-columns: 1fr; }
  .pstage-stage { grid-template-columns: 1fr; }

  /* Publicidade no mobile: no máximo 2 anúncios por linha (banners 2:1) */
  .ad-row { grid-template-columns: repeat(2, 1fr); }
  .ad-col { display: grid; grid-template-columns: repeat(2, 1fr); }
  .ad-row .ad-slot,
  .ad-col .ad-slot { aspect-ratio: 2 / 1; min-height: 0; flex: none; }

  /* "Nossos Parceiros" (4 espaços = 2 linhas de 2) vai para ANTES do player */
  .pstage-arena .ad-nossos { order: -1; }

  .pstage-list { max-height: 420px; }
  .header-nav { display: none; }

  /* ---------- Topo fixo no celular ----------
     index.html: o wrapper segura banner + busca fixos no topo ao rolar.
     watch.php: o próprio banner (.site-banner é o <header>) fica fixo. */
  .site-top {
    display: block;
    position: sticky;
    top: 0;
    z-index: 60;
  }
  .site-top .site-banner,
  .site-top .site-header { position: static; }

  .site-banner {
    position: sticky;
    top: 0;
    z-index: 60;
  }
}
