/* ==========================================================================
   TARJETA ROJA / ROJA DIRECTA - TEMA STADIUM EMERALD & VOLT (MODO BROADCAST)
   Paleta: Obsidian Turf (#070b0a), Emerald (#10b981), Electric Mint (#34d399),
           Volt Lime (#a3e635), Live Crimson (#f43f5e), Gold (#fbbf24)
   100% Responsivo, Ultrarrápido, Optimizado para SEO en Español (Google/Bing)
   ========================================================================== */

:root {
  --bg-main: #070b0a;
  --bg-surface: #0c1210;
  --bg-card: #111916;
  --bg-card-hover: #17221e;
  --bg-card-active: #1c2a24;
  --bg-elevated: #141e1a;
  --bg-glass: rgba(10, 16, 14, 0.88);

  --brand-primary: #10b981;
  --brand-primary-dark: #059669;
  --brand-primary-deep: #047857;
  --brand-bright: #34d399;
  --brand-volt: #a3e635;
  --brand-glow: rgba(16, 185, 129, 0.35);

  --live-crimson: #f43f5e;
  --live-crimson-dark: #e11d48;
  --live-crimson-glow: rgba(244, 63, 94, 0.48);

  --accent-amber: #fbbf24;
  --accent-amber-glow: rgba(251, 191, 36, 0.32);

  /* Compatibilidad con variables previas */
  --roja-red: var(--brand-primary);
  --roja-red-bright: var(--brand-bright);
  --roja-red-dark: var(--brand-primary-dark);
  --roja-red-glow: var(--brand-glow);
  --roja-gold: var(--brand-bright);
  --roja-gold-bright: var(--brand-volt);
  --roja-gold-glow: rgba(163, 230, 53, 0.3);

  --live-green: #10b981;
  --live-green-glow: rgba(16, 185, 129, 0.5);

  --text-white: #ffffff;
  --text-primary: #f1f5f3;
  --text-secondary: #98aba3;
  --text-muted: #657870;

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-card: rgba(52, 211, 153, 0.14);
  --border-card-strong: rgba(52, 211, 153, 0.32);
  --border-focus: #10b981;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.38);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.48);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.62);
  --shadow-brand: 0 4px 18px rgba(16, 185, 129, 0.28);
}

/* ---------------- CSS 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 {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 80% 45% at 50% -5%, rgba(16, 185, 129, 0.14) 0%, transparent 60%),
    radial-gradient(circle at 85% 20%, rgba(163, 230, 53, 0.05) 0%, transparent 40%),
    linear-gradient(180deg, #070b0a 0%, #09100e 100%);
  background-attachment: fixed;
}

.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 18px;
}

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 {
  font-family: inherit;
}

/* ---------------- TOP UTILITY BAR ---------------- */
.top-notice-bar {
  background: #050807;
  border-bottom: 1px solid rgba(52, 211, 153, 0.1);
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 7px 0;
}

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

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

.live-indicator-dot {
  width: 8px;
  height: 8px;
  background-color: var(--brand-bright);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--brand-bright);
  animation: pulseLive 1.8s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

@keyframes pulseCrimson {
  0% { transform: scale(0.97); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.65); }
  70% { transform: scale(1.03); box-shadow: 0 0 0 6px rgba(244, 63, 94, 0); }
  100% { transform: scale(0.97); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

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

.notice-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tz-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--brand-bright);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(52, 211, 153, 0.28);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tz-toggle-btn:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--brand-bright);
  color: #ffffff;
}

/* ---------------- HEADER & NAVIGATION ---------------- */
.header-fluid-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  background: rgba(9, 14, 12, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(52, 211, 153, 0.22);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.55);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  height: 56px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
}

/* Stadium Shield Logo */
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-brand-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #059669 0%, #10b981 55%, #a3e635 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 9px;
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.45);
  transform: rotate(-5deg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-brand:hover .site-brand-icon {
  transform: rotate(0deg) scale(1.08);
  box-shadow: 0 4px 16px rgba(163, 230, 53, 0.45);
}

.site-brand-icon::after {
  content: '⚽';
  font-size: 13px;
}

.site-brand-text {
  font-family: var(--font-heading), 'Outfit', Arial, Helvetica, sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 25%, #6ee7b7 72%, #a3e635 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #34d399;
  letter-spacing: -0.5px;
  line-height: 1;
  white-space: nowrap;
  transition: filter 0.2s ease;
}

.site-brand:hover .site-brand-text {
  filter: brightness(1.12);
}

/* Pill Navigation Menu */
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(52, 211, 153, 0.22);
}

.nav-link.active {
  color: #04130d;
  background: linear-gradient(135deg, #34d399 0%, #a3e635 100%);
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.35);
}

.mobile-nav-toggle {
  display: none;
  color: #fff;
  font-size: 1.4rem;
  padding: 6px;
}

/* ---------------- HERO INTRO CARD ---------------- */
.seo-intro-card {
  margin: 20px 0 16px;
  background:
    radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.14) 0%, transparent 70%),
    linear-gradient(180deg, #101916 0%, #0b110f 100%);
  border: 1px solid var(--border-card);
  border-top: 3px solid var(--brand-primary);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.seo-intro-card h1 {
  font-family: var(--font-heading);
  font-size: 1.32rem;
  font-weight: 800;
  background: linear-gradient(90deg, #ffffff 0%, #6ee7b7 60%, #a3e635 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand-bright);
  margin-bottom: 8px;
  text-align: center;
  letter-spacing: -0.3px;
}

.seo-intro-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.seo-intro-card strong {
  color: #ffffff;
  font-weight: 600;
}

/* ---------------- SEARCH & FILTER TOOLBAR ---------------- */
.agenda-toolbar {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.toolbar-search-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

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

.search-input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-bright);
  pointer-events: none;
}

.agenda-search-input {
  width: 100%;
  background: #090e0c;
  border: 1px solid rgba(52, 211, 153, 0.18);
  color: #fff;
  padding: 11px 38px 11px 42px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.agenda-search-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: #0c1411;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

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

.search-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  display: none;
  padding: 4px;
}

.search-clear-btn:hover {
  color: #fff;
}

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

/* Day Selector Tabs (Segmented Control Look) */
.agenda-day-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px;
  background: #090e0c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.agenda-day-tabs::-webkit-scrollbar {
  display: none;
}

.day-tab-btn {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.day-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.day-tab-btn.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(5, 150, 105, 0.28) 100%);
  color: var(--brand-volt);
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* Category Filter Pills Wrap */
.filter-sports-pills-wrap {
  position: relative;
  width: 100%;
}

.filter-sports-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: #1f2e28 transparent;
  -webkit-overflow-scrolling: touch;
}

.filter-sports-pills::-webkit-scrollbar {
  height: 4px;
}

.filter-sports-pills::-webkit-scrollbar-thumb {
  background: #1f2e28;
  border-radius: 4px;
}

.sport-pill-btn {
  background: #0c1310;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.81rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.sport-pill-btn:hover {
  background: #17241f;
  color: #fff;
  border-color: rgba(52, 211, 153, 0.3);
}

.sport-pill-btn.active {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  border-color: #34d399;
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.35);
}

/* En Vivo & Favoritos Special Pills */
.pill-live-special {
  background: rgba(244, 63, 94, 0.14) !important;
  border-color: rgba(244, 63, 94, 0.42) !important;
  color: #fda4af !important;
}

.pill-live-special:hover {
  background: rgba(244, 63, 94, 0.24) !important;
  color: #ffffff !important;
}

.pill-live-special.active {
  background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%) !important;
  border-color: #fb7185 !important;
  color: #fff !important;
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.5) !important;
}

.pill-live-dot {
  width: 7px;
  height: 7px;
  background-color: #fb7185;
  border-radius: 50%;
  box-shadow: 0 0 6px #f43f5e;
  display: inline-block;
  animation: pulseCrimson 1.5s infinite;
}

.pill-fav-special {
  border-color: rgba(251, 191, 36, 0.28) !important;
}

.pill-fav-special.active {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
  border-color: #fbbf24 !important;
  color: #fff !important;
  box-shadow: 0 3px 12px rgba(245, 158, 11, 0.35) !important;
}

.fav-count-pill {
  background: var(--accent-amber);
  color: #090d0b;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 2px;
}

/* ---------------- MAIN AGENDA CONTAINER (FLOATING CARD GRID DESIGN) ---------------- */
.agenda-card-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 26px;
}

.agenda-header-banner {
  background:
    linear-gradient(90deg, rgba(16, 185, 129, 0.16) 0%, rgba(17, 25, 22, 0.95) 55%, rgba(163, 230, 53, 0.08) 100%);
  border-bottom: 1px solid var(--border-card-strong);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.agenda-header-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.2px;
}

.agenda-header-title span.chevron-accent {
  color: var(--brand-volt);
}

.agenda-matches-count {
  font-size: 0.76rem;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: var(--brand-bright);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* Skeleton Loading Screens */
.agenda-skeleton-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.skeleton-match-card {
  display: grid;
  grid-template-columns: 82px 42px 1fr 140px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.skeleton-box {
  background: linear-gradient(90deg, #121c18 25%, #1c2b25 50%, #121c18 75%);
  background-size: 200% 100%;
  animation: shimmerAnim 1.6s infinite;
  border-radius: var(--radius-xs);
}

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

.skeleton-time { height: 26px; width: 75px; }
.skeleton-icon { height: 32px; width: 32px; border-radius: 50%; }
.skeleton-title { height: 22px; width: 70%; }
.skeleton-btn { height: 32px; width: 120px; border-radius: var(--radius-sm); }

/* Event List Container - Elevated Card Spacing */
.agenda-events-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

/* Individual Floating Match Card */
.tr-event-card {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #131c19 0%, #101714 100%);
  transition: transform 0.18s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.tr-event-card:hover {
  background: linear-gradient(180deg, #17231f 0%, #121b18 100%);
  border-color: rgba(52, 211, 153, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.38);
}

.tr-event-card.is-open {
  background: #15201c;
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.tr-event-main-bar {
  width: 100%;
  display: grid;
  grid-template-columns: 30px 92px 38px 1fr auto;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
}

/* Favorite Star Button */
.btn-fav-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.03);
  color: #4b5d55;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.btn-fav-star:hover {
  color: var(--accent-amber);
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.35);
  transform: scale(1.1);
}

.btn-fav-star.is-fav {
  color: var(--accent-amber);
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.45);
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.45));
}

.tr-event-card.is-fav {
  border-left: 3px solid var(--accent-amber);
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.06) 0%, #111916 35%);
}

/* Time Pill */
.tr-event-time-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tr-event-time {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--brand-bright);
  letter-spacing: 0.3px;
  background: rgba(16, 185, 129, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(52, 211, 153, 0.28);
  display: inline-block;
  text-align: center;
}

.tr-event-time.is-live {
  color: #ffffff;
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  border-color: #fb7185;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.5);
  animation: pulseCrimson 2s infinite;
}

.tr-event-tz-label {
  font-size: 0.66rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* League Icon */
.tr-event-icon-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tr-competition-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #0b110f;
  border: 1px solid rgba(52, 211, 153, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  overflow: hidden;
  flex-shrink: 0;
  padding: 3px;
}

.tr-competition-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Match Title Col */
.tr-event-info-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.tr-league-name {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-bright);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tr-match-title {
  font-size: 0.96rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  width: 100%;
}

.tr-match-title .vs-separator {
  color: var(--brand-volt);
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(163, 230, 53, 0.14);
  border: 1px solid rgba(163, 230, 53, 0.28);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  line-height: 1.25;
}

.tr-team-badge-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1 1 0;
  overflow: hidden;
}

.team-t1, .team-t2 {
  font-size: 0.93rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  display: inline-block;
}

.tr-match-title > span:only-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  min-width: 0;
  width: 100%;
}

.tr-club-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.55));
}

/* Action Col */
.tr-event-actions-col {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-open-channels {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-open-channels:hover {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.4);
  color: #fff;
}

.btn-direct-stream {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  border: 1px solid #34d399;
  padding: 7px 15px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.32);
  transition: all 0.2s ease;
}

.btn-direct-stream:hover {
  background: linear-gradient(135deg, #34d399 0%, #a3e635 100%);
  color: #04130d;
  border-color: #a3e635;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(163, 230, 53, 0.35);
}

.chevron-icon {
  transition: transform 0.2s ease;
  font-size: 10px;
}

.tr-event-card.is-open .chevron-icon {
  transform: rotate(180deg);
}

/* Channels Tray (Accordion Expanded) */
.tr-channels-tray {
  display: none;
  background: #0a100e;
  border-top: 1px solid rgba(52, 211, 153, 0.15);
  padding: 13px 18px 15px;
}

.tr-event-card.is-open .tr-channels-tray {
  display: block;
}

.channels-tray-header {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.channels-pills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.channel-stream-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #121c18;
  color: #ffffff;
  border: 1px solid rgba(52, 211, 153, 0.22);
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.channel-stream-link:hover {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  border-color: #34d399;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.channel-badge-quality {
  background: rgba(163, 230, 53, 0.18);
  color: var(--brand-volt);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

/* Empty matches state */
.agenda-empty-state {
  padding: 44px 20px;
  text-align: center;
  color: var(--text-secondary);
}

.agenda-empty-state svg {
  margin-bottom: 12px;
  color: var(--brand-bright);
}

/* ---------------- DETAILED SEO ARTICLE SECTION (SPANISH) ---------------- */
.seo-article-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-top: 3px solid var(--brand-primary);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-md);
}

.seo-article-wrapper article {
  max-width: 960px;
  margin: 0 auto;
}

.article-main-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.25;
  letter-spacing: -0.4px;
}

.article-main-title span {
  color: var(--brand-bright);
}

.article-meta-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-meta-info span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.seo-section-block {
  margin-bottom: 28px;
}

.seo-article-wrapper h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-bright);
  margin: 24px 0 12px;
  position: relative;
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.seo-article-wrapper h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 52px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-volt));
  border-radius: 2px;
}

.seo-article-wrapper h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 18px 0 8px;
}

.seo-article-wrapper p {
  color: #c8d6d0;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.seo-article-wrapper strong {
  color: #ffffff;
  font-weight: 700;
}

.seo-article-wrapper ul, .seo-article-wrapper ol {
  margin: 10px 0 18px 24px;
  color: #c8d6d0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.seo-article-wrapper li {
  margin-bottom: 6px;
}

/* Callout Box inside Article */
.article-callout-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-left: 4px solid var(--brand-volt);
  border-radius: var(--radius-sm);
  padding: 15px 18px;
  margin: 18px 0;
}

.article-callout-box p {
  margin-bottom: 0;
  color: #e2ece7;
}

/* Channels & Leagues Comparison Table */
.article-table-responsive {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
}

.seo-channels-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.seo-channels-table th {
  background: #0d1512;
  color: var(--brand-bright);
  padding: 12px 14px;
  font-weight: 700;
  border-bottom: 2px solid var(--brand-primary);
}

.seo-channels-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #c8d6d0;
}

.seo-channels-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.seo-channels-table tr:hover td {
  background: rgba(16, 185, 129, 0.08);
}

/* FAQ Accordion */
.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.faq-item {
  background: #0c1210;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(52, 211, 153, 0.35);
}

.faq-item.is-open {
  border-color: rgba(52, 211, 153, 0.45);
  background: #0f1714;
}

.faq-question-btn {
  width: 100%;
  text-align: left;
  padding: 15px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  background: none;
}

.faq-question-btn:hover {
  color: var(--brand-volt);
}

.faq-icon {
  font-size: 1.1rem;
  color: var(--brand-bright);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer-content {
  display: none;
  padding: 12px 18px 16px;
  color: #bfd0c9;
  font-size: 0.9rem;
  line-height: 1.65;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item.is-open .faq-answer-content {
  display: block;
}

/* Legal Disclaimer Box */
.legal-disclaimer-box {
  background: #0b100e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-top: 26px;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.legal-disclaimer-box h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------------- SITE FOOTER ---------------- */
.site-footer {
  background: linear-gradient(180deg, #090e0c 0%, #050807 100%);
  border-top: 1px solid rgba(52, 211, 153, 0.22);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.55);
  color: var(--text-secondary);
  padding: 28px 0 22px;
  margin-top: auto;
  text-align: center;
  font-size: 0.85rem;
}

.footer-nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-nav-links a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav-links a:hover {
  color: var(--brand-bright);
}

.footer-nav-links span.sep {
  opacity: 0.35;
  color: var(--text-muted);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 8px;
}

/* ---------------- STREAM PAGE SPECIFIC STYLES ---------------- */
.stream-header {
  background: rgba(9, 14, 12, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(52, 211, 153, 0.22);
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.55);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.stream-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
}

.btn-back-agenda {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.1);
  color: #fff;
  padding: 6px 13px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(52, 211, 153, 0.25);
  transition: all 0.2s ease;
}

.btn-back-agenda:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: var(--brand-bright);
  color: var(--brand-volt);
}

/* Stream Match Header Banner */
.stream-match-banner {
  background:
    radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.14) 0%, transparent 65%),
    linear-gradient(180deg, #111a17 0%, #0b110f 100%);
  border: 1px solid var(--border-card);
  border-top: 3px solid var(--brand-primary);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin: 18px 0;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.match-meta-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.pill-live-glow {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.5);
}

.pill-league-tag {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--brand-bright);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.pill-time-tag {
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.stream-match-teams-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.stream-team-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-badge-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16221e 0%, #0d1411 100%);
  border: 2px solid rgba(52, 211, 153, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand-bright);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  padding: 4px;
}

.team-badge-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.stream-team-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
}

.stream-vs-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  border: 2px solid var(--brand-volt);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.45);
  flex-shrink: 0;
}

/* Stream Layout Grid */
.stream-grid-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  margin-bottom: 30px;
}

.player-box-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.player-viewport-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #040706;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-card-strong);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.72);
}

.player-viewport-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.player-loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #070b0a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  z-index: 5;
  transition: opacity 0.3s ease;
}

.player-loader-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner-circle {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(16, 185, 129, 0.2);
  border-top-color: var(--brand-volt);
  border-radius: 50%;
  animation: spinLoader 0.9s linear infinite;
}

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

/* Controls Under Player */
.player-controls-tray {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 12px 14px;
  border-radius: var(--radius-md);
}

.server-pills-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.server-bar-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-right: 4px;
}

.btn-server-choice {
  background: #0c1310;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-server-choice:hover {
  background: #17231f;
  color: #fff;
  border-color: rgba(52, 211, 153, 0.3);
}

.btn-server-choice.active {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #fff;
  border-color: #34d399;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.45);
}

.player-aux-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-player-aux {
  background: #0c1310;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-player-aux:hover {
  background: #17231f;
  border-color: rgba(52, 211, 153, 0.35);
  color: var(--brand-volt);
}

/* TV Guide Card in Stream Page */
.stream-tv-guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
}

.stream-tv-guide-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-bright);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.channels-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tv-channel-tag {
  background: #0c1310;
  color: #ffffff;
  border: 1px solid rgba(52, 211, 153, 0.22);
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
}

/* Stream Chat Sidebar */
.stream-chat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  height: 580px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.chat-box-header {
  background: #0d1512;
  border-bottom: 1px solid var(--border-card);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.chat-viewers-count {
  font-size: 0.75rem;
  color: var(--brand-bright);
  font-weight: 700;
}

.chat-messages-scroll {
  flex: 1;
  padding: 12px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: #20312b transparent;
}

.chat-msg-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.82rem;
  background: #0c1210;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--brand-primary);
}

.chat-user-title {
  font-weight: 700;
  color: var(--brand-bright);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-msg-text {
  color: #dde8e3;
}

.chat-input-bar {
  padding: 11px 12px;
  background: #0d1512;
  border-top: 1px solid var(--border-card);
  display: flex;
  gap: 8px;
}

.chat-text-input {
  flex: 1;
  background: #080d0b;
  border: 1px solid rgba(52, 211, 153, 0.22);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.chat-text-input:focus {
  outline: none;
  border-color: var(--brand-primary);
}

.btn-send-chat {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-send-chat:hover {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: #04130d;
}

/* ---------------- TOAST NOTIFICATION ---------------- */
.toast-alert {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(12, 19, 16, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-left: 4px solid var(--brand-volt);
  padding: 11px 18px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
  z-index: 9999;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast-alert.show, .toast-alert.visible {
  transform: translateY(0);
  opacity: 1;
}

@media screen and (max-width: 768px) {
  .toast-alert {
    left: 50%;
    right: auto;
    bottom: 70px;
    transform: translateX(-50%) translateY(40px);
    white-space: nowrap;
    border-radius: var(--radius-full);
  }

  .toast-alert.show, .toast-alert.visible {
    transform: translateX(-50%) translateY(0);
  }
}

/* ---------------- SCROLL OFFSET FOR ANCHOR LINKS ---------------- */
#agenda, #articulo, #canales, #faq, #legal {
  scroll-margin-top: 72px;
}

/* ---------------- RESPONSIVE BREAKPOINTS ---------------- */
@media screen and (max-width: 900px) {
  .header-fluid-inner {
    padding: 0 16px;
  }

  .main-nav {
    display: none;
  }

  .main-nav.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #0b120f;
    border-bottom: 2px solid var(--brand-primary);
    padding: 12px 16px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.78);
    z-index: 1001;
    gap: 6px;
  }

  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #fff;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.28);
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
  }

  .mobile-nav-toggle:hover {
    background: rgba(16, 185, 129, 0.22);
    color: var(--brand-volt);
  }

  .nav-link {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .stream-grid-layout {
    grid-template-columns: 1fr;
  }

  .stream-chat-box {
    height: 420px;
  }
}

@media screen and (max-width: 768px) {
  .header-fluid-inner {
    padding: 0 16px;
  }

  .container {
    padding: 0 14px;
  }

  .tr-event-main-bar {
    grid-template-columns: 30px 84px 34px 1fr;
    padding: 12px 14px;
    gap: 8px 10px;
  }

  .tr-event-actions-col {
    grid-column: 1 / -1;
    display: flex;
    justify-content: stretch;
    gap: 8px;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
  }

  .btn-open-channels, .btn-direct-stream {
    flex: 1;
    justify-content: center;
    text-align: center;
  }

  .stream-match-teams-box {
    flex-direction: column;
    gap: 12px;
  }

  .stream-team-title {
    font-size: 1.2rem;
  }

  .top-notice-inner {
    justify-content: center;
    font-size: 0.78rem;
  }
}

@media screen and (max-width: 600px) {
  .container {
    padding: 0 10px;
  }

  .seo-intro-card {
    padding: 16px 14px;
    margin: 12px 0 12px;
    border-radius: var(--radius-md);
  }

  .agenda-toolbar {
    padding: 12px;
    gap: 10px;
    margin-bottom: 14px;
    border-radius: var(--radius-md);
  }

  .agenda-card-wrapper {
    margin-bottom: 18px;
    border-radius: var(--radius-md);
  }

  .agenda-header-banner {
    padding: 12px 14px;
    gap: 6px;
  }

  .agenda-header-title {
    font-size: 0.96rem;
    gap: 6px;
  }

  .agenda-matches-count {
    font-size: 0.72rem;
    padding: 3px 9px;
  }

  .agenda-events-list {
    padding: 10px;
    gap: 8px;
  }

  /* Tarjeta de Partido Adaptativa en Móvil */
  .tr-event-main-bar {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "time icon league fav"
      "match match match match"
      "actions actions actions actions";
    gap: 6px 8px;
    padding: 11px 12px 10px;
    align-items: center;
  }

  .btn-fav-star {
    grid-area: fav;
    justify-self: end;
    width: 28px;
    height: 28px;
  }

  .tr-event-time-col {
    grid-area: time;
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }

  .tr-event-time {
    font-size: 0.84rem;
    padding: 3px 8px;
  }

  .tr-event-tz-label {
    margin-top: 0;
    font-size: 0.65rem;
  }

  .tr-event-icon-col {
    grid-area: icon;
  }

  .tr-competition-badge {
    width: 26px;
    height: 26px;
    font-size: 13px;
    border-radius: 7px;
  }

  .tr-event-info-col {
    display: contents;
  }

  .tr-league-name {
    grid-area: league;
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  .tr-match-title {
    grid-area: match;
    width: 100%;
    min-width: 0;
    padding: 6px 0 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
  }

  .tr-team-badge-row {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
  }

  .tr-team-badge-row:first-child {
    justify-content: flex-end;
  }

  .tr-team-badge-row:last-child {
    justify-content: flex-start;
  }

  .team-t1, .team-t2 {
    font-size: 0.91rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  .tr-club-logo {
    width: 19px;
    height: 19px;
  }

  .tr-match-title .vs-separator {
    font-size: 0.68rem;
    padding: 1px 6px;
    flex-shrink: 0;
  }

  .tr-event-actions-col {
    grid-area: actions;
    width: 100%;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .btn-open-channels {
    flex: 1;
    padding: 8px 10px;
    font-size: 0.78rem;
    justify-content: center;
    text-align: center;
  }

  .btn-direct-stream {
    flex: 1.2;
    padding: 8px 10px;
    font-size: 0.78rem;
    justify-content: center;
    text-align: center;
  }

  .tr-channels-tray {
    padding: 10px 12px;
  }

  .channels-pills-grid {
    gap: 6px;
  }

  .channel-stream-link {
    flex: 1 1 calc(50% - 4px);
    min-width: 120px;
    justify-content: center;
    padding: 7px 8px;
    font-size: 0.76rem;
  }

  /* Sección de Artículo en Móvil */
  .seo-article-wrapper {
    padding: 20px 15px;
    margin-bottom: 20px;
    border-radius: var(--radius-md);
  }

  .article-main-title {
    font-size: 1.35rem;
    line-height: 1.3;
  }

  .seo-article-wrapper h2 {
    font-size: 1.15rem;
    margin: 18px 0 10px;
  }

  .seo-article-wrapper h3 {
    font-size: 1rem;
    margin: 14px 0 6px;
  }

  .seo-article-wrapper p {
    font-size: 0.88rem;
    line-height: 1.62;
  }

  .article-meta-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 0.75rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
  }

  .article-callout-box {
    padding: 11px 13px;
    margin: 14px 0;
  }

  .seo-channels-table th, .seo-channels-table td {
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .faq-question-btn {
    padding: 12px 14px;
    font-size: 0.88rem;
  }

  .faq-answer-content {
    padding: 10px 14px 12px;
    font-size: 0.84rem;
  }

  .legal-disclaimer-box {
    padding: 14px;
    font-size: 0.8rem;
    margin-top: 18px;
  }

  /* Página stream en Móvil */
  .stream-nav-container {
    padding: 0 10px;
    height: 48px;
  }

  .stream-nav-left {
    gap: 8px !important;
  }

  .btn-back-agenda {
    padding: 5px 10px;
    font-size: 0.75rem;
  }

  .stream-match-banner {
    padding: 16px 12px;
    margin: 12px 0;
    border-radius: var(--radius-md);
  }

  .match-meta-tags {
    gap: 6px;
    margin-bottom: 10px;
  }

  .pill-live-glow, .pill-league-tag, .pill-time-tag {
    font-size: 0.72rem;
    padding: 3px 9px;
  }

  .stream-match-teams-box {
    flex-direction: column;
    gap: 8px;
  }

  .stream-team-card {
    gap: 8px;
  }

  .team-badge-circle {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }

  .stream-team-title {
    font-size: 1.05rem;
    text-align: center;
    word-break: break-word;
  }

  .stream-vs-circle {
    width: 32px;
    height: 32px;
    font-size: 0.72rem;
  }

  .player-viewport-wrap {
    border-radius: var(--radius-md);
  }

  .player-controls-tray {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
  }

  .server-pills-bar {
    width: 100%;
    justify-content: center;
  }

  .btn-server-choice {
    flex: 1;
    text-align: center;
    padding: 6px;
    font-size: 0.72rem;
  }

  .player-aux-actions {
    width: 100%;
    justify-content: center;
  }

  .btn-player-aux {
    flex: 1;
    justify-content: center;
    padding: 6px;
    font-size: 0.72rem;
  }

  .stream-tv-guide-card {
    padding: 12px;
  }

  .stream-tv-guide-card h3 {
    font-size: 0.88rem;
  }

  .tv-channel-tag {
    font-size: 0.74rem;
    padding: 4px 8px;
  }

  .stream-chat-box {
    height: 360px;
    border-radius: var(--radius-md);
  }

  .chat-box-header {
    padding: 10px 12px;
  }

  .chat-input-bar {
    padding: 8px 10px;
  }
}

@media screen and (max-width: 440px) {
  .header-container {
    min-height: 48px;
    height: 48px;
  }

  .site-brand-text {
    font-size: 1.25rem;
  }

  .site-brand-icon {
    width: 22px;
    height: 22px;
    border-radius: 7px;
  }

  .site-brand-icon::after {
    font-size: 10px;
  }

  .top-notice-bar {
    padding: 5px 0;
    font-size: 0.72rem;
  }

  .top-notice-inner {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
  }

  .tr-event-time {
    font-size: 0.78rem;
    padding: 2px 6px;
  }

  .team-t1, .team-t2 {
    font-size: 0.84rem;
  }

  .tr-club-logo {
    width: 17px;
    height: 17px;
  }

  .tr-match-title .vs-separator {
    font-size: 0.65rem;
    padding: 1px 5px;
  }

  .btn-open-channels, .btn-direct-stream {
    font-size: 0.74rem;
    padding: 7px 6px;
  }

  .channel-stream-link {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .btn-back-agenda span {
    display: none;
  }

  .footer-nav-links {
    gap: 4px 8px;
    font-size: 0.74rem;
  }

  .footer-copy {
    font-size: 0.72rem;
  }
}

@media screen and (max-width: 360px) {
  .container {
    padding: 0 6px;
  }

  .site-brand-text {
    font-size: 1.15rem;
  }

  .tr-event-main-bar {
    padding: 9px 8px 8px;
    gap: 5px 6px;
  }

  .team-t1, .team-t2 {
    font-size: 0.78rem;
  }

  .tr-event-time {
    font-size: 0.74rem;
    padding: 2px 5px;
  }

  .tr-club-logo {
    width: 15px;
    height: 15px;
  }

  .sport-pill-btn {
    padding: 5px 10px;
    font-size: 0.74rem;
  }
}

/* ==========================================================================
   EXPERIENCIA MÓVIL Y APP PWA
   ========================================================================== */

/* 1. Barra de Navegación Inferior Móvil (App Style) */
.bottom-app-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 58px;
  background: rgba(9, 14, 12, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(52, 211, 153, 0.18);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.72);
  z-index: 1050;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px env(safe-area-inset-bottom);
}

.bottom-app-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: none;
  padding: 6px 0;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.bottom-app-btn svg {
  transition: transform 0.2s ease, color 0.2s ease;
}

.bottom-app-btn.active {
  color: var(--brand-bright);
}

.bottom-app-btn.active svg {
  color: var(--brand-volt);
  transform: translateY(-2px);
}

.live-nav-indicator {
  position: absolute;
  top: 6px;
  right: calc(50% - 14px);
  width: 7px;
  height: 7px;
  background: var(--live-crimson);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--live-crimson);
  animation: pulseCrimson 1.8s infinite;
}

@media screen and (max-width: 768px) {
  body {
    padding-bottom: 66px !important;
  }
  .bottom-app-bar {
    display: flex;
  }
}

/* 2. Backdrop para Menú Móvil */
.mobile-nav-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-nav-backdrop.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* 3. Stream Social Share Pills */
.stream-share-pills-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.share-pills-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.btn-share-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s;
  background: #101915;
  color: #fff;
}

.btn-share-pill.whatsapp {
  background: #0f2419;
  border-color: rgba(37, 211, 102, 0.4);
  color: #25d366;
}

.btn-share-pill.whatsapp:hover {
  background: #25d366;
  color: #fff;
}

.btn-share-pill.telegram {
  background: #0f1f26;
  border-color: rgba(0, 136, 204, 0.4);
  color: #38bdf8;
}

.btn-share-pill.telegram:hover {
  background: #0088cc;
  color: #fff;
}

.btn-share-pill.copy:hover {
  background: rgba(16, 185, 129, 0.16);
  border-color: var(--brand-bright);
  color: var(--brand-volt);
}

/* 5. Chat Toggle & Collapsed State */
.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-toggle-chat {
  background: #14201b;
  color: var(--text-secondary);
  border: 1px solid rgba(52, 211, 153, 0.2);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-toggle-chat:hover {
  background: var(--brand-primary);
  color: #fff;
}

.stream-chat-box.chat-collapsed {
  height: 48px !important;
  overflow: hidden;
}

.stream-chat-box.chat-collapsed .chat-messages-scroll,
.stream-chat-box.chat-collapsed .chat-input-bar {
  display: none !important;
}

/* 6. Mini Player Flotante en Móvil */
@media screen and (max-width: 900px) {
  .player-viewport-wrap.is-floating-mini {
    position: fixed;
    bottom: 68px;
    right: 12px;
    width: 210px;
    height: 118px;
    padding-top: 0 !important;
    z-index: 1045;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 14px rgba(16, 185, 129, 0.5);
    border: 2px solid var(--brand-primary);
    animation: slideInMini 0.3s ease;
  }
}

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