:root {
  --bg: #0b0b0f;
  --bg2: #12121a;
  --card: #17171f;
  --card2: #1e1e29;
  --line: #2a2a38;
  --text: #f2f2f7;
  --muted: #9a9ab0;
  --brand: #ff2d6f;
  --brand2: #b428ff;
  --ok: #2ecc71;
  --warn: #ffb020;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(1200px 600px at 15% -10%, #2a0f22 0%, transparent 60%),
              radial-gradient(900px 500px at 100% 0%, #1a0f2e 0%, transparent 55%), var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

/* ---------- header ---------- */
header.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11,11,15,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  max-width: 1500px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 18px;
}
.logo { font-weight: 800; font-size: 22px; letter-spacing: -.5px; white-space: nowrap; }
.logo span {
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo .plus { color: var(--brand); }
.search { flex: 1; display: flex; gap: 8px; max-width: 620px; }
.search input {
  flex: 1; background: var(--card); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 10px 18px; outline: none; transition: .2s;
}
.search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,45,111,.15); }
.search button {
  background: linear-gradient(90deg, var(--brand), var(--brand2)); border: 0; color: #fff;
  padding: 0 20px; border-radius: 999px; cursor: pointer; font-weight: 600;
}
.top-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  padding: 9px 16px; border-radius: 10px; cursor: pointer; font-weight: 600;
  font-size: 14px; transition: .18s; white-space: nowrap;
}
.btn:hover { border-color: var(--brand); color: #fff; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  border: 0; color: #fff;
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-danger { background: #3a1220; border-color: #6b1d33; color: #ff8aa8; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; }

.cats-bar {
  border-bottom: 1px solid var(--line); background: rgba(18,18,26,.6);
  overflow-x: auto; scrollbar-width: none;
}
.cats-bar::-webkit-scrollbar { display: none; }
.cats-inner {
  max-width: 1500px; margin: 0 auto; padding: 9px 20px; display: flex; flex-wrap: wrap; gap: 8px; /* os 20 chips somam 2.162px numa linha: ~800px ficava fora da tela em 1440px, e a rolagem escondida não dava indício de arrastar */
}
.chip {
  padding: 7px 14px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); font-size: 13.5px; color: var(--muted);
  white-space: nowrap; transition: .18s;
}
.chip:hover { color: #fff; border-color: var(--brand); }
.chip.active {
  background: linear-gradient(90deg, var(--brand), var(--brand2)); color: #fff; border-color: transparent;
}
.chip small { opacity: .65; margin-left: 5px; }

/* ---------- aviso de novidades ---------- */
.site-notice {
  max-width: 1500px; width: calc(100% - 40px); margin: 12px auto 0; padding: 10px 18px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: #e8e8f4; font-size: 14px; text-align: center;
  background: linear-gradient(90deg, rgba(255,45,111,.12), rgba(180,40,255,.10));
  border: 1px solid rgba(255,45,111,.28);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
@media (max-width: 640px) {
  .site-notice { width: calc(100% - 24px); font-size: 13px; padding: 9px 12px; gap: 8px; }
}
.site-notice-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 0 0 0 rgba(255,45,111,.55);
  animation: notice-pulse 2s ease-out infinite;
}
.site-notice strong { color: #fff; font-weight: 700; }
@keyframes notice-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,45,111,.55); }
  70% { box-shadow: 0 0 0 8px rgba(255,45,111,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,45,111,0); }
}

/* ---------- layout ---------- */
.wrap { max-width: 1500px; margin: 0 auto; padding: 22px 20px 60px; }
.layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 26px; min-width: 0; }
.layout > div { min-width: 0; }
@media (max-width: 1080px) { .layout { grid-template-columns: minmax(0,1fr); } }

.section-head {
  display: flex; align-items: baseline; gap: 12px; margin: 4px 0 16px; flex-wrap: wrap;
}
.section-head h1, .section-head h2 { margin: 0; font-size: 20px; letter-spacing: -.3px; }
.section-head .count { color: var(--muted); font-size: 13.5px; }
.section-head .spacer { flex: 1; }

/* ---------- hero ---------- */
.hero {
  position: relative; border-radius: 18px; overflow: hidden; margin-bottom: 26px;
  min-height: 330px; display: flex; align-items: flex-end;
  border: 1px solid var(--line);
  background: linear-gradient(120deg, #24102a, #150c22);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: saturate(1.1); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,11,15,.96) 10%, rgba(11,11,15,.55) 55%, rgba(11,11,15,.1));
}
.hero-content { position: relative; padding: 30px; max-width: 620px; }
.hero-content .tag {
  display: inline-block; align-self: flex-start; font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase;
  color: #fff; background: linear-gradient(90deg, var(--brand), var(--brand2));
  padding: 5px 11px; border-radius: 6px; margin-bottom: 12px; font-weight: 700;
}
.hero-content h2 { margin: 0 0 10px; font-size: 32px; line-height: 1.15; letter-spacing: -.8px; }
.home-h1 { margin: 0 0 14px; font-size: 22px; letter-spacing: -.5px; line-height: 1.25; }
.home-h1 small { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: #8a8aa0; letter-spacing: 0; }
.hero-content p { margin: 0 0 18px; color: #c9c9d8; font-size: 14.5px; line-height: 1.5; }
.hero-thumbs { display: flex; gap: 8px; position: absolute; right: 22px; bottom: 22px; }
.hero-thumbs a {
  width: 76px; height: 52px; border-radius: 8px; overflow: hidden; border: 2px solid transparent;
  opacity: .6; transition: .2s;
}
.hero-thumbs a:hover, .hero-thumbs a:first-child { opacity: 1; border-color: var(--brand); }
.hero-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .hero-thumbs { display: none; } .hero-content h2 { font-size: 24px; } }

/* ---------- grade de vídeos ---------- */
.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .2s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); border-color: #43304d; box-shadow: 0 12px 30px -12px rgba(255,45,111,.35); }
.thumb { position: relative; aspect-ratio: 16/9; background: #0e0e14; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: .35s; }
.card:hover .thumb img { transform: scale(1.05); }
.thumb-preview {
  position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity .3s; pointer-events: none;
  width: 100%; height: 100%; object-fit: cover;
}
.card:hover .thumb-preview { opacity: 1; }
/* "assistir mais tarde" no canto da capa: só aparece quando o card é olhado,
   exceto no toque, onde hover não existe e o botão teria de sumir para sempre */
.save-btn {
  position: absolute; top: 7px; right: 7px; z-index: 3;
  width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(8,8,14,.78); border: 1px solid var(--line); color: #e8e8f2;
  font-size: 15px; line-height: 1; cursor: pointer; opacity: 0; transition: .18s;
}
.card:hover .save-btn, .save-btn:focus-visible, .save-btn[data-on] { opacity: 1; }
.save-btn:hover { border-color: var(--brand); color: #fff; transform: scale(1.08); }
.save-btn[data-on="1"] { background: var(--brand); border-color: transparent; color: #fff; }
.seen-tag {
  position: absolute; left: 7px; bottom: 7px; z-index: 3;
  background: rgba(8,8,14,.82); border: 1px solid var(--line); color: #c9c9dd;
  font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 7px;
}
.seen-note { color: #9a7fb0; }
@media (pointer: coarse) {
  .save-btn { opacity: 1; }
  /* sem hover no toque, a prévia não tem como ser pedida de graça: nada de
     abrir vídeo escondido atrás do dedo */
  .thumb-preview { display: none; }
}
.thumb .ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, #241026, #141422); color: #4d3a5c; font-size: 30px;
}
.thumb .dur {
  position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.75);
  padding: 2px 7px; border-radius: 5px; font-size: 11.5px; font-weight: 600;
}
.thumb .badge {
  position: absolute; left: 8px; top: 8px; background: rgba(0,0,0,.7);
  border: 1px solid rgba(255,255,255,.14); padding: 3px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
}
.thumb .play {
  position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: .2s;
}
.card:hover .play { opacity: 1; }
.thumb .play i {
  width: 46px; height: 46px; border-radius: 50%; background: rgba(255,45,111,.92);
  display: grid; place-items: center; color: #fff; font-style: normal; font-size: 17px;
  padding-left: 3px;
}
.card-body { padding: 11px 12px 13px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 {
  margin: 0; font-size: 14px; line-height: 1.35; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.meta { color: var(--muted); font-size: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.cat-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: var(--brand); background: rgba(255,45,111,.1);
  border: 1px solid rgba(255,45,111,.25); padding: 3px 8px; border-radius: 6px;
}

/* ---------- sidebar / propaganda ---------- */
.side { display: flex; flex-direction: column; gap: 18px; }
.side-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
/* zona lateral é 160x600: reserva a altura real para o criativo não ser cortado
   nem empurrar o resto da página quando carrega */
.ad-side-body { display: flex; justify-content: center; align-items: center; padding: 10px; min-height: 600px; }
.ad-side-body ins, .ad-side-body iframe, .ad-side-body img { display: block; max-width: 100%; margin: 0 auto; }
.side-ads { padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.side-empty { padding: 14px; color: var(--muted); font-size: 12px; }
.side-box .sb-head {
  padding: 10px 14px; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--line); display: flex;
  justify-content: space-between; align-items: center;
}
.ad {
  display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  background: var(--card2); transition: .2s; position: relative;
}
.ad:hover { border-color: var(--brand); transform: translateY(-2px); }
.ad img { width: 100%; height: 150px; object-fit: cover; }
.ad .ad-text { padding: 11px 13px; }
.ad .ad-text b { font-size: 13.5px; display: block; margin-bottom: 3px; }
.ad .ad-text span { font-size: 11.5px; color: var(--muted); }
.ad-label {
  position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,.72);
  font-size: 9.5px; letter-spacing: 1.2px; padding: 2px 6px; border-radius: 4px; color: #bbb;
  text-transform: uppercase;
}
.ad-wide img { height: 92px; }
.aff-item {
  display: flex; gap: 11px; padding: 11px 13px; border-bottom: 1px solid var(--line);
  transition: .18s; align-items: center;
}
.aff-item:last-child { border-bottom: 0; }
.aff-item:hover { background: var(--card2); }
.aff-item .ic {
  width: 38px; height: 38px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(255,45,111,.2), rgba(180,40,255,.2));
  border: 1px solid var(--line); font-weight: 800; color: var(--brand); font-size: 14px;
  overflow: hidden;
}
.aff-item .ic img { width: 100%; height: 100%; object-fit: cover; }
.aff-item .tx { min-width: 0; }
.aff-item b { font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aff-item span { font-size: 11.5px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-top {
  display: block; margin-bottom: 22px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); position: relative; background: var(--card2);
}
.ad-top img { width: 100%; max-height: 130px; object-fit: cover; }
.ad-top .ad-line { padding: 10px 14px; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.ad-top .ad-line b { color: var(--brand); }

/* ---------- player ---------- */
.player-wrap {
  background: #000; border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 16/9; position: relative;
}
.player-wrap iframe, .player-wrap video { width: 100%; height: 100%; border: 0; display: block; }
.player-cover { position: relative; width: 100%; height: 100%; }
.player-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.player-cover .pc-inner {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; gap: 12px;
  padding: 20px;
}
.player-cover .pc-inner button {
  width: 74px; height: 74px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; font-size: 26px;
  padding-left: 5px; box-shadow: 0 10px 40px rgba(255,45,111,.5);
}
.player-cover .pc-inner p { color: #ddd; font-size: 13px; margin: 0; }
.player-fail {
  display: grid; place-items: center; align-content: center; gap: 8px; height: 100%;
  padding: 20px; text-align: center; color: #c9c9d8; font-family: system-ui, sans-serif;
}
.player-fail b { font-size: 15px; color: #eee; }
.player-fail span { font-size: 13px; color: #8a8aa0; }
.v-title { margin: 18px 0 8px; font-size: 22px; letter-spacing: -.4px; line-height: 1.3; }
.v-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.v-attr { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 10px; }
.v-attr .meta a { color: var(--brand); }
.chip-attr { font-weight: 700; }
.attr-rail { display: flex; gap: 8px; flex-wrap: wrap; }
.v-desc {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 15px 17px; margin-top: 16px; font-size: 14px; line-height: 1.65; color: #d3d3e0;
  white-space: pre-wrap; word-break: break-word;
}
.src-note { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ---------- admin ---------- */
.admin-layout { display: grid; grid-template-columns: 232px minmax(0,1fr); gap: 24px; }
@media (max-width: 900px) { .admin-layout { grid-template-columns: 1fr; } }
.admin-nav {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px; height: fit-content; position: sticky; top: 82px;
}
.admin-nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: 9px;
  color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 2px;
}
.admin-nav a:hover { background: var(--card2); color: #fff; }
.admin-nav a.active { background: linear-gradient(90deg, rgba(255,45,111,.18), rgba(180,40,255,.12)); color: #fff; }
.admin-nav .sep { height: 1px; background: var(--line); margin: 8px 4px; }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 20px;
}
.panel h2 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.3px; }
.panel .sub { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 12px; margin-bottom: 20px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px;
}
.stat .n { font-size: 25px; font-weight: 800; letter-spacing: -.7px;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .l { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .9px; margin-top: 2px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: #c5c5d5; margin-bottom: 6px; }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; line-height: 1.45; }
.input, textarea.input, select.input {
  width: 100%; background: var(--bg2); border: 1px solid var(--line); color: var(--text);
  border-radius: 9px; padding: 10px 12px; outline: none; transition: .18s;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,45,111,.13); }
textarea.input { resize: vertical; min-height: 92px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .row2 { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: #c9c9d8; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); }
/* página de remoção de conteúdo (/denuncia) */
.denuncia-como { margin: 0 0 16px; padding-left: 20px; font-size: 13.5px; line-height: 1.7; color: #c5c5d5; }
.denuncia-como li { margin-bottom: 6px; }
.denuncia-como b { color: #e8e8f0; }
.panel > .hint { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.6; margin: 0 0 16px; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left; font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); padding: 9px 10px; border-bottom: 1px solid var(--line); font-weight: 700;
}
.table td { padding: 10px; border-bottom: 1px solid #20202c; vertical-align: middle; }
.table tr:hover td { background: #1a1a24; }
.table .mini { width: 68px; height: 40px; border-radius: 6px; object-fit: cover; background: #0e0e14; }
.pill { font-size: 11px; padding: 3px 8px; border-radius: 999px; font-weight: 700; }
.pill.on { background: rgba(46,204,113,.15); color: #52d98a; }
.pill.off { background: rgba(255,176,32,.14); color: var(--warn); }
.flash {
  padding: 11px 15px; border-radius: 10px; margin-bottom: 16px; font-size: 13.5px;
  border: 1px solid;
}
.flash.ok { background: rgba(46,204,113,.1); border-color: rgba(46,204,113,.35); color: #7ee0a4; }
.flash.error { background: rgba(255,45,111,.1); border-color: rgba(255,45,111,.35); color: #ff8aa8; }
.embed-preview { margin-top: 10px; font-size: 12px; color: var(--muted); word-break: break-all; }
.embed-preview code { color: #7ee0a4; }

/* login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card {
  width: 100%; max-width: 390px; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 32px;
}
.login-card h1 { margin: 0 0 6px; font-size: 21px; }
.login-card p { color: var(--muted); font-size: 13.5px; margin: 0 0 22px; }

/* paginação */
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 12px;
  border-radius: 9px; border: 1px solid var(--line); background: var(--card); font-size: 13.5px;
}
.pager .cur { background: linear-gradient(90deg, var(--brand), var(--brand2)); border: 0; font-weight: 700; }

/* aviso +18 (o portal em si é uma página própria: /aviso) */
.warn18 { color: var(--brand); font-weight: 800; font-size: 13px; letter-spacing: 2px; }

footer.site {
  border-top: 1px solid var(--line); padding: 24px 20px; color: var(--muted);
  font-size: 12.5px; text-align: center; line-height: 1.7;
}
footer.site .warn18 { display: block; margin-bottom: 6px; }

/* contador de acessos no rodapé */
.site-live {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; gap: 7px;
  flex-wrap: wrap; font-size: 12.5px; color: var(--muted);
}
.site-live b { color: #e8e8f2; font-weight: 700; }
.site-live .sep { color: #3a3a48; }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #38d973;
  box-shadow: 0 0 0 0 rgba(56,217,115,.7);
  animation: pulso 2s infinite;
}
@keyframes pulso {
  0%   { box-shadow: 0 0 0 0 rgba(56,217,115,.55); }
  70%  { box-shadow: 0 0 0 7px rgba(56,217,115,0); }
  100% { box-shadow: 0 0 0 0 rgba(56,217,115,0); }
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 17px; margin-bottom: 6px; }

/* ================= v2 — visual viral ================= */
.top-inner { padding: 10px 18px; gap: 12px; }
.logo { font-size: 24px; font-weight: 900; letter-spacing: -1px;
  background: linear-gradient(90deg, #fff 0%, #ffb3cd 55%, #d9a3ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 24px rgba(255,45,111,.25); }
.logo:hover { filter: brightness(1.15); }
.icon-btn { display: none; background: var(--card); border: 1px solid var(--line); color: var(--text);
  width: 38px; height: 38px; border-radius: 10px; cursor: pointer; font-size: 17px; }
@media (max-width: 820px) {
  .icon-btn { display: block; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .top-inner { flex-wrap: wrap; }
  .hide-sm { display: none; }
  .cats-bar { display: none; }
  .cats-bar.open { display: block; }
}
.search input { padding: 11px 18px; background: #101018; }
.search button { padding: 0 22px; }
.chip.active { box-shadow: 0 6px 20px -6px rgba(255,45,111,.7); }

/* ---- hero carrossel ---- */
.hero { min-height: 380px; }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: flex-end;
  opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.hero-slide.on { opacity: 1; pointer-events: auto; position: relative; }
.hero-slide .hero-bg { position: absolute; inset: 0; }
.hero-slide .hero-bg img { transform: scale(1.03); transition: transform 8s linear; }
.hero-slide.on .hero-bg img { transform: scale(1.1); }
.hero-content { position: relative; padding: 34px; max-width: 660px; }
.hero-content h2 { font-size: 36px; font-weight: 800; }
.hero-btns { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-btns .btn { padding: 12px 24px; font-size: 15px; border-radius: 999px; }
.hero-dots { position: absolute; left: 34px; bottom: 14px; display: flex; gap: 7px; z-index: 5; }
.hero-dot { width: 22px; height: 4px; border-radius: 3px; border: 0; background: rgba(255,255,255,.25); cursor: pointer; transition: .2s; }
.hero-dot.on { background: var(--brand); width: 34px; }
@media (max-width: 900px) {
  .hero { min-height: 300px; }
  .hero-content { padding: 20px; }
  .hero-content h2 { font-size: 23px; }
  .hero-content p { font-size: 13px; }
  .hero-dots { left: 20px; bottom: 10px; }
}

/* ---- trilho "em alta" ---- */
.rail-block { margin-bottom: 30px; }
.rail { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; scroll-snap-type: x mandatory; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: #2c2c3c; border-radius: 3px; }
.rail-card { flex: 0 0 218px; scroll-snap-align: start; display: flex; flex-direction: column; }
.rail-card .thumb { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.rail-card .thumb img { transition: .3s; }
.rail-card:hover .thumb img { transform: scale(1.06); }
.rail-card h3 { font-size: 13px; margin: 8px 0 3px; line-height: 1.35; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rail-card .meta { font-size: 11.5px; }
.rail-card .rank { position: absolute; left: 8px; bottom: 8px; font-size: 26px; font-weight: 900;
  color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.9); letter-spacing: -1px; }
.rail-card .rank::before { content: ""; }

/* ---- grade e cards ---- */
.grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.card { border-radius: 12px; }
.card .thumb img { aspect-ratio: 16/9; object-fit: cover; }
.card-body h3 { font-size: 14.5px; font-weight: 700; }
.card:hover { border-color: rgba(255,45,111,.45); box-shadow: 0 16px 40px -18px rgba(255,45,111,.55); }
.thumb .badge { background: rgba(11,11,15,.8); border-color: rgba(255,45,111,.4); color: #ff9dbb; }
.thumb .dur { background: rgba(0,0,0,.82); letter-spacing: .3px; }

/* ---- ordenação / tags ---- */
.sort-tabs { display: flex; gap: 4px; background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px; }
.sort-tabs a { padding: 6px 13px; border-radius: 999px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.sort-tabs a:hover { color: #fff; }
.sort-tabs a.on { background: linear-gradient(90deg, var(--brand), var(--brand2)); color: #fff; }
.tag-cloud { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 20px; }

/* ---- categoria ---- */
.cat-hero { background: linear-gradient(120deg, rgba(255,45,111,.18), rgba(180,40,255,.14));
  border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; margin-bottom: 20px; }
.cat-hero h1 { margin: 0 0 4px; font-size: 30px; letter-spacing: -.8px; }
.cat-hero p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* ---- player / watch ---- */
.like-btn.liked { background: rgba(255,45,111,.18); border-color: var(--brand); color: #ff8aa8; }
.next-bar { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 13px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; transition: .2s; }
.next-bar:hover { border-color: var(--brand); transform: translateX(3px); }
.nb-label { font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--brand); font-weight: 800; }
.nb-title { flex: 1; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-go { color: var(--brand); }
.v-title { font-size: 24px; font-weight: 800; }

/* ---- rodapé e misc ---- */
.load-more { text-align: center; color: var(--muted); font-size: 13px; padding: 22px; }
footer.site a:hover { color: #fff; }
.pager a, .pager span { background: var(--card2); }

/* ---- selo de qualidade / modelo ---- */
.thumb .hq { position: absolute; right: 8px; top: 8px; background: linear-gradient(90deg,#ffb020,#ff6b00);
  color: #231000; font-size: 10px; font-weight: 900; padding: 2px 7px; border-radius: 5px; letter-spacing: .5px; }
.thumb .of { position: absolute; right: 8px; top: 8px; background: #00aff0; color: #fff; font-size: 9.5px;
  font-weight: 800; padding: 2px 6px; border-radius: 5px; letter-spacing: .4px; text-transform: uppercase; }
.card-body .model-link { font-size: 11.5px; color: #b48cff; font-weight: 700; }
.card-top-featured { border-color: rgba(255,176,32,.5) !important; }
.card-top-featured .thumb::after { content: "★ destaque"; position: absolute; left: 8px; bottom: 8px;
  background: rgba(255,176,32,.92); color: #241400; font-size: 10px; font-weight: 900; padding: 2px 7px; border-radius: 5px; }

/* ---- página de modelos ---- */
.model-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); }
.model-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; text-align: center; transition: .2s; }
.model-card:hover { border-color: var(--brand); transform: translateY(-3px); }
.mc-avatar { width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 50%; display: grid;
  place-items: center; font-size: 22px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand2)); }
.model-card b { display: block; font-size: 13.5px; margin-bottom: 3px; }

/* ---- blocos por categoria na home ---- */
.cat-block { margin-bottom: 34px; }
.cat-block .section-head h1, .cat-block .section-head h2 { font-size: 18px; }
.cat-block .section-head { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.cat-block .grid { grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 16px; }
.cat-block .card-body h3 { font-size: 13.5px; }

/* ---- usuário logado ---- */
.user-chip { font-size: 12.5px; font-weight: 700; color: #ffb3cd; background: rgba(255,45,111,.12);
  border: 1px solid rgba(255,45,111,.3); padding: 5px 11px; border-radius: 999px; }

/* ---- comentários ---- */
.comments { margin-top: 34px; }
.comment-form { background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; margin-bottom: 18px; }
.comment-form textarea { width: 100%; background: var(--bg2); border: 1px solid var(--line);
  color: var(--text); border-radius: 9px; padding: 10px 12px; resize: vertical; outline: none; }
.comment-form textarea:focus { border-color: var(--brand); }
.cf-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 10px; }
.comment-login { background: var(--card); border: 1px dashed #3a3a4d; border-radius: 12px;
  padding: 16px; margin-bottom: 18px; }
.comment-login b { display: block; font-size: 14px; margin-bottom: 3px; }
.comment-login span { font-size: 13px; color: var(--muted); }
.comment { display: flex; gap: 11px; padding: 13px 0; border-bottom: 1px solid #20202c; }
.c-avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand2)); }
.c-head { display: flex; align-items: baseline; gap: 9px; margin-bottom: 4px; }
.c-head b { font-size: 13.5px; }
.c-body p { margin: 0; font-size: 14px; line-height: 1.6; color: #d8d8e4; white-space: pre-wrap; word-break: break-word; }
.comment-empty { color: var(--muted); font-size: 13px; padding: 18px 0; }

/* ---- FIX hero: imagem de fundo cobrindo o slide ---- */
.hero { display: block !important; }
.hero-slide { position: absolute; inset: 0; display: block; }
.hero-slide.on { position: absolute; }
.hero-slide .hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-slide .hero-bg img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: .55; filter: saturate(1.1);
}
.hero-slide .hero-content { position: relative; z-index: 2; padding: 34px;
  max-width: 660px; min-height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: 46px; }
.hero-dots { z-index: 6; }

/* ---- FIX definitivo hero ---- */
.hero { display: block; height: 400px; min-height: 400px;
  position: relative; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0;
  transition: opacity .6s ease; pointer-events: none; }
.hero-slide.on { opacity: 1; pointer-events: auto; }
.hero-slide .hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-slide .hero-bg img { width: 100%; height: 100%;
  object-fit: cover; display: block; opacity: .6; }
.hero-slide .hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,11,15,.92) 0%, rgba(11,11,15,.45) 55%, rgba(11,11,15,0) 100%); }
.hero-slide .hero-content { position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 3; padding: 30px 34px 44px; max-width: 700px; }
.hero-slide .hero-content h2 { font-size: 34px; margin: 0 0 8px; }
.hero-dots { z-index: 5 !important; }

/* ---- FIX cards fantasmas: garantir thumb visível e proporção ---- */
.card { display: flex !important; flex-direction: column; overflow: hidden; }
.card .thumb { display: block !important; width: 100%; aspect-ratio: 16/9; position: relative;
  background: #0e0e14; flex: none; }
.card .thumb img { width: 100% !important; height: 100% !important; object-fit: cover;
  display: block !important; }
.card .card-body { display: flex; flex-direction: column; }

/* ---- FIX: container e grid contidos ---- */
.grid, .cat-block .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px; width: 100%; min-width: 0; }
@media (max-width: 1080px) {
  .hero { height: 300px; min-height: 300px; }
  .hero-slide .hero-content { padding: 18px 18px 30px; }
  .hero-slide .hero-content h2 { font-size: 22px; }
  .grid, .cat-block .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
}

/* ---- FIX: card no tamanho do conteúdo (sem área preta extra) ---- */
.grid, .cat-block .grid { align-items: start; }
.card { height: auto !important; align-self: start; }
.card .thumb { aspect-ratio: 16/9; height: auto; }
.card .thumb img { height: 100%; }
.cat-block .grid { grid-auto-rows: min-content; }

/* ---- seletor de qualidade ---- */
.quality-picker { display: inline-flex; align-items: center; gap: 4px; background: var(--card);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 12px; }
.qp-label { font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted);
  font-weight: 700; margin-right: 4px; }
.qp-btn { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  color: var(--muted); transition: .15s; }
.qp-btn:hover { color: #fff; background: var(--card2); }
.qp-btn.on { background: linear-gradient(90deg, var(--brand), var(--brand2)); color: #fff; }
@media (max-width: 640px) { .quality-picker { order: 5; width: 100%; justify-content: space-between; } }

/* ---- chips de atrizes ---- */
.model-chips { display: flex; gap: 9px; flex-wrap: wrap; }
.model-chip { display: inline-flex; align-items: center; gap: 7px; background: var(--card);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px 6px 6px;
  font-size: 13px; font-weight: 700; transition: .18s; }
.model-chip:hover { border-color: var(--brand); transform: translateY(-2px);
  box-shadow: 0 8px 22px -10px rgba(255,45,111,.7); }
.model-chip .mc-dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand2)); }
.model-chip small { color: var(--muted); font-weight: 600; font-size: 11px; }

/* ---- pré-roll (anúncio antes do vídeo) ---- */
.preroll-overlay { position: relative; border-radius: 16px; overflow: hidden; background: #000;
  aspect-ratio: 16/9; margin-bottom: 16px; border: 1px solid var(--line);
  transition: opacity .3s; max-height: min(70vh, 720px); }
.preroll-overlay.done { opacity: 0; pointer-events: none; }
.preroll-overlay video { width: 100%; height: 100%; object-fit: contain; display: block; }
.preroll-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center;
  gap: 12px; padding: 10px 14px; background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); }
.pr-label { font-size: 10px; letter-spacing: 1.4px; font-weight: 800; color: #ffd400;
  background: rgba(0,0,0,.6); padding: 3px 7px; border-radius: 4px; }
.pr-time { font-size: 12px; color: #ddd; font-weight: 700; }
.pr-skip { margin-left: auto; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: #fff; padding: 7px 14px; border-radius: 8px; cursor: pointer; font-size: 12.5px; font-weight: 700; }
.pr-skip:disabled { opacity: .55; cursor: not-allowed; }
.pr-skip:not(:disabled):hover { background: rgba(255,255,255,.22); }
.pr-cta { position: absolute; right: 14px; top: 14px; background: linear-gradient(90deg, var(--brand), var(--brand2));
  color: #fff; font-size: 12.5px; font-weight: 700; padding: 8px 14px; border-radius: 999px;
  box-shadow: 0 6px 20px -6px rgba(255,45,111,.8); }

/* Pré-roll em banner (JuicyAds 308x286): a caixa segue o tamanho da zona, não
   o 16/9 do vídeo, para o criativo inteiro caber na tela sem corte. O slot por
   dentro é o .ad-network de sempre, então o encaixe por largura já funciona. */
.preroll-banner { aspect-ratio: auto; min-height: 310px; padding: 10px;
  display: flex; align-items: center; justify-content: center; background: #0b0b12; }
.ad-network-preroll { min-height: 286px; margin: 0; }

/* ---- FIX: descrição SEMPRE abaixo da thumb (nunca ao lado) ---- */
.card, .rail-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}
.card .thumb, .rail-card .thumb {
  width: 100% !important;
  flex: 0 0 auto !important;
  display: block !important;
  margin-bottom: 0 !important;
}
.card .card-body {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  flex: 1 1 auto !important;
  text-align: left;
}
.card .card-body h3 {
  width: 100%;
  margin: 0 0 4px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.card .card-body .meta,
.card .card-body .model-link {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}
/* cards no grid: mesma largura de coluna, texto embaixo */
.grid > .card { grid-column: auto; }
.cat-block .grid > .card { max-width: 100%; }

/* ================= UX v3 — cliques e legibilidade ================= */

/* --- grade consistente (1 card por célula) --- */
.grid, .cat-block .grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch !important;
  grid-auto-rows: auto !important;
}
@media (max-width: 560px) {
  .grid, .cat-block .grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 12px !important; }
}
.card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .18s, border-color .18s, box-shadow .18s;
  height: 100%;
}
.card:active { transform: scale(.985); }

/* --- thumb: área de clique generosa e botão play sempre visível --- */
.card .thumb { position: relative; cursor: pointer; }
.card .thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, transparent 45%);
  opacity: .9; transition: opacity .18s; pointer-events: none;
}
.card:hover .thumb::after { opacity: .55; }
.card .play-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.9);
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,45,111,.92); color: #fff; font-size: 16px; padding-left: 3px;
  box-shadow: 0 6px 22px rgba(0,0,0,.45);
  opacity: .85; transition: transform .18s, opacity .18s;
  pointer-events: none; z-index: 3;
}
.card:hover .play-btn { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
@media (hover: none) {
  .card .play-btn { opacity: .95; transform: translate(-50%, -50%) scale(1); }
}

/* --- menos badges competindo: HD menor, destaque discreto --- */
.thumb .hq { font-size: 9px; padding: 1px 5px; opacity: .9; }
.thumb .badge { font-size: 9.5px; padding: 2px 6px; opacity: .92; }
.card-top-featured { border-color: rgba(255,176,32,.32) !important; }
.card-top-featured .thumb .badge::after { content: " ★"; color: #ffb020; }

/* --- texto do card: contraste e 2 linhas --- */
.card .card-body { padding: 10px 11px 12px; background: var(--card); }
.card .card-body h3 {
  font-size: 13.5px; line-height: 1.35; font-weight: 600; color: #eef0f7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.7em;
}
.card .card-body .meta { font-size: 11px; color: #9a9ab0; gap: 6px; }
.card .card-body .model-link { font-size: 11px; color: #b48cff; font-weight: 700; }

/* --- trilho: play visível + setas de scroll --- */
.rail { position: relative; scrollbar-width: none; padding-bottom: 2px; }
.rail::-webkit-scrollbar { display: none; }
.rail-card { position: relative; }
.rail-card .thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.6), transparent 50%); pointer-events: none;
}
.rail-card .play-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,45,111,.9); color: #fff; font-size: 13px; padding-left: 2px;
  opacity: 0; transition: .18s; pointer-events: none; z-index: 3;
}
.rail-card:hover .play-btn { opacity: 1; }
.rail-card .rank { z-index: 2; }

/* --- hero mais compacto para os vídeos aparecerem antes --- */
.hero { height: 300px !important; min-height: 300px !important; }
.hero-slide .hero-content { padding: 20px 24px 34px !important; }
.hero-slide .hero-content h2 { font-size: 26px !important; }
.hero-slide .hero-content p { font-size: 13px !important; margin-bottom: 12px !important; }
@media (max-width: 560px) { .hero { height: 240px !important; min-height: 240px !important; } }

/* --- chips de atrizes mais compactos --- */
.model-chips { gap: 7px; max-height: 132px; overflow: hidden; }
.model-chip { font-size: 12px; padding: 4px 10px 4px 4px; }
.model-chip .mc-dot { width: 20px; height: 20px; font-size: 10px; }

/* --- header mais baixo --- */
.top-inner { padding: 8px 16px !important; }
.cats-inner { padding: 7px 16px !important; }

/* --- setas do trilho --- */
.rail-wrap { position: relative; }
.rail-arrow { position: absolute; top: 50%; transform: translateY(-60%); z-index: 5;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(11,11,15,.85); color: #fff; font-size: 20px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; backdrop-filter: blur(4px); transition: .18s; }
.rail-arrow:hover { background: var(--brand); border-color: var(--brand); }
.rail-arrow.left { left: -6px; }
.rail-arrow.right { right: -6px; }
@media (max-width: 700px) { .rail-arrow { display: none; } }

/* ================= blocos de rede externa (JuicyAds &c.) =================
   Um único conjunto de regras para todos os slots. A altura mínima de cada
   slot é o tamanho REAL da zona contratada, para o criativo não ser cortado
   e a página não "pular" quando o anúncio carrega:
     topo 728x90 · grade/player 300x250 · lateral 160x600 · rodapé 468x60 */

.ad-network {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto 20px;
  position: relative;
}

.ad-network-top    { min-height: 90px; }   /* 728x90 */
.ad-network-grid   { min-height: 250px; }  /* 300x250 */
.ad-network-player { min-height: 250px; margin-top: 16px; }  /* 300x250 */
.ad-network-feed   { min-height: 250px; margin: 8px 0 26px; }
.ad-network-footer { min-height: 60px; margin: 28px auto 10px; }  /* 468x60 */

/* Sem criativo -> some de vez, sem deixar caixa vazia */
.ad-network:empty,
.ad-network:not(:has(*)) { display: none; }

/* Filhos responsivos. Sem max-height: percentage contra altura auto corta
   o criativo em alguns navegadores. */
.ad-network iframe,
.ad-network ins,
.ad-network img,
.ad-network a {
  display: block;
  max-width: 100%;
  margin: 0 auto;
}
.ad-network iframe { border: 0; }

/* Anúncio in-feed: célula do tamanho do card, e não a linha inteira. Com a grade
   auto-fill a linha inteira só fica bem quando cabem exatamente N cards na linha;
   no celular (1 coluna) o slot 7 virava a 7ª tela e o criativo nunca era visto.
   Como célula, o mesmo slot cai ao lado do 1º card no desktop e logo abaixo dele
   no celular — sempre na primeira dobra. */
.grid-ad {
  display: flex;
  justify-content: center;
  align-items: stretch;
  min-width: 0;
}
.grid-ad .ad-network { margin: 0; width: 100%; min-height: 0; }
/* Nas grades de chip (atrizes), que têm colunas de 160px, o criativo precisa da
   linha inteira: como célula ele seria esmagado a 160px e ficaria ilegível. */
.grid-ad-band { grid-column: 1 / -1; }
.grid-ad-band .ad-network { max-width: 340px; }
.grid-ad > .ad { width: 100%; margin: 0; }
/* painel só quando é banner de rede: o ad_card próprio já tem moldura */
.grid-ad .ad-network-grid {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: center;
}

/* ---- tela de entrada de campanha (/ir/<id>) ----
   O criativo fica numa coluna própria e o "assistir" nunca espera nem é
   encoberto: quem decide clicar no anúncio é a pessoa, não o layout. */
.interstitial { display: grid; gap: 20px; align-items: start; }
.is-video {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
}
.is-prox {
  display: inline-block; font-size: 10.5px; font-weight: 900; letter-spacing: 1.4px;
  color: var(--muted); border: 1px solid var(--line); border-radius: 5px;
  padding: 3px 7px; margin-bottom: 10px;
}
.is-video h1 { font-size: 19px; line-height: 1.3; margin: 0 0 12px; }
.is-thumb img { aspect-ratio: 16/9; object-fit: cover; }
.is-play { display: block; text-align: center; margin-top: 14px; font-size: 15px; }
.is-meta { margin-top: 10px; }
.is-ad {
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; text-align: center;
}
.is-ad .ad-network { margin: 10px auto 0; }
.is-sair {
  display: inline-block; margin-top: 12px; font-size: 12px; color: var(--muted);
  text-decoration: underline;
}
@media (min-width: 900px) {
  .interstitial { grid-template-columns: minmax(0, 1fr) 340px; }
}

/* Placeholder de anúncio: discreto e consistente */
.ad-slot {
  border: 1px dashed rgba(154,154,176,.28);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  color: rgba(154,154,176,.5);
  font-size: 11.5px;
  letter-spacing: 1px;
  line-height: 1.6;
  background: rgba(154,154,176,.04);
}
.ad-slot b {
  display: block;
  color: rgba(154,154,176,.7);
  margin-bottom: 2px;
  letter-spacing: 1.2px;
}

/* Cards de anúncio da sidebar: altura estável (não "pulam" a grade) */
.side .ad img { height: auto; }
.side-box .ad + .ad { margin-top: 10px; }

/* ================= celular e tablet =================
   O reconhecimento do aparelho é feito por media query, não por script:
   largura resolve o layout e `pointer: coarse` resolve o que é toque.
   Ordem dos breakpoints: 1180 → 1024 → 820 → 640 → 420 → paisagem. */

/* links de conta que aparecem só dentro da gaveta do celular */
.cats-extra { display: none; }
.chip-brand {
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  color: #fff; border-color: transparent;
}
.chip-static { opacity: .7; cursor: default; }

/* --- 1. aparelhos de toque: alvos grandes e sem hover "preso" --- */
@media (pointer: coarse) {
  a, button, .chip, .btn { -webkit-tap-highlight-color: transparent; }
  /* no toque o :hover fica grudado no último elemento tocado */
  .card:hover, .rail-card:hover, .model-chip:hover, .next-bar:hover,
  .btn:hover, .chip:hover { transform: none; }
  .card:hover { box-shadow: none; }
  .card:active { transform: scale(.985); border-color: #43304d; }

  .chip { display: inline-flex; align-items: center; min-height: 38px; }
  .btn-sm { min-height: 36px; }
  .icon-btn { width: 40px; height: 40px; }
  .pager a, .pager span { min-width: 44px; height: 44px; }
  footer.site a { display: inline-block; padding: 7px 3px; }
  .hero-btns .btn { padding: 12px 22px; }
}

/* --- 2. tablet deitado (iPad 1024–1180, Galaxy Tab): sem coluna lateral ---
   A lateral de 300px só faz sentido com mouse; no toque ela reduz o vídeo
   e o polegar nunca alcança os anúncios. Os blocos descem para o fim. */
@media (max-width: 1180px) and (pointer: coarse) {
  .layout { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .side { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
  .side-box .sb-head { font-size: 12px; }
  .wrap { padding: 18px 18px 52px; }
  .grid, .cat-block .grid { grid-template-columns: repeat(auto-fill, minmax(250px,1fr)) !important; gap: 16px !important; }
  .rail-card { flex-basis: 196px; }
}

/* --- 3. tablet em pé e notebooks pequenos --- */
@media (max-width: 1024px) {
  .wrap { padding: 18px 16px 48px; }
  .hero { height: 280px !important; min-height: 280px !important; }
  .hero-slide .hero-content h2 { font-size: 24px !important; }
  .section-head h1, .section-head h2 { font-size: 18.5px; }
  .v-title { font-size: 21px; }
}

/* --- 4. tablet em pé de 8" e celular deitado (o menu vira gaveta) --- */
@media (max-width: 820px) {
  .wrap { padding: 16px 14px 46px; }

  /* cabeçalho: logo menor, busca em linha própria */
  .top-inner { padding: 8px 12px !important; gap: 9px; }
  .logo { font-size: 20px; }
  .search input { padding: 10px 15px; }
  .search button { padding: 0 16px; }
  .top-actions { gap: 7px; }
  .top-actions .btn-sm { padding: 7px 10px; font-size: 12px; }

  /* a gaveta de categorias deixa de ser trilho e passa a quebrar linha */
  .cats-bar.open {
    max-height: 76vh; overflow-y: auto; overscroll-behavior: contain;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(0,0,0,.9);
  }
  .cats-bar.open .cats-inner { flex-wrap: wrap; padding: 11px 12px; gap: 7px; }
  .cats-bar.open .chip { padding: 8px 13px; }
  .cats-bar.open .cats-extra {
    display: flex; flex-wrap: wrap; gap: 7px;
    padding: 9px 12px 12px; border-top: 1px solid var(--line);
  }

  /* depois de rolar, a linha da busca recolhe e sobra só o topo fixo */
  body.rolou .search { display: none; }
  body.rolou .top-inner { padding-top: 6px !important; padding-bottom: 6px !important; }

  .hero { height: 250px !important; min-height: 250px !important; border-radius: 14px; }
  .hero-slide .hero-content { padding: 16px 18px 30px !important; }
  .hero-slide .hero-content h2 { font-size: 21px !important; }
  .hero-slide .hero-content p { font-size: 12.5px !important; margin-bottom: 10px !important;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-dots { left: 16px; bottom: 9px; }
  .hero-btns { gap: 10px; }

  /* Colunas fixas por faixa (auto-fill oscilava e mudava o tamanho das capas a
     cada vídeo novo). Em 1024 já cabem 4 thumbs de ~230px sem apertar o texto. */
  .grid, .cat-block .grid { grid-template-columns: repeat(4, minmax(0,1fr)) !important; gap: 14px !important; }
  .rail-card { flex-basis: 178px; }
  .rail { gap: 11px; }

  /* grade de atrizes: 2 linhas visíveis, rolagem horizontal */
  .model-chips { flex-wrap: nowrap; overflow-x: auto; max-height: none; padding-bottom: 4px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .model-chips::-webkit-scrollbar { display: none; }
  .model-chip { flex: 0 0 auto; }

  .v-bar { gap: 8px; }
  .v-title { font-size: 19px; }
  .next-bar { padding: 11px 13px; }
  .tag-cloud { gap: 6px; }
  .ad-top img { max-height: 110px; }
  footer.site { padding: 22px 14px; }
}

/* --- 4b. tablet em pé: 4 colunas de 1024 ficavam em ~165px aqui, e o
     título de duas linhas começava a virar trunfo. Volta para 3 até 820px. --- */
@media (max-width: 820px) {
  .grid, .cat-block .grid { grid-template-columns: repeat(3, minmax(0,1fr)) !important; gap: 12px !important; }
}

/* --- 5. celular --- */
@media (max-width: 640px) {
  .wrap { padding: 12px 12px 40px; }

  /* O criativo de rede (728x90 no topo, 468x60 no rodapé) é entregue num
     iframe de tamanho fixo. Deixar o iframe encolher corta a arte pela
     metade; então ele mantém o tamanho nativo e o script do base.html
     reduz a escala toda, sobrando um banner inteiro na largura do visor. */
  .ad-network-top iframe { width: 728px !important; height: 90px !important; max-width: none !important; }
  .ad-network-footer iframe { width: 468px !important; height: 60px !important; max-width: none !important; }

  /* iOS dá zoom automático em campo com fonte < 16px e o layout estoura */
  input, select, textarea { font-size: 16px !important; }
  .search { gap: 7px; }
  .search input { padding: 9px 13px; border-radius: 12px; }
  .search button { padding: 0 14px; font-size: 13px; border-radius: 12px; }
  .icon-btn { width: 36px; height: 36px; font-size: 16px; }
  .logo { font-size: 19px; }
  .btn { padding: 9px 13px; }
  .top-actions .btn-sm { padding: 6px 9px; font-size: 11.5px; }

  /* player de ponta a ponta: ocupa a largura toda, como app de vídeo */
  .player-wrap { margin: 0 -12px; border-radius: 0; border-left: 0; border-right: 0; }
  .player-cover .pc-inner button { width: 64px; height: 64px; font-size: 22px; }
  .player-cover .pc-inner p { font-size: 12px; }

  .hero { height: 205px !important; min-height: 205px !important; margin-bottom: 18px; }
  .hero-slide .hero-content { padding: 14px 14px 26px !important; }
  .hero-slide .hero-content h2 { font-size: 18px !important; line-height: 1.25; }
  .hero-slide .hero-content p { display: none; }
  .hero-content .tag { font-size: 10px; padding: 4px 9px; margin-bottom: 8px; }
  .hero-btns .btn { padding: 9px 16px; font-size: 13px; }
  .hero-btns .meta { font-size: 11px; }

  .grid, .cat-block .grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 10px !important; }
  .card { border-radius: 10px; }
  .card .card-body { padding: 8px 9px 10px; }
  .card .card-body h3 { font-size: 12px; line-height: 1.3; min-height: 2.6em; }
  .card .card-body .meta { font-size: 10px; gap: 4px; }
  .card .card-body .model-link { font-size: 10px; }
  .thumb .badge { font-size: 8.5px; padding: 2px 5px; }
  .thumb .hq { font-size: 8px; padding: 1px 4px; }
  .thumb .dur { font-size: 9.5px; padding: 1px 4px; }
  .card .play-btn { width: 38px; height: 38px; font-size: 13px; }

  .section-head { margin-bottom: 12px; gap: 8px; }
  .section-head h1, .section-head h2 { font-size: 16.5px; }
  .section-head .count { font-size: 12px; }
  .sort-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .sort-tabs::-webkit-scrollbar { display: none; }
  .sort-tabs a { white-space: nowrap; padding: 6px 10px; font-size: 12px; }

  .v-title { font-size: 17.5px; margin-top: 14px; }
  .v-bar { gap: 7px; padding-bottom: 12px; }
  .v-bar .btn { padding: 7px 11px; font-size: 12px; }
  .quality-picker { padding: 3px; }
  .v-desc { padding: 12px 13px; font-size: 13px; }
  .src-note { font-size: 11px; }
  .next-bar { gap: 9px; }
  .nb-title { font-size: 13px; }

  .comments { margin-top: 26px; }
  .comment { gap: 9px; padding: 11px 0; }
  .comment .c-avatar { width: 32px; height: 32px; font-size: 13px; }
  .comment-form { padding: 12px; }
  .cf-bar { flex-wrap: wrap; gap: 8px; }

  .pager { gap: 6px; margin-top: 22px; }
  .pager a, .pager span { min-width: 40px; height: 40px; padding: 0 9px; font-size: 12.5px; }

  .ad-network { margin-bottom: 14px; }
  .ad-network-grid { padding: 8px; }
  .grid-ad .ad-network-grid { padding: 8px; }
  .ad-slot { padding: 12px 10px; font-size: 10.5px; }
  .ad-top { margin-bottom: 14px; }
  .ad-top .ad-line { padding: 8px 10px; font-size: 11.5px; }

  footer.site { padding: 20px 12px; font-size: 11.5px; }
  .site-live { gap: 5px; font-size: 11.5px; }
}

/* --- 6. celular pequeno (iPhone SE, Galaxy A0x) --- */
@media (max-width: 420px) {
  .wrap { padding: 10px 10px 36px; }
  .grid, .cat-block .grid { gap: 8px !important; }
  .logo { font-size: 17px; }
  .top-actions .btn-primary { display: none; }   /* "Criar conta" fica no menu */
  .hero { height: 180px !important; min-height: 180px !important; }
  .hero-slide .hero-content { padding: 12px 12px 24px !important; }
  .hero-slide .hero-content h2 { font-size: 16px !important; }
  .hero-btns .meta { display: none; }
  .card .card-body h3 { font-size: 11.5px; }
  .player-wrap { margin: 0 -10px; }
  .rail-card { flex-basis: 158px; }
  .section-head h1, .section-head h2 { font-size: 15.5px; }
}

/* --- 7. celular deitado: a altura é escassa, o hero atrapalha --- */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { display: none; }
  .top-inner { padding-top: 6px !important; padding-bottom: 6px !important; }
  body.rolou .search { display: flex; }   /* já é baixo: não precisa recolher */
  .player-wrap { max-height: 88vh; margin: 0 auto; border-radius: 12px; }
}

/* --- 8. entalhe do iPhone: respeita a área segura --- */
@supports (padding: max(0px)) {
  .top-inner, .wrap, footer.site {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
}

/* --- 9. altura real do visor no celular (barra do navegador) --- */
@supports (min-height: 100dvh) {
  body { min-height: 100dvh; }
}

/* ================= Shorts +18 — feed vertical =================
   Uma tela por vídeo, rolagem com encaixe. O arquivo nunca é nosso: cada
   cartão mostra a capa e só carrega o embed oficial da origem no toque. */

.chip-shorts {
  border-color: rgba(255,45,111,.45);
  color: #ffb3cd;
}
.chip-shorts.active { color: #fff; }

/* A aba Shorts ocupa a tela inteira: a altura do feed vem do flex, não de um
   `calc(100dvh - 48px)` chutado, porque o cabeçalho muda de altura entre
   celular (só a barra do topo) e desktop (topo + trilho de categorias). */
body.shorts-page {
  height: 100dvh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
body.shorts-page header.top { position: relative; flex: 0 0 auto; }
body.shorts-page .top-inner .search { display: none; }
/* margin:auto anula o stretch do flex: sem isso o main encolhe para o
   conteúdo e o feed fica mais largo que o visor */
body.shorts-page .wrap {
  padding: 0; margin: 0; width: 100%;
  max-width: none; flex: 1 1 auto; min-height: 0; min-width: 0;
  display: flex; flex-direction: column;
}
body.shorts-page .wrap > .shorts-feed,
body.shorts-page .wrap > .wrap-empty { flex: 1 1 auto; min-height: 0; min-width: 0; }
body.shorts-page .wrap > .shorts-topbar { flex: 0 0 auto; }
body.shorts-page footer.site,
body.shorts-page .ad-network-footer { display: none; }

/* no celular o trilho vira gaveta sobre o feed, para não encurtar o vídeo */
@media (max-width: 820px) {
  body.shorts-page .cats-bar { display: none; }
  body.shorts-page .cats-bar.open {
    display: block; position: absolute; top: 100%; left: 0; right: 0; z-index: 80;
    background: #0e0e15;
    box-shadow: 0 24px 40px -20px rgba(0,0,0,.95);
  }
}

.shorts-page .wrap-empty { padding: 40px 16px; }

.shorts-feed {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow-y: auto; overflow-x: hidden;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  background:
    radial-gradient(900px 500px at 50% -5%, rgba(180,40,255,.12), transparent 65%),
    radial-gradient(800px 520px at 0% 100%, rgba(255,45,111,.10), transparent 60%),
    #07070b;
  scrollbar-width: none;
}
.shorts-feed::-webkit-scrollbar { display: none; }

.short {
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 10px 12px;
}

.short-frame {
  position: relative;
  height: calc(100% - 106px);
  max-height: 780px;
  aspect-ratio: 390 / 695;
  max-width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #0d0d13;
  border: 1px solid var(--line);
  box-shadow: 0 26px 60px -26px rgba(0,0,0,.95);
}
.short-frame img,
.short-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border: 0; display: block;
}
.short-frame .short-poster { filter: saturate(1.05); }
.short-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(0,0,0,.45), transparent 42%);
}
.short.tocando .short-frame::after,
.short.tocando .short-dur { display: none; }

.short-video { z-index: 2; background: #000; }

/* som: o feed começa mudo (é o único autoplay que todo navegador aceita) e o
   botão vale para a visita inteira, não só para o clipe */
.short-mute {
  position: absolute; right: 10px; top: 10px; z-index: 5;
  display: none; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.66); color: #fff; font-size: 15px; cursor: pointer;
  backdrop-filter: blur(4px);
}
.short.tocando .short-mute { display: grid; place-items: center; }
.short-mute:active { transform: scale(.92); }

/* barrinho de progresso embaixo do clipe, aproveitando o canto do frame */
.short-progress {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  height: 3px; background: rgba(255,255,255,.16); display: none;
}
.short.tocando .short-progress { display: block; }
.short-progress i { display: block; height: 100%; width: 0; background: var(--pink, #ff2d6f); }

.short-erro {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 6; display: grid; gap: 6px; justify-items: center; text-align: center;
  padding: 14px 18px; border-radius: 14px; font-size: 12.5px; color: #dcdce8;
  background: rgba(10,10,16,.9); border: 1px solid var(--line);
}
.short-erro a { color: #ff8aa8; font-weight: 700; }
/* display:grid na nossa folha vence o [hidden] do UA — sem esta linha o aviso
   de "saiu do ar" fica pintado em cima de todo clipe que está tocando */
.short-erro[hidden] { display: none; }

.short-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 3; width: 66px; height: 66px; border-radius: 50%; border: 0; cursor: pointer;
  display: none; place-items: center; padding-left: 4px;
  background: rgba(255,45,111,.94); color: #fff; font-size: 22px;
  box-shadow: 0 12px 34px rgba(0,0,0,.55);
  transition: transform .16s;
}
/* aparece enquanto o clipe ainda não montou, quando ele é pausado e no raro
   caso em que o navegador recusou até o autoplay mudo */
.short:not(.tocando) .short-play,
.short.pausado .short-play,
.short.precisa-toque .short-play { display: grid; }
.short-play:active { transform: translate(-50%, -50%) scale(.94); }

.short-dur {
  position: absolute; z-index: 3; font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.62); color: #fff;
  backdrop-filter: blur(4px); right: 10px; bottom: 10px;
}

/* min-width:0 em toda a cadeia: o min-width:auto dos itens flex usa o
   min-content (as tags em nowrap) e alargava o feed para além do visor */
.short-info { width: min(100%, 560px); min-width: 0; padding: 0 3px; }
.short-info h2 {
  margin: 0 0 5px; font-size: 14px; line-height: 1.35; font-weight: 700; color: #f1f1f7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  overflow-wrap: break-word;
}
.short-meta {
  display: flex; flex-wrap: wrap; gap: 5px 9px; align-items: center;
  min-width: 0; font-size: 11.5px; color: #9a9ab0;
}
.short-model { color: #b48cff; font-weight: 700; }
.short-tags {
  max-width: 100%; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.short-actions {
  display: flex; align-items: center; gap: 14px; margin-top: 6px; font-size: 12px;
}
.short-actions a { color: #ff8aa8; font-weight: 600; }
.short-actions button {
  background: none; border: 0; color: #9a9ab0; font-size: 12px; cursor: pointer; padding: 0;
}
.short-actions button:hover { color: #fff; }

/* cartão de anúncio dentro do feed */
.short-anuncio { justify-content: center; }
.short-anuncio .ad-network-grid {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px; min-height: 0;
}
.shorts-fim { text-align: center; color: var(--muted); font-size: 12.5px; padding: 20px; }

@media (max-width: 640px) {
  .short { gap: 8px; padding: 8px 10px; }
  .short-frame { height: calc(100% - 96px); border-radius: 14px; }
  .short-info h2 { font-size: 13px; }
  .short-play { width: 58px; height: 58px; font-size: 19px; }
  .short-actions { margin-top: 4px; }
}


/* ================= UX v5 - grade densa (40 por pagina) ================= */
/* Com caixa, borda e sombra em volta de cada thumb, 40 cards viravam 40 quadradinhos
   e a imagem perdia o protagonismo. Na lista a thumb E o card: texto solto embaixo, sem
   fundo. Valendo so para .grid/.cat-block .grid - o .card do portal /aviso e um painel,
   nao uma lista, e continua com a caixa dele. */
.grid .card, .cat-block .grid .card {
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
}
.grid .card:hover, .cat-block .grid .card:hover {
  transform: none; border-color: transparent; box-shadow: none;
}
.grid .card .thumb, .cat-block .grid .card .thumb { border-radius: 10px; }
.grid .card .card-body, .cat-block .grid .card .card-body { padding: 7px 2px 14px; gap: 3px; }
.grid .card .card-body h3, .cat-block .grid .card .card-body h3 {
  font-size: 13.5px; line-height: 1.3; font-weight: 600;
}
.grid .card:hover .card-body h3, .cat-block .grid .card:hover .card-body h3 { color: #ff7ba1; }
.grid .card .meta, .cat-block .grid .card .meta { font-size: 11.5px; gap: 6px; }
.grid .card .model-link, .cat-block .grid .card .model-link { font-size: 11px; }

/* selo de categoria em cima de toda thumb era redundante em /categoria e /modelo e
   virava ruído com 6 colunas; encolhido em vez de removido porque na home ele e a
   unica pista de onde o video se encaixa */
.grid .card .badge, .cat-block .grid .card .badge {
  left: 5px; top: 5px; padding: 2px 5px; border-radius: 4px; font-size: 9px; letter-spacing: .2px;
}
.grid .card .dur, .cat-block .grid .card .dur { right: 5px; bottom: 5px; padding: 1px 5px; font-size: 10.5px; }

/* no toque o botao de play continua sempre aceso (e o unico feedback de que abre);
   no mouse ele so aparece no hover, senao sao 40 circulos rosa pintando a lista */
@media (hover: hover) {
  .grid .card .play-btn, .cat-block .grid .card .play-btn { opacity: 0; }
  .grid .card:hover .play-btn, .cat-block .grid .card:hover .play-btn {
    opacity: 1; transform: translate(-50%, -50%) scale(1);
  }
  .grid .card .thumb::after, .cat-block .grid .card .thumb::after { opacity: .28; }
  .grid .card:hover .thumb::after, .cat-block .grid .card:hover .thumb::after { opacity: .55; }
}

/* ================= Painel de acessos - grafico SVG proprio ================= */

/* o SVG escaleia junto com a caixa: se a janela for estreita demais ele rola no lugar
   de esmagar a fonte dos eixos, que e o que faz grafico de painel ficar ilegivel */
.chart-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 12px; }
.chart { display: block; width: 100%; min-width: 640px; height: auto;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; }
.chart-barra { fill: var(--brand); opacity: .76; }
.chart-barra:hover { opacity: 1; }
.chart-linha { fill: none; stroke: #5ad2ff; stroke-width: 2;
  stroke-linejoin: round; stroke-linecap: round; opacity: .92; }
.chart-gui { stroke: var(--line); stroke-width: 1; }
.chart-eixo { fill: var(--muted); font: 13px system-ui, -apple-system, sans-serif; }
.legenda { display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  font-size: 12px; color: var(--muted); margin: 0 0 14px; }
.legenda .k { display: inline-block; width: 15px; height: 8px; border-radius: 2px;
  margin-right: 5px; vertical-align: middle; }
.legenda .k-barra { background: var(--brand); opacity: .76; }
.legenda .k-linha { height: 0; border-top: 2px solid #5ad2ff; }
.stat .n.up, .stat .n.down { background: none; -webkit-text-fill-color: currentColor;
  -webkit-background-clip: initial; background-clip: initial; }
.stat .n.up { color: var(--ok); }
.stat .n.down { color: var(--brand); }
.barra-pais { display: inline-block; vertical-align: middle; width: 90px; height: 7px;
  border-radius: 4px; margin-left: 8px; overflow: hidden;
  background: linear-gradient(90deg, var(--brand2) 0 var(--p, 0%), rgba(255,255,255,.07) var(--p, 0%) 100%); }
@media (max-width: 640px) {
  .barra-pais { width: 54px; }
  .legenda { font-size: 11px; gap: 10px; }
}
@media print { .chart-wrap { overflow: visible; } .chart { min-width: 0; } }
/* painel ao vivo: o carimbo de "atualizado às" mora no título e não pode brigar com ele */
.vivo-meta { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0;
  margin-left: 8px; white-space: nowrap; }
#painelVivo .stat .n { color: var(--brand); }
#retHoje { margin-bottom: 0; }
@media (max-width: 640px) { .vivo-meta { display: block; margin-left: 0; } }


/* ---------- listas do visitante (histórico / assistir mais tarde) ---------- */
.historico { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.h-item {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); transition: .18s;
}
.h-item:hover { border-color: var(--brand); transform: translateX(2px); }
.h-thumb { flex: 0 0 132px; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: #0e0e14; }
.h-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-thumb .ph { width: 100%; height: 100%; display: grid; place-items: center; color: #43304d; }
.h-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.h-txt b { font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.h-meta { font-size: 12px; color: var(--muted); }
.h-quando { font-size: 11.5px; color: #6f6f8a; }
.h-go { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.h-visto { color: var(--muted); }
@media (max-width: 640px) {
  .h-thumb { flex-basis: 96px; }
  .h-txt b { font-size: 12.5px; }
  .h-go { font-size: 11px; }
}

/* ---------- "a seguir" no fim do vídeo ---------- */
.next-overlay {
  position: absolute; inset: 0; z-index: 6; display: grid; place-items: center;
  background: rgba(6,6,12,.86); color: #fff; text-align: center; gap: 8px;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.next-overlay.on { opacity: 1; pointer-events: auto; }
.next-overlay b { font-size: 15px; display: block; margin-bottom: 6px; }
.next-overlay > div { max-width: 86%; }
.next-overlay .nb-titulo { display: block; color: #c9c9dd; font-size: 13px; margin-bottom: 12px; }
.next-overlay small { color: var(--muted); font-weight: 500; }
.save-on { background: rgba(255,45,111,.14); border-color: var(--brand); color: #ff8aa8; }

/* monetização: múltiplos blocos de anúncio empilhados */
.ad-stack{display:flex;flex-direction:column;gap:12px}.ad-stack .ad-network{margin:0}

/* anúncio flutuante no canto */
.ad-float{position:fixed;right:12px;bottom:12px;z-index:70;max-width:min(320px,calc(100vw - 24px));max-height:40vh;overflow:hidden}
.ad-float .ad-network,.ad-float ins,.ad-float iframe,.ad-float img{max-width:100%}
@media (max-width:820px){.ad-float{bottom:84px;right:8px;max-width:min(300px,calc(100vw - 16px))}}

<!-- placeholder -->

/* navegação mobile e destaque Shorts */
.btn-shorts-top{background:linear-gradient(135deg,#ff2d6f,#ff7a00);color:#fff;border:0;font-weight:800;box-shadow:0 6px 18px -8px rgba(255,45,111,.8)}
.btn-shorts-top:hover{filter:brightness(1.06);color:#fff}
.btn-shorts-top.active{outline:2px solid rgba(255,255,255,.25)}
.mobile-nav{display:none}
@media (max-width:820px){
  body{padding-bottom:74px}
  .mobile-nav{position:fixed;left:0;right:0;bottom:0;z-index:60;display:grid;grid-template-columns:repeat(5,1fr);gap:4px;
    padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:rgba(12,12,18,.96);backdrop-filter:blur(14px);
    border-top:1px solid var(--line)}
  .mobile-nav a,.mobile-nav button{appearance:none;border:0;background:transparent;color:#9a9ab0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:6px 4px;border-radius:12px;font:inherit;cursor:pointer;text-decoration:none}
  .mobile-nav span{font-size:18px;line-height:1}
  .mobile-nav small{font-size:10.5px;font-weight:700}
  .mobile-nav .on,.mobile-nav a:hover,.mobile-nav button:hover{color:#fff;background:rgba(255,255,255,.06)}
  .mobile-nav .mn-shorts{color:#fff}
  .mobile-nav .mn-shorts span{background:linear-gradient(135deg,#ff2d6f,#ff7a00);width:34px;height:28px;border-radius:9px;display:grid;place-items:center;font-size:14px;box-shadow:0 8px 18px -10px rgba(255,45,111,.9)}
  .mobile-nav .mn-shorts.on small,.mobile-nav .mn-shorts small{color:#ffd1e1}
  footer.site{margin-bottom:6px}
}
.shorts-promo{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;margin:6px 0 22px;border-radius:16px;
  background:linear-gradient(135deg,rgba(255,45,111,.22),rgba(255,122,0,.14) 55%,rgba(180,40,255,.12));
  border:1px solid rgba(255,90,140,.28);text-decoration:none;color:inherit}
.shorts-promo:hover{border-color:rgba(255,120,160,.45);transform:translateY(-1px)}
.shorts-promo .sp-left{display:flex;align-items:center;gap:14px;min-width:0}
.shorts-promo .sp-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;font-size:20px;color:#fff;
  background:linear-gradient(135deg,#ff2d6f,#ff7a00);box-shadow:0 10px 24px -12px rgba(255,45,111,.9);flex:none}
.shorts-promo h2{margin:0;font-size:18px;letter-spacing:-.3px}
.shorts-promo p{margin:3px 0 0;color:#d8d8e8;font-size:13.5px}
.shorts-promo .sp-cta{white-space:nowrap;font-weight:800;color:#fff;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);padding:10px 14px;border-radius:999px}
@media (max-width:640px){
  .shorts-promo{padding:14px}
  .shorts-promo h2{font-size:16px}
  .shorts-promo p{font-size:12.8px}
  .shorts-promo .sp-cta{padding:9px 12px;font-size:13px}
}

/* retenção/navegação: próximo vídeo e explorar */
.next-bar-rich{display:grid;grid-template-columns:132px minmax(0,1fr) auto;align-items:center;gap:14px;padding:10px 12px;border-radius:14px}
.nb-thumb{position:relative;width:132px;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:#0f0f16;border:1px solid var(--line);flex:none}
.nb-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.nb-dur{position:absolute;right:6px;bottom:6px;background:rgba(0,0,0,.78);color:#fff;font-size:11px;font-weight:700;padding:2px 6px;border-radius:6px}
.nb-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:rgba(255,45,111,.92);color:#fff;font-size:12px}
.nb-body{min-width:0;display:flex;flex-direction:column;gap:3px}
.next-bar-rich .nb-title{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:15px}
.nb-meta{font-size:12.5px;color:var(--muted)}
.next-bar-rich .nb-go{font-weight:800;color:#fff;background:linear-gradient(135deg,#ff2d6f,#ff7a00);padding:9px 12px;border-radius:999px;white-space:nowrap}
.explore-strip{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 4px}
.explore-strip .chip{font-weight:700}
.explore-strip .chip-brand{background:linear-gradient(135deg,#ff2d6f,#ff7a00);color:#fff;border-color:transparent}
@media (max-width:700px){
  .next-bar-rich{grid-template-columns:112px minmax(0,1fr);gap:10px}
  .nb-thumb{width:112px}
  .next-bar-rich .nb-go{grid-column:1/-1;justify-self:start}
}
.to-top{position:fixed;right:14px;bottom:90px;z-index:55;width:42px;height:42px;border-radius:50%;border:1px solid var(--line);background:rgba(20,20,30,.92);color:#fff;display:none;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 10px 24px -14px rgba(0,0,0,.9)}
.to-top.show{display:flex}
@media (min-width:821px){.to-top{bottom:20px}}

/* share menu (vídeo) */
.share-wrap{position:relative;display:inline-block}
.share-menu{position:absolute;right:0;top:calc(100% + 8px);min-width:210px;background:#151521;border:1px solid var(--line);border-radius:12px;padding:8px;box-shadow:0 18px 40px -20px rgba(0,0,0,.9);z-index:50}
.share-menu[hidden]{display:none}
.share-title{font-size:12px;color:var(--muted);font-weight:700;padding:4px 8px 6px}
.share-item{display:block;width:100%;text-align:left;background:transparent;border:0;color:#eaeaf3;text-decoration:none;padding:9px 10px;border-radius:8px;font:inherit;cursor:pointer}
.share-item:hover{background:rgba(255,255,255,.06)}
.share-native{border-top:1px solid var(--line);margin-top:4px;padding-top:10px}
@media (max-width:700px){.share-menu{right:auto;left:0}}



/* rail de shorts na home */
.home-shorts-rail .rail-card .thumb{aspect-ratio:9/14;max-height:320px}
.home-shorts-rail .rail-card .thumb img{width:100%;height:100%;object-fit:cover}
.home-shorts-rail .rail-card{flex:0 0 170px}
@media (max-width:700px){.home-shorts-rail .rail-card{flex-basis:150px}}
.next-overlay-embed{background:rgba(6,6,12,.78)}

/* ===== Shorts: side ads + preroll overlay ===== */
.shorts-side-ad { position: fixed; top: 50%; transform: translateY(-50%); z-index: 40; display: none; width: 170px; max-height: calc(100vh - 140px); overflow: hidden; }
.shorts-side-left { left: 8px; }
.shorts-side-right { right: 8px; }
.shorts-side-ad .ad-network { background: var(--card, #15151d); border: 1px solid var(--line, #2a2a35); border-radius: 12px; padding: 8px; min-height: 0; }
@media (min-width: 1100px) {
  .shorts-side-ad { display: flex; align-items: center; justify-content: center; }
}
@media (max-width: 1099px) {
  .shorts-side-ad { display: none !important; }
}
.short-preroll { position: absolute; inset: 0; z-index: 20; background: rgba(7,7,11,.97); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px; }
.short-preroll-ad { flex: 1 1 auto; width: 100%; display: flex; align-items: center; justify-content: center; overflow: auto; }
.short-preroll-ad .ad-network { width: 100%; min-height: 0; background: transparent; border: 0; padding: 0; }
.short-preroll-bar { flex: 0 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 4px 2px; color: #fff; font-size: 13px; }
.short-preroll-bar .pr-label { font-weight: 700; opacity: .9; }
.short-preroll-bar .pr-time { opacity: .85; min-width: 28px; }
.short-preroll-bar .pr-skip { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 8px 14px; font: inherit; cursor: pointer; white-space: nowrap; }
.short-preroll-bar .pr-skip:disabled { opacity: .55; cursor: default; }
.short-preroll-bar .pr-skip:not(:disabled):hover { background: rgba(255,255,255,.22); }
.short.prerolling .short-poster,
.short.prerolling .short-play,
.short.prerolling .short-mute,
.short.prerolling .short-dur,
.short.prerolling .short-progress { visibility: hidden; }
