/* Maratona+ — tema "tudo em um" (filmes, séries, novelas, TV e esportes) */
:root {
  --bg: #06080c;
  --bg-2: #0c1016;
  --surface: #121821;
  --surface-2: #1a212c;
  --line: rgba(255, 255, 255, .08);
  --text: #f3f5f8;
  --muted: #8f99a8;
  --accent: #2bd46a;
  --accent-ink: #04140a;
  --gold: #f8d63a;
  --live: #ff3b3b;
  --radius: 12px;
  --gutter: clamp(16px, 4vw, 56px);
  --top-h: 64px;
  --tab-h: 0px;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; padding-bottom: var(--tab-h); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
img { display: block; }
.hidden { display: none !important; }

/* ---------- Topo ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--top-h);
  display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter);
  background: linear-gradient(180deg, rgba(6, 8, 12, .92) 0%, rgba(6, 8, 12, 0) 100%);
  transition: background .25s;
}
.topbar.solid { background: rgba(6, 8, 12, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; }
.brand span { font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.brand b { color: var(--accent); font-weight: 800; }
.mainnav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #c9d0da;
  white-space: nowrap; transition: color .15s, background .15s;
}
.mainnav a:hover { color: #fff; }
.mainnav a.on { color: var(--accent-ink); background: var(--accent); }
.top-actions { display: flex; gap: 6px; align-items: center; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  transition: background .15s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.icon-btn svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Barra inferior (celular) ---------- */
.tabbar { display: none; }
@media (max-width: 760px) {
  :root { --top-h: 104px; --tab-h: 64px; }
  .topbar { flex-wrap: wrap; height: auto; gap: 8px 12px; padding-top: 10px; padding-bottom: 8px; background: rgba(6, 8, 12, .96); }
  .brand img { width: 34px; height: 34px; }
  .brand span { font-size: 19px; }
  .top-actions { margin-left: auto; }
  .mainnav { order: 3; flex-basis: 100%; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .mainnav a { padding: 6px 12px; font-size: 13px; background: var(--surface); }
  .tabbar {
    position: fixed; inset: auto 0 0 0; z-index: 40; height: var(--tab-h);
    display: grid; grid-template-columns: repeat(5, 1fr);
    background: rgba(10, 13, 18, .97); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); }
  .tabbar a svg { width: 22px; height: 22px; fill: currentColor; }
  .tabbar a.on { color: var(--accent); }
}

/* ---------- Conteúdo ---------- */
#view { min-height: 70vh; }
.page { padding: calc(var(--top-h) + 20px) var(--gutter) 40px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- Destaque (hero) ---------- */
.hero { position: relative; height: min(78vh, 720px); min-height: 460px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; pointer-events: none; }
.hero-slide.on { opacity: 1; pointer-events: auto; }
.hero-slide .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 8, 12, .96) 0%, rgba(6, 8, 12, .7) 38%, rgba(6, 8, 12, 0) 70%),
    linear-gradient(0deg, var(--bg) 0%, rgba(6, 8, 12, 0) 35%);
}
.hero-info { position: absolute; z-index: 2; left: var(--gutter); bottom: 15%; max-width: min(560px, 88vw); }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.hero-info h2 { margin: 0 0 12px; font-size: clamp(30px, 5vw, 58px); line-height: 1.02; font-weight: 800; letter-spacing: -.03em; text-shadow: 0 2px 30px rgba(0, 0, 0, .5); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; color: #d3d9e2; margin-bottom: 14px; }
.hero-info p { margin: 0 0 22px; color: #d6dce4; line-height: 1.55; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-dots { position: absolute; z-index: 3; right: var(--gutter); bottom: 15%; display: flex; gap: 6px; }
.hero-dots button { width: 22px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .3); transition: background .2s, width .2s; }
.hero-dots button.on { background: var(--accent); width: 36px; }
@media (max-width: 760px) {
  .hero { height: 72vh; min-height: 520px; }
  .hero-info { bottom: 90px; }
  .hero-dots { left: var(--gutter); right: auto; bottom: 66px; }
  .hero-slide .bg { object-position: 65% 20%; }
}
.score { color: var(--gold); font-weight: 700; }
.pill { padding: 3px 9px; border-radius: 6px; background: rgba(255, 255, 255, .12); font-size: 12px; font-weight: 700; }
.pill-live { background: var(--live); color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.pill-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: 15px; transition: transform .12s, filter .15s, background .15s; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn:active { transform: scale(.97); }
.btn-play { background: var(--accent); color: var(--accent-ink); }
.btn-play:hover { filter: brightness(1.08); }
.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .22); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Fileiras ---------- */
.rows { position: relative; z-index: 2; margin-top: -70px; padding-bottom: 30px; }
.rows.flat { margin-top: 0; padding-top: calc(var(--top-h) + 10px); }
.row { margin: 0 0 30px; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 var(--gutter); margin-bottom: 12px; gap: 12px; }
.row-head h3 { margin: 0; font-size: clamp(17px, 2vw, 21px); font-weight: 700; letter-spacing: -.01em; }
.row-head a { font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.row-wrap { position: relative; }
.row-track {
  display: grid; grid-auto-flow: column; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px var(--gutter) 10px; scroll-padding: 0 var(--gutter); scrollbar-width: none;
}
.row-track::-webkit-scrollbar { display: none; }
.row-track > * { scroll-snap-align: start; }
.row-track.posters { grid-auto-columns: clamp(118px, 13vw, 180px); }
.row-track.wide { grid-auto-columns: clamp(250px, 26vw, 380px); }
.row-track.channels { grid-auto-columns: clamp(130px, 12vw, 170px); }
.row-arrow {
  position: absolute; top: 4px; bottom: 10px; width: var(--gutter); min-width: 40px; z-index: 3;
  display: grid; place-items: center; font-size: 34px; color: #fff; opacity: 0; transition: opacity .2s;
  background: linear-gradient(90deg, rgba(6, 8, 12, .85), rgba(6, 8, 12, 0));
}
.row-arrow.r { right: 0; background: linear-gradient(270deg, rgba(6, 8, 12, .85), rgba(6, 8, 12, 0)); }
.row-arrow.l { left: 0; }
.row-wrap:hover .row-arrow { opacity: 1; }
@media (hover: none) { .row-arrow { display: none; } }

/* ---------- Cards ---------- */
.card { position: relative; display: block; border-radius: var(--radius); outline: none; }
.card .thumb {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface);
  box-shadow: 0 0 0 1px var(--line); transition: transform .2s, box-shadow .2s;
}
.card:hover .thumb, .card:focus-visible .thumb { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--accent), 0 14px 30px rgba(0, 0, 0, .5); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.poster .thumb { aspect-ratio: 2 / 3; }
.wide .thumb, .game .thumb, .cont .thumb { aspect-ratio: 16 / 9; }
.card-title { margin: 8px 2px 0; font-size: 13px; font-weight: 600; line-height: 1.3; color: #dfe4ea; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-sub { margin: 2px 2px 0; font-size: 12px; color: var(--muted); }
.badge-rating { position: absolute; top: 8px; left: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, .72); font-size: 11px; font-weight: 800; color: var(--gold); }
.badge-type { position: absolute; top: 8px; right: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, .72); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center; font-weight: 800; font-size: 15px; line-height: 1.2; color: rgba(255, 255, 255, .85); background: linear-gradient(150deg, #1d2633, #0e131a); }

.channel .thumb { aspect-ratio: 16 / 10; background: radial-gradient(circle at 50% 35%, #1e2733, #0f141b); display: grid; place-items: center; }
.channel .thumb img { width: 72%; height: 64%; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }
.channel .live-dot { position: absolute; top: 8px; left: 8px; }

.game .thumb { background: #0b0e13; }
.game .status { position: absolute; top: 10px; left: 10px; }
.game .gen { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-around; padding: 0 10%; }
.game .gen img { width: 30%; height: 62%; object-fit: contain; }
.game .gen .vs { font-weight: 800; font-size: 22px; color: var(--gold); }
.status-time { background: rgba(0, 0, 0, .75); padding: 4px 9px; border-radius: 6px; font-size: 12px; font-weight: 800; }

.cont .progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .2); }
.cont .progress i { display: block; height: 100%; background: var(--accent); }
.cont .play-ico { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .2s; background: rgba(0, 0, 0, .35); }
.cont:hover .play-ico { opacity: 1; }
.cont .play-ico svg { width: 46px; height: 46px; fill: #fff; }

/* ---------- Grade (páginas de seção) ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 14px; margin-bottom: 8px; }
.chips::-webkit-scrollbar { display: none; }
.chip { padding: 8px 15px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: #cdd4dd; white-space: nowrap; transition: background .15s, color .15s; }
.chip:hover { background: var(--surface-2); color: #fff; }
.chip.on { background: var(--text); color: #0a0d12; border-color: var(--text); }
.chip small { opacity: .6; font-weight: 500; margin-left: 4px; }
.group-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 6px 0 8px; }
.grid { display: grid; gap: 22px 14px; }
.grid.posters { grid-template-columns: repeat(auto-fill, minmax(clamp(110px, 14vw, 170px), 1fr)); }
.grid.channels { grid-template-columns: repeat(auto-fill, minmax(clamp(130px, 14vw, 180px), 1fr)); }
.grid.games { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.empty { padding: 50px 10px; text-align: center; color: var(--muted); }
.loader { display: flex; justify-content: center; padding: 30px; }
.loader::after { content: ''; width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--surface-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skel { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Página de título (filme/série) ---------- */
.title-hero { position: relative; min-height: min(80vh, 680px); display: flex; align-items: flex-end; }
.title-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.title-hero .bg.blur { filter: blur(30px) saturate(1.3); transform: scale(1.2); opacity: .55; }
.title-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 8, 12, .97) 0%, rgba(6, 8, 12, .75) 45%, rgba(6, 8, 12, .2) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(6, 8, 12, 0) 40%); }
.title-body { position: relative; z-index: 2; display: flex; gap: 32px; align-items: flex-end; padding: calc(var(--top-h) + 30px) var(--gutter) 40px; width: 100%; }
.title-poster { width: clamp(130px, 18vw, 240px); flex-shrink: 0; aspect-ratio: 2/3; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); position: relative; background: var(--surface); }
.title-poster img { width: 100%; height: 100%; object-fit: cover; }
.title-info { max-width: 720px; }
.title-info h1 { margin: 0 0 10px; font-size: clamp(28px, 4.5vw, 52px); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
.title-info p.plot { color: #d2d8e0; line-height: 1.6; margin: 0 0 22px; font-size: 15px; }
.credits { font-size: 13px; color: var(--muted); line-height: 1.7; margin-top: 18px; }
.credits b { color: #c7ced8; font-weight: 600; }
@media (max-width: 760px) {
  .title-body { flex-direction: column; align-items: flex-start; gap: 18px; }
  .title-poster { width: 120px; }
}

.seasons { padding: 0 var(--gutter); margin-bottom: 34px; }
.seasons h3 { font-size: 21px; margin: 0 0 12px; }
.ep-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.ep { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-align: left; transition: background .15s, border-color .15s; }
.ep:hover { background: var(--surface-2); border-color: rgba(43, 212, 106, .5); }
.ep .ep-thumb { position: relative; width: 130px; flex-shrink: 0; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: #0d1117; display: grid; place-items: center; }
.ep .ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep .ep-thumb .n { font-weight: 800; font-size: 22px; color: rgba(255, 255, 255, .3); }
.ep .ep-thumb .progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .2); }
.ep .ep-thumb .progress i { display: block; height: 100%; background: var(--accent); }
.ep h4 { margin: 0 0 4px; font-size: 14px; font-weight: 700; }
.ep p { margin: 0; font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* status de episódios: assistido / em andamento / atual */
.resume-line { margin: -8px 0 18px; padding: 10px 14px; border-radius: 10px; background: rgba(43, 212, 106, .12); border: 1px solid rgba(43, 212, 106, .3); color: #dff7e8; font-size: 14px; line-height: 1.6; display: inline-block; }
.resume-line b { color: #fff; }
.seasons-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.seasons-head h3 { margin: 0; }
.seasons-head span { color: var(--muted); font-size: 13px; }
.ep { position: relative; cursor: pointer; }
.ep .ep-text { flex: 1; min-width: 0; padding-right: 34px; }
.ep-tag { display: inline-block; margin: 0 0 4px; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; background: rgba(255, 255, 255, .08); color: #c9d0da; }
.ep-tag.partial { background: rgba(248, 214, 58, .15); color: var(--gold); }
.ep-tag.seen { background: rgba(43, 212, 106, .14); color: var(--accent); }
.ep-tag.now { background: var(--accent); color: var(--accent-ink); }
.ep.seen .ep-thumb img, .ep.seen .ep-thumb .n { opacity: .45; }
.ep.seen h4 { color: #aeb6c2; }
.ep.current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.seen-mark { position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; font-weight: 800; color: #fff; background: rgba(43, 212, 106, .35); }
.ep-check { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); display: grid; place-items: center; opacity: .55; transition: opacity .15s, background .15s; }
.ep-check svg { width: 16px; height: 16px; fill: currentColor; }
.ep-check:hover { opacity: 1; }
.ep-check.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); opacity: 1; }
.ep.compact { padding: 8px; gap: 10px; background: transparent; border-color: transparent; }
.ep.compact:hover { background: var(--surface); }
.ep.compact.current { background: var(--surface-2); border-color: var(--accent); }
.ep.compact .ep-thumb { width: 96px; }
.ep.compact h4 { font-size: 13px; }
.ep.compact .ep-check { top: 50%; transform: translateY(-50%); width: 24px; height: 24px; }
.side-eps { display: grid; gap: 4px; }
#player .p-side .ep h4 { margin: 0 0 4px; font-size: 13px; color: #e8ecf1; text-transform: none; letter-spacing: 0; }
#player .p-side .chips { padding-bottom: 8px; }
#player .p-side .chip { padding: 6px 11px; font-size: 12px; }

/* próximo episódio automático */
.p-next { position: absolute; z-index: 4; right: 24px; bottom: 70px; width: min(440px, calc(100% - 32px)); display: flex; gap: 14px; padding: 14px; border-radius: 14px; background: rgba(12, 16, 22, .96); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .6); animation: slideup .25s ease-out; }
@keyframes slideup { from { transform: translateY(20px); opacity: 0; } }
.p-next-thumb { position: relative; width: 120px; flex-shrink: 0; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: #1a212c; display: grid; place-items: center; font-weight: 800; font-size: 22px; color: rgba(255, 255, 255, .35); }
.p-next-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-next-body { min-width: 0; }
.p-next-body small { color: var(--muted); font-size: 12px; }
.p-next-body small b { color: var(--accent); }
.p-next-body h4 { margin: 4px 0 10px; font-size: 15px; }
.p-next .btn { padding: 8px 14px; font-size: 13px; }
@media (max-width: 600px) { .p-next { right: 12px; bottom: 12px; } .p-next-thumb { display: none; } }

/* ---------- Busca ---------- */
.search-box { position: relative; margin-bottom: 22px; }
.search-box input { width: 100%; padding: 16px 18px 16px 52px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 17px; outline: none; transition: border-color .15s; }
.search-box input:focus { border-color: var(--accent); }
.search-box svg { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; fill: var(--muted); }
.search-section { margin-bottom: 30px; }
.search-section h3 { font-size: 18px; margin: 0 0 12px; }

/* ---------- Player ---------- */
#player { position: fixed; inset: 0; z-index: 100; background: #000; display: flex; flex-direction: column; }
#player .p-top { position: absolute; inset: 0 0 auto 0; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: linear-gradient(180deg, rgba(0, 0, 0, .85), rgba(0, 0, 0, 0)); transition: opacity .3s; }
#player .p-top h2 { margin: 0; font-size: 17px; font-weight: 700; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#player .p-viewers { font-size: 13px; color: #cfd6df; white-space: nowrap; }
#player .p-stage { position: relative; flex: 1; display: flex; min-height: 0; }
#player .p-screen { position: relative; flex: 1; min-width: 0; min-height: 0; display: flex; }
#player video { width: 100%; height: 100%; min-width: 0; background: #000; object-fit: contain; }
#player .p-poster { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: #000; padding: 20px; text-align: center; }
#player .p-poster img { max-width: min(900px, 94vw); max-height: 60vh; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .7); }
#player .p-poster h3 { margin: 0; font-size: 22px; }
#player .p-poster p { margin: 0; color: var(--muted); }
#player .p-msg { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 90vw; padding: 18px 22px; border-radius: 14px; background: rgba(15, 19, 26, .95); border: 1px solid var(--line); text-align: center; }
#player .p-msg p { margin: 0 0 14px; color: #d5dbe3; }
#player .p-bottom { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 18px; background: #07090c; border-top: 1px solid var(--line); }
#player .p-bottom .lbl { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-right: 4px; }
.src-btn { padding: 8px 14px; border-radius: 8px; background: var(--surface-2); font-size: 13px; font-weight: 700; }
.src-btn.on { background: var(--accent); color: var(--accent-ink); }
#player .p-side { width: 300px; flex-shrink: 0; overflow-y: auto; background: #07090c; border-left: 1px solid var(--line); padding: 12px; }
#player .p-side h4 { margin: 4px 4px 10px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.side-item { display: flex; gap: 10px; align-items: center; width: 100%; padding: 8px; border-radius: 10px; text-align: left; font-size: 13px; font-weight: 600; }
.side-item:hover { background: var(--surface); }
.side-item.on { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }
.side-item img, .side-item .ph { width: 54px; height: 34px; object-fit: contain; border-radius: 6px; background: #121821; flex-shrink: 0; }
@media (max-width: 900px) {
  #player .p-stage { flex-direction: column; }
  #player .p-screen { flex: 0 0 auto; aspect-ratio: 16/9; }
  /* jogo que ainda não começou: a capa ocupa o lugar do vídeo */
  #player .p-screen:has(> .p-poster:not(.hidden)) { aspect-ratio: auto; }
  #player .p-screen:has(> .p-poster:not(.hidden)) video { display: none; }
  #player .p-poster { position: relative; inset: auto; gap: 10px; padding: 16px; width: 100%; }
  #player .p-poster img { max-height: 32vh; }
  #player .p-side { width: auto; flex: 1; border-left: 0; border-top: 1px solid var(--line); }
  #player .p-top { position: static; background: #07090c; }
}

footer.site { padding: 30px var(--gutter) calc(30px + var(--tab-h)); color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
footer.site a { color: #b8c0cb; }
footer.site a:hover { color: #fff; }

.toast { position: fixed; z-index: 200; left: 50%; bottom: calc(24px + var(--tab-h)); transform: translateX(-50%) translateY(20px); opacity: 0; padding: 12px 18px; border-radius: 10px; background: #f3f5f8; color: #0a0d12; font-weight: 700; font-size: 14px; transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
