/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
/* Google TV Style Theme */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&family=Roboto:wght@300;400;500;700&display=swap');

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

:root {
  /* Google TV Dark Theme Colors */
  --bg-primary: #0f0f0f;
  --bg-secondary: #181818;
  --bg-card: #1f1f1f;
  --bg-card-hover: #2a2a2a;
  --bg-surface: #282828;
  --bg-elevated: #333333;

  /* Text Colors */
  --text-primary: #e8eaed;
  --text-secondary: #9aa0a6;
  --text-muted: #5f6368;

  /* Accent Colors - Google TV Teal */
  --accent: #1a73e8;
  --accent-light: #4285f4;
  --accent-glow: rgba(26, 115, 232, 0.3);
  --teal: #00bcd4;
  --teal-glow: rgba(0, 188, 212, 0.3);

  /* Other Colors */
  --red: #ea4335;
  --green: #34a853;
  --yellow: #fbbc04;
  --border: rgba(255, 255, 255, 0.1);
  --border-focus: rgba(255, 255, 255, 0.3);

  /* Spacing */
  --nav-width: 72px;
  --nav-expanded: 240px;
  --header-height: 64px;

  /* Animation */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
  line-height: 1.5;
}

/* Scrollbar - Minimal Google Style */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Selection */
::selection {
  background: var(--accent);
  color: white;
}

/* ============================================
   LAYOUT - Google TV Top Nav Structure
   ============================================ */

.gtv-container {
  min-height: 100vh;
  background: var(--bg-primary);
}

/* Top Header Navigation */
.gtv-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 48px 0;
  z-index: 100;
}

.gtv-header-left {
  display: flex;
  align-items: center;
}

.gtv-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 600;
}

.gtv-logo svg {
  color: var(--teal);
}

.gtv-logo .logo-image {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.gtv-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 20px;
  padding: 3px;
  transition: all 0.3s ease;
}

.gtv-nav.scrolled {
  background: transparent;
  border-color: transparent;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
}

.gtv-header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin-left: 80px;
}

.gtv-home-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.gtv-home-nav.scrolled {
  background: transparent;
}

.gtv-home-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.2s ease;
}

.gtv-home-item:hover,
.gtv-home-item.active {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.gtv-nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.gtv-nav-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.15);
}

.gtv-nav-item.active {
  color: var(--bg-primary);
  background: white;
}

.gtv-nav-icon {
  display: flex;
  align-items: center;
}

.gtv-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.gtv-time {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

.gtv-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.gtv-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.gtv-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.gtv-avatar:hover {
  transform: scale(1.1);
}

/* Main Content Area */
.gtv-main {
  padding-top: 0;
  min-height: 100vh;
}

/* Legacy support - keep old classes working */
.main-content {
  flex: 1 1;
  min-height: 100vh;
  overflow-x: hidden;
}

.search-bar {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 10px 20px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all var(--transition-fast);
}

.search-bar:focus-within {
  background: var(--bg-elevated);
  border-color: var(--border-focus);
}

.search-bar input {
  flex: 1 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  margin-left: 12px;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.search-icon {
  color: var(--text-secondary);
  font-size: 18px;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */

.content-area {
  padding: 0 48px 48px;
  position: relative;
  z-index: 2;
  margin-top: 60px;
}

/* Hero Banner */
.hero-banner {
  position: relative;
  height: 70vh;
  min-height: 450px;
  max-height: 600px;
  margin: 0 0 -120px 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transition: opacity 1s ease-in-out;
}

.hero-indicators {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.hero-indicator {
  width: 32px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-indicator:hover {
  background: rgba(255, 255, 255, 0.5);
}

.hero-indicator.active {
  background: white;
  width: 48px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(15, 15, 15, 0.6) 0%,
    rgba(15, 15, 15, 0.3) 40%,
    rgba(15, 15, 15, 0.1) 70%,
    transparent 100%
  );
}

.hero-overlay::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(transparent, var(--bg-primary));
}

.hero-content {
  position: absolute;
  bottom: 180px;
  left: 48px;
  max-width: 550px;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: #000;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--yellow);
}

.hero-description {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-description.hero-oneline {
  -webkit-line-clamp: 1;
  margin-bottom: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: block;
  overflow: hidden;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: white;
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(255,255,255,0.2);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: rgba(255,255,255,0.1);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

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

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.05);
}

/* Platforms Row */
.platforms-row {
  margin-bottom: 40px;
}

.platforms-row .row-title {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.platforms-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 15px 0;
  scrollbar-width: none;
}

.platforms-scroll::-webkit-scrollbar {
  display: none;
}

.platform-item {
  flex-shrink: 0;
  width: 140px;
  height: 70px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  background: #0a0a0a;
}

.platform-item:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.platform-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Platform Colors */
.platform-item.netflix {
  background: #000000;
}

.platform-item.youtube {
  background: #282828;
}

.platform-item.primevideo {
  background: #00A8E1;
}

.platform-item.disneyplus {
  background: #0D1137;
}

.platform-item.hbomax {
  background: #002BE7;
}

.platform-item.appletv {
  background: #1A1A1A;
}

.platform-item.hulu {
  background: #1CE783;
}

.platform-item.spotify {
  background: #191414;
}

.platform-item.crunchyroll {
  background: #F47521;
}

.platform-item.paramount {
  background: #0064FF;
}

.platform-item.tiktok {
  background: #000000;
}

/* Channel Cards - Small Squares */
.channel-card {
  flex-shrink: 0;
  width: 100px;
  cursor: pointer;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.channel-card:hover {
  transform: scale(1.1);
}

.channel-poster {
  width: 100px;
  height: 100px;
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.channel-poster img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.channel-poster-placeholder {
  font-size: 32px;
}

.channel-name {
  margin-top: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Content Row */
.content-row {
  margin-bottom: 40px;
}

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

.row-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

.row-see-all {
  font-size: 14px;
  color: var(--teal);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.row-see-all:hover {
  color: var(--accent-light);
}

/* Cards Container - Horizontal Scroll */
.cards-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 24px 16px 16px;
  margin: -24px -16px -16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.cards-scroll::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Movie/Series Card */
.content-card {
  flex-shrink: 0;
  width: 160px;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  text-decoration: none;
  color: inherit;
}

.content-card:hover {
  transform: scale(1.02);
  z-index: 10;
}

.content-card:focus {
  outline: none;
}

.content-card:focus .card-poster {
  border-color: var(--teal);
}

.card-poster {
  width: 100%;
  aspect-ratio: 2/3;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  border: 2px solid transparent;
}

.content-card:hover .card-poster {
  box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
  border-color: rgba(0, 188, 212, 0.5);
}

.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.card-poster-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-surface) 100%);
  font-size: 56px;
}

/* Play overlay on hover */

.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--red);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.card-rating {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.4);
  color: var(--yellow);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255,255,255,0.2);
}

.card-progress-bar {
  height: 100%;
  background: var(--red);
  border-radius: 0 2px 2px 0;
}

.card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.15);
  text-align: center;
}

.card-title {
  font-size: 12px;
  font-weight: 500;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.card-subtitle {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

/* Banner Card (horizontal/landscape) */
.banner-card {
  flex-shrink: 0;
  width: 220px;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
}

.banner-card:hover {
  transform: scale(1.05);
  z-index: 10;
}

.banner-poster {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.banner-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.banner-card:hover .banner-poster img {
  transform: scale(1.1);
}

.banner-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-surface) 100%);
  font-size: 48px;
}

.banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 12px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.banner-title {
  font-size: 13px;
  font-weight: 500;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Wide Card (for Continue Watching) */
.content-card-wide {
  flex-shrink: 0;
  width: 320px;
  cursor: pointer;
  transition: transform var(--transition-normal);
}

.content-card-wide:hover {
  transform: scale(1.03);
}

.card-poster-wide {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

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

.card-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.content-card-wide:hover .card-play-overlay {
  opacity: 1;
}

.card-play-btn {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #000;
}

/* Channel Card (for Live TV) */
.channel-card {
  flex-shrink: 0;
  width: 120px;
  padding: 8px;
  background: var(--bg-card);
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
}

.channel-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.channel-card.active {
  border-color: var(--teal);
  background: var(--bg-card-hover);
}

.channel-card:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--teal-glow);
}

.channel-logo {
  width: 80px;
  height: 80px;
  background: #1a1a1a;
  border-radius: 12px;
  margin: 0 auto 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.channel-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.channel-name {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-category {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}

.channel-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--red);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  margin-top: 8px;
}

.channel-live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============================================
   LIVE TV LAYOUT
   ============================================ */

.live-tv-container {
  display: block;
  padding-left: 324px;
  padding-top: 80px;
  min-height: 100vh;
}

.live-sidebar {
  position: fixed;
  top: 80px;
  left: 16px;
  width: 300px;
  height: calc(100vh - 96px);
  background: var(--bg-secondary);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.live-sidebar-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.live-search {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border-radius: 10px;
  padding: 8px 12px;
  gap: 10px;
}

.live-search input {
  flex: 1 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
}

.live-search input::placeholder {
  color: var(--text-muted);
}

.categories-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 12px 0;
  font-size: 9px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.categories-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 2px;
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.2s;
}

.categories-arrow:hover {
  opacity: 1;
  transform: scale(1.2);
}

.categories-tabs-wrapper {
  position: relative;
  flex-shrink: 0;
}

.categories-tabs-wrapper::before,
.categories-tabs-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 1px;
  width: 20px;
  z-index: 1;
  pointer-events: none;
}

.categories-tabs-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-secondary), transparent);
}

.categories-tabs-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-secondary), transparent);
}

.categories-tabs {
  display: flex;
  gap: 6px;
  padding: 4px 16px 6px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.categories-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  padding: 5px 12px;
  background: var(--bg-surface);
  border-radius: 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.category-tab:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.category-tab.active {
  background: var(--teal);
  color: #000;
}

.channels-list {
  flex: 1 1;
  overflow-y: auto;
  padding: 8px;
}

.channel-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.channel-list-item:hover {
  background: var(--bg-card);
}

.channel-list-item.active {
  background: var(--bg-card-hover);
}

.channel-list-logo {
  width: 48px;
  height: 48px;
  background: #2a2a2a;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.channel-list-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.channel-list-info {
  flex: 1 1;
  min-width: 0;
}

.channel-list-name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-list-program {
  font-size: 11px;
  color: var(--teal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.channel-list-epg {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Player Area */
.live-player-area {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.player-container {
  position: relative;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.player-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-info-bar {
  padding: 24px;
  background: var(--bg-secondary);
  border-radius: 16px;
}

.player-channel-info {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.player-channel-logo {
  width: 64px;
  height: 64px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.player-channel-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.player-channel-name {
  font-size: 24px;
  font-weight: 600;
}

.player-channel-current {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.epg-timeline {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0;
}

.epg-item {
  flex-shrink: 0;
  padding: 12px 16px;
  background: var(--bg-surface);
  border-radius: 8px;
  min-width: 200px;
}

.epg-item.current {
  background: var(--teal);
  color: #000;
}

.epg-time {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.epg-title {
  font-size: 14px;
}

/* ============================================
   YOUTUBE STYLE PLAYER
   ============================================ */

.yt-player-area {
  display: flex;
  align-items: flex-start;
  min-height: calc(100vh - 80px);
  padding: 0 20px 20px 12px;
}

.yt-player-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}

.yt-player-left {
  flex: 0 0 auto;
  width: 63%;
  max-width: 805px;
}

.yt-video-wrapper {
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.yt-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Plyr embedded in Live TV */
.yt-video-wrapper .plyr {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.yt-video-wrapper .plyr__video-wrapper {
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.yt-video-wrapper .plyr__controls {
  border-radius: 0 0 12px 12px;
}

.yt-video-info {
  padding: 12px 0;
}

.yt-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.yt-video-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  flex: 1 1;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yt-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #cc0000;
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.yt-live-dot {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: yt-pulse 1.5s ease-in-out infinite;
}

@keyframes yt-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.yt-current-program {
  margin-bottom: 16px;
  padding-left: 2px;
}

.yt-program-title {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.yt-program-description {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

.cinema-mode .yt-program-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-channel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.yt-channel-avatar {
  width: 48px;
  height: 36px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.yt-avatar-placeholder {
  color: var(--text-muted);
}

.yt-channel-details {
  flex: 1 1;
  min-width: 0;
}

.yt-channel-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yt-channel-category {
  font-size: 12px;
  color: var(--text-muted);
}

.yt-favorite-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-surface);
  border: none;
  border-radius: 18px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.yt-favorite-btn:hover {
  background: var(--bg-elevated);
}

.yt-favorite-btn.active {
  background: var(--red);
  color: white;
}

.yt-cinema-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: var(--bg-surface);
  border: none;
  border-radius: 8px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.yt-cinema-btn:hover {
  background: var(--bg-elevated);
}

.yt-cinema-btn.active {
  background: var(--teal);
  color: #000;
}

/* Cinema Mode Overlay Button on Video */
.yt-cinema-overlay {
  position: absolute;
  bottom: 12px;
  right: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0;
  z-index: 10;
}

.yt-video-wrapper:hover .yt-cinema-overlay {
  opacity: 1;
}

.yt-cinema-overlay:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.yt-cinema-overlay.active {
  background: var(--teal);
  color: #000;
  opacity: 1;
}

/* Cinema Mode Styles */
.yt-player-area.cinema-mode {
  padding: 0 20px 10px 12px;
  overflow: hidden;
  max-height: calc(100vh - 80px);
}

.yt-player-left.cinema-mode {
  width: 100%;
  max-width: none;
}

.yt-player-left.cinema-mode .yt-video-wrapper {
  aspect-ratio: unset;
  height: calc(100vh - 220px);
  max-height: 70vh;
  border-radius: 12px;
  overflow: hidden;
}

.yt-player-left.cinema-mode .yt-video-wrapper .plyr {
  border-radius: 12px;
  overflow: hidden;
}

.yt-player-left.cinema-mode .yt-video-wrapper .plyr__video-wrapper {
  border-radius: 12px;
  overflow: hidden;
}

.yt-player-left.cinema-mode .yt-video-info {
  padding: 8px 0;
}

.yt-epg-section {
  flex: 1 1;
  max-width: 320px;
  max-height: calc(100vh - 200px);
  background: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
}

.yt-epg-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

.yt-epg-days {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}

.yt-epg-day-btn {
  padding: 6px 16px;
  border: none;
  border-radius: 20px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.yt-epg-day-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.yt-epg-day-btn.active {
  background: var(--teal);
  color: #000;
}

.yt-epg-list {
  flex: 1 1;
  overflow-y: auto;
}

.yt-epg-item {
  display: flex;
  gap: 16px;
  padding: 14px 20px;
  transition: background 0.15s ease;
}

.yt-epg-item:hover {
  background: var(--bg-card-hover);
}

.yt-epg-item.current {
  background: rgba(0, 188, 212, 0.1);
}

.yt-epg-time {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  width: 50px;
  flex-shrink: 0;
}

.yt-epg-item.current .yt-epg-time {
  color: var(--teal);
}

.yt-epg-content {
  flex: 1 1;
  min-width: 0;
}

.yt-epg-title {
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yt-epg-item.current .yt-epg-title {
  font-weight: 500;
  color: var(--teal);
}

.yt-epg-progress {
  height: 3px;
  background: var(--bg-elevated);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.yt-epg-progress-bar {
  height: 100%;
  background: var(--teal);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* ============================================
   LOGIN PAGE
   ============================================ */

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 50%, #16213e 100%);
  position: relative;
  overflow: hidden;
}

.login-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(0, 188, 212, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(26, 115, 232, 0.1) 0%, transparent 50%);
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: 56px 48px;
  background: rgba(31, 31, 31, 0.9);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.login-logo {
  text-align: center;
  margin-bottom: 40px;
}

.login-logo-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--accent) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  box-shadow: 0 8px 32px rgba(0, 188, 212, 0.3);
}

.login-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.login-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--accent) 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: 12px;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 188, 212, 0.4);
}

.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.login-error {
  padding: 12px 16px;
  background: rgba(234, 67, 53, 0.1);
  border: 1px solid rgba(234, 67, 53, 0.3);
  border-radius: 8px;
  color: var(--red);
  font-size: 14px;
  text-align: center;
}

.login-options {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.login-option {
  flex: 1 1;
  padding: 20px 16px;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  border-radius: 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.login-option:hover {
  background: var(--bg-elevated);
  border-color: rgba(0, 188, 212, 0.5);
  transform: translateY(-2px);
}

.login-option.active {
  background: rgba(0, 188, 212, 0.1);
  border-color: var(--teal);
  box-shadow: 0 0 20px rgba(0, 188, 212, 0.2);
}

.login-option-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.login-option.active .login-option-icon {
  color: var(--teal);
}

.login-option-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.login-option.active .login-option-title {
  color: var(--text-primary);
}

/* ============================================
   FULLSCREEN PLAYER
   ============================================ */

.fullscreen-player {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 1000;
}

.fullscreen-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Embedded Player */
.embedded-player {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.embedded-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.embedded-player .player-close-btn {
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
}

/* Fix Plyr controls position in embedded mode */
.embedded-player .plyr {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.embedded-player .plyr__video-wrapper {
  position: absolute;
  inset: 0;
  height: 100% !important;
}

.embedded-player .plyr__controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.player-controls-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 60%, rgba(0,0,0,0.8));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.fullscreen-player:hover .player-controls-overlay {
  opacity: 1;
}

.player-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,0.6);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-close-btn:hover {
  background: rgba(255,255,255,0.2);
}

.player-title-bar {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 80px;
  background: rgba(0,0,0,0.6);
  padding: 16px 24px;
  border-radius: 12px;
}

.player-title-bar h2 {
  font-size: 18px;
  font-weight: 600;
}

.player-title-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.player-live-badge .live-dot {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

/* ============================================
   PLYR CUSTOMIZATION
   ============================================ */

.plyr-fullscreen .plyr {
  height: 100%;
}

.plyr-fullscreen .plyr__video-wrapper {
  height: 100%;
}

/* Custom Plyr colors */
.plyr {
  position: relative;
  --plyr-color-main: #ff5722;
  --plyr-video-background: #000;
  --plyr-menu-background: rgba(30, 30, 30, 0.95);
  --plyr-menu-color: #e8eaed;
  --plyr-menu-border-color: rgba(255, 255, 255, 0.1);
  --plyr-control-spacing: 12px;
  --plyr-video-control-color: #fff;
  --plyr-video-control-color-hover: #ff5722;
  --plyr-video-control-background-hover: rgba(255, 87, 34, 0.2);
  --plyr-tooltip-background: rgba(0, 0, 0, 0.9);
  --plyr-tooltip-color: #fff;
  --plyr-font-family: 'Google Sans', 'Roboto', sans-serif;
}

/* Larger controls */
.plyr__control {
  padding: 10px !important;
}

.plyr__control svg {
  width: 22px;
  height: 22px;
}

/* Progress bar styling */
.plyr__progress input[type=range] {
  color: #ff5722;
}

.plyr__progress__buffer {
  background: rgba(255, 255, 255, 0.2);
}

/* Volume slider */
.plyr__volume input[type=range] {
  color: #ff5722;
}

/* Settings menu */
.plyr__menu__container {
  background: rgba(20, 20, 20, 0.98) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  z-index: 10 !important;
}

/* Subtítulos: NO deben capturar clicks ni taps — si lo hacen, interfieren con
   el menú de la tuerca (configuración/velocidad/subs) que se renderiza sobre
   el video. Cuando un cue está activo y el menú abierto, el cue tapa los items
   del menú y los clicks no llegan. */
.plyr__captions,
.plyr__captions * {
  pointer-events: none !important;
  -webkit-user-select: none !important;
     -moz-user-select: none !important;
          user-select: none !important;
}

.plyr__menu__container .plyr__control {
  color: #e8eaed !important;
}

.plyr__menu__container .plyr__control:hover {
  background: rgba(255, 87, 34, 0.2) !important;
}

.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::before {
  background: #ff5722 !important;
}

/* Center the radio button dots inside the circle */
.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::after {
  left: 18px !important;
  top: 49% !important;
  transform: translate(-50%, -50%) !important;
}

/* Settings submenu back button - show "Atrás" instead of section name */
.plyr__menu__container .plyr__control--back {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.plyr__menu__container .plyr__control--back span {
  font-size: 0 !important;
}

.plyr__menu__container .plyr__control--back span::after {
  content: '◀ Atrás';
  font-size: 14px;
}

/* Hide arrows in settings menu */
.plyr__menu__container .plyr__control--back::before,
.plyr__menu__container .plyr__control--back::after,
.plyr__menu__container .plyr__control--back svg,
.plyr__menu__container .plyr__control--forward::after,
.plyr__menu__container .plyr__control--forward::before,
.plyr__menu__container .plyr__control[role="menuitem"]::after {
  display: none !important;
}

/* Play large button */
.plyr__control--overlaid {
  background: rgba(255, 87, 34, 0.9) !important;
  border-radius: 50% !important;
  transition: box-shadow 0.2s ease !important;
}

.plyr__control--overlaid:hover {
  background: #ff5722 !important;
  box-shadow: 0 0 30px rgba(255, 87, 34, 0.6) !important;
}

.plyr__control--overlaid svg {
  fill: #fff !important;
  color: #fff !important;
}

.plyr__control--overlaid:hover svg {
  fill: #fff !important;
  color: #fff !important;
}

/* Time display */
.plyr__time {
  font-size: 14px !important;
  font-weight: 500 !important;
}

/* Captions */
.plyr__captions {
  font-size: 18px !important;
  font-family: 'Google Sans', sans-serif !important;
}

/* Subtitles without black background */
video::cue {
  background: transparent !important;
  color: #fff;
  font-family: 'Google Sans', 'Roboto', sans-serif;
  font-size: 1.1em;
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.9),
    -1px -1px 2px rgba(0, 0, 0, 0.9),
    1px -1px 2px rgba(0, 0, 0, 0.9),
    -1px 1px 2px rgba(0, 0, 0, 0.9),
    0 0 8px rgba(0, 0, 0, 0.8);
}

.plyr__captions span {
  background: transparent !important;
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.9),
    -1px -1px 2px rgba(0, 0, 0, 0.9),
    1px -1px 2px rgba(0, 0, 0, 0.9),
    -1px 1px 2px rgba(0, 0, 0, 0.9),
    0 0 8px rgba(0, 0, 0, 0.8);
}

/* Fullscreen adjustments */
.plyr--fullscreen-fallback {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* Cinema mode button in Plyr controls */
.plyr-cinema-btn {
  opacity: 0.8;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.plyr-cinema-btn:hover {
  opacity: 1;
}

.plyr-cinema-btn.active {
  color: #ff5722 !important;
  opacity: 1;
}

.plyr-cinema-btn svg {
  pointer-events: none;
}

/* Ocultar modo cine en fullscreen */
.plyr:-webkit-full-screen .plyr-cinema-btn, :-webkit-full-screen .plyr-cinema-btn, *:-webkit-full-screen .plyr-cinema-btn {
  display: none !important;
}
.plyr--fullscreen-active .plyr-cinema-btn,
.plyr--fullscreen .plyr-cinema-btn,
.plyr:fullscreen .plyr-cinema-btn,
:fullscreen .plyr-cinema-btn,
*:fullscreen .plyr-cinema-btn {
  display: none !important;
}

/* Channels button in Plyr controls - solo visible en fullscreen */
.plyr-channels-btn {
  display: none !important;
  align-items: center;
  gap: 6px;
  padding: 0 12px !important;
  opacity: 0.9;
  transition: opacity 0.2s ease;
  order: -1 !important; /* Forzar a la izquierda después del play */
}

/* El botón play tiene order más bajo para estar primero */
.plyr__controls [data-plyr="play"] {
  order: -2 !important;
}

.plyr:-webkit-full-screen .plyr-channels-btn, :-webkit-full-screen .plyr-channels-btn, *:-webkit-full-screen .plyr-channels-btn {
  display: flex !important;
}

.plyr--fullscreen-active .plyr-channels-btn,
.plyr--fullscreen .plyr-channels-btn,
.plyr.plyr--fullscreen-active .plyr-channels-btn,
.plyr:fullscreen .plyr-channels-btn,
:fullscreen .plyr-channels-btn,
*:fullscreen .plyr-channels-btn {
  display: flex !important;
}

.plyr-channels-btn:hover {
  opacity: 1;
}

.plyr-channels-btn .plyr-btn-text {
  font-size: 13px;
  font-weight: 500;
}

.plyr-channels-btn svg {
  pointer-events: none;
}

/* Channel Menu Overlay - dentro del contenedor Plyr para fullscreen */
.channel-menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 50;
}

.channel-menu {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: auto;
  max-width: 90%;
  max-height: 80%;
  background: rgba(10, 10, 10, 0.85);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-radius: 0 12px 12px 0;
  z-index: 51;
  display: flex;
  flex-direction: row;
  animation: slideInLeft 0.3s ease;
  overflow: hidden;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%) translateY(-50%);
  }
  to {
    transform: translateX(0) translateY(-50%);
  }
}

.channel-menu-header {
  display: none;
}

.channel-menu-left {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  position: relative;
}

.channel-menu-left::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 15%,
    rgba(255, 255, 255, 0.15) 85%,
    transparent 100%
  );
}

.channel-menu-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.5);
}

.channel-menu-search input {
  flex: 1 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 12px;
  width: 100px;
}

.channel-menu-search input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.channel-menu-categories {
  width: 180px;
  flex: 1 1;
  overflow-y: auto;
  padding: 0 8px 8px;
  display: flex;
  flex-direction: column;
}

.channel-menu-category {
  display: block;
  width: 100%;
  flex-shrink: 0;
  padding: 8px 12px;
  margin-bottom: 2px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.channel-menu-category svg {
  display: none;
}

.channel-menu-category:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.channel-menu-category.active {
  background: rgba(255, 87, 34, 0.3);
  color: #ff5722;
}

.channel-menu-channels {
  width: 280px;
  max-height: 100%;
  overflow-y: auto;
  padding: 12px 8px;
  position: relative;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 6%,
    black 94%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 6%,
    black 94%,
    transparent 100%
  );
}

.channel-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  margin-bottom: 2px;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

.channel-menu-item.active {
  background: rgba(255, 87, 34, 0.2);
}

.channel-menu-item-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

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

.channel-menu-item-logo span {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
}

.channel-menu-item-info {
  flex: 1 1;
  min-width: 0;
}

.channel-menu-item-name {
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-menu-item-program {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================
   EPG PROGRAM MODAL
   ============================================ */

.epg-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 300;
}

.epg-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-card);
  border-radius: 12px;
  padding: 24px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 301;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.epg-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.epg-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.epg-modal-time {
  font-size: 13px;
  color: #ff5722;
  font-weight: 500;
  margin-bottom: 8px;
}

.epg-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 16px 0;
  padding-right: 30px;
}

.epg-modal-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   USER MENU DRAWER
   ============================================ */

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.drawer-overlay.open {
  opacity: 1;
}

.user-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 360px;
  background: var(--bg-secondary);
  z-index: 201;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.user-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.drawer-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.drawer-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.drawer-user-info h3 {
  font-size: 18px;
  font-weight: 600;
}

.drawer-user-info p {
  font-size: 14px;
  color: var(--text-secondary);
}

.drawer-content {
  flex: 1 1;
  padding: 24px;
  overflow-y: auto;
}

.drawer-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-menu-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.drawer-menu-item:hover {
  background: var(--bg-card);
}

.drawer-menu-icon {
  font-size: 20px;
}

.drawer-menu-text {
  font-size: 15px;
  font-weight: 500;
}

.drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
}

.logout-btn {
  width: 100%;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--red);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.logout-btn:hover {
  background: rgba(234, 67, 53, 0.1);
  border-color: var(--red);
}

/* ============================================
   LOADING STATES
   ============================================ */

.loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--bg-surface);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
  .live-tv-container {
    padding-left: 284px;
  }

  .live-sidebar {
    width: 260px;
  }

  .hero-title {
    font-size: 36px;
  }

  .gtv-header {
    padding: 0 32px;
  }

  .gtv-nav-item {
    padding: 8px 16px;
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .gtv-header {
    padding: 0 20px;
  }

  .gtv-logo span {
    display: none;
  }

  .gtv-nav-item {
    padding: 8px 12px;
  }

  .live-tv-container {
    padding-left: 0;
  }

  .live-sidebar {
    display: none;
  }

  .content-area {
    padding: 0 20px 20px;
  }

  .hero-banner {
    height: 50vh;
    min-height: 350px;
  }

  .hero-content {
    left: 20px;
    bottom: 80px;
    max-width: 80%;
  }

  .hero-title {
    font-size: 28px;
  }
}

@media (max-width: 600px) {
  .gtv-nav {
    display: none;
  }

  .login-card {
    margin: 20px;
    padding: 32px 24px;
  }

  .content-card {
    width: 120px;
  }

  .content-card-wide {
    width: 260px;
  }

  .hero-content {
    bottom: 60px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .btn-primary, .btn-secondary {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* ============================================
   SEARCH SUGGESTIONS DROPDOWN
   ============================================ */

.search-container {
  position: relative;
  width: 500px;
  max-width: 50%;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  max-height: 400px;
  overflow-y: auto;
  z-index: 100;
}

.suggestion-category {
  padding: 12px 16px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.suggestion-item:hover {
  background: var(--bg-card);
}

.suggestion-item:last-child {
  border-radius: 0 0 16px 16px;
}

.suggestion-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-surface);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.suggestion-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.suggestion-icon span {
  font-size: 18px;
}

.suggestion-text {
  flex: 1 1;
  min-width: 0;
}

.suggestion-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-type {
  font-size: 12px;
  color: var(--text-muted);
}

.suggestion-no-results {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* Hide scrollbar for cast */
.cast-scroll::-webkit-scrollbar,
div[style*="scrollbarWidth"]::-webkit-scrollbar {
  display: none;
}

/* Similar movies card hover effect */
.similar-movie-card {
  transition: transform 0.2s ease;
}

.similar-movie-card:hover {
  transform: scale(1.08);
}

.similar-movie-poster {
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  border: 2px solid transparent;
}

.similar-movie-card:hover .similar-movie-poster {
  box-shadow: 0 8px 25px rgba(0, 188, 212, 0.3);
  border-color: rgba(0, 188, 212, 0.5);
}

/* ============================================
   MOBILE ADAPTATION (≤768px / ≤480px / landscape)
   ============================================ */

/* Helpers globales (siempre activos) */
.cards-scroll {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* Ocultar scrollbar de overlay móvil (mismo trato que cards-scroll) */
.mobile-detail-scroll::-webkit-scrollbar { display: none; width: 0; }
.mobile-detail-scroll { scrollbar-width: none; -ms-overflow-style: none; }

/* Reemplaza el botón play overlaid con un SVG único (círculo + triángulo en uno)
   — evita problemas de centrado óptico en cualquier tamaño/modo. */
.plyr .plyr__control--overlaid {
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='48' fill='%23ff5722'/%3E%3Cpolygon points='37,28 73,50 37,72' fill='white' stroke='white' stroke-width='5' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
  transition: filter 0.15s ease !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
       user-select: none !important;
}
.plyr .plyr__control--overlaid:hover {
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='48' fill='%23ff7043'/%3E%3Cpolygon points='37,28 73,50 37,72' fill='white' stroke='white' stroke-width='5' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat !important;
  filter: brightness(1.08) !important;
}
.plyr .plyr__control--overlaid > * {
  opacity: 0 !important;
}

/* Fuerza al .plyr interno (que Plyr crea dentro del wrapper móvil) a llenar el
   contenedor. Sin esto los controles aparecen arriba descentrados antes de que
   el video tenga metadata, porque .plyr tiene height:0 hasta que carga. */
.m-video-wrapper > .plyr,
.m-video-wrapper > .plyr > .plyr__video-wrapper {
  width: 100% !important;
  height: 100% !important;
}
.m-video-wrapper video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

/* Channel menu cuando isMobile=true (portrait y landscape) — clase aplicada desde JSX */
.channel-menu-overlay.cm-mobile {
  position: fixed !important;
  inset: 0 !important;
  z-index: 114 !important;
}
.channel-menu.cm-mobile {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  bottom: 0 !important;
  transform: none !important;
  width: auto !important;
  max-width: 95vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  border-radius: 0 12px 12px 0 !important;
  animation: none !important;
  z-index: 115 !important;
}
.channel-menu.cm-mobile .channel-menu-categories {
  width: auto !important;
  min-width: 130px;
  max-width: 200px;
}
.channel-menu.cm-mobile .channel-menu-channels {
  width: auto !important;
  min-width: 240px;
  max-width: 320px;
}
.channel-menu.cm-mobile .channel-menu-search {
  padding: 2px 10px !important;
  margin: 4px 8px !important;
}
.channel-menu.cm-mobile .channel-menu-search input {
  font-size: 13px !important;
}

/* Filas horizontales internas del detail móvil (sin el override de .cards-scroll que rompe el padding) */
.m-detail-row {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.m-detail-row::-webkit-scrollbar { display: none; }

/* En touch devices: desactivar :hover transforms para evitar "sticky hover" */
@media (hover: none) {
  .content-card:hover,
  .content-card-wide:hover,
  .channel-card:hover,
  .similar-movie-card:hover,
  .similar-movie-card:hover .similar-movie-poster {
    transform: none;
    box-shadow: none;
    border-color: transparent;
  }
  .content-card:hover .card-poster,
  .content-card:hover .card-poster img {
    transform: none;
  }
}

/* === TABLET / MOBILE ANCHO (≤768px) === */
@media (max-width: 768px) {
  /* Header */
  .gtv-header { padding: 0 12px !important; height: 60px !important; gap: 8px !important; }
  .gtv-logo .logo-image { height: 50px !important; }
  .gtv-logo span { display: none !important; }
  .gtv-nav { display: none !important; }
  .gtv-home-nav { display: none !important; }
  .gtv-header-right { gap: 4px !important; }
  .gtv-time { display: none !important; }
  .gtv-icon-btn { width: 40px !important; height: 40px !important; }
  .gtv-avatar { width: 40px !important; height: 40px !important; }

  /* Search container en header */
  .search-container { width: auto !important; max-width: 100% !important; flex: 1 1 !important; }

  /* Content area: padding 48 → 12 */
  .content-area { padding: 0 12px 80px !important; }
  .main-content { padding-top: 60px !important; }

  /* Hero banner */
  .hero-banner { height: 50vh !important; min-height: 280px !important; max-height: 420px !important; }
  .hero-content { left: 16px !important; right: 16px !important; bottom: 80px !important; max-width: 100% !important; }
  .hero-title { font-size: 24px !important; line-height: 1.15 !important; }
  .hero-description { font-size: 13px !important; -webkit-line-clamp: 2; }
  .hero-meta { font-size: 12px !important; gap: 8px !important; flex-wrap: wrap; }
  .hero-actions { flex-wrap: wrap; gap: 8px !important; }
  .btn-primary, .btn-secondary { padding: 10px 16px !important; font-size: 13px !important; min-height: 44px; }
  .btn-icon { width: 44px !important; height: 44px !important; }

  /* Tarjetas */
  .content-card { width: 130px !important; }
  .content-card-wide { width: 220px !important; }
  .channel-card { width: 90px !important; height: 90px !important; }
  .card-info { padding: 6px 8px !important; }
  .card-info .card-title { font-size: 12px !important; }

  /* Filas */
  .content-row { margin-bottom: 24px !important; }
  .content-row h2 { font-size: 16px !important; margin-bottom: 8px !important; }
  .cards-scroll { gap: 8px !important; padding: 4px 0 !important; }

  /* Live TV: ocultar sidebar, contenido full width */
  .live-tv-container { padding-left: 0 !important; padding-right: 0 !important; }
  .live-sidebar { display: none !important; }
  .live-player-area, .yt-player-area { padding: 0 !important; }
  .yt-player-layout { flex-direction: column !important; gap: 0 !important; }
  .yt-player-left, .yt-player-right { width: 100% !important; max-width: 100% !important; }
  .yt-video-wrapper { width: 100% !important; max-width: 100vw !important; border-radius: 0 !important; }
  .yt-epg-section { width: 100% !important; padding: 12px !important; border-radius: 0 !important; }
  .yt-video-title { font-size: 16px !important; }
  .yt-channel-row { padding: 8px 12px !important; }
  .yt-channel-avatar { width: 36px !important; height: 36px !important; }
  .yt-cinema-overlay { display: none !important; }
  .yt-cinema-btn { display: none !important; }

  /* Player overlays */
  .fullscreen-player { padding: 0 !important; }
  .player-close-btn {
    top: max(12px, env(safe-area-inset-top)) !important;
    right: max(12px, env(safe-area-inset-right)) !important;
    width: 44px !important;
    height: 44px !important;
  }
  .player-title-bar {
    top: max(12px, env(safe-area-inset-top)) !important;
    left: max(12px, env(safe-area-inset-left)) !important;
    right: 64px !important;
    padding: 8px 14px !important;
    font-size: 14px !important;
  }
  .player-title-bar h2 {
    font-size: 14px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Plyr en móvil */
  .plyr { --plyr-control-spacing: 8px; }
  .plyr__control { padding: 8px !important; min-width: 44px; min-height: 44px; }
  .plyr__control svg { width: 20px; height: 20px; }
  .plyr__captions { font-size: 16px !important; padding: 4px 8px !important; }
  /* En móvil, agrupar los controles a la izquierda en lugar de distribuirlos */
  .plyr__controls { justify-content: flex-start !important; }
  .plyr__controls > .plyr__progress__container { flex: 1 1 auto !important; }

  /* Channel menu móvil — reglas también disponibles vía .cm-mobile fuera del media query (ver abajo) */
  video::cue { font-size: 0.85em !important; }
  .plyr__menu__container { max-height: 60vh !important; overflow-y: auto !important; }

  /* User drawer móvil más compacto */
  .user-drawer { width: 88% !important; max-width: 320px !important; }
  .user-drawer .drawer-header { padding: 18px 16px !important; }
  .user-drawer .drawer-avatar { width: 50px !important; height: 50px !important; }
  .user-drawer .drawer-user-info h3 { font-size: 16px !important; }
  .user-drawer .drawer-content { padding: 12px 12px 80px !important; }
  .user-drawer .drawer-menu-item { padding: 10px 12px !important; min-height: 44px; }
  .user-drawer .drawer-footer { padding: 12px !important; }

  /* Login */
  .login-card { margin: 16px !important; padding: 24px 18px !important; max-width: 100%; }

  /* Search */
  .search-suggestions { max-height: 320px; }

  /* Cast/similares: deshabilitar hover scale */
  .similar-movie-card:hover { transform: none !important; }
}

/* === MOBILE PEQUEÑO (≤480px) === */
@media (max-width: 480px) {
  .gtv-header { padding: 0 8px !important; height: 56px !important; }
  .gtv-logo .logo-image { height: 46px !important; }
  .main-content { padding-top: 56px !important; }
  .content-area { padding: 0 8px 80px !important; }

  .hero-banner { height: 44vh !important; min-height: 240px !important; }
  .hero-content { left: 12px !important; right: 12px !important; bottom: 72px !important; }
  .hero-title { font-size: 20px !important; }
  .hero-description { font-size: 12px !important; }
  .btn-primary, .btn-secondary { padding: 9px 14px !important; font-size: 12px !important; }

  .content-card { width: 115px !important; }
  .content-card-wide { width: 180px !important; }
  .channel-card { width: 80px !important; height: 80px !important; }
  .card-info .card-title { font-size: 11px !important; }
  .cards-scroll { gap: 6px !important; }

  .yt-video-title { font-size: 14px !important; }
  .yt-channel-row { padding: 6px 10px !important; }

  .plyr__control { padding: 6px !important; }
  .plyr__control svg { width: 18px; height: 18px; }
  .plyr__captions { font-size: 14px !important; }
  video::cue { font-size: 0.8em !important; }
}

/* === MOBILE MUY PEQUEÑO (≤360px) === */
@media (max-width: 360px) {
  .content-card { width: 105px !important; }
  .channel-card { width: 72px !important; height: 72px !important; }
  .hero-title { font-size: 18px !important; }
  .btn-primary, .btn-secondary { padding: 8px 12px !important; font-size: 11px !important; }
}

/* === LANDSCAPE MÓVIL (ej. video fullscreen rotado) === */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .gtv-header { display: none !important; }
  .main-content { padding-top: 0 !important; }
  .hero-banner { height: 100vh !important; max-height: none !important; min-height: 0 !important; }
  .yt-epg-section { display: none !important; }
  .player-title-bar { top: 8px !important; }
  .player-close-btn { top: 8px !important; }
}

/* === SAFE AREA INSETS (solo móvil — iPhone notch / Android gesture bar) === */
@media (max-width: 768px) {
  @supports (padding: env(safe-area-inset-bottom)) {
    body { padding-bottom: env(safe-area-inset-bottom); }
    .gtv-header { padding-left: max(12px, env(safe-area-inset-left)) !important; padding-right: max(12px, env(safe-area-inset-right)) !important; }
  }
}

/* === BOTTOM NAV MÓVIL (rendered desde Dashboard) === */
.mobile-bottom-nav {
  display: none;
}
@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70px;
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(15, 15, 15, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 110;
    justify-content: space-around;
    align-items: stretch;
  }
  .mobile-bottom-nav .mbn-item {
    flex: 1 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 4px;
    min-height: 44px;
    text-decoration: none;
    transition: color var(--transition-fast);
  }
  .mobile-bottom-nav .mbn-item.active { color: #fff; }
  .mobile-bottom-nav .mbn-item svg { width: 26px; height: 26px; }
}


