/* ==========================================================================
   Tube Pro 3.1 — camada final sobre v3-bundle.css (carregada depois dele).
   Grid denso, cards de tube, trilhos, categorias, página de vídeo e mobile.
   ========================================================================== */
body.gzs-tube-pro{--tp-r:10px;--tp-cols:2;--tp-hot:var(--gzs-accent,#ff4f93);--tp-line:var(--gzs-line,#282a35);--tp-soft:var(--gzs-soft,#191a23);--tp-muted:var(--gzs-muted,#a0a1b1)}
@media(min-width:640px){body.gzs-tube-pro{--tp-cols:3}}
@media(min-width:980px){body.gzs-tube-pro{--tp-cols:4}}
@media(min-width:1320px){body.gzs-tube-pro{--tp-cols:5}}
@media(min-width:1800px){body.gzs-tube-pro{--tp-cols:6}}

/* ---------- Grid ---------- */
body.gzs-tube-pro.gzs-reference-site .gzs-video-grid{display:grid;grid-template-columns:repeat(var(--tp-cols),minmax(0,1fr));gap:20px 14px}
@media(max-width:639px){body.gzs-tube-pro.gzs-reference-site .gzs-video-grid{gap:16px 8px}}

/* ---------- Card ---------- */
body.gzs-tube-pro.gzs-reference-site .tp-card{container-type:inline-size;position:relative;min-width:0;background:none;border:0;padding:0;box-shadow:none}
body.gzs-tube-pro.gzs-reference-site .tp-card .gzs-card-media{position:relative}
body.gzs-tube-pro.gzs-reference-site .tp-card .gzs-thumbnail{display:block;position:relative;aspect-ratio:16/9;border:0;border-radius:var(--tp-r);overflow:hidden;background:#15141b;box-shadow:0 1px 0 #ffffff0d inset}
body.gzs-tube-pro.gzs-reference-site .tp-card .gzs-thumbnail img{width:100%;height:100%;aspect-ratio:16/9;object-fit:cover;display:block;transition:transform .35s ease}
body.gzs-tube-pro.gzs-reference-site .tp-card:hover .gzs-thumbnail img{transform:scale(1.045)}
body.gzs-tube-pro.gzs-reference-site .tp-card .gzs-thumbnail::after{content:"";position:absolute;inset:auto 0 0 0;height:46%;background:linear-gradient(180deg,transparent,#000a);pointer-events:none}
body.gzs-tube-pro.gzs-reference-site .tp-card .gzs-card-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(.85);width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--tp-hot);color:#1a0610;opacity:0;transition:opacity .2s,transform .2s;z-index:2}
body.gzs-tube-pro.gzs-reference-site .tp-card .gzs-card-play svg{width:20px;height:20px}
body.gzs-tube-pro.gzs-reference-site .tp-card:hover .gzs-card-play{opacity:.95;transform:translate(-50%,-50%) scale(1)}
@media(hover:none){body.gzs-tube-pro.gzs-reference-site .tp-card .gzs-card-play{display:none}}
body.gzs-tube-pro.gzs-reference-site .tp-card .gzs-duration{position:absolute;right:6px;bottom:6px;z-index:3;padding:3px 6px;font-size:11px;font-weight:700;line-height:1.2;border-radius:5px;background:#000c;border:0;color:#fff}
.tp-badge{position:absolute;left:6px;top:6px;z-index:3;padding:3px 5px;border-radius:4px;background:var(--tp-hot);color:#2a0a18;font:800 10px/1 system-ui,sans-serif;letter-spacing:.05em}
.tp-preview{position:absolute;inset:0;z-index:1;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .25s;background:#000}
.tp-preview.is-on{opacity:1}
body.gzs-tube-pro.gzs-reference-site .tp-card .gzs-card-save{position:absolute;right:6px;top:6px;z-index:4;width:30px;height:30px;border-radius:8px}
@media(hover:hover){body.gzs-tube-pro.gzs-reference-site .tp-card .gzs-card-save{opacity:0;transition:opacity .15s}body.gzs-tube-pro.gzs-reference-site .tp-card:hover .gzs-card-save,body.gzs-tube-pro.gzs-reference-site .tp-card .gzs-card-save:focus-visible,body.gzs-tube-pro.gzs-reference-site .tp-card .gzs-card-save[aria-pressed=true]{opacity:1}}
body.gzs-tube-pro.gzs-reference-site .tp-card .gzs-card-save svg{width:15px;height:15px}
body.gzs-tube-pro.gzs-reference-site .tp-card .gzs-card-title{margin:8px 2px 3px;font-size:13.5px;line-height:1.3;font-weight:650;min-height:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.gzs-tube-pro.gzs-reference-site .tp-card .gzs-card-title a{color:inherit}
body.gzs-tube-pro.gzs-reference-site .tp-card:hover .gzs-card-title a{color:var(--tp-hot)}
body.gzs-tube-pro.gzs-reference-site .tp-card .gzs-card-meta{display:flex;align-items:center;flex-wrap:nowrap;gap:4px 10px;margin:0 2px;font-size:11.5px;color:var(--tp-muted);white-space:nowrap;overflow:hidden}
body.gzs-tube-pro.gzs-reference-site .tp-card .gzs-card-meta>span{display:inline-flex;align-items:center;gap:4px;min-width:0}
body.gzs-tube-pro.gzs-reference-site .tp-card .gzs-card-meta svg{width:13px;height:13px;flex:none}
body.gzs-tube-pro.gzs-reference-site .tp-card .gzs-card-love{color:var(--tp-hot)}
body.gzs-tube-pro.gzs-reference-site .tp-card .tp-ago{margin-left:auto;font-size:11px;opacity:.85}
@media(max-width:639px){
  body.gzs-tube-pro.gzs-reference-site .tp-card .gzs-card-title{font-size:12.5px;margin-top:7px}
  body.gzs-tube-pro.gzs-reference-site .tp-card .gzs-card-meta{font-size:10.5px;gap:3px 7px}
  body.gzs-tube-pro.gzs-reference-site .tp-card .gzs-card-comments{display:none}
}

/* ---------- Trilho "Mais vistos" + categorias ---------- */
.tp-rail,.tp-tiles-wrap{margin:4px 0 22px}
.tp-rail-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 12px}
.tp-rail-head h2{margin:0;font-size:clamp(17px,2vw,21px);font-weight:800;letter-spacing:-.01em;display:flex;align-items:center;gap:10px}
.tp-rail-head h2::before{content:"";width:4px;height:1.05em;border-radius:3px;background:var(--tp-hot)}
.tp-rail-head a{display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:700;color:var(--tp-hot);white-space:nowrap}
.tp-rail-head a svg{width:15px;height:15px}
.tp-rail-track{display:flex;gap:14px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:0 0 10px;margin:0;scrollbar-width:thin;scrollbar-color:var(--tp-line) transparent;counter-reset:tp-rank}
.tp-rail-track::-webkit-scrollbar{height:6px}.tp-rail-track::-webkit-scrollbar-thumb{background:var(--tp-line);border-radius:6px}
body.gzs-tube-pro.gzs-reference-site .tp-rail-track .tp-card{flex:0 0 clamp(220px,18vw,300px);scroll-snap-align:start;counter-increment:tp-rank}
body.gzs-tube-pro.gzs-reference-site .tp-rail-track .tp-card .gzs-thumbnail::before{content:counter(tp-rank);position:absolute;left:8px;bottom:2px;z-index:3;font:900 38px/1 system-ui,sans-serif;color:transparent;-webkit-text-stroke:1.5px #fff;text-shadow:0 2px 10px #000a}
@media(max-width:639px){body.gzs-tube-pro.gzs-reference-site .tp-rail-track{margin-inline:-12px;padding-inline:12px;gap:10px}body.gzs-tube-pro.gzs-reference-site .tp-rail-track .tp-card{flex-basis:66vw}}
.tp-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@media(min-width:720px){.tp-tiles{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}}
.tp-tile{position:relative;display:flex;flex-direction:column;justify-content:flex-end;gap:2px;aspect-ratio:16/8;padding:12px 14px;border-radius:var(--tp-r);overflow:hidden;isolation:isolate;background:linear-gradient(135deg,#2a1d2b,#14121a);color:#fff}
.tp-tile::before{content:"";position:absolute;inset:0;z-index:-2;background:var(--tp-img,none) center/cover no-repeat;transition:transform .4s ease}
.tp-tile::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#0000 15%,#000d 100%)}
.tp-tile:hover::before{transform:scale(1.07)}
.tp-tile-name{font-weight:800;font-size:clamp(14px,1.5vw,17px);line-height:1.15}
.tp-tile-count{font-size:11.5px;opacity:.8}
@media(min-width:720px){.tp-tile{aspect-ratio:16/5.4;padding:10px 14px}}

/* ---------- Página do vídeo ---------- */
body.gzs-tube-pro .erome-watch .gzs-breadcrumb{margin-bottom:10px}
body.gzs-tube-pro .erome-watch .gzs-player{position:relative;border-radius:12px;overflow:hidden;background:#000;border:0;box-shadow:0 18px 50px #0008;margin:0}
body.gzs-tube-pro .erome-watch .gzs-player video,body.gzs-tube-pro .erome-watch .gzs-player iframe{display:block;width:100%;aspect-ratio:16/9;max-height:78vh;background:#000;object-fit:contain;border:0}
body.gzs-tube-pro .tp-watch-title{margin:14px 0 4px;padding:0}
body.gzs-tube-pro .tp-watch-title h1{color:var(--gzs-text,#fff);opacity:1;margin:0 0 10px;font-size:clamp(18px,2.1vw,26px);line-height:1.25;font-weight:800;letter-spacing:-.01em}
.tp-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.tp-chip{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 12px;border-radius:999px;font-size:12.5px;font-weight:700;border:1px solid var(--tp-line);background:var(--tp-soft);color:inherit;transition:background .15s,border-color .15s,color .15s}
.tp-chip svg{width:14px;height:14px}
.tp-chip:hover{border-color:var(--tp-hot);color:var(--tp-hot)}
.tp-chip-cat{background:var(--tp-hot);border-color:var(--tp-hot);color:#2a0a18}
.tp-chip-cat:hover{background:transparent;color:var(--tp-hot)}
.tp-chip-model{border-color:#ffffff30}
.tp-chip-tag{font-weight:600;color:var(--tp-muted);background:transparent}
body.gzs-tube-pro .erome-watch .gzs-engagement.gzs-engagement-v144{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;gap:12px 20px!important;margin:14px 0 0!important;padding:12px 0!important;background:none!important;border:0!important;border-block:1px solid var(--tp-line)!important;border-radius:0!important;box-shadow:none!important}
body.gzs-tube-pro .erome-watch .gzs-engagement .erome-watch-metrics{display:flex;flex-wrap:wrap;gap:6px 22px;margin:0;padding:0;border:0;background:none;flex:1 1 auto}
body.gzs-tube-pro .erome-watch .erome-watch-metric{border:0;padding:0;min-width:0}
body.gzs-tube-pro .erome-watch .gzs-engagement-v144 .gzs-vote-group{display:flex!important;gap:8px!important;margin:0 0 0 auto!important;width:auto!important}
body.gzs-tube-pro .erome-watch .gzs-vote{min-height:42px;border-radius:999px}
body.gzs-tube-pro .erome-watch .gzs-watch-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0}
body.gzs-tube-pro .erome-watch .gzs-watch-actions .gzs-button{min-height:42px;border-radius:999px}
body.gzs-tube-pro .erome-watch .gzs-watch-support{margin:10px 0 0}
body.gzs-tube-pro .erome-watch .gzs-watch-support .gzs-button{min-height:40px;border-radius:999px;font-size:13px}
@media(min-width:1100px){body.gzs-tube-pro .erome-watch .gzs-watch-layout{grid-template-columns:minmax(0,1fr) 390px;gap:26px}}
@media(min-width:1500px){body.gzs-tube-pro .erome-watch .gzs-watch-layout{grid-template-columns:minmax(0,1fr) 430px}}
body.gzs-tube-pro .erome-watch .gzs-watch-sidebar{position:sticky;top:14px;align-self:start}
body.gzs-tube-pro .erome-watch .tp-related-box{padding:0;background:none;border:0;box-shadow:none}
body.gzs-tube-pro .erome-watch .tp-related-box .gzs-widget-title{margin:0 0 12px;font-size:17px;font-weight:800}
body.gzs-tube-pro .tp-related{display:flex;flex-direction:column;gap:12px}
body.gzs-tube-pro.gzs-reference-site .tp-related .tp-card{display:grid;grid-template-columns:min(46%,176px) minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:10px;align-items:start}
body.gzs-tube-pro.gzs-reference-site .tp-related .tp-card .gzs-card-media{grid-row:1/3;grid-column:1}
body.gzs-tube-pro.gzs-reference-site .tp-related .tp-card .gzs-card-title{grid-column:2;margin:0 0 4px;font-size:13px}
body.gzs-tube-pro.gzs-reference-site .tp-related .tp-card .gzs-card-meta{grid-column:2;margin:0;flex-wrap:wrap;white-space:normal;row-gap:2px}
body.gzs-tube-pro.gzs-reference-site .tp-related .tp-card .tp-ago{margin-left:0}
body.gzs-tube-pro.gzs-reference-site .tp-related .tp-card .gzs-card-save{display:none}
body.gzs-tube-pro .erome-watch .erome-discover-more{margin-top:14px}
body.gzs-tube-pro .erome-watch .gzs-related{margin-top:28px}
body.gzs-tube-pro .erome-watch .gzs-entry-content:empty{display:none}
@media(max-width:1099px){
  /* No celular/tablet: vídeo → info → relacionados → resto → comentários. */
  body.gzs-tube-pro .erome-watch .gzs-watch-layout{display:flex;flex-direction:column;align-items:stretch;gap:0}
  body.gzs-tube-pro .erome-watch .gzs-watch-primary{display:contents}
  body.gzs-tube-pro .erome-watch .gzs-watch-sidebar{order:2;position:static;align-self:stretch;width:100%;margin-top:20px}
  body.gzs-tube-pro .erome-watch .gzs-watch-layout>*,body.gzs-tube-pro .erome-watch .gzs-watch-primary>*{min-width:0}
  body.gzs-tube-pro .erome-watch .gzs-related{order:3}
  body.gzs-tube-pro .erome-watch .gzs-comments{order:4}
  body.gzs-tube-pro.gzs-reference-site .tp-related .tp-card{grid-template-columns:min(42%,170px) minmax(0,1fr)}
}
@media(max-width:639px){
  body.gzs-tube-pro .erome-watch .gzs-player{border-radius:0;margin-inline:-12px;width:calc(100% + 24px);max-width:none}
  body.gzs-tube-pro .erome-watch .gzs-engagement-v144 .gzs-vote-group{width:100%!important;margin:0!important}
  body.gzs-tube-pro .erome-watch .gzs-vote{flex:1 1 0;justify-content:center}
  body.gzs-tube-pro .erome-watch .gzs-watch-actions .gzs-button{flex:1 1 auto;justify-content:center}
  .tp-chip{min-height:34px}
}

/* ---------- Cabeçalho no celular ---------- */
@media(max-width:760px){
  body.gzs-tube-pro .erome-v3-header .gzs-kvs-upload{width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;justify-content:center}
  body.gzs-tube-pro .erome-v3-header .gzs-header-actions .gzs-kvs-upload>span,body.gzs-tube-pro .erome-v3-header .gzs-header-actions .gzs-kvs-upload>.gzs-upload-label,body.gzs-tube-pro .gzs-reference-header .gzs-header-actions .gzs-kvs-upload>.gzs-upload-label{display:none!important}
  body.gzs-tube-pro .erome-v3-header .gzs-microbar{display:none}
}

/* ---------- Paginação e títulos de seção ---------- */
body.gzs-tube-pro .navigation.pagination .nav-links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:28px 0 8px}
body.gzs-tube-pro .navigation.pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;padding:0 14px;border-radius:10px;border:1px solid var(--tp-line);background:var(--tp-soft);font-weight:700;font-size:14px}
body.gzs-tube-pro .navigation.pagination .page-numbers.current{background:var(--tp-hot);border-color:var(--tp-hot);color:#2a0a18}
body.gzs-tube-pro .navigation.pagination a.page-numbers:hover{border-color:var(--tp-hot);color:var(--tp-hot)}
@media(max-width:639px){body.gzs-tube-pro .navigation.pagination .page-numbers{min-width:40px;min-height:44px;padding:0 10px}}

@media(prefers-reduced-motion:reduce){body.gzs-tube-pro .tp-card .gzs-thumbnail img,.tp-tile::before,.tp-preview{transition:none!important}}

@container (max-width:215px){.tp-card .tp-ago{display:none!important}}
@media(min-width:1100px){body.gzs-tube-pro .erome-watch .gzs-related .gzs-video-grid{--tp-cols:4}}
@media(min-width:1800px){body.gzs-tube-pro .erome-watch .gzs-related .gzs-video-grid{--tp-cols:5}}
body.gzs-tube-pro .erome-watch .gzs-entry-content{margin-top:16px}
