:root {
  --primary-bg: #070707;
  --secondary-bg: #07070707;
  --card-bg: #121212;
  --accent-color: #ef4444;
  --accent-hover: #212121;
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --border-color: #212121;
  --highlight: #f59e0b;
  --highlight-red: #ef4444;
  --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition-normal: all 0.3s ease;
  --transition-fast: all 0.15s ease;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}
body {
  background-color: var(--primary-bg);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.5;
}
/* Scrollbar personalizado */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--secondary-bg);
}
::-webkit-scrollbar-thumb {
  background-color: var(--accent-color);
  border-radius: 20px;
}
/* Header */
header {
  background-color: var(--secondary-bg);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.logo {
  font-size: 2.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  color: var(--text-primary);
  text-decoration: none;
}
.logo span {
  color: var(--highlight-red);
  font-weight: 700;
}
.logo2 {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  color: var(--text-primary);
  text-decoration: none;
}
.logo2 span {
  color: var(--highlight-red);
  font-weight: 700;
}
.search-container {
  display: flex;
  align-items: center;
  background-color: transparent;
  border-radius: 18px;
  padding: 0.5rem 1rem;
  width: 50%;
  max-width: 500px;
  transition: var(--transition-normal);
  border: 1px solid var(--border-color);
}
.search-container:focus-within {
  box-shadow: 0 0 0 2px var(--accent-color);
  background-color: rgba(255, 255, 255, 0.15);
}
.search-container input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  width: 100%;
  padding: 0.5rem;
  outline: none;
  font-size: 1rem;
}
.search-container button {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-container button:hover {
  color: var(--text-primary);
}
/* Navigation */
.nav-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
  padding-bottom: 1rem;
}
.nav-tab {
  width: 100%;
  height: 45px;
  justify-content: center;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent-hover);
}
.nav-tab:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.nav-tab.active {
  background-color: var(--accent-color);
  color: white;
}
/* Main content */
main {
  padding: 2rem;
  max-width: 1600px;
  margin: 0 auto;
}
.hero-section {
  position: relative;
  margin-bottom: 0rem;
  border-radius: 1rem;
  overflow: hidden;
  height: 500px;
}
.hero-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, var(--primary-bg) 0%, rgba(17, 24, 39, 0.7) 50%, rgba(17, 24, 39, 0.4) 100%);
  z-index: 2;
}
.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0rem;
  z-index: 3;
}
.hero-title {
  margin: 1rem;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.hero-meta {
  display: flex;
  gap: 1rem;
  margin: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.hero-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.hero-description {
  max-width: 700px;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  font-size: 1rem;
}
.btn-primary {
  background-color: var(--accent-color);
  color: white;
}
.btn-primary:hover {
  background-color: var(--accent-hover);
}
.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
.btn-red {
  background-color: var(--highlight-red);
  color: white;
  width: 100%;
}
.btn-red:hover {
  background-color: #dc2626;
}
/* Secciones de género */
.genre-section {
  margin-bottom: 3rem;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-title i {
  color: var(--accent-color);
}
.see-all {
  color: var(--accent-color);
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition-fast);
}
.see-all:hover {
  color: var(--accent-hover);
}
.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}
.movies-row {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding-bottom: 1rem;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) var(--secondary-bg);
  -webkit-overflow-scrolling: touch;
}
/* Botones de navegación para carruseles */
.carousel-nav {
  display: flex;
  gap: 0.5rem;
}
.carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}
.carousel-btn:hover {
  background-color: var(--accent-color);
}
/* Movie cards */
.movie-card {
  background-color: var(--card-bg);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: var(--transition-normal);
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
  width: 180px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}
.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--accent-color);
}
.movie-poster-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
}
.movie-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.movie-card:hover .movie-poster {
  transform: scale(1.05);
}
.movie-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%);
  opacity: 0;
  transition: var(--transition-normal);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.movie-card:hover .movie-overlay {
  opacity: 1;
}
.movie-play-btn {
  background-color: var(--highlight-red);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}
.movie-play-btn:hover {
  background-color: #dc2626;
  transform: scale(1.1);
}
.movie-info {
  padding: 1rem;
}
.movie-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.5rem;
}
.movie-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.movie-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.movie-rating i {
  color: var(--highlight);
}
.movie-year {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.movie-quality {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--accent-color);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 10;
}
.movie-type {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--highlight-red);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 10;
}
/* Loading */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  font-size: 1.2rem;
  color: var(--text-secondary);
  gap: 1rem;
}
.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--accent-color);
  animation: spin 1.5s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 200;
  overflow-y: auto;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.modal-content {
  background-color: var(--secondary-bg);
  margin: 2rem auto;
  max-width: 900px;
  border-radius: 1rem;
  overflow: hidden;
  animation: modalFadeIn 0.3s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
}
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.modal-header {
  position: relative;
}
.modal-backdrop {
  width: 100%;
  height: 350px;
  object-fit: cover;
  filter: brightness(0.7);
}
.modal-poster {
  position: absolute;
  bottom: -50px;
  left: 30px;
  width: 180px;
  height: 270px;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  border: 3px solid var(--secondary-bg);
  object-fit: cover;
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 10;
}
.modal-close:hover {
  background-color: var(--highlight-red);
  transform: rotate(90deg);
}
.modal-body {
  padding: 2rem;
  padding-top: 4rem;
  padding-left: calc(180px + 60px);
}
.modal-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}
.modal-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.modal-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}
.genre-tag {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}
.genre-tag:hover {
  background-color: var(--accent-color);
}
.modal-description {
  margin: 1.5rem 0;
  line-height: 1.7;
  color: var(--text-secondary);
}
.modal-cast {
  margin: 1.5rem 0;
}
.cast-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cast-title i {
  color: var(--accent-color);
}
.cast-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.cast-member {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.cast-member:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
.cast-member i {
  font-size: 0.8rem;
  color: var(--accent-color);
}
/* Series Seasons */
.seasons-section {
  margin-top: 2rem;
}
.seasons-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.seasons-title i {
  color: var(--accent-color);
}
.seasons-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
}
.season-tab {
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: var(--transition-fast);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.season-tab:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.season-tab.active {
  background-color: var(--accent-color);
  color: white;
}
.season-content {
  display: none;
}
.season-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}
.episode-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.episode-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: var(--transition-fast);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}
.episode-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-color);
}
.episode-header {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  cursor: pointer;
}
.episode-thumbnail {
  width: 160px;
  height: 90px;
  border-radius: 0.5rem;
  object-fit: cover;
}
.episode-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.episode-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.episode-number {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.episode-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.episode-servers {
  padding: 0 1rem 1rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.episode-server {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.episode-server:hover {
  background-color: var(--accent-color);
}
.episode-server i {
  font-size: 0.8rem;
}
/* Servers section */
.servers-section {
  margin-top: 2rem;
}
.servers-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.servers-title i {
  color: var(--accent-color);
}
.server-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
}
.server-tab {
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: var(--transition-fast);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.server-tab:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.server-tab.active {
  background-color: var(--accent-color);
  color: white;
}
.server-content {
  display: none;
}
.server-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.server-option {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
  border: 1px solid var(--border-color);
}
.server-option:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-color);
}
.server-info {
  display: flex;
  flex-direction: column;
}
.server-name {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.server-name i {
  color: var(--accent-color);
}
.server-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  display: flex;
  gap: 1rem;
}
.server-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.watch-btn {
  background-color: var(--highlight-red);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.watch-btn:hover {
  background-color: #dc2626;
  transform: translateY(-2px);
}
/* Player */
.player-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 300;
  display: none;
}
.player-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.5);
}
.player-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.player-close {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.player-close:hover {
  background-color: var(--highlight-red);
}
.player-iframe {
  flex: 1;
  width: 100%;
  height: calc(100% - 60px);
  border: none;
}

/* ============================================
   ESTILOS PARA CANALES DE TV
   ============================================ */

/* Header de canales */
.channels-header-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.channels-header-left {
  flex: 1;
}

.channels-header-right {
  flex-shrink: 0;
}

/* Boton selector de pais */
.country-selector-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: var(--transition-normal);
  color: var(--text-primary);
  min-width: 280px;
}

.country-selector-btn:hover {
  border-color: var(--accent-color);
  background-color: rgba(255, 255, 255, 0.05);
}

.country-selector-btn .country-flag {
  font-size: 2.5rem;
  line-height: 1;
}

.country-selector-btn .country-details {
  flex: 1;
  text-align: left;
}

.country-selector-btn .country-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.country-selector-btn .country-channels-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.country-selector-btn .change-country-icon {
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.country-selector-btn:hover .change-country-icon {
  color: var(--accent-color);
}

/* Selector de paises */
.countries-selector {
  margin-bottom: 2rem;
}

.countries-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.countries-title {
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.countries-title i {
  color: var(--accent-color);
}

.current-country {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
}

.current-country-flag {
  font-size: 1.5rem;
}

/* Busqueda de paises en modal */
.countries-search-container {
  position: relative;
  margin-bottom: 1.5rem;
}

.countries-search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: var(--transition-fast);
}

.countries-search-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

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

.countries-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* Grid de paises en modal */
.countries-grid-modal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.country-card-modal {
  background-color: var(--card-bg);
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 1px solid var(--border-color);
}

.country-card-modal:hover {
  transform: translateY(-3px);
  border-color: var(--accent-color);
  background-color: rgba(255, 255, 255, 0.05);
}

.country-card-modal.active {
  border-color: var(--accent-color);
  background-color: rgba(239, 68, 68, 0.1);
}

.country-card-modal .country-flag {
  font-size: 2rem;
  line-height: 1;
}

.country-card-modal .country-info {
  flex: 1;
}

.country-card-modal .country-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.country-card-modal .country-channels {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Grid de canales */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .channels-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

/* Card de canal */
.channel-card {
  background-color: var(--card-bg);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: var(--transition-normal);
  cursor: pointer;
  position: relative;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

.channel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--accent-color);
}

.channel-logo-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.channel-logo {
  width: 80%;
  height: 80%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

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

.channel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
  opacity: 0;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.channel-card:hover .channel-overlay {
  opacity: 1;
}

.channel-play-btn {
  background-color: var(--highlight-red);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 1.2rem;
}

.channel-play-btn:hover {
  background-color: #dc2626;
  transform: scale(1.1);
}

.channel-live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--highlight-red);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 10;
  animation: pulse 2s infinite;
}

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

.channel-quality {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--accent-color);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 10;
}

.channel-info {
  padding: 1rem;
}

.channel-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.channel-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.channel-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Reproductor de canales HLS */
.channel-player-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.98);
  z-index: 300;
  display: none;
}

.channel-player-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.channel-player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.channel-player-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.channel-player-logo {
  width: 50px;
  height: 50px;
  border-radius: 0.5rem;
  object-fit: contain;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.25rem;
}

.channel-player-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.channel-player-title i {
  color: var(--accent-color);
}

.channel-player-close {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.channel-player-close:hover {
  background-color: var(--highlight-red);
}

.channel-video-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: #000;
}

.channel-video {
  width: 100%;
  height: 100%;
  max-height: 100vh;
  object-fit: contain;
  background-color: #000;
}

.channel-video-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
}

.channel-video-error {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
  text-align: center;
}

.channel-video-error i {
  font-size: 3rem;
  color: var(--highlight-red);
}

/* Footer */
footer {
  background-color: var(--secondary-bg);
  padding: 3rem 2rem 1rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-description {
  color: var(--text-secondary);
  margin: 1rem 0;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-links a i {
  font-size: 0.8rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-fast);
}

.newsletter-input:focus {
  border-color: var(--accent-color);
}

.newsletter-btn {
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  background-color: var(--accent-color);
  color: white;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.newsletter-btn:hover {
  background-color: #dc2626;
}

.footer-small-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animaciones */
.fadeInUp {
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal de generos */
.genres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.genre-card {
  background-color: var(--card-bg);
  border-radius: 0.75rem;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 1px solid var(--border-color);
}

.genre-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  background-color: rgba(255, 255, 255, 0.05);
}

.genre-icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 0.75rem;
}

.genre-card .genre-name {
  font-weight: 500;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .logo {
    font-size: 1.8rem;
  }

  .search-container {
    width: 100%;
    max-width: none;
  }

  main {
    padding: 1rem;
  }

  .hero-section {
    height: 350px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .modal-body {
    padding: 1.5rem;
    padding-top: 1.5rem;
    padding-left: 1.5rem;
  }

  .modal-poster {
    display: none;
  }

  .movie-card {
    width: 150px;
  }

  .nav-tabs {
    flex-wrap: wrap;
  }

  .nav-tab {
    flex: 1;
    min-width: 100px;
    font-size: 0.85rem;
  }

  .channels-header-container {
    flex-direction: column;
  }

  .country-selector-btn {
    width: 100%;
    min-width: auto;
  }

  .countries-grid-modal {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (max-width: 480px) {
  .episode-header {
    flex-direction: column;
  }

  .episode-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .server-option {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .watch-btn {
    width: 100%;
    justify-content: center;
  }
}
