/* ════════════════════════════════════════════════════════════════════════
   Tema DEPORTIVO — portal de deportes
   Skin sobre app.css: solo añade y ajusta, no reemplaza nada del sistema.
   Se carga únicamente cuando el tema está activo, así que no puede tocar
   a los sitios de radio.
   ════════════════════════════════════════════════════════════════════════ */

.dep-port,
.dep-tabla-sec { --dep-radio: 12px; }

/* ── Franja de marcadores ─────────────────────────────────────────────── */
.scorestrip {
  background: rgb(var(--primary-strong));
  color: rgb(var(--on-primary));
  border-bottom: 1px solid rgb(0 0 0 / .18);
  position: relative;
  z-index: 5;
}
.scorestrip-in { position: relative; display: flex; align-items: stretch; padding: 0; }
.scorestrip-track {
  display: flex; gap: 0; overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; flex: 1; min-width: 0; scroll-snap-type: x proximity;
}
.scorestrip-track::-webkit-scrollbar { display: none; }

.score-card {
  /* min-width:0 es obligatorio: sin él, los nombres largos de los equipos
     ensanchan la tarjeta y la franja deja de alinear. */
  flex: 0 0 196px; min-width: 0; padding: 9px 14px; display: grid; gap: 3px;
  border-right: 1px solid rgb(var(--on-primary) / .14);
  font-size: 12.5px; scroll-snap-align: start; overflow: hidden;
}
.score-card > * { min-width: 0; }
.score-liga {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  font-size: 10px; letter-spacing: .04em; text-transform: uppercase;
  color: rgb(var(--on-primary) / .62); margin-bottom: 2px;
}
.score-liga span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-dia { flex-shrink: 0; font-weight: 800; color: rgb(var(--on-primary) / .8); }
.score-dia.hoy { color: rgb(var(--accent)); }

.score-equipo { display: flex; align-items: center; gap: 7px; opacity: .72; }
.score-equipo.gana { opacity: 1; }
.score-card:not(.is-final) .score-equipo { opacity: .95; }
.score-equipo img { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.score-equipo span {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: 600;
}
.score-equipo b { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.score-pie {
  margin-top: 2px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em;
  color: rgb(var(--on-primary) / .55);
}

.scorestrip-nav {
  flex-shrink: 0; width: 34px; border: 0; cursor: pointer;
  background: rgb(0 0 0 / .18); color: rgb(var(--on-primary));
  display: grid; place-items: center;
}
.scorestrip-nav:hover { background: rgb(0 0 0 / .3); }
@media (max-width: 720px) {
  .scorestrip-nav { display: none; }
  .scorestrip-in { padding-left: 0; padding-right: 0; }
  .score-card { flex: 0 0 168px; padding: 8px 12px; }
  .score-card:first-child { padding-left: 16px; }
}

/* ── Portada: nota principal + titulares + lo último ──────────────────── */
.dep-port { padding-top: 26px; }
.dep-grid {
  display: grid; gap: 18px;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, .78fr);
}
@media (max-width: 1080px) { .dep-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } .dep-ultimo { grid-column: 1 / -1; } }
@media (max-width: 760px)  { .dep-grid { grid-template-columns: 1fr; } }

.dep-tag {
  display: inline-block; padding: 3px 9px; border-radius: 4px;
  background: rgb(var(--accent)); color: rgb(var(--on-accent));
  font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
}
.dep-tag.sm { background: rgb(var(--accent) / .14); color: rgb(var(--accent)); padding: 2px 7px; }
.dep-meta { display: block; margin-top: 6px; font-size: 11.5px; color: rgb(var(--muted)); text-transform: uppercase; letter-spacing: .04em; }

.dep-lead {
  display: block; border-radius: var(--dep-radio); overflow: hidden;
  background: rgb(var(--surface)); border: 1px solid rgb(var(--border));
  color: inherit; text-decoration: none; transition: border-color .2s, transform .2s;
}
.dep-lead:hover { border-color: rgb(var(--accent) / .55); }
.dep-lead-img { aspect-ratio: 16/9; background: rgb(var(--border) / .5); }
.dep-lead-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dep-lead-txt { padding: 16px 18px 20px; }
.dep-lead-txt h2 {
  margin: 10px 0 8px; font-size: clamp(22px, 2.4vw, 31px); line-height: 1.15;
  font-family: var(--font-heading);
}
.dep-lead:hover .dep-lead-txt h2 { color: rgb(var(--accent)); }
.dep-lead-txt p { margin: 0; color: rgb(var(--muted)); font-size: 14.5px; line-height: 1.55; }

.dep-side { display: grid; gap: 12px; align-content: start; }
.dep-side-item {
  display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px;
  padding-bottom: 12px; border-bottom: 1px solid rgb(var(--border));
  color: inherit; text-decoration: none;
}
.dep-side-item:last-child { border-bottom: 0; padding-bottom: 0; }
.dep-side-img { aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; background: rgb(var(--border) / .5); }
.dep-side-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dep-side-item h3 { margin: 6px 0 0; font-size: 15px; line-height: 1.3; font-family: var(--font-heading); }
.dep-side-item:hover h3 { color: rgb(var(--accent)); }

.dep-ultimo {
  border-radius: var(--dep-radio); border: 1px solid rgb(var(--border));
  background: rgb(var(--surface)); padding: 14px 16px; align-self: start;
}
.dep-ultimo-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-family: var(--font-heading); font-size: 14px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em;
}
.dep-vivo {
  width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--danger));
  box-shadow: 0 0 0 0 rgb(var(--danger) / .6); animation: depLatido 1.8s infinite;
}
@keyframes depLatido { 70% { box-shadow: 0 0 0 7px rgb(var(--danger) / 0); } 100% { box-shadow: 0 0 0 0 rgb(var(--danger) / 0); } }
.dep-ultimo-item {
  display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 9px; align-items: baseline;
  padding: 9px 0; border-top: 1px solid rgb(var(--border)); color: inherit; text-decoration: none;
  font-size: 13.5px; line-height: 1.35;
}
.dep-ultimo-item b { font-size: 10.5px; color: rgb(var(--muted)); text-transform: uppercase; }
.dep-ultimo-item:hover span { color: rgb(var(--accent)); }
.dep-ultimo-todas {
  display: block; margin-top: 12px; font-size: 12.5px; font-weight: 700;
  color: rgb(var(--accent)); text-decoration: none;
}

/* ── Tira de deportes/categorías + rejilla ────────────────────────────── */
.dep-cats { display: flex; gap: 8px; overflow-x: auto; margin: 26px 0 14px; padding-bottom: 4px; scrollbar-width: none; }
.dep-cats::-webkit-scrollbar { display: none; }
.dep-cat {
  flex-shrink: 0; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgb(var(--border)); background: rgb(var(--surface)); color: rgb(var(--muted));
  font-size: 12.5px; font-weight: 700; font-family: inherit;
}
.dep-cat:hover { color: rgb(var(--text)); }
.dep-cat.is-on { background: rgb(var(--accent)); border-color: rgb(var(--accent)); color: rgb(var(--on-accent)); }

.dep-mas { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.dep-mas-item { color: inherit; text-decoration: none; display: block; }
.dep-mas-img { aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; background: rgb(var(--border) / .5); margin-bottom: 9px; }
.dep-mas-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.dep-mas-item:hover .dep-mas-img img { transform: scale(1.05); }
.dep-mas-item h3 { margin: 7px 0 0; font-size: 15px; line-height: 1.3; font-family: var(--font-heading); }
.dep-mas-item:hover h3 { color: rgb(var(--accent)); }
.dep-mas-item[hidden] { display: none; }

/* ── Tabla de posiciones ──────────────────────────────────────────────── */
.dep-tabla-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
@media (max-width: 860px) { .dep-tabla-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .dep-tabla-card { overflow-x: auto; }
  .dep-tabla { min-width: 430px; }
  .dep-side-item { grid-template-columns: 88px minmax(0, 1fr); }
}

.dep-tabla-card {
  border: 1px solid rgb(var(--border)); border-radius: var(--dep-radio);
  background: rgb(var(--surface)); overflow: hidden;
}
.dep-tabla { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dep-tabla thead th {
  padding: 10px 8px; text-align: center; font-size: 10.5px; letter-spacing: .05em;
  text-transform: uppercase; color: rgb(var(--muted));
  background: rgb(var(--primary) / .07); border-bottom: 1px solid rgb(var(--border));
}
.dep-tabla thead th:nth-child(2) { text-align: left; }
.dep-tabla td { padding: 9px 8px; text-align: center; border-bottom: 1px solid rgb(var(--border) / .7); }
.dep-tabla tbody tr:last-child td { border-bottom: 0; }
.dep-tabla .pos { width: 34px; font-weight: 800; color: rgb(var(--muted)); }
.dep-tabla .eq { display: flex; align-items: center; gap: 9px; text-align: left; font-weight: 600; }
.dep-tabla .eq img { width: 22px; height: 22px; object-fit: contain; }
.dep-tabla .pts { font-weight: 800; color: rgb(var(--accent)); }
.dep-tabla tr.es-mio { background: rgb(var(--accent) / .08); }
.dep-tabla tr.es-mio .pos { color: rgb(var(--accent)); }

.dep-lado { display: grid; gap: 14px; align-content: start; }
.dep-equipo {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-radius: var(--dep-radio); border: 1px solid rgb(var(--border));
  background: rgb(var(--primary) / .06);
}
.dep-equipo img { width: 54px; height: 54px; object-fit: contain; }
.dep-equipo strong { display: block; font-family: var(--font-heading); font-size: 16px; }
.dep-equipo span { display: block; font-size: 12.5px; color: rgb(var(--muted)); }

.dep-prox { border-radius: var(--dep-radio); border: 1px solid rgb(var(--border)); background: rgb(var(--surface)); padding: 14px 16px; }
.dep-prox h3 { margin: 0 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; font-family: var(--font-heading); }
.dep-prox-item { padding: 10px 0; border-top: 1px solid rgb(var(--border)); }
.dep-prox-fecha { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; color: rgb(var(--accent)); text-transform: uppercase; }
.dep-prox-eq { display: flex; align-items: center; gap: 7px; margin-top: 5px; font-size: 13px; }
.dep-prox-eq img { width: 20px; height: 20px; object-fit: contain; }
.dep-prox-eq b { font-weight: 600; }
.dep-prox-eq i { font-style: normal; color: rgb(var(--muted)); font-size: 11px; }

/* ── Ajustes generales del tema ───────────────────────────────────────── */
.dep-port + .section,
.dep-tabla-sec { padding-top: 34px; }
