:root {
    --wc-bg: #0c1424;
    --wc-bg-soft: #111d33;
    --wc-primary: #2d7dff;
    --wc-accent: #1bbf7a;
    --wc-text: #eef3ff;
}

body {
    font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    color: #142033;
    background-color: #f5f7fb;
    scroll-behavior: smooth;
}

.wc-navbar {
    background: linear-gradient(90deg, rgba(12, 20, 36, 0.95), rgba(17, 29, 51, 0.95));
    backdrop-filter: blur(8px);
}

.fifacal-brand {
    display: inline-flex;
    align-items: center;
    padding: 0;
    text-decoration: none;
}

.fifacal-brand__logo {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 0.55rem;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
    transition: transform 0.2s ease, filter 0.2s ease;
}

.fifacal-brand:hover .fifacal-brand__logo,
.fifacal-brand:focus-visible .fifacal-brand__logo {
    transform: scale(1.04);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}

.hero-section {
    min-height: 88vh;
    padding-top: 96px;
    color: var(--wc-text);
    background:
        linear-gradient(rgba(8, 14, 27, 0.55), rgba(8, 14, 27, 0.8)),
        url("/assets/img/hero-football-bg.jpg") center/cover no-repeat;
}

.hero-badge {
    display: inline-block;
    background: rgba(45, 125, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #d9e6ff;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
}

.hero-section .hero-lead {
    color: #f8fafc;
    font-weight: 500;
    letter-spacing: 0.015em;
    line-height: 1.6;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0.95rem 1.15rem;
    border-radius: 0.75rem;
    background: rgba(6, 14, 28, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}

.hero-live-strip {
    margin-top: 1.5rem;
    text-align: left;
}

.hero-live-strip__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
    padding: 0 0.25rem;
}

.hero-live-strip__title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(226, 237, 255, 0.95);
}

.hero-live-strip__hint {
    font-size: 0.68rem;
    letter-spacing: 0.03em;
    color: rgba(205, 222, 250, 0.8);
}

.hero-live-strip__track {
    display: flex;
    gap: 0.7rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.2rem 0.25rem 0.55rem;
    scrollbar-width: thin;
}

.hero-live-strip__track::-webkit-scrollbar {
    height: 8px;
}

.hero-live-strip__track::-webkit-scrollbar-thumb {
    background: rgba(145, 172, 222, 0.42);
    border-radius: 4px;
}

.fifacal-legal-notice {
    background: linear-gradient(180deg, #eef2f8 0%, #f5f7fb 100%);
}

.fifacal-legal-notice__panel {
    max-width: 52rem;
    margin-inline: auto;
    padding: 0.72rem 0.9rem;
    border-color: rgba(255, 193, 7, 0.45);
    background-color: rgba(255, 248, 225, 0.92);
    box-shadow: 0 4px 16px rgba(20, 32, 51, 0.06);
}

.fifacal-legal-notice__icon {
    flex-shrink: 0;
    margin-top: 0.12rem;
    color: #b58100;
    font-size: 0.95rem;
}

.fifacal-legal-notice__title {
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.28rem;
    color: #664d03;
}

.fifacal-legal-notice__text {
    font-size: 0.76rem;
    line-height: 1.5;
    color: #5c4a00;
}

.hero-match-pill {
    --hero-card-w: 14rem;
    --hero-card-h: 7.85rem;

    flex: 0 0 var(--hero-card-w);
    width: var(--hero-card-w);
    height: var(--hero-card-h);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    text-align: center;
    border-radius: 0.35rem;
    padding: 0.55rem 0.65rem 0.5rem;
    background: linear-gradient(180deg, rgba(12, 26, 58, 0.95), rgba(8, 32, 72, 0.88));
    border: 1px solid rgba(161, 191, 245, 0.35);
    box-shadow: 0 8px 22px rgba(5, 12, 28, 0.4);
    color: #edf3ff;
    white-space: normal;
}

.hero-match-pill--live {
    background: linear-gradient(180deg, rgba(8, 52, 40, 0.96), rgba(6, 68, 52, 0.9));
    border-color: rgba(98, 232, 174, 0.48);
}

.hero-match-pill--finished {
    background: linear-gradient(180deg, rgba(28, 36, 52, 0.96), rgba(18, 24, 38, 0.92));
    border-color: rgba(180, 190, 210, 0.35);
}

.hero-match-pill__live-min {
    display: inline-flex;
    align-items: baseline;
    gap: 0.28rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #9ef5c8;
}

.hero-match-pill__injury {
    font-size: 0.92em;
    font-weight: 900;
    color: #ffd54f;
    text-shadow: 0 0 10px rgba(255, 213, 79, 0.35);
}

.hero-match-pill__top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    align-items: center;
    margin-bottom: 0.15rem;
}

.hero-match-pill__state {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 0.2rem 0.25rem;
    border-radius: 0.2rem;
    text-align: center;
    line-height: 1.15;
}

.hero-match-pill__stage {
    font-size: 0.58rem;
    opacity: 0.92;
    text-align: center;
    padding: 0.2rem 0.25rem;
    border-radius: 0.2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.12);
    line-height: 1.15;
}

.hero-match-pill .hero-match-pill__teams {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.2rem 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 0 !important;
    padding: 0.1rem 0;
}

.hero-match-pill__team {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.hero-match-pill__team--home,
.hero-match-pill__team--away {
    align-items: center;
    text-align: center;
}

.hero-match-pill__flag {
    font-size: 1.15rem;
    line-height: 1;
    flex-shrink: 0;
}

.hero-match-pill__name {
    display: block;
    max-width: 100%;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-match-pill__center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 0.05rem;
}

.hero-match-pill__versus {
    font-weight: 600;
    opacity: 0.78;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: lowercase;
}

.hero-match-pill__scoreline {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #fff;
    padding: 0.08rem 0.45rem;
    border-radius: 0.25rem;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-match-pill__scoreline--pulse {
    transform: scale(1.06);
    box-shadow: 0 0 0 2px rgba(158, 245, 200, 0.45);
}

.hero-match-pill__score-sep {
    opacity: 0.65;
    font-weight: 700;
}

.hero-match-pill__meta {
    font-size: 0.68rem;
    color: rgba(228, 239, 255, 0.9);
    padding-top: 0.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-match-pill__meta-sep {
    opacity: 0.55;
    margin: 0 0.1rem;
}

.hero-live-featured {
    text-align: center;
}

.hero-live-featured__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9ef5c8;
    margin-bottom: 1rem !important;
}

.hero-live-featured__pulse {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.65);
    animation: hero-live-pulse 1.6s ease-out infinite;
}

@keyframes hero-live-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.65);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

.hero-live-featured__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1.15rem;
}

.hero-match-pill--featured {
    --hero-card-w: min(24rem, 100%);
    --hero-card-h: auto;
    flex: 1 1 18rem;
    max-width: 26rem;
    min-height: 11.5rem;
    padding: 1.15rem 1.35rem 1rem;
    border-radius: 0.65rem;
    border-width: 2px;
    box-shadow: 0 14px 40px rgba(5, 12, 28, 0.55);
}

.hero-match-pill--featured .hero-match-pill__top {
    margin-bottom: 0.45rem;
}

.hero-match-pill--featured .hero-match-pill__state,
.hero-match-pill--featured .hero-match-pill__stage {
    font-size: 0.72rem;
    padding: 0.28rem 0.4rem;
}

.hero-match-pill--featured .hero-match-pill__flag {
    font-size: 2.35rem;
    line-height: 1;
}

.hero-match-pill--featured .hero-match-pill__name {
    font-size: 1.02rem;
    font-weight: 800;
}

.hero-match-pill--featured .hero-match-pill__teams {
    font-size: 0.95rem;
    gap: 0.35rem 0.65rem;
    padding: 0.35rem 0;
}

.hero-match-pill--featured .hero-match-pill__scoreline {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-match-pill--featured .hero-match-pill__versus {
    font-size: 1.35rem;
    font-weight: 800;
    opacity: 0.9;
}

.hero-match-pill--featured .hero-match-pill__meta {
    font-size: 0.92rem;
    padding-top: 0.45rem;
    margin-top: 0.35rem;
}

.hero-match-pill--featured .hero-match-pill__live-min {
    font-size: 1.05em;
}

.hero-live-strip--secondary {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-live-strip--secondary .hero-live-strip__title {
    opacity: 0.85;
}

.section-title {
    font-weight: 700;
    letter-spacing: 0.1px;
}

.timeline-day-block .timeline-day-title {
    font-weight: 700;
    letter-spacing: 0.02em;
}

#timeline .timeline-card--duel .badge.rounded-pill {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.match-card,
.timeline-card,
.stats-box,
.countdown-card,
.calendar-wrap {
    border: 0;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(14, 29, 62, 0.08);
}

.timeline-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 310px;
    border-radius: 1.25rem;
}

.timeline-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(14, 29, 62, 0.14);
}

.timeline-card .card-body {
    padding: 1.25rem 1.25rem 1.1rem;
}

.timeline-card--duel {
    position: relative;
    color: #f8fbff;
    overflow: hidden;
    background: #ffffff;
}

/* Fondo agenda: estadio / balón (Mundial); imagen local en /assets/img/agenda-worldcup-bg.jpg */
.timeline-card--duel::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/assets/img/agenda-worldcup-bg.jpg");
    background-size: cover;
    background-position: center 40%;
    opacity: 0.48;
    filter: saturate(1.05) contrast(1.08);
}

.timeline-card--duel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        155deg,
        rgba(5, 18, 48, 0.78) 0%,
        rgba(10, 28, 72, 0.52) 38%,
        rgba(180, 130, 20, 0.14) 72%,
        rgba(6, 10, 22, 0.68) 100%
    );
}

.timeline-card--duel .card-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

/* Evita que el layout Duel ocupe todo el alto y empuje stats fuera del clip (overflow hidden). */
.timeline-card--duel .timeline-match-layout {
    flex: 0 0 auto;
    height: auto;
    width: 100%;
}

.timeline-card--duel.timeline-card--has-post-stats {
    overflow: visible;
}

.timeline-card--duel .timeline-post-stats {
    flex: 0 0 auto;
    position: relative;
    z-index: 3;
}

.timeline-card--duel .text-muted,
.timeline-card--duel .small {
    color: rgba(248, 251, 255, 0.92) !important;
}

.team-flag {
    font-size: 1rem;
    vertical-align: middle;
}

.timeline-match-layout {
    display: grid;
    grid-template-columns: 1fr 1.05fr 1fr;
    gap: 0.9rem;
    align-items: center;
    min-height: 11.5rem;
}

.team-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 210px;
    border-radius: 0.9rem;
    padding: 0.9rem 0.6rem;
    background: rgba(255, 255, 255, 0.9);
}

.team-panel--home {
    border: 1px solid rgba(14, 29, 62, 0.1);
}

.team-panel--away {
    border: 1px solid rgba(14, 29, 62, 0.1);
}

.timeline-card--duel .team-panel {
    background: rgba(8, 14, 26, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.team-flag--large {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.55rem;
}

.team-name {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.25;
}

.versus-panel {
    --versus-font-meta: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
    --versus-font-vs: "Bebas Neue", Impact, "Arial Narrow", sans-serif;

    min-height: 210px;
    border-radius: 0.9rem;
    background: rgba(13, 22, 40, 0.88);
    color: #f1f6ff;
    padding: 0.85rem 0.65rem;
    text-align: center;
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    align-items: center;
    gap: 0;
}

.versus-panel .small {
    color: rgba(241, 246, 255, 0.9) !important;
}

.versus-panel__when {
    align-self: end;
    justify-self: center;
    width: 100%;
    max-width: 100%;
    line-height: 1.45;
    margin: 0;
    padding: 0 0.35rem 0.45rem;
    font-family: var(--versus-font-meta);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    font-feature-settings: "tnum" 1;
}

.versus-panel__venue {
    align-self: start;
    justify-self: center;
    width: 100%;
    max-width: 100%;
    line-height: 1.45;
    margin: 0;
    padding: 0.45rem 0.35rem 0;
    font-family: var(--versus-font-meta);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    opacity: 0.94;
}

.versus-panel__line {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    max-width: 11.5rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.versus-panel__line > .js-local-match-time,
.versus-panel__line > span:last-child {
    flex: 0 1 auto;
    min-width: 0;
    text-align: center;
    text-wrap: balance;
}

.versus-panel__icon {
    flex-shrink: 0;
    font-size: 0.82rem;
    opacity: 0.75;
    line-height: 1;
}

.vs-mark {
    font-family: var(--versus-font-vs);
    font-weight: 400;
    letter-spacing: 0.28em;
    font-size: clamp(1.85rem, 4.5vw, 2.35rem);
    line-height: 1;
    margin: 0;
    padding: 0.15rem 0 0.15rem 0.28em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
    color: #fff;
}

.vs-scoreline {
    display: inline-block;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-weight: 800;
    letter-spacing: 0.06em;
    font-size: clamp(1.35rem, 3.2vw, 1.75rem);
    padding: 0.1rem 0;
}

.vs-scoreline__sep {
    margin: 0 0.2em;
    opacity: 0.85;
    font-weight: 700;
}

.timeline-post-stats {
    margin-top: 0.85rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline-post-stats__toggle {
    color: #f8fbff !important;
    background: linear-gradient(180deg, rgba(255, 200, 80, 0.32), rgba(60, 42, 12, 0.55)) !important;
    border: 1px solid rgba(255, 214, 120, 0.6) !important;
    border-radius: 0.45rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.55rem 0.75rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.timeline-post-stats__toggle:hover {
    color: #fff !important;
    background: linear-gradient(180deg, rgba(255, 220, 110, 0.42), rgba(80, 55, 16, 0.62)) !important;
    border-color: rgba(255, 235, 170, 0.85) !important;
}

.timeline-post-stats__toggle:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(255, 210, 120, 0.35), 0 4px 14px rgba(0, 0, 0, 0.25);
}

.timeline-post-stats__toggle .timeline-post-stats__toggle-icon {
    font-size: 1.15rem;
    opacity: 0.95;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.timeline-post-stats__toggle[aria-expanded="true"] .timeline-post-stats__chev {
    transform: rotate(180deg);
}

.timeline-post-stats__chev {
    transition: transform 0.2s ease;
    opacity: 0.85;
}

.timeline-post-stats__panel {
    margin-top: 0.35rem;
}

.timeline-post-stats__inner {
    padding: 0.65rem 0.5rem 0.35rem;
    border-radius: 0.35rem;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(248, 251, 255, 0.95);
}

.timeline-post-stats__hint {
    font-size: 0.72rem;
    line-height: 1.35;
    color: rgba(230, 240, 255, 0.75) !important;
}

.timeline-post-stats__code {
    font-size: 0.68em;
    padding: 0.05em 0.25em;
    border-radius: 0.2rem;
    background: rgba(0, 0, 0, 0.35);
    color: #cfe4ff;
}

.timeline-post-stats__section {
    margin-bottom: 0.75rem;
}

.timeline-post-stats__section:last-child {
    margin-bottom: 0;
}

.timeline-post-stats__heading {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 0.35rem;
    opacity: 0.92;
    color: rgba(248, 251, 255, 0.88);
}

.timeline-post-stats__heading .bi {
    font-size: 0.95rem;
    opacity: 0.9;
}

.timeline-post-stats__heading--danger .bi {
    color: #ff8a8a;
}

.timeline-post-stats__heading--warning .bi {
    color: #ffe08a;
}

.timeline-post-stats__meta-list .bi {
    margin-right: 0.35rem;
    opacity: 0.85;
}

.timeline-post-stats__assist .bi {
    margin-right: 0.2rem;
    opacity: 0.75;
}

.timeline-post-stats__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-post-stats__list li {
    padding: 0.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    line-height: 1.35;
}

.timeline-post-stats__list li:last-child {
    border-bottom: 0;
}

.timeline-post-stats__min {
    display: inline-block;
    min-width: 2.1rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    opacity: 0.9;
    margin-right: 0.35rem;
}

.timeline-post-stats__who {
    font-weight: 600;
}

.timeline-post-stats__team-tag {
    font-weight: 500;
    opacity: 0.82;
    margin-left: 0.15rem;
}

.timeline-post-stats__assist {
    font-size: 0.92em;
}

.timeline-post-stats__meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.45;
}

.timeline-post-stats__meta-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.15rem;
}

.timeline-post-stats__meta-list li + li {
    margin-top: 0.2rem;
}

.timeline-post-stats__toggle-sub {
    font-size: 0.64rem;
    letter-spacing: 0.02em;
    opacity: 0.88;
}

.timeline-post-stats__timecell {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.timeline-post-stats__timecell .bi {
    font-size: 0.65rem;
    flex-shrink: 0;
}

.timeline-post-stats__table {
    display: grid;
    gap: 0;
    font-size: 0.78rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.3rem;
    overflow: hidden;
}

.timeline-post-stats__table-head,
.timeline-post-stats__table-row {
    display: grid;
    grid-template-columns: minmax(5.5rem, 1.1fr) 1fr 1fr;
    gap: 0.35rem;
    padding: 0.35rem 0.45rem;
    align-items: baseline;
}

.timeline-post-stats__table-head {
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.62rem;
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.timeline-post-stats__table-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

.timeline-post-stats__table-label {
    font-weight: 600;
    opacity: 0.88;
}

.filter-panel {
    background: #fff;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(10, 23, 49, 0.07);
}

.knockout-board {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 1.3rem;
    padding: 1.6rem 1.35rem 1.45rem;
    box-shadow: 0 16px 38px rgba(8, 16, 32, 0.35);
    background-image: url("/assets/img/knockout-pitch-aerial.jpg");
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
}

.knockout-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(7, minmax(110px, 1fr));
    gap: 0.75rem;
    align-items: start;
}

.round-col {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.round-title {
    margin: 0 0 0.45rem;
    text-align: center;
    color: #e7efff;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    min-height: 24px;
}

.round-col--8 .round-title { transform: translateY(0); }
.round-col--4 .round-title { transform: translateY(96px); }
.round-col--semi .round-title { transform: translateY(224px); }
.round-final .round-title { transform: translateY(236px); }

.knockout-pill {
    background: linear-gradient(180deg, #2b3552, #202a45);
    color: #f2f7ff;
    border-radius: 0.55rem;
    padding: 0.58rem 0.52rem;
    min-height: 46px;
    border: 1px solid rgba(153, 188, 255, 0.28);
    font-size: 0.72rem;
    line-height: 1.2;
    text-align: center;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 14px rgba(9, 16, 31, 0.28);
}

.knockout-pill.prediction-pill {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 0.32rem 0.38rem;
    gap: 0;
}

.prediction-pair {
    display: flex;
    align-items: stretch;
    gap: 0.28rem;
    width: 100%;
}

.prediction-slot {
    flex: 1 1 0;
    min-width: 0;
    min-height: 34px;
    border-radius: 0.38rem;
    border: 1px dashed rgba(230, 240, 255, 0.45);
    background: rgba(8, 14, 26, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.25rem;
    cursor: default;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.prediction-slot--filled {
    border-style: solid;
    border-color: rgba(153, 188, 255, 0.55);
    background: rgba(12, 22, 40, 0.55);
    cursor: grab;
}

.prediction-slot--dragging {
    opacity: 0.55;
}

.prediction-slot--dragover {
    border-color: rgba(45, 125, 255, 0.95);
    box-shadow: 0 0 0 2px rgba(45, 125, 255, 0.35);
    background: rgba(20, 40, 72, 0.65);
}

.prediction-slot-label {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    word-break: break-word;
    pointer-events: none;
}

.prediction-vs {
    flex: 0 0 auto;
    align-self: center;
    font-size: 0.58rem;
    font-weight: 800;
    opacity: 0.75;
    letter-spacing: 0.02em;
}

.prediction-bank {
    background: #fff;
}

.prediction-bank-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 52px;
    padding: 0.65rem 0.75rem;
    border-radius: 0.75rem;
    background: linear-gradient(180deg, #f0f4fc, #e8eef8);
    border: 1px dashed rgba(45, 125, 255, 0.25);
}

.prediction-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.42rem 0.5rem;
    min-width: 2.5rem;
    border-radius: 0.55rem;
    background: linear-gradient(180deg, #fff, #f3f6fd);
    border: 1px solid rgba(19, 35, 63, 0.12);
    font-size: 0.8rem;
    font-weight: 600;
    color: #142033;
    cursor: grab;
    box-shadow: 0 2px 8px rgba(14, 29, 62, 0.08);
    user-select: none;
    touch-action: none;
}

.prediction-chip:active {
    cursor: grabbing;
}

.prediction-chip--dragging {
    opacity: 0.75;
}

.prediction-chip-flag {
    font-size: 1.45rem;
    line-height: 1;
}

.knockout-pill--final.prediction-pill {
    max-width: 240px;
}

.knockout-pill--final.prediction-pill .prediction-slot {
    min-height: 40px;
}

.knockout-pill--final.prediction-pill .prediction-slot-label {
    font-size: 1.2rem;
}

.round-body {
    position: relative;
    height: 500px;
}

.round-col .knockout-pill {
    position: absolute;
    left: 0;
    right: 0;
}

.round-col--8 .knockout-pill:nth-child(1) { top: 32px; }
.round-col--8 .knockout-pill:nth-child(2) { top: 160px; }
.round-col--8 .knockout-pill:nth-child(3) { top: 288px; }
.round-col--8 .knockout-pill:nth-child(4) { top: 416px; }

.round-col--4 .knockout-pill:nth-child(1) { top: 96px; }
.round-col--4 .knockout-pill:nth-child(2) { top: 352px; }

.round-col--semi .knockout-pill:nth-child(1) { top: 224px; }

.round-final {
    align-items: center;
}

.final-chip {
    background: rgba(9, 17, 30, 0.92);
    color: #dbe9ff;
    border-radius: 999px;
    padding: 0.33rem 0.86rem;
    font-size: 0.67rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    border: 1px solid rgba(140, 178, 255, 0.35);
}

.round-final .round-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.knockout-pill--final {
    min-height: 84px;
    width: 100%;
    max-width: 220px;
    font-size: 0.82rem;
    position: static !important;
}

.wc-footer {
    background: var(--wc-bg);
    color: #b7c4de;
}

.wc-footer a {
    color: #dbe7ff;
    text-decoration: none;
}

.wc-footer a:hover {
    color: #ffffff;
}

.back-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: none;
    z-index: 1080;
}

.app-loader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: linear-gradient(135deg, #0a1222, #13284e);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

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

.loader-ball {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff, #9fc2ff 55%, #2d7dff);
    animation: pulse 1.4s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
}

@media (max-width: 991.98px) {
    .hero-live-strip__track {
        gap: 0.6rem;
    }

    .hero-match-pill {
        --hero-card-w: 13rem;
        --hero-card-h: 7rem;
    }

    .calendar-shell-toolbar {
        row-gap: 0.4rem;
    }

    .fc-theme-wc .fc-toolbar {
        gap: 0.45rem;
    }
}

/* Tablet: bracket horizontal con scroll; en telefono (<768px) va vertical — ver bloque siguiente */
@media (min-width: 768px) and (max-width: 991.98px) {
    .knockout-board {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .knockout-grid {
        min-width: 980px;
    }
}

@media (max-width: 767.98px) {
    .knockout-board {
        overflow: hidden;
        padding: 0.6rem 0.48rem 0.65rem;
    }

    .knockout-grid {
        grid-template-columns: 1fr;
        min-width: 0;
        gap: 0.38rem;
        align-items: stretch;
    }

    .round-col {
        gap: 0.2rem;
        background: rgba(8, 16, 28, 0.34);
        border: 1px solid rgba(187, 213, 255, 0.2);
        border-radius: 0.55rem;
        padding: 0.32rem 0.3rem;
        backdrop-filter: blur(1px);
    }

    .round-title {
        font-size: 0.66rem;
        letter-spacing: 0.04em;
        margin: 0 0 0.16rem;
        min-height: auto;
        text-align: left;
        padding-left: 0.08rem;
    }

    .round-body {
        position: static;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 0.24rem;
    }

    .round-col .knockout-pill {
        position: static;
        left: auto;
        right: auto;
        top: auto;
    }

    .round-col--8 .round-title,
    .round-col--4 .round-title,
    .round-col--semi .round-title,
    .round-final .round-title {
        transform: none;
    }

    .knockout-pill {
        border-radius: 0.42rem;
        min-height: 0;
        padding: 0.26rem 0.2rem;
        font-size: 0.56rem;
        box-shadow: 0 3px 8px rgba(9, 16, 31, 0.22);
    }

    .knockout-pill.prediction-pill {
        align-self: center;
        width: fit-content;
        max-width: 100%;
        padding: 0.14rem 0.2rem;
    }

    .prediction-pair {
        justify-content: center;
        align-items: center;
        gap: 0.28rem;
    }

    .prediction-slot {
        flex: 0 0 auto;
        width: 2rem;
        height: 2rem;
        min-width: 2rem;
        min-height: 2rem;
        aspect-ratio: 1;
        border-radius: 0.28rem;
        padding: 0.12rem;
        box-sizing: border-box;
    }

    .prediction-slot-label {
        font-size: 1.2rem;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .prediction-vs {
        font-size: 0.44rem;
        align-self: center;
    }

    .knockout-pill--final.prediction-pill .prediction-slot {
        width: 2rem;
        height: 2rem;
        min-width: 2rem;
        min-height: 2rem;
    }

    .knockout-pill--final.prediction-pill .prediction-slot-label {
        font-size: 1.2rem;
    }

    .prediction-bank-chips {
        gap: 0.32rem;
        min-height: 40px;
        padding: 0.42rem 0.48rem;
        border-radius: 0.55rem;
    }

    .prediction-chip {
        padding: 0.26rem 0.32rem;
        min-width: 2rem;
        border-radius: 0.42rem;
        font-size: 0.72rem;
        box-shadow: 0 1px 5px rgba(14, 29, 62, 0.07);
    }

    .prediction-chip-flag {
        font-size: 1.2rem;
    }

    .final-chip {
        font-size: 0.48rem;
        margin-bottom: 0.26rem;
        padding: 0.14rem 0.36rem;
    }

    .round-final {
        align-items: stretch;
    }

    .round-final .round-body {
        align-items: stretch;
    }

    .knockout-pill--final {
        max-width: 100%;
        width: 100%;
    }

    .knockout-pill--final.prediction-pill {
        width: fit-content;
        align-self: center;
    }

    .calendar-shell-toolbar {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .calendar-legend {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        padding-bottom: 0.2rem;
        width: 100%;
    }

    .calendar-legend-pill {
        flex: 0 0 auto;
    }

    .fc-theme-wc .fc-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .fc-theme-wc .fc-toolbar-chunk {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.35rem;
    }

    .fc-theme-wc .fc-toolbar-title {
        font-size: 1rem;
    }

    .timeline-post-stats__inner {
        padding: 0.6rem 0.45rem 0.3rem;
    }

    .timeline-post-stats__table-head,
    .timeline-post-stats__table-row {
        grid-template-columns: minmax(4.3rem, 1fr) 1fr 1fr;
        padding: 0.32rem 0.36rem;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        min-height: 78vh;
        text-align: center;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .knockout-grid {
        grid-template-columns: repeat(7, minmax(132px, 1fr));
        gap: 0.75rem;
        min-width: 980px;
        scroll-snap-type: x proximity;
    }

    .round-col {
        scroll-snap-align: start;
    }

    .round-body {
        position: static;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 0.58rem;
    }

    .round-col .knockout-pill {
        position: static;
    }

    .round-col--8 .round-title,
    .round-col--4 .round-title,
    .round-col--semi .round-title,
    .round-final .round-title {
        transform: none;
    }

    .round-final .round-body {
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .fifacal-brand__logo {
        width: 3.25rem;
        height: 3.25rem;
    }

    .hero-section {
        min-height: auto;
        padding-top: 88px;
        padding-bottom: 1.4rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .hero-lead {
        font-size: 1.05rem;
        padding: 0.85rem 1rem;
    }

    .hero-match-pill {
        --hero-card-w: 12.5rem;
        --hero-card-h: 6.85rem;

        padding: 0.48rem 0.55rem 0.45rem;
    }

    .hero-match-pill--featured {
        flex-basis: 100%;
        max-width: 100%;
        min-height: 10rem;
        padding: 1rem 1rem 0.9rem;
    }

    .hero-match-pill--featured .hero-match-pill__flag {
        font-size: 1.85rem;
    }

    .hero-match-pill--featured .hero-match-pill__scoreline {
        font-size: 2rem;
    }

    .hero-match-pill__name {
        font-size: 0.58rem;
    }

    .filter-panel {
        padding: 0.75rem;
    }

    .timeline-card {
        min-height: 300px;
    }

    .timeline-match-layout {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .team-panel,
    .versus-panel {
        min-height: auto;
    }

    .versus-panel {
        min-height: 7.75rem;
        grid-template-rows: auto auto auto;
        gap: 0.35rem;
        padding: 0.8rem 0.7rem;
    }

    .versus-panel__when {
        align-self: center;
        padding-bottom: 0;
    }

    .versus-panel__venue {
        align-self: center;
        padding-top: 0;
    }

    .versus-panel__line {
        max-width: 100%;
    }

    .team-panel {
        padding: 0.75rem 0.6rem;
    }

    .knockout-board {
        padding: 1.05rem 0.92rem;
    }

    .knockout-grid {
        gap: 0.42rem;
    }

    .round-col {
        padding: 0.42rem 0.4rem;
    }

    .round-title {
        font-size: 0.72rem;
    }

    .knockout-pill {
        min-height: 34px;
    }

    .prediction-slot {
        min-height: 26px;
    }
}

/* —— Calendario FullCalendar —— */
.letter-spacing-sm {
    letter-spacing: 0.06em;
}

.section-calendario {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.calendar-shell {
    background: #fff;
    border-color: rgba(19, 35, 63, 0.08) !important;
}

.calendar-shell-toolbar {
    background: linear-gradient(180deg, #fafbfd, #f4f7fb);
}

.calendar-wrap.calendar-wrap--fc {
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    min-height: 480px;
}

@media (min-width: 992px) {
    .calendar-wrap.calendar-wrap--fc {
        min-height: 620px;
    }
}

.calendar-legend-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #475569;
    background: rgba(255, 255, 255, 0.85);
    padding: 0.2rem 0.45rem 0.2rem 0.35rem;
    border-radius: 999px;
    border: 1px solid rgba(19, 35, 63, 0.08);
}

.calendar-legend-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.calendar-legend-label {
    max-width: 7.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 991.98px) {
    .calendar-legend {
        justify-content: flex-start !important;
    }
}

.stats-box--calendar {
    background: linear-gradient(165deg, #ffffff 0%, #f6f8fc 100%);
    border: 1px solid rgba(19, 35, 63, 0.06) !important;
}

.stats-box-accent {
    height: 4px;
    width: 3rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--wc-primary), var(--wc-accent));
}

.fc-theme-wc {
    --fc-border-color: rgba(19, 35, 63, 0.1);
    --fc-button-bg-color: #fff;
    --fc-button-border-color: rgba(19, 35, 63, 0.15);
    --fc-button-text-color: #1e293b;
    --fc-button-hover-bg-color: #f1f5f9;
    --fc-button-hover-border-color: rgba(45, 125, 255, 0.45);
    --fc-button-active-bg-color: #e0e7ff;
    --fc-today-bg-color: rgba(45, 125, 255, 0.08);
    --fc-now-indicator-color: var(--wc-accent);
    font-family: inherit;
}

.fc-theme-wc .fc-toolbar-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.fc-theme-wc .fc-button {
    border-radius: 0.45rem;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.35em 0.65em;
}

.fc-theme-wc .fc-button-primary:not(:disabled):active,
.fc-theme-wc .fc-button-primary:not(:disabled).fc-button-active {
    background-color: var(--wc-primary);
    border-color: var(--wc-primary);
    color: #fff;
}

.fc-theme-wc .fc-col-header-cell {
    padding: 0.5rem 0.25rem;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.fc-theme-wc .fc-daygrid-day-number {
    font-weight: 600;
    padding: 0.35rem;
    color: #334155;
}

.fc-theme-wc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    background: var(--wc-primary);
    color: #fff;
    border-radius: 0.35rem;
    padding: 0.2rem 0.45rem;
}

.fc-theme-wc .fc-daygrid-event {
    border-radius: 0.4rem;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0;
    border-width: 0 0 0 3px;
    overflow: visible;
}

.fc-theme-wc .fc-daygrid-block-event .fc-event-main {
    padding: 0;
}

/*
 * Pill de hora: franja reservada arriba (padding-top) para que no tape el título
 * ni choque con el evento de encima; el pill vive dentro de esa franja.
 */
.fc-theme-wc .fc-event-wc {
    position: relative;
    display: block;
    padding: 0.72rem 0.28rem 0.26rem;
    min-width: 0;
    text-align: left;
}

.fc-theme-wc .fc-event-wc-time {
    position: absolute;
    top: 0.1rem;
    left: 0.22rem;
    z-index: 2;
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
    padding: 0.04rem 0.26rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.98);
    color: #0f172a;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    max-width: calc(100% - 0.4rem);
    overflow: hidden;
    text-overflow: ellipsis;
}

.fc-theme-wc .fc-event-wc-title--shared {
    font-weight: 800;
}

.fc-theme-wc .fc-event-wc-title {
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.28;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    padding-top: 0.06rem;
    padding-right: 0.15rem;
}

/* Una etiqueta de fase por día: celda mes (abajo derecha) y cabecera semana */
.fc-theme-wc .fc-daygrid-day-frame--stage-wrap {
    position: relative;
}

.fc-theme-wc .fc-day-stage-badge {
    position: absolute;
    bottom: 0.18rem;
    right: 0.2rem;
    z-index: 6;
    font-size: 0.46rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.15;
    padding: 0.12rem 0.32rem 0.13rem;
    border-radius: 999px;
    border: 1px solid;
    max-width: calc(100% - 0.45rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
    pointer-events: none;
}

.fc-theme-wc .fc-col-header-stage-wrap {
    position: relative;
    vertical-align: bottom;
}

.fc-theme-wc .fc-day-stage-badge--header {
    bottom: 0.12rem;
    right: 0.15rem;
    font-size: 0.4rem;
    max-width: calc(100% - 0.3rem);
}

.fc-theme-wc .fc-h-event .fc-event-main-frame {
    flex-direction: column;
    align-items: stretch;
}

.fc-theme-wc .fc-timegrid-event {
    overflow: visible;
    border-radius: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-width: 0 0 0 3px;
}

.fc-theme-wc .fc-timegrid-event .fc-event-main {
    padding: 0.12rem 0.24rem 0.22rem;
}

.fc-theme-wc .fc-timegrid-event .fc-event-wc {
    padding-top: 0.78rem;
    padding-bottom: 0.28rem;
}

.fc-theme-wc .fc-timegrid-event .fc-event-wc-time {
    font-size: 0.52rem;
    padding: 0.05rem 0.28rem;
    top: 0.1rem;
    left: 0.2rem;
}

.fc-theme-wc .fc-timegrid-event .fc-event-wc-title {
    font-size: 0.72rem;
    -webkit-line-clamp: 3;
}

/* Lista: una sola columna con hora+partido (evita duplicar la hora) */
.fc-theme-wc .fc-list-event td.fc-list-event-time {
    display: none;
}

.fc-theme-wc .fc-list-event .fc-list-event-graphic {
    vertical-align: top;
    padding-top: 0.28rem;
}

.fc-theme-wc .fc-list-event .fc-list-event-title {
    vertical-align: top;
    padding-top: 0.22rem;
    padding-bottom: 0.28rem;
}

.fc-theme-wc .fc-list-event .fc-event-wc {
    padding: 0.68rem 0 0.2rem;
}

.fc-theme-wc .fc-list-event .fc-event-wc-time {
    font-size: 0.48rem;
    padding: 0.03rem 0.22rem;
    top: 0.08rem;
    left: 0;
}

.fc-theme-wc .fc-timegrid-slot-label {
    font-size: 0.72rem;
    color: #64748b;
}

.fc-theme-wc .fc-list-event {
    font-size: 0.85rem;
}

.fc-theme-wc .fc-list-event-title {
    font-weight: 600;
}

.fc-theme-wc .fc-list-day-cushion {
    background: rgba(45, 125, 255, 0.06);
    font-weight: 700;
    color: #0f172a;
}

.fc-theme-wc .fc-scrollgrid {
    border-radius: 0.5rem;
    overflow: hidden;
}

.fc-theme-wc .fc-popover {
    border-radius: 0.65rem;
    box-shadow: 0 12px 40px rgba(14, 29, 62, 0.18);
}

.fc-theme-wc .fc-popover .fc-daygrid-event {
    overflow: visible;
}

.fc-theme-wc .fc-more-link {
    font-weight: 700;
    color: var(--wc-primary);
}

.fc-detail-popup .swal2-html-container {
    text-align: left;
}

.prediction-history-popup .prediction-history-list {
    max-height: min(55vh, 22rem);
    overflow-y: auto;
    margin-top: 0.5rem;
}

.prediction-slot--tap {
    cursor: pointer;
    touch-action: manipulation;
}

.prediction-picker-popup .swal2-html-container {
    margin-top: 0.35rem;
}

.prediction-picker-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
    max-height: min(55vh, 26rem);
    overflow-y: auto;
    padding: 0.1rem;
}

.prediction-picker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    min-height: 3.35rem;
    padding: 0.35rem 0.2rem;
    border: 1px solid rgba(19, 35, 63, 0.12);
    border-radius: 0.45rem;
    background: linear-gradient(180deg, #fff, #f3f6fd);
    color: #142033;
    box-shadow: 0 1px 5px rgba(14, 29, 62, 0.07);
}

.prediction-picker-item--active {
    border-color: rgba(45, 125, 255, 0.75);
    box-shadow: 0 0 0 2px rgba(45, 125, 255, 0.22);
}

.prediction-picker-item-flag {
    font-size: 1.2rem;
    line-height: 1;
}

.prediction-picker-item-name {
    font-size: 0.52rem;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    word-break: break-word;
}

.prediction-picker-actions {
    display: flex;
    justify-content: center;
    margin-top: 0.75rem;
}

