/* Calendario público — estilos globales para componentes hijos (Blazor CSS isolation) */
.lv-cal-shell {
  --lv-cal-accent: #8b5cf6;
  --lv-cal-blue: #20a7ff;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 -4px;
}
.lv-cal-shell button {
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.lv-cal-shell a { text-decoration: none; color: inherit; }
/* ── Mobile-style Calendar ── */
.lv-cal-shell .cal-date-strip-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; background: #0a0a0a; border-bottom: 1px solid #1e1e1e; padding: 12px 16px; }
.lv-cal-shell .cal-date-strip-wrap::-webkit-scrollbar { display: none; }
.lv-cal-shell .cal-date-strip {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: max-content;
    width: max-content;
}
.lv-cal-shell .cal-date-btn {
    flex: 0 0 auto;
    flex-shrink: 0;
    background: #111; border: 1px solid #222; border-radius: 10px; padding: 8px 14px;
    cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px;
    transition: all 0.15s; min-width: 54px; color: #e2e8f0;
}
.lv-cal-shell .cal-date-btn:hover { border-color: #444; }
.lv-cal-shell .cal-date-btn.active { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px rgba(245,177,0,0.3); }
.lv-cal-shell .cal-dow { font-size: 0.6rem; font-weight: 800; color: var(--text-muted); letter-spacing: 1px; }
.lv-cal-shell .cal-date-btn.active .cal-dow { color: #000; }
.lv-cal-shell .cal-day { font-size: 1.3rem; font-weight: 900; color: #fff; line-height: 1; }
.lv-cal-shell .cal-date-btn.active .cal-day { color: #000; }
.lv-cal-shell .cal-month { font-size: 0.55rem; font-weight: 700; color: var(--text-muted); letter-spacing: 1px; }
.lv-cal-shell .cal-date-btn.active .cal-month { color: #000; }
.lv-cal-shell .cal-date-btn--empty { opacity: 0.55; }
.lv-cal-shell .cal-date-count {
    margin-top: 4px;
    font-size: 0.55rem;
    font-weight: 800;
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 999px;
    padding: 1px 6px;
    line-height: 1.2;
}
.lv-cal-shell .cal-date-btn.active .cal-date-count { color: #000; background: rgba(0,0,0,0.12); }

.lv-cal-shell .lv-cal-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 4px;
}
.lv-cal-shell .lv-cal-toggle-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.85);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    color: inherit;
    font: inherit;
}
.lv-cal-shell .lv-cal-toggle-card:hover { border-color: rgba(32, 167, 255, 0.45); }
.lv-cal-shell .lv-cal-toggle-card--active {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.5), 0 0 20px rgba(32, 167, 255, 0.15);
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.12), rgba(32, 167, 255, 0.06));
}
.lv-cal-shell .lv-cal-toggle-card--rounds.lv-cal-toggle-card--active {
    border-color: #20a7ff;
    box-shadow: 0 0 0 1px rgba(32, 167, 255, 0.55), 0 0 20px rgba(139, 92, 246, 0.12);
}
.lv-cal-shell .lv-cal-toggle-icon { font-size: 1.35rem; line-height: 1; flex-shrink: 0; }
.lv-cal-shell .lv-cal-toggle-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lv-cal-shell .lv-cal-toggle-title { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.02em; color: #f8fafc; }
.lv-cal-shell .lv-cal-toggle-sub { font-size: 0.68rem; line-height: 1.35; color: var(--text-muted); }

.lv-cal-shell .lv-cal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.lv-cal-shell .lv-cal-date-view,
.lv-cal-shell .lv-cal-main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.lv-cal-shell .lv-cal-sidebar { order: 2; min-width: 0; }
.lv-cal-shell .lv-cal-main { order: 1; min-width: 0; }
.lv-cal-shell .lv-cal-aside { display: none; }
.lv-cal-shell .lv-cal-view-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0 0 10px;
    padding: 0 4px;
    line-height: 1.4;
}
.lv-cal-shell .lv-cal-date-strip-wrap.lv-cal-date-strip-wrap {
    margin: 0 -12px 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #1e1e1e;
}
.lv-cal-shell .lv-cal-date-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.lv-cal-shell .lv-cal-date-strip-wrap--nav {
    flex: 1;
    min-width: 0;
    margin: 0;
    border-bottom: none;
    padding: 8px 0;
    background: transparent;
    scroll-padding-inline: 48px;
    -webkit-overflow-scrolling: touch;
}
.lv-cal-shell .lv-cal-round-strip-wrap {
    scroll-padding-inline: 48px;
}
.lv-cal-shell .lv-cal-date-arrow { flex-shrink: 0; }
.lv-cal-shell .lv-cal-day-head, .lv-cal-round-head { padding: 4px 4px 12px; }
.lv-cal-shell .lv-cal-day-title, .lv-cal-round-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: capitalize;
    color: #f8fafc;
}
.lv-cal-shell .lv-cal-round-title { text-transform: uppercase; font-size: 0.95rem; }
.lv-cal-shell .lv-cal-day-meta, .lv-cal-round-meta {
    margin: 6px 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.lv-cal-shell .lv-cal-tip {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
    margin: 4px 8px 0;
    line-height: 1.45;
    opacity: 0.9;
}

.lv-cal-shell .lv-cal-round-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}
.lv-cal-shell .lv-cal-round-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.9);
    color: #e2e8f0;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}
.lv-cal-shell .lv-cal-round-arrow:disabled { opacity: 0.35; cursor: not-allowed; }
.lv-cal-shell .lv-cal-round-strip-wrap {
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.lv-cal-shell .lv-cal-round-strip-wrap::-webkit-scrollbar { display: none; }
.lv-cal-shell .lv-cal-round-strip {
    display: flex;
    gap: 8px;
    min-width: max-content;
    padding: 2px 0;
}
.lv-cal-shell .lv-cal-round-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: #111;
    color: #e2e8f0;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}
.lv-cal-shell .lv-cal-round-chip--active {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(32, 167, 255, 0.12));
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.25);
}
.lv-cal-shell .lv-cal-round-chip-count {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
    padding: 1px 6px;
}
.lv-cal-shell .lv-cal-round-date-block { margin-bottom: 18px; }
.lv-cal-shell .lv-cal-round-date-title {
    margin: 0 0 8px;
    padding: 0 4px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #cbd5e1;
    text-transform: capitalize;
}
.lv-cal-shell .lv-cal-round-groups .cal-games-list { padding-top: 0; }

.lv-cal-shell .lv-cal-filters { position: relative; }
.lv-cal-shell .lv-cal-filters-mobile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.85);
    color: #e2e8f0;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}
.lv-cal-shell .lv-cal-filters-badge {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8b5cf6;
    box-shadow: 0 0 8px #8b5cf6;
}
.lv-cal-shell .lv-cal-filters-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.92);
}
.lv-cal-shell .lv-cal-filters-panel--hidden-mobile { display: none; }
.lv-cal-shell .lv-cal-filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.lv-cal-shell .lv-cal-filters-title { font-size: 0.8rem; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.06em; }
.lv-cal-shell .lv-cal-filters-close {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.lv-cal-shell .lv-cal-filter-field { display: flex; flex-direction: column; gap: 4px; }
.lv-cal-shell .lv-cal-filter-label { font-size: 0.68rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.lv-cal-shell .lv-cal-filter-select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: #0a0a0a;
    color: #f1f5f9;
    font-size: 0.8rem;
}
.lv-cal-shell .lv-cal-filter-clear {
    margin-top: 4px;
    padding: 8px 12px;
    border: none;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}
.lv-cal-shell .lv-cal-help-card {
    padding: 16px;
    border-radius: 14px;
    border: 1px dashed rgba(139, 92, 246, 0.45);
    background: rgba(139, 92, 246, 0.06);
}
.lv-cal-shell .lv-cal-help-title { margin: 0 0 10px; font-size: 0.85rem; font-weight: 800; color: #c4b5fd; }
.lv-cal-shell .lv-cal-help-list { margin: 0; padding-left: 18px; font-size: 0.75rem; color: var(--text-muted); line-height: 1.5; }

@media (min-width: 900px) {
    .lv-cal-shell .lv-cal-layout {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 16px;
    }
    .lv-cal-shell .lv-cal-sidebar { order: 0; }
    .lv-cal-shell .lv-cal-main { order: 0; }
    .lv-cal-shell .lv-cal-filters-mobile-btn { display: none; }
    .lv-cal-shell .lv-cal-filters-panel--hidden-mobile { display: flex; }
    .lv-cal-shell .lv-cal-toggle { padding: 0 0 4px; }
}

/* ── Venue group header ── */
.lv-cal-shell .cal-games-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 16px 12px 20px;
    box-sizing: border-box;
}

.lv-cal-shell .cal-venue-header {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 4px 6px;
    margin-top: 18px;
    border-bottom: 1px solid rgba(245,177,0,0.18);
    margin-bottom: 8px;
}
.lv-cal-shell .cal-venue-header:first-child { margin-top: 0; }
.lv-cal-shell .cal-venue-icon { font-size: 1.1rem; }
.lv-cal-shell .cal-venue-name { font-size: 0.8rem; font-weight: 800; color: var(--accent); text-transform: none; letter-spacing: 0.02em; flex: 1; }
.lv-cal-shell .cal-venue-count { font-size: 0.65rem; font-weight: 700; color: var(--text-muted); }

/* ── Match card (calendario + resultados): columna flex + body en grid 1fr | auto | 1fr ── */
.lv-cal-shell .cal-game-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    min-height: 176px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
    margin-bottom: 10px;
    animation: cal-card-in 0.3s ease both;
}
.lv-cal-shell .cal-game-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 8px 24px rgba(245,177,0,0.12); }
.lv-cal-shell .cal-card-upcoming { border-left: 3px solid var(--accent); }
.lv-cal-shell .cal-card-done { border-left: 3px solid #6d28d9; opacity: 0.85; }
.lv-cal-shell .cal-card-done:hover { opacity: 1; }
.lv-cal-shell .cal-card-live { border-left: 3px solid #ef4444; box-shadow: 0 0 16px rgba(239,68,68,0.18); animation: cal-card-in 0.3s ease both, live-pulse 2s ease-in-out infinite; }
.lv-cal-shell .cal-card-live .cal-card-time { color: #ef4444; }

/* Card entry animation */
@keyframes cal-card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes live-pulse { 0%,100% { box-shadow: 0 0 16px rgba(239,68,68,0.18); } 50% { box-shadow: 0 0 28px rgba(239,68,68,0.36); } }

/* ── Category theming for calendar cards ────────────────────── */
.lv-cal-shell .cal-game-card[data-cat="femenil"] { border-left-color: var(--cat-femenil-strip, rgba(244,114,182,.55)); background: linear-gradient(148deg, var(--cat-femenil-bg, rgba(244,114,182,.07)) 0%, var(--bg-card) 50%); }
.lv-cal-shell .cal-game-card[data-cat="femenil"]:hover { border-color: var(--cat-femenil-border, rgba(244,114,182,.32)); box-shadow: 0 8px 24px var(--cat-femenil-glow, rgba(244,114,182,.20)); }

.lv-cal-shell .cal-game-card[data-cat="varonil"] { border-left-color: var(--cat-varonil-strip, rgba(96,165,250,.55)); background: linear-gradient(148deg, var(--cat-varonil-bg, rgba(96,165,250,.07)) 0%, var(--bg-card) 50%); }
.lv-cal-shell .cal-game-card[data-cat="varonil"]:hover { border-color: var(--cat-varonil-border, rgba(96,165,250,.32)); box-shadow: 0 8px 24px var(--cat-varonil-glow, rgba(96,165,250,.20)); }

.lv-cal-shell .cal-game-card[data-cat="mixto"] { border-left-color: var(--cat-mixto-strip, rgba(167,139,250,.50)); background: linear-gradient(148deg, var(--cat-mixto-bg, rgba(167,139,250,.07)) 0%, var(--bg-card) 50%); }
.lv-cal-shell .cal-game-card[data-cat="juvenil"] { border-left-color: var(--cat-juvenil-strip, rgba(74,222,128,.45)); background: linear-gradient(148deg, var(--cat-juvenil-bg, rgba(74,222,128,.06)) 0%, var(--bg-card) 50%); }

/* ── Calendar category badge ─────────────────────────────────── */
.lv-cal-shell .cal-cat-badge {
    font-size: .52rem; font-weight: 900; letter-spacing: .65px;
    padding: 2px 7px; border-radius: 999px; flex-shrink: 0;
    white-space: nowrap;
}
.lv-cal-shell .cal-cat-badge--femenil { color: var(--cat-femenil-color, #f472b6); background: rgba(244,114,182,.12); border: 1px solid rgba(244,114,182,.28); }
.lv-cal-shell .cal-cat-badge--varonil { color: var(--cat-varonil-color, #60a5fa); background: rgba(96,165,250,.12);  border: 1px solid rgba(96,165,250,.28);  }
.lv-cal-shell .cal-cat-badge--mixto   { color: var(--cat-mixto-color,   #a78bfa); background: rgba(167,139,250,.12); border: 1px solid rgba(167,139,250,.28); }
.lv-cal-shell .cal-cat-badge--juvenil { color: var(--cat-juvenil-color, #4ade80); background: rgba(74,222,128,.10);  border: 1px solid rgba(74,222,128,.25);  }

/* Header: hora + badges (grid: evita que badges “empujen” la hora en móvil) */
.lv-cal-shell .cal-card-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 6px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.lv-cal-shell .cal-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    justify-self: end;
    max-width: 100%;
}
.lv-cal-shell .cal-card-time { font-size: 0.95rem; font-weight: 900; color: var(--accent); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; line-height: 1.2; min-width: 0; }
.lv-cal-shell .cal-card-done .cal-card-time { color: var(--text-muted); }

.lv-cal-shell .cal-badge { font-size: 0.6rem; font-weight: 800; letter-spacing: 1.5px; border-radius: 4px; padding: 2px 8px; }
.lv-cal-shell .cal-badge-live { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.4); animation: badge-blink 1.2s step-start infinite; }
.lv-cal-shell .cal-badge-final { background: rgba(124,58,237,0.15); color: #a78bfa; border: 1px solid rgba(124,58,237,0.3); }
.lv-cal-shell .cal-badge-pending { background: rgba(245,177,0,0.1); color: var(--accent); border: 1px solid rgba(245,177,0,0.25); }
.lv-cal-shell .cal-badge-jornada { background: rgba(99,102,241,0.15); color: #818cf8; border: 1px solid rgba(99,102,241,0.3); }
.lv-cal-shell .cal-badge-hoy { background: rgba(245,177,0,0.2); color: #fbbf24; border: 1px solid rgba(245,177,0,0.45); }
.lv-cal-shell .cal-badge-manana { background: rgba(167,139,250,0.18); color: #c4b5fd; border: 1px solid rgba(167,139,250,0.35); }
.lv-cal-shell .cal-badge-amistoso { background: rgba(34,197,94,0.12); color: #86efac; border: 1px solid rgba(34,197,94,0.3); }
.lv-cal-shell .cal-card-time--neutral { color: #cbd5e1 !important; }
.lv-cal-shell .cal-card-time--countdown { color: #22d3ee !important; text-shadow: 0 0 12px rgba(34,211,238,0.35); }
.lv-cal-shell .cal-card-time--live { color: #f87171 !important; text-shadow: 0 0 10px rgba(248,113,113,0.35); }

@keyframes badge-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Body: equipo local | marcador | visitante — solo grid aquí (columnas laterales min-width:0 anti-overflow) */
.lv-cal-shell .cal-card-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: stretch;
    column-gap: 10px;
    padding: 14px 16px;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 118px;
    box-sizing: border-box;
}
.lv-cal-shell .cal-card-body > .cal-team--home,
.lv-cal-shell .cal-card-body > .cal-team--away {
    min-width: 0;
}
.lv-cal-shell .cal-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    text-align: center;
    align-self: stretch;
}
.lv-cal-shell .cal-team--home { padding-inline-end: 2px; }
.lv-cal-shell .cal-team--away { padding-inline-start: 2px; }
.lv-cal-shell .cal-logo { width: 48px; height: 48px; object-fit: contain; transition: filter 0.2s; flex-shrink: 0; }
.lv-cal-shell .cal-card-body .team-logo-initials-sm {
    width: 48px;
    height: 48px;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.lv-cal-shell .cal-team-name-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
}
.lv-cal-shell .cal-team-name {
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
    color: #9ca3af;
    line-height: 1.25;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.lv-cal-shell .cal-team-winner .cal-team-name { color: var(--accent); font-weight: 900; }
.lv-cal-shell .cal-team-winner .cal-logo { filter: drop-shadow(0 0 8px rgba(245,177,0,0.5)); }
.lv-cal-shell .cal-team-loser { opacity: 0.72; }
.lv-cal-shell .cal-team-loser .cal-team-name { color: #6b7280; font-weight: 600; }
.lv-cal-shell .cal-team-loser .cal-logo,
.lv-cal-shell .cal-team-loser .team-logo-initials-sm { filter: grayscale(0.35); opacity: 0.88; }

.lv-cal-shell .cal-win-badge {
    flex-shrink: 0;
    font-size: 0.5rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: #0a0a0f;
    background: linear-gradient(180deg, #ffd54a 0%, #f5b100 100%);
    padding: 3px 5px 2px;
    border-radius: 4px;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* Columna central: marcador (flex interno; el body ya fija el eje con grid) */
.lv-cal-shell .cal-card-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    justify-self: center;
    min-width: 0;
    padding: 0 4px;
}
.lv-cal-shell .cal-scoreline {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
    white-space: nowrap;
}
.lv-cal-shell .cal-scoreline .cal-score--home { text-align: right; }
.lv-cal-shell .cal-scoreline .cal-score--away { text-align: left; }
.lv-cal-shell .cal-score {
    font-size: clamp(1.45rem, 5vw, 2.05rem);
    font-weight: 900;
    color: #f8fafc;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.lv-cal-shell .cal-score-leading {
    font-size: clamp(1.55rem, 5vw, 2.25rem);
    color: #c4b5fd;
    text-shadow: 0 0 14px rgba(124, 58, 237, 0.4);
}
.lv-cal-shell .cal-score-dim {
    font-size: clamp(1.2rem, 4vw, 1.75rem);
    font-weight: 800;
    color: #64748b;
}
.lv-cal-shell .cal-score-win { color: var(--accent); }
.lv-cal-shell .cal-score-sin-marcador { color: #64748b !important; font-size: clamp(1.1rem, 3.8vw, 1.55rem) !important; font-weight: 700 !important; }
.lv-cal-shell .cal-score-sep { font-size: clamp(1rem, 3.2vw, 1.35rem); font-weight: 800; color: #64748b; line-height: 1; }
.lv-cal-shell .cal-score-na { font-size: 1rem; font-weight: 800; color: var(--text-muted); }
.lv-cal-shell .cal-vs { font-size: 0.95rem; font-weight: 900; color: #94a3b8; letter-spacing: 0.12em; }

/* Footer: cancha + diferencia + estado vivo */
.lv-cal-shell .cal-card-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.22);
    padding: 8px 14px 10px;
}
.lv-cal-shell .cal-footer-venue {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lv-cal-shell .cal-card-footer-main {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 1.35rem;
    width: 100%;
    text-align: center;
}
.lv-cal-shell .cal-footer-diff {
    font-size: 0.75rem;
    font-weight: 900;
    color: #86efac;
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
}
.lv-cal-shell .cal-footer-diff--tie {
    color: #94a3b8;
    letter-spacing: 0.04em;
}
.lv-cal-shell .cal-footer-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    color: #fca5a5;
}
.lv-cal-shell .cal-footer-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.85);
    animation: cal-live-dot 1.2s ease-in-out infinite;
}
@keyframes cal-live-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.92); }
}

@media (min-width: 768px) {
    .lv-cal-shell .cal-game-card { min-height: 188px; }
    .lv-cal-shell .cal-card-body { padding: 16px 20px; column-gap: 14px; min-height: 124px; }
    .lv-cal-shell .cal-logo { width: 54px; height: 54px; }
    .lv-cal-shell .cal-card-body .team-logo-initials-sm { width: 54px; height: 54px; font-size: 0.88rem; }
    .lv-cal-shell .cal-team-name { font-size: 0.82rem; }
    .lv-cal-shell .cal-card-time { font-size: 1rem; }
    .lv-cal-shell .cal-games-list { padding-inline: 20px; }
}

@media (min-width: 601px) and (max-width: 767px) {
    .lv-cal-shell .cal-games-list { padding-inline: 16px; }
}

/* Jornada + descansos + placeholders */
.lv-cal-shell .cal-jornada-section {
    margin-top: 22px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.lv-cal-shell .cal-jornada-section:first-of-type { margin-top: 0; }
.lv-cal-shell .cal-jornada-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    margin-bottom: 12px; padding-bottom: 8px;
    border-bottom: 1px solid rgba(130, 71, 229, 0.45);
}
.lv-cal-shell .cal-jornada-title {
    margin: 0; font-size: 0.95rem; font-weight: 800; letter-spacing: 0.04em;
    text-transform: uppercase; color: #e9d5ff;
}
.lv-cal-shell .cal-jornada-meta { font-size: 0.72rem; font-weight: 700; color: #9ca3af; white-space: nowrap; }
.lv-cal-shell .cal-descansan-bajo-jornada {
    margin: 0 0 14px; padding: 10px 12px; border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25); background: rgba(15, 23, 42, 0.55);
}
.lv-cal-shell .cal-descansan-label {
    display: block; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em;
    text-transform: uppercase; color: #94a3b8; margin-bottom: 8px;
}
.lv-cal-shell .cal-descansos-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lv-cal-shell .cal-descanso-chip {
    font-size: 0.78rem; font-weight: 600; padding: 4px 12px; border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4); background: rgba(71, 85, 105, 0.22); color: #cbd5e1;
}
.lv-cal-shell .lv-placeholder-soft {
    border-radius: 14px; padding: 28px 20px; text-align: center;
    border: 1px solid rgba(148, 163, 184, 0.15); background: rgba(15, 23, 42, 0.5);
}
.lv-cal-shell .lv-empty-title { font-weight: 800; color: #ececec; margin: 0 0 10px; font-size: 1rem; }
.lv-cal-shell .placeholder-icon { font-size: 2rem; display: block; margin-bottom: 8px; }

.lv-cal-shell .team-logo-initials-sm {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #222, #111);
    color: var(--accent);
    font-weight: 900;
    border: 1px solid rgba(245,177,0,0.3);
    border-radius: 50%;
    text-transform: uppercase;
}

@keyframes badge-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

@media (max-width: 899px) {
  .lv-cal-shell .lv-cal-filters-backdrop {
    position: fixed; inset: 0; z-index: 1190;
    background: rgba(2, 6, 23, 0.72); backdrop-filter: blur(4px);
  }
  .lv-cal-shell .lv-cal-filters-panel:not(.lv-cal-filters-panel--hidden-mobile) {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
    border-radius: 18px 18px 0 0; max-height: min(78vh, 520px);
    overflow-y: auto; box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.55);
  }
  .lv-cal-shell .lv-cal-layout { display: flex; flex-direction: column; gap: 12px; }
  .lv-cal-shell .lv-cal-sidebar { order: 1; }
  .lv-cal-shell .lv-cal-main { order: 0; }
  .lv-cal-shell .lv-cal-aside { display: none !important; }
  .lv-cal-shell .lv-cal-toggle-sub { display: none; }
  .lv-cal-shell .cal-games-list { padding: 12px 8px 20px; }
}

@media (max-width: 600px) {
  .lv-cal-shell .cal-game-card { min-height: 168px; }
  .lv-cal-shell .cal-card-body { padding: 12px 10px; column-gap: 8px; min-height: 112px; }
  .lv-cal-shell .cal-logo { width: 40px; height: 40px; }
  .lv-cal-shell .cal-card-body .team-logo-initials-sm { width: 40px; height: 40px; font-size: 0.72rem; }
  .lv-cal-shell .cal-team-name { font-size: 0.72rem; }
  .lv-cal-shell .cal-card-time { font-size: 0.85rem; }
  .lv-cal-shell .cal-card-header { padding: 8px 12px; grid-template-columns: 1fr; row-gap: 8px; }
  .lv-cal-shell .cal-badges { justify-self: start; justify-content: flex-start; }
}

@media (max-width: 520px) {
  .lv-cal-shell .cal-card-body {
    grid-template-columns: 1fr;
    grid-template-areas:
      "score"
      "home"
      "away";
    row-gap: 12px;
    column-gap: 0;
    min-height: unset;
    padding: 14px 12px;
  }
  .lv-cal-shell .cal-card-score { grid-area: score; padding-bottom: 4px; }
  .lv-cal-shell .cal-team--home { grid-area: home; }
  .lv-cal-shell .cal-team--away { grid-area: away; }
  .lv-cal-shell .cal-team-name { font-size: 0.8rem; }
}

@media (max-width: 400px) {
  .lv-cal-shell .cal-game-card { min-height: 164px; }
  .lv-cal-shell .cal-card-body { padding: 12px 10px; }
  .lv-cal-shell .cal-logo { width: 36px; height: 36px; }
}