/* ===== Ajuste final de pantallas (360 px → 2560 px) =====
   Reglas: nunca scroll horizontal accidental; contenido con ancho máximo cómodo y centrado; letra y tarjetas más grandes
   en escritorio (el móvil queda como está); zonas táctiles de al menos 44 px. Va al final: gana a las demás hojas. */
:root { --ancho-max: 1360px; --margen: clamp(12px, 2.4vw, 32px); }

/* 1) Nada se desplaza de lado: «clip» no crea contenedor de scroll, así que ni el foco ni scrollIntoView pueden mover la página. */
html, body { overflow-x: clip; max-width: 100%; }
html { scrollbar-gutter: auto; }
img, video, canvas, svg, iframe { max-width: 100%; }

/* 2) Ancho máximo cómodo y centrado (cabecera y contenido alineados) */
.nav-container { width: 100%; max-width: var(--ancho-max) !important; margin-inline: auto !important; padding-inline: var(--margen) !important; box-sizing: border-box; }
.hero-section { max-width: var(--ancho-max); margin-inline: auto; padding-inline: var(--margen); box-sizing: border-box; }
.main-container { width: 100%; max-width: var(--ancho-max) !important; margin-inline: auto !important; padding-inline: var(--margen) !important; box-sizing: border-box; }
.home-stack { width: 100% !important; max-width: 100%; padding-inline: 0; }
#tabla-contenedor > * { min-width: 0; max-width: 100%; }

/* 3) Cabecera que no se desborda en ningún ancho: del tamaño de tableta hacia abajo, el marcador pasa a su propia fila */
.nav-actions { min-width: 0; flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; }
@media (max-width: 1180px) {
  .nav-container { display: grid !important; grid-template-columns: auto minmax(0, 1fr) !important; gap: 10px 14px !important; }
  .nav-ticker-wrapper { grid-column: 1 / -1 !important; order: 3 !important; width: 100% !important; margin: 4px 0 0 !important; }
  .nav-actions.search-container { width: 100%; }
  #input-buscador { flex: 1 1 140px; min-width: 120px; width: auto !important; max-width: none !important; }
}
@media (max-width: 560px) {
  #input-buscador { flex: 0 0 100% !important; }
}
/* celular horizontal: cabecera baja para dejar sitio al contenido */
@media (max-height: 480px) and (orientation: landscape) {
  .navbar { padding: 6px 0; }
  .nav-ticker-wrapper { display: none !important; }
  .nav-container { grid-template-columns: auto minmax(0, 1fr) !important; }
  #alerta-stream-en-vivo { max-height: 44px; overflow: hidden; }
  .logo-text-box { display: none; }
}

/* 4) Menú lateral: nunca más ancho que la pantalla; no mueve el contenido (es fijo y superpuesto) */
.sidebar-menu { width: min(340px, 90vw) !important; right: calc(-1 * min(380px, 95vw)) !important; overflow-y: auto; overscroll-behavior: contain; }
.sidebar-menu.active { right: 0 !important; }
.sidebar-menu li a { min-height: 44px; display: flex !important; align-items: center; }

/* 5) Pantallas grandes: letra y tarjetas más grandes */
@media (min-width: 1280px) {
  html { font-size: 17px; }
  .torneos-activos-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
  .torneo-activo-card { padding: 12px 14px; gap: 12px; }
  .torneo-activo-card .ta-nombre { font-size: 1rem; }
  .torneo-activo-card .ta-estado { font-size: .75rem; }
  .torneo-activo-card img, .ta-inicial { flex-basis: 36px; width: 36px; height: 36px; }
  .seccion-cabecera h3 { font-size: 1.1rem; }
  .rt-grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }
  .rt-club img, .rt-inicial { width: 56px; height: 56px; }
  .rt-nombre { font-size: .8rem; }
  .editorial-resumen-card { flex-basis: 340px; }
  .home-fila-top { grid-template-columns: minmax(0, 1fr) 520px; }
  .hw-marca { font-size: 1.4rem; } .hw-texto { font-size: 1.1rem; }
  .home-world-link { min-height: 190px; }
}
@media (min-width: 1700px) {
  html { font-size: 18px; }
  .home-fila-top { grid-template-columns: minmax(0, 1fr) 560px; }
}

/* 6) Zonas táctiles de 44 px o más en pantallas táctiles / chicas */
@media (pointer: coarse), (max-width: 820px) {
  .btn-cuenta-cabecera, .btn-world-cabecera, .mobile-toggle, .hs-chip, .hs-canal, .hs-boton, .hs-play, .seccion-enlace,
  .torneo-activo-card, .rt-club, .tab-btn, .filtro-btn, .cuenta-form button, .cuenta-botones a, .cuenta-botones button, .btn-secondary, .hero-btn,
  #equipos-registrados-todos { min-height: 44px; }
  .hs-play { min-width: 44px; }
  .mobile-toggle { min-width: 44px; display: inline-flex !important; align-items: center; justify-content: center; }
  .btn-cuenta-cabecera, .btn-world-cabecera { display: inline-flex; align-items: center; justify-content: center; }
  .search-input, #input-buscador { min-height: 44px; }
  .stream-sound-btn, .stream-fullscreen-btn { min-width: 44px; min-height: 44px; }
}

.ta-datos { display: block; font-size: .7rem; color: var(--text-muted, #94a3b8); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1280px) { .ta-datos { font-size: .8rem; } }

/* Móvil vertical: cabecera ordenada en filas (logo + MENÚ / WORLD + INICIAR SESIÓN / buscador / marcador) */
@media (max-width: 560px) {
  .nav-container { grid-template-columns: auto minmax(0, 1fr) auto !important; grid-template-areas: "logo . menu" "world cuenta cuenta" "buscar buscar buscar" "ticker ticker ticker"; align-items: center !important; gap: 8px 8px !important; }
  .nav-actions.search-container { display: contents !important; }
  .logo-space { grid-area: logo; }
  #mobileToggle { grid-area: menu; justify-self: end; }
  #btn-world-cabecera { grid-area: world; }
  #btn-portal-sesion { grid-area: cuenta; justify-self: stretch; }
  #input-buscador { grid-area: buscar; width: 100% !important; flex: none !important; }
  .nav-ticker-wrapper { grid-area: ticker; margin: 0 !important; }
  #btn-world-cabecera .bw-largo { display: inline !important; } #btn-world-cabecera .bw-corto { display: none !important; }
  #btn-world-cabecera, #btn-portal-sesion { min-height: 44px; font-size: .68rem; }
  #search-results { left: 0; right: 0; width: auto; top: 100%; }
}

.torneo-activo-card { justify-content: flex-start; }
.torneo-activo-card .ta-texto { flex: 1 1 auto; text-align: left; align-items: flex-start; }
@media (min-width: 561px) and (max-width: 1180px) { .hs-marco { max-width: 640px; margin-inline: auto; } .home-streams .hs-canales, .home-streams .hs-pie { max-width: 640px; margin-inline: auto; } }

[hidden] { display: none !important; }
@media (pointer: coarse), (max-width: 820px) {
  .editorial-resumen-partido, .editorial-heading a, .editorial-link, .editorial-title { min-height: 44px; display: flex; align-items: center; }
  .editorial-heading a { display: inline-flex; }
}

/* ===== Móvil sencillo (ronda 2) ===== */
/* marcador del encabezado: solo cuando hay un próximo partido */
.nav-ticker-wrapper.sin-partidos { display: none !important; }

/* lupa: solo en celular vertical; en pantallas mayores se ve el cuadro de búsqueda */
.btn-lupa-cabecera { display: none; }
@media (max-width: 560px) {
  .nav-container { grid-template-columns: auto minmax(0, 1fr) auto auto !important; grid-template-areas: "logo . lupa menu" "world cuenta cuenta cuenta" "buscar buscar buscar buscar" "ticker ticker ticker ticker" !important; }
  .btn-lupa-cabecera { display: inline-flex; grid-area: lupa; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); background: transparent; color: #fff; cursor: pointer; padding: 0; }
  .navbar.buscador-abierto .btn-lupa-cabecera { background: var(--secondary); color: #000; }
  #input-buscador { display: none !important; }
  .navbar.buscador-abierto #input-buscador { display: block !important; }
  .navbar { padding: 8px 0; }
  .nav-container { gap: 6px 8px !important; }
}

/* ligas activas: cuadrícula compacta, todas visibles, sin carrusel */
.torneos-activos-grid { display: grid !important; overflow: visible !important; scroll-snap-type: none; padding-bottom: 0; }
@media (max-width: 560px) {
  .torneos-activos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px; }
  .torneo-activo-card { flex: none !important; width: auto !important; min-width: 0; padding: 8px; gap: 8px; align-items: center; min-height: 58px; }
  .torneo-activo-card img, .ta-inicial { flex-basis: 28px; width: 28px; height: 28px; }
  .torneo-activo-card .ta-nombre { font-size: .78rem; line-height: 1.15; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .torneo-activo-card .ta-estado { font-size: .62rem; }
  .ta-datos { font-size: .62rem; }
}
@media (min-width: 561px) and (max-width: 899px) { .torneos-activos-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }

/* orden del inicio: ligas → transmisión → noticias → equipos → movimientos → Ticopa World */
.home-fila-top { order: 1; }
.home-fila-top .home-streams.en-vivo { order: 0; }
.home-noticias { order: 3; }
#equipos-registrados-home { order: 4; }
.home-transfer-home { order: 5; }
.home-world-compacto { order: 6; }
.home-comunidad { order: 7; }
@media (min-width: 900px) { .home-fila-top .home-streams.en-vivo { order: 0; } }
@media (max-width: 899px) { .home-fila-top .torneos-activos-section { order: 0; } .home-fila-top .home-streams, .home-fila-top .home-streams.en-vivo { order: 1; } }

/* pestañas de la liga: Tabla / Partidos / Equipos bien visibles; lo demás debajo */
.liga-tabs-wrap { display: grid; gap: 6px; margin-bottom: 12px; }
.nav-tabs-principales { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 6px; overflow: visible !important; border-bottom: 0 !important; }
.nav-tabs-principales .tab-btn { justify-content: center; font-weight: 800; font-size: .95rem; min-height: 46px; border: 1px solid rgba(255,255,255,.18) !important; border-radius: 10px !important; background: rgba(255,255,255,.04) !important; padding: 10px 6px !important; }
.nav-tabs-principales .tab-btn.activo { background: var(--primary) !important; color: #04130c !important; border-color: var(--primary) !important; }
.nav-tabs-mas .tab-btn { font-size: .78rem; opacity: .9; }

/* ===== Cinta fina de partidos (bajo la cabecera) ===== */
.nav-ticker-wrapper { display: none !important; } /* la cinta vieja del encabezado se reemplaza por #ticker-fino */
.ticker-fino { display: block; height: 32px; overflow: hidden; border-top: 1px solid rgba(255,255,255,.08); background: rgba(5,8,16,.9); font-size: .78rem; line-height: 32px; }
.ticker-fino[hidden] { display: none !important; }
.tf-pista { display: flex; width: max-content; animation: tf-avanza var(--tf-duracion, 60s) linear infinite; }
.tf-grupo { display: flex; flex: 0 0 auto; }
.ticker-fino:hover .tf-pista, .ticker-fino.pausada .tf-pista, .ticker-fino:focus-within .tf-pista { animation-play-state: paused; }
@keyframes tf-avanza { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-fino .tf-item { font-size: inherit; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; padding: 0 22px; white-space: nowrap; color: #dbe5f2; text-decoration: none; height: 32px; border-right: 1px solid rgba(255,255,255,.07); }
.tf-item:hover { background: rgba(255,255,255,.06); }
.tf-liga { font-weight: 800; letter-spacing: .3px; color: var(--secondary); text-transform: uppercase; font-size: .7rem; }
.tf-item.tf-propia .tf-liga { color: var(--primary); }
.tf-sep { color: var(--text-muted); }
.tf-item b { color: var(--primary); font-weight: 900; padding: 0 2px; }
.tf-item em { color: var(--text-muted); font-style: normal; font-size: .7rem; }
.tf-hora { color: var(--gold); font-weight: 700; }
/* sin animación (preferencia del sistema): lista que se desliza con el dedo */
.ticker-fino.sin-animacion { overflow-x: auto; scrollbar-width: none; }
.ticker-fino.sin-animacion::-webkit-scrollbar { display: none; }
.ticker-fino.sin-animacion .tf-pista { animation: none; transform: none; }
@media (prefers-reduced-motion: reduce) { .tf-pista { animation: none !important; } }
@media (min-width: 900px) { .ticker-fino { height: 36px; line-height: 36px; font-size: .85rem; } .tf-item { height: 36px; } }
@media (max-width: 560px) { .nav-container { grid-template-areas: "logo . lupa menu" "world cuenta cuenta cuenta" "buscar buscar buscar buscar" !important; } }
.liga-tabs-wrap .nav-tabs { margin: 0 !important; padding-top: 0; padding-bottom: 0; }
.nav-tabs-mas { border-top: 1px solid rgba(255,255,255,.08); }

/* ===== Menú lateral: nada se sale del panel (nombres largos con puntos suspensivos) ===== */
.sidebar-menu { overflow-x: hidden !important; box-sizing: border-box; align-items: stretch !important; }
.sidebar-menu ul, .sidebar-menu li, #menu-ligas-dinamico, #menu-secciones-ligas {
  width: 100% !important; min-width: 0 !important; max-width: 100% !important; box-sizing: border-box; align-items: stretch !important; margin-left: 0; margin-right: 0;
}
.sidebar-menu ul[id^="sidebar-grupo-"], #menu-secciones-ligas { padding-left: 0; padding-right: 0; }
.sidebar-menu li a { min-width: 0 !important; max-width: 100% !important; box-sizing: border-box; overflow: hidden; }
.sidebar-menu li a > span:not(.ticopa-ui-icon) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; text-align: left; }
.sidebar-menu li a > small { flex: 0 0 auto; max-width: 38%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-menu li a > img, .sidebar-menu li a > .ticopa-ui-icon { flex: 0 0 auto; }
/* los enlaces de ligas se alinean a la izquierda (no centrados) para que lo largo se recorte por la derecha */
.sidebar-menu ul[id^="sidebar-grupo-"] li a { justify-content: flex-start; text-align: left; }

/* ===== Pantallita de transmisión más pequeña ===== */
.home-streams { padding: 10px; }
.hs-marco { max-width: 420px; max-height: 236px; margin-inline: 0; }
.home-streams .hs-canales { gap: 4px; margin-bottom: 6px; }
.hs-canal { padding: 2px 8px; font-size: .64rem; min-height: 32px !important; }
.hs-chip { padding: 4px 10px; font-size: .75rem; min-height: 36px !important; }
.hs-poster img { width: 48px; height: 48px; } .hs-poster strong { font-size: .85rem; }
.hs-play { width: 36px; height: 36px; min-width: 36px; min-height: 36px !important; }
.hs-pie, .home-streams .hs-canales { max-width: 420px; margin-inline: 0; }
@media (min-width: 900px) { .home-fila-top { grid-template-columns: minmax(0, 1fr) 450px !important; } }
@media (min-width: 1280px) { .home-fila-top { grid-template-columns: minmax(0, 1fr) 450px !important; } }
@media (max-width: 899px) { .hs-marco { max-width: 100%; max-height: 200px; } .home-streams .hs-canales, .hs-pie { max-width: 100%; } .home-streams { max-width: 100%; } }
@media (min-width: 561px) and (max-width: 899px) { .hs-marco, .home-streams .hs-canales, .hs-pie { max-width: 420px; margin-inline: 0; } }

/* ===== Pantallita de transmisión: un poco más grande (ronda siguiente a #101) ===== */
.hs-marco { max-width: 600px; max-height: 338px; aspect-ratio: 16 / 9; }
.hs-pie, .home-streams .hs-canales { max-width: 600px; }
@media (min-width: 900px) { .home-fila-top { grid-template-columns: minmax(0, 1fr) 640px !important; } }
@media (min-width: 1700px) { .home-fila-top { grid-template-columns: minmax(0, 1fr) 640px !important; } }
/* tableta y celular vertical: ancho completo; alto ~220 px */
@media (max-width: 899px) { .hs-marco { max-width: 100%; max-height: 220px; min-height: 200px; } .hs-marco { width: 100%; } }
@media (min-width: 561px) and (max-width: 899px) { .hs-marco, .home-streams .hs-canales, .hs-pie { max-width: 560px; margin-inline: 0; } .hs-marco { max-height: 315px; min-height: 0; } }
/* celular horizontal: cómoda, sin tapar el contenido */
@media (max-height: 480px) and (orientation: landscape) { .hs-marco { width: min(100%, calc(60vh * 16 / 9)); max-width: none; max-height: 60vh; min-height: 0; } .home-streams .hs-canales, .hs-pie { max-width: none; } }
/* selectores compactos pero tocables */
@media (pointer: coarse), (max-width: 820px) { .hs-canal { min-height: 40px !important; padding: 2px 10px; } .hs-chip { min-height: 40px !important; padding: 4px 12px; } }

/* ===== Ticopa World arriba y compacta; noticias cortas ===== */
.home-fila-top { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "t" "s" "w"; gap: 14px; align-items: start; }
.home-fila-top .torneos-activos-section { grid-area: t; order: 0; }
.home-fila-top .home-streams, .home-fila-top .home-streams.en-vivo { grid-area: s; order: 0; }
.home-fila-top .home-world-compacto { grid-area: w; order: 0; width: 100%; margin: 0; }
@media (min-width: 900px) {
  .home-fila-top { grid-template-columns: minmax(0, 1fr) 640px !important; grid-template-areas: "t s" "w s"; grid-template-rows: auto 1fr; }
}
.home-world-link { min-height: 84px !important; padding: 0; }
.hw-contenido { flex-direction: row !important; align-items: center !important; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 16px; }
.hw-textos { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hw-marca { font-size: 1rem !important; }
.hw-texto { font-size: .85rem !important; }
.hw-boton { margin: 0 !important; flex: 0 0 auto; }
@media (min-width: 900px) { .home-world-link { min-height: 120px !important; } .hw-marca { font-size: 1.25rem !important; } .hw-texto { font-size: 1rem !important; } }
@media (max-width: 560px) { .hw-texto { font-size: .78rem !important; } .home-world-link { min-height: 80px !important; } }

/* noticias: 3 primeras + «Ver más» */
.home-noticias .editorial-heading > div { display: none; }
.home-noticias .editorial-heading { justify-content: flex-end; margin: 0 0 8px; }
.editorial-mas { margin-top: 18px; }
.editorial-ver-mas { display: block; margin: 16px auto 0; min-height: 44px; padding: 10px 28px; border-radius: 999px; border: 1px solid var(--secondary); background: rgba(0,184,255,.1); color: var(--secondary); font: 800 .85rem 'Orbitron', sans-serif; letter-spacing: .06em; cursor: pointer; }
.editorial-ver-mas:hover { background: var(--secondary); color: #000; }
@media (max-width: 560px) {
  .home-noticias .editorial-card, .home-noticias .editorial-principal { padding: 14px; }
  .home-noticias .editorial-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 6px 0; }
  .home-noticias .editorial-card h3 { margin: 6px 0; }
  .home-noticias .editorial-principal .editorial-title { font-size: 1.25rem; }
  .home-noticias .editorial-grid-portada { gap: 10px; }
  .home-noticias .editorial-link { min-height: 36px; }
}

/* ===== Teléfono con código de país automático ===== */
.cuenta-tel { display: grid; gap: 10px; }
.tel-grupo { display: flex; align-items: stretch; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; background: rgba(0,0,0,.35); overflow: hidden; }
.tel-grupo:focus-within { border-color: var(--secondary); }
.tel-prefijo { display: inline-flex; align-items: center; padding: 0 12px; background: rgba(0,184,255,.14); color: var(--secondary); font-weight: 800; white-space: nowrap; }
.tel-grupo .tel-numero { flex: 1 1 auto; min-width: 0; border: 0 !important; background: transparent !important; border-radius: 0 !important; }
.tel-error { color: #ff6b81; min-height: 1.1em; }

/* ===== Vitrina del club (solo títulos de campeón) + flyer oficial ===== */
.club-palmares { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 14px; }
.vitrina-titulo { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px; text-align: left; color: #fff; cursor: pointer;
  background: rgba(245,197,66,.07); border: 1px solid rgba(245,197,66,.45); border-radius: 10px; font: inherit; }
.vitrina-titulo:hover, .vitrina-titulo:focus-visible { background: rgba(245,197,66,.16); outline: none; border-color: var(--gold); }
.vitrina-copa { font-size: 1.5rem; flex: none; }
.vitrina-nombre { flex: 1; min-width: 0; font-weight: 800; overflow-wrap: anywhere; }
.vitrina-nombre small { display: block; margin-top: 2px; color: var(--text-muted); font-weight: 600; }
.vitrina-titulo em { flex: none; font-style: normal; font-size: .7rem; font-weight: 900; letter-spacing: .04em; color: var(--gold); }
.vitrina-vacia { grid-column: 1 / -1; margin: 0; color: var(--text-muted); }
.flyer-titulo-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 12px; background: rgba(0,0,0,.86); }
.flyer-titulo-caja { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(92vw, 720px); max-height: 94vh; padding: 14px; overflow: auto;
  background: #0b0f1a; border: 1px solid var(--gold); border-radius: 12px; }
.flyer-titulo-caja h4 { margin: 0; padding-right: 36px; align-self: stretch; color: var(--gold); overflow-wrap: anywhere; }
.flyer-titulo-caja img { display: block; max-width: 100%; max-height: calc(94vh - 90px); object-fit: contain; border-radius: 8px; }
.flyer-titulo-caja p { margin: 12px 0; color: var(--text-muted); text-align: center; }
.flyer-titulo-cerrar { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-color); background: rgba(255,255,255,.08); color: #fff; font-size: 1.1rem; cursor: pointer; }
.titulos-admin-form { display: grid; gap: 10px; max-width: 560px; margin: 0 auto 18px; }
.titulos-admin-form label { display: grid; gap: 4px; color: var(--text-muted); font-size: .85rem; }
.titulos-admin-lista { display: grid; gap: 8px; max-width: 560px; margin: 0 auto; }
.titulo-admin-item { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--border-color); border-radius: 8px; background: rgba(255,255,255,.03); }
.titulo-admin-item > div { flex: 1; min-width: 0; } .titulo-admin-item small { display: block; color: var(--text-muted); overflow-wrap: anywhere; }
.titulo-admin-item img { width: 44px; height: 58px; object-fit: cover; border-radius: 4px; flex: none; }
.titulo-admin-sinflyer { flex: none; width: 44px; font-size: .6rem; color: var(--text-muted); text-align: center; }
.titulos-admin-form .search-input, .titulos-admin-form select, .titulos-admin-form input { width: 100%; max-width: 100%; box-sizing: border-box; }
.titulos-admin-form .hero-btn { width: 100%; }
.titulo-admin-item .btn-secondary { flex: none; width: auto; min-width: 0; padding: 8px 12px; }
.titulo-admin-item > div { overflow-wrap: anywhere; word-break: normal; }
/* La regla móvil de 05-overrides limita TODO .search-input a 92px (pensada para el buscador de la cabecera): en estos formularios debe ocupar el ancho. */
.titulos-admin-form .search-input, #liga-config .search-input { max-width: 100% !important; width: 100% !important; box-sizing: border-box; }

/* ===== Pantalla principal (r14, pedido de AldairHB): TORNEOS ACTIVOS a la izquierda y NOTICIAS a la derecha, donde antes estaban las TRANSMISIONES; las transmisiones pasan a la sección de abajo ===== */
.home-fila-top .home-noticias { grid-area: s; order: 0; min-width: 0; margin: 0; }
@media (min-width: 900px) {
  .home-fila-top .home-noticias .editorial-grid-portada { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .home-fila-top .home-noticias .editorial-card { padding: 14px; }
  .home-fila-top .home-noticias .editorial-principal { padding: 18px; }
  .home-fila-top .home-noticias .editorial-principal .editorial-title { font-size: 1.35rem; }
}
.home-stack > .home-streams { max-width: 640px; }
