/* ==========================================================================
   FÚTBOL LIBRE TV HD & TARJETA ROJA - ESTILO OFICIAL (futbollibretv.one)
   Paleta: Verde Esmeralda (#15803d / #166534 / #16a34a), Blanco Puro (#ffffff),
           Gris Suave (#f3f4f6 / #e5e7eb / #1f2937)
   100% Responsivo en Celulares, Tablets y Ordenadores con Reproductor en la Misma Página
   ========================================================================== */

:root {
  /* Colores Principales Fútbol Libre */
  --fl-green-600: #16a34a;
  --fl-green-700: #15803d;
  --fl-green-800: #166534;
  --fl-green-900: #065f46;
  --fl-green-light: #dcfce7;
  --fl-green-border: #86efac;

  /* Superficies y Fondos */
  --bg-page: #ffffff;
  --bg-card: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #111827;

  /* Textos */
  --text-main: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-white: #ffffff;

  /* Bordes y Sombras */
  --border-light: #e5e7eb;
  --border-card: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-modal: 0 25px 50px -12px rgba(0, 0, 0, 0.7);

  /* Tipografía */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------------- RESET & BASE ---------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body.site-body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.modal-open-lock {
  overflow: hidden;
}

.site-container {
  width: 92%;
  max-width: 820px;
  margin: 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

input, select {
  font-family: inherit;
  outline: none;
}

/* ---------------- TOP NOTICE BAR ---------------- */
.top-notice-bar {
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  padding: 6px 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.top-notice-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.notice-live-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.live-indicator-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 6px #22c55e;
  animation: pulseGreen 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.notice-sep {
  color: #cbd5e1;
}

.notice-date-badge {
  color: var(--text-main);
  font-weight: 600;
}

.tz-toggle-btn {
  background: #ffffff;
  color: var(--fl-green-700);
  border: 1px solid #cbd5e1;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tz-toggle-btn:hover {
  background: var(--fl-green-light);
  border-color: var(--fl-green-600);
}

/* ---------------- STICKY HEADER (FÚTBOL LIBRE STYLE) ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand-img-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #16a34a;
  line-height: 1;
  letter-spacing: -0.2px;
}

.brand-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.5px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-item {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.18s ease;
}

.nav-item:hover, .nav-item.active {
  color: var(--fl-green-600);
}

.menu-toggle-btn {
  display: none;
  color: var(--text-secondary);
  padding: 6px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.menu-toggle-btn:hover {
  background: #f1f5f9;
  color: var(--fl-green-700);
}

.menu-toggle-btn svg {
  width: 26px;
  height: 26px;
  display: block;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.mobile-menu-overlay.is-active {
  display: flex;
}

.mobile-menu-card {
  background: #ffffff;
  width: 100%;
  max-width: 320px;
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-lg);
  animation: slideDownFade 0.2s ease-out;
}

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

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
}

.brand-name-mobile {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--fl-green-600);
  font-size: 1.15rem;
}

.menu-close-btn {
  font-size: 1.1rem;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 6px;
}

.menu-close-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-link {
  display: block;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  border-radius: 8px;
  transition: all 0.18s ease;
}

.mobile-link:hover {
  background: var(--fl-green-600);
  color: #ffffff;
}

/* ---------------- MAIN LAYOUT ---------------- */
.main-content {
  margin-top: 14px;
  margin-bottom: 36px;
  flex: 1;
}

/* Home Intro */
.home-intro {
  margin-bottom: 20px;
}

.home-intro h1 {
  text-align: center;
  color: var(--fl-green-900);
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.home-intro p {
  text-align: left;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.home-intro a {
  color: var(--fl-green-700);
  text-decoration: underline;
  font-weight: 600;
}

.home-intro a:hover {
  color: var(--fl-green-800);
}

/* ---------------- AGENDA DE PARTIDOS (EXACT STYLE) ---------------- */
.agenda-section {
  margin-bottom: 24px;
}

.agenda-title-banner {
  background: linear-gradient(to right, var(--fl-green-700), var(--fl-green-800));
  border-radius: 8px 8px 0 0;
  padding: 10px 16px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.agenda-title-banner h2 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.agenda-badge {
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2px 10px;
  border-radius: 9999px;
  font-weight: 600;
}

/* Filters Row */
.agenda-filter-row {
  margin-top: 12px;
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-wrap {
  position: relative;
  flex: 1;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.ag-search-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 36px 10px 38px;
  font-size: 0.92rem;
  color: var(--text-main);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ag-search-input:focus {
  border-color: var(--fl-green-600);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.search-clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.82rem;
}

.search-clear-btn.active {
  display: flex;
}

.category-select-wrap {
  flex: 1;
  max-width: 260px;
}

.ag-category-select {
  width: 100%;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.92rem;
  color: var(--text-main);
  cursor: pointer;
  transition: border-color 0.18s ease;
}

.ag-category-select:focus {
  border-color: var(--fl-green-600);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

/* Agenda Status Box (Loading / Empty) */
.agenda-status-box {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 0 0 8px 8px;
  padding: 32px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--fl-green-600);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

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

.status-title {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.status-subtitle {
  color: var(--text-muted);
  font-size: 0.84rem;
}

/* Agenda Events List */
.agenda-events-list {
  list-style: none;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow-sm);
  min-height: 240px;
}

/* Match Item Row (Estilo Fútbol Libre Exacto) */
.agenda-item {
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  transition: background 0.15s ease;
}

.agenda-item:last-child {
  border-bottom: none;
}

/* Main match trigger button */
.ag-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  text-align: left;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  border: none;
}

/* Hover: verde sólido con texto blanco */
.ag-toggle:hover {
  background: #15803d !important;
  color: #ffffff !important;
}

.ag-toggle:hover .ag-time-box,
.ag-toggle:hover .ag-time-digits,
.ag-toggle:hover .ag-time-ampm,
.ag-toggle:hover .ag-event-text,
.ag-toggle:hover .match-chevron {
  color: #ffffff !important;
}

/* Activo / Abierto: verde sólido con texto blanco idéntico al screenshot */
.agenda-item.is-open > .ag-toggle {
  background: #15803d !important;
  color: #ffffff !important;
}

.agenda-item.is-open > .ag-toggle .ag-time-box,
.agenda-item.is-open > .ag-toggle .ag-time-digits,
.agenda-item.is-open > .ag-toggle .ag-time-ampm,
.agenda-item.is-open > .ag-toggle .ag-event-text,
.agenda-item.is-open > .ag-toggle .match-chevron {
  color: #ffffff !important;
}

.ag-match-left {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
}

/* Columna de hora en dos líneas (07:00 / PM) */
.ag-time-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 54px;
  flex-shrink: 0;
  line-height: 1.15;
  text-align: center;
  color: #111827;
  transition: color 0.15s ease;
}

.ag-time-digits {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.ag-time-ampm {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  opacity: 0.95;
}

/* Logo / Bandera circular del torneo o país (Protección estricta contra logos gigantes) */
.ag-event-flag,
.agenda-events-list img,
.agenda-item img,
.ag-toggle img,
.ag-match-left img,
.match-logo-badge img {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  object-fit: contain !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 0 10px !important;
}

/* Texto del evento: tamaño compacto 14px como pidió el usuario */
.ag-event-text {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: #111827;
  flex: 1;
  min-width: 0;
  text-align: left;
  transition: color 0.15s ease;
}

.match-right-action {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 8px;
}

.match-chevron {
  font-size: 0.72rem;
  color: #6b7280;
  transition: color 0.15s ease;
}

/* Expanded Channels Sub-list */
.ag-channels-tray {
  display: none;
  background: #ffffff;
  padding: 8px 14px 12px 28px;
  border-top: 1px solid #f1f5f9;
  border-left: 4px solid var(--fl-green-600);
  margin: 0 10px 8px 14px;
  border-radius: 0 6px 6px 0;
}

.agenda-item.is-open .ag-channels-tray {
  display: block;
}

.channels-sub-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.channel-sub-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 6px;
  background: #f8fafc;
  transition: background 0.15s ease;
}

.channel-sub-item:hover {
  background: #f1f5f9;
}

.btn-play-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: left;
  transition: color 0.15s ease;
  flex: 1;
}

.btn-play-trigger:hover {
  color: var(--fl-green-700);
}

.btn-play-trigger .play-arrow {
  color: var(--fl-green-600);
  font-size: 0.85rem;
}

.channel-quality-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #475569;
  padding: 1px 5px;
  border-radius: 3px;
}

.btn-open-tab {
  font-size: 0.85rem;
  color: #94a3b8;
  padding: 3px 7px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.btn-open-tab:hover {
  color: var(--fl-green-700);
  background: #ffffff;
}

/* ---------------- REPRODUCTOR MODAL (MISMA PÁGINA) ---------------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.is-active {
  display: flex;
}

.modal-player-card {
  width: 100%;
  max-width: 860px;
  background: #0f172a;
  border-radius: 12px;
  border: 1px solid #1e293b;
  box-shadow: var(--shadow-modal);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: modalScaleUp 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  gap: 12px;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.modal-live-dot {
  width: 10px;
  height: 10px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 8px #ef4444;
  flex-shrink: 0;
  animation: pulseGreen 1.6s infinite;
}

.modal-match-title {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-modal-ext {
  font-size: 0.76rem;
  font-weight: 600;
  color: #94a3b8;
  background: #1e293b;
  padding: 5px 10px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.btn-modal-ext:hover {
  color: #ffffff;
  background: #334155;
}

.btn-modal-close {
  background: #334155;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

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

/* Server Selector Pills */
.modal-server-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0;
}

.modal-server-btn {
  background: #1e293b;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.modal-server-btn:hover {
  background: #334155;
  color: #ffffff;
}

.modal-server-btn.active {
  background: var(--fl-green-600);
  color: #ffffff;
}

/* Video Frame Container */
.modal-player-frame-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.modal-player-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Modal Footer */
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  font-size: 0.82rem;
  color: #94a3b8;
}

.btn-modal-reload {
  background: var(--fl-green-700);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 9999px;
  transition: background 0.18s ease;
}

.btn-modal-reload:hover {
  background: var(--fl-green-600);
}

/* ---------------- UTILIDADES Y ACCESIBILIDAD ---------------- */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---------------- CANALES DEPORTIVOS GRID (FÚTBOL LIBRE TV HD) ---------------- */
.channels-section {
  margin-bottom: 36px;
  width: 100%;
}

.section-title {
  color: #065f46;
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.channels-filter-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  width: 100%;
  align-items: center;
}

.ch-search-input {
  flex: 1;
  min-width: 0;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.92rem;
  color: #111827;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ch-search-input:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.ch-category-select {
  width: 160px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.92rem;
  color: #111827;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s ease;
}

.ch-category-select:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

.channel-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.channel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.channel-card.is-hidden {
  display: none !important;
}

.channel-logo-wrap {
  height: 110px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 16px 12px;
  border-bottom: 1px solid #f1f5f9;
}

.channel-badge-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  z-index: 2;
}

.channel-badge-pill.gold {
  background: #f59e0b;
}

.channel-brand-img {
  max-width: 130px;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.22s ease;
}

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

.channel-body {
  padding: 14px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.channel-name {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
}

.channel-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.btn-channel-play {
  background: #15803d;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 8px 16px;
  border-radius: 9999px;
  transition: background 0.18s ease, transform 0.15s ease;
  margin-top: auto;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-channel-play:hover {
  background: #166534;
  transform: translateY(-1px);
}

/* ---------------- GUÍA DE PASOS ---------------- */
.guide-steps-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 28px;
}

.guide-steps-list {
  padding-left: 20px;
  margin-bottom: 12px;
  color: #374151;
}

.guide-steps-list li {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.guide-tip-text {
  font-size: 0.88rem;
  color: #4b5563;
}

/* ---------------- ARTÍCULO SEO (FÚTBOL LIBRE STYLE) ---------------- */
.article-content {
  margin-top: 2.5rem;
  margin-bottom: 2rem;
}

.article-content h2 {
  color: var(--fl-green-900);
  font-family: var(--font-heading);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 2rem;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content p {
  color: #4b5563;
  margin-bottom: 1rem;
  line-height: 1.65;
  font-size: 1rem;
}

.article-content strong {
  color: #1f2937;
  font-weight: 700;
}

.article-content a {
  color: var(--fl-green-700);
  text-decoration: underline;
  font-weight: 600;
}

.article-content a:hover {
  color: var(--fl-green-800);
}

.article-content ul {
  color: #374151;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  list-style-type: disc;
}

.article-content li {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.section-title-left {
  color: var(--fl-green-900);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

/* Enlaces rápidos a canales deportivos */
.quick-channels-card {
  margin-bottom: 2rem;
}

.quick-channels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  list-style: none;
}

.quick-channel-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: #374151;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.quick-channel-link span {
  color: var(--fl-green-600);
}

.quick-channel-link:hover {
  border-color: var(--fl-green-600);
  color: var(--fl-green-700);
  background: var(--fl-green-light);
}

/* Ligas de Fútbol en Español (Tarjetas) */
.leagues-section {
  margin-bottom: 2rem;
}

.leagues-badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  list-style: none;
}

.league-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 0.15s ease;
}

.league-box:hover {
  border-color: var(--fl-green-600);
}

.league-link {
  font-weight: 700;
  color: var(--fl-green-700);
  font-size: 0.95rem;
  text-decoration: none;
}

.league-link:hover {
  color: var(--fl-green-800);
  text-decoration: underline;
}

.league-country {
  font-size: 0.82rem;
  color: #6b7280;
}

/* ---------------- PREGUNTAS FRECUENTES (FAQ) ---------------- */
.faq-section {
  margin-bottom: 28px;
}

.faq-items-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.faq-question {
  cursor: pointer;
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.96rem;
  user-select: none;
}

.faq-question:hover {
  color: var(--fl-green-700);
}

.faq-answer {
  margin-top: 8px;
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Legal Box */
.legal-box {
  background: #f8fafc;
  border-left: 4px solid var(--fl-green-700);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin-bottom: 28px;
}

.legal-box h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fl-green-900);
  margin-bottom: 6px;
}

.legal-box p {
  font-size: 0.82rem;
  color: #4b5563;
  line-height: 1.55;
}

/* ---------------- FOOTER ---------------- */
.site-footer {
  margin-top: auto;
  background: #1f2937;
  color: #ffffff;
  padding: 24px 0 20px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #ffffff;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  list-style: none;
}

.footer-nav a {
  font-size: 0.84rem;
  color: #d1d5db;
}

.footer-nav a:hover {
  color: #4ade80;
}

.footer-bottom-row {
  border-top: 1px solid #374151;
  padding-top: 14px;
}

.footer-copy {
  font-size: 0.78rem;
  color: #9ca3af;
  text-align: center;
}

/* ---------------- BOTÓN VOLVER ARRIBA ---------------- */
.back-to-top-btn {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--fl-green-700);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all 0.22s ease;
  z-index: 30;
}

.back-to-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top-btn:hover {
  background: var(--fl-green-800);
  transform: translateY(-2px);
}

/* ---------------- MEDIA QUERIES (100% RESPONSIVE) ---------------- */
@media screen and (max-width: 768px) {
  .site-nav {
    display: none;
  }

  .menu-toggle-btn {
    display: block;
  }

  .home-intro h1 {
    font-size: 1.75rem;
  }

  .home-intro p {
    font-size: 0.95rem;
  }

  .channels-filter-row {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .ch-search-input {
    width: 100%;
  }

  .ch-category-select {
    width: 100%;
  }

  .channels-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .leagues-list-grid {
    grid-template-columns: 1fr;
  }

  .agenda-filter-row {
    flex-direction: column;
  }

  .category-select-wrap {
    max-width: 100%;
    width: 100%;
  }

  .modal-player-card {
    padding: 8px;
    gap: 8px;
  }

  .modal-match-title {
    font-size: 0.95rem;
  }
}

@media screen and (max-width: 520px) {
  .channels-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .channel-logo-wrap {
    height: 85px;
    padding: 10px;
  }

  .channel-brand-img {
    max-width: 100px;
    max-height: 42px;
  }

  .channel-body {
    padding: 10px 8px;
    gap: 4px;
  }

  .channel-name {
    font-size: 0.92rem;
  }

  .channel-desc {
    font-size: 0.72rem;
  }

  .btn-channel-play {
    font-size: 0.78rem;
    padding: 7px 10px;
  }

  .match-time-pill {
    width: 52px;
    font-size: 0.8rem;
  }

  .match-title-wrap {
    font-size: 0.86rem;
  }

  .footer-top-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media screen and (max-width: 360px) {
  .channels-grid {
    grid-template-columns: 1fr;
  }
}
