/* 📺 ZanderTV - Smart TV Mode Styles */
:root {
  --tv-poster-width: 180px;
  --tv-poster-height: 270px;
  --tv-focus-border: 6px;
  --tv-sidebar-width: 100px;
  --tv-sidebar-expanded: 280px;
}

/* Base Body Adjustments for TV */
body.tv-mode {
  overflow: hidden; /* No scroll vertical manual en el body */
  background: #05070a;
  cursor: none; /* Ocultar cursor para experiencia TV pura */
}

/* 🏠 TV Layout */
.tv-layout {
  display: none;
  height: 100vh;
  width: 100vw;
  grid-template-columns: var(--tv-sidebar-width) 1fr;
  transition: all 0.3s ease;
}

body.tv-mode .tv-layout { display: grid; }
body.tv-mode .main-content, 
body.tv-mode .header, 
body.tv-mode .main-tabs,
body.tv-mode .footer,
body.tv-mode .category-nav,
body.tv-mode .global-nav { display: none !important; }

/* 📂 Sidebar TV */
.tv-sidebar {
  background: rgba(10, 14, 26, 0.9);
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
  z-index: 200;
  backdrop-filter: blur(20px);
}

.tv-nav-item {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: 20px;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: transparent;
  border: none;
}

.tv-nav-item:focus, .tv-nav-item.focused {
  outline: none;
  background: var(--accent);
  color: white;
  transform: scale(1.2);
  box-shadow: 0 0 30px var(--accent-glow);
}

/* 🖼️ Content Area TV */
.tv-main {
  padding: 40px;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100vh;
}

.tv-section {
  margin-bottom: 50px;
}

.tv-section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 25px;
  color: white;
  display: flex;
  align-items: center;
  gap: 15px;
}

/* 🍿 Row Horizontal */
.tv-row {
  display: flex;
  gap: 25px;
  padding: 20px 10px;
  overflow-x: auto;
  scrollbar-width: none; /* Ocultar scrollbar */
}
.tv-row::-webkit-scrollbar { display: none; }

/* 🎴 TV Card */
.tv-card {
  flex: 0 0 var(--tv-poster-width);
  height: var(--tv-poster-height);
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-glass);
  border: 3px solid transparent;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tv-card:focus, .tv-card.focused {
  outline: none;
  transform: scale(1.08);
  border-color: var(--accent);
  box-shadow: 0 15px 50px rgba(233, 30, 99, 0.6);
  z-index: 10;
}

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

.tv-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(0deg, rgba(0,0,0,0.9), transparent);
  color: white;
}

.tv-card-title {
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ⚽ Agenda TV Style */
.tv-agenda-item {
  flex: 0 0 320px;
  background: var(--bg-glass);
  padding: 20px;
  border-radius: 20px;
  border: 3px solid transparent;
}

.tv-agenda-item:focus, .tv-agenda-item.focused {
  border-color: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--accent-glow);
}

/* 🎥 Player TV Fullscreen Force */
body.tv-mode .player-modal {
  z-index: 9999999 !important;
  display: none;
}
body.tv-mode .player-modal--open {
  display: flex !important;
}
body.tv-mode .player-modal__content {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
body.tv-mode .player-modal__body {
  height: 100% !important;
  background: black !important;
}
body.tv-mode #playerFrame, 
body.tv-mode #nativePlayer {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
}

/* Foco para el botón de cerrar en TV */
body.tv-mode #playerClose:focus {
  background: var(--accent) !important;
  color: white !important;
  transform: scale(1.4);
  box-shadow: 0 0 20px var(--accent-glow);
  outline: none;
}

