/* ===== VARIABLES Y RESET ===== */
:root {
  --primary-dark: #0a3a1d;
  --primary-medium: #1e5631;
  --primary-light: #2c5e1a;
  --accent-gold: #d4af37;
  --accent-yellow: #ffd700;
  --accent-green: #4caf50;
  --accent-lime: #8bc34a;
  --text-white: #ffffff;
  --text-light: #e8f5e8;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
}

body {
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary-medium) 100%
  );
  color: var(--text-white);
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 75px;
  min-height: 100vh;
}

/* ===== LAYOUT PRINCIPAL ===== */
.screen {
  display: none;
}

.screen.active {
  display: block;
}

/* ===== PANTALLAS DE ESTADO ===== */
#loading,
#error-screen {
  text-align: center;
  margin-top: 50px;
  font-size: 24px;
  color: var(--text-light);
}

#loading {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: var(--border-radius);
  border: 2px solid var(--accent-gold);
}

/* ===== SELECTOR DE PAÍSES ===== */
.pais-item {
  background: white;
  border-radius: var(--border-radius);
  margin: 12px 0;
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  box-shadow: var(--shadow);
}

.pais-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.pais-item:focus {
  border-color: var(--accent-yellow) !important;
  outline: 3px solid var(--accent-yellow) !important;
  outline-offset: 2px !important;
  transform: scale(1.02) !important;
}

.pais-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pais-bandera {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--accent-gold);
}

.pais-info {
  flex: 1;
}

.pais-nombre {
  font-weight: 600;
  font-size: 16px;
  color: #333;
  margin-bottom: 4px;
}

.pais-cantidad {
  font-size: 14px;
  color: #666;
}

.pais-arrow {
  color: var(--accent-green);
  font-weight: bold;
  font-size: 18px;
}

.todos-item {
  background: linear-gradient(135deg, var(--accent-green), #45a049);
  color: white;
}

.todos-item .pais-nombre,
.todos-item .pais-cantidad {
  color: white;
}

.todos-item .pais-arrow {
  color: white;
}

/* ===== SELECTOR DE PROVEEDORES ===== */
.proveedor-selector {
  margin: 15px 0;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 2px solid var(--accent-gold);
}

.selector-label {
  display: block;
  color: var(--accent-yellow);
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 16px;
}

.proveedor-dropdown {
  width: 100%;
  padding: 12px 15px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #3a7c28 100%);
  color: var(--text-white);
  border: 2px solid var(--accent-gold);
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.proveedor-dropdown:focus {
  border-color: var(--accent-yellow);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  transform: scale(1.02);
}

.proveedor-dropdown option {
  background: var(--primary-dark);
  color: var(--text-white);
  padding: 10px;
}

/* ===== BOTÓN CAMBIAR PROVEEDOR ===== */
.cambiar-proveedor-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 10px;
  width: 100%;
  transition: var(--transition);
  outline: 3px solid transparent;
}

.cambiar-proveedor-btn:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-2px);
}

.cambiar-proveedor-btn:focus {
  outline: 3px solid var(--accent-yellow) !important;
  outline-offset: 2px !important;
}

/* ===== INDICADOR DE PROVEEDOR ACTUAL ===== */
.proveedor-actual {
  background: rgba(212, 175, 55, 0.2);
  padding: 10px 15px;
  border-radius: 6px;
  margin: 10px 0;
  border-left: 4px solid var(--accent-gold);
}

.proveedor-actual-texto {
  color: var(--accent-yellow);
  font-weight: bold;
  font-size: 14px;
}

/* ===== CONTROLES DE CALIDAD ===== */
.controles-calidad {
  display: flex;
  gap: 10px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.calidad-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  border: 2px solid var(--accent-gold);
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  outline: 3px solid transparent;
}

.calidad-btn:hover {
  background: rgba(212, 175, 55, 0.3);
}

.calidad-btn:focus {
  border-color: var(--accent-yellow);
  outline: 3px solid var(--accent-yellow) !important;
  outline-offset: 2px !important;
}

.calidad-btn.activa {
  background: var(--accent-gold);
  color: var(--primary-dark);
  font-weight: bold;
}

/* ===== BOTÓN VOLVER ===== */
.back-button {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: var(--border-radius);
  margin-bottom: 16px;
  padding: 12px 16px;
  cursor: pointer;
  transition: var(--transition);
}

.back-button:focus {
  border-color: var(--accent-green);
  outline: 3px solid var(--accent-yellow);
}

.back-content {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-green);
  font-weight: 600;
}

.back-arrow {
  font-size: 18px;
}

.back-text {
  font-size: 14px;
}

/* ===== HEADER DE PAÍS ===== */
.pais-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: var(--border-radius);
  margin: 16px 0 8px 0;
  padding: 12px 16px;
  cursor: pointer;
  transition: var(--transition);
}

.pais-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.pais-header:focus {
  outline: 3px solid var(--accent-yellow) !important;
  outline-offset: 2px !important;
  transform: scale(1.02) !important;
}

.pais-header-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pais-header-bandera {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  object-fit: cover;
}

.pais-header-nombre {
  flex: 1;
  font-weight: 600;
  font-size: 16px;
}

.pais-header-cantidad {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.pais-header-arrow {
  color: var(--accent-yellow);
  font-weight: bold;
  transition: var(--transition);
}

/* ===== LISTA DE PARTIDOS ===== */
#partidos-list {
  margin-top: 20px;
}

.partido-item {
  background: linear-gradient(135deg, var(--primary-light) 0%, #3a7c28 100%);
  padding: 0;
  margin: 12px 0;
  border: 3px solid var(--accent-gold);
  border-radius: var(--border-radius);
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
  outline: 3px solid transparent;
}

.partido-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  border-color: var(--accent-yellow);
}

.partido-item:focus {
  border-color: var(--accent-yellow) !important;
  background: linear-gradient(135deg, #3a7c28 0%, #4a9a35 100%) !important;
  outline: 3px solid var(--accent-yellow) !important;
  outline-offset: 2px !important;
  transform: scale(1.02) !important;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.7) !important;
}

.partido-content {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
}

.partido-info {
  flex: 1;
}

.partido-nombre {
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--text-white);
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.partido-detalles {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text-light);
  flex-wrap: wrap;
}

.partido-competicion {
  background: var(--accent-gold);
  color: var(--primary-dark);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 12px;
}

.partido-streams {
  color: var(--accent-yellow);
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
}

.partido-hora {
  background: #2d5016;
  color: #8bc34a;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.partido-bandera {
  width: 32px;
  height: 24px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--accent-gold);
}

.partido-play {
  color: var(--accent-yellow);
  font-size: 20px;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== BOTONES GENERALES ===== */
button {
  background: linear-gradient(
    135deg,
    var(--accent-gold) 0%,
    var(--accent-yellow) 100%
  );
  color: var(--primary-dark);
  border: none;
  padding: 15px 25px;
  font-size: 18px;
  margin: 10px;
  cursor: pointer;
  border-radius: 8px;
  font-weight: bold;
  transition: var(--transition);
  box-shadow: var(--shadow);
  outline: 3px solid transparent;
}

button:hover {
  background: linear-gradient(135deg, var(--accent-yellow) 0%, #fff8dc 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

button:focus {
  outline: 3px solid var(--text-white) !important;
  outline-offset: 2px !important;
}

.reload-btn {
  background: linear-gradient(
    135deg,
    var(--accent-gold) 0%,
    var(--accent-yellow) 100%
  );
  color: var(--primary-dark);
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 20px;
  font-size: 16px;
  font-weight: bold;
  transition: var(--transition);
  min-height: 50px;
  min-width: 200px;
  outline: 3px solid transparent;
}

.reload-btn:focus {
  outline: 3px solid var(--text-white) !important;
  outline-offset: 2px !important;
}

.reload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* ===== SELECTOR DE STREAMS MEJORADO ===== */
.modal-streams {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 58, 29, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
}

.modal-streams .modal-content {
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary-medium) 100%
  );
  border-radius: var(--border-radius);
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 3px solid var(--accent-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.modal-streams .modal-header {
  background: linear-gradient(
    135deg,
    var(--accent-gold) 0%,
    var(--accent-yellow) 100%
  );
  color: var(--primary-dark);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  font-weight: bold;
  font-size: 20px;
  border-bottom: 3px solid var(--accent-gold);
}

.modal-streams .modal-body {
  padding: 25px;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  color: var(--text-white);
  background: rgba(0, 0, 0, 0.2);
}

.partido-info-modal {
  color: var(--accent-yellow);
  margin-bottom: 25px;
  font-weight: 600;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border-left: 4px solid var(--accent-gold);
  text-align: center;
  font-size: 16px;
  line-height: 1.4;
}

.streams-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.stream-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border: 2px solid var(--accent-green);
  border-radius: 10px;
  cursor: pointer;
  color: var(--text-white);
  background: linear-gradient(135deg, var(--primary-medium) 0%, #2a5a20 100%);
  min-height: 70px;
  transition: var(--transition);
  outline: 3px solid transparent;
  position: relative;
}

.stream-item:hover {
  border-color: var(--accent-yellow);
  background: linear-gradient(135deg, #2a5a20 0%, #3a7c28 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.stream-item:focus {
  border-color: var(--accent-yellow) !important;
  background: linear-gradient(135deg, #3a7c28 0%, #4a9a35 100%) !important;
  outline: 3px solid var(--accent-yellow) !important;
  outline-offset: 2px !important;
  transform: scale(1.02) !important;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5) !important;
}

.stream-item-selected {
  border-color: var(--accent-yellow) !important;
  background: linear-gradient(135deg, #4a9a35 0%, #5aba42 100%) !important;
  outline: 3px solid var(--accent-yellow) !important;
  outline-offset: 2px !important;
  transform: scale(1.03) !important;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6) !important;
}

.stream-item-selected .stream-nombre {
  color: var(--accent-yellow) !important;
  font-weight: bold !important;
}

.stream-item-selected .stream-play {
  background: var(--accent-yellow) !important;
  color: var(--primary-dark) !important;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.8) !important;
}

.stream-nombre {
  color: var(--text-white);
  font-weight: 600;
  font-size: 16px;
  flex: 1;
  margin-right: 15px;
  line-height: 1.4;
}

.stream-play {
  color: var(--accent-yellow);
  font-size: 16px;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent-yellow);
  transition: var(--transition);
  flex-shrink: 0;
}

.stream-play::before {
  content: "▶";
  margin-left: 2px;
}

.stream-item:hover .stream-play {
  background: var(--accent-yellow);
  color: var(--primary-dark);
}

/* Indicador de proveedor en los streams */
.stream-proveedor {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--accent-yellow);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  border: 1px solid var(--accent-yellow);
}

.stream-proveedor.futbol-libre {
  background: rgba(52, 152, 219, 0.3);
  color: #3498db;
  border-color: #3498db;
}

.stream-proveedor.rojadirecta {
  background: rgba(155, 89, 182, 0.3);
  color: #9b59b6;
  border-color: #9b59b6;
}

/* Botones del modal */
.modal-streams .modal-actions {
  display: flex;
  justify-content: center;
  padding: 0 25px 25px 25px;
  margin-top: 0;
}

.modal-streams .cancel-btn {
  background: linear-gradient(135deg, #666 0%, #888 100%) !important;
  color: white !important;
  border: none !important;
  padding: 12px 30px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-size: 16px !important;
  font-weight: bold !important;
  transition: var(--transition) !important;
  min-height: 44px !important;
  min-width: 150px !important;
  outline: 3px solid transparent !important;
}

.modal-streams .cancel-btn:hover {
  background: linear-gradient(135deg, #888 0%, #aaa 100%) !important;
  transform: translateY(-2px);
}

.modal-streams .cancel-btn:focus {
  background: linear-gradient(135deg, #888 0%, #aaa 100%) !important;
  outline: 3px solid var(--accent-yellow) !important;
  outline-offset: 2px !important;
}

/* ===== MODALES GENERALES ===== */
.modal-error,
.modal-info {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 58, 29, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
}

.modal-error .modal-content,
.modal-info .modal-content {
  background: linear-gradient(
    135deg,
    var(--primary-medium) 0%,
    var(--primary-light) 100%
  );
  border-radius: var(--border-radius);
  width: 100%;
  max-width: 500px;
  height: auto;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 3px solid var(--accent-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-info .modal-content {
  max-width: 400px;
  max-height: 300px;
}

.modal-error .modal-header,
.modal-info .modal-header {
  background: linear-gradient(
    135deg,
    var(--accent-gold) 0%,
    var(--accent-yellow) 100%
  );
  color: var(--primary-dark);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  font-weight: bold;
  font-size: 20px;
}

.modal-info .modal-header {
  background: linear-gradient(135deg, var(--accent-green) 0%, #45a049 100%);
  color: white;
  padding: 15px 20px;
}

.modal-error .modal-body,
.modal-info .modal-body {
  padding: 25px;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  color: var(--text-white);
}

.modal-info .modal-body {
  text-align: center;
  font-size: 16px;
  padding: 20px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--primary-dark);
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
  transition: var(--transition);
  outline: 3px solid transparent;
}

.modal-close:hover {
  background: rgba(10, 58, 29, 0.2);
}

.modal-close:focus {
  background: rgba(10, 58, 29, 0.2) !important;
  outline: 3px solid var(--primary-dark) !important;
  outline-offset: 2px !important;
}

/* ===== BOTÓN CANCELAR ===== */
.modal-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.cancel-btn {
  background: linear-gradient(135deg, #666 0%, #888 100%) !important;
  color: white !important;
  border: none !important;
  padding: 12px 24px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-size: 16px !important;
  font-weight: bold !important;
  transition: var(--transition) !important;
  min-height: 44px !important;
  min-width: 120px !important;
  margin-top: 15px !important;
  outline: 3px solid transparent !important;
}

.cancel-btn:hover {
  background: linear-gradient(135deg, #888 0%, #aaa 100%) !important;
}

.cancel-btn:focus {
  background: linear-gradient(135deg, #888 0%, #aaa 100%) !important;
  outline: 3px solid var(--accent-yellow) !important;
  outline-offset: 2px !important;
}

/* ===== ESTADOS DE ERROR ===== */
.error-container,
.no-partidos {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: var(--border-radius);
  border: 2px solid var(--accent-gold);
  text-align: center;
}

/* ===== TÍTULO PRINCIPAL ===== */
h1 {
  color: var(--accent-yellow);
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.5em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  border-bottom: 3px solid var(--accent-gold);
  padding-bottom: 15px;
}

/* ===== BLOQUEO DE ACCESO ===== */
.bloqueo-container {
  display: flex;
  color: black;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 60px;
}

.bloqueo-content {
  text-align: center;
  max-width: 500px;
  background: #c1ff72;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pago-btn {
  background: var(--accent-green);
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
  margin: 10px;
  min-width: 250px;
}

.pago-btn:hover {
  color: purple;
}

.pago-btn:focus {
  outline: 3px solid var(--accent-yellow);
  outline-offset: 2px;
}

/* ===== NAVEGACIÓN TV ===== */
.tv-focusable {
  outline: 3px solid transparent;
  transition: all 0.2s ease;
}

.tv-focusable:focus {
  outline: 3px solid var(--accent-yellow) !important;
  outline-offset: 3px !important;
  transform: scale(1.05) !important;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5) !important;
}

/* ===== FOOTER DE MODALES ===== */
.modal-info .modal-footer,
.modal-error .modal-footer {
  padding: 15px 20px;
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-info .modal-footer button,
.modal-error .modal-footer button {
  background: linear-gradient(
    135deg,
    var(--accent-gold) 0%,
    var(--accent-yellow) 100%
  );
  color: var(--primary-dark);
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  outline: 3px solid transparent;
}

.modal-info .modal-footer button:focus,
.modal-error .modal-footer button:focus {
  outline: 3px solid var(--text-white) !important;
  outline-offset: 2px !important;
}

/* ===== GUÍA Y BOTONES DE INFORMACIÓN ===== */
.guide-container {
  background: linear-gradient(
    135deg,
    var(--primary-medium) 0%,
    var(--accent-green) 100%
  );
  border: 2px solid var(--accent-lime);
  border-radius: var(--border-radius);
  padding: 15px;
  margin: 20px 0;
  text-align: center;
  color: white;
}

.guide-title {
  color: var(--accent-lime);
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 16px;
}

.guide-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.guide-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--accent-lime);
}

.guide-key {
  background: var(--accent-yellow);
  color: var(--primary-dark);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 12px;
  min-width: 30px;
  text-align: center;
}

.info-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.info-btn {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}

.info-btn:hover {
  background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
  transform: translateY(-2px);
}

.proveedor-btn {
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}

.proveedor-btn:hover {
  background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
  transform: translateY(-2px);
}

/* ===== MODAL DE CÓDIGOS ===== */
.codes-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 92, 31, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.codes-modal.active {
  display: flex;
}

.codes-content {
  background: linear-gradient(
    135deg,
    var(--primary-medium) 0%,
    var(--accent-green) 100%
  );
  border-radius: var(--border-radius);
  padding: 25px;
  max-width: 500px;
  width: 100%;
  border: 3px solid var(--accent-lime);
  color: white;
}

.code-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
  margin: 10px 0;
  border-left: 4px solid var(--accent-lime);
}

.code-label {
  font-weight: bold;
  color: var(--accent-lime);
  margin-bottom: 5px;
}

.code-value {
  font-family: monospace;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px;
  border-radius: 4px;
  word-break: break-all;
  font-size: 14px;
}

/* ===== REPRODUCTOR ===== */
#player-screen {
  width: 100%;
  height: 100vh;
  background: var(--primary-dark);
}

#player-iframe {
  width: 100%;
  height: 90vh;
  border: none;
  border-radius: 8px;
}

/* ===== SCROLLBAR PERSONALIZADO ===== */
.modal-streams .modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-streams .modal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.modal-streams .modal-body::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: 4px;
}

.modal-streams .modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--accent-yellow);
}

/* Estados vacíos */
.streams-list:empty::before {
  content: "No hay streams disponibles para este partido";
  text-align: center;
  color: var(--accent-yellow);
  padding: 30px;
  font-style: italic;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 2px dashed var(--accent-gold);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  body {
    padding: 15px;
  }

  .modal-streams {
    padding: 10px;
  }

  .modal-streams .modal-content {
    max-height: 85vh;
  }

  .modal-streams .modal-body {
    padding: 20px;
  }

  .stream-item {
    padding: 15px;
    min-height: 60px;
  }

  .stream-nombre {
    font-size: 14px;
  }

  .stream-play {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .partido-info-modal {
    font-size: 14px;
    padding: 12px;
  }

  .modal-error .modal-content,
  .modal-info .modal-content {
    padding: 10px;
  }

  .partido-content {
    padding: 15px;
  }

  h1 {
    font-size: 2em;
  }

  .pais-item {
    padding: 12px;
  }

  .pais-bandera {
    width: 35px;
    height: 35px;
  }

  .guide-buttons {
    gap: 10px;
  }

  .guide-button {
    padding: 6px 10px;
    font-size: 12px;
  }

  .info-buttons {
    gap: 8px;
  }

  .info-btn,
  .proveedor-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
}

@media (max-height: 600px) {
  .modal-streams .modal-content {
    max-height: 90vh;
  }

  .streams-list {
    gap: 8px;
  }

  .stream-item {
    padding: 12px;
    min-height: 55px;
  }
}
