:root {
  --w-black: #080808;
  --w-dark-gray: #111111;
  --w-hud-bg: #1a1a1a;
  --w-red-blood: #e60000;
  --w-red-neon: #ff1a1a;
  --w-slate: #2a2a2a;
  --w-white: #ffffff;
  --w-ash: #888888;
  --w-border-hud: rgba(230, 0, 0, 0.4);

  --motion-fast: cubic-bezier(0.25, 1, 0.5, 1);
  --motion-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-transform: uppercase;
}

body {
  background-color: var(--w-black);
  color: var(--w-white);
  overflow-x: hidden;
  background-image: 
    linear-gradient(rgba(8,8,8,0.9), rgba(8,8,8,0.9)),
    url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><rect x="0" y="0" width="100" height="100" fill="none" stroke="rgba(255,255,255,0.02)" stroke-width="0.5"/></svg>');
  background-size: 200px 200px;
}

/* -------------------------------------
   HUD ARCHITECTURAL NAV (EXCEPTION)
-------------------------------------- */
.architectural-nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: 90px;
  background: linear-gradient(to bottom, var(--w-black) 40%, transparent);
  border-bottom: 2px solid var(--w-red-blood);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5rem;
  box-shadow: 0 10px 30px rgba(153, 0, 0, 0.15);
}

.brand-logotype h1 {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 2px 2px 0px var(--w-red-blood);
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  color: var(--w-ash);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 2px;
  transition: all 0.3s;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--w-white);
  border-bottom: 2px solid var(--w-red-neon);
  text-shadow: 0 0 10px var(--w-red-neon);
}

.btn-entrar {
  background: transparent;
  color: var(--w-white);
  padding: 0.8rem 2rem;
  border: 2px solid var(--w-red-blood);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
}

.btn-entrar:hover {
  background: var(--w-red-blood);
  box-shadow: 0 0 20px var(--w-red-blood);
  color: #fff;
}

/* -------------------------------------
   PERSISTENT SPA PLAYER (EXCEPTION)
-------------------------------------- */
.global-player-container {
  transition: all 0.6s var(--motion-fast);
  z-index: 9000;
  position: relative;
}

.player-hud-border {
  width: 100%;
  height: 100%;
  background: var(--w-dark-gray);
  border: 1px solid var(--w-border-hud);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.8), 0 10px 40px rgba(0,0,0,0.5);
}

.theater-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* Theater Mode (Home) */
.mode-theater {
  width: 90%;
  max-width: 1500px;
  height: 65vh;
  margin: 140px auto 0 auto;
  border-radius: 4px;
}

/* Floating Mode PIP (Other Pages) */
.mode-floating {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 380px;
  height: 215px;
  margin: 0;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.9), 0 0 15px rgba(153, 0, 0, 0.4);
  border: 2px solid var(--w-red-blood);
  z-index: 9999;
}

.pip-overlay-info {
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 100%;
  background: rgba(0,0,0,0.8);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--w-white);
  border-top: 1px solid var(--w-red-blood);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Glow & HUD for Theater only */
.ambient-glow {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh;
  background: radial-gradient(circle at 50% 30%, rgba(153,0,0,0.15) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.5s;
}
.ambient-glow.inactive { opacity: 0; }

.now-playing-hud {
  width: 90%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--w-hud-bg);
  border-left: 4px solid var(--w-red-blood);
  border-right: 4px solid var(--w-red-blood);
  border-bottom: 1px solid var(--w-slate);
}

.hud-track-info h2 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--w-white);
  letter-spacing: 2px;
}

.hud-track-info p {
  color: var(--w-red-neon);
  font-weight: 700;
  letter-spacing: 4px;
  margin-top: 0.3rem;
  font-size: 1rem;
}

.live-badge {
  background: rgba(153,0,0,0.2);
  border: 1px solid var(--w-red-blood);
  padding: 0.5rem 1.5rem;
  color: #fff;
  font-weight: 800;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.live-dot, .live-dot-core {
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--w-red-neon);
  border-radius: 50%;
  animation: pings 1.5s infinite;
}

@keyframes pings {
  0% { box-shadow: 0 0 0 0 rgba(255, 26, 26, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 26, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 26, 26, 0); }
}

/* -------------------------------------
   DATA GRID (EXCEPTION ESPORTS CARD)
-------------------------------------- */
.main-wrapper {
  margin-top: 140px; /* Base clearance for fixed nav */
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Quando o theater está presente (home), o main vem direto após */
.wsr-theater ~ .main-wrapper {
  margin-top: 0;
}

.page-content-grid {
  padding: 4rem 5%;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.section-header {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--w-white);
  border-bottom: 2px solid var(--w-slate);
  padding-bottom: 1rem;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-header::before {
  content: '';
  display: block;
  width: 20px; height: 20px;
  background: var(--w-red-blood);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  gap: 4rem;
  width: 100%;
}

.exception-card {
  width: 100%;
  background: var(--w-black);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px;
}

/* 4 Bracket Corners for IN-GAME HUD */
.exception-card::before, .exception-card::after {
  content: '';
  position: absolute;
  width: 40px; height: 40px;
  border: 3px solid var(--w-red-blood);
  pointer-events: none;
}
.exception-card::before {
  top: 0; left: 0;
  border-right: none; border-bottom: none;
}
.exception-card::after {
  bottom: 0; right: 0;
  border-left: none; border-top: none;
}

.card-bracket-helper {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.card-bracket-helper::before, .card-bracket-helper::after {
  content: '';
  position: absolute;
  width: 40px; height: 40px;
  border: 3px solid var(--w-white);
  pointer-events: none;
}
.card-bracket-helper::before {
  top: 0; right: 0;
  border-left: none; border-bottom: none;
}
.card-bracket-helper::after {
  bottom: 0; left: 0;
  border-right: none; border-top: none;
}

.exception-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 40px rgba(230,0,0,0.2);
}

.card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  object-fit: cover;
  filter: grayscale(40%) contrast(1.1);
  transition: filter 0.4s ease;
}
.exception-card:hover .card-thumb {
  filter: grayscale(0%) contrast(1.2);
}

.card-meta {
  background: var(--w-dark-gray);
  padding: 1rem;
  text-align: center;
  border-top: 1px solid var(--w-slate);
}

.card-meta h3 {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 0.8rem;
  color: var(--w-white);
}

.card-meta p {
  font-size: 0.85rem;
  color: var(--w-ash);
  line-height: 1.6;
  text-transform: none;
}

/* -------------------------------------
   TWITCH PANELS BAR (BOUTONS DES PANNEAUX)
-------------------------------------- */
.twitch-panels-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
  padding: 4rem 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.panel-btn {
  background: #111;
  border-left: 4px solid var(--w-red-blood);
  border-right: 4px solid var(--w-red-blood);
  color: var(--w-white);
  padding: 1.2rem 3rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 3px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  min-width: 250px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.panel-btn:hover {
  background: var(--w-red-blood);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(230, 0, 0, 0.4);
}

/* -------------------------------------
   GRITTY SCENES SECTION (LOCUTOR / RANKING)
-------------------------------------- */
.gritty-scenes-section {
  width: 100%;
  padding: 8rem 4rem;
  background-color: #0d0d0d;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(230,0,0,0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(230,0,0,0.15) 0%, transparent 50%),
    url('data:image/svg+xml;utf8,<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.05"/></svg>');
  background-blend-mode: overlay, normal, normal;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
}

.scenes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1600px;
  margin: 0 auto;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .scenes-grid {
    grid-template-columns: 1fr;
  }
}

.scene-container {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.scene-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--w-white);
  letter-spacing: 5px;
  margin-bottom: 2rem;
  font-style: italic;
  /* Red marker line under title */
  border-bottom: 2px solid var(--w-red-blood);
  padding-bottom: 0.5rem;
  display: inline-block;
  align-self: flex-start;
}

/* -------------------------------------
   EXCEPTION HTML TABLE (RANKING)
-------------------------------------- */
.exception-table-wrapper {
  width: 100%;
  background: rgba(0,0,0,0.8);
  padding: 2rem;
  border: 1px solid #333;
}

.exception-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.exception-table th {
  color: var(--w-ash);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 800;
  padding: 1.5rem 1rem;
  border-bottom: 2px solid var(--w-slate);
}

.exception-table td {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid #222;
  color: var(--w-white);
  font-size: 1.2rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.exception-table tr:hover td {
  background: rgba(230,0,0,0.1);
  border-bottom: 1px solid var(--w-red-blood);
}

.exception-table .rank-col {
  color: var(--w-red-blood);
  font-weight: 900;
  font-size: 1.5rem;
  width: 80px;
}

.exception-table .pts-col {
  color: var(--w-ash);
  font-style: italic;
  font-weight: 600;
  text-align: right;
}

/* -------------------------------------
   BANNER SEPARATOR (OVERLAYS)
-------------------------------------- */
.banner-separator {
  width: 100%;
  padding: 3.5rem 0;
  background: var(--w-red-blood);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 5rem 0;
  position: relative;
  box-shadow: inset 0 10px 20px rgba(0,0,0,0.3);
}

.banner-separator h2 {
  font-size: 3rem;
  font-weight: 900;
  color: var(--w-white);
  letter-spacing: 5px;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
  font-style: italic;
}

/* -------------------------------------
   PRE-FOOTER & FOOTER (EXCEPTION)
-------------------------------------- */
.global-footer-container {
  width: 100%;
  margin-top: 5rem;
}

.pre-footer-banner {
  background: var(--w-red-blood);
  padding: 5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.pre-footer-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: radial-gradient(rgba(0,0,0,0.1) 1px, transparent 1px);
  background-size: 10px 10px;
  pointer-events: none;
}

.heart-icon-wrapper {
  width: 80px;
  height: 80px;
  border: 2px dashed rgba(255,255,255,0.6);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.heart-icon-wrapper svg {
  color: var(--w-white);
}

.pre-footer-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--w-white);
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.pre-footer-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 2px;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.footer-social-links {
  display: flex;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.footer-social-links a {
  color: var(--w-white);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 2px;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.footer-social-links a:hover {
  opacity: 0.7;
}

.main-footer {
  background: var(--w-black);
  padding: 1.5rem 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.main-footer p {
  font-size: 0.9rem;
  color: var(--w-ash);
  font-weight: 600;
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════
   PORTAL DO ARTISTA
═══════════════════════════════════════ */
.artist-portal {
  min-height: 100vh;
  padding-top: 80px;
}

.portal-hero {
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.6), #080808),
    radial-gradient(ellipse at 50% 0%, rgba(230,0,0,0.18) 0%, transparent 65%);
  border-bottom: 2px solid var(--w-red);
  padding: 5rem 2rem 4rem;
  text-align: center;
}
.portal-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--w-red);
  border: 1px solid rgba(230,0,0,0.4);
  padding: 4px 12px;
  margin-bottom: 1.5rem;
}
.portal-title {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -2px;
  color: #fff;
  line-height: 1;
  margin-bottom: 1.5rem;
}
.portal-subtitle {
  max-width: 600px;
  margin: 0 auto;
  color: var(--w-ash);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 500;
}

/* MODE CHOOSE */
.portal-choose { padding: 4rem 2rem; }
.portal-choose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  max-width: 900px;
  margin: 0 auto 3rem;
}
@media (max-width: 640px) { .portal-choose-grid { grid-template-columns: 1fr; } }

.portal-mode-card {
  background: #0d0d0d;
  border: 1px solid #1a1a1a;
  padding: 3rem 2.5rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}
.portal-mode-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--w-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.portal-mode-card:hover { background: #111; border-color: #333; transform: translateY(-3px); }
.portal-mode-card:hover::before { transform: scaleX(1); }
.portal-mode-card:hover .portal-card-arrow { color: var(--w-red); }

.mode-card-icon { color: var(--w-red); margin-bottom: 0.5rem; }
.portal-mode-card h2 { font-size: 1.2rem; font-weight: 900; letter-spacing: 3px; color: #fff; }
.portal-mode-card p { color: var(--w-ash); font-size: 0.9rem; line-height: 1.6; }
.mode-card-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  background: rgba(230,0,0,0.12);
  color: var(--w-red);
  border: 1px solid rgba(230,0,0,0.25);
  padding: 3px 8px;
}
.portal-card-arrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #555;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #1a1a1a;
  transition: color 0.2s;
}

/* INFO STRIP */
.portal-info-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
  background: #0d0d0d;
  border: 1px solid #1a1a1a;
  padding: 1.5rem 2rem;
  flex-wrap: wrap;
}
.portal-info-item { display: flex; align-items: center; gap: 0.75rem; flex: 1; min-width: 150px; }
.info-num {
  font-size: 0.7rem; font-weight: 900; letter-spacing: 2px;
  color: var(--w-red); border: 1px solid rgba(230,0,0,0.3);
  padding: 3px 7px; flex-shrink: 0;
}
.portal-info-item span:last-child { font-size: 0.8rem; color: var(--w-ash); }
.portal-info-divider { color: #333; font-weight: 800; flex-shrink: 0; }

/* FORM SECTION */
.portal-form-section { padding: 3rem 2rem; }
.portal-form-container { max-width: 760px; margin: 0 auto; }

.back-btn {
  background: none; border: 1px solid #333; color: var(--w-ash);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 3px;
  padding: 8px 16px; cursor: pointer; margin-bottom: 2rem;
  transition: all 0.2s;
}
.back-btn:hover { border-color: var(--w-red); color: var(--w-red); }

.portal-form-header { margin-bottom: 2.5rem; }
.portal-form-header h2 {
  font-size: 1.5rem; font-weight: 900; letter-spacing: 3px;
  color: #fff; margin-bottom: 0.5rem;
}
.portal-form-header p { color: var(--w-ash); font-size: 0.85rem; }

/* DRAG & DROP */
.drop-zone {
  border: 2px dashed #2a2a2a;
  background: #0d0d0d;
  padding: 3rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 2rem;
  color: var(--w-ash);
}
.drop-zone:hover, .drop-zone.drag-active { border-color: var(--w-red); background: rgba(230,0,0,0.04); }
.drop-zone.has-file { border-style: solid; border-color: #2a2a2a; }
.drop-zone svg { margin-bottom: 1rem; opacity: 0.5; }
.drop-zone p { font-size: 0.95rem; margin-bottom: 0.5rem; color: #ccc; }
.drop-zone span { font-size: 0.7rem; letter-spacing: 2px; color: #555; }

.file-selected { display: flex; align-items: center; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.file-info { text-align: left; }
.file-info strong { display: block; color: #fff; font-size: 0.9rem; }
.file-info span { color: var(--w-ash); font-size: 0.8rem; }
.file-change {
  background: none; border: 1px solid #333; color: #888;
  font-size: 0.7rem; letter-spacing: 2px; padding: 6px 12px;
  cursor: pointer; transition: all 0.2s;
}
.file-change:hover { border-color: #666; color: #ccc; }

/* FIELDS */
.portal-fields { display: flex; flex-direction: column; gap: 1.5rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

.field-group { display: flex; flex-direction: column; gap: 0.5rem; }
.field-group label { font-size: 0.65rem; font-weight: 800; letter-spacing: 3px; color: #666; }
.field-group input, .field-group select {
  background: #0d0d0d; border: 1px solid #1e1e1e; color: #fff;
  padding: 0.85rem 1rem; font-size: 0.9rem; font-family: inherit;
  transition: border-color 0.2s; outline: none;
}
.field-group input:focus, .field-group select:focus { border-color: var(--w-red); }
.field-group input::placeholder { color: #444; }
.field-group select { cursor: pointer; }
.field-group select option { background: #111; }

/* URL INPUT */
.url-input-block {
  display: flex; align-items: center;
  background: #0d0d0d; border: 1px solid #1e1e1e;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s;
}
.url-input-block:focus-within { border-color: var(--w-red); }
.url-prefix { padding: 0 1rem; color: #444; flex-shrink: 0; }
.url-input {
  flex: 1; background: none; border: none;
  color: #fff; padding: 1rem 1rem 1rem 0;
  font-size: 0.9rem; font-family: inherit; outline: none;
}
.url-input::placeholder { color: #444; }
.url-preview {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; color: var(--w-ash);
  padding: 0.5rem 0;
}
.url-ok { color: #22c55e; font-weight: 800; font-size: 1rem; }

/* VIP BLOCK */
.vip-block { background: rgba(230,0,0,0.06); border: 1px solid rgba(230,0,0,0.2); padding: 1.25rem 1.5rem; }
.vip-label { display: flex; align-items: flex-start; gap: 1rem; cursor: pointer; }
.vip-label input { margin-top: 3px; accent-color: var(--w-red); width: 16px; height: 16px; flex-shrink: 0; cursor: pointer; }
.vip-content { display: flex; flex-direction: column; gap: 0.3rem; }
.vip-badge {
  font-size: 0.7rem; font-weight: 900; letter-spacing: 2px;
  color: var(--w-red);
}
.vip-desc { font-size: 0.82rem; color: var(--w-ash); line-height: 1.5; }

/* AUTH BLOCK */
.auth-block { background: #0d0d0d; border: 1px solid #1e1e1e; padding: 1.25rem 1.5rem; }
.auth-label { display: flex; align-items: flex-start; gap: 1rem; cursor: pointer; }
.auth-label input { margin-top: 3px; accent-color: var(--w-red); width: 16px; height: 16px; flex-shrink: 0; cursor: pointer; }
.auth-label span { font-size: 0.82rem; color: var(--w-ash); line-height: 1.6; }
.auth-label strong { color: #ccc; }

/* FEEDBACK */
.form-feedback {
  padding: 0.85rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
}
.form-feedback.error { background: rgba(230,0,0,0.1); border: 1px solid rgba(230,0,0,0.3); color: #ff6666; }
.form-feedback.success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #4ade80; }

/* SUBMIT BTN */
.submit-btn {
  width: 100%; background: var(--w-red); border: none; color: #fff;
  font-family: inherit; font-size: 0.8rem; font-weight: 900;
  letter-spacing: 3px; padding: 1.2rem 2rem; cursor: pointer;
  transition: all 0.2s; position: relative; overflow: hidden;
}
.submit-btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.submit-btn:hover::after { transform: translateX(0); }
.submit-btn:disabled { background: #333; color: #666; cursor: not-allowed; }
.submit-btn:disabled::after { display: none; }

.loading-dots span { animation: blink 1.2s infinite; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } }

/* SUCCESS */
.portal-success {
  display: flex; align-items: center; justify-content: center;
  min-height: 70vh; padding: 4rem 2rem;
}
.success-inner { text-align: center; max-width: 520px; }
.success-icon {
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(230,0,0,0.08);
  border: 2px solid rgba(230,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 2rem;
}
.success-inner h2 {
  font-size: 2rem; font-weight: 900; letter-spacing: 4px; color: #fff; margin-bottom: 1rem;
}
.success-inner p { color: var(--w-ash); line-height: 1.7; margin-bottom: 2rem; }
.success-inner strong { color: #fff; }
.success-id {
  background: #0d0d0d; border: 1px solid #1e1e1e;
  padding: 1rem 1.5rem; margin-bottom: 2rem;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  flex-wrap: wrap;
}
.success-id span { font-size: 0.7rem; letter-spacing: 3px; color: #555; font-weight: 800; }
.success-id code { font-family: 'Courier New', monospace; color: var(--w-red); font-size: 0.8rem; }

/* ═══════════════════════════════════════
   FURA-FILA · SISTEMA DE GAMIFICAÇÃO
═══════════════════════════════════════ */
.queue-panel {
  background: #080808;
  border-top: 2px solid var(--w-red);
  border-bottom: 1px solid #1a1a1a;
}

/* HEADER */
.queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid #111;
}
.queue-header-left { display: flex; flex-direction: column; gap: 0.4rem; }
.queue-eyebrow {
  font-size: 0.65rem; font-weight: 900; letter-spacing: 4px;
  color: var(--w-red); display: block;
}
.queue-header h2 {
  font-size: 1.4rem; font-weight: 900; letter-spacing: 4px; color: #fff; margin: 0;
}
.queue-header p { font-size: 0.8rem; color: #666; margin: 0; letter-spacing: 1px; }

.queue-live-badge {
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(230,0,0,0.12);
  border: 1px solid rgba(230,0,0,0.3);
  padding: 0.5rem 1rem;
  font-size: 0.7rem; font-weight: 900; letter-spacing: 2px; color: var(--w-red);
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--w-red);
  animation: pulse-red 1.2s infinite;
}
@keyframes pulse-red {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* LIVE BANNER */
.queue-live-banner {
  background: rgba(230,0,0,0.08); border-bottom: 1px solid rgba(230,0,0,0.2);
  padding: 1rem 2rem; font-size: 0.85rem; color: var(--w-ash); text-align: center;
}

/* EMPTY */
.queue-empty {
  padding: 3rem; text-align: center;
  color: #555; font-size: 0.9rem; line-height: 2;
}
.queue-empty a { color: var(--w-red); }

/* LIST */
.queue-list { display: flex; flex-direction: column; }

.queue-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid #111;
  transition: background 0.15s;
}
.queue-item:hover { background: #0d0d0d; }
.queue-item.ready { background: rgba(34,197,94,0.04); border-bottom-color: rgba(34,197,94,0.1); }

.queue-rank {
  font-size: 1.4rem; flex-shrink: 0; width: 2rem; text-align: center;
}

.queue-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.queue-track-name { font-size: 1rem; font-weight: 900; color: #fff; letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-artist { font-size: 0.75rem; font-weight: 700; color: #666; letter-spacing: 1px; }

/* POINTS BAR */
.q-bar-wrap { display: flex; align-items: center; gap: 0.75rem; }
.q-bar-track {
  flex: 1; height: 4px; background: #1a1a1a; position: relative; overflow: hidden;
}
.q-bar-fill {
  height: 100%; background: var(--w-red);
  transition: width 0.5s ease;
}
.q-bar-label { font-size: 0.7rem; font-weight: 900; color: #666; min-width: 32px; text-align: right; }

.queue-meta {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  font-size: 0.7rem; color: #555; letter-spacing: 1px;
}
.q-next-pt { color: #888; border: 1px solid #1e1e1e; padding: 1px 6px; }
.q-badge { font-size: 0.65rem; font-weight: 800; padding: 2px 6px; letter-spacing: 1px; }
.truva-badge { background: rgba(230,0,0,0.1); border: 1px solid rgba(230,0,0,0.2); color: #e60000; }
.destruva-badge { background: rgba(100,0,100,0.1); border: 1px solid rgba(100,0,100,0.2); color: #bb00bb; }

.queue-ready-badge {
  font-size: 0.7rem; font-weight: 900; letter-spacing: 2px;
  color: #22c55e; border: 1px solid rgba(34,197,94,0.3);
  padding: 4px 10px; flex-shrink: 0;
}

.queue-vote-btn {
  background: none;
  border: 1px solid #222;
  color: #666;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 2px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
  white-space: nowrap;
}
.queue-vote-btn:hover { border-color: var(--w-red); color: var(--w-red); }
.q-btn-sep { margin: 0 0.4rem; color: #333; }

/* LIVE FEED */
.queue-feed {
  border-top: 1px solid #111;
  padding: 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.queue-feed-title { font-size: 0.65rem; font-weight: 900; letter-spacing: 3px; color: #e60000; margin-bottom: 0.25rem; }
.feed-event {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.78rem; color: var(--w-ash);
  padding: 0.4rem 0.75rem;
  border-left: 2px solid #222;
  animation: slideIn 0.3s ease;
}
.feed-event.truvar { border-left-color: var(--w-red); }
.feed-event.destruvar { border-left-color: #bb00bb; }
.feed-event.promoted { border-left-color: #22c55e; }
.feed-time { font-size: 0.65rem; color: #555; flex-shrink: 0; margin-left: 1rem; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

/* FOOTER */
.queue-footer-info {
  padding: 1rem 2rem;
  border-top: 1px solid #111;
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  font-size: 0.7rem; color: #444; letter-spacing: 1px;
}

/* ─── MODAL ─────────────────────────────── */
.q-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.15s ease;
}
.q-modal {
  background: #0d0d0d;
  border: 1px solid #1e1e1e;
  border-top: 2px solid var(--w-red);
  width: 100%; max-width: 480px;
  max-height: 85vh; overflow-y: auto;
  position: relative;
  animation: slideUp 0.2s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.q-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; color: #555; font-size: 1rem;
  cursor: pointer; transition: color 0.2s;
}
.q-modal-close:hover { color: var(--w-red); }

.q-modal-track {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid #1a1a1a;
}
.q-modal-eyebrow { font-size: 0.65rem; font-weight: 900; letter-spacing: 3px; color: #666; display: block; margin-bottom: 0.25rem; }
.q-modal-track h3 { font-size: 1.1rem; font-weight: 900; color: #fff; margin: 0 0 0.75rem; }
.q-modal-pts { margin-top: 0.5rem; }

/* VOTE TYPES */
.q-modal-choose { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.q-vote-types { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.q-vote-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.35rem; padding: 1.25rem;
  background: #111; border: 1px solid #1e1e1e;
  color: #666; cursor: pointer;
  font-size: 0.75rem; font-weight: 900; letter-spacing: 2px;
  transition: all 0.2s;
}
.q-vote-btn:hover { background: #161616; }
.q-vote-btn.active.truvar { border-color: var(--w-red); color: var(--w-red); background: rgba(230,0,0,0.06); }
.q-vote-btn.active.destruvar { border-color: #bb00bb; color: #bb00bb; background: rgba(187,0,187,0.06); }
.q-vote-icon { font-size: 1.5rem; }
.q-vote-sub { font-size: 0.6rem; opacity: 0.6; font-weight: 600; }

/* PACKAGES */
.q-pkg-label { font-size: 0.65rem; font-weight: 900; letter-spacing: 3px; color: #555; }
.q-packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.q-pkg-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.25rem; padding: 1rem 0.75rem;
  background: #111; border: 1px solid #1e1e1e;
  color: #666; cursor: pointer;
  transition: all 0.2s;
}
.q-pkg-btn:hover { background: #161616; }
.q-pkg-btn.active { border-color: var(--w-red); background: rgba(230,0,0,0.06); }
.q-pkg-pts { font-size: 0.85rem; font-weight: 900; color: #fff; }
.q-pkg-btn.active .q-pkg-pts { color: var(--w-red); }
.q-pkg-price { font-size: 0.7rem; font-weight: 700; color: #888; letter-spacing: 1px; }
.q-pkg-note { font-size: 0.72rem; color: #444; text-align: center; }

/* CONFIRM BTN */
.q-confirm-btn {
  width: 100%; background: var(--w-red); border: none;
  color: #fff; font-family: inherit; font-size: 0.78rem;
  font-weight: 900; letter-spacing: 3px; padding: 1rem;
  cursor: pointer; transition: all 0.2s;
}
.q-confirm-btn:hover { background: #cc0000; }
.q-confirm-btn:disabled { background: #222; color: #555; cursor: not-allowed; }

/* PAYER FORM */
.q-modal-payer { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.q-payer-desc { font-size: 0.85rem; color: var(--w-ash); padding: 0.75rem 1rem; background: #111; border: 1px solid #1e1e1e; }
.q-field { display: flex; flex-direction: column; gap: 0.4rem; }
.q-field label { font-size: 0.62rem; font-weight: 900; letter-spacing: 3px; color: #555; }
.q-field input {
  background: #111; border: 1px solid #1e1e1e; color: #fff;
  padding: 0.85rem 1rem; font-size: 0.9rem; font-family: inherit;
  outline: none; transition: border-color 0.2s;
}
.q-field input:focus { border-color: var(--w-red); }
.q-field input::placeholder { color: #333; }
.q-payer-actions { display: flex; gap: 0.75rem; }
.q-back-btn {
  background: none; border: 1px solid #222; color: #666;
  font-size: 0.7rem; font-weight: 900; letter-spacing: 2px;
  padding: 0.85rem 1rem; cursor: pointer; transition: all 0.2s; flex-shrink: 0;
}
.q-back-btn:hover { border-color: #444; color: #888; }

/* PIX */
.q-modal-pix { padding: 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.q-pix-title { font-size: 0.65rem; font-weight: 900; letter-spacing: 4px; color: #666; }
.q-qr { width: 200px; height: 200px; border: 2px solid #1e1e1e; display: block; }
.q-copy-btn {
  width: 100%; background: #111; border: 1px solid #1e1e1e;
  color: #ccc; font-family: inherit; font-size: 0.75rem;
  font-weight: 800; letter-spacing: 2px; padding: 0.85rem; cursor: pointer;
  transition: all 0.2s;
}
.q-copy-btn:hover { border-color: var(--w-red); color: var(--w-red); }
.q-pix-note { font-size: 0.78rem; color: var(--w-ash); text-align: center; line-height: 1.6; }
.q-pix-note strong { color: #fff; }
.q-pix-expire { font-size: 0.72rem; color: #555; }

/* SUCCESS */
.q-modal-success {
  padding: 2rem 1.5rem;
  display: flex; flex-direction: column; align-items: center;
  gap: 1rem; text-align: center;
}
.q-success-icon { font-size: 3rem; }
.q-modal-success h3 { font-size: 1.5rem; font-weight: 900; letter-spacing: 4px; color: #fff; }
.q-modal-success p { color: var(--w-ash); font-size: 0.9rem; }
.q-modal-success strong { color: #fff; }


/* ═══════════════════════════════════════
   OUVINTE SYSTEM · CHAT + RANKING
═══════════════════════════════════════ */
.chat-listener-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
  min-height: 480px;
}
@media (max-width: 900px) { .chat-listener-grid { grid-template-columns: 1fr; } }

/* ─── LIVE CHAT ─── */
.live-chat-section { display: flex; flex-direction: column; background: #080808; border-right: 1px solid #111; max-height: 520px; }
.live-chat-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem 0.85rem; border-bottom: 1px solid #111; flex-shrink: 0; gap: 0.75rem; flex-wrap: wrap; }
.live-chat-title-row { display: flex; align-items: center; gap: 0.5rem; }
.live-chat-label { font-size: 0.65rem; font-weight: 900; letter-spacing: 3px; color: #e60000; }
.live-chat-me { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 700; color: #888; letter-spacing: 1px; }
.live-chat-login-btn { background: none; border: 1px solid #222; color: #666; font-size: 0.62rem; font-weight: 900; letter-spacing: 2px; padding: 0.45rem 0.85rem; cursor: pointer; transition: all 0.2s; }
.live-chat-login-btn:hover { border-color: var(--w-red); color: var(--w-red); }

.chat-auth-form { padding: 1rem 1.25rem; border-bottom: 1px solid #111; background: #0d0d0d; flex-shrink: 0; }
.chat-auth-tabs { display: flex; gap: 2px; margin-bottom: 0.85rem; }
.chat-auth-tabs button { flex: 1; background: #111; border: 1px solid #1e1e1e; color: #555; font-size: 0.65rem; font-weight: 900; letter-spacing: 2px; padding: 0.5rem; cursor: pointer; transition: all 0.15s; }
.chat-auth-tabs button.active { border-color: var(--w-red); color: var(--w-red); background: rgba(230,0,0,0.05); }
.chat-auth-form input { width: 100%; background: #111; border: 1px solid #1e1e1e; color: #fff; padding: 0.65rem 0.85rem; font-size: 0.85rem; font-family: inherit; margin-bottom: 0.4rem; outline: none; box-sizing: border-box; transition: border-color 0.2s; }
.chat-auth-form input:focus { border-color: var(--w-red); }
.chat-auth-form input::placeholder { color: #333; }
.chat-submit-auth { width: 100%; background: var(--w-red); border: none; color: #fff; font-family: inherit; font-size: 0.72rem; font-weight: 900; letter-spacing: 3px; padding: 0.7rem; cursor: pointer; margin-top: 0.25rem; transition: background 0.2s; }
.chat-submit-auth:hover { background: #cc0000; }
.chat-submit-auth:disabled { background: #222; color: #555; cursor: not-allowed; }
.chat-error { font-size: 0.72rem; color: var(--w-red); margin: 0.2rem 0 0.4rem; }
.chat-auth-note { font-size: 0.68rem; color: #444; margin-top: 0.5rem; text-align: center; }
.chat-free-truva-tag { font-size: 0.65rem; color: #22c55e; border: 1px solid rgba(34,197,94,0.3); padding: 1px 6px; }

.live-chat-messages { flex: 1; overflow-y: auto; padding: 0.75rem 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; scrollbar-width: thin; scrollbar-color: #1e1e1e transparent; }
.chat-empty { font-size: 0.8rem; color: #444; text-align: center; padding: 1rem 0; }
.chat-msg { display: flex; align-items: baseline; gap: 0.5rem; font-size: 0.8rem; line-height: 1.4; color: var(--w-ash); animation: slideIn 0.2s ease; flex-wrap: wrap; }
.chat-msg-reward { background: rgba(34,197,94,0.05); border-left: 2px solid #22c55e; padding: 0.3rem 0.5rem; color: #22c55e; font-size: 0.75rem; }
.chat-username { font-weight: 900; color: #fff; font-size: 0.75rem; letter-spacing: 0.5px; flex-shrink: 0; display: flex; align-items: center; gap: 0.3rem; }
.chat-text { color: #bbb; }

.chat-pts-badge { font-size: 0.6rem; font-weight: 900; letter-spacing: 1px; padding: 1px 5px; flex-shrink: 0; background: #1a1a1a; border: 1px solid #2a2a2a; color: #666; }
.chat-pts-badge.bronze { border-color: #8B4513; color: #CD853F; background: rgba(139,69,19,0.1); }
.chat-pts-badge.silver { border-color: #696969; color: #C0C0C0; background: rgba(105,105,105,0.1); }
.chat-pts-badge.gold { border-color: #B8860B; color: #FFD700; background: rgba(184,134,11,0.1); }

.live-chat-input-row { display: flex; gap: 0; border-top: 1px solid #111; flex-shrink: 0; }
.live-chat-input { flex: 1; background: #111; border: none; color: #fff; padding: 0.85rem 1rem; font-size: 0.85rem; font-family: inherit; outline: none; }
.live-chat-input::placeholder { color: #333; }
.live-chat-send-btn { background: var(--w-red); border: none; color: #fff; font-size: 1rem; padding: 0 1.25rem; cursor: pointer; transition: background 0.2s; flex-shrink: 0; }
.live-chat-send-btn:hover { background: #cc0000; }
.live-chat-send-btn:disabled { background: #222; color: #555; cursor: not-allowed; }
.live-chat-locked { border-top: 1px solid #111; padding: 0.75rem 1.25rem; flex-shrink: 0; }
.live-chat-locked button { background: none; border: 1px solid #1e1e1e; color: #555; font-size: 0.72rem; font-weight: 900; letter-spacing: 1px; padding: 0.65rem 1rem; cursor: pointer; width: 100%; transition: all 0.2s; }
.live-chat-locked button:hover { border-color: var(--w-red); color: var(--w-red); }

/* ─── LISTENER PANEL ─── */
.listener-panel { background: #050505; display: flex; flex-direction: column; overflow-y: auto; }
.lp-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 1.25rem 1.25rem 0.75rem; border-bottom: 1px solid #111; }
.lp-username { font-size: 1rem; font-weight: 900; letter-spacing: 3px; color: #fff; margin: 0.25rem 0 0; }
.lp-logout-btn { background: none; border: 1px solid #1e1e1e; color: #555; font-size: 0.62rem; font-weight: 900; letter-spacing: 2px; padding: 0.4rem 0.75rem; cursor: pointer; transition: all 0.2s; flex-shrink: 0; margin-top: 0.25rem; }
.lp-logout-btn:hover { border-color: #444; color: #888; }
.lp-tabs { display: flex; border-bottom: 1px solid #111; }
.lp-tabs button { flex: 1; background: none; border: none; border-bottom: 2px solid transparent; color: #555; font-family: inherit; font-size: 0.65rem; font-weight: 900; letter-spacing: 2px; padding: 0.75rem; cursor: pointer; transition: all 0.15s; }
.lp-tabs button.active { color: var(--w-red); border-bottom-color: var(--w-red); }
.lp-stats { padding: 1.25rem; display: flex; flex-direction: column; gap: 1.25rem; }
.lp-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.lp-stat-box { background: #111; border: 1px solid #1e1e1e; padding: 0.85rem; display: flex; flex-direction: column; align-items: center; gap: 0.2rem; text-align: center; }
.lp-stat-icon { font-size: 1.2rem; }
.lp-stat-value { font-size: 1.1rem; font-weight: 900; color: #fff; letter-spacing: 1px; }
.lp-stat-label { font-size: 0.58rem; font-weight: 900; letter-spacing: 2px; color: #555; }
.lp-reward-progress { display: flex; flex-direction: column; gap: 0.5rem; }
.lp-reward-header { display: flex; justify-content: space-between; font-size: 0.62rem; font-weight: 900; letter-spacing: 2px; color: #555; }
.lp-progress-bar { height: 4px; background: #1a1a1a; overflow: hidden; }
.lp-progress-fill { height: 100%; background: var(--w-red); transition: width 0.5s ease; }
.lp-reward-desc { font-size: 0.72rem; color: #444; line-height: 1.5; }
.lp-reward-desc strong { color: #ccc; }
.lp-free-truvas { background: rgba(34,197,94,0.05); border: 1px solid rgba(34,197,94,0.15); padding: 0.85rem; }
.lp-free-truvas-count { font-size: 0.75rem; font-weight: 900; color: #22c55e; display: block; margin-bottom: 0.4rem; }
.lp-free-truvas p { font-size: 0.72rem; color: #555; margin: 0; line-height: 1.5; }
.lp-board { padding: 1rem; overflow-y: auto; }
.lp-board-empty { font-size: 0.8rem; color: #444; text-align: center; padding: 2rem 0; }
.lp-board-table { width: 100%; }
.lp-th-right { text-align: right !important; }

/* ═══════════════════════════════════════
   NAV AUTH — Login Modal & User Dropdown
═══════════════════════════════════════ */
.nav-user-wrap { position: relative; }
.btn-logged { background: rgba(230,0,0,0.1) !important; border-color: var(--w-red) !important; color: var(--w-red) !important; }

.nav-auth-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.88); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  animation: fadeIn 0.15s ease;
}
.nav-auth-modal {
  background: #0d0d0d; border: 1px solid #1e1e1e; border-top: 2px solid var(--w-red);
  width: 100%; max-width: 420px; position: relative; animation: slideUp 0.2s ease;
}
.nav-auth-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: #555; font-size: 1rem; cursor: pointer; }
.nav-auth-close:hover { color: var(--w-red); }
.nav-auth-brand { padding: 1.5rem 1.5rem 1rem; border-bottom: 1px solid #111; }
.nav-auth-brand .nav-auth-eyebrow { font-size: 0.6rem; font-weight: 900; letter-spacing: 4px; color: #555; display: block; margin-bottom: 0.25rem; }
.nav-auth-brand h3 { font-size: 1.2rem; font-weight: 900; letter-spacing: 4px; color: #fff; margin: 0 0 0.3rem; }
.nav-auth-brand p { font-size: 0.72rem; color: #555; margin: 0; }
.nav-auth-tabs { display: flex; }
.nav-auth-tabs button { flex: 1; background: none; border: none; border-bottom: 2px solid transparent; color: #555; font-family: inherit; font-size: 0.65rem; font-weight: 900; letter-spacing: 2px; padding: 0.75rem; cursor: pointer; transition: all 0.15s; }
.nav-auth-tabs button.active { color: var(--w-red); border-bottom-color: var(--w-red); }
.nav-auth-form { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.85rem; }
.nav-auth-field { display: flex; flex-direction: column; gap: 0.35rem; }
.nav-auth-field label { font-size: 0.6rem; font-weight: 900; letter-spacing: 3px; color: #555; }
.nav-auth-field input { background: #111; border: 1px solid #1e1e1e; color: #fff; padding: 0.8rem 1rem; font-size: 0.9rem; font-family: inherit; outline: none; transition: border-color 0.2s; }
.nav-auth-field input:focus { border-color: var(--w-red); }
.nav-auth-field input::placeholder { color: #333; }
.nav-auth-error { font-size: 0.72rem; color: var(--w-red); }
.nav-auth-submit { background: var(--w-red); border: none; color: #fff; font-family: inherit; font-size: 0.75rem; font-weight: 900; letter-spacing: 3px; padding: 1rem; cursor: pointer; transition: background 0.2s; }
.nav-auth-submit:hover { background: #cc0000; }
.nav-auth-submit:disabled { background: #222; color: #555; cursor: not-allowed; }

.nav-user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #0d0d0d; border: 1px solid #1e1e1e; border-top: 2px solid var(--w-red);
  min-width: 220px; z-index: 9999;
  animation: slideUp 0.15s ease;
}
.nav-user-info { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem; border-bottom: 1px solid #111; }
.nav-user-tier { font-size: 1.4rem; }
.nav-user-info div { display: flex; flex-direction: column; gap: 0.2rem; }
.nav-user-info strong { font-size: 0.85rem; color: #fff; font-weight: 900; }
.nav-user-info span { font-size: 0.65rem; color: #666; letter-spacing: 1px; }
.nav-user-free { padding: 0.5rem 1rem; font-size: 0.7rem; color: #22c55e; border-bottom: 1px solid #111; }
.nav-user-actions { padding: 0.5rem; }
.nav-user-actions button { width: 100%; background: none; border: 1px solid #1e1e1e; color: #666; font-size: 0.65rem; font-weight: 900; letter-spacing: 2px; padding: 0.6rem; cursor: pointer; transition: all 0.2s; }
.nav-user-actions button:hover { border-color: var(--w-red); color: var(--w-red); }

/* ═══════════════════════════════════════
   ADMIN PANEL
═══════════════════════════════════════ */
.admin-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #050505; }
.admin-login-box { background: #0d0d0d; border: 1px solid #1e1e1e; border-top: 2px solid var(--w-red); padding: 2rem; width: 100%; max-width: 380px; }
.admin-login-box .admin-eyebrow { font-size: 0.6rem; font-weight: 900; letter-spacing: 4px; color: #555; display: block; margin-bottom: 0.5rem; }
.admin-login-box h1 { font-size: 1.5rem; font-weight: 900; letter-spacing: 4px; color: #fff; margin: 0 0 1.5rem; }
.admin-login-box input { width: 100%; background: #111; border: 1px solid #1e1e1e; color: #fff; padding: 0.85rem 1rem; font-size: 0.95rem; font-family: inherit; outline: none; box-sizing: border-box; transition: border-color 0.2s; margin-bottom: 0.5rem; }
.admin-login-box input:focus { border-color: var(--w-red); }
.admin-login-box button { width: 100%; background: var(--w-red); border: none; color: #fff; font-family: inherit; font-size: 0.8rem; font-weight: 900; letter-spacing: 3px; padding: 1rem; cursor: pointer; }
.admin-login-box button:disabled { background: #222; color: #555; cursor: not-allowed; }
.admin-error { font-size: 0.72rem; color: var(--w-red); margin: 0.3rem 0; }

.admin-shell { display: flex; min-height: 100vh; background: #050505; }
.admin-sidebar { width: 200px; flex-shrink: 0; background: #080808; border-right: 1px solid #111; display: flex; flex-direction: column; padding: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-brand { padding: 1.25rem 1rem 1rem; border-bottom: 1px solid #111; display: flex; flex-direction: column; }
.admin-brand span:first-child { font-size: 1rem; font-weight: 900; color: var(--w-red); letter-spacing: 3px; }
.admin-brand span:last-child { font-size: 0.6rem; color: #555; font-weight: 900; letter-spacing: 4px; }
.admin-nav-btn { background: none; border: none; border-left: 2px solid transparent; color: #555; font-family: inherit; font-size: 0.7rem; font-weight: 900; letter-spacing: 1px; padding: 0.85rem 1rem; cursor: pointer; text-align: left; transition: all 0.15s; width: 100%; }
.admin-nav-btn:hover { color: #888; background: rgba(255,255,255,0.02); }
.admin-nav-btn.active { color: #fff; border-left-color: var(--w-red); background: rgba(230,0,0,0.04); }
.admin-logout { margin-top: auto; border-top: 1px solid #111; color: #444; }
.admin-logout:hover { color: var(--w-red) !important; }

.admin-main { flex: 1; padding: 2rem; overflow-y: auto; }
.admin-section h2 { font-size: 1.1rem; font-weight: 900; letter-spacing: 4px; color: #fff; margin: 0 0 1.5rem; padding-bottom: 0.75rem; border-bottom: 1px solid #111; }
.admin-sub { font-size: 0.7rem; font-weight: 900; letter-spacing: 3px; color: #555; margin: 1.5rem 0 0.75rem; }
.admin-empty { font-size: 0.85rem; color: #444; padding: 1.5rem 0; }
.admin-loading { color: #555; padding: 2rem; }

.admin-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 2px; margin-bottom: 1.5rem; }
.admin-stat-card { background: #111; border: 1px solid #1e1e1e; padding: 1.25rem; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; text-align: center; }
.admin-stat-card span:first-child { font-size: 1.5rem; }
.admin-stat-card strong { font-size: 1.5rem; font-weight: 900; color: #fff; }
.admin-stat-card span:last-child { font-size: 0.58rem; font-weight: 900; letter-spacing: 2px; color: #555; }

.admin-live-status { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem; background: #111; border: 1px solid #1e1e1e; font-size: 0.8rem; color: var(--w-ash); margin-bottom: 1rem; }
.admin-live-warn { padding: 0.75rem 1rem; background: rgba(230,0,0,0.08); border: 1px solid rgba(230,0,0,0.2); color: var(--w-red); font-size: 0.78rem; font-weight: 900; letter-spacing: 1px; margin-bottom: 1rem; }

.admin-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; background: #0d0d0d; border: 1px solid #111; margin-bottom: 2px; flex-wrap: wrap; }
.admin-card-dim { opacity: 0.6; }
.admin-card-info { display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.admin-card-info strong { font-size: 0.9rem; color: #fff; font-weight: 900; }
.admin-card-info span { font-size: 0.75rem; color: #666; }
.admin-bio { color: #555 !important; font-style: italic; max-width: 500px; }
.admin-link { color: var(--w-red) !important; font-size: 0.72rem !important; word-break: break-all; }
.admin-date { font-size: 0.65rem !important; color: #444 !important; }
.admin-card-actions { display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-end; flex-shrink: 0; }

.admin-badge { font-size: 0.65rem; font-weight: 900; letter-spacing: 1px; }
.admin-btn { background: #111; border: 1px solid #1e1e1e; color: #888; font-family: inherit; font-size: 0.65rem; font-weight: 900; letter-spacing: 2px; padding: 0.45rem 0.85rem; cursor: pointer; white-space: nowrap; transition: all 0.15s; }
.admin-btn:hover { border-color: #333; color: #ccc; }
.admin-btn-green { border-color: rgba(34,197,94,0.3); color: #22c55e; background: rgba(34,197,94,0.05); }
.admin-btn-green:hover { background: rgba(34,197,94,0.1); }
.admin-btn-danger { border-color: rgba(230,0,0,0.3); color: var(--w-red); background: rgba(230,0,0,0.05); }
.admin-btn-danger:hover { background: rgba(230,0,0,0.1); }

.admin-audio { width: 100%; height: 32px; filter: invert(1) hue-rotate(180deg); margin-bottom: 0.3rem; }

.admin-live-controls { display: flex; flex-direction: column; gap: 0.75rem; padding: 1rem; background: #111; border: 1px solid #1e1e1e; }
.admin-live-form { display: flex; flex-direction: column; gap: 1rem; max-width: 500px; }
.admin-field { display: flex; flex-direction: column; gap: 0.4rem; }
.admin-field label { font-size: 0.6rem; font-weight: 900; letter-spacing: 3px; color: #555; }
.admin-field input { background: #111; border: 1px solid #1e1e1e; color: #fff; padding: 0.75rem 1rem; font-size: 0.9rem; font-family: inherit; outline: none; transition: border-color 0.2s; }
.admin-field input:focus { border-color: var(--w-red); }
.admin-table { margin-top: 0.5rem; }

/* ─── Channel Ops ─── */
.channel-now-playing { background: #0d0d0d; border: 1px solid #1e1e1e; border-left: 3px solid var(--w-red); padding: 1rem 1.25rem; margin-bottom: 1rem; }
.now-playing-label { font-size: 0.6rem; font-weight: 900; letter-spacing: 4px; color: var(--w-red); margin-bottom: 0.75rem; }
.now-playing-card { display: flex; align-items: center; gap: 1rem; }
.now-thumb { width: 64px; height: 64px; object-fit: cover; flex-shrink: 0; border: 1px solid #222; }
.now-info { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; }
.now-info strong { font-size: 1rem; color: #fff; font-weight: 900; }
.now-info span { font-size: 0.75rem; color: #666; }
.now-clip-state { font-size: 0.62rem !important; font-weight: 900 !important; letter-spacing: 2px !important; color: #444 !important; }
.now-badge { font-size: 0.65rem; font-weight: 900; letter-spacing: 2px; color: var(--w-red); border: 1px solid rgba(230,0,0,0.3); padding: 4px 10px; flex-shrink: 0; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.encoder-health-bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1rem; background: #111; border: 1px solid #1e1e1e; font-size: 0.7rem; font-weight: 900; letter-spacing: 2px; color: #555; margin-bottom: 1rem; }
.health-dot { font-size: 0.8rem; }
.health-ok { color: #22c55e; }
.health-degraded { color: #f59e0b; }
.health-critical { color: var(--w-red); }
.channel-controls { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.schedule-list { display: flex; flex-direction: column; gap: 2px; }
.schedule-item { display: flex; align-items: center; gap: 1rem; padding: 0.6rem 1rem; background: #0d0d0d; border: 1px solid #111; font-size: 0.78rem; }
.sched-time { font-size: 0.7rem; font-weight: 900; color: var(--w-red); min-width: 50px; flex-shrink: 0; }
.sched-title { flex: 1; color: #ccc; font-weight: 700; }
.sched-dur { font-size: 0.65rem; color: #444; flex-shrink: 0; }

/* ─── Library & Rights ─── */
.library-stats { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 1rem; }
.lib-stat-btn { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.85rem; background: #111; border: 1px solid #1e1e1e; color: #555; font-family: inherit; font-size: 0.62rem; font-weight: 900; letter-spacing: 1px; cursor: pointer; transition: all 0.15s; }
.lib-stat-btn:hover { color: #888; border-color: #333; }
.lib-stat-btn.active { border-color: rgba(230,0,0,0.4); background: rgba(230,0,0,0.06); color: #fff; }
.lib-state-dot { font-size: 0.7rem; }
.lib-stat-btn strong { font-size: 0.75rem; color: #fff; margin-left: 0.25rem; }
.admin-search { width: 100%; max-width: 400px; background: #111; border: 1px solid #1e1e1e; color: #fff; padding: 0.65rem 1rem; font-size: 0.85rem; font-family: inherit; outline: none; margin-bottom: 1rem; display: block; transition: border-color 0.2s; }
.admin-search:focus { border-color: var(--w-red); }
.admin-search::placeholder { color: #333; }
.library-table-wrap { overflow-x: auto; }
.clip-state-tag { font-size: 0.62rem; font-weight: 900; letter-spacing: 1px; }
.rights-tag { font-size: 0.62rem; font-weight: 900; letter-spacing: 1px; padding: 2px 6px; border: 1px solid; }
.rights-cleared { color: #22c55e; border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.05); }
.rights-pending { color: #f59e0b; border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.05); }
.rights-disputed { color: var(--w-red); border-color: rgba(230,0,0,0.3); background: rgba(230,0,0,0.05); }
.rights-expired { color: #555; border-color: #222; }
.asset-type-badge { font-size: 1rem; }

/* ─── News Appolis ─── */
.news-admin-toolbar { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.5rem; }
.news-admin-toolbar .admin-search { margin-bottom: 0; }
.pagination { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; font-size: 0.75rem; color: #555; font-weight: 900; letter-spacing: 1px; }

/* ═══════════════════════════════════════
   AD BANNER — Sistema de Anúncios Rotativos
═══════════════════════════════════════ */
.ad-banner {
  position: relative;
  border: 1px solid rgba(230,0,0,0.2);
  padding: 1rem 1.25rem 1.5rem;
  margin: 0;
  overflow: hidden;
}
.ad-banner-compact {
  padding: 0.75rem 1.25rem 1.25rem;
}
.ad-label {
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 3px;
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}
.ad-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.ad-text { flex: 1; min-width: 200px; }
.ad-title {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 2px;
  margin: 0 0 0.3rem;
  line-height: 1.2;
}
.ad-banner-compact .ad-title { font-size: 0.85rem; }
.ad-desc {
  font-size: 0.78rem;
  color: #888;
  margin: 0;
  line-height: 1.4;
}
.ad-cta-btn {
  display: inline-block;
  border: 1px solid;
  background: transparent;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 2px;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}
.ad-cta-btn:hover {
  background: currentColor;
  filter: brightness(0.15);
}
.ad-dots {
  display: flex;
  gap: 6px;
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
}
.ad-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  border: none;
  background: #333;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}
.ad-dot.active { transform: scale(1.3); }
.ad-progress-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
  background: rgba(255,255,255,0.04);
}
.ad-progress-fill {
  height: 100%;
  width: 0;
  animation: adProgressFill linear forwards;
}
@keyframes adProgressFill {
  from { width: 0; }
  to { width: 100%; }
}

/* ═══════════════════════════════════════
   IMAGE BANNER — Slideshow Rotativo
═══════════════════════════════════════ */
.img-banner-wrap {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: #050505;
}
@media (max-width: 768px) { .img-banner-wrap { height: 180px; } }
@media (min-width: 1400px) { .img-banner-wrap { height: 320px; } }

.img-banner-slide {
  display: block;
  position: absolute;
  inset: 0;
  text-decoration: none;
  transition: opacity 0.25s ease;
  opacity: 1;
}
.img-banner-slide.fading { opacity: 0; }

.img-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.3) 40%, transparent 70%);
  display: flex;
  align-items: center;
  padding: 0 3rem;
}
.img-banner-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-width: 500px;
}
.img-banner-label {
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--w-red);
  text-transform: uppercase;
}
.img-banner-caption {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.3;
  margin: 0;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}
@media (max-width: 768px) { .img-banner-caption { font-size: 0.75rem; } }
.img-banner-cta {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--w-red);
  border: 1px solid var(--w-red);
  padding: 0.4rem 1rem;
  transition: all 0.2s;
}
.img-banner-slide:hover .img-banner-cta {
  background: var(--w-red);
  color: #fff;
}

/* Dots */
.img-banner-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.img-banner-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}
.img-banner-dot.active {
  background: var(--w-red);
  border-color: var(--w-red);
  transform: scale(1.3);
}

/* Progress */
.img-banner-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,0.06);
  z-index: 10;
}
.img-banner-progress-fill {
  height: 100%;
  width: 0;
  background: var(--w-red);
  animation: imgBannerFill linear forwards;
}
@keyframes imgBannerFill { from { width: 0; } to { width: 100%; } }

/* Arrow buttons */
.img-banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  line-height: 1;
}
.img-banner-arrow:hover { background: var(--w-red); border-color: var(--w-red); }
.img-banner-arrow.prev { left: 1rem; }
.img-banner-arrow.next { right: 1rem; }

/* ═══════════════════════════════════════
   UI/UX POLISH — Global improvements
═══════════════════════════════════════ */

/* Smoother page transitions */
.main-wrapper { animation: pageFadeIn 0.25s ease; }
@keyframes pageFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Improved panel buttons */
.panel-btn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.panel-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(230,0,0,0.2);
}

/* Better focus rings for accessibility */
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--w-red);
  outline-offset: 2px;
}

/* Queue item hover lift */
.queue-item {
  transition: background 0.15s, transform 0.15s;
}
.queue-item:hover {
  background: rgba(230,0,0,0.04);
  transform: translateX(2px);
}

/* Feed event entry animation */
.feed-event {
  animation: feedSlideIn 0.3s ease;
}
@keyframes feedSlideIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: translateX(0); } }

/* Ranking table row hover */
.exception-table tbody tr {
  transition: background 0.15s;
}
.exception-table tbody tr:hover {
  background: rgba(230,0,0,0.04);
}

/* Smooth nav link underline */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 2px;
  background: var(--w-red);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

/* Improved queue vote button */
.queue-vote-btn {
  transition: all 0.2s;
}
.queue-vote-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(230,0,0,0.3);
}

/* Chat message entry animation */
.live-chat-message {
  animation: chatSlideIn 0.25s ease;
}
@keyframes chatSlideIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Sub-hover for legacy item list */
.exception-card {
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.exception-card:hover {
  border-color: rgba(230,0,0,0.3) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* ═══════════════════════════════════════
   ARTICLE CONTENT EXCEPTION (MIGRATED PHP DATA)
═══════════════════════════════════════ */
.article-content {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  text-transform: none; /* Override global uppercase */
  color: #c4c4c4;
  font-size: 1.15rem;
  line-height: 1.8;
}

.article-content h1, 
.article-content h2, 
.article-content h3, 
.article-content h4 {
  font-family: 'Rajdhani', sans-serif;
  text-transform: uppercase;
  color: var(--w-white);
  margin-top: 2.8rem;
  margin-bottom: 1.2rem;
  letter-spacing: 2px;
  line-height: 1.2;
}

.article-content h1 {
  font-size: 2.6rem;
  font-weight: 900;
  border-bottom: 2px solid var(--w-slate);
  padding-bottom: 0.8rem;
  text-shadow: 2px 2px 0px rgba(0,0,0,0.9);
}

.article-content h2 {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--w-white);
  border-left: 4px solid var(--w-red-blood);
  padding-left: 1.2rem;
}

.article-content h3 {
  font-size: 1.7rem;
  font-weight: 700;
  color: #eaeaea;
}

.article-content p {
  margin-bottom: 1.6rem;
  letter-spacing: 0.3px;
  text-align: left;
}

.article-content p:first-of-type {
  font-size: 1.3rem;
  color: #e0e0e0;
  font-weight: 500;
  line-height: 1.9;
}

.article-content a {
  color: var(--w-red-neon);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-bottom: 1px dashed rgba(255, 26, 26, 0.4);
}

.article-content a:hover {
  color: var(--w-white);
  border-bottom-color: var(--w-white);
  text-shadow: 0 0 10px rgba(255, 26, 26, 0.6);
}

.article-content img, .article-content iframe, .article-content video {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2.5rem 0;
  box-shadow: 0 15px 40px rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.05);
  display: block;
}

.article-content blockquote {
  position: relative;
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.7;
  color: var(--w-white);
  margin: 3.5rem 0;
  padding: 2.5rem 3rem;
  background: rgba(230,0,0,0.05);
  border-left: 4px solid var(--w-red-blood);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.5);
  border-radius: 0 8px 8px 0;
  font-weight: 500;
}

.article-content blockquote::before {
  content: '“';
  font-family: 'Rajdhani', sans-serif;
  position: absolute;
  top: -15px;
  left: 15px;
  font-size: 7rem;
  color: rgba(230,0,0,0.15);
  line-height: 1;
  font-weight: 900;
  pointer-events: none;
}

.article-content blockquote p {
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.article-content ul, .article-content ol {
  margin: 1.5rem 0 1.5rem 2.5rem;
  color: #c4c4c4;
}

.article-content li {
  margin-bottom: 0.8rem;
  padding-left: 0.5rem;
  line-height: 1.6;
}

.article-content ul li::marker {
  color: var(--w-red-blood);
}

.article-content strong, .article-content b {
  color: #fff;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════
   VIDEO LOOP PLAYER
   ═══════════════════════════════════════════════════════ */
.video-loop-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.loop-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(200,0,0,.15); border: 1px solid rgba(200,0,0,.4);
  padding: 4px 14px; border-radius: 4px;
  font-size: 0.75rem; font-family: var(--font-mono);
  color: var(--w-red); text-transform: uppercase; letter-spacing: 2px;
  animation: pulse-badge 2s ease-in-out infinite;
}
@keyframes pulse-badge {
  0%,100% { opacity: .7; }
  50% { opacity: 1; }
}
.video-loop-player-wrap {
  position: relative; width: 100%; padding-top: 56.25%; /* 16:9 */
  background: #000; border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px; overflow: hidden; margin-bottom: 1rem;
}
.video-loop-player-wrap iframe,
.video-loop-player-wrap > div {
  position: absolute !important; top: 0; left: 0;
  width: 100% !important; height: 100% !important;
}
.loop-now-playing {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.8rem 1.2rem; margin-bottom: 2rem;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  border-radius: 6px;
}
.loop-np-label {
  font-size: 0.65rem; font-family: var(--font-mono);
  color: var(--w-red); text-transform: uppercase;
  letter-spacing: 2px; white-space: nowrap;
}
.loop-now-playing h3 {
  flex: 1; margin: 0; font-size: 0.9rem; color: #eee;
  font-family: var(--font-head);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.loop-np-counter {
  font-size: 0.75rem; font-family: var(--font-mono);
  color: var(--w-ash); white-space: nowrap;
}
/* ── Playlist Grid ── */
.loop-playlist-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem; margin-top: 1rem; margin-bottom: 3rem;
}
.loop-playlist-card {
  position: relative; display: flex; flex-direction: column;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px; overflow: hidden; cursor: pointer;
  transition: all .25s ease; text-align: left;
  color: inherit; font-family: inherit;
}
.loop-playlist-card:hover {
  border-color: rgba(200,0,0,.3); transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}
.loop-playlist-card.active {
  border-color: var(--w-red);
  box-shadow: 0 0 12px rgba(200,0,0,.15);
}
.loop-card-thumb {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  display: block; background: #111;
}
.loop-card-meta {
  padding: 0.6rem 0.8rem; display: flex; gap: 0.5rem; align-items: flex-start;
}
.loop-card-num {
  font-size: 0.7rem; font-family: var(--font-mono);
  color: var(--w-ash); padding-top: 2px; flex-shrink: 0;
}
.loop-card-meta h4 {
  margin: 0; font-size: 0.8rem; color: #ccc;
  font-family: var(--font-head); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.loop-playlist-card.active .loop-card-meta h4 { color: #fff; }
.loop-card-playing {
  position: absolute; top: 8px; right: 8px;
  background: var(--w-red); color: #fff;
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; box-shadow: 0 2px 8px rgba(200,0,0,.4);
}

/* Admin select + input shared style */
.admin-select {
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  color: var(--w-white);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='%23888'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
}
.admin-select:focus,
.admin-select:hover { border-color: var(--w-red-blood); }

.admin-input {
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  color: var(--w-white);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
  text-transform: none;
}
.admin-input:focus { border-color: var(--w-red-blood); }
.admin-input::placeholder { color: #444; text-transform: none; }

textarea.admin-input { resize: vertical; min-height: 80px; }

/* Scrollbar styling */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: #1e1e1e; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--w-red); }

/* ═══════════════════════════════════════════════════════════════════
   MOBILE-FIRST: PiP STICKY TOP + FULLSCREEN LANDSCAPE
   Público principal: celular Android/iOS em redes 4G precárias
═══════════════════════════════════════════════════════════════════ */

/* ── Player Mobile: portrait → sticky top (como YouTube mini) ── */
@media (max-width: 768px) {

  /* Player sticky no topo em portrait */
  .mode-theater {
    position: sticky;
    top: 0;
    z-index: 8000;
    width: 100%;
    height: 56vw; /* 16:9 exato */
    max-height: 260px;
    margin: 0;
    border-radius: 0;
    border-bottom: 2px solid var(--w-red-blood);
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
  }

  /* Oculta HUD desnecessário em mobile para economizar espaço */
  .now-playing-hud {
    width: 100%;
    padding: 0.6rem 1rem;
    margin: 0;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .hud-track-info h2 { font-size: 1rem; }
  .hud-track-info p  { font-size: 0.7rem; letter-spacing: 1px; }

  /* Nav mobile compacta */
  .architectural-nav {
    height: 56px;
    padding: 0 1rem;
  }
  .brand-logotype h1 { font-size: 1.4rem; }
  .nav-links { gap: 1rem; }
  .nav-links li:not(:first-child):not(:last-child) { display: none; }

  /* PiP flutuante mobile: bottom center em vez de canto (mais fácil de interagir) */
  .mode-floating {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 56vw;
    max-height: 220px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-top: 2px solid var(--w-red-blood);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.8);
  }

  /* Grid de notícias: 1 coluna em mobile */
  .news-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }

  /* Painel twitch: scroll horizontal em mobile */
  .twitch-panels-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 2rem 1rem;
    justify-content: flex-start;
    scrollbar-width: none;
  }
  .twitch-panels-row::-webkit-scrollbar { display: none; }
  .panel-btn { min-width: 160px; padding: 0.8rem 1.2rem; font-size: 0.85rem; }

  /* Gritty scenes: 1 coluna */
  .gritty-scenes-section { padding: 3rem 1rem; }
  .scenes-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* Chat + listener: stack vertical */
  .chat-listener-grid { flex-direction: column; }

  /* Admin: sidebar vira top bar em mobile */
  .admin-shell {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem;
    gap: 0.3rem;
    flex-wrap: nowrap;
    border-right: none;
    border-bottom: 2px solid var(--w-red-blood);
    scrollbar-width: none;
  }
  .admin-sidebar::-webkit-scrollbar { display: none; }
  .admin-nav-btn {
    white-space: nowrap;
    min-width: auto;
    padding: 0.5rem 0.8rem;
    font-size: 0.7rem;
    flex-shrink: 0;
  }
  .admin-brand { display: none; }
  .admin-main { padding: 1rem; }

  /* Sponsor form: stack vertical */
  .sponsor-form { flex-direction: column; }

  /* Cards admin mais compactos */
  .admin-card { padding: 0.8rem; }
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .admin-stat-card { padding: 0.8rem; }
}

/* ── Landscape rotate → full viewport ── */
@media (max-width: 768px) and (orientation: landscape) {
  .mode-theater {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    max-height: none;
    z-index: 99999;
    border: none;
    border-radius: 0;
    margin: 0;
  }

  /* Esconde tudo exceto o player em landscape */
  .architectural-nav,
  .now-playing-hud,
  .main-wrapper > *:not(.global-player-container),
  footer, .global-footer-container {
    display: none !important;
  }

  /* Overlay de saída do fullscreen */
  .mode-theater::after {
    content: '↩ PORTRAIT';
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.6rem;
    letter-spacing: 2px;
    padding: 4px 8px;
    border: 1px solid rgba(255,255,255,0.2);
    pointer-events: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   PERFORMANCE — will-change e content-visibility para devices lentos
═══════════════════════════════════════════════════════════════════ */

/* GPU layer hints para elementos animados */
.mode-floating,
.admin-nav-btn.active,
.exception-card:hover,
.panel-btn:hover {
  will-change: transform;
}

/* Lazy render para seções fora do viewport */
.gritty-scenes-section,
.global-footer-container,
.banner-separator {
  content-visibility: auto;
  contain-intrinsic-size: 0 400px;
}

/* Imagens lazy: fade-in ao carregar */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.4s ease;
}
img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
  opacity: 1;
}

/* Previne layout shift em imagens de notícia */
.card-img-wrapper {
  aspect-ratio: 16/9;
  background: #111;
  overflow: hidden;
}
.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════════
   SKELETON LOADING — shimmer para conteúdo em carregamento
═══════════════════════════════════════════════════════════════════ */

@keyframes shimmer {
  0%   { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.skeleton {
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 1000px 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 2px;
}

.skeleton-card {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(90deg, #111 25%, #1e1e1e 50%, #111 75%);
  background-size: 1000px 100%;
  animation: shimmer 1.8s infinite linear;
}

.skeleton-line {
  height: 14px;
  margin: 8px 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 1000px 100%;
  animation: shimmer 1.5s infinite linear;
}
.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }

/* Admin loading state */
.admin-loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem;
  color: var(--w-ash);
  font-size: 0.85rem;
  letter-spacing: 2px;
}
.admin-loading::before {
  content: '';
  width: 18px; height: 18px;
  border: 2px solid #333;
  border-top-color: var(--w-red-blood);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════════════
   GLASSMORPHISM — Admin panels premium
═══════════════════════════════════════════════════════════════════ */

/* Admin section com glass background */
.admin-section {
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.04);
  border-top: 1px solid rgba(230,0,0,0.2);
}

/* Stat cards com glass hover */
.admin-stat-card {
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}
.admin-stat-card:hover {
  border-color: rgba(230,0,0,0.3);
  background: rgba(30,10,10,0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230,0,0,0.1);
}

/* Metric cards (sponsors) */
.metric-card {
  background: rgba(20,20,20,0.9);
  border: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, transform 0.2s;
}
.metric-card:hover {
  border-color: rgba(230,0,0,0.25);
  transform: scale(1.02);
}

/* Vinheta cards glass */
.vinheta-card {
  background: rgba(15,15,15,0.9);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
}
.vinheta-card:hover {
  border-color: rgba(0,230,118,0.3);
  box-shadow: 0 4px 16px rgba(0,230,118,0.06);
}

/* SEO cards glass */
.seo-card {
  background: rgba(15,15,15,0.9);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
}
.seo-card:hover {
  border-color: rgba(230,0,0,0.25);
  background: rgba(230,0,0,0.04);
}

/* Status badge pulse para ONLINE */
.admin-badge-pulse {
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Admin nav btn active: glow red */
.admin-nav-btn.active {
  box-shadow: inset 0 0 0 1px rgba(230,0,0,0.3), 0 0 12px rgba(230,0,0,0.1);
}

/* Admin card hover lift */
.admin-card {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.admin-card:hover {
  border-color: rgba(230,0,0,0.2) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* Lib stat buttons */
.lib-stat-btn {
  transition: all 0.2s ease;
  will-change: transform;
}
.lib-stat-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Locale badge transition */
.locale-badge {
  transition: all 0.2s ease;
}
.locale-active {
  transition: all 0.2s ease;
}

/* ═══════════════════════════════════════════════════════════════════
   MISC FIXES & RESPONSIVE POLISH
═══════════════════════════════════════════════════════════════════ */

/* Corrige overflow em tabelas admin em mobile */
@media (max-width: 768px) {
  .library-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .exception-table th,
  .exception-table td {
    font-size: 0.75rem;
    padding: 0.6rem 0.5rem;
    white-space: nowrap;
  }

  /* Vinheta grid: 2 colunas em mobile */
  .vinheta-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* SEO grid: 1 coluna em mobile */
  .seo-grid {
    grid-template-columns: 1fr;
  }

  /* Locale grid: scroll horizontal */
  .locale-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }

  /* Sponsor metrics: 2x2 grid */
  .sponsor-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Schedule list mais compacta */
  .schedule-item { padding: 0.5rem; font-size: 0.8rem; }
}

/* Retira text-transform de elementos onde não faz sentido */
.admin-bio,
.card-desc,
.portal-subtitle,
.card-content p,
.admin-card-info span:not(.admin-badge):not(.admin-date) {
  text-transform: none;
}

/* Smooth scroll global */
html {
  scroll-behavior: smooth;
}

/* Touch optimization */
button, [role="button"], a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Prevent font-size inflation on iOS */
html {
  -webkit-text-size-adjust: 100%;
}

/* ═══════════════════════════════════════════════════════════════════
   WEBTV — Premium MTV-Style Player
   ═══════════════════════════════════════════════════════════════════ */

.webtv-root {
  padding: 140px 1.5rem 2rem;
  min-height: 100vh;
  max-width: 1600px;
  margin: 0 auto;
}

/* ── Channel header ── */
.webtv-channel-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.webtv-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.webtv-live-dot {
  width: 10px; height: 10px;
  background: var(--w-red-blood);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
.webtv-channel-sub {
  font-size: 0.72rem;
  color: #666;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.webtv-skip-badge {
  margin-left: auto;
  font-size: 0.68rem;
  color: #ff9800;
  letter-spacing: 1px;
  border: 1px solid rgba(255,152,0,0.3);
  padding: 2px 8px;
}

/* ── Main layout ── */
.webtv-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .webtv-layout { grid-template-columns: 1fr; }
}

/* ── Player column ── */
.webtv-player-col { display: flex; flex-direction: column; gap: 1rem; }

.webtv-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--w-border-hud);
  overflow: hidden;
}
.webtv-yt-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.webtv-yt-frame iframe {
  width: 100% !important;
  height: 100% !important;
}
.webtv-overlay-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85);
  gap: 1rem;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: #555;
  z-index: 10;
}
.webtv-spinner {
  width: 36px; height: 36px;
  border: 3px solid #1a1a1a;
  border-top-color: var(--w-red-blood);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Now Playing ── */
.webtv-now-playing {
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--w-red-blood);
  padding: 1rem 1.2rem;
}
.webtv-np-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: #888;
  margin-bottom: 0.5rem;
}
.webtv-np-title {
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 1px;
  color: var(--w-white);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.webtv-np-meta {
  font-size: 0.68rem;
  color: #555;
  letter-spacing: 1px;
  margin-top: 0.4rem;
  display: flex;
  gap: 0.6rem;
}

/* ── Transport controls ── */
.webtv-controls {
  display: flex;
  gap: 0.75rem;
}
.webtv-ctrl-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #888;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}
.webtv-ctrl-btn:hover { border-color: var(--w-red-blood); color: var(--w-white); }
.webtv-ctrl-primary {
  background: rgba(153,0,0,0.15);
  border-color: var(--w-red-blood);
  color: var(--w-white);
  flex: 1;
  justify-content: center;
}
.webtv-ctrl-primary:hover { background: rgba(153,0,0,0.3); }

/* ── Sidebar playlist ── */
.webtv-sidebar {
  background: #080808;
  border: 1px solid #1a1a1a;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 180px);
  position: sticky;
  top: 80px;
}
.webtv-sidebar-header {
  padding: 0.8rem 1rem;
  background: #0d0d0d;
  border-bottom: 1px solid #1a1a1a;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 3px;
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
}
.webtv-sidebar-count { color: #555; }
.webtv-playlist-scroll {
  overflow-y: auto;
  flex: 1;
  overscroll-behavior: contain;
}
.webtv-playlist-scroll::-webkit-scrollbar { width: 3px; }
.webtv-playlist-scroll::-webkit-scrollbar-thumb { background: #2a2a2a; }

.webtv-playlist-item {
  width: 100%;
  display: flex;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid #111;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
  align-items: center;
}
.webtv-playlist-item:hover { background: rgba(255,255,255,0.04); }
.webtv-playlist-item.active {
  background: rgba(153,0,0,0.12);
  border-left: 2px solid var(--w-red-blood);
}

.webtv-item-thumb-wrap {
  position: relative;
  flex-shrink: 0;
  width: 80px;
  height: 45px;
  overflow: hidden;
  background: #111;
}
.webtv-item-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.webtv-item-playing-overlay {
  position: absolute;
  inset: 0;
  background: rgba(153,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
}

.webtv-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  flex: 1;
}
.webtv-item-num {
  font-size: 0.62rem;
  color: var(--w-red-blood);
  font-weight: 900;
  letter-spacing: 1px;
}
.webtv-item-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #ccc;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.webtv-playlist-item.active .webtv-item-title { color: #fff; }

/* ═══════════════════════════════════════════════════════════════
   WSR THEATER — Home page cinema player
   Vídeo Veo em loop + áudio HLS rádio + overlay de controles
   Inspiração: labs.google/flow/tv — fluido, épico, sem travamento
   ═══════════════════════════════════════════════════════════════ */

.wsr-theater {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background: #000;
  margin-top: 0;
}

/* Vídeo Veo — preenche todo o teatro, objeto-fit cover */
.wsr-theater-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  /* transição suave de fade ao trocar de vídeo */
  animation: wsrBgFadeIn 1.2s ease-in-out;
}

@keyframes wsrBgFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Gradiente sobre o vídeo — preserva legibilidade do overlay */
.wsr-theater::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Overlay de controles — sobre o gradiente */
.wsr-theater-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 3rem 2rem;
  gap: 0.75rem;
}

.wsr-theater-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

/* Badge AO VIVO */
.wsr-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(230, 0, 0, 0.15);
  border: 1px solid rgba(230, 0, 0, 0.5);
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ff3333;
  backdrop-filter: blur(8px);
}

.wsr-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff3333;
  animation: pulseRed 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulseRed {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.wsr-theater-title {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,0.8);
  line-height: 1;
}

.wsr-theater-sub {
  font-size: clamp(0.65rem, 1.5vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.6);
}

/* Botão play/pause do teatro */
.wsr-play-btn {
  margin-top: 1rem;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.wsr-play-btn:hover {
  background: rgba(230, 0, 0, 0.25);
  border-color: rgba(230, 0, 0, 0.7);
  transform: scale(1.08);
}

.wsr-play-btn.playing {
  background: rgba(230, 0, 0, 0.15);
  border-color: rgba(230, 0, 0, 0.5);
}

/* ═══════════════════════════════════════════════════════════════
   WSR YouTube Persistent Container — CSS-only positioning
   O iframe NUNCA se move no DOM. CSS controla modo teatro vs PiP.
   ═══════════════════════════════════════════════════════════════ */

#wsr-yt-persistent {
  overflow: hidden;
  background: #000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#wsr-yt-persistent iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
}

/* Teatro: cobre a área do teatro (fixo, atrás do overlay) */
.wsr-yt-mode-theater {
  position: fixed;
  top: 68px;
  left: 0;
  width: 100%;
  height: calc(100vh - 68px);
  z-index: 1;
}

/* PiP: pequeno no canto inferior direito (dentro da área do PiP) */
.wsr-yt-mode-pip {
  position: fixed;
  bottom: calc(1.5rem + 42px);   /* PiP bar height offset */
  right: 1.5rem;
  width: 240px;
  height: 135px;
  z-index: 9999;
  border: 1px solid rgba(230, 0, 0, 0.4);
}

/* ═══════════════════════════════════════════════════════════════
   WSR PiP — Floating compact player (outras páginas)
   ═══════════════════════════════════════════════════════════════ */

.wsr-pip {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(230,0,0,0.5);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 24px rgba(0,0,0,0.7), 0 0 0 1px rgba(230,0,0,0.15);
}
.wsr-pip.wsr-pip--visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.wsr-pip:hover {
  border-color: rgba(230, 0, 0, 0.7);
  box-shadow: 0 6px 32px rgba(0,0,0,0.7), 0 0 12px rgba(230,0,0,0.2);
}

.wsr-pip-video-wrap { position: relative; width: 240px; aspect-ratio: 16/9; overflow: hidden; background: #000; }
.wsr-pip-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.wsr-pip-yt-container { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.wsr-pip-yt-container iframe { width: 100% !important; height: 100% !important; border: 0; }
.wsr-pip-video-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.5) 100%); pointer-events: none; }

.wsr-pip-badge { position: absolute; top: 6px; left: 6px; display: flex; align-items: center; gap: 4px; background: rgba(0,0,0,0.65); border: 1px solid rgba(230,0,0,0.5); padding: 2px 7px; font-size: 0.58rem; font-weight: 800; letter-spacing: 0.12em; color: #fff; }

.wsr-pip-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.5rem 0.75rem; background: rgba(6,6,6,0.97); border-top: 1px solid rgba(230,0,0,0.25); backdrop-filter: blur(12px); }

.wsr-pip-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  overflow: hidden;
}
.wsr-pip-title { font-size: 0.67rem; font-weight: 800; letter-spacing: 0.1em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; }
.wsr-pip-sub { font-size: 0.54rem; font-weight: 600; color: rgba(255,255,255,0.38); white-space: nowrap; letter-spacing: 0.06em; }

.wsr-pip-dot {
  width: 6px;
  height: 6px;
  background: rgba(255,80,80,0.5);
  display: inline-block;
  flex-shrink: 0;
}
.wsr-pip-dot.on {
  background: #ff3333;
  box-shadow: 0 0 6px #ff3333;
  animation: pulseRed 1.4s ease-in-out infinite;
}

.wsr-pip-label {
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.85);
}

.wsr-pip-btn {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.wsr-pip-btn:hover {
  background: rgba(230, 0, 0, 0.25);
  border-color: rgba(230, 0, 0, 0.5);
}

/* ── Spacer que empurra o conteúdo da home abaixo do teatro ── */
.wsr-theater-spacer {
  display: none;
}

/* ── Responsivo ── */
@media (max-width: 640px) {
  .wsr-theater {
    height: 70svh;
    min-height: 380px;
  }

  .wsr-theater-overlay {
    padding: 2rem 1.25rem;
  }

  .wsr-play-btn {
    width: 54px;
    height: 54px;
  }

  .wsr-pip {
    bottom: 1rem;
    right: 1rem;
    padding: 0.5rem 0.75rem;
  }
}
