/* Tibia Raiz TV (16/10): "YouTube dos jogadores", na paleta escura e dourada do site. */
:root {
  --tv-accent: #e0b95a;
  --tv-accent-2: #9d7529;
  --tv-panel: #0d1118;
  --tv-panel-2: #141a23;
  --tv-border: #303a48;
  --tv-copy: #d9dee6;
  --tv-muted: #9099a7;
  --tv-red: #c8463c;
}

body { background: linear-gradient(#080b10, #05070a 70%); color: var(--tv-copy); }

/* topo: marca, busca, postar */
.tv-topo { position: sticky; top: 0; z-index: 5; display: flex; gap: 14px; align-items: center; max-width: 1280px; margin: 0 auto; padding: 12px 16px; box-sizing: border-box; background: rgba(8, 11, 16, .94); border-bottom: 1px solid var(--tv-border); }
.tv-marca { font: bold 20px Georgia, serif; letter-spacing: .06em; color: var(--tv-accent); text-decoration: none; white-space: nowrap; }
.tv-marca span { color: #fff; background: var(--tv-red); padding: 0 .3em; border-radius: 4px; margin-left: .1em; }
.tv-busca { flex: 1; display: flex; max-width: 560px; margin: 0 auto; }
.tv-busca input { flex: 1; min-width: 0; padding: 8px 12px; border: 1px solid var(--tv-border); border-right: 0; border-radius: 20px 0 0 20px; background: #090d12; color: var(--tv-copy); font: inherit; }
.tv-busca button { padding: 0 16px; border: 1px solid var(--tv-border); border-radius: 0 20px 20px 0; background: var(--tv-panel-2); color: var(--tv-copy); cursor: pointer; }
@media (max-width: 640px) { .tv-topo { flex-wrap: wrap; } .tv-busca { order: 3; flex-basis: 100%; max-width: none; } }

.tv-shell { max-width: 1280px; margin: 0 auto; padding: 16px 16px 40px; box-sizing: border-box; }
.tv-card { background: var(--tv-panel); border: 1px solid var(--tv-border); border-radius: 8px; padding: 18px; margin-bottom: 18px; }
.tv-card h1 { margin: 0; font-size: 22px; color: var(--tv-accent); }
.tv-card h2 { margin: 0 0 10px; font-size: 16px; color: var(--tv-accent); }
.tv-title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tv-title-row a:not(.tv-btn) { color: var(--tv-muted); }
.tv-sec { margin: 22px 0 12px; font-size: 19px; color: #f1e6c8; }
.tv-sec-box { margin-bottom: 8px; }

.tv-btn { display: inline-block; padding: 8px 16px; border: 1px solid var(--tv-accent-2); border-radius: 18px; background: linear-gradient(#2a2416, #17140d); color: var(--tv-accent); font: inherit; font-weight: bold; text-decoration: none; cursor: pointer; white-space: nowrap; }
.tv-btn:hover { border-color: var(--tv-accent); color: #fff3cf; }
.tv-btn-alt { background: var(--tv-panel-2); border-color: var(--tv-border); color: var(--tv-copy); }
.tv-btn-on { background: #3a2f12; border-color: var(--tv-accent); color: #fff3cf; }
.tv-btn-sub { background: #e9e3d3; border-color: #e9e3d3; color: #111; }
.tv-btn-sub:hover { color: #000; background: #fff; }
.tv-btn[disabled] { opacity: .6; cursor: wait; }
.tv-link { background: none; border: 0; padding: 0; color: var(--tv-muted); text-decoration: underline; cursor: pointer; font: inherit; }
.tv-inline { display: inline; margin: 0; }

.tv-cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 6px; }
.tv-cats a { padding: 6px 12px; border-radius: 8px; background: var(--tv-panel-2); color: var(--tv-copy); text-decoration: none; font-size: 14px; white-space: nowrap; }
.tv-cats a[aria-current="page"] { background: #e9e3d3; color: #111; }

/* grade de vídeos */
.tv-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px 16px; }
.tv-card-video { min-width: 0; }
.tv-capa { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: var(--tv-panel-2); }
.tv-capa img { width: 100%; height: 100%; object-fit: cover; display: block; image-rendering: pixelated; }
.tv-capa:hover img { filter: brightness(1.1); }
.tv-dur { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 4px; background: rgba(0, 0, 0, .82); color: #fff; font-size: 12px; font-weight: bold; }
.tv-dur-live { background: var(--tv-red); }
.tv-card-info { display: grid; gap: 2px; padding-top: 8px; }
.tv-card-title { color: #f1e6c8; font-weight: bold; text-decoration: none; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tv-card-chan { color: var(--tv-muted); font-size: 13px; text-decoration: none; }
.tv-card-chan:hover { color: var(--tv-copy); }
.tv-card-meta, .tv-meta { color: var(--tv-muted); font-size: 13px; }
.tv-meta a { color: var(--tv-accent); }
.tv-why { color: var(--tv-accent); font-size: 12px; }

/* capa gerada quando o vídeo não tem print: cor por categoria */
.tv-capa-gerada { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 14px; box-sizing: border-box; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .7); background: linear-gradient(135deg, #3a4558, #11161f); }
.tv-capa-gerada b { font-size: 18px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tv-capa-gerada small { opacity: .85; }
.tv-cat-hunt { background: linear-gradient(135deg, #3f6b2c, #10200c); }
.tv-cat-quest { background: linear-gradient(135deg, #7a5a1c, #241806); }
.tv-cat-pvp { background: linear-gradient(135deg, #8a2620, #250807); }
.tv-cat-boss { background: linear-gradient(135deg, #5b2a7a, #170923); }
.tv-cat-death { background: linear-gradient(135deg, #4b4f57, #0c0d10); }
.tv-cat-funny { background: linear-gradient(135deg, #2a6f80, #08202a); }
.tv-cat-tutorial { background: linear-gradient(135deg, #2b4f8a, #0a1426); }
.tv-cat-live { background: linear-gradient(135deg, #a32d24, #2a0907); }
.tv-capa-live { background: linear-gradient(135deg, #a32d24, #2a0907); }

/* página do vídeo */
.tv-watch { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
@media (max-width: 1000px) { .tv-watch { grid-template-columns: 1fr; } }
.tv-player-capa { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #000; }
.tv-player-capa img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; opacity: .75; }
.tv-player-capa .tv-capa-gerada { opacity: .8; }
.tv-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; background: rgba(200, 70, 60, .92); color: #fff; font-size: 34px; display: flex; align-items: center; justify-content: center; padding-left: 6px; box-sizing: border-box; }
.tv-play-label { position: absolute; left: 50%; top: calc(50% + 58px); transform: translateX(-50%); color: #fff; font-weight: bold; text-shadow: 0 2px 6px #000; }
.tv-player-capa:hover .tv-play { background: #e0574b; }
.tv-player-caixa { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #000; }
.tv-player-caixa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tv-player-cheio { position: fixed; inset: 0; z-index: 9999; aspect-ratio: auto; border-radius: 0; }
html.tv-sem-rolagem, html.tv-sem-rolagem body { overflow: hidden; }
.tv-watch-title { margin: 14px 0 10px; font-size: 21px; color: #f1e6c8; }
.tv-watch-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tv-chan-mini { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tv-chan-mini small { display: block; color: var(--tv-muted); font-size: 12px; }
.tv-chan-name { color: #f1e6c8; font-weight: bold; text-decoration: none; }
.tv-acoes { display: flex; gap: 8px; }
.tv-subs-count { color: var(--tv-muted); font-size: 13px; }
.tv-avatar { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: linear-gradient(135deg, var(--tv-accent), var(--tv-accent-2)); color: #1a1408; font-weight: bold; font-size: 18px; text-decoration: none; }
.tv-avatar-sm { width: 32px; height: 32px; font-size: 14px; }
.tv-avatar-lg { width: 88px; height: 88px; font-size: 38px; }
.tv-desc-box { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--tv-panel-2); line-height: 1.5; }
.tv-desc-box p { margin: 6px 0 0; }
.tv-help { margin-top: 8px; }
.tv-help summary, .tv-report summary { cursor: pointer; color: var(--tv-accent); }
.tv-help ol { margin: 8px 0 0; }
.tv-watch-side h2 { margin: 0 0 10px; font-size: 16px; color: #f1e6c8; }
.tv-lista-lado { display: grid; gap: 12px; }
.tv-lista-lado .tv-card-video { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 10px; }
.tv-lista-lado .tv-card-info { padding-top: 0; }
.tv-lista-lado .tv-capa-gerada b { font-size: 13px; }
.tv-lista-lado .tv-capa-gerada { padding: 8px; }

.tv-comments { margin-top: 22px; }
.tv-comments h2 { font-size: 17px; color: #f1e6c8; }
.tv-comment-form { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: start; margin-bottom: 18px; }
@media (max-width: 640px) { .tv-comment-form { grid-template-columns: 1fr; } }
.tv-comment-form select, .tv-comment-form textarea { padding: 8px 10px; background: #090d12; border: 1px solid var(--tv-border); border-radius: 6px; color: var(--tv-copy); font: inherit; }
.tv-comments ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.tv-comments li { display: flex; gap: 10px; }
.tv-comments li p { margin: 4px 0; line-height: 1.45; overflow-wrap: anywhere; }
.tv-comments small { color: var(--tv-muted); }

/* canal */
.tv-canal-topo { display: flex; gap: 20px; align-items: center; padding: 22px 0 16px; border-bottom: 1px solid var(--tv-border); margin-bottom: 14px; flex-wrap: wrap; }
.tv-canal-topo h1 { margin: 0 0 4px; font-size: 26px; color: #f1e6c8; }
.tv-canal-topo .tv-meta { margin: 0 0 10px; }

.tv-tag { display: inline-block; padding: 1px 8px; border-radius: 10px; background: var(--tv-panel-2); border: 1px solid var(--tv-border); color: var(--tv-muted); font-size: 12px; text-decoration: none; }
.tv-tag-live { background: var(--tv-red); border-color: var(--tv-red); color: #fff; font-weight: bold; }
.tv-live-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--tv-red); box-shadow: 0 0 0 0 rgba(200, 70, 60, .7); animation: tv-pulse 1.6s infinite; vertical-align: middle; }
@keyframes tv-pulse { 70% { box-shadow: 0 0 0 10px rgba(200, 70, 60, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 70, 60, 0); } }
@media (prefers-reduced-motion: reduce) { .tv-live-dot { animation: none; } }

.tv-empty { padding: 28px; text-align: center; color: var(--tv-muted); border: 1px dashed var(--tv-border); border-radius: 10px; }
.tv-empty h2 { color: var(--tv-copy); margin-top: 0; }

.tv-form { display: grid; gap: 4px; max-width: 620px; }
.tv-form input:not([type]), .tv-form select, .tv-form textarea, .tv-report input, .tv-report select { width: 100%; box-sizing: border-box; padding: 8px 10px; background: #090d12; border: 1px solid var(--tv-border); border-radius: 5px; color: var(--tv-copy); font: inherit; }
.tv-check { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; line-height: 1.4; }
.tv-check input { margin-top: 3px; }
.tv-form .hint { color: var(--tv-muted); font-size: 13px; margin-top: 4px; }
.tv-moderation { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; border-top: 1px solid var(--tv-border); padding-top: 12px; margin-top: 18px; }
.tv-moderation form { margin: 0; }
.tv-report form { display: grid; gap: 6px; margin-top: 8px; min-width: 260px; }
.tv-reports { margin-top: 14px; padding: 12px; border: 1px solid var(--tv-red); border-radius: 6px; }
.tv-player-capa .tv-capa-gerada b, .tv-player-capa .tv-capa-gerada small { display: none; }
.tv-cats { scrollbar-width: none; } .tv-cats::-webkit-scrollbar { display: none; }

/* fazer live */
.tv-btn-live { background: linear-gradient(#a32d24, #6b1a14); border-color: var(--tv-red); color: #fff; }
.tv-btn-live:hover { color: #fff; border-color: #ff8a7a; }
.tv-atraso { border: 1px solid var(--tv-border); border-radius: 8px; padding: 10px 14px; margin: 8px 0; display: grid; gap: 6px; }
.tv-atraso legend { color: var(--tv-copy); padding: 0 6px; }
.tv-atraso .hint { color: var(--tv-muted); font-size: 13px; }
.tv-live-status { display: grid; gap: 10px; max-width: 640px; }
.tv-live-status h2 { margin: 0; font-size: 19px; color: #f1e6c8; }
.tv-live-status p { margin: 0; line-height: 1.5; }
.tv-live-status form { margin: 6px 0 0; }

/* 24/10: chat publico da sessao ao vivo, ao lado do player como numa plataforma de streaming. */
.tv-live-chat { display: flex; flex-direction: column; height: min(560px, calc(100vh - 150px)); min-height: 420px; margin-bottom: 22px; overflow: hidden; border: 1px solid var(--tv-border); border-radius: 12px; background: var(--tv-panel); }
.tv-live-chat > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--tv-border); }
.tv-live-chat > header div { display: flex; align-items: center; gap: 8px; }
.tv-live-chat > header h2 { margin: 0; font-size: 16px; color: #f1e6c8; }
.tv-live-chat > header small { color: var(--tv-muted); text-transform: uppercase; letter-spacing: .08em; }
.tv-live-chat-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px; scrollbar-color: #465162 transparent; }
.tv-live-chat-empty { margin: 28px 12px; color: var(--tv-muted); text-align: center; }
.tv-live-chat-message { display: flex; align-items: flex-start; gap: 9px; padding: 7px 2px; }
.tv-live-chat-message > div { min-width: 0; flex: 1; }
.tv-live-chat-message p { margin: 3px 0 0; color: var(--tv-copy); line-height: 1.35; overflow-wrap: anywhere; white-space: pre-wrap; }
.tv-live-chat-head { display: flex; align-items: baseline; gap: 7px; }
.tv-live-chat-head b { color: #f1e6c8; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-live-chat-head time { color: var(--tv-muted); font-size: 11px; }
.tv-live-chat-remove { margin-left: auto; padding: 0; border: 0; background: none; color: var(--tv-muted); font: inherit; font-size: 11px; text-decoration: underline; cursor: pointer; }
.tv-live-chat-form { display: grid; gap: 7px; padding: 10px 12px; border-top: 1px solid var(--tv-border); }
.tv-live-chat-form select, .tv-live-chat-form input { min-width: 0; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--tv-border); border-radius: 7px; background: #090d12; color: var(--tv-copy); font: inherit; }
.tv-live-chat-form > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.tv-live-chat-form button { padding: 0 13px; border: 1px solid var(--tv-accent-2); border-radius: 7px; background: #2a2416; color: var(--tv-accent); font-weight: 700; cursor: pointer; }
.tv-live-chat-form button:disabled { opacity: .55; cursor: wait; }
.tv-live-chat-login { margin: 10px 12px 4px; padding: 9px 12px; border-radius: 8px; background: #e9e3d3; color: #111; font-weight: 700; text-align: center; text-decoration: none; }
.tv-live-chat-note { margin: 6px 12px 10px; color: var(--tv-muted); font-size: 11px; line-height: 1.35; }
@media (max-width: 1000px) { .tv-live-chat { height: 440px; min-height: 360px; } }
/* 20/10: live automatica no tv.php?live=1 */
.tv-auto { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--tv-border); }
.tv-auto h2 { margin: 0 0 6px; }
.tv-auto > p { color: var(--tv-muted); margin: 0 0 12px; max-width: 620px; }
.tv-auto-char { border: 1px solid var(--tv-border); border-radius: 8px; padding: 6px 14px 10px; margin: 0 0 12px; }
.tv-auto-char legend { padding: 0 6px; font-weight: 700; }
.tv-auto-char .tv-check { margin: 6px 0; }
.tv-chave b { color: #ff5a5a; }

.tv-player-caixa video.tv-cam-video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; image-rendering: pixelated; }

/* 31/10: casca no jeito do YouTube. Barra de cima fixa, menu à esquerda, grade logo de cara, cards com o canal. */
body.tv-pagina { background: #07090d; }
body.tv-pagina .top { position: static; }
.tv-ico { width: 22px; height: 22px; flex: none; fill: currentColor; vertical-align: -5px; }

.tv-topo { z-index: 30; max-width: none; height: 60px; padding: 0 18px; gap: 12px; background: #07090d; border-bottom: 1px solid #171c25; }
.tv-marca { font-size: 19px; }
.tv-busca { max-width: 640px; }
.tv-busca input { height: 40px; padding: 0 18px; box-sizing: border-box; background: #0c1017; }
.tv-busca input:focus { outline: none; border-color: var(--tv-accent-2); }
.tv-busca button { width: 62px; height: 40px; padding: 0; color: var(--tv-copy); }
.tv-busca button:hover { background: #1d2530; }
.tv-topo-acoes { display: flex; align-items: center; gap: 8px; }
.tv-topo-acoes .tv-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; box-sizing: border-box; font-size: 14px; }
.tv-topo-acoes .tv-ico { width: 18px; height: 18px; }
.tv-btn-live .tv-live-dot { width: 8px; height: 8px; background: #fff; animation: none; }
.tv-btn-entrar { background: #e9e3d3; border-color: #e9e3d3; color: #111; }
.tv-btn-entrar:hover { background: #fff; color: #000; }
.tv-icone-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--tv-copy); cursor: pointer; }
.tv-icone-btn:hover { background: #1a212c; color: #fff; }

.tv-app { display: grid; grid-template-columns: 232px minmax(0, 1fr); align-items: start; }
.tv-shell { width: 100%; max-width: 1860px; min-height: 70vh; padding: 12px 24px 48px; }
.tv-app-video { grid-template-columns: minmax(0, 1fr); }

/* menu da esquerda */
.tv-lado { position: sticky; top: 60px; max-height: calc(100vh - 60px); box-sizing: border-box; overflow-y: auto; padding: 12px; scrollbar-width: thin; scrollbar-color: #2a3240 transparent; }
.tv-lado nav { display: grid; gap: 2px; }
.tv-lado a:not(.tv-btn) { display: flex; align-items: center; gap: 18px; min-height: 40px; padding: 0 12px; border-radius: 10px; color: var(--tv-copy); font-size: 14px; text-decoration: none; }
.tv-lado a:not(.tv-btn) span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-lado a:not(.tv-btn):hover { background: #151b24; }
.tv-lado a[aria-current="page"] { background: #1c2430; color: #fff; font-weight: 700; }
.tv-lado a[aria-current="page"] .tv-ico { color: var(--tv-accent); }
.tv-lado-bloco { margin-top: 12px; padding-top: 12px; border-top: 1px solid #1c222c; }
.tv-lado-bloco h2 { margin: 0 0 6px; padding: 0 12px; color: #f1e6c8; font-size: 15px; }
.tv-lado-entrar { padding-left: 12px; padding-right: 12px; }
.tv-lado-entrar p { margin: 0 0 10px; color: var(--tv-muted); font-size: 13px; line-height: 1.4; }
.tv-menu-fundo { display: none; }
.tv-app-video .tv-lado { position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; width: 260px; max-height: none; padding-top: 16px; background: #0b0e14; box-shadow: 8px 0 30px rgba(0, 0, 0, .6); transform: translateX(-105%); visibility: hidden; }
html.tv-menu-aberto .tv-lado { position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; width: 260px; max-height: none; padding-top: 16px; background: #0b0e14; box-shadow: 8px 0 30px rgba(0, 0, 0, .6); transform: none; visibility: visible; }
html.tv-menu-aberto .tv-menu-fundo { display: block; position: fixed; z-index: 35; inset: 0; background: rgba(0, 0, 0, .55); }

html.tv-lado-recolhido .tv-app { grid-template-columns: minmax(0, 1fr); }
html.tv-lado-recolhido .tv-lado { display: none; }

/* categorias: fixas embaixo da barra */
.tv-cats { gap: 10px; padding: 2px 0 10px; margin-bottom: 8px; }
.tv-cats-fixa { position: sticky; top: 60px; z-index: 10; padding-top: 10px; background: #07090d; }
.tv-cats a { padding: 7px 13px; background: #171d27; font-weight: 600; }
.tv-cats a:hover { background: #232b37; }
.tv-cats a[aria-current="page"]:hover { background: #e9e3d3; }

/* grade e cards */
.tv-sec-box { margin-bottom: 26px; }
.tv-sec { margin: 8px 0 14px; font-size: 20px; }
.tv-sec-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tv-sec a { color: inherit; text-decoration: none; }
.tv-ver-tudo { padding: 6px 12px; border-radius: 16px; color: var(--tv-accent); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.tv-ver-tudo:hover { background: #1a212c; }
.tv-grade { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 30px 16px; }
.tv-capa { border-radius: 12px; }
.tv-capa img { transition: transform .18s ease; }
.tv-capa:hover img { transform: scale(1.03); filter: none; }
.tv-dur { right: 7px; bottom: 7px; padding: 2px 6px; border-radius: 5px; }
.tv-card-info { display: flex; align-items: flex-start; gap: 12px; padding-top: 12px; }
.tv-card-txt { display: grid; gap: 3px; min-width: 0; flex: 1; }
.tv-card-title { font-size: 15px; line-height: 1.35; font-weight: 600; color: #f4f1e8; }
.tv-card-title:hover { color: #fff; }
.tv-card-chan, .tv-card-meta { font-size: 13px; }

/* prateleira deslizante */
.tv-fila { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.tv-fila::-webkit-scrollbar { display: none; }
.tv-fila .tv-card-video { scroll-snap-align: start; }
@media (min-width: 1500px) { .tv-fila { grid-auto-columns: minmax(290px, 19%); } }
.tv-fila-caixa { position: relative; }
.tv-fila-seta { position: absolute; z-index: 3; top: 60px; width: 40px; height: 40px; border: 1px solid #39424f; border-radius: 50%; background: #171d27; color: #fff; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.tv-fila-seta:hover { background: #28313e; }
.tv-fila-seta[hidden] { display: none; }
.tv-fila-seta .tv-ico { vertical-align: middle; }
.tv-fila-volta { left: -14px; }
.tv-fila-volta .tv-ico { transform: rotate(180deg); }
.tv-fila-vai { right: -14px; }

/* avatares: a cor vem do nome do canal */
.tv-avatar { color: #fff; font-weight: 700; }
.tv-avatar-sm { width: 36px; height: 36px; font-size: 15px; }
.tv-avatar-xs { width: 24px; height: 24px; font-size: 11px; }
.tv-av-0 { background: #8f3a2e; } .tv-av-1 { background: #2f6a4f; } .tv-av-2 { background: #2d5a8c; } .tv-av-3 { background: #7a4f9c; }
.tv-av-4 { background: #a3712a; } .tv-av-5 { background: #1f7a85; } .tv-av-6 { background: #9c3f6b; } .tv-av-7 { background: #57652c; }
.tv-lista-lado .tv-avatar { display: none; }
.tv-lista-lado .tv-card-info { display: block; }
.tv-lista-lado .tv-card-title { font-size: 14px; }
.tv-lista-lado .tv-card-chan, .tv-lista-lado .tv-card-meta { font-size: 12px; }

/* página do vídeo */
.tv-watch { grid-template-columns: minmax(0, 1fr) 402px; gap: 24px; max-width: 1760px; margin: 0 auto; }
.tv-player-capa, .tv-player-caixa { border-radius: 14px; }
.tv-player-capa img { opacity: .85; }
.tv-play { width: 76px; height: 76px; }
.tv-watch-title { margin: 14px 0 10px; font-size: 21px; font-weight: 700; line-height: 1.3; color: #f4f1e8; }
.tv-chan-mini { gap: 12px; }
.tv-chan-mini .tv-btn-sub, .tv-chan-mini .tv-btn-alt { display: inline-flex; align-items: center; margin-left: 8px; height: 36px; box-sizing: border-box; padding: 0 16px; }
.tv-chan-mini > div { display: block; }
.tv-acoes { flex-wrap: wrap; }
.tv-pilula { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; box-sizing: border-box; border: 0; border-radius: 18px; background: #1a212c; color: #eceff4; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; }
.tv-pilula:hover { background: #2a3340; color: #fff; }
.tv-pilula .tv-ico { width: 19px; height: 19px; }
.tv-pilula-on { background: #3a2f12; color: #fff3cf; }
.tv-desc-box { padding: 13px 15px; border-radius: 12px; background: #141a23; font-size: 14px; }
.tv-desc-box a { color: var(--tv-accent); }
.tv-comments h2 { margin: 0 0 14px; font-size: 19px; }
.tv-comment-form textarea { background: transparent; border: 0; border-bottom: 1px solid var(--tv-border); border-radius: 0; resize: vertical; }
.tv-comment-form textarea:focus { outline: none; border-color: var(--tv-accent); }
.tv-moderation { font-size: 13px; }

/* canal */
.tv-canal-faixa { height: clamp(90px, 15vw, 190px); overflow: hidden; border-radius: 14px; background: #141a23; }
.tv-canal-faixa img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; image-rendering: pixelated; filter: brightness(.72); }
.tv-canal-topo { padding: 18px 0 14px; margin-bottom: 0; border-bottom: 0; }
.tv-canal-topo h1 { font-size: 30px; }
.tv-avatar-lg { width: 112px; height: 112px; font-size: 46px; }
.tv-abas { display: flex; gap: 22px; overflow-x: auto; margin-bottom: 20px; border-bottom: 1px solid #252c38; scrollbar-width: none; }
.tv-abas a { padding: 10px 2px; border-bottom: 2px solid transparent; color: var(--tv-muted); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.tv-abas a:hover { color: #fff; }
.tv-abas a[aria-current="page"] { border-color: #f1e6c8; color: #fff; }

/* busca em lista */
.tv-busca-canal { display: flex; align-items: center; gap: 22px; max-width: 1120px; padding: 12px 0 20px; margin-bottom: 18px; border-bottom: 1px solid #1c222c; color: var(--tv-copy); text-decoration: none; }
.tv-busca-canal span:last-child { display: grid; gap: 4px; }
.tv-busca-canal b { color: #f4f1e8; font-size: 18px; }
.tv-busca-canal small { color: var(--tv-muted); font-size: 13px; }
.tv-lista-busca { display: grid; gap: 18px; max-width: 1120px; }
.tv-lista-busca .tv-card-video { display: grid; grid-template-columns: minmax(180px, 400px) minmax(0, 1fr); gap: 16px; }
.tv-lista-busca .tv-card-info { flex-direction: column; padding-top: 0; gap: 8px; }
.tv-lista-busca .tv-card-title { font-size: 18px; }
.tv-lista-busca .tv-avatar { display: none; }
.tv-lista-busca .tv-card-txt { flex: none; align-content: start; }

/* celular: sem menu lateral, barra embaixo */
.tv-baixo { display: none; }
@media (max-width: 1180px) {
  .tv-app { grid-template-columns: minmax(0, 1fr); }
  .tv-lado { position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; width: 260px; max-height: none; padding-top: 16px; background: #0b0e14; box-shadow: 8px 0 30px rgba(0, 0, 0, .6); transform: translateX(-105%); visibility: hidden; }
  .tv-watch { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  body.tv-pagina .top { display: none; }
  .tv-topo { position: static; flex-wrap: wrap; height: auto; padding: 8px 12px; gap: 8px; }
  .tv-busca { order: 3; flex-basis: 100%; }
  .tv-topo-acoes { margin-left: auto; }
  .tv-topo-acoes .tv-btn-alt, .tv-topo-acoes .tv-btn-live { display: none; }
  .tv-cats-fixa { position: static; }
  .tv-shell { padding: 8px 12px 84px; }
  .tv-grade { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .tv-fila { grid-auto-columns: 78%; }
  .tv-fila-seta { display: none; }
  .tv-lista-busca .tv-card-video { grid-template-columns: 42% minmax(0, 1fr); gap: 10px; }
  .tv-lista-busca .tv-card-title { font-size: 14px; }
  .tv-avatar-lg { width: 72px; height: 72px; font-size: 30px; }
  .tv-canal-topo h1 { font-size: 22px; }
  .tv-watch-bar { display: grid; }
  .tv-acoes { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tv-baixo { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding-bottom: env(safe-area-inset-bottom); background: #0b0e14; border-top: 1px solid #1c222c; }
  .tv-baixo a { display: grid; justify-items: center; gap: 2px; padding: 7px 0 6px; color: var(--tv-muted); font-size: 10px; text-decoration: none; }
  .tv-baixo a[aria-current="page"] { color: #fff; }
  .tv-baixo a[aria-current="page"] .tv-ico { color: var(--tv-accent); }
  body.tv-pagina footer { padding-bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) { .tv-capa img { transition: none; } }

/* 31/10: reprodução automática: chave no "A seguir" e aviso do próximo vídeo por cima do player */
.tv-seguir-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.tv-seguir-topo h2 { margin: 0; }
.tv-auto-chave { display: inline-flex; align-items: center; gap: 8px; color: var(--tv-muted); font-size: 13px; cursor: pointer; }
.tv-auto-chave input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tv-auto-chave i { position: relative; width: 34px; height: 18px; flex: none; border-radius: 9px; background: #39424f; transition: background .15s; }
.tv-auto-chave i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s; }
.tv-auto-chave input:checked + i { background: var(--tv-red); }
.tv-auto-chave input:checked + i::after { left: 18px; }
.tv-auto-chave input:focus-visible + i { outline: 2px solid var(--tv-accent); outline-offset: 2px; }
.tv-prox { position: absolute; z-index: 5; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px; box-sizing: border-box; overflow: hidden; background: rgba(4, 6, 9, .88); color: #fff; text-align: center; }
.tv-prox small { color: #cfd5de; font-size: 15px; }
.tv-prox img { width: min(300px, 46%); aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; image-rendering: pixelated; }
.tv-prox strong { max-width: 460px; font-size: 18px; line-height: 1.25; }
.tv-prox span { color: var(--tv-muted); font-size: 13px; }
.tv-prox div { display: flex; gap: 10px; margin-top: 4px; }
.tv-prox button { height: 38px; padding: 0 18px; border: 0; border-radius: 19px; background: #2a3340; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.tv-prox button:hover { background: #39424f; }
.tv-prox .tv-prox-ir { background: #e9e3d3; color: #111; }
.tv-prox .tv-prox-ir:hover { background: #fff; }
@media (max-width: 760px) { .tv-prox img { display: none; } .tv-prox strong { font-size: 15px; } }
