/* ====================================================================
   MEGA TV PRO — Prime Video 10-Foot TV Design System
   ==================================================================== */

:root {
  --pv-bg: #070709;
  --pv-surface: #0e0e12;
  --pv-surface-2: #14141b;
  --pv-sidebar-bg: rgba(7, 7, 10, 0.90);
  --pv-sidebar-expanded: rgba(11, 11, 16, 0.98);

  --pv-red: #E50914;
  --pv-red-hover: #FF1E27;
  --pv-red-dark: #B30006;
  --pv-red-glow: rgba(229, 9, 20, 0.5);
  --pv-gold: #F5C518;
  --pv-live: #E50914;

  --pv-text-main: #FFFFFF;
  --pv-text-muted: #8C8C96;
  --pv-text-dim: #555662;

  --pv-border: rgba(255, 255, 255, 0.08);
  --pv-border-focus: #FFFFFF;

  --font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --sidebar-collapsed-w: 78px;
  --sidebar-expanded-w: 240px;

  --transition-fast: 0.16s ease;
  --transition-smooth: 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--pv-bg);
  color: var(--pv-text-main);
  font-family: var(--font-family);
  overflow: hidden;
  font-size: 16px;
}

.hidden { display: none !important; }

/* Utilitários de Ícones Vetoriais SVG */
.tv-feat-svg {
  width: 22px;
  height: 22px;
  stroke: var(--pv-red);
  flex-shrink: 0;
}

.tv-svg-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  flex-shrink: 0;
}

.side-svg {
  width: 22px;
  height: 22px;
  stroke: var(--pv-text-muted);
  transition: stroke var(--transition-fast), transform var(--transition-fast);
  flex-shrink: 0;
}

.osd-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------
   1. TELA DE LOGIN (XTREAM CODES)
   -------------------------------------------------------------------- */
.screen-view {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
}

.login-backdrop-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse 90% 80% at 20% 50%, rgba(229, 9, 20, 0.14) 0%, transparent 70%),
    radial-gradient(ellipse 80% 80% at 80% 20%, rgba(229, 9, 20, 0.08) 0%, transparent 60%),
    #070709;
  z-index: 1;
}

.backdrop-gradient-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 30%, rgba(7, 7, 9, 0.95) 100%),
              linear-gradient(180deg, rgba(7, 7, 9, 0.4) 0%, #070709 100%);
}

.login-stage-container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  max-width: 1240px;
  margin: 0 auto;
}

/* LOGO CENTRALIZADO NO TOPO */
.login-header-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
}

.login-official-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 250px;
}

.login-official-logo-wrap::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 9, 20, 0.45) 0%, rgba(229, 9, 20, 0.12) 60%, transparent 75%);
  filter: blur(22px);
  pointer-events: none;
  z-index: 0;
}

.login-official-logo {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 210px;
  height: auto;
  display: block;
  mix-blend-mode: screen;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 18px rgba(229, 9, 20, 0.35));
}

.login-top-tagline {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: #D2D5E0;
  margin-top: 6px;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* CARDS LADO A LADO */
.login-cards-wrapper {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: 1060px;
  position: relative;
}

.login-card {
  flex: 1;
  max-width: 480px;
  background: rgba(13, 16, 24, 0.94);
  border: 1.5px solid rgba(229, 9, 20, 0.42);
  border-radius: 20px;
  padding: 26px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(229, 9, 20, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

#loginForm {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.login-form-card .btn-login-submit {
  margin-top: auto;
}

/* DIVISOR CENTRAL "OU" */
.login-divider-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 36px;
  margin: 0 -4px;
  z-index: 3;
}

.login-divider-line {
  flex: 1;
  width: 1.5px;
  background: linear-gradient(180deg, transparent, rgba(229, 9, 20, 0.5), transparent);
}

.login-divider-badge {
  font-size: 0.85rem;
  font-weight: 900;
  color: #E50914;
  text-shadow: 0 0 12px rgba(229, 9, 20, 0.8);
  padding: 8px 0;
  letter-spacing: 1px;
}

/* BADGES EM CÍRCULO VERMELHO (USUÁRIO / SENHA / QR CODE) */
.login-input-group {
  margin-bottom: 14px;
  text-align: left;
}

.login-badge-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.login-badge-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #E50914;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.7);
  flex-shrink: 0;
}

.login-badge-title {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #FFFFFF;
  text-transform: uppercase;
}

/* CARD DE QR CODE */
.login-qr-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.qr-card-badge-header {
  margin-bottom: 10px;
}

.qr-showcase-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
}

.qr-image-wrapper {
  width: 136px;
  height: 136px;
  background: #FFFFFF;
  border-radius: 16px;
  border: 2px solid rgba(229, 9, 20, 0.75);
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.35);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.login-qr-img {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}

.login-qr-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(0, 0, 0, 0.15);
  border-top-color: #E50914;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.qr-caption-text {
  font-size: 0.8rem;
  color: #B2B7C4;
  text-align: center;
  margin-top: 8px;
  font-weight: 500;
}

.qr-info-pills {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 10px;
}

.qr-pair-code-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qr-pair-label {
  font-size: 0.74rem;
  color: var(--pv-text-dim);
  text-transform: uppercase;
  font-weight: 700;
}

.qr-pair-code {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: #FFFFFF;
  background: rgba(229, 9, 20, 0.22);
  border: 1.5px solid rgba(229, 9, 20, 0.6);
  padding: 3px 12px;
  border-radius: 8px;
  box-shadow: 0 0 14px rgba(229, 9, 20, 0.4);
  font-family: monospace;
}

.qr-url-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: #8E98A8;
}

.qr-highlight-url {
  color: #FFFFFF;
  font-weight: 700;
}

.qr-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.qr-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: #00E676;
}

.qr-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00E676;
  box-shadow: 0 0 8px #00E676;
  animation: pulse 1.6s infinite ease-in-out;
}

.btn-refresh-qr {
  background: rgba(229, 9, 20, 0.18);
  border: 1.5px solid rgba(229, 9, 20, 0.55);
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-refresh-qr svg {
  stroke: #E50914;
  transition: transform 0.3s ease;
}

.btn-refresh-qr.focused,
.btn-refresh-qr:focus-visible {
  background: #E50914 !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 3px #FFFFFF, 0 6px 18px rgba(0, 0, 0, 0.8) !important;
  transform: scale(1.05);
}

.btn-refresh-qr.focused svg,
.btn-refresh-qr:focus-visible svg {
  stroke: #FFFFFF !important;
  transform: rotate(180deg);
}

/* PAINÉIS DO CARD DIREITO DE LOGIN (QR CODE VS TECLADO MÁGICO) */
.login-right-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.login-right-panel.hidden {
  display: none !important;
}

.login-kb-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  width: 100%;
}

.btn-toggle-qr {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-toggle-qr:hover,
.btn-toggle-qr.focused {
  background: #E50914 !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 2.5px #FFFFFF, 0 6px 18px rgba(0, 0, 0, 0.8) !important;
  transform: scale(1.05);
}

.login-virtual-keyboard {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

#loginVirtualKeyboard .tv-keyboard {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  gap: 5px !important;
  max-width: 100% !important;
  width: 100% !important;
}

#loginVirtualKeyboard .tvk-row {
  gap: 5px !important;
}

#loginVirtualKeyboard .tvk-key {
  min-height: 40px !important;
  height: 40px !important;
  font-size: 1.12rem !important;
  border-radius: 6px !important;
}

#loginVirtualKeyboard .tvk-action-key {
  min-height: 40px !important;
  height: 40px !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
}

.login-kb-footer-hint {
  font-size: 0.72rem;
  color: #8E98A8;
  text-align: center;
  margin-top: 6px;
  letter-spacing: 0.3px;
}

/* Indicador de campo em digitação ativa no formulário de login */
.input-wrap.active-typing {
  border-color: #E50914 !important;
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.6), 0 0 20px rgba(229, 9, 20, 0.45) !important;
  background: rgba(229, 9, 20, 0.08) !important;
}

.input-wrap.active-typing .input-icon svg {
  stroke: #E50914 !important;
  filter: drop-shadow(0 0 6px rgba(229, 9, 20, 0.8));
}

.app-loading-logo {
  width: 96px;
  height: 96px;
  display: block;
  margin: 0 auto 12px auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 16px rgba(229, 9, 20, 0.4));
}

/* 1.1 FORMULÁRIO MANUAL À ESQUERDA */
.login-form-card {
  width: 100%;
}

.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.card-titles .card-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.card-titles .card-desc {
  font-size: 0.88rem;
  color: var(--pv-text-dim);
}

.network-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  color: #00E676;
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #00E676;
  border-radius: 50%;
  box-shadow: 0 0 8px #00E676;
}

/* SELETOR DE SERVIDOR / DNS */
.server-select-group {
  margin-bottom: 20px;
}

.server-selector-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 7, 10, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.server-active-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.server-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pv-red);
  flex-shrink: 0;
}

.server-labels {
  display: flex;
  flex-direction: column;
}

.server-main-name {
  font-size: 0.96rem;
  font-weight: 800;
  color: #FFFFFF;
}

.server-sub-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pv-text-muted);
}

.selector-nav-arrows {
  display: flex;
  align-items: center;
  gap: 12px;
}

.arrow-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.arrow-btn:hover,
.arrow-btn.focused {
  background: var(--pv-red) !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 3px #FFFFFF, 0 8px 24px rgba(229, 9, 20, 0.7) !important;
  transform: scale(1.1);
}

.custom-server-box {
  margin-top: 10px;
}

.custom-help-text {
  display: block;
  font-size: 0.75rem;
  color: var(--pv-text-dim);
  margin-top: 6px;
}

/* CAMPOS DE FORMULÁRIO */
.form-group {
  text-align: left;
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pv-text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(7, 7, 10, 0.9);
  border: 1px solid var(--pv-border);
  border-radius: var(--radius-md);
  padding-right: 6px;
  gap: 6px;
  min-height: 56px;
  transition: all var(--transition-fast);
}

.input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 14px;
  color: var(--pv-text-dim);
}

.input-icon svg {
  stroke: var(--pv-text-muted);
}

.input-wrap input {
  flex: 1;
  width: auto;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-size: 1.15rem;
  font-family: var(--font-family);
  padding: 14px 10px;
}

.btn-input-osk {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  letter-spacing: 0.5px;
  min-height: 42px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.btn-input-osk:hover,
.btn-input-osk.focused {
  background: var(--pv-red) !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 2.5px #FFFFFF, 0 6px 18px rgba(0, 0, 0, 0.8) !important;
}

.toggle-pass {
  background: transparent;
  border: 1px solid transparent;
  color: var(--pv-text-muted);
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm);
}

.toggle-pass:hover,
.toggle-pass.focused {
  background: rgba(255, 255, 255, 0.15);
  border-color: #FFFFFF;
  box-shadow: 0 0 0 2px #FFFFFF;
}

.toggle-pass svg {
  stroke: var(--pv-text-muted);
  transition: stroke var(--transition-fast);
}



.btn-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--pv-red);
  color: #FFFFFF;
  border: none;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--font-family);
  cursor: pointer;
  min-height: 54px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  transition: all var(--transition-fast);
}

.btn-login-submit {
  width: 100%;
  min-height: 52px;
  background: linear-gradient(90deg, #E50914 0%, #B80710 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  color: #FFFFFF !important;
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  letter-spacing: 1.5px !important;
  cursor: pointer;
  transition: all 0.2s ease !important;
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.45) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 10px !important;
}

.btn-submit-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-enter-icon {
  flex-shrink: 0;
}

.btn-login-submit:hover,
.btn-login-submit.focused {
  background: #FF0A16 !important;
  box-shadow: 0 0 0 3.5px #FFFFFF, 0 0 32px rgba(229, 9, 20, 0.9) !important;
  transform: scale(1.02) !important;
  outline: none !important;
}

.login-error-msg {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.4);
  color: #FF6B6B;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.login-connecting-box {
  background: rgba(229, 9, 20, 0.12);
  border: 1.5px solid rgba(229, 9, 20, 0.4);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  animation: fadeIn 0.25s ease;
}

.connecting-spinner-ring {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--pv-red);
  border-radius: 50%;
  animation: tvSpinnerRotate 0.8s linear infinite;
  flex-shrink: 0;
}

.connecting-steps-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.connecting-step-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
}

.connecting-step-sub {
  font-size: 0.82rem;
  color: var(--pv-text-muted);
}

.login-footer {
  margin-top: 22px;
  font-size: 0.8rem;
  color: var(--pv-text-dim);
  text-align: center;
}

/* Responsividade para Telas de TV (720p HD e 1080p Full HD com Overscan) */
@media (max-height: 768px), (max-width: 1280px) {
  .login-stage-container {
    padding: 12px 24px !important;
  }
  .login-header-stage {
    margin-bottom: 12px !important;
  }
  .login-official-logo {
    max-width: 150px !important;
  }
  .login-top-tagline {
    font-size: 0.72rem !important;
    letter-spacing: 2.5px !important;
  }
  .login-cards-wrapper {
    gap: 16px !important;
    max-width: 920px !important;
  }
  .login-card {
    padding: 16px 20px !important;
    border-radius: 16px !important;
  }
  .login-badge-header {
    gap: 8px !important;
    margin-bottom: 6px !important;
  }
  .login-badge-icon {
    width: 26px !important;
    height: 26px !important;
  }
  .login-badge-icon svg {
    width: 14px !important;
    height: 14px !important;
  }
  .login-badge-title {
    font-size: 0.80rem !important;
  }
  .input-wrap {
    min-height: 46px !important;
  }
  .input-wrap input {
    font-size: 0.95rem !important;
    padding: 10px 8px !important;
  }
  .btn-login-submit {
    min-height: 46px !important;
    font-size: 0.94rem !important;
    margin-top: 12px !important;
  }
  .qr-image-wrapper {
    width: 110px !important;
    height: 110px !important;
  }
  .qr-caption-text {
    font-size: 0.72rem !important;
    margin-top: 6px !important;
  }
  .qr-info-pills {
    padding: 6px 10px !important;
    gap: 4px !important;
    margin-bottom: 8px !important;
  }
  .qr-pair-code {
    font-size: 1.05rem !important;
    padding: 2px 8px !important;
  }
  .btn-refresh-qr {
    min-height: 36px !important;
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
  }
}

/* Responsividade Mobile e Telas Menores */
@media (max-width: 960px) {
  .login-stage-container {
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    gap: 32px;
  }
  .login-brand-col {
    text-align: center;
    align-items: center;
  }
  .login-hero-title {
    font-size: 1.8rem;
  }
  .login-features-grid {
    display: none;
  }
}

/* --------------------------------------------------------------------
   2. PRIME VIDEO EXPANDABLE VERTICAL SIDEBAR
/* --------------------------------------------------------------------
   2. PRIME VIDEO EXPANDABLE VERTICAL SIDEBAR
   -------------------------------------------------------------------- */
.pv-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-collapsed-w);
  height: 100%;
  background: rgba(10, 14, 22, 0.96);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--safe-top, 24px) 10px var(--safe-bottom, 24px) 16px;
  box-sizing: border-box;
  z-index: 200;
  transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1), background 0.28s ease, box-shadow 0.28s ease;
  overflow: hidden;
}

/* Expansão da Sidebar ao focar ou classe .sidebar-expanded */
.pv-sidebar:hover,
.pv-sidebar.sidebar-expanded {
  width: var(--sidebar-expanded-w) !important;
  background: rgba(11, 14, 20, 0.98) !important;
  box-shadow: 18px 0 45px rgba(0, 0, 0, 0.92) !important;
}

.sidebar-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px;
  border-radius: var(--radius-md);
  cursor: pointer;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
  transition: all var(--transition-fast);
}

.avatar-circle {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f2738, #0e1117);
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #FFFFFF;
  flex-shrink: 0;
  margin: 0 auto;
}

.pv-sidebar.sidebar-expanded .avatar-circle,
.pv-sidebar:hover .avatar-circle {
  margin: 0;
}

.sidebar-user-info {
  display: none;
  flex-direction: column;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pv-sidebar.sidebar-expanded .sidebar-user-info,
.pv-sidebar:hover .sidebar-user-info {
  display: flex;
  opacity: 1;
  transform: translateX(0);
}

.sidebar-user-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
}

.sidebar-user-status {
  font-size: 0.72rem;
  color: var(--pv-live);
  font-weight: 600;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}

.side-btn {
  background: transparent;
  border: 1.5px solid transparent;
  color: #8C8C96;
  width: 100%;
  height: 48px;
  min-height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  transition: all var(--transition-fast);
  position: relative;
}

.pv-sidebar.sidebar-expanded .side-btn,
.pv-sidebar:hover .side-btn {
  justify-content: flex-start;
  padding: 0 14px;
  gap: 14px;
}

.side-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.side-svg {
  width: 22px;
  height: 22px;
  stroke: #8C8C96;
  transition: stroke var(--transition-fast), transform var(--transition-fast);
}

.side-label {
  display: none;
  font-size: 0.95rem;
  font-weight: 700;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  color: inherit;
}

.pv-sidebar.sidebar-expanded .side-label,
.pv-sidebar:hover .side-label {
  display: inline-block;
  opacity: 1;
  transform: translateX(0);
}

/* Estado Ativo (quando NÃO focado na sidebar) */
.side-btn.active {
  color: #FFFFFF;
  background: rgba(229, 9, 20, 0.2);
  border: 1.5px solid rgba(229, 9, 20, 0.45);
  border-radius: 12px;
}

.side-btn.active .side-svg {
  stroke: var(--pv-red);
}

/* Foco D-Pad na Sidebar */
.side-btn.focused,
.side-btn:focus-visible,
.sidebar-avatar-wrap.focused,
.sidebar-avatar-wrap:focus-visible {
  background: #FFFFFF !important;
  color: #000000 !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 3px #FFFFFF, 0 8px 24px rgba(0, 0, 0, 0.85) !important;
  transform: scale(1.05);
  border-radius: 12px;
  z-index: 50;
}

.side-btn.focused .side-svg,
.side-btn:focus-visible .side-svg {
  stroke: #000000 !important;
}

.side-btn.active.focused {
  background: var(--pv-red) !important;
  color: #FFFFFF !important;
  border-color: var(--pv-red) !important;
  box-shadow: 0 0 0 3px #FFFFFF, 0 10px 28px rgba(229, 9, 20, 0.85) !important;
  transform: scale(1.05);
}

.side-btn.active.focused .side-svg {
  stroke: #FFFFFF !important;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------
   3. TOP BRANDING WATERMARK
   -------------------------------------------------------------------- */
.pv-top-brand {
  position: fixed;
  top: 28px;
  right: 48px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 1.6rem;
  font-weight: 900;
  pointer-events: none;
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------
   4. ÁREA PRINCIPAL COM SCROLL DE CONTEÚDO
   -------------------------------------------------------------------- */
.pv-main-scroll {
  width: 100%;
  height: 100%;
  margin-left: var(--sidebar-collapsed-w);
  width: calc(100% - var(--sidebar-collapsed-w));
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.pv-view-section {
  width: 100%;
  min-height: 100vh;
  padding-bottom: 80px;
}

/* --------------------------------------------------------------------
   5. HERO BILLBOARD MASSIVO (MEGA TV PRO 10-FOOT STYLE)
   -------------------------------------------------------------------- */
.pv-hero-billboard {
  position: relative;
  width: 100%;
  height: clamp(320px, 48vh, 520px);
  min-height: 0;
  max-height: 540px;
  display: flex;
  align-items: center;
  padding: 0 60px;
  overflow: hidden;
}

.hero-backdrop-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 72%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1574375927938-d5a98e8ffe85?q=80&w=2069&auto=format&fit=crop') center 20%/cover no-repeat;
  transition: background-image 0.4s ease;
}

.hero-gradient-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(to right, var(--pv-bg) 0%, var(--pv-bg) 32%, rgba(7, 7, 9, 0.90) 55%, rgba(7, 7, 9, 0.4) 75%, transparent 100%),
    linear-gradient(to top, var(--pv-bg) 0%, var(--pv-bg) 8%, rgba(7, 7, 9, 0.75) 24%, transparent 50%);
}

.hero-info-wrapper {
  position: relative;
  z-index: 10;
  max-width: 600px;
  margin-top: 40px;
}

.hero-badge-highlight {
  display: inline-block;
  color: var(--pv-red);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-tag-network {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-title-headline {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.85);
}

.hero-synopsis-text {
  font-size: 1.05rem;
  color: var(--pv-text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-metadata-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.meta-pill {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.meta-included {
  background: rgba(229, 9, 20, 0.15);
  color: var(--pv-red);
  border-color: rgba(229, 9, 20, 0.35);
  font-weight: 800;
}

/* Botões do Hero */
.hero-actions-bar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pv-btn-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--pv-red);
  color: #FFFFFF;
  border: none;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-weight: 800;
  font-size: 1.15rem;
  font-family: var(--font-family);
  min-height: 56px;
  box-shadow: 0 8px 24px var(--pv-red-glow);
  transition: all var(--transition-fast);
}

.pv-btn-play .btn-play-svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.pv-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(30, 36, 48, 0.92);
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--font-family);
  min-height: 56px;
  transition: all var(--transition-fast);
}

.pv-btn-secondary:hover,
.pv-btn-secondary.focused {
  background: rgba(255, 255, 255, 0.3) !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 3px #FFFFFF, 0 10px 28px rgba(0, 0, 0, 0.85) !important;
  transform: scale(1.06);
}

.pv-btn-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  border-radius: 50%;
  background: rgba(30, 36, 48, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pv-btn-icon svg {
  stroke: #FFFFFF;
}

/* --------------------------------------------------------------------
   6. BARRA DE FILTROS SUB-NAV
   -------------------------------------------------------------------- */
.pv-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 60px;
  margin-bottom: 24px;
}

.pv-filter-pill {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--pv-text-muted);
  font-size: 1.05rem;
  font-weight: 700;
  min-height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.pv-filter-pill.active {
  background: rgba(229, 9, 20, 0.25) !important;
  color: #FFFFFF !important;
  border-color: var(--pv-red) !important;
  box-shadow: 0 2px 10px rgba(229, 9, 20, 0.4);
}

.pv-filter-pill.active.focused {
  background: var(--pv-red) !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 3.5px #FFFFFF, 0 10px 24px rgba(229, 9, 20, 0.75) !important;
}

/* --------------------------------------------------------------------
   7. CARROSSEL DE CARDS 16:9
   -------------------------------------------------------------------- */
.pv-content-row {
  padding: 0 60px;
  margin-bottom: 38px;
}

.row-heading {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #FFFFFF;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-live-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E50914;
}

.row-cards-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 22px 12px 28px 12px;
  margin: -10px -12px -10px -12px;
  scroll-behavior: smooth;
}

.pv-card-16-9 {
  position: relative;
  width: 280px;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #14141b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.24s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease;
}

.pv-card-16-9 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pv-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 14px 12px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 7, 9, 0.95) 100%);
  display: flex;
  flex-direction: column;
}

.pv-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pv-card-sub {
  font-size: 0.75rem;
  color: var(--pv-text-muted);
  font-weight: 600;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --------------------------------------------------------------------
   8. CANAIS AO VIVO (HUB VIEW)
   -------------------------------------------------------------------- */
.live-tv-hub-layout {
  display: grid;
  grid-template-columns: 310px 1fr 340px;
  gap: 20px;
  height: calc(100vh - 40px);
  padding: 20px 30px;
}

.live-cats-column, .live-channels-column, .live-preview-column {
  background: rgba(14, 14, 20, 0.90);
  border: 1px solid var(--pv-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.col-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--pv-border);
}

.col-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
}

.cat-counter-badge,
.channels-count-badge {
  background: rgba(255, 255, 255, 0.1);
  color: var(--pv-text-muted);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.live-cats-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--pv-border);
  border-radius: var(--radius-md);
  color: #C0C5D0;
  font-size: 0.98rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.cat-item:hover,
.cat-item.focused {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 3px #FFFFFF, 0 8px 24px rgba(0, 0, 0, 0.85) !important;
  transform: scale(1.02);
}

.cat-item.active {
  background: rgba(229, 9, 20, 0.25) !important;
  color: #FFFFFF !important;
  border-left: 4px solid var(--pv-red) !important;
  box-shadow: inset 4px 0 0 var(--pv-red) !important;
  border-color: rgba(229, 9, 20, 0.4) !important;
  font-weight: 800;
}

.cat-item.active.focused {
  background: var(--pv-red) !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 3.5px #FFFFFF, 0 10px 28px rgba(229, 9, 20, 0.75) !important;
  transform: scale(1.04);
}

.col-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--pv-border);
}

.category-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.col-header-row h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--pv-border);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  min-height: 46px;
}

.search-box svg {
  stroke: var(--pv-text-muted);
  flex-shrink: 0;
}

.search-box input {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 0.95rem;
  font-family: var(--font-family);
  outline: none;
}

.live-channels-grid {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.channel-card {
  min-height: 94px;
  height: 94px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--pv-border);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.channel-card:hover,
.channel-card.focused {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 3.5px #FFFFFF, 0 14px 34px rgba(0, 0, 0, 0.95) !important;
  transform: scale(1.04);
  z-index: 20;
}

.channel-card.active-playing {
  border-color: var(--pv-red) !important;
  background: rgba(229, 9, 20, 0.22) !important;
  box-shadow: 0 0 0 2px var(--pv-red);
}

.channel-card.active-playing::before {
  content: '● NO AR';
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #FFFFFF;
  background: var(--pv-red);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.channel-logo-wrap {
  width: 70px;
  height: 70px;
  min-width: 70px;
  min-height: 70px;
  background: #000000;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.channel-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.channel-logo-wrap img.logo-fallback,
.preview-logo-holder img.logo-fallback,
img.logo-fallback {
  max-width: 70% !important;
  max-height: 70% !important;
  object-fit: contain !important;
  opacity: 0.85;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
}

.channel-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.channel-card-info h4 {
  font-size: 1.12rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pv-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.preview-box {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  height: 100%;
  overflow-y: auto;
}

/* Card de EPG no Preview de Canais */
.preview-epg-card {
  margin-top: 18px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.epg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.epg-badge-live {
  font-size: 0.72rem;
  font-weight: 800;
  color: #FFFFFF;
  background: var(--pv-red);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
}

.epg-time-range {
  font-size: 0.82rem;
  color: var(--pv-text-muted);
  font-weight: 600;
}

.epg-prog-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.3;
}

.epg-prog-desc {
  font-size: 0.85rem;
  color: var(--pv-text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.epg-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
}

.epg-progress-fill {
  height: 100%;
  background: var(--pv-red);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.epg-next-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.epg-next-label {
  color: var(--pv-gold);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
}

.epg-next-title {
  color: #E0E2EC;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-logo-holder {
  position: relative;
  width: 150px;
  height: 150px;
  background: #000;
  border-radius: var(--radius-lg);
  border: 1px solid var(--pv-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
  padding: 16px;
}

.preview-logo-holder img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.badge-live-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--pv-live);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 4px;
}

.preview-meta-details {
  display: flex;
  gap: 8px;
  margin: 14px 0 20px 0;
}

.meta-item-tag {
  background: rgba(255, 255, 255, 0.1);
  color: #C0C5D0;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.btn-watch-large {
  width: 100%;
  min-height: 52px;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------
   9. VOD & SÉRIES GRID
   -------------------------------------------------------------------- */
.vod-page-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 60px 10px 60px;
}

.vod-header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.quick-filter-chips-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quick-filter-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--pv-text-muted);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  min-height: 48px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.quick-filter-btn.active {
  background: rgba(229, 9, 20, 0.25) !important;
  color: #FFFFFF !important;
  border-color: var(--pv-red) !important;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
}

.quick-filter-btn:hover,
.quick-filter-btn.focused {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 3px #FFFFFF, 0 8px 20px rgba(0, 0, 0, 0.8) !important;
  transform: scale(1.05);
}

.quick-filter-btn.active.focused {
  background: var(--pv-red) !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 3.5px #FFFFFF, 0 10px 24px rgba(229, 9, 20, 0.75) !important;
}

.categories-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  position: relative;
}

.carousel-arrow-btn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.carousel-arrow-btn:hover,
.carousel-arrow-btn.focused {
  background: var(--pv-red) !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 3px #FFFFFF, 0 8px 24px rgba(229, 9, 20, 0.8) !important;
  transform: scale(1.12);
}

.category-pills-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 6px 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  scroll-behavior: smooth;
}

.category-pills-row::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--pv-border);
  color: var(--pv-text-muted);
  font-size: 1rem;
  font-weight: 700;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.cat-pill.active {
  background: rgba(229, 9, 20, 0.25) !important;
  color: #FFFFFF !important;
  border-color: var(--pv-red) !important;
  box-shadow: 0 2px 10px rgba(229, 9, 20, 0.4) !important;
  font-weight: 700;
}

.cat-pill.active.focused {
  background: var(--pv-red) !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 3.5px #FFFFFF, 0 10px 24px rgba(229, 9, 20, 0.75) !important;
  transform: scale(1.08) !important;
}

.cat-pill:hover,
.cat-pill.focused {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 3px #FFFFFF, 0 8px 20px rgba(0, 0, 0, 0.8) !important;
  transform: scale(1.06);
}

.vod-posters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 24px;
  padding: 16px 60px 60px 60px;
}

.virtual-spacer-top,
.virtual-spacer-bottom {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  pointer-events: none;
}

.poster-card {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #141721;
  border: 1px solid var(--pv-border);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder Elegante para Filmes/Séries sem Poster */
.poster-placeholder-card {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #1c1e2b 0%, #0d0e14 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  border-radius: inherit;
  position: relative;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
}

.placeholder-film-icon {
  width: 44px;
  height: 44px;
  color: var(--pv-red);
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 10px rgba(229, 9, 20, 0.4));
}

.placeholder-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.poster-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 12px 12px 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 8, 10, 0.95) 100%);
  display: flex;
  flex-direction: column;
}

.vertical-scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--pv-text-muted);
  text-align: center;
  letter-spacing: 0.5px;
}

.poster-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------
   10. BUSCA UNIVERSAL COM TECLADO DE TV EMBUTIDO (SPLIT SCREEN)
   -------------------------------------------------------------------- */
.search-tv-layout {
  display: grid;
  grid-template-columns: minmax(360px, 420px) 1fr;
  gap: 28px;
  padding: var(--safe-top, 32px) var(--safe-x, 48px) var(--safe-bottom, 48px) var(--safe-x, 48px);
  min-height: calc(100vh - 60px);
  box-sizing: border-box;
}

.search-tv-left-pane {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.search-pane-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-pane-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.3px;
}

.search-large-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 10px 16px;
  min-height: 52px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-large-bar:focus-within {
  border-color: #FFFFFF;
  box-shadow: 0 0 0 2.5px #FFFFFF, 0 6px 20px rgba(229, 9, 20, 0.35);
}

.search-bar-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pv-red);
}

.search-large-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-size: 1.15rem;
  font-family: var(--font-family);
  font-weight: 700;
}

.search-large-bar input::placeholder {
  color: #727A8E;
  font-size: 1rem;
  font-weight: 600;
}

.btn-clear-search {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #FFFFFF;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-clear-search:hover,
.btn-clear-search.focused {
  background: var(--pv-red) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 0 2px #FFFFFF;
}

/* Abas / Filtros Rápidos de Conteúdo */
.search-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 4px 0 14px 0;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.search-filter-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #A0A5B5;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.search-filter-pill.active {
  background: rgba(229, 9, 20, 0.22);
  border-color: var(--pv-red);
  color: #FFFFFF;
}

.search-filter-pill:hover,
.search-filter-pill.focused {
  background: var(--pv-red) !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 2.5px #FFFFFF;
  transform: scale(1.04);
}

.filter-count {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  font-weight: 800;
}

.search-quick-chips-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px;
}

.chip-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--pv-border);
  color: var(--pv-text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  min-height: 42px;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.chip-item:hover,
.chip-item.focused {
  background: var(--pv-red) !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 2.5px #FFFFFF, 0 6px 18px rgba(0, 0, 0, 0.8) !important;
  transform: scale(1.05);
}

.search-tv-right-pane {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.search-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 16px;
}

.search-header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-results-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
}

.search-shortcut-hint {
  font-size: 0.82rem;
  color: #7E8698;
  font-weight: 600;
}

.results-stats-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  width: 100%;
}

.search-results-grid .pv-card-16-9,
.search-results-grid .search-channel-card {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* Card Dedicado de Canal Ao Vivo na Busca */
.search-channel-card {
  position: relative;
  height: 130px;
  background: #090C12;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.search-channel-card:hover,
.search-channel-card.focused {
  transform: scale(1.05);
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 3px #FFFFFF, 0 8px 24px rgba(0, 0, 0, 0.9) !important;
  z-index: 10;
}

.search-channel-logo-box {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px 38px 20px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.search-channel-logo-box img {
  max-width: 65%;
  max-height: 60%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.search-channel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 7, 11, 0.92) 50%, #05070B 100%);
  padding: 6px 12px 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.search-channel-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.search-card-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.65);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  transition: all var(--transition-fast);
}

.search-card-fav-btn:hover,
.search-card-fav-btn.focused {
  background: #FFD700 !important;
  color: #000000 !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 2px #FFFFFF;
  transform: scale(1.15);
}

.search-card-fav-btn.is-favorited {
  background: rgba(255, 215, 0, 0.22);
  color: #FFD700;
  border: 1.5px solid #FFD700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

/* Toast de Notificação da Busca */
.search-toast {
  position: fixed;
  top: 28px;
  right: 48px;
  background: rgba(10, 14, 22, 0.98);
  border: 1.5px solid #FFD700;
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.9);
  z-index: 9999;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.search-toast.hidden {
  opacity: 0;
  transform: translateY(-12px);
  display: none !important;
}

/* Discovery Header inside Search Results */
.search-discovery-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 4px 0;
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 800;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 8px;
}
.search-discovery-header:first-child {
  margin-top: 0;
}

@media (max-width: 1366px), (max-height: 768px) {
  .search-tv-layout {
    grid-template-columns: minmax(320px, 380px) 1fr;
    gap: 20px;
    padding: var(--safe-top, 24px) var(--safe-x, 32px) var(--safe-bottom, 32px) var(--safe-x, 32px);
  }
  .search-large-bar {
    min-height: 44px;
    padding: 6px 12px;
  }
  .search-large-bar input {
    font-size: 1rem;
  }
  .search-pane-title {
    font-size: 1.25rem;
  }
  .search-filter-pill {
    padding: 5px 12px;
    font-size: 0.8rem;
  }
  .search-channel-card {
    height: 110px;
  }
  .search-channel-logo-box {
    padding: 10px 14px 28px 14px;
  }
  .search-results-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
  }
  .search-results-grid .pv-card-16-9,
  .search-results-grid .search-channel-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
}

/* --------------------------------------------------------------------
   10.1 TELA INTEIRA DE SÉRIES & EPISÓDIOS (SERIES DETAIL SCREEN)
   -------------------------------------------------------------------- */
.series-detail-screen,
.movie-detail-screen {
  padding: 24px 50px 60px 50px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.series-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.btn-series-back {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  transition: all var(--transition-fast);
}

.btn-series-back:hover,
.btn-series-back.focused {
  background: var(--pv-red) !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 3px #FFFFFF, 0 8px 24px rgba(0, 0, 0, 0.8) !important;
  transform: scale(1.04);
}

.series-breadcrumbs {
  color: var(--pv-text-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.series-hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--pv-border);
  background: #0e0e14;
  min-height: 340px;
  display: flex;
  align-items: center;
}

.series-hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 25%;
  opacity: 0.28;
  filter: blur(4px);
}

.series-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 32px;
  padding: 32px 40px;
  align-items: center;
}

.series-poster-frame {
  width: 180px;
  height: 270px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #000;
}

.series-poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.series-info-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.series-exclusive-tag {
  color: var(--pv-red);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.series-detail-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.2;
}

.series-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-pill {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

.meta-pill.highlight-pill {
  background: rgba(229, 9, 20, 0.2);
  border: 1px solid var(--pv-red);
  color: #FFFFFF;
}

.series-synopsis-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #C0C5D0;
  max-width: 800px;
}

.series-quick-actions {
  margin-top: 6px;
}

.series-seasons-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.seasons-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #FFFFFF;
}

.seasons-tabs-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 4px 12px 4px;
}

.season-tab-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--pv-border);
  color: var(--pv-text-muted);
  font-size: 0.98rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  min-height: 48px;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.season-tab-btn:hover,
.season-tab-btn.focused {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 3px #FFFFFF, 0 8px 24px rgba(0, 0, 0, 0.85) !important;
  transform: scale(1.04);
}

.season-tab-btn.active {
  background: rgba(229, 9, 20, 0.25) !important;
  color: #FFFFFF !important;
  border-color: var(--pv-red) !important;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
  font-weight: 700;
}

.season-tab-btn.active.focused {
  background: var(--pv-red) !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 3.5px #FFFFFF, 0 10px 24px rgba(229, 9, 20, 0.75) !important;
  transform: scale(1.06);
}

.episodes-heading {
  font-size: 1.2rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.episodes-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 18px;
}

.episode-card-tv {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--pv-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  min-height: 86px;
  transition: all var(--transition-fast);
}

.episode-card-tv:hover,
.episode-card-tv.focused {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 3px #FFFFFF, 0 14px 32px rgba(0, 0, 0, 0.9) !important;
  transform: scale(1.02);
}

.ep-badge-num {
  font-size: 1rem;
  font-weight: 900;
  color: var(--pv-gold);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.ep-info-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.ep-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ep-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ep-duration {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pv-text-muted);
}

.ep-plot-preview {
  font-size: 0.85rem;
  color: var(--pv-text-muted);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ep-action-play {
  flex-shrink: 0;
}

.ep-play-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pv-red);
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

/* --------------------------------------------------------------------
   10.2 TV ON-SCREEN VIRTUAL KEYBOARD (OSK)
   -------------------------------------------------------------------- */
.tv-keyboard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(14, 14, 20, 0.95);
  border: 1px solid var(--pv-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  max-width: 620px;
  width: 100%;
}

.tvk-modal-dialog .tv-keyboard {
  max-width: 100%;
}

.tvk-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.tvk-key {
  flex: 1;
  min-height: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.05s ease, border-color 0.05s ease;
  user-select: none;
}

.tvk-key:hover,
.tvk-key.focused {
  background: #FFFFFF !important;
  color: #000000 !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 3px #FFFFFF, 0 4px 14px rgba(0, 0, 0, 0.85) !important;
  transform: scale(1.05);
  z-index: 50;
}

.tvk-action-key {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: rgba(229, 9, 20, 0.2);
  border-color: rgba(229, 9, 20, 0.45);
  color: #FFFFFF;
  min-height: 56px;
  height: 56px;
}

.tvk-action-key[data-action="done"] {
  background: var(--pv-red);
  color: #FFFFFF;
}

.tvk-action-key:hover,
.tvk-action-key.focused {
  background: #FF1E27 !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 0 3.5px #FFFFFF, 0 10px 28px rgba(229, 9, 20, 0.8) !important;
  transform: scale(1.08);
}

/* Histórico de Buscas Recentes */
.search-recent-wrap {
  margin: 12px 0 16px 0;
  text-align: left;
}

.search-recent-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--pv-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-recent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recent-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #E2E4EC;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.recent-chip:hover,
.recent-chip.focused {
  background: var(--pv-red) !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 0 0 3px #FFFFFF, 0 6px 18px rgba(0, 0, 0, 0.8) !important;
  transform: scale(1.06);
}

/* Modal do Teclado para Login e Inputs */
.tvk-modal-backdrop {
  z-index: 2000;
}

.tvk-modal-dialog {
  background: var(--pv-surface);
  border: 2px solid var(--pv-red);
  border-radius: var(--radius-lg);
  padding: 30px;
  max-width: 640px;
  width: 100%;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tvk-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tvk-modal-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
}

.tvk-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
}

.tvk-modal-input-wrap {
  width: 100%;
}

.tvk-modal-input {
  width: 100%;
  min-height: 54px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid var(--pv-red);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  color: #FFFFFF;
  font-size: 1.3rem;
  font-family: var(--font-family);
  font-weight: 700;
  outline: none;
}

/* --------------------------------------------------------------------
   11. MODAIS E PLAYER UNIVERSAL
   -------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 9, 14, 0.96);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.modal-dialog {
  background: var(--pv-surface);
  border: 1px solid var(--pv-border);
  border-radius: var(--radius-lg);
  max-width: 860px;
  width: 100%;
  display: flex;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
}

.modal-poster-col {
  width: 320px;
  flex-shrink: 0;
  background: #000;
}

.modal-poster-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info-col {
  padding: 36px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #FFF;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-weight: 700;
}

.modal-meta-tags {
  display: flex;
  gap: 8px;
  margin: 14px 0 20px 0;
}

.badge-tag {
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

.modal-plot {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--pv-text-muted);
  margin-bottom: 28px;
}

.series-dialog {
  flex-direction: column;
  max-height: 85vh;
  padding: 32px;
}

.modal-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.seasons-tabs-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 6px 4px 14px 4px;
  border-bottom: 1px solid var(--pv-border);
  margin-bottom: 20px;
}

.episodes-list {
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.episode-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--pv-border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition-fast);
}

/* Player */
.player-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 1000;
  overflow: hidden;
}

#videoPlayer {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-osd {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.player-osd.hidden-osd { opacity: 0; }
.player-osd * { pointer-events: auto; }

.osd-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, transparent 100%);
  padding: 20px;
  border-radius: var(--radius-md);
}

.osd-btn-back {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.osd-stream-info { text-align: center; }
.osd-stream-type { font-size: 0.75rem; font-weight: 800; color: var(--pv-live); letter-spacing: 1px; }
.osd-stream-title { font-size: 1.4rem; font-weight: 800; margin-top: 4px; }
.osd-clock { font-size: 1.2rem; font-weight: 700; color: var(--pv-text-muted); }

.osd-zapping-hud {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(7, 8, 10, 0.94);
  border: 2px solid var(--pv-red);
  padding: 24px 48px;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), 0 0 25px var(--pv-red-glow);
  display: flex;
  align-items: center;
  gap: 20px;
}

.hud-channel-num { font-size: 3rem; font-weight: 900; color: var(--pv-gold); }
.hud-channel-name { font-size: 2rem; font-weight: 800; }

.osd-bottom {
  background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, transparent 100%);
  padding: 24px;
  border-radius: var(--radius-md);
}

.osd-progress-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.osd-progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}

.osd-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--pv-red);
  box-shadow: 0 0 10px var(--pv-red-glow);
  border-radius: 4px;
}

.osd-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.controls-left,
.controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.osd-ctrl-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.osd-ctrl-btn.is-muted {
  background: rgba(229, 9, 20, 0.28);
  border-color: var(--pv-red);
  color: #FF5A5F;
}

.osd-ctrl-btn svg {
  display: block;
}

/* Banner Flutuante de Desmutar */
.player-unmute-banner {
  position: absolute;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(14, 14, 18, 0.96);
  border: 2px solid var(--pv-red);
  border-radius: var(--radius-lg);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 25px var(--pv-red-glow);
  z-index: 1050;
  animation: slideDownToast 0.35s ease;
}

@keyframes slideDownToast {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.unmute-pulse-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.2);
  border: 1px solid var(--pv-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pv-red);
  flex-shrink: 0;
  animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(229, 9, 20, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0); }
}

.unmute-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.unmute-text strong {
  font-size: 1rem;
  color: #FFFFFF;
}

.unmute-text span {
  font-size: 0.85rem;
  color: var(--pv-text-muted);
}

.btn-unmute-action {
  background: var(--pv-red);
  color: #FFFFFF;
  border: none;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  box-shadow: 0 4px 14px var(--pv-red-glow);
}

.btn-unmute-action:hover,
.btn-unmute-action.focused {
  background: var(--pv-red-hover);
  transform: scale(1.05);
  box-shadow: 0 6px 20px var(--pv-red-glow);
}

/* Badges de Tipo e Ao Vivo */
.badge-tag-type {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-tag-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--pv-live);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.8px;
  box-shadow: 0 0 10px var(--pv-red-glow);
}

.badge-tag-live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #FFFFFF;
  border-radius: 50%;
  animation: liveBlink 1.2s infinite;
}

@keyframes liveBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

.rating-star-svg {
  width: 13px;
  height: 13px;
  fill: var(--pv-gold);
  color: var(--pv-gold);
  vertical-align: -1px;
}

.player-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.spinner-ring {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--pv-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================== */
/* PLAYER ERROR OVERLAY & TV OSD HARDENING                        */
/* ============================================================== */
.player-error-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 11, 16, 0.98);
  z-index: 1060;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  padding: 40px;
  animation: fadeIn 0.3s ease;
}

.player-error-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.2);
  border: 2px solid var(--pv-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pv-red);
  box-shadow: 0 0 35px var(--pv-red-glow);
}

.player-error-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.5px;
}

.player-error-msg {
  font-size: 1.1rem;
  color: var(--pv-text-muted);
  max-width: 580px;
  line-height: 1.6;
}

.player-error-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
}

.btn-secondary-action {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition-fast);
}

.btn-secondary-action:hover,
.btn-secondary-action.focused {
  background: rgba(255, 255, 255, 0.26) !important;
  border-color: #FFFFFF !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 0 3px #FFFFFF, 0 10px 28px rgba(0, 0, 0, 0.8) !important;
  transform: scale(1.06);
}

/* OSD Controles Enlarger (54px) & Scrubber Glow */
.osd-ctrl-btn {
  min-height: 54px;
  min-width: 54px;
  padding: 12px 20px;
  font-size: 1rem;
}

.osd-progress-bar {
  height: 14px !important;
  border-radius: 7px !important;
  background: rgba(255, 255, 255, 0.24) !important;
  position: relative;
}

.osd-progress-fill {
  position: relative;
  border-radius: 7px !important;
}

.osd-progress-fill::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background: #FFFFFF;
  border: 3px solid var(--pv-red);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--pv-red-glow), 0 0 6px #FFFFFF;
}

/* Destaque Visual no Canal Ativo em Reprodução */
.channel-card.is-playing {
  border-color: var(--pv-red) !important;
  background: rgba(229, 9, 20, 0.16) !important;
  box-shadow: 0 0 16px rgba(229, 9, 20, 0.5) !important;
}

.channel-card.is-playing::before {
  content: "NO AR";
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--pv-red);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  animation: liveBlink 1.4s infinite;
}

/* ====================================================================
   ESTILIZAÇÃO DE LEGENDAS DE CINEMA PARA SMART TV (::cue)
   ==================================================================== */
video::cue {
  background-color: rgba(0, 0, 0, 0.75) !important;
  color: #FFFFFF !important;
  font-family: 'Outfit', 'Inter', -apple-system, sans-serif !important;
  font-size: clamp(1.2rem, 2.4vw, 1.9rem) !important;
  font-weight: 600 !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95), 0 0 2px #000000 !important;
  line-height: 1.4 !important;
  padding: 4px 14px !important;
  border-radius: 6px !important;
}

/* Feedback OSD Flutuante de Troca de Áudio e Legendas */
.player-track-toast {
  position: absolute;
  top: 40px;
  right: 50px;
  background: rgba(14, 16, 22, 0.94);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 4px solid var(--pv-red);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85);
  z-index: 1000;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.player-track-toast.hidden {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

/* ====================================================================
   MODAL DE CONFIRMAÇÃO DE SAÍDA DA TV (PREVINE FECHAMENTO ACIDENTAL)
   ==================================================================== */
.exit-modal-dialog {
  background: #111319;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 32px 36px;
  width: 90%;
  max-width: 480px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95);
  animation: fadeIn 0.15s ease-out;
}

.exit-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.14);
  border: 1.5px solid rgba(229, 9, 20, 0.35);
  color: #E50914;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.exit-modal-dialog h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.exit-modal-dialog p {
  font-size: 0.98rem;
  color: #A0A5B5;
  line-height: 1.45;
  margin-bottom: 24px;
}

.exit-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
}

.exit-modal-actions button {
  flex: 1;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-danger-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.btn-danger-action.focused {
  background: #E50914 !important;
  border-color: #FFFFFF !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 0 3px #FFFFFF, 0 8px 24px rgba(229, 9, 20, 0.8) !important;
}


