﻿:root {
    --accent: #e10613;
    --accent-forte: #ff2a36;
    --accent-texto: #ffffff;
    --accent-suave: rgba(225, 6, 19, 0.14);
    --accent-borda: rgba(225, 6, 19, 0.45);
    --bg: #000000;
    --card: rgba(0, 0, 0, 0.45);
    --line: rgba(255, 255, 255, 0.1);
    --text: #f5f5f5;
    --muted: #a3a3a3;
    --faint: #737373;
    --green: #3ee06a;
    --font: "Manrope", sans-serif;
    --display: "Barlow Condensed", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
}

button, input { font-family: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.escondido { display: none !important; }

/* ---------- Tela inicial ---------- */

.inicio {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background:
        radial-gradient(900px 520px at 85% 15%, var(--accent-suave), transparent 60%),
        radial-gradient(700px 480px at 5% 90%, var(--accent-suave), transparent 60%),
        #000000;
}

.inicio::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(90deg, transparent 0 39px, rgba(255, 255, 255, 0.035) 39px 40px);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
}

.nav {
    position: relative;
    z-index: 2;
    height: 76px;
    padding: 0 clamp(18px, 4vw, 56px);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    background: rgba(0, 0, 0, 0.85);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 var(--accent-suave);
}

.nav-logo { justify-self: start; }

.nav-logo img {
    display: block;
    height: 54px;
    width: auto;
}

.nav-links { display: flex; gap: 28px; }

.nav-links a {
    padding: 6px 0;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--text); }
.nav-links a.ativo { color: var(--accent-forte); border-bottom-color: var(--accent); }

.nav-acoes { display: flex; justify-content: flex-end; gap: 10px; }

.btn-contorno,
.btn-cheio {
    height: 40px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-contorno { border: 1px solid rgba(255, 255, 255, 0.28); }
.btn-contorno:hover { border-color: var(--text); }
.btn-cheio { background: var(--accent); color: var(--accent-texto); }
.btn-cheio:hover { background: var(--accent-forte); }

.hero-area {
    position: relative;
    z-index: 1;
    flex: 1;
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 32px clamp(18px, 4vw, 56px);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 420px);
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
}

.sobretitulo {
    color: var(--faint);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sobretitulo strong { color: var(--text); }

.hero h1 {
    margin-top: 18px;
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2.6rem, 4.4vw, 4rem);
    line-height: 0.98;
    text-transform: uppercase;
}

.hero h1 em,
.painel-titulo em {
    font-style: normal;
    color: var(--accent-forte);
}

.hero-texto {
    margin-top: 20px;
    max-width: 520px;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.6;
}

.vantagens {
    list-style: none;
    margin-top: 28px;
    max-width: 540px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vantagens li {
    display: flex;
    gap: 12px;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.5;
}

.vantagens strong { color: var(--text); font-weight: 700; }

.vantagens svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    fill: none;
    stroke: var(--accent-forte);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.painel-wrap { width: 100%; }

.aviso {
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 186, 92, 0.35);
    background: rgba(255, 186, 92, 0.08);
    color: #ffd7a1;
    font-size: 0.86rem;
    line-height: 1.45;
}

.painel {
    display: flex;
    flex-direction: column;
    padding: 28px;
    border-radius: 14px;
    background: var(--card);
    border: 1px solid var(--accent-borda);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 0 40px var(--accent-suave), 0 30px 80px rgba(0, 0, 0, 0.5);
}

.painel-titulo {
    font-family: var(--display);
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.painel-sub {
    margin: 8px 0 22px;
    color: var(--muted);
    font-size: 0.86rem;
}

.convite {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--accent-suave);
    border: 1px solid var(--accent-borda);
}

.selo-convite {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-forte);
}

.convite h2 {
    margin: 6px 0 4px;
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
}

.convite p { color: var(--muted); font-size: 0.88rem; }

.codigo-convite {
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.45);
    color: white;
    font-family: var(--display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.painel label,
.sidebar-cabeca h2,
.bloco-codigo .rotulo {
    display: block;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.painel label { margin-bottom: 8px; }

.campo-nome {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 16px;
}

.campo-nome-input { flex: 1; min-width: 0; }

#avatar-nome,
.avatar {
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    font-weight: 800;
    background: #000000;
    color: white;
}

#avatar-nome {
    position: relative;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 0;
    border: 1px solid var(--line);
    box-shadow: 0 0 0 3px var(--accent-suave);
    font-family: inherit;
    font-size: 0.95rem;
    overflow: visible;
    transition: box-shadow 0.15s ease;
}

#avatar-nome img { border-radius: 50%; }

#avatar-nome:hover,
#avatar-nome:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent);
}

#avatar-nome::after {
    content: "+";
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-texto);
    font-size: 0.75rem;
    line-height: 1;
}

.btn-arquivo { width: 100%; height: 40px; margin-bottom: 8px; }
.editor-foto .editor-ou { font-size: 0.74rem; color: var(--faint); }

#avatar-nome img,
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.5);
    color: var(--text);
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input::placeholder { color: var(--faint); }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-suave); }

#codigo-sala {
    letter-spacing: 0.14em;
    font-weight: 700;
    text-transform: uppercase;
}

.btn {
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 700;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.btn:disabled { opacity: 0.55; cursor: wait; }

.btn-primario {
    width: 100%;
    height: 44px;
    padding: 0 18px;
    background: var(--accent);
    color: var(--accent-texto);
    font-size: 0.88rem;
}

.btn-primario:hover { background: var(--accent-forte); }

.btn-secundario {
    height: 44px;
    padding: 0 18px;
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.28);
    font-size: 0.88rem;
    white-space: nowrap;
}

.btn-secundario:hover { border-color: white; }

.divisor {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0;
    color: var(--faint);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.divisor::before,
.divisor::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.campo-codigo { display: flex; gap: 8px; }
.campo-codigo input { width: auto; flex: 1; min-width: 0; }

.erro {
    min-height: 1.2em;
    margin-top: 12px;
    color: #ff8d95;
    font-size: 0.86rem;
}

.modo-convite #btn-criar {
    order: 2;
    margin-top: 14px;
    background: transparent;
    color: var(--muted);
    border-color: var(--line);
}

.modo-convite .divisor { display: none; }
.modo-convite .campo-codigo .btn-secundario { background: var(--accent); border-color: var(--accent); }

.pagina-info {
    position: relative;
    z-index: 1;
    flex: 1;
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 48px clamp(18px, 4vw, 32px);
}

.pagina-info h1 {
    margin: 10px 0 28px;
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2.2rem, 3.6vw, 3rem);
    line-height: 1;
    text-transform: uppercase;
}

.pagina-info h1 em { font-style: normal; color: var(--accent-forte); }

.passos,
.itens-privacidade {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.passos li,
.itens-privacidade li {
    border-radius: 10px;
    border: 1px solid var(--accent-borda);
    background: rgba(0, 0, 0, 0.45);
}

.passos li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
}

.passo-num {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--accent-forte);
    color: var(--accent-forte);
    font-size: 0.85rem;
    font-weight: 800;
}

.passos h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--display);
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
}

.passos h3 svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: var(--accent-forte);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.passos p { margin-top: 6px; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }

.itens-privacidade li {
    position: relative;
    padding: 14px 18px 14px 34px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.itens-privacidade li::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 21px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-forte);
}

.rodape {
    position: relative;
    z-index: 1;
    padding: 14px;
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--line);
}

.rodape a {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.rodape a:hover { color: var(--text); }

/* ---------- Sala ---------- */

.sala {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #000000;
}

.topo {
    min-height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.92);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 var(--accent-suave);
}

.topo-esquerda,
.topo-direita { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.logo-topo { height: 46px; width: auto; display: block; }

.bloco-codigo { display: flex; flex-direction: column; line-height: 1; margin-right: 6px; }

.bloco-codigo strong {
    margin-top: 3px;
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.btn-fantasma,
.btn-sair {
    height: 36px;
    padding: 0 14px;
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

.btn-fantasma:hover { border-color: rgba(255, 255, 255, 0.5); }
.btn-sair { color: var(--accent-forte); border-color: var(--accent-borda); }
.btn-sair:hover { background: var(--accent-suave); }

.status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.status.offline { color: #ff8d95; }

.bolinha {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(62, 224, 106, 0.14);
}

.status.offline .bolinha { background: var(--accent); box-shadow: none; }

.conteudo-sala { flex: 1; min-height: 0; display: flex; }

.sidebar {
    width: 330px;
    padding: 18px;
    background: #000000;
    border-right: 1px solid var(--line);
    overflow: auto;
}

.caixa-convite {
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 12px;
    background: var(--accent-suave);
    border: 1px solid var(--accent-borda);
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.link-curto {
    display: block;
    margin-top: 8px;
    color: var(--text);
    font-size: 0.76rem;
    word-break: break-all;
    text-decoration: none;
}

.sidebar-cabeca {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.sidebar-cabeca span {
    min-width: 26px;
    height: 24px;
    padding: 0 8px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-texto);
    font-size: 0.78rem;
    font-weight: 800;
}

#lista-participantes { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.pessoa {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
}

.pessoa.transmitindo { border-color: var(--accent-borda); box-shadow: 0 0 20px var(--accent-suave); }

.indice {
    color: var(--faint);
    font-family: var(--display);
    font-size: 0.95rem;
    font-weight: 700;
    min-width: 22px;
}

.avatar { width: 34px; height: 34px; flex: 0 0 34px; font-size: 0.85rem; }

.pessoa-info { min-width: 0; flex: 1; }

.pessoa-nome {
    display: block;
    font-weight: 700;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pessoa-nome.nome-clicavel {
    cursor: pointer;
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-align: left;
    padding: 0;
    width: 100%;
}

.pessoa-nome.nome-clicavel:hover { color: var(--accent-forte); }
.pessoa-meta { color: var(--faint); font-size: 0.74rem; }

.editor-foto {
    margin-top: 12px;
    padding: 14px;
    border-radius: 12px;
    background: #000000;
    border: 1px solid var(--accent-borda);
}

.editor-foto p { margin-bottom: 8px; color: var(--muted); font-size: 0.82rem; }
.editor-foto input { height: 40px; margin-bottom: 10px; }
.editor-botoes { display: flex; gap: 8px; }
.editor-botoes .btn { width: auto; height: 38px; flex: 1; }

.btn-assistir {
    border: 0;
    border-radius: 999px;
    padding: 6px 12px;
    background: var(--accent);
    color: var(--accent-texto);
    font-size: 0.74rem;
    font-weight: 800;
}

.btn-assistir.ativo { background: var(--green); color: #062014; }

.palco {
    flex: 1;
    min-width: 0;
    position: relative;
    padding: 18px 18px 96px;
}

#video-container {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    border: 1px solid var(--line);
    background:
        radial-gradient(600px 260px at 50% 0%, var(--accent-suave), transparent 65%),
        #000000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#video-container video { width: 100%; height: 100%; object-fit: contain; background: black; }

.vazio { text-align: center; padding: 24px; max-width: 400px; }

.logo-vazio {
    height: 96px;
    width: auto;
    margin: 0 auto 16px;
    display: block;
}

.vazio h2 {
    font-family: var(--display);
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
}

.vazio p { margin-top: 8px; color: var(--muted); font-size: 0.94rem; }

.marca-dagua {
    position: absolute;
    right: 32px;
    bottom: 112px;
    height: 64px;
    width: auto;
    z-index: 4;
    pointer-events: none;
}

#palco:fullscreen { background: #000000; padding: 0; }
#palco:fullscreen #video-container { height: 100%; border: 0; border-radius: 0; }
#palco:fullscreen .marca-dagua { right: 24px; bottom: 24px; }

.selo-ao-vivo {
    position: absolute;
    top: 32px;
    left: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid var(--accent-borda);
    font-size: 0.8rem;
    font-weight: 700;
}

.dock {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.94);
    border: 1px solid var(--line);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.btn-dock { width: auto; height: 44px; padding: 0 18px; white-space: nowrap; }
.btn-parar { background: transparent; color: var(--accent-forte); border-color: var(--accent-borda); }

.toast {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%) translateY(-12px);
    padding: 10px 16px;
    border-radius: 10px;
    background: #000000;
    border: 1px solid var(--accent-borda);
    color: white;
    font-weight: 700;
    font-size: 0.88rem;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
    z-index: 20;
}

.toast.visivel { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 960px) {
    .nav { grid-template-columns: auto 1fr; }
    .nav-links { display: none; }
    .hero-area { grid-template-columns: 1fr; padding-top: 36px; }
    .conteudo-sala { flex-direction: column; }
    .sidebar { width: 100%; max-height: 34vh; border-right: 0; border-bottom: 1px solid var(--line); }
    .palco { min-height: 46vh; }
    .topo { align-items: flex-start; }
}

@media (max-width: 520px) {
    .btn-contorno { display: none; }
    .painel { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
    html { scroll-behavior: auto; }
}
