/* Player web do WiseTV: mesmo visual do app (fundo preto, item selecionado em branco, menu de ícones). */

:root {
  color-scheme: dark;
  --bg: #000;
  --surface: #0e0e0e;
  --card: #141414;
  --high: #1a1a1a;
  --hover: #222;
  --div: rgba(255, 255, 255, 0.16);
  --line: rgba(255, 255, 255, 0.07);
  --t1: #fff;
  --t2: rgba(255, 255, 255, 0.72);
  --t3: rgba(255, 255, 255, 0.5);
  --orange: #f7a41b;
  --pink: #f2465a;
  --live: #e53935;
  --green: #34c77b;
  --error: #ff6b6b;
  --rail: 104px;
  --tabs: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: Roboto, 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--bg); color: var(--t1); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; }
* { scrollbar-width: thin; scrollbar-color: #333 transparent; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
[hidden] { display: none !important; }

.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon.filled { fill: currentColor; }

.grow { flex: 1; }
.hint { color: var(--t3); font-size: 14px; line-height: 1.5; }
.center { text-align: center; justify-content: center; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.scroll-x { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.scroll-x::-webkit-scrollbar { display: none; }
.empty { padding: 48px 16px; text-align: center; color: var(--t3); display: flex; flex-direction: column; align-items: center; gap: 14px; line-height: 1.5; }
.loading-block { display: grid; place-items: center; padding: 64px 0; }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.15); border-top-color: #fff; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.bar { display: block; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.bar i { display: block; height: 100%; background: rgba(255, 255, 255, 0.78); }

/* ---------- Botões e chips ---------- */

.btn { height: 46px; padding: 0 20px; border-radius: 10px; background: var(--high); color: var(--t1); display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; font-weight: 500; white-space: nowrap; transition: background 0.15s, transform 0.1s; }
.btn:hover { background: #262626; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn.white { background: #fff; color: #000; font-weight: 700; }
.btn.white:hover { background: #e6e6e6; }
.btn.ghost { background: transparent; border: 1px solid var(--div); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.06); }
.btn.small { height: 36px; padding: 0 14px; font-size: 14px; }
.btn.wide { width: 100%; }
.btn.fav-on .icon { color: var(--orange); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--t2); flex: none; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chips.scroll-x { flex-wrap: nowrap; }
.chip { height: 40px; padding: 0 18px; border-radius: 20px; background: var(--high); color: var(--t2); display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; white-space: nowrap; flex: none; transition: background 0.15s; }
.chip .icon { width: 18px; height: 18px; }
.chip:hover { background: #262626; color: #fff; }
.chip.on { background: #fff; color: #000; }

.segmented { display: inline-flex; background: var(--high); border-radius: 10px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.segmented button { height: 38px; padding: 0 14px; border-radius: 8px; color: var(--t2); font-weight: 600; font-size: 14px; }
.segmented button:hover { color: #fff; }
.segmented button.on { background: #fff; color: #000; }

.search-box { display: flex; align-items: center; gap: 10px; height: 48px; width: 360px; max-width: 100%; border: 1px solid var(--div); border-radius: 10px; padding: 0 14px; color: var(--t3); }
.search-box:focus-within { border-color: #fff; color: #fff; }
.search-input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: 0; font-size: 16px; color: var(--t1); }
.search-input::-webkit-search-cancel-button { filter: invert(1); }
.search-box.big { width: 100%; max-width: 760px; height: 60px; }
.search-box.big .search-input { font-size: 18px; }

/* ---------- Estrutura ---------- */

#app { height: 100%; }
#view { height: 100%; overflow-y: auto; padding-left: var(--rail); overscroll-behavior: contain; }
.rail { position: fixed; z-index: 10; left: 0; top: 0; bottom: 0; width: var(--rail); display: flex; flex-direction: column; align-items: center; padding: 32px 0 28px; gap: 10px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), var(--pink)); display: grid; place-items: center; font-weight: 700; font-size: 20px; color: #fff; margin-bottom: 30px; flex: none; }
.nav-item { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--t2); transition: background 0.15s, color 0.15s; flex: none; }
.nav-item:hover { background: var(--high); color: #fff; }
.nav-item.on { background: #fff; color: #000; }
.rail .nav-label { position: absolute; left: 64px; top: 50%; transform: translateY(-50%); background: #262626; color: #fff; padding: 7px 12px; border-radius: 8px; font-size: 13px; font-weight: 500; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.15s; }
.rail .nav-item:hover .nav-label, .rail .nav-item:focus-visible .nav-label { opacity: 1; }
.rail .grow { flex: 1; }
.tabs { display: none; }
#app.immersive .rail, #app.immersive .tabs { display: none; }
#app.immersive #view { padding: 0; }
.boot { height: 100%; display: grid; place-items: center; }

.page { padding: 36px 48px 56px 8px; }
.page-head { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 44px; font-weight: 700; letter-spacing: -0.5px; }
.page-head.slim { margin: 0; }
.page-head.slim h1 { font-size: 30px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--t2); font-size: 15px; font-weight: 500; margin-bottom: 18px; }
.back-link:hover { color: #fff; }

/* ---------- Entrada ---------- */

.login { min-height: 100%; overflow-y: auto; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(60% 60% at 25% 25%, rgba(247, 164, 27, 0.12), transparent 70%), radial-gradient(50% 55% at 80% 85%, rgba(242, 70, 90, 0.1), transparent 70%), #000; }
.login-stack { width: min(460px, 100%); display: flex; flex-direction: column; gap: 16px; }
.card { background: rgba(20, 20, 20, 0.94); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.card.center { align-items: center; text-align: center; }
.card h1 { font-size: 24px; font-weight: 700; margin-top: 8px; }
.card .hint a { text-decoration: underline; color: var(--t2); }
.brand { display: flex; align-items: center; min-height: 40px; }
.card.center .brand { justify-content: center; }
.brand-wise { height: 34px; width: auto; }
.brand-logo { max-height: 64px; max-width: 240px; object-fit: contain; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; color: var(--t3); }
.field input, .field select, .settings-page select { height: 52px; width: 100%; background: #0b0b0b; border: 1px solid var(--div); border-radius: 10px; padding: 0 14px; font-size: 16px; color: #fff; outline: 0; }
.field input:focus, .field select:focus, .settings-page select:focus { border-color: #fff; }
.field select, .settings-page select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field option, .settings-page option { background: #141414; }
.with-btn { position: relative; }
.with-btn input { padding-right: 52px; }
.with-btn .icon-btn { position: absolute; right: 6px; top: 6px; }
.form-error { display: flex; gap: 12px; align-items: flex-start; background: rgba(255, 107, 107, 0.08); border: 1px solid rgba(255, 107, 107, 0.35); border-radius: 12px; padding: 12px 14px; color: var(--t2); font-size: 14px; line-height: 1.5; text-align: left; }
.form-error .icon { color: var(--error); margin-top: 1px; }
.form-error b { color: #fff; font-weight: 500; display: block; }
.form-error p { margin-top: 4px; }
.renew-img { max-width: 220px; width: 100%; border-radius: 10px; margin-top: 10px; background: #fff; }
.device-code { font-size: 13px; color: var(--t3); text-align: center; line-height: 1.6; }
.device-code b { color: #fff; letter-spacing: 2px; }

/* ---------- TV ao vivo ---------- */

.live-page { height: 100%; display: flex; flex-direction: column; padding-bottom: 0; overflow: hidden; }
.live-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 236px 404px minmax(0, 1fr); gap: 24px; }
.cats-col { overflow-y: auto; padding-bottom: 24px; }
.cats { display: flex; flex-direction: column; gap: 4px; }
.cat { height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px; color: var(--t2); font-size: 16px; font-weight: 500; text-align: left; }
.cat span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat small { color: var(--t3); font-size: 14px; }
.cat:hover { background: var(--surface); color: #fff; }
.cat.on { background: #fff; color: #000; }
.cat.on small { color: rgba(0, 0, 0, 0.55); }
.list-col { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.live-chips { display: none; }
.chans { flex: 1; min-height: 0; overflow-y: auto; position: relative; padding-right: 6px; }
.vl { position: relative; }
.ch { position: absolute; left: 0; right: 0; top: 0; height: 74px; border-radius: 12px; background: var(--card); display: flex; align-items: center; gap: 14px; padding: 0 16px; text-align: left; color: var(--t1); transition: background 0.12s; }
.ch:hover { background: #1c1c1c; }
.ch.on { background: #fff; color: #000; }
.ch .num { width: 30px; color: var(--t3); font-size: 14px; text-align: right; flex: none; }
.ch.on .num, .ch.on .pg { color: rgba(0, 0, 0, 0.6); }
.ch .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ch .nm { font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch .pg { font-size: 13px; color: var(--t3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 16px; }
.ch .bar { margin-top: 7px; }
.ch.on .bar { background: rgba(0, 0, 0, 0.12); }
.ch.on .bar i { background: #000; }
.fav { color: var(--orange); display: grid; }
.fav .icon { width: 20px; height: 20px; }
.ch.on .fav { color: #000; }
.logo { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; position: relative; overflow: hidden; flex: none; font-weight: 900; font-size: 13px; color: #fff; }
.logo:has(img.ok) { background: #222 !important; }
.logo img:not(.ok), .crest img:not(.ok), .mini img:not(.ok) { opacity: 0; }
.logo img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); object-fit: contain; }
.logo.big { width: 72px; height: 72px; font-size: 18px; border-radius: 14px; }
.chans .empty { position: absolute; inset: 0 0 auto 0; }

.watch { min-width: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; padding-bottom: 28px; }
.video-box { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0b0b0b; flex: none; }
.video-placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(90% 90% at 70% 20%, #1d1d1d, #050505 70%); z-index: 3; }
.ph-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--t2); text-align: center; padding: 16px; }
.ph-inner > .icon { width: 44px; height: 44px; color: var(--t3); }
.watch-info h2 { font-size: 24px; font-weight: 700; }
.watch-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.watch-title .fav-icon { display: none; width: 40px; height: 40px; flex: none; margin: -6px -8px -6px 0; }
.watch-title .fav-icon .icon { width: 22px; height: 22px; }
.watch-title .fav-icon.on { color: var(--orange); }
.modal:focus { outline: none; }
.watch-info .now { margin-top: 10px; font-size: 16px; }
.watch-info .now b { font-weight: 500; }
.watch-info .when { color: var(--t3); font-size: 14px; margin-top: 4px; }
.watch-info .bar { max-width: 340px; margin-top: 8px; }
.watch-info .desc { color: var(--t2); font-size: 14px; line-height: 1.5; margin-top: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.watch-text { display: flex; flex-direction: column; gap: 18px; }
.watch-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.epg-list { display: flex; flex-direction: column; }
.epg-row { display: flex; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--t2); }
.epg-row span:first-child { width: 52px; color: var(--t3); flex: none; }

/* ---------- Player ---------- */

.player { position: relative; width: 100%; height: 100%; background: #000; overflow: hidden; outline: none; color: #fff; user-select: none; }
.player video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.player:not(.show) { cursor: none; }
.pl-top, .pl-bar { position: absolute; left: 0; right: 0; opacity: 0; transition: opacity 0.25s; z-index: 4; }
.player.show .pl-top, .player.show .pl-bar { opacity: 1; }
.pl-top { top: 0; display: flex; align-items: center; gap: 10px; padding: 14px 16px 36px; background: linear-gradient(rgba(0, 0, 0, 0.8), transparent); }
.pl-heading { min-width: 0; }
.pl-title { font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-sub { font-size: 14px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-page .player:not(.fs) .pl-top { display: none; }
.pl-bar { bottom: 0; padding: 30px 12px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)); }
.pl-row { display: flex; align-items: center; gap: 4px; }
.pl-space { flex: 1; }
.pl-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.pl-btn:hover { background: rgba(255, 255, 255, 0.15); }
.pl-quality { width: auto; height: 30px; padding: 0 10px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, 0.45); font-weight: 700; font-size: 12px; margin: 0 4px; color: #fff; }
.pl-quality:hover { background: rgba(255, 255, 255, 0.15); }
.pl-vol { display: flex; align-items: center; }
.pl-volume { width: 84px; accent-color: #fff; }
.pl-time { font-size: 13px; color: var(--t2); font-variant-numeric: tabular-nums; margin-left: 8px; white-space: nowrap; }
.pl-seek { width: 100%; display: block; margin: 0 0 4px; accent-color: #fff; height: 18px; cursor: pointer; }
.pl-live { position: absolute; left: 14px; top: 14px; z-index: 3; background: var(--live); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.6px; padding: 4px 8px; border-radius: 6px; }
.player.fs.show .pl-live { top: 70px; }
.pl-spinner { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.2); border-top-color: #fff; animation: spin 0.8s linear infinite; z-index: 2; }
.pl-big { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; z-index: 5; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }
.pl-big .icon { width: 34px; height: 34px; margin-left: 4px; }
.pl-error { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; background: rgba(0, 0, 0, 0.86); }
.pl-error .icon { width: 36px; height: 36px; color: var(--error); }
.pl-error p { max-width: 520px; color: var(--t2); line-height: 1.5; font-size: 15px; }
.pl-notice { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); z-index: 5; width: max-content; max-width: min(560px, 86%); display: flex; align-items: center; gap: 8px; background: rgba(22, 22, 22, 0.94); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; padding: 8px 6px 8px 16px; font-size: 14px; line-height: 1.45; }
.pl-overlay { position: absolute; right: 24px; bottom: 96px; z-index: 6; }
.next-box { background: rgba(20, 20, 20, 0.96); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.next-box p { line-height: 1.45; }
.pl-menu { position: absolute; z-index: 8; min-width: 210px; max-height: 70%; overflow: auto; background: rgba(22, 22, 22, 0.98); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; padding: 8px; }
.pl-menu-title { font-size: 13px; color: var(--t3); padding: 6px 10px 8px; }
.pl-menu-head { font-size: 12px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--t3); padding: 10px 10px 4px; }
.pl-menu-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border-radius: 8px; text-align: left; font-size: 14px; }
.pl-menu-item:hover { background: rgba(255, 255, 255, 0.1); }
.pl-menu-item.off { opacity: 0.4; cursor: not-allowed; }
.pl-check { width: 20px; display: grid; }
.pl-check .icon { width: 18px; height: 18px; }
.player.fs .pl-top { padding: 20px 24px 40px; }
.watch-page { position: fixed; inset: 0; z-index: 20; background: #000; padding: 0; }
.watch-page .player { height: 100%; }

/* ---------- Filmes e séries ---------- */

.vod-page { padding: 0; }
.hero { position: relative; }
.hero-inner { position: relative; min-height: 400px; padding: 56px 48px 36px 8px; display: flex; align-items: flex-end; }
.hero-inner.details { min-height: 520px; align-items: flex-end; padding-top: 40px; }
.hero-art { position: absolute; top: 0; bottom: 0; left: calc(-1 * var(--rail)); right: 0; overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero-art img.blur { filter: blur(28px) brightness(0.55); transform: scale(1.15); }
.hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #000 calc(var(--rail) + 4%), rgba(0, 0, 0, 0.7) 42%, rgba(0, 0, 0, 0.15) 75%), linear-gradient(transparent 50%, #000 100%); }
.hero-content { position: relative; max-width: 660px; display: flex; flex-direction: column; }
.hero-content .back-link { align-self: flex-start; }
.kicker { color: var(--orange); font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.hero-content h1 { font-size: 52px; font-weight: 900; letter-spacing: -1px; line-height: 1.04; margin-top: 10px; text-wrap: balance; }
.meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--t2); font-size: 15px; margin-top: 14px; }
.meta .star { display: inline-flex; align-items: center; gap: 4px; }
.meta .star .icon { width: 17px; height: 17px; color: var(--orange); }
.meta .dot { color: var(--t3); }
.syn { color: var(--t2); font-size: 16px; line-height: 1.55; margin-top: 14px; max-width: 600px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hero-inner.details .syn { -webkit-line-clamp: 8; }
.credits { color: var(--t2); font-size: 14px; line-height: 1.6; margin-top: 12px; max-width: 600px; }
.credits p { margin: 0; }
.meta.genre { margin-top: 6px; }
.expandable { max-width: 600px; }
.hero-inner.details .syn.clamp { -webkit-line-clamp: 4; }
.hero-inner.details .syn.clamp.open { -webkit-line-clamp: unset; display: block; }
.more-link { display: inline-flex; margin-top: 6px; padding: 4px 0; color: #fff; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.4); }
.more-link:hover { text-decoration-color: #fff; }
.more-link.inline { display: block; margin-top: 4px; }
.credits b { color: var(--t3); font-weight: 500; }
.hero-content > .row { margin-top: 24px; }
.vod-body { padding: 8px 48px 56px 8px; display: flex; flex-direction: column; gap: 16px; }
.shelf h2, .grid-title, .season-box h2, .result-section h2 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.grid-title:empty { display: none; }
.row.scroll-x { gap: 16px; padding-bottom: 6px; }
.wide-card { width: 260px; flex: none; display: flex; flex-direction: column; gap: 8px; }
.wide-card .p { aspect-ratio: 16 / 9; border-radius: 10px; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 12px; }
.wide-card img, .poster img, .ep-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wide-card .p::after, .ep-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0, 0, 0, 0.75)); }
.wide-name { position: relative; z-index: 1; font-weight: 700; font-size: 15px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); }
.wide-card .sub { font-size: 13px; color: var(--t3); }
.play-dot { position: absolute; z-index: 2; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: #000; display: grid; place-items: center; opacity: 0; transition: opacity 0.15s; }
.play-dot .icon { margin-left: 3px; }
.wide-card:hover .play-dot, .episode:hover .play-dot, .wide-card:focus-visible .play-dot { opacity: 1; }
.wide-card:hover .p, .poster:hover .p, .poster:focus-visible .p { outline: 3px solid #fff; outline-offset: 3px; }
.poster:focus-visible { outline: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px 16px; }
.grid-end { height: 1px; }
.poster { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.row .poster { width: 150px; flex: none; }
.poster .p { aspect-ratio: 2 / 3; border-radius: 10px; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 12px; }
.p-name { font-weight: 800; font-size: 16px; line-height: 1.15; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); }
.rt { position: absolute; z-index: 1; left: 8px; top: 8px; background: rgba(0, 0, 0, 0.7); border-radius: 6px; padding: 3px 7px; font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 3px; }
.rt .icon { width: 14px; height: 14px; color: var(--orange); }
.poster-name { font-size: 14px; color: var(--t2); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bar.on-poster { position: absolute; z-index: 2; left: 8px; right: 8px; bottom: 8px; background: rgba(255, 255, 255, 0.3); }
.bar.on-poster i { background: var(--orange); }

.season-box { padding: 4px 48px 56px 8px; }
.episodes { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.episode { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: center; padding: 10px; border-radius: 12px; transition: background 0.12s; }
.episode:hover { background: var(--surface); }
.ep-img { aspect-ratio: 16 / 9; border-radius: 10px; position: relative; overflow: hidden; }
.ep-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ep-title { font-size: 17px; font-weight: 600; }
.ep-meta { font-size: 13px; color: var(--t3); }
.ep-plot { font-size: 14px; color: var(--t2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Futebol ---------- */

.dates-row { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.dates-row .chips { flex: 1; min-width: 0; }
.myteam { display: flex; align-items: center; gap: 20px; width: 100%; min-height: 104px; border-radius: 14px; padding: 16px 24px; margin-bottom: 22px; background: linear-gradient(100deg, #0f5132 0%, #157347 55%, #1d8f5a 100%); color: #fff; text-align: left; transition: filter 0.15s; }
.myteam:hover { filter: brightness(1.08); }
.myteam.empty-team { background: var(--surface); border: 1px dashed rgba(255, 255, 255, 0.22); }
.myteam.empty-team .crest { background: #1d1d1d; color: var(--t2); }
.mt-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mt-text .t { font-size: 22px; font-weight: 700; }
.mt-text .s { font-size: 14px; color: rgba(255, 255, 255, 0.78); }
.myteam .next { margin-left: auto; text-align: right; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.myteam .next b { font-size: 17px; font-weight: 500; }
.myteam .next span { font-size: 14px; color: rgba(255, 255, 255, 0.78); }
.crest, .mini { position: relative; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; overflow: hidden; flex: none; font-weight: 900; }
.crest { width: 60px; height: 60px; font-size: 16px; }
.crest.big { width: 60px; height: 60px; }
.crest.huge { width: 88px; height: 88px; font-size: 22px; }
.crest img { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); object-fit: contain; }
.crest:has(img.ok) > span, .mini:has(img.ok) > span { visibility: hidden; }
.mini { width: 30px; height: 30px; font-size: 9px; }
.mini img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); object-fit: contain; }
.sect { font-size: 13px; font-weight: 700; color: var(--t3); letter-spacing: 1px; text-transform: uppercase; margin: 14px 0 4px; }
.games { display: flex; flex-direction: column; gap: 8px; }
.game { display: grid; grid-template-columns: 150px 76px minmax(0, 1fr) 84px minmax(0, 1fr) 150px 64px; align-items: center; min-height: 68px; border-radius: 12px; background: var(--card); padding-left: 20px; cursor: pointer; transition: background 0.12s; }
.game:hover { background: #1b1b1b; }
.game.static { cursor: default; grid-template-columns: 120px 130px minmax(0, 1fr) 84px minmax(0, 1fr); padding-right: 20px; }
.game .lg { font-size: 13px; color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 10px; }
.game .st { font-weight: 700; font-size: 14px; }
.st.live { color: var(--live); }
.game .tm { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; min-width: 0; }
.game .tm.r { justify-content: flex-end; }
.tn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc { text-align: center; font-size: 20px; font-weight: 700; white-space: nowrap; }
.sc small { font-size: 12px; color: var(--t3); }
.sc.vs { color: var(--t3); font-size: 16px; }
.game .ch2 { font-size: 13px; color: var(--t3); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 14px 0 10px; }
.bell-cell { align-self: stretch; display: grid; place-items: center; border-left: 1px solid rgba(255, 255, 255, 0.08); color: var(--t2); border-radius: 0 12px 12px 0; }
@media (hover: hover) { button.bell-cell:hover { background: rgba(255, 255, 255, 0.07); color: #fff; } }
button.bell-cell:active { background: rgba(255, 255, 255, 0.07); }
.bell-cell.set { color: var(--orange); }
.bell-cell.set:hover { color: var(--orange); }

.team-head, .game-head { margin-bottom: 18px; }
.team-top { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.team-top h1 { font-size: 38px; font-weight: 800; }
.last5 { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.last5 small { color: var(--t3); font-size: 13px; }
.last5 > div { display: flex; gap: 6px; }
.res { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.res.V { background: #1f8f55; }
.res.E { background: #4a4a4a; }
.res.D { background: #c0392b; }
.gh-league { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--t2); font-size: 15px; }
.lg-logo { width: 24px; height: 24px; object-fit: contain; flex: none; }
.gh-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; margin: 26px 0 14px; }
.gh-team { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; text-align: center; }
.gh-team:hover span { text-decoration: underline; }
.gh-score { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 120px; }
.gh-goals { font-size: 48px; font-weight: 900; font-variant-numeric: tabular-nums; }
.gh-time { font-size: 22px; font-weight: 700; text-align: center; }
.game-head .row { margin-top: 18px; }
.tabs-bar { margin: 8px 0 18px; }
.table-box { margin-bottom: 24px; }
.table-box h3 { font-size: 16px; margin-bottom: 8px; }
.standings { width: 100%; border-collapse: collapse; font-size: 15px; }
.standings th { text-align: center; color: var(--t3); font-size: 13px; font-weight: 500; padding: 8px; }
.standings td { text-align: center; padding: 9px 8px; border-top: 1px solid var(--line); }
.standings .team-col { text-align: left; width: 100%; }
.standings .tm { display: flex; align-items: center; gap: 10px; min-width: 0; }
.standings .pts { font-weight: 700; }
.standings tr.me td { background: rgba(52, 199, 123, 0.14); }
.events { display: flex; flex-direction: column; gap: 6px; max-width: 760px; }
.event { display: grid; grid-template-columns: 52px 26px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--surface); }
.event .min { color: var(--t3); font-weight: 700; font-variant-numeric: tabular-nums; }
.ev-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ev-text small { color: var(--t3); font-size: 13px; }
.ev-ico { width: 14px; height: 18px; border-radius: 3px; justify-self: center; }
.ev-ico.yellow { background: #f5c518; }
.ev-ico.red { background: var(--live); }
.ev-ico.goal { width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 9px #111; }
.ev-ico.miss { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--live); }
.ev-ico.sub { width: 18px; height: 14px; background: linear-gradient(90deg, var(--green) 50%, var(--live) 50%); border-radius: 4px; }
.ev-ico.var { width: 22px; height: 14px; background: #555; border-radius: 3px; }
.lineups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.lineup h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin-bottom: 8px; }
.lineup h3 small { color: var(--t3); font-weight: 500; }
.lineup h4 { font-size: 13px; color: var(--t3); text-transform: uppercase; letter-spacing: 1px; margin: 16px 0 6px; }
.lineup .hint { margin-top: 12px; }
.player-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.player-row.sub { color: var(--t2); }
.player-row small { color: var(--t3); }
.shirt { width: 32px; text-align: center; font-weight: 700; color: var(--t2); font-variant-numeric: tabular-nums; flex: none; }
.squad { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.squad-group h3 { font-size: 15px; color: var(--t3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; max-height: 60dvh; overflow-y: auto; }
.team-grid > .hint, .team-grid > .loading-block { grid-column: 1 / -1; }
.team-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 10px; border-radius: 12px; background: var(--high); text-align: center; font-size: 14px; font-weight: 500; }
.team-tile:hover { background: #fff; color: #000; }

/* ---------- Pesquisar ---------- */

.search-results { margin-top: 8px; }
.result-section { margin-top: 28px; }
.result-section .row.scroll-x { align-items: flex-start; }
.chan-card { width: 190px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 12px; border-radius: 12px; background: var(--card); text-align: center; transition: background 0.12s; }
.chan-card:hover { background: #fff; color: #000; }
.chan-card:hover .pg { color: rgba(0, 0, 0, 0.6); }
.chan-card .nm { font-weight: 600; font-size: 15px; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chan-card .pg { font-size: 13px; color: var(--t3); width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 16px; }

/* ---------- Configurações ---------- */

.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; max-width: 1200px; }
.panel-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.panel-card h2 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.panel-card .row { margin-top: 8px; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.kv span { color: var(--t3); }
.kv b { font-weight: 500; text-align: right; word-break: break-word; }
.setting { display: flex; flex-direction: column; gap: 8px; color: var(--t2); font-size: 14px; }
.support { white-space: pre-wrap; color: var(--t2); line-height: 1.5; }

/* ---------- Janelas e avisos ---------- */

.modal-back { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.72); display: grid; place-items: center; padding: 16px; }
.modal { width: min(520px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: #141414; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6); }
.modal.wide { width: min(860px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 16px 8px 24px; }
.modal-head h2 { font-size: 20px; font-weight: 700; }
.modal-body { padding: 8px 24px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.modal-body .search-box { width: 100%; flex: none; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.message-body { white-space: pre-wrap; line-height: 1.6; font-size: 16px; }
.pick-list { display: flex; flex-direction: column; gap: 2px; max-height: 52dvh; overflow-y: auto; }
.pick { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; text-align: left; font-size: 15px; cursor: pointer; }
@media (hover: hover) { .pick:hover { background: #1f1f1f; } }
.pick.on { background: #fff; color: #000; }
.pick small { color: var(--t3); }
.pick .count { white-space: nowrap; }
.pick-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pick-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-sub { font-size: 13px; color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-sub:empty { display: none; }
/* Celular: nome em até 2 linhas (Série A e Série B não ficam iguais) e menos espaço em volta. */
@media (max-width: 599px) {
  .modal-body { padding: 6px 16px 18px; }
  .pick { gap: 10px; padding: 10px 6px; }
  .pick-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
  .pick-star { width: 34px; height: 34px; margin: -6px -4px; }
  .pick-star .icon { width: 20px; height: 20px; }
  .pick-open { padding: 0 6px 0 10px; }
}
.pick input[type='checkbox'] { width: 20px; height: 20px; accent-color: var(--green); flex: none; }
.pick.found { cursor: default; }
.pick-open { display: inline-flex; align-items: center; gap: 2px; height: 32px; padding: 0 8px 0 12px; margin: -6px 0; border-radius: 8px; background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 13px; font-weight: 600; flex: none; }
.pick-open:hover { background: rgba(255, 255, 255, 0.16); }
.pick-open .icon { width: 16px; height: 16px; }
a.gh-league { text-decoration: none; }
a.gh-league:hover { color: #fff; }
.league-logo-big { width: 88px; height: 88px; display: grid; place-items: center; flex: none; }
.league-logo-big img { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 899px) { .league-logo-big { width: 56px; height: 56px; } }
.day-sep { color: var(--t3); font-size: 13px; font-weight: 600; margin: 10px 2px 2px; }
.pick-star { width: 40px; height: 40px; margin: -8px -6px -8px 0; border-radius: 10px; display: grid; place-items: center; color: var(--t3); flex: none; }
.pick-star:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.pick-star.on { color: var(--orange); }
.pick-star.none { visibility: hidden; }
.pick-star .icon { width: 22px; height: 22px; }
.pick-note { color: var(--t3); font-size: 13px; line-height: 1.45; margin-top: -4px; }
.pick-head { color: var(--t3); font-size: 13px; font-weight: 700; padding: 14px 12px 4px; }
.pick-wait { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: var(--t2); font-size: 14px; }
.pick-none { padding: 10px 12px; color: var(--t2); font-size: 14px; }
.spinner.small { width: 18px; height: 18px; border-width: 2px; }
.toasts { position: fixed; z-index: 60; right: 20px; top: 20px; display: flex; flex-direction: column; gap: 10px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; background: #1c1c1c; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; padding: 10px 6px 10px 16px; box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55); animation: toast-in 0.2s ease-out; transition: opacity 0.2s, transform 0.2s; }
.toast.out { opacity: 0; transform: translateY(-6px); }
.toast.error { border-color: rgba(255, 107, 107, 0.5); }
.toast-text { flex: 1; font-size: 14px; line-height: 1.45; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Celular e janelas estreitas ---------- */

@media (max-width: 1280px) and (min-width: 900px) {
  .live-grid { grid-template-columns: 200px 340px minmax(0, 1fr); gap: 18px; }
  .game { grid-template-columns: 120px 64px minmax(0, 1fr) 76px minmax(0, 1fr) 120px 60px; }
}

@media (max-width: 899px) {
  :root { --rail: 0px; }
  #view { padding-left: 0; padding-bottom: calc(var(--tabs) + var(--safe-b)); }
  .rail { display: none; }
  .tabs { display: flex; position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; height: calc(var(--tabs) + var(--safe-b)); padding-bottom: var(--safe-b); background: #0a0a0a; box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6); border-top: 1px solid var(--line); justify-content: space-around; align-items: center; }
  .tabs .nav-item { width: auto; height: auto; border-radius: 10px; padding: 6px 8px; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--t3); background: none; }
  .tabs .nav-item.on { color: #fff; background: none; }
  .tabs .nav-label { font-size: 11px; font-weight: 500; }
  .page { padding: 18px 16px 32px; }
  .page-head { gap: 12px; margin-bottom: 16px; }
  .page-head h1 { font-size: 28px; }
  .page-head .search-box { width: 100%; }
  .page-head .grow { display: none; }

  .live-page { height: 100%; padding: 0; }
  .live-page .page-head { padding: 12px 16px 0; margin-bottom: 10px; }
  .live-page .page-head h1 { display: none; }
  .live-grid { display: flex; flex-direction: column; gap: 0; }
  .cats-col { display: none; }
  .watch { order: -1; overflow: visible; padding: 0; gap: 10px; flex: none; }
  .video-box { border-radius: 0; }
  .watch-text { padding: 0 16px; gap: 10px; }
  .watch-info h2 { font-size: 18px; }
  .watch-info .now { margin-top: 4px; font-size: 14px; }
  .watch-info .desc, .watch-info .bar, .epg-list { display: none; }
  .watch-actions .btn { height: 40px; padding: 0 14px; font-size: 14px; }
  .watch-actions .btn.white, .watch-actions .fav-btn { display: none; }
  .watch-actions:not(:has(.segmented)) { display: none; }
  .watch-title .fav-icon { display: grid; }
  .list-col { flex: 1; min-height: 0; }
  .live-chips { display: flex; gap: 8px; padding: 12px 16px 10px; }
  .live-chips .chip { height: 36px; font-size: 14px; padding: 0 14px; }
  .chans { padding: 0 12px; }
  .ch { height: 62px; padding: 0 12px; gap: 12px; }
  .ch .num { display: none; }
  .logo { width: 40px; height: 40px; font-size: 11px; }
  .ch .bar { display: none; }

  .pl-volume, .pl-vol .pl-volume { display: none; }
  .pl-btn:not(.pl-quality) { width: 36px; height: 36px; }
  .pl-time { font-size: 12px; }
  .pl-overlay { left: 12px; right: 12px; bottom: 80px; }

  .hero-inner { min-height: 340px; padding: 24px 16px 20px; }
  .hero-inner.details { min-height: 420px; }
  .hero-art { left: 0; }
  .hero-art::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.82) 38%, #000 100%); }
  .vod-page .hero-inner { min-height: 0; padding-top: 28px; }
  .vod-page .hero-content .syn { -webkit-line-clamp: 2; }
  .hero-content h1 { font-size: 32px; }
  .syn { font-size: 15px; -webkit-line-clamp: 3; }
  .hero-inner.details .syn.clamp { -webkit-line-clamp: 3; }
  .hero-content > .row .btn { height: 42px; padding: 0 16px; }
  .vod-body { padding: 4px 16px 32px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 18px 12px; }
  .poster .p { padding: 8px; }
  .p-name { font-size: 13px; }
  .poster-name { font-size: 13px; }
  .row .poster { width: 116px; }
  .wide-card { width: 220px; }
  .season-box { padding: 0 16px 32px; }
  .episode { grid-template-columns: 136px minmax(0, 1fr); gap: 12px; padding: 6px; }
  .ep-title { font-size: 15px; }
  .ep-plot { display: none; }

  .dates-row { flex-direction: column; align-items: stretch; }
  .dates-row .btn { align-self: stretch; width: 100%; }
  .myteam { padding: 14px 16px; gap: 14px; flex-wrap: wrap; }
  .myteam .next { margin-left: 0; text-align: left; width: 100%; order: 3; }
  .myteam > .icon { display: none; }
  .game { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr) 46px; grid-template-areas: 'lg lg st bell' 'home sc away bell'; padding: 10px 0 10px 12px; row-gap: 6px; }
  .game .lg { grid-area: lg; }
  .game .st { grid-area: st; text-align: right; padding-right: 10px; }
  .game .tm.r { grid-area: home; }
  .game .sc { grid-area: sc; font-size: 17px; }
  .game .tm:not(.r) { grid-area: away; }
  .game .tm { font-size: 13px; gap: 6px; }
  /* Nome do time nunca cortado: quebra em duas linhas. */
  .game .tn { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.2; }
  .game .tm.r .tn { text-align: right; }
  .game .mini { width: 24px; height: 24px; font-size: 8px; }
  .game .ch2 { display: none; }
  .game .bell-cell { grid-area: bell; margin: -10px 0; }
  .game.static { grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); grid-template-areas: 'lg lg st' 'home sc away'; padding-right: 12px; }
  .gh-goals { font-size: 36px; }
  .gh-team { font-size: 15px; }
  .crest.huge { width: 64px; height: 64px; }
  .team-top h1 { font-size: 26px; }
  .last5 { align-items: flex-start; }
  .standings .opt { display: none; }
  .standings { font-size: 14px; }

  .settings-grid { grid-template-columns: 1fr; }
  .toasts { left: 16px; right: 16px; top: 12px; width: auto; }
}

/* Entrada pelo código do app */
.code-input { font: 700 26px/1 var(--font) !important; letter-spacing: 0.35em; text-transform: uppercase; text-align: center; }
.code-input::placeholder { letter-spacing: 0.1em; font-weight: 500; font-size: 18px; color: var(--t3); }
.how { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--t2); font-size: 14px; line-height: 1.5; }
.how .icon { color: var(--t3); margin-top: 1px; }
.how b { color: #fff; font-weight: 500; }

/* Erro do vídeo na página https: convite para o modo compatível (http) */
.compat { max-width: 520px; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 14px; margin-top: 4px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.compat p { font-size: 14px; }

/* Detalhes técnicos na tela de erro (para foto de suporte) */
.form-error .tech { margin-top: 8px; font: 12px/1.45 ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace; color: var(--t3); word-break: break-word; }

/* ---------- Ajustes de botões ---------- */

.watch-actions { align-items: center; }
.pl-quality { min-width: 46px; flex: none; white-space: nowrap; }

/* ---------- Tela inicial ---------- */

.card.welcome { gap: 26px; padding: 40px 32px 32px; }
.card.welcome .brand { min-height: 72px; }
.card.welcome .brand-wise { height: 56px; }
.card.welcome .brand-logo { max-height: 96px; max-width: 280px; }
/* Entrar do tamanho do texto (não ocupa a largura toda), centralizado. */
.card.welcome .btn.enter { align-self: center; height: 42px; padding: 0 26px; border-radius: 999px; font-size: 15px; font-weight: 600; }
.card.welcome .btn.enter .icon { width: 18px; height: 18px; }
.btn.big { height: 58px; font-size: 18px; border-radius: 14px; }
.btn.big .icon { width: 24px; height: 24px; }
.hint.small { font-size: 13px; }

/* ---------- Link deste acesso (Configurações) ---------- */

.link-box { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--high); }
.link-box span { color: var(--t3); font-size: 13px; }
.link-box code { font-size: 13px; color: #fff; word-break: break-all; }
.link-box .btn { align-self: flex-start; }

/* ---------- Aviso do atalho na tela de início (celular) ---------- */

.install-tip .it-tabs { align-self: center; }
.it-wrap { display: flex; gap: 18px; align-items: center; }
.it-stage { flex: none; }
.it-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--t2); }
.it-steps b { color: #fff; }
.it-phone { position: relative; width: 132px; height: 250px; border-radius: 22px; border: 3px solid #3a3a3a; background: #0b0b0b; overflow: hidden; }
.it-notch { position: absolute; z-index: 3; top: 5px; left: 50%; width: 40px; height: 9px; margin-left: -20px; border-radius: 6px; background: #000; }
.it-screen { position: absolute; inset: 0; opacity: 0; animation: it-show 12s infinite; }
.it-s1 { animation-delay: 0s; }
.it-s2 { animation-delay: 3s; }
.it-s3 { animation-delay: 6s; }
.it-s4 { animation-delay: 9s; }
@keyframes it-show { 0% { opacity: 0; } 3% { opacity: 1; } 24% { opacity: 1; } 27% { opacity: 0; } 100% { opacity: 0; } }
.it-dots { position: absolute; z-index: 4; bottom: 6px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; }
.it-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); animation: it-dot 12s infinite; }
.it-d1 { animation-delay: 0s; }
.it-d2 { animation-delay: 3s; }
.it-d3 { animation-delay: 6s; }
.it-d4 { animation-delay: 9s; }
@keyframes it-dot { 0%, 24% { background: #fff; } 27%, 100% { background: rgba(255, 255, 255, 0.25); } }
.it-step { transition: color 0.2s; animation: it-step 12s infinite; }
.it-st1 { animation-delay: 0s; }
.it-st2 { animation-delay: 3s; }
.it-st3 { animation-delay: 6s; }
.it-st4 { animation-delay: 9s; }
@keyframes it-step { 0%, 24% { color: #fff; } 27%, 100% { color: var(--t3); } }
.it-page { position: absolute; inset: 18px 8px 34px; display: flex; flex-direction: column; gap: 6px; }
.it-hero { height: 52px; border-radius: 8px; background: linear-gradient(135deg, #3b2a1a, #7a4a14); display: grid; place-items: center; color: rgba(255, 255, 255, 0.85); }
.it-hero .icon { width: 18px; height: 18px; }
.it-line { height: 6px; border-radius: 3px; background: #2a2a2a; }
.it-line.w80 { width: 80%; }
.it-line.w60 { width: 60%; }
.it-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 4px; }
.it-grid i { aspect-ratio: 2 / 3; border-radius: 4px; background: #1f1f1f; }
.it-bar { position: absolute; z-index: 2; left: 6px; right: 6px; display: flex; align-items: center; gap: 4px; font-size: 8px; color: var(--t3); }
.it-bar.ios { bottom: 16px; }
.it-bar.android { top: 16px; }
.it-url { flex: 1; height: 18px; border-radius: 9px; background: #222; display: grid; place-items: center; }
.it-btn { width: 18px; height: 18px; border-radius: 50%; background: #222; display: grid; place-items: center; font-size: 9px; color: #fff; }
.it-btn .icon { width: 10px; height: 10px; }
.it-sheet { position: absolute; z-index: 2; left: 6px; right: 6px; bottom: 14px; border-radius: 10px; background: #1f1f1f; padding: 4px; display: flex; flex-direction: column; gap: 2px; animation: it-up 0.4s ease-out both; }
.it-menu { position: absolute; z-index: 2; top: 36px; right: 6px; width: 92px; border-radius: 6px; background: #1f1f1f; padding: 3px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6); }
.it-dialog { position: absolute; z-index: 2; left: 10px; right: 10px; top: 80px; border-radius: 10px; background: #1f1f1f; padding: 8px; display: flex; flex-direction: column; gap: 6px; font-size: 8px; }
.it-field { border-bottom: 1px solid #555; padding: 3px 0; color: #fff; }
.it-actions { display: flex; justify-content: flex-end; gap: 8px; color: var(--t3); }
.it-foot { justify-content: space-between; align-items: center; }
.it-off { display: inline-flex; align-items: center; gap: 10px; color: var(--t2); font-size: 14px; cursor: pointer; }
.it-off input { width: 20px; height: 20px; accent-color: var(--green); flex: none; margin: 0; }
.it-item { padding: 5px 6px; border-radius: 5px; font-size: 8px; color: var(--t2); display: flex; align-items: center; gap: 4px; }
.it-share { width: 8px; height: 9px; border: 1.5px solid currentColor; border-top: 0; position: relative; }
.it-share::before { content: ''; position: absolute; left: 50%; top: -5px; width: 1.5px; height: 8px; margin-left: -0.75px; background: currentColor; }
.it-plus { width: 10px; height: 10px; border: 1.5px solid currentColor; border-radius: 3px; display: grid; place-items: center; font-size: 8px; line-height: 1; }
.it-target { position: relative; color: #fff; background: rgba(247, 164, 27, 0.25); outline: 1.5px solid var(--orange); animation: it-pulse 1s ease-in-out infinite; }
@keyframes it-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(247, 164, 27, 0.6); } 50% { box-shadow: 0 0 0 5px rgba(247, 164, 27, 0); } }
@keyframes it-up { from { transform: translateY(30px); opacity: 0; } }
.it-home { position: absolute; inset: 22px 10px 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-content: start; background: radial-gradient(circle at 30% 20%, #1b2a44, #0b0b0b 70%); padding: 6px; border-radius: 10px; }
.it-app { aspect-ratio: 1; border-radius: 6px; background: #2a2a2a; position: relative; overflow: hidden; }
.it-wise { background: #000; animation: it-pop 3s ease-out infinite; animation-delay: 9s; box-shadow: 0 0 0 1.5px var(--orange); }
.it-wise img { width: 100%; height: 100%; object-fit: cover; }
.it-wise-name { grid-column: 4; margin-top: -6px; font-size: 6px; text-align: center; color: #fff; }
@keyframes it-pop { 0% { transform: scale(0.2); } 20% { transform: scale(1.15); } 30%, 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .it-screen, .it-dot, .it-step, .it-target, .it-wise { animation: none; }
  .it-s4 { opacity: 1; }
}

@media (max-width: 899px) {
  /* Botões em grade: o principal ocupa a linha inteira; os outros dividem a de baixo, com a mesma largura. */
  .hero-content > .row, .team-head > .row, .game-head .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-content > .row > .btn, .team-head > .row > .btn, .game-head .row > .btn {
    width: 100%; height: auto; min-height: 46px; padding: 8px 10px; font-size: 14px; white-space: normal; line-height: 1.2; text-align: center;
  }
  .hero-content > .row > .btn.white:first-child, .game-head .row > .btn.white:first-child { grid-column: 1 / -1; font-size: 16px; }
  .game-head .row > .hint { grid-column: 1 / -1; text-align: center; }
  .team-top { gap: 16px; }
  /* TV: "Favoritar" e as qualidades na mesma altura, lado a lado. */
  .watch-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
  .watch-actions .segmented { display: flex; flex-wrap: nowrap; }
  .watch-actions .segmented button { flex: 1; height: 32px; padding: 0 6px; }
  .pl-quality { height: 28px; min-width: 44px; padding: 0 8px; }
  .it-wrap { flex-direction: column; }
  .card.welcome { padding: 32px 22px 26px; }
}
