/* torneo_todos.css
   Ajustes mínimos, estética consistente con index.css / styles.css
   + Cards v2 con 4 combinaciones de colores del logo (aleatorio estable)
   + Panel derecho con imagen + overlay PRO (sin duplicados)
*/

/* =========================
   TOP / YEAR CARD
========================= */

.mm-todos-top {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.mm-year-card {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  min-width: min(520px, 100%);
}

.mm-year-card-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.25rem;
}

.mm-year-select {
  width: 140px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92);
}

.mm-year-count {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}

/* Opcional: botón (si lo agregás en el HTML del year-card) */
.mm-year-btn {
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-weight: 700;
}

/* =========================
   BARRA MESES STICKY
========================= */

.mm-months-wrap {
  position: sticky;
  top: 68px; /* si tu header fijo mide distinto, ajustá este valor */
  z-index: 60;
  background: rgba(10, 15, 25, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0.4rem 0;
}

.mm-months-bar {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
  scrollbar-width: thin;
}

.mm-months-bar::-webkit-scrollbar { height: 8px; }
.mm-months-bar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
}

.mm-month-btn {
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.85);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mm-month-btn:hover { background: rgba(255,255,255,0.08); }

.mm-month-btn.active {
  background: rgba(255,255,255,0.92);
  color: rgba(10,15,25,0.95);
  border-color: rgba(255,255,255,0.92);
}

/* =========================
   SECCIONES POR MES
========================= */

.mm-month-section {
  margin-top: 1rem;
  padding-top: 0.25rem;
}

.mm-month-title {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.70);
  margin: 1.25rem 0 0.75rem;
}

/* =========================
   GRID TORNEOS
========================= */

.mm-torneos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

@media (min-width: 992px) {
  .mm-torneos-grid { grid-template-columns: 1fr 1fr; }
}

.mm-empty {
  padding: 0.75rem 0;
  color: rgba(255,255,255,0.55);
  font-size: 0.92rem;
}

/* =========================
   CARD V2 + THEMES (logo)
========================= */

/* Variables por defecto */
.mm-torneo-card-v2 {
  --mm-a: 255, 77, 79;      /* rojo */
  --mm-b: 56, 132, 255;     /* azul */
  --mm-ink: rgba(255,255,255,0.92);

  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
  display: flex;
  min-height: 190px;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
  position: relative;
}

.mm-torneo-card-v2:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
}

/* Banda superior (estilo poster) */
.mm-torneo-card-v2::before{
  content:"";
  position:absolute;
  left:0; top:0;
  height: 4px;
  width:100%;
  background: linear-gradient(90deg,
    rgba(var(--mm-a), 1),
    rgba(var(--mm-b), 1)
  );
  opacity: 0.95;
}

/* Themes (si los seteás desde JS con mm-theme-X) */
.mm-theme-1 { --mm-a: 255, 77, 79; --mm-b: 56, 132, 255; }   /* rojo + azul */
.mm-theme-2 { --mm-a: 255, 159, 67; --mm-b: 56, 132, 255; }  /* naranja + azul */
.mm-theme-3 { --mm-a: 255, 77, 79; --mm-b: 255, 159, 67; }   /* rojo + naranja */
.mm-theme-4 { --mm-a: 174, 223, 53; --mm-b: 56, 132, 255; }  /* lima + azul */

.mm-torneo-v2-left {
  flex: 1;
  padding: 14px 14px 12px 14px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(110% 140% at 10% 0%,
      rgba(var(--mm-a), 0.18),
      transparent 55%),
    radial-gradient(110% 140% at 60% 30%,
      rgba(var(--mm-b), 0.14),
      transparent 60%);
}

.mm-torneo-v2-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.mm-torneo-v2-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: .95;
}

.mm-brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(var(--mm-a), 0.95);
  box-shadow: 0 0 0 3px rgba(var(--mm-a), 0.18);
}

.mm-brand-text {
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  font-weight: 900;
}

.mm-torneo-v2-badges {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mm-badge-v2 {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.80);
}

.mm-badge-accent {
  border-color: rgba(var(--mm-a), 0.55);
  background: rgba(var(--mm-a), 0.12);
}

.mm-torneo-v2-title {
  font-weight: 950;
  font-size: 1.05rem;
  line-height: 1.2;
  color: rgba(255,255,255,0.92);
  margin-bottom: 10px;
}

.mm-torneo-v2-sub {
  font-size: .88rem;
  opacity: .95;
}

.mm-torneo-v2-sub > div { margin-bottom: 3px; }
.mm-torneo-v2-sub .mm-k { opacity: .62; display: inline-block; min-width: 62px; }
.mm-torneo-v2-sub .mm-v { opacity: .98; }

.mm-torneo-v2-actions {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mm-chip-v2 {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.62rem;
  font-size: 0.74rem;
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.82);
  background: rgba(0,0,0,0.18);
}

.mm-chip-v2-strong {
  border-color: rgba(var(--mm-b), 0.55);
  background: rgba(var(--mm-b), 0.12);
}

/* =========================
   CATEGORÍAS (chips)
========================= */

.mm-cats{
  display:flex;
  flex-wrap:wrap;
  gap:.35rem;
  margin-top:.15rem;
}

.mm-cat-chip{
  display:inline-flex;
  align-items:center;
  font-size:.68rem;        /* más chico */
  padding:.16rem .50rem;   /* más compacto */
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.85);
  line-height: 1.1;
}

/* =========================
   PANEL DERECHO: IMAGEN + OVERLAY (PRO)
   (versión final, sin duplicados)
========================= */

.mm-torneo-v2-right{
  width: 180px;
  border-left: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: stretch;

  position: relative;
  overflow: hidden;
  background: rgba(0,0,0,0.22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.mm-torneo-v2-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  filter: saturate(1.18) contrast(1.06) brightness(0.92);
  transform: scale(1.04);
  transition: transform .18s ease, filter .18s ease;
}

/* Overlay marca (usa mm-a / mm-b) */
.mm-torneo-v2-right::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  opacity: .55;
  background: linear-gradient(
    135deg,
    rgba(var(--mm-a), .80),
    rgba(var(--mm-b), .70)
  );
  mix-blend-mode: overlay;
}

/* Vignette + sombra para contraste */
.mm-torneo-v2-right::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    radial-gradient(120% 80% at 80% 20%, rgba(0,0,0,.10), rgba(0,0,0,.55)),
    linear-gradient(to top, rgba(0,0,0,.60), rgba(0,0,0,.08));
  opacity: .95;
}

/* Hover: un toque más vivo */
.mm-torneo-card-v2:hover .mm-torneo-v2-img{
  transform: scale(1.08);
  filter: saturate(1.28) contrast(1.08) brightness(0.95);
}

/* Poster fallback (si usás el bloque mm-poster-v2 en vez de img) */
.mm-poster-v2{ width: 100%; display: flex; flex-direction: column; position: relative; z-index: 1; }
.mm-poster-v2-top{
  height: 44px;
  background: rgba(255,255,255,0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}
.mm-poster-v2-logo{
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(var(--mm-a), 0.20);
  border: 1px solid rgba(255,255,255,0.18);
}
.mm-poster-v2-icons{ display:flex; gap:6px; opacity:.85; }
.mm-poster-v2-icons .mm-i{
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: rgba(255,255,255,0.18);
}
.mm-poster-v2-mid{
  flex: 1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(var(--mm-b), 0.10), rgba(0,0,0,0.0));
}
.mm-poster-v2-name{
  font-weight: 950;
  letter-spacing: .08em;
  color: rgba(255,255,255,0.90);
  text-transform: uppercase;
  font-size: 0.92rem;
}
.mm-poster-v2-year{
  font-size: .82rem;
  opacity: .75;
  letter-spacing: .12em;
}
.mm-poster-v2-bottom{
  height: 34px;
  background: rgba(255,255,255,0.06);
}

/* Mobile */
@media (max-width: 576px){
  .mm-torneo-v2-right { display: none; }
}

/* Pastilla estado (como en index: color por estado) */
.mm-status-chip{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:.28rem .62rem;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  border:1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.88);
  line-height: 1;
}

/* Ajustá estos colores si querés clavar los de index */
.mm-status-finalizado{
  border-color: rgba(255, 77, 79, 0.55);
  background: rgba(255, 77, 79, 0.14);
}

.mm-status-enjuego{
  border-color: rgba(174, 223, 53, 0.55);
  background: rgba(174, 223, 53, 0.14);
}

.mm-status-pendiente{
  border-color: rgba(56, 132, 255, 0.55);
  background: rgba(56, 132, 255, 0.14);
}