/* ============================================================
   Papot Retro — refinamentos de layout (carregado por ÚLTIMO)
   Sobrepõe o tema base pra bater com a identidade dourado/azul
   do mockup. Mantido isolado aqui pra facilitar ajuste/reversão.
   ============================================================ */

/* ---- Logo maior no header ---- */
.site-logo-img { height: 64px; }

/* ---- Títulos de seção em DOURADO (sidebar direita/esquerda + content frame) ---- */
.sidebar-box-header .steel-text,
.content-frame-title {
  font-family: 'Cinzel', 'Cormorant Garamond', Georgia, serif !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, #ffe9a8 0%, var(--gold-light) 30%, var(--gold-mid) 58%, var(--gold-base) 78%, #8a6a16 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.65));
}

/* fundo dos cabeçalhos de seção: azul profundo + leve brilho dourado na borda */
.sidebar-box-header {
  background: linear-gradient(90deg, rgba(201,155,46,0.16) 0%, rgba(201,155,46,0.03) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), inset 0 -1px 0 rgba(201,155,46,0.25);
}
.content-frame-header {
  background: linear-gradient(180deg, rgba(16,31,69,0.96) 0%, rgba(10,20,48,0.86) 100%);
  border-bottom: 1px solid var(--frame-border-strong);
}

/* ---- Molduras douradas ornamentadas nos painéis ---- */
.sidebar-box,
.content-frame {
  border: 1px solid rgba(201,155,46,0.42);
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.45),
    0 12px 40px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(226,182,92,0.14);
}
.sidebar-box:hover,
.content-frame:hover {
  border-color: rgba(226,182,92,0.78);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.45),
    0 16px 48px rgba(0,0,0,0.60),
    inset 0 0 0 1px rgba(226,182,92,0.28),
    0 0 18px rgba(201,155,46,0.20);
}

/* cantos dourados (L-shapes) — só nos sidebar-box (no content-frame o header
   ocupa o topo e o canto colidiria com o título) */
.sidebar-box::before, .sidebar-box::after {
  content: "";
  position: absolute;
  width: 13px; height: 13px;
  border: 2px solid var(--gold-mid);
  pointer-events: none;
  z-index: 3;
  opacity: 0.9;
}
.sidebar-box::before {
  top: 5px; left: 5px;
  border-right: 0; border-bottom: 0;
  border-top-left-radius: 5px;
}
.sidebar-box::after {
  bottom: 5px; right: 5px;
  border-left: 0; border-top: 0;
  border-bottom-right-radius: 5px;
}

/* ---- Botões CTA (Log In / Download etc.): leve relevo dourado ---- */
.sidebar-box-cta,
.btn--cta,
.site-header-btn--primary {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 2px 6px rgba(0,0,0,0.4);
}

/* ---- Status "Online": ponto verde mais vivo (combina com o selo do mockup) ---- */
.status-dot--online {
  box-shadow: 0 0 8px rgba(30,153,104,0.9);
}

/* ============================================================
   HEADER NOVO: hero com logo centralizada + nav horizontal dourada
   ============================================================ */
.site-header {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* faixa de utilidades (idioma + conta/admin) no topo, discreta */
.site-utility {
  background: linear-gradient(180deg, rgba(5,16,42,0.72) 0%, rgba(5,16,42,0.25) 100%);
  border-bottom: 1px solid rgba(201,155,46,0.18);
}
.site-utility-inner {
  max-width: 1346px; margin: 0 auto; padding: 5px 24px;
  display: flex; align-items: center; gap: 14px; justify-content: flex-end;
}
.site-utility .site-header-langs { display: flex; gap: 6px; }
.site-utility-link {
  color: var(--gold-light); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 6px;
}
.site-utility-link:hover { color: #fff; }
.site-utility-logout button {
  background: none; border: 0; color: var(--text-secondary); cursor: pointer;
  font: inherit; font-size: 0.78rem; padding: 0;
}
.site-utility-logout button:hover { color: var(--gold-light); }

/* hero — logo grande centralizada sobre o castelo */
.site-hero {
  display: flex; justify-content: center; align-items: center;
  padding: 14px 16px 6px;
}
.site-hero-logo img {
  height: 150px; width: auto; display: block;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.75)) drop-shadow(0 0 22px rgba(201,155,46,0.25));
  transition: filter .2s, transform .2s;
}
.site-hero-logo:hover img { transform: translateY(-2px); filter: drop-shadow(0 8px 18px rgba(0,0,0,0.8)) drop-shadow(0 0 28px rgba(226,182,92,0.45)); }

/* barra de navegação horizontal dourada */
.site-topnav { display: flex; justify-content: center; padding: 2px 16px 16px; }
.site-topnav-inner {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 4px;
  padding: 6px;
  background: linear-gradient(180deg, rgba(10,20,48,0.94) 0%, rgba(5,16,42,0.96) 100%);
  border: 2px solid var(--gold-base);
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.5),
    0 8px 26px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(226,182,92,0.25);
}
.topnav-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 8px;
  color: var(--gold-light); font-weight: 700; font-size: 0.86rem;
  letter-spacing: 0.01em; white-space: nowrap;
  border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.topnav-item svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.topnav-item:hover {
  color: #fff;
  background: rgba(201,155,46,0.14);
  border-color: rgba(201,155,46,0.4);
}
.topnav-item.is-active {
  background: linear-gradient(180deg, var(--gold-mid) 0%, var(--gold-base) 55%, var(--gold-dark) 100%);
  color: #2a1e06;
  border-color: var(--gold-light);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 2px 6px rgba(0,0,0,0.4);
}
.topnav-item--discord svg,
.topnav-item--instagram svg { width: 20px; height: 20px; }

/* divisória vertical entre as páginas e os sociais */
.topnav-divider {
  align-self: center;
  width: 2px;
  height: 26px;
  margin: 0 8px;
  background: linear-gradient(180deg, transparent, var(--gold-base), transparent);
  border-radius: 2px;
}

@media (max-width: 1024px) {
  .site-hero-logo img { height: 104px; }
  .topnav-item { padding: 8px 11px; font-size: 0.8rem; }
}

/* ---- Bloco de players online (abaixo da nav) ---- */
.site-online-wrap { display: flex; justify-content: center; padding: 0 16px 12px; }
.site-online {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 18px; border-radius: 100px;
  background: linear-gradient(180deg, rgba(10,20,48,0.92), rgba(5,16,42,0.95));
  border: 1px solid rgba(201,155,46,0.42);
  color: var(--text-primary); font-size: 0.82rem; font-weight: 600;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4), inset 0 1px 0 rgba(226,182,92,0.2);
}
.site-online:hover { border-color: rgba(226,182,92,0.7); color: #fff; }
.site-online strong { color: var(--gold-light); }
.site-online-dot { width: 9px; height: 9px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 8px rgba(46,204,113,0.9); }

/* ============================================================
   LOGIN BOX (sidebar) — estilo "ENTRAR" emoldurado
   ============================================================ */
.login-box {
  background: linear-gradient(180deg, rgba(10,20,48,0.92), rgba(5,16,42,0.95)) !important;
  border: 1px solid rgba(201,155,46,0.45) !important;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(226,182,92,0.14) !important;
}

/* Moldura dourada da sidebar esquerda (igual aos painéis), com faixa na lateral esquerda */
.menu-card {
  border: 1px solid rgba(201,155,46,0.42) !important;
  border-left: 3px solid var(--gold-base) !important;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.45),
    0 12px 40px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(226,182,92,0.14) !important;
}
.login-box-head {
  text-align: center;
  font-family: 'Cinzel', Georgia, serif;
  text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; font-size: 0.95rem;
  padding: 8px 10px; color: var(--gold-light);
  background: linear-gradient(180deg, rgba(201,155,46,0.22), rgba(138,106,22,0.10));
  border-bottom: 1px solid rgba(201,155,46,0.4);
}
.login-box-diamond { color: var(--gold-mid); font-size: 0.75em; vertical-align: middle; margin-right: 4px; }
.login-box-body { display: flex; flex-direction: column; gap: 9px; padding: 12px; }
.login-box-input {
  width: 100%; box-sizing: border-box;
  padding: 9px 11px; border-radius: 6px;
  background: rgba(3,10,26,0.85);
  border: 1px solid rgba(201,155,46,0.3);
  color: var(--text-primary); font-size: 0.86rem;
}
.login-box-input::placeholder { color: var(--text-muted); }
.login-box-input:focus { outline: none; border-color: var(--gold-mid); box-shadow: 0 0 0 2px rgba(201,155,46,0.2); }
.login-box-btn {
  display: block; width: 100%; box-sizing: border-box; text-align: center;
  padding: 9px 12px; border-radius: 6px; cursor: pointer;
  font-family: 'Cinzel', Georgia, serif; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  font-size: 0.82rem; border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 2px 5px rgba(0,0,0,0.4);
  transition: filter .15s, background .15s, color .15s;
}
.login-box-btn--enter {
  background: linear-gradient(180deg, #b33b3b 0%, #8e2525 60%, #6f1b1b 100%);
  color: #ffe9d6; border-color: #c25a4a;
}
.login-box-btn--enter:hover { background: linear-gradient(180deg, #c54848 0%, #a02c2c 60%, #822020 100%); color: #fff; }
.login-box-btn--create {
  background: linear-gradient(180deg, var(--gold-mid) 0%, var(--gold-base) 55%, var(--gold-dark) 100%);
  color: #2a1e06; border-color: var(--gold-light);
}
.login-box-btn--create:hover { filter: brightness(1.08); color: #1a1208; }
.login-box-btn--admin {
  margin-bottom: 8px;
  background: linear-gradient(180deg, var(--gold-mid) 0%, var(--gold-base) 55%, var(--gold-dark) 100%);
  color: #2a1e06; border-color: var(--gold-light);
}
.login-box-btn--admin:hover { filter: brightness(1.1); color: #1a1208; }
.login-box-btn--logout {
  background: rgba(159,45,58,0.18); color: #e8b4b4; border: 1px solid rgba(159,45,58,0.5);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.login-box-btn--logout:hover { background: rgba(159,45,58,0.3); color: #fff; }
.login-box-lost { display: block; text-align: center; margin-top: 2px; color: var(--gold-light); font-size: 0.76rem; }
.login-box-lost:hover { color: #fff; text-decoration: underline; }
.login-box-user { text-align: center; color: var(--text-secondary); font-size: 0.82rem; padding: 2px 0 4px; }

/* ---- Server Status box (coluna direita) ---- */
.sidebar-box-header--spread { justify-content: space-between !important; }
.status-badge {
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.06em;
  padding: 2px 9px; border-radius: 100px; white-space: nowrap;
}
.status-badge--online {
  background: rgba(46,204,113,0.16); color: #2ecc71;
  border: 1px solid rgba(46,204,113,0.5); box-shadow: 0 0 8px rgba(46,204,113,0.3);
}
.status-badge--offline {
  background: rgba(159,45,58,0.18); color: #e8a0a0; border: 1px solid rgba(159,45,58,0.5);
}
.sidebar-status-body { padding-top: 8px; padding-bottom: 10px; }
.status-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 2px; font-size: 0.84rem;
  border-bottom: 1px solid rgba(201,155,46,0.12);
}
.status-row:last-child { border-bottom: 0; }
.status-row-label { color: var(--text-secondary); }
.status-row-val { color: var(--gold-light); font-weight: 700; }
a.status-row--link { text-decoration: none; cursor: pointer; transition: background-color .15s ease; border-radius: 4px; }
a.status-row--link:hover { background-color: rgba(201,155,46,0.10); }
a.status-row--link:hover .status-row-label { color: var(--gold-light); }

/* ===== Box "Eventos" (z_events: automáticos do servidor + painel) ===== */
.side-events { list-style: none; margin: 2px 0 10px; padding: 0; }
.side-event {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 6px 2px; border-bottom: 1px solid rgba(201,155,46,0.12);
}
.side-event:last-child { border-bottom: 0; }
.side-event-dot { flex: 0 0 9px; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; }
.side-event-info { display: flex; flex-direction: column; min-width: 0; }
.side-event-title { color: var(--text-primary, #f3ead0); font-size: 0.84rem; font-weight: 700; overflow-wrap: anywhere; }
.side-event-when { color: var(--text-secondary); font-size: 0.72rem; }
.side-event--active .side-event-title { color: var(--gold-light); }
.side-event--active .side-event-when { color: #2ecc71; }

/* ===== Widget flutuante "STREAMS PAPOT" (igual ao slot do Hydra) ===== */
.sw { position: fixed; right: 20px; bottom: 20px; z-index: 900; }
.sw-fab {
    position: relative; display: inline-flex; align-items: center; gap: 9px;
    padding: 11px 18px 11px 12px;
    background: linear-gradient(180deg, #1b2440 0%, #11182c 100%);
    border: 1px solid rgba(201,155,46,.45); border-radius: 12px;
    color: #f3ead0; font-weight: 800; font-size: 14px; letter-spacing: .5px;
    cursor: pointer; box-shadow: 0 10px 26px rgba(0,0,0,.5);
    transition: transform .12s ease, border-color .12s ease;
}
.sw-fab:hover { transform: translateY(-1px); border-color: rgba(240,216,150,.8); }
.sw-fab-play {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 7px;
    background: linear-gradient(135deg, #f0d896, #c9a93b); color: #2a1e05;
}
.sw-fab-badge {
    position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px;
    padding: 0 5px; border-radius: 11px; background: #e0245e; color: #fff;
    font-size: 12px; font-weight: 800; display: inline-flex; align-items: center;
    justify-content: center; box-shadow: 0 2px 8px rgba(224,36,94,.5); border: 2px solid #11182c;
}
.sw-panel {
    position: absolute; right: 0; bottom: calc(100% + 12px); width: 340px;
    max-width: calc(100vw - 32px); background: #10182c;
    border: 1px solid rgba(201,155,46,.28); border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,.6); overflow: hidden; animation: sw-pop .14s ease;
}
@keyframes sw-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.sw-panel-head {
    display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px;
    border-bottom: 1px solid rgba(201,155,46,.16);
    background: linear-gradient(180deg, rgba(201,155,46,.10), transparent);
}
.sw-panel-icon { color: var(--gold-light, #f0d896); display: inline-flex; }
.sw-panel-title { flex: 1; line-height: 1.2; min-width: 0; }
.sw-panel-title strong { display: block; color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .4px; }
.sw-panel-title span { color: #9fb0c7; font-size: 11.5px; }
.sw-close { background: transparent; border: none; color: #9fb0c7; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; border-radius: 5px; }
.sw-close:hover { color: #e0245e; }
.sw-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; max-height: 62vh; overflow-y: auto; }
.sw-card { display: flex; flex-direction: column; background: rgba(20,28,50,.6); border: 1px solid rgba(201,155,46,.14); border-radius: 10px; overflow: hidden; }
.sw-thumb { position: relative; aspect-ratio: 16/9; background: #0a1120; overflow: hidden; }
.sw-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sw-thumb-off { position: absolute; inset: 0; background-color: #0c1426; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.sw-thumb-off::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,16,30,.5), rgba(10,16,30,.9)); backdrop-filter: blur(2px); }
.sw-off-ic { position: relative; color: rgba(190,200,220,.75); }
.sw-thumb-badges { position: absolute; top: 6px; left: 6px; display: flex; gap: 5px; align-items: center; }
.sw-badge-live { background: #e0245e; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .5px; padding: 2px 6px; border-radius: 4px; }
.sw-badge-off { background: rgba(0,0,0,.65); color: #cdd9dd; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.sw-badge-vw { background: rgba(0,0,0,.7); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.sw-badge-vw::before { content: "● "; color: #e0245e; font-size: 8px; }
.sw-meta { display: flex; align-items: center; gap: 8px; padding: 8px 8px 6px; }
.sw-av { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #2a2440; border: 1px solid rgba(201,155,46,.3); }
.sw-av--ph { display: inline-block; }
.sw-info { min-width: 0; line-height: 1.2; }
.sw-name { display: block; color: #eaf0fb; font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-cat { display: block; color: #9fb0c7; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-watch { display: block; margin: 0 8px 8px; padding: 7px 0; text-align: center; background: linear-gradient(180deg, #f0d896, #c9a93b); color: #2a1e05; font-size: 12px; font-weight: 800; letter-spacing: .4px; text-decoration: none; border-radius: 7px; }
.sw-watch:hover { filter: brightness(1.06); }
.sw-watch--off { background: rgba(70,80,104,.4); color: #7f8aa3; cursor: default; pointer-events: none; }
.sw-all { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 12px; background: rgba(201,155,46,.07); border-top: 1px solid rgba(201,155,46,.16); color: var(--gold-light, #f0d896); font-size: 12px; font-weight: 800; letter-spacing: .5px; text-decoration: none; }
.sw-all:hover { background: rgba(201,155,46,.14); }
@media (max-width: 520px) { .sw { right: 12px; bottom: 12px; } .sw-fab-text { display: none; } }

/* ===== Página /streamers (grid) ===== */
.streamers-page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-top: 14px; }
.streamer-mini { display: block; text-decoration: none; color: inherit; background: rgba(0,0,0,.28); border: 1px solid rgba(201,155,46,.18); border-radius: 8px; overflow: hidden; transition: transform .15s ease, border-color .15s ease; }
.streamer-mini:hover { transform: translateY(-2px); border-color: rgba(201,155,46,.5); }
.streamer-mini.is-offline { opacity: .72; }
.streamer-mini.is-offline:hover { opacity: 1; }
.streamer-thumb { position: relative; aspect-ratio: 16/9; background: #10131a; }
.streamer-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.streamer-thumb img.streamer-thumb--avatar { object-fit: contain; padding: 10px; }
.streamer-tag { position: absolute; top: 6px; left: 6px; font-size: .62rem; font-weight: 800; letter-spacing: .5px; padding: 2px 6px; border-radius: 4px; color: #fff; }
.streamer-tag--live { background: #e0245e; }
.streamer-tag--off { background: rgba(0,0,0,.6); color: #9fb0c7; }
.streamer-name { padding: 7px 9px 2px; font-size: .84rem; font-weight: 700; color: #e6edf3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.streamer-info { padding: 0 9px 9px; font-size: .74rem; color: #46d17f; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.streamer-info--off { color: var(--text-secondary, #9fb0c7); font-weight: 500; }
