/* ===================================================
   ZONAE PLAYER PC - ESTILOS PRINCIPALES
   Colores: Fondo #0b0f19, Tarjetas #121622, Acento #00E676
   =================================================== */

:root {
  --bg-dark: #0b0f19;
  --bg-card: rgba(18, 24, 38, 0.88);
  --bg-card-hover: rgba(28, 36, 56, 0.95);
  --accent-green: #00E676;
  --accent-green-hover: #00c853;
  --accent-green-glow: rgba(0, 230, 118, 0.35);
  --accent-blue: #00b0ff;
  --accent-red: #ff3d71;
  --text-primary: #ffffff;
  --text-secondary: #9aa5b8;
  --text-muted: #5e6b82;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 230, 118, 0.5);
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-family: var(--font-main);
  background-color: #0b0f19;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 230, 118, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 176, 255, 0.04) 0%, transparent 40%);
  color: #ffffff;
  color: var(--text-primary);
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #00E676;
  background: var(--accent-green);
}

.hidden {
  display: none !important;
}

/* ===================================================
   WEB TOP BAR
   =================================================== */
#title-bar {
  height: 42px;
  background: #070a11;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  z-index: 9999;
}

.title-bar-drag {
  display: flex;
  align-items: center;
}

.title-bar-icon {
  width: 22px;
  height: 22px;
  margin-right: 10px;
}

.title-bar-text {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fff;
}

.title-bar-text span {
  color: #00E676;
  color: var(--accent-green);
}

.title-bar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.web-device-badge {
  font-size: 11px;
  font-weight: 600;
  color: #00E676;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
}

.btn-web-tool {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #C5D1E0;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-web-tool:hover {
  background: rgba(0, 230, 118, 0.2);
  border-color: #00E676;
  color: #fff;
}

/* ===================================================
   APP WRAPPER & GLOBAL FEEDBACK
   =================================================== */
#app-wrapper {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
}

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

#osd-toast {
  position: fixed;
  top: 50px;
  right: 20px;
  background: rgba(14, 20, 32, 0.95);
  border: 1px solid #00E676;
  border: 1px solid var(--accent-green);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 230, 118, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 12px var(--accent-green-glow);
  z-index: 10000;
  animation: slideDown 0.25s ease-out;
}

#dial-badge {
  position: fixed;
  top: 60px;
  left: 30px;
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid #00E676;
  border: 2px solid var(--accent-green);
  color: #00E676;
  color: var(--accent-green);
  font-size: 22px;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 8px;
  z-index: 10000;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================================================
   1. PANTALLA DE LOGIN
   =================================================== */
#login-container {
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.login-layout {
  display: flex;
  gap: 35px;
  max-width: 920px;
  width: 100%;
  align-items: stretch;
}

.login-info-card, .login-form-card {
  background: #121826;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 35px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.login-info-card {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand-header .login-logo {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 4px 15px rgba(0, 230, 118, 0.25);
}

.brand-header h1 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #fff;
}

.brand-header h1 span {
  color: #00E676;
  color: var(--accent-green);
}

.brand-subtitle {
  color: #9aa5b8;
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 4px;
}

.mac-activation-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-top: 25px;
}

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

.mac-header-title {
  color: #00E676;
  color: var(--accent-green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.mac-desc {
  font-size: 12px;
  color: #9aa5b8;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 12px;
}

.mac-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.5);
  border: 1px dashed rgba(0, 230, 118, 0.5);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.mac-code {
  font-family: monospace;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 1.5px;
}

.mac-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #5e6b82;
  color: var(--text-muted);
}

.pulsing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #00E676;
  background-color: var(--accent-green);
  box-shadow: 0 0 8px #00E676;
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.login-form-card {
  flex: 0.9;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-form-card h2 {
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 700;
  color: #fff;
}

.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.input-group label {
  font-size: 12px;
  font-weight: 600;
  color: #9aa5b8;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.input-group input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 11px 14px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.input-group input:focus {
  border-color: #00E676;
  border-color: var(--accent-green);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.35);
  box-shadow: 0 0 10px var(--accent-green-glow);
}

.error-text {
  color: #ff3d71;
  color: var(--accent-red);
  font-size: 12px;
  margin-bottom: 12px;
  min-height: 18px;
  font-weight: 500;
}

/* ===================================================
   BOTONES GENERALES
   =================================================== */
.btn-primary {
  background: linear-gradient(135deg, #00E676, #00c853);
  background: linear-gradient(135deg, var(--accent-green), #00c853);
  color: #05140b;
  font-weight: 800;
  border: none;
  border-radius: 8px;
  padding: 13px;
  font-size: 14px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #9aa5b8;
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 10px;
  margin-top: 10px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.btn-secondary-sm {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary-sm:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger-sm {
  background: rgba(255, 61, 113, 0.15);
  border: 1px solid rgba(255, 61, 113, 0.3);
  color: #ff3d71;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-danger-sm:hover {
  background: #ff3d71;
  color: #fff;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-tool {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-tool:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-highlight {
  background: rgba(0, 230, 118, 0.15);
  border-color: rgba(0, 230, 118, 0.4);
  color: #00E676;
  color: var(--accent-green);
}

.btn-highlight:hover {
  background: #00E676;
  background: var(--accent-green);
  color: #05140b;
}

.btn-clear {
  background: transparent;
  border: none;
  color: #5e6b82;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 14px;
}
.btn-clear:hover { color: #fff; }

/* ===================================================
   2. DASHBOARD (MAIN MENU)
   =================================================== */
#main-menu-container {
  padding: 24px 35px;
  justify-content: space-between;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid var(--border-subtle);
}

.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.dashboard-brand h2 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
}

.dashboard-brand h2 span {
  color: #00E676;
  color: var(--accent-green);
}

.dashboard-user-stats {
  display: flex;
  gap: 12px;
  align-items: center;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: #9aa5b8;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-icon { font-size: 13px; }

.dashboard-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.dashboard-cards-grid {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  align-items: center;
  gap: 25px;
  width: 92%;
  max-width: 1200px;
  margin: auto;
}

.dashboard-cards-grid .menu-card {
  -webkit-flex: 1 1 0%;
  flex: 1 1 0%;
  width: 30%;
  max-width: 360px;
  min-height: 240px;
  box-sizing: border-box;
}

.menu-card {
  background: #121826;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 40px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.menu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  transition: background 0.3s;
}

.menu-card:hover {
  transform: translateY(-8px);
  background: #1c2438;
  background: var(--bg-card-hover);
  border-color: #00E676;
  border-color: var(--accent-green);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 230, 118, 0.35);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px var(--accent-green-glow);
}

.menu-card:hover::before {
  background: #00E676;
  background: var(--accent-green);
}

.card-icon-wrapper {
  width: 80px;
  height: 80px;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s;
}

.menu-card:hover .card-icon-wrapper {
  transform: scale(1.1);
  background: #00E676;
  background: var(--accent-green);
}

.card-emoji { font-size: 38px; }

.menu-card:hover .card-emoji {
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

.card-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.card-desc {
  font-size: 13px;
  color: #9aa5b8;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 18px;
}

.card-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  color: #00E676;
  color: var(--accent-green);
  font-weight: 700;
}

/* Marquesina Ticker */
.marquee-bar {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 230, 118, 0.25);
  border-radius: 8px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.marquee-icon { font-size: 16px; }

.marquee-content {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

#marquee-text {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #00E676;
  color: var(--accent-green);
  animation: marquee 25s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ===================================================
   3. VISTAS DE CONTENIDO (LIVE, MOVIES, SERIES)
   =================================================== */
.content-header {
  height: 58px;
  background: rgba(14, 19, 30, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 15px;
}

.content-header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

#content-section-title {
  font-size: 18px;
  font-weight: 800;
  color: #00E676;
  color: var(--accent-green);
  letter-spacing: 0.5px;
}

.content-search-box {
  flex: 0 1 340px;
  position: relative;
  display: flex;
  align-items: center;
}

.content-search-box input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 7px 30px 7px 12px;
  color: #fff;
  font-size: 13px;
  outline: none;
}

.content-search-box input:focus {
  border-color: #00E676;
  border-color: var(--accent-green);
}

.content-search-box .btn-clear {
  position: absolute;
  right: 6px;
}

.content-header-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

.content-body-layout {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* Col 1: Categorías */
.col-categories {
  width: 250px;
  background: rgba(11, 15, 25, 0.7);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.column-title {
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #9aa5b8;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.scroll-list {
  flex: 1;
  overflow-y: auto;
  list-style: none;
}

.category-item {
  padding: 11px 16px;
  font-size: 13px;
  color: #9aa5b8;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}

.category-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.category-item.active {
  background: rgba(0, 230, 118, 0.12);
  color: #00E676;
  color: var(--accent-green);
  border-left-color: #00E676;
  border-left-color: var(--accent-green);
  font-weight: 700;
}

/* Col 2: Streams / Canales */
.col-streams {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(14, 18, 29, 0.4);
}

.streams-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.count-badge {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 10px;
  color: #5e6b82;
  color: var(--text-muted);
}

/* Canales Lista (Live) */
.channel-item {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  transition: all 0.15s;
}

.channel-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.channel-item.active {
  background: rgba(0, 230, 118, 0.16);
  border-left: 3px solid #00E676;
  border-left: 3px solid var(--accent-green);
}

.channel-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 2px;
}

.channel-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.channel-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.channel-item.active .channel-title {
  color: #00E676;
  color: var(--accent-green);
}

.channel-num {
  font-size: 10px;
  color: #5e6b82;
  color: var(--text-muted);
}

.btn-star-fav {
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #5e6b82;
  color: var(--text-muted);
  transition: all 0.2s;
  padding: 4px;
}

.btn-star-fav.is-fav {
  color: #ffd700;
}

.btn-star-fav:hover {
  transform: scale(1.2);
}

/* Col 3: Reproductor en Vivo Integrado */
.col-player {
  width: 480px;
  background: #06080e;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#live-video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: -webkit-flex;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #00E676;
  border-top-color: var(--accent-green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.banner-osd {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(10, 14, 23, 0.92);
  border: 1px solid #00E676;
  border: 1px solid var(--accent-green);
  padding: 10px 18px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.2s;
}

.banner-num {
  font-size: 18px;
  font-weight: 900;
  color: #00E676;
  color: var(--accent-green);
}

.banner-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.mini-guide {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 260px;
  background: rgba(9, 13, 22, 0.95);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  z-index: 30;
  backdrop-filter: blur(10px);
}

.mini-guide-header {
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 700;
  color: #00E676;
  color: var(--accent-green);
}

.mini-guide-items {
  flex: 1;
  overflow-y: auto;
  list-style: none;
}

.mini-guide-item {
  padding: 8px 12px;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  cursor: pointer;
  color: #9aa5b8;
  color: var(--text-secondary);
}

.mini-guide-item:hover, .mini-guide-item.active {
  background: rgba(0, 230, 118, 0.15);
  color: #fff;
}

.now-playing-bar {
  padding: 14px 16px;
  background: rgba(18, 24, 38, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  font-weight: 600;
  color: #00E676;
  color: var(--accent-green);
}

/* ===================================================
   GRID PARA PELÍCULAS Y SERIES (ROBUSTO)
   =================================================== */
.media-grid-layout {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  -webkit-align-content: flex-start;
  align-content: flex-start;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.media-card {
  background: #121826;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  position: relative;
  width: 175px !important;
  min-width: 175px !important;
  max-width: 175px !important;
  height: 290px !important;
  min-height: 290px !important;
  flex-shrink: 0 !important;
  -webkit-flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

.media-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: #00E676;
  border-color: var(--accent-green);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(0, 230, 118, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 15px var(--accent-green-glow);
}

.media-poster-wrap {
  position: relative;
  width: 100%;
  height: 235px;
  min-height: 235px;
  background: #0d121e;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.media-card:hover .media-poster {
  transform: scale(1.05);
}

.media-poster-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #101626, #182238);
  color: #5e6b82;
  color: var(--text-muted);
  font-size: 38px;
}

.media-card-rating {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #ffd700;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  z-index: 5;
}

.media-card-info {
  height: 55px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(18, 24, 38, 0.95);
}

.media-card-title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

/* ===================================================
   MODALES (DETALLES Y AJUSTES)
   =================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 8, 14, 0.95);
  display: -webkit-flex;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200000;
  padding: 20px;
  box-sizing: border-box;
  animation: fadeIn 0.2s;
}

.modal-box {
  background: #121826;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.modal-close-btn:hover {
  background: #ff3d71;
}

/* Modal Películas */
.modal-details-box {
  width: 800px;
  padding: 30px;
}

.details-content {
  display: flex;
  gap: 30px;
}

.details-poster-wrap {
  width: 240px;
  flex-shrink: 0;
}

.details-poster-wrap img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.details-info-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.details-info-wrap h2 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.details-meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  color: #9aa5b8;
  color: var(--text-secondary);
}

.meta-star {
  color: #ffd700;
  border-color: rgba(255, 215, 0, 0.3);
}

.details-plot {
  font-size: 13px;
  line-height: 1.6;
  color: #c9d4e2;
  margin-top: 6px;
}

.details-cast, .details-director {
  font-size: 12px;
  color: #9aa5b8;
  color: var(--text-secondary);
}

.details-actions {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.btn-large {
  padding: 12px 24px;
  font-size: 14px;
}

/* Modal Series */
.modal-series-box {
  width: 900px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.series-details-top {
  display: flex;
  gap: 20px;
}

.series-cover-thumb {
  width: 140px;
  border-radius: 8px;
  object-fit: cover;
}

.series-summary {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.series-summary h2 {
  font-size: 22px;
  font-weight: 800;
}

.series-plot-text {
  font-size: 12px;
  color: #9aa5b8;
  color: var(--text-secondary);
  line-height: 1.5;
}

.series-seasons-layout {
  display: flex;
  gap: 20px;
  height: 340px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid var(--border-subtle);
  padding-top: 15px;
}

.seasons-tab-col {
  width: 220px;
  display: flex;
  flex-direction: column;
}

.episodes-tab-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.column-title-sm {
  font-size: 12px;
  font-weight: 700;
  color: #9aa5b8;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.seasons-list, .episodes-list {
  flex: 1;
  overflow-y: auto;
  list-style: none;
}

.season-tab-item {
  padding: 10px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.season-tab-item:hover, .season-tab-item.active {
  background: #00E676;
  background: var(--accent-green);
  color: #05140b;
  font-weight: 700;
}

.episode-card-item {
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.episode-card-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #00E676;
  border-color: var(--accent-green);
}

.episode-title-wrap {
  display: flex;
  flex-direction: column;
}

.episode-num-badge {
  font-size: 11px;
  color: #00E676;
  color: var(--accent-green);
  font-weight: 700;
}

.episode-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

/* ===================================================
   CINEMA PLAYER (VOD / SERIES FULLSCREEN)
   =================================================== */
.cinema-player-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 100000;
  display: -webkit-flex;
  display: flex;
  align-items: center;
  justify-content: center;
}

#cinema-video-player {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
}

.cinema-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  z-index: 10;
  transition: opacity 0.3s;
  pointer-events: auto;
}

#cinema-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.btn-icon-round {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.btn-icon-round:hover { background: #ff3d71; }

.cinema-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  padding: 20px 25px 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10;
  transition: opacity 0.3s;
  pointer-events: auto;
}

.cinema-player-overlay.controls-hidden .cinema-top-bar,
.cinema-player-overlay.controls-hidden .cinema-bottom-bar {
  opacity: 0 !important;
  pointer-events: none !important;
}

.cinema-player-overlay.controls-hidden {
  cursor: none !important;
}

/* Menu Flotante de Pistas de Audio y Subtítulos en Cinema */
.cinema-tracks-popup {
  position: absolute;
  bottom: 85px;
  right: 30px;
  width: 380px;
  max-width: calc(100vw - 60px);
  max-height: 400px;
  background: rgba(12, 18, 24, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 230, 118, 0.4);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(0, 230, 118, 0.2);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: popupFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cinema-tracks-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

#cinema-tracks-popup-title {
  font-size: 15px;
  font-weight: 800;
  color: #00E676;
  color: var(--accent-green);
  letter-spacing: 0.5px;
}

.cinema-popup-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #9aa5b8;
  color: var(--text-secondary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.2s;
}

.cinema-popup-close-btn:hover {
  background: #ff3d71;
  color: #fff;
  border-color: #ff3d71;
}

.cinema-osd-toast {
  position: absolute;
  top: 75px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 15, 20, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid #00E676;
  border: 1px solid var(--accent-green);
  color: #fff;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 230, 118, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px var(--accent-green-glow);
  z-index: 10000;
  pointer-events: none;
  animation: toastFade 0.25s ease;
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

#cinema-seek-bar {
  flex: 1;
  accent-color: #00E676;
  accent-color: var(--accent-green);
  cursor: pointer;
  height: 5px;
}

.time-display {
  font-family: monospace;
  font-size: 12px;
  color: #9aa5b8;
  color: var(--text-secondary);
}

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

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

.btn-ctrl {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ctrl:hover {
  background: #00E676;
  background: var(--accent-green);
  color: #05140b;
}

.volume-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

#cinema-volume {
  width: 80px;
  accent-color: #00E676;
  accent-color: var(--accent-green);
  cursor: pointer;
}

/* ===================================================
   MODAL AJUSTES Y PISTAS
   =================================================== */
.modal-settings-box {
  width: 500px;
  padding: 30px;
}

.modal-settings-box h2 {
  font-size: 18px;
  font-weight: 800;
  color: #00E676;
  color: var(--accent-green);
  margin-bottom: 20px;
}

.settings-section {
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 15px;
}

.settings-section h3 {
  font-size: 13px;
  font-weight: 700;
  color: #9aa5b8;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 6px;
  color: #5e6b82;
  color: var(--text-muted);
}

.setting-item strong {
  color: #fff;
}

.checkbox-item {
  align-items: center;
}

.checkbox-item label {
  color: #fff;
  cursor: pointer;
}

.settings-buttons-row {
  display: flex;
  gap: 10px;
}

.settings-footer {
  text-align: center;
  font-size: 11px;
  color: #5e6b82;
  color: var(--text-muted);
  margin-top: 10px;
}

/* Modal Pistas */
.modal-tracks-box {
  width: 380px;
  padding: 24px;
}

.modal-tracks-box h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 15px;
  color: #00E676;
  color: var(--accent-green);
}

.tracks-list-items {
  list-style: none;
  max-height: 250px;
  overflow-y: auto;
}

.track-item {
  padding: 10px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.track-item:hover, .track-item.active {
  background: #00E676;
  background: var(--accent-green);
  color: #05140b;
  font-weight: 700;
}

/* ===================================================
   RESPONSIVE DESIGN (MOBILE & TABLETS)
   =================================================== */
@media (max-width: 960px) and (orientation: portrait) {
  .login-layout {
    flex-direction: column;
    width: 92%;
    max-width: 480px;
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
  }
  .login-info-card, .login-form-card {
    padding: 24px;
  }
  .dashboard-cards-grid {
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
  }
  .menu-card {
    width: 100%;
    max-width: 360px;
    height: 160px;
  }
  .content-body-layout {
    flex-direction: column;
    overflow-y: auto;
  }
  .col-categories {
    width: 100%;
    height: 160px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid var(--border-subtle);
  }
  .col-streams {
    width: 100%;
    height: 350px;
  }
  .col-player {
    width: 100%;
    height: 280px;
  }
  .details-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .details-meta-row {
    justify-content: center;
  }
  .series-seasons-layout {
    flex-direction: column;
  }
  .seasons-tab-col {
    width: 100%;
    height: 120px;
  }
}

@media (max-width: 600px) and (orientation: portrait) {
  #title-bar {
    padding: 0 8px;
    height: 38px;
  }
  .title-bar-text {
    font-size: 11px;
  }
  .btn-web-tool {
    padding: 3px 8px;
    font-size: 11px;
  }
  .web-device-badge {
    display: none;
  }
  .dashboard-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .dashboard-user-stats {
    flex-wrap: wrap;
  }
  .content-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  .content-search-box {
    width: 100%;
    order: 3;
  }
  .controls-row {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }
  .cinema-bottom-bar {
    padding: 10px;
  }
  .cinema-top-bar {
    padding: 10px;
  }
}

/* ===================================================
   SMART TV REMOTE & 10-FOOT UI STYLES
   =================================================== */
.tv-indicator-badge {
  font-size: 12px;
  font-weight: 700;
  color: #00E676;
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid #00E676;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: pulse-tv 2s infinite;
}

@keyframes pulse-tv {
  0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(0, 230, 118, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

/* Helper Bar for Remote Controls */
.tv-remote-bar {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(11, 15, 25, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  padding: 8px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 99999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 230, 118, 0.15);
  pointer-events: none;
  animation: slideUpBar 0.3s ease-out;
}

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

.tv-remote-bar.hidden {
  display: none !important;
}

.tv-key-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #C5D1E0;
}

.key-pill {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.key-pill.pill-red {
  background: #ff3d71;
  color: #fff;
  border-color: #ff1744;
}

.key-pill.pill-green {
  background: #00E676;
  color: #05140b;
  border-color: #00c853;
}

.key-pill.pill-yellow {
  background: #ffd600;
  color: #212121;
  border-color: #ffab00;
}

.key-pill.pill-blue {
  background: #00b0ff;
  color: #fff;
  border-color: #0091ea;
}

.key-pill.pill-ch {
  background: #7c4dff;
  color: #fff;
  border-color: #651fff;
}

/* High-Visibility Focus Outline */
.tv-focused {
  outline: 3.5px solid #00E676 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 26px rgba(0, 230, 118, 0.85), inset 0 0 10px rgba(0, 230, 118, 0.3) !important;
  transform: scale(1.04) translateZ(0) !important;
  z-index: 999 !important;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, outline 0.15s ease-out !important;
}

/* ===================================================
   BODY.TV-MODE ERGONOMICS (10-FOOT EXPERIENCE)
   =================================================== */

/* Low-power TV SoC optimizations: Disable costly blur filters */
body.tv-mode * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* TV Overscan Protection (Safe Margins) */
body.tv-mode #app-wrapper {
  padding: 1.5vh 2.5vw;
}

body.tv-mode #title-bar {
  height: 52px;
  padding: 0 2.5vw;
}

body.tv-mode .title-bar-text {
  font-size: 16px;
}

body.tv-mode .btn-web-tool {
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
}

/* Smooth Auto-Scroll & Margins */
body.tv-mode .categories-scroll,
body.tv-mode .streams-scroll,
body.tv-mode .media-scroll-area {
  scroll-behavior: smooth;
  scroll-padding: 15px;
}

/* 1. Dashboard in TV Mode */
body.tv-mode .dashboard-brand h2 {
  font-size: 26px;
}

body.tv-mode .dash-logo {
  width: 48px;
  height: 48px;
}

body.tv-mode .stat-pill {
  font-size: 14px;
  padding: 8px 16px;
}

body.tv-mode .dashboard-cards-grid {
  gap: 30px;
  max-width: 1400px;
  margin: auto;
  width: 100%;
}

body.tv-mode .menu-card {
  padding: 50px 30px;
  border-radius: 24px;
  min-height: 280px;
}

body.tv-mode .menu-card.tv-focused {
  border-color: #00E676 !important;
  box-shadow: 0 0 35px rgba(0, 230, 118, 0.9) !important;
  transform: scale(1.06) translateZ(0) !important;
}

body.tv-mode .menu-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

body.tv-mode .menu-title {
  font-size: 28px;
  font-weight: 900;
}

body.tv-mode .menu-desc {
  font-size: 16px;
  margin-top: 10px;
}

/* 2. Content Header & Tool Buttons */
body.tv-mode .content-header {
  height: 64px;
  padding: 0 16px;
}

body.tv-mode .content-title {
  font-size: 20px;
}

body.tv-mode .content-search-box input {
  height: 46px;
  font-size: 16px;
}

body.tv-mode .btn-tool {
  height: 44px;
  font-size: 15px;
  padding: 0 16px;
  border-radius: 8px;
}

/* 3. Categories Column */


body.tv-mode .category-item {
  padding: 15px 18px !important;
  font-size: 16px !important;
  min-height: 52px;
  border-radius: 8px;
  margin-bottom: 5px;
}

body.tv-mode .cat-icon {
  font-size: 20px;
  margin-right: 12px;
}

body.tv-mode .cat-count {
  font-size: 13px;
  padding: 3px 8px;
}

body.tv-mode .category-item.tv-focused {
  background: rgba(0, 230, 118, 0.28) !important;
  border-left: 6px solid #00E676 !important;
  color: #fff !important;
}

/* 4. Channels Column */


body.tv-mode .channel-item {
  padding: 14px 18px !important;
  min-height: 66px !important;
  margin-bottom: 6px;
  border-radius: 8px;
}

body.tv-mode .channel-num {
  font-size: 16px;
  min-width: 36px;
}

body.tv-mode .channel-logo,
body.tv-mode .channel-logo-placeholder {
  width: 46px;
  height: 46px;
  margin-right: 14px;
}

body.tv-mode .channel-name {
  font-size: 16px;
  font-weight: 700;
}

body.tv-mode .channel-item.tv-focused {
  background: rgba(0, 230, 118, 0.28) !important;
  border-left: 6px solid #00E676 !important;
  color: #fff !important;
}

/* 5. Media Grid (Movies / Series) */
body.tv-mode .media-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
  gap: 24px !important;
  padding: 24px !important;
}

body.tv-mode .media-card {
  border-radius: 12px;
}

body.tv-mode .media-card.tv-focused {
  transform: scale(1.08) translateZ(0) !important;
  border: 3px solid #00E676 !important;
  box-shadow: 0 0 30px rgba(0, 230, 118, 0.9) !important;
}

body.tv-mode .media-title {
  font-size: 15px !important;
  padding: 10px 12px !important;
}

/* 6. Modals & Popups in TV Mode */
body.tv-mode .modal-backdrop {
  background: rgba(5, 8, 14, 0.95) !important;
}

body.tv-mode .modal-box {
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 230, 118, 0.15);
}

body.tv-mode .details-title {
  font-size: 28px !important;
}

body.tv-mode .details-plot {
  font-size: 16px !important;
  line-height: 1.6 !important;
}

body.tv-mode .seasons-item,
body.tv-mode .season-tab-item,
body.tv-mode .episode-item,
body.tv-mode .episode-card-item {
  padding: 14px 18px !important;
  font-size: 16px !important;
  border-radius: 8px;
  margin-bottom: 5px;
}

body.tv-mode .seasons-item.tv-focused,
body.tv-mode .season-tab-item.tv-focused,
body.tv-mode .episode-item.tv-focused,
body.tv-mode .episode-card-item.tv-focused {
  background: rgba(0, 230, 118, 0.3) !important;
  border-left: 5px solid #00E676 !important;
  color: #fff !important;
}

/* 7. Cinema Player Controls */
body.tv-mode .cinema-top-bar,
body.tv-mode .cinema-bottom-bar {
  background: rgba(6, 9, 15, 0.96) !important;
  padding: 18px 35px !important;
}

body.tv-mode .cinema-title {
  font-size: 22px !important;
}

body.tv-mode .btn-ctrl {
  font-size: 18px !important;
  padding: 12px 20px !important;
  border-radius: 10px;
}

body.tv-mode .time-display {
  font-size: 16px !important;
}

body.tv-mode .btn-ctrl.tv-focused,
body.tv-mode .btn-primary.tv-focused,
body.tv-mode .btn-secondary-sm.tv-focused,
body.tv-mode .btn-tool.tv-focused {
  background: #00E676 !important;
  color: #05140b !important;
  font-weight: 900 !important;
  transform: scale(1.08) translateZ(0) !important;
}

/* 8. TV OSD Banners & Toasts */
body.tv-mode #osd-toast {
  top: 70px;
  right: 40px;
  font-size: 18px;
  padding: 14px 28px;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 20px rgba(0, 230, 118, 0.4);
}

body.tv-mode #dial-badge {
  top: 80px;
  left: 50px;
  font-size: 34px;
  padding: 16px 32px;
  border-radius: 14px;
  border: 3px solid #00E676;
  background: rgba(5, 8, 14, 0.95);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 230, 118, 0.6);
}

body.tv-mode .cinema-osd-toast {
  top: 90px;
  font-size: 20px;
  padding: 16px 36px;
  border-radius: 40px;
}


/* ===================================================
   SMART TV MODE OVERRIDES (16:9 NATIVE LANDSCAPE)
   =================================================== */
body.tv-mode,
body.tv-mode * {
  cursor: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  outline: none !important;
}

body.tv-mode {
  width: 100vw !important;
  height: 100vh !important;
  overflow: hidden !important;
  background-color: #0b0f19 !important;
  color: #ffffff !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.tv-mode #app-wrapper {
  width: 100vw !important;
  height: 100vh !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Dashboard en TV: 3 Tarjetas en fila horizontal fija */
body.tv-mode .dashboard-cards-grid {
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-flex-direction: row !important;
  flex-direction: row !important;
  -webkit-justify-content: center !important;
  justify-content: center !important;
  -webkit-align-items: center !important;
  align-items: center !important;
  gap: 28px !important;
  max-width: 1300px !important;
  width: 92% !important;
  margin: auto !important;
  padding: 20px !important;
  overflow: visible !important;
}

body.tv-mode .dashboard-cards-grid .menu-card {
  -webkit-flex: 1 1 0% !important;
  flex: 1 1 0% !important;
  width: 30% !important;
  max-width: 380px !important;
  height: 280px !important;
  min-height: 240px !important;
  border-radius: 24px !important;
  padding: 35px 20px !important;
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-flex-direction: column !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  background: #121826 !important;
  box-sizing: border-box !important;
}

/* Catálogo de Películas y Series en TV: Cuadrícula fluida con carátulas verticales proporcionales */
body.tv-mode .media-grid-layout {
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-flex-wrap: wrap !important;
  flex-wrap: wrap !important;
  -webkit-justify-content: flex-start !important;
  justify-content: flex-start !important;
  -webkit-align-items: flex-start !important;
  align-items: flex-start !important;
  -webkit-align-content: flex-start !important;
  align-content: flex-start !important;
  padding: 20px !important;
  gap: 20px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
}

body.tv-mode .media-card {
  width: 180px !important;
  min-width: 180px !important;
  max-width: 180px !important;
  height: 295px !important;
  min-height: 295px !important;
  margin: 10px !important;
  border-radius: 14px !important;
  flex-shrink: 0 !important;
  -webkit-flex-shrink: 0 !important;
  box-sizing: border-box !important;
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-flex-direction: column !important;
  flex-direction: column !important;
}

body.tv-mode .media-poster-wrap {
  width: 100% !important;
  height: 235px !important;
  min-height: 235px !important;
  max-height: 235px !important;
  overflow: hidden !important;
  border-radius: 12px 12px 0 0 !important;
  background: #0d121e !important;
}

body.tv-mode .media-poster {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

body.tv-mode .modal-details-box,
body.tv-mode .modal-series-box {
  width: 90% !important;
  max-width: 860px !important;
  max-height: 88vh !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
  background: #101624 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.95), 0 0 40px rgba(0, 230, 118, 0.25) !important;
}

body.tv-mode .cinema-player-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: #000 !important;
  z-index: 100000 !important;
}

/* TV EN VIVO: 3 Columnas Horizontales Estrictas (Categorías | Canales | Reproductor) */
body.tv-mode .content-body-layout {
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-flex-direction: row !important;
  flex-direction: row !important;
  height: calc(100vh - 65px) !important;
  max-height: calc(100vh - 65px) !important;
  width: 100vw !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

body.tv-mode .col-categories {
  width: 240px !important;
  min-width: 240px !important;
  max-width: 240px !important;
  height: 100% !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-bottom: none !important;
  overflow-y: auto !important;
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-flex-direction: column !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}

body.tv-mode .col-streams {
  width: 320px !important;
  min-width: 320px !important;
  max-width: 320px !important;
  height: 100% !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  overflow-y: auto !important;
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-flex-direction: column !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}

body.tv-mode .col-player {
  -webkit-flex: 1 1 0% !important;
  flex: 1 1 0% !important;
  height: 100% !important;
  background: #000 !important;
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-flex-direction: column !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

body.tv-mode .player-wrapper {
  width: 100% !important;
  height: 100% !important;
  flex: 1 !important;
  position: relative !important;
  background: #000 !important;
}

body.tv-mode #live-video-player {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #000 !important;
}

body.tv-mode .content-header {
  height: 60px !important;
  min-height: 60px !important;
  max-height: 60px !important;
  padding: 0 20px !important;
  display: -webkit-flex !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
}

/* SMART TV MODE OVERRIDES (16:9 NATIVE LANDSCAPE)
   =================================================== */
body.tv-dpad-active,
body.tv-dpad-active * {
  cursor: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  outline: none !important;
}

body.tv-mode {
  width: 100vw !important;
  height: 100vh !important;
  overflow: hidden !important;
  background-color: #0b0f19 !important;
  color: #ffffff !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.tv-mode #app-wrapper {
  width: 100vw !important;
  height: 100vh !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
}

/* Barra superior en TV */
body.tv-mode #title-bar {
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  padding: 0 16px !important;
}

body.tv-mode .title-bar-text {
  font-size: 13px !important;
}

/* Dashboard en TV: 3 Tarjetas en fila horizontal fija proporcional */
body.tv-mode #main-menu-container {
  height: calc(100vh - 38px) !important;
  padding: 15px 30px !important;
  justify-content: space-between !important;
}

body.tv-mode .dashboard-header {
  padding-bottom: 12px !important;
}

body.tv-mode .dashboard-cards-grid {
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-flex-direction: row !important;
  flex-direction: row !important;
  -webkit-justify-content: center !important;
  justify-content: center !important;
  -webkit-align-items: center !important;
  align-items: center !important;
  gap: 20px !important;
  max-width: 1100px !important;
  width: 92% !important;
  margin: auto !important;
  padding: 10px !important;
  overflow: visible !important;
}

body.tv-mode .dashboard-cards-grid .menu-card {
  -webkit-flex: 1 1 0% !important;
  flex: 1 1 0% !important;
  width: 30% !important;
  max-width: 340px !important;
  height: 220px !important;
  min-height: 180px !important;
  max-height: 240px !important;
  border-radius: 18px !important;
  padding: 20px 16px !important;
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-flex-direction: column !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  background: #121826 !important;
  box-sizing: border-box !important;
}

body.tv-mode .card-emoji {
  font-size: 38px !important;
}

body.tv-mode .card-title {
  font-size: 18px !important;
  margin: 10px 0 6px 0 !important;
}

body.tv-mode .card-desc {
  font-size: 11.5px !important;
  line-height: 1.3 !important;
}

/* ===================================================
   TV EN VIVO (SECCIÓN LIVE): 3 COLUMNAS PROPORCIONALES
   =================================================== */
body.tv-mode .content-header {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 0 16px !important;
  display: -webkit-flex !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: rgba(14, 19, 30, 0.98) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-sizing: border-box !important;
}

body.tv-mode .content-header h2 {
  font-size: 15px !important;
}

body.tv-mode .content-search-box input {
  height: 32px !important;
  font-size: 12px !important;
}

body.tv-mode .btn-tool {
  height: 34px !important;
  font-size: 12px !important;
  padding: 0 12px !important;
  border-radius: 6px !important;
}

body.tv-mode .content-body-layout {
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-flex-direction: row !important;
  flex-direction: row !important;
  height: calc(100vh - 48px) !important;
  max-height: calc(100vh - 48px) !important;
  width: 100vw !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* Columna 1: Categorías (18% - compacta y nítida) */
body.tv-mode .col-categories {
  width: 18% !important;
  min-width: 165px !important;
  max-width: 230px !important;
  height: 100% !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-bottom: none !important;
  overflow-y: auto !important;
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-flex-direction: column !important;
  flex-direction: column !important;
  background: rgba(11, 15, 25, 0.75) !important;
  box-sizing: border-box !important;
}

body.tv-mode .category-item {
  padding: 8px 12px !important;
  font-size: 12.5px !important;
  min-height: 38px !important;
  border-radius: 6px !important;
  margin-bottom: 3px !important;
}

body.tv-mode .cat-icon {
  font-size: 14px !important;
  margin-right: 8px !important;
}

body.tv-mode .cat-count {
  font-size: 11px !important;
  padding: 2px 6px !important;
}

/* Columna 2: Canales (24% - proporcionada) */
body.tv-mode .col-streams {
  width: 24% !important;
  min-width: 210px !important;
  max-width: 310px !important;
  height: 100% !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  overflow-y: auto !important;
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-flex-direction: column !important;
  flex-direction: column !important;
  background: rgba(14, 18, 29, 0.5) !important;
  box-sizing: border-box !important;
}

body.tv-mode .channel-item {
  padding: 7px 10px !important;
  min-height: 42px !important;
  margin-bottom: 3px !important;
  border-radius: 6px !important;
}

body.tv-mode .channel-num {
  font-size: 11px !important;
  min-width: 24px !important;
  margin-right: 6px !important;
}

body.tv-mode .channel-logo {
  width: 28px !important;
  height: 28px !important;
  margin-right: 8px !important;
}

body.tv-mode .channel-name {
  font-size: 12.5px !important;
}

/* Columna 3: Reproductor en Vivo (Toma el 58%+ del ancho - ¡GRAN TAMAÑO DE VIDEO!) */
body.tv-mode .col-player {
  -webkit-flex: 1 1 0% !important;
  flex: 1 1 0% !important;
  min-width: 55% !important;
  height: 100% !important;
  background: #000 !important;
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-flex-direction: column !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

body.tv-mode .player-wrapper {
  width: 100% !important;
  height: 100% !important;
  flex: 1 !important;
  position: relative !important;
  background: #000 !important;
}

body.tv-mode #live-video-player {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #000 !important;
}

/* Catálogo de Películas y Series en TV: Cuadrícula fluida con carátulas verticales */
body.tv-mode .media-grid-layout {
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-flex-wrap: wrap !important;
  flex-wrap: wrap !important;
  -webkit-justify-content: flex-start !important;
  justify-content: flex-start !important;
  -webkit-align-items: flex-start !important;
  align-items: flex-start !important;
  -webkit-align-content: flex-start !important;
  align-content: flex-start !important;
  padding: 14px !important;
  gap: 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
}

body.tv-mode .media-card {
  width: 155px !important;
  min-width: 155px !important;
  max-width: 155px !important;
  height: 250px !important;
  min-height: 250px !important;
  margin: 6px !important;
  border-radius: 12px !important;
  flex-shrink: 0 !important;
  -webkit-flex-shrink: 0 !important;
  box-sizing: border-box !important;
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-flex-direction: column !important;
  flex-direction: column !important;
}

body.tv-mode .media-poster-wrap {
  width: 100% !important;
  height: 195px !important;
  min-height: 195px !important;
  max-height: 195px !important;
  overflow: hidden !important;
  border-radius: 10px 10px 0 0 !important;
  background: #0d121e !important;
}

body.tv-mode .media-poster {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

body.tv-mode .media-card-info {
  padding: 6px 8px !important;
  height: 55px !important;
}

body.tv-mode .media-card-title {
  font-size: 11.5px !important;
}

body.tv-mode .modal-details-box,
body.tv-mode .modal-series-box {
  width: 90% !important;
  max-width: 820px !important;
  max-height: 88vh !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
  background: #101624 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.95), 0 0 40px rgba(0, 230, 118, 0.25) !important;
}

body.tv-mode .cinema-player-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: #000 !important;
  z-index: 100000 !important;
}

/* ===================================================
   ARQUITECTURA DUAL ADAPTATIVA: MODO RATÓN / PUNTERO vs MODO CONTROL TV (D-PAD)
   =================================================== */

/* A. MODO RATÓN / PUNTERO (Activo al mover el ratón o virtual pointer) */
body.mode-pointer,
body.mode-pointer * {
  cursor: auto !important;
}

body.mode-pointer a,
body.mode-pointer button,
body.mode-pointer input,
body.mode-pointer select,
body.mode-pointer .channel-item,
body.mode-pointer .category-item,
body.mode-pointer .media-card,
body.mode-pointer .menu-card,
body.mode-pointer .track-item,
body.mode-pointer .btn-tool,
body.mode-pointer .btn-web-tool,
body.mode-pointer .btn-ctrl {
  cursor: pointer !important;
}

/* Efectos Hover activos en Modo Ratón */
body.mode-pointer .channel-item:hover {
  background: rgba(0, 230, 118, 0.12) !important;
  border-left: 3px solid #00E676 !important;
}

body.mode-pointer .category-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

body.mode-pointer .media-card:hover {
  transform: translateY(-4px) scale(1.02) !important;
  border-color: #00E676 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 230, 118, 0.3) !important;
}

body.mode-pointer .menu-card:hover {
  transform: translateY(-4px) scale(1.02) !important;
  border-color: #00E676 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 230, 118, 0.3) !important;
}

/* Scrollbars visibles y amigables para ratón */
body.mode-pointer ::-webkit-scrollbar {
  width: 6px !important;
  height: 6px !important;
}

body.mode-pointer ::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2) !important;
}

body.mode-pointer ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25) !important;
  border-radius: 4px !important;
}

body.mode-pointer ::-webkit-scrollbar-thumb:hover {
  background: #00E676 !important;
}

/* B. MODO CONTROL REMOTO D-PAD (Activo al presionar flechas del control) */
body.mode-dpad,
body.mode-dpad * {
  cursor: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

body.mode-dpad ::-webkit-scrollbar {
  width: 0 !important;
  display: none !important;
}

/* Resplandor y Foco Verde de Alta Visibilidad para TV */
.tv-focused,
body.mode-dpad .tv-focused,
body.mode-pointer .tv-focused {
  outline: 3px solid #00E676 !important;
  box-shadow: 0 0 25px rgba(0, 230, 118, 0.85) !important;
  transform: scale(1.03) translateZ(0) !important;
  z-index: 10 !important;
}

.channel-item.tv-focused,
body.mode-dpad .channel-item.tv-focused,
body.mode-pointer .channel-item.tv-focused {
  background: rgba(0, 230, 118, 0.28) !important;
  border-left: 6px solid #00E676 !important;
  color: #fff !important;
}

.category-item.tv-focused,
body.mode-dpad .category-item.tv-focused,
body.mode-pointer .category-item.tv-focused {
  background: rgba(0, 230, 118, 0.28) !important;
  border-left: 6px solid #00E676 !important;
  color: #fff !important;
}

.menu-card.tv-focused,
body.mode-dpad .menu-card.tv-focused,
body.mode-pointer .menu-card.tv-focused {
  border: 3px solid #00E676 !important;
  box-shadow: 0 0 35px rgba(0, 230, 118, 0.9) !important;
}

.media-card.tv-focused,
body.mode-dpad .media-card.tv-focused,
body.mode-pointer .media-card.tv-focused {
  border: 3px solid #00E676 !important;
  box-shadow: 0 0 30px rgba(0, 230, 118, 0.9) !important;
}

/* Botón de alternancia de modo */
#btn-input-mode-title,
#btn-input-mode-header {
  font-weight: 700;
  border-radius: 20px;
  padding: 4px 12px;
  transition: all 0.2s;
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid #00E676;
  color: #00E676;
}

#btn-input-mode-title:hover,
#btn-input-mode-header:hover {
  background: #00E676;
  color: #0b0f19;
}

/* Padding inferior en listas para garantizar visibilidad total del último elemento */
#channels-list {
  padding-bottom: 60px !important;
}

#categories-list {
  padding-bottom: 60px !important;
}

#media-grid {
  padding-bottom: 80px !important;
}


/* ===================================================
   EXPANSIÓN TOTAL PARA VOD (PELÍCULAS Y SERIES)
   =================================================== */
.content-body-layout.is-vod .col-streams,
body.tv-mode .content-body-layout.is-vod .col-streams {
  -webkit-flex: 1 1 0% !important;
  flex: 1 1 0% !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100% !important;
  border-right: none !important;
  background: transparent !important;
}

.content-body-layout.is-vod .col-categories,
body.tv-mode .content-body-layout.is-vod .col-categories {
  width: 18% !important;
  min-width: 150px !important;
  max-width: 220px !important;
  height: 100% !important;
  flex-shrink: 0 !important;
  -webkit-flex-shrink: 0 !important;
}

/* Columna Reproductor en Vivo: fluida sin desbordamiento en ninguna TV */
body.tv-mode .col-player {
  -webkit-flex: 1 1 0% !important;
  flex: 1 1 0% !important;
  min-width: 0 !important;
  height: 100% !important;
  background: #000 !important;
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-flex-direction: column !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* Modal de Películas y Series: Totalmente Adaptable y Accesible en TV */
body.tv-mode .modal-details-box,
body.tv-mode .modal-series-box,
.modal-details-box,
.modal-series-box {
  width: 86% !important;
  max-width: 800px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
  background: #111728 !important;
  border: 1px solid rgba(0, 230, 118, 0.3) !important;
  border-radius: 14px !important;
  box-shadow: 0 25px 70px rgba(0,0,0,0.95), 0 0 35px rgba(0, 230, 118, 0.25) !important;
  padding: 22px !important;
}

body.tv-mode .details-content {
  gap: 20px !important;
}

body.tv-mode .details-poster-wrap {
  width: 180px !important;
  min-width: 180px !important;
}

body.tv-mode .details-info-wrap h2 {
  font-size: 20px !important;
  margin-bottom: 6px !important;
}

body.tv-mode .details-plot {
  font-size: 13px !important;
  line-height: 1.4 !important;
  max-height: 90px !important;
  overflow-y: auto !important;
}

body.tv-mode .details-actions {
  margin-top: 14px !important;
}

body.tv-mode #btn-play-movie {
  background: #00E676 !important;
  color: #0b0f19 !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  padding: 10px 22px !important;
  border-radius: 8px !important;
}

body.tv-mode #btn-play-movie.tv-focused {
  outline: 3px solid #fff !important;
  box-shadow: 0 0 25px rgba(0, 230, 118, 0.95) !important;
  transform: scale(1.05) !important;
}


/* ===================================================
   REGLAS MAESTRAS DE VISIBILIDAD (PREVIENE SUPERPOSICIÓN DE PANTALLAS)
   =================================================== */
.hidden,
[hidden],
#main-menu-container.hidden,
#content-container.hidden,
#login-container.hidden,
#cinema-player-container.hidden,
.screen-container.hidden,
.col-player.hidden,
.col-streams.hidden,
.media-grid-layout.hidden,
.content-header-right.hidden,
#channels-list.hidden,
body.tv-mode #main-menu-container.hidden,
body.tv-mode #content-container.hidden,
body.tv-mode #login-container.hidden,
body.tv-mode .screen-container.hidden,
body.tv-mode .col-player.hidden,
body.tv-mode .col-streams.hidden,
body.tv-mode .media-grid-layout.hidden {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
}
