/* El Estadio Píxel — integrado en Radio Vibra FM */

body[data-vibra-section="estadioSection"] #equalizer-background {
    opacity: 0.35;
}

.estadio-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: var(--v-space-3, 24px);
}

.estadio-stage {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: min(1240px, 100%);
    margin: 0 auto;
}

.estadio-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.estadio-hidden {
    display: none !important;
}

/* Panel de usuario */
.estadio-user-panel {
    display: flex;
    justify-content: center;
    margin-bottom: var(--v-space-2, 16px);
}

.estadio-login {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.estadio-login__hint {
    flex: 1 1 100%;
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    text-align: center;
    color: var(--v-text-secondary, rgba(226, 232, 240, 0.72));
    max-width: 520px;
}

.estadio-match--guest .estadio-vote--login-required:not(:disabled) {
    border-color: rgba(255, 215, 0, 0.42);
    background: rgba(255, 215, 0, 0.08);
    opacity: 1;
    cursor: pointer;
}

.estadio-match--guest .estadio-vote--login-required:not(:disabled):hover {
    border-color: rgba(255, 215, 0, 0.65);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.18);
}

.estadio-input {
    flex: 1 1 180px;
    max-width: 280px;
    padding: 0.55rem 0.75rem;
    border-radius: var(--v-radius-sm, 8px);
    border: 1px solid var(--vibra-input-border, #555);
    background: var(--vibra-input-bg, #222);
    color: #fff;
    font-size: 0.95rem;
}

.estadio-input:focus {
    outline: none;
    border-color: var(--v-accent, #ff5cf0);
    box-shadow: 0 0 0 2px rgba(255, 92, 240, 0.25);
}

.estadio-btn {
    padding: 0.55rem 1rem;
    border-radius: var(--v-radius-sm, 8px);
    border: 1px solid rgba(255, 154, 235, 0.45);
    background: rgba(128, 0, 255, 0.35);
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.estadio-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--v-glow-sm, 0 0 12px rgba(255, 92, 240, 0.28));
}

.estadio-btn--primary {
    background: linear-gradient(135deg, #8000ff, #ff5cf0);
    border-color: rgba(255, 154, 235, 0.6);
}

.estadio-btn--ghost {
    background: transparent;
    font-size: 0.75rem;
    padding: 0.45rem 0.7rem;
}

.estadio-user-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.65rem 1rem;
    border-radius: var(--v-radius-card, 16px);
    background: var(--v-glass-bg, rgba(12, 6, 24, 0.72));
    border: 1px solid var(--v-glass-border, rgba(255, 154, 235, 0.28));
    backdrop-filter: var(--v-glass-blur, blur(12px));
}

.estadio-user-info__avatar {
    width: 56px;
    height: 80px;
    object-fit: contain;
    object-position: bottom center;
    border-radius: 6px;
    border: 1px solid rgba(255, 154, 235, 0.35);
    background: rgba(0, 0, 0, 0.35);
}

.estadio-user-info__meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.estadio-user-info__name {
    font-weight: 800;
    color: var(--v-accent-soft, #ff9aeb);
}

.estadio-user-info__pts {
    font-size: 0.85rem;
    color: var(--v-text-secondary, rgba(226, 232, 240, 0.72));
}

.estadio-streak {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.6rem;
    border-radius: var(--v-radius-pill, 999px);
    border: 1px solid rgba(255, 154, 235, 0.35);
    background: rgba(128, 0, 255, 0.2);
    font-size: 0.8rem;
    font-weight: 700;
}

.estadio-streak--fire {
    border-color: #ff6b2c;
    background: linear-gradient(135deg, rgba(255, 107, 44, 0.35), rgba(255, 69, 0, 0.25));
    animation: estadio-fire-pulse 1.2s ease-in-out infinite;
}

@keyframes estadio-fire-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(255, 107, 44, 0.4); }
    50% { box-shadow: 0 0 16px rgba(255, 154, 60, 0.65); }
}

/* Navegación de fases — estilo Google / FIFA */
.estadio-fases-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: var(--v-space-2, 16px);
}

.estadio-fases-nav {
    display: flex;
    flex: 0 1 auto;
    justify-content: center;
    gap: 0.35rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.estadio-fase-pill {
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    min-width: 5.5rem;
    max-width: 7.5rem;
    padding: 0.45rem 0.4rem;
    border-radius: var(--v-radius-sm, 8px);
    border: 1px solid rgba(255, 154, 235, 0.25);
    background: rgba(12, 6, 24, 0.65);
    color: var(--v-text-secondary, rgba(226, 232, 240, 0.72));
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.estadio-fase-pill__icon {
    font-size: 1rem;
    line-height: 1;
}

.estadio-fase-pill__label {
    display: block;
}

.estadio-fase-pill:hover:not(:disabled) {
    color: #fff;
    border-color: rgba(255, 92, 240, 0.45);
}

.estadio-fase-pill--active {
    color: #fff;
    border-color: var(--v-accent, #ff5cf0);
    background: linear-gradient(135deg, rgba(128, 0, 255, 0.5), rgba(255, 92, 240, 0.35));
    box-shadow: var(--v-glow-sm);
}

.estadio-fase-pill--current:not(.estadio-fase-pill--active) {
    border-color: var(--vibra-cyan, #00ffd5);
}

.estadio-fase-pill--done {
    border-color: rgba(0, 255, 213, 0.35);
    color: var(--vibra-cyan, #00ffd5);
}

.estadio-fase-pill--locked,
.estadio-fase-pill:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.estadio-fases-meta {
    display: flex;
    gap: 0.35rem;
    flex: 0 0 auto;
    align-items: stretch;
}

.estadio-fase-pill--meta {
    min-width: 5.5rem;
    max-width: 7.5rem;
}

.estadio-tab--meta {
    min-width: 100px;
    flex: 0 0 auto;
}

.estadio-fase-content {
    min-height: 120px;
}

.estadio-flag--hidden {
    display: none !important;
}

.estadio-locked--done {
    border-style: solid;
    border-color: rgba(0, 255, 213, 0.35);
}

/* Pestañas internas */
.estadio-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: var(--v-space-2, 16px);
    justify-content: center;
}

.estadio-tab {
    flex: 1 1 auto;
    min-width: 110px;
    padding: 0.65rem 0.5rem;
    border-radius: var(--v-radius-sm, 8px);
    border: 1px solid rgba(255, 154, 235, 0.3);
    background: rgba(12, 6, 24, 0.55);
    color: var(--v-text-secondary, rgba(226, 232, 240, 0.72));
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.estadio-tab:hover {
    color: #fff;
    border-color: rgba(255, 92, 240, 0.5);
}

.estadio-tab--active {
    color: #fff;
    border-color: var(--v-accent, #ff5cf0);
    background: linear-gradient(135deg, rgba(128, 0, 255, 0.45), rgba(255, 92, 240, 0.3));
    box-shadow: var(--v-glow-sm);
}

.estadio-hint {
    margin: 0 0 1rem;
    text-align: center;
    font-size: 0.88rem;
    color: var(--v-text-secondary, rgba(226, 232, 240, 0.72));
}

.estadio-hint strong {
    color: #ff9a3c;
}

.estadio-loading {
    text-align: center;
    color: var(--v-text-secondary, rgba(226, 232, 240, 0.72));
    padding: 1.5rem 0.5rem;
}

/* VS Cards */
.estadio-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--v-space-2, 16px);
}

.estadio-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--v-radius-card, 16px);
    background: var(--v-glass-bg, rgba(12, 6, 24, 0.72));
    border: 1px solid var(--v-glass-border, rgba(255, 154, 235, 0.28));
    box-shadow: var(--v-glow-lg);
    overflow: hidden;
}

.estadio-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--v-accent, #ff5cf0), transparent);
    pointer-events: none;
}

.estadio-card__jornada {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--v-text-secondary, rgba(226, 232, 240, 0.72));
}

.estadio-card__fecha {
    font-size: 0.85rem;
    color: var(--vibra-cyan, #00ffd5);
}

.estadio-card__versus {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 0.5rem;
}

.estadio-team {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.85rem 0.5rem;
    min-height: 100px;
    border-radius: var(--v-radius-sm, 8px);
    border: 1px solid rgba(255, 154, 235, 0.25);
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}

.estadio-team:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.estadio-team:not(:disabled):hover {
    transform: scale(1.05);
    border-color: var(--v-accent, #ff5cf0);
    box-shadow: var(--v-glow-sm);
    z-index: 2;
}

.estadio-team:not(:disabled):hover::after {
    opacity: 1;
}

.estadio-team::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 4px,
        rgba(255, 92, 240, 0.1) 4px,
        rgba(255, 92, 240, 0.1) 8px
    );
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
    animation: estadio-shimmer 0.8s steps(4) infinite;
}

@keyframes estadio-shimmer {
    0% { background-position: 0 0; }
    100% { background-position: 16px 16px; }
}

.estadio-team--voted {
    border-color: var(--vibra-cyan, #00ffd5);
    background: rgba(0, 255, 213, 0.08);
    box-shadow: 0 0 14px rgba(0, 255, 213, 0.25);
}

.estadio-team--voted::before {
    content: "✓";
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--vibra-cyan, #00ffd5);
}

.estadio-team__flag {
    font-size: 1.85rem;
    line-height: 1;
    image-rendering: pixelated;
}

.estadio-team__name {
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
    word-break: break-word;
    color: #fff;
}

.estadio-vs {
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--v-accent-soft, #ff9aeb);
    text-shadow: 0 0 8px rgba(255, 92, 240, 0.5);
}

/* Hype meter */
.estadio-hype__label {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    margin-bottom: 0.35rem;
    color: var(--v-text-secondary, rgba(226, 232, 240, 0.72));
}

.estadio-hype__bar {
    display: flex;
    height: 14px;
    border-radius: var(--v-radius-pill, 999px);
    border: 1px solid rgba(255, 154, 235, 0.3);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
}

.estadio-hype__fill {
    height: 100%;
    transition: width 0.45s ease;
}

.estadio-hype__fill--1 {
    background: linear-gradient(90deg, #8000ff, #ff5cf0);
}

.estadio-hype__fill--2 {
    background: linear-gradient(90deg, #00ffd5, #5c9eff);
}

.estadio-hype__votes {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--v-text-secondary, rgba(226, 232, 240, 0.72));
    text-align: center;
}

.estadio-card--closed .estadio-team {
    pointer-events: none;
    opacity: 0.7;
}

/* Resultados */
.estadio-results {
    display: block;
    width: 100%;
}

#ep-panel-resultados {
    text-align: center;
}

.estadio-result {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem 1rem;
    align-items: center;
    padding: 1rem;
    border-radius: var(--v-radius-card, 16px);
    background: var(--v-glass-bg, rgba(12, 6, 24, 0.72));
    border: 1px solid var(--v-glass-border, rgba(255, 154, 235, 0.28));
}

.estadio-result__match {
    font-size: 0.85rem;
    font-weight: 700;
}

.estadio-result__score {
    font-size: 1.1rem;
    color: var(--v-accent-soft, #ff9aeb);
    margin: 0.25rem 0;
}

.estadio-result__vote {
    font-size: 0.82rem;
    color: var(--v-text-secondary, rgba(226, 232, 240, 0.72));
}

.estadio-result__pts {
    padding: 0.5rem 0.75rem;
    border-radius: var(--v-radius-sm, 8px);
    font-weight: 800;
    font-size: 0.82rem;
    text-align: center;
    min-width: 72px;
}

.estadio-result__pts--win {
    color: #1a0a20;
    background: linear-gradient(135deg, #ff9aeb, #ff5cf0);
}

.estadio-result__pts--lose {
    color: var(--v-text-secondary, rgba(226, 232, 240, 0.72));
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 154, 235, 0.2);
}

/* Leaderboard */
.estadio-leaderboard-wrap {
    overflow-x: auto;
    border-radius: var(--v-radius-card, 16px);
    border: 1px solid var(--v-glass-border, rgba(255, 154, 235, 0.28));
}

.estadio-leaderboard {
    width: 100%;
    border-collapse: collapse;
    background: var(--v-glass-bg, rgba(12, 6, 24, 0.72));
    font-size: 0.88rem;
}

.estadio-leaderboard th,
.estadio-leaderboard td {
    padding: 0.7rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 154, 235, 0.15);
}

.estadio-leaderboard th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--v-accent-soft, #ff9aeb);
    background: rgba(128, 0, 255, 0.2);
}

.estadio-leaderboard tr:nth-child(even) td {
    background: rgba(0, 0, 0, 0.12);
}

.estadio-leaderboard tr.estadio-row--top1 td:first-child { color: #ffd700; font-weight: 800; }
.estadio-leaderboard tr.estadio-row--top2 td:first-child { color: #c0c0c0; font-weight: 800; }
.estadio-leaderboard tr.estadio-row--top3 td:first-child { color: #cd7f32; font-weight: 800; }

.estadio-fire-badge {
    margin-left: 0.25rem;
    animation: estadio-fire-pulse 1.2s ease-in-out infinite;
}

/* Toast */
.estadio-toast {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    padding: 0.75rem 1.1rem;
    border-radius: var(--v-radius-sm, 8px);
    border: 1px solid rgba(255, 154, 235, 0.45);
    background: rgba(12, 6, 24, 0.95);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    max-width: min(90vw, 400px);
    text-align: center;
    box-shadow: var(--v-glow-md);
}

.estadio-toast--ok {
    border-color: var(--vibra-cyan, #00ffd5);
    color: var(--vibra-cyan, #00ffd5);
}

.estadio-toast--err {
    border-color: #ff6b2c;
    color: #ff9a3c;
}

/* Próximo partido */
.estadio-proximo {
    margin-bottom: 1rem;
}

.estadio-proximo__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--v-radius-card, 16px);
    border: 1px solid rgba(0, 255, 213, 0.35);
    background: rgba(0, 255, 213, 0.08);
    font-size: 0.88rem;
}

.estadio-proximo__label {
    color: var(--vibra-cyan, #00ffd5);
    font-weight: 700;
}

.estadio-proximo__timer {
    color: #fff;
    font-weight: 600;
}

/* Fases y tarjetas tipo referencia */
.estadio-jornada {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.estadio-fase__title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--v-accent-soft, #ff9aeb);
    text-align: left;
}

.estadio-fase__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.estadio-fase__grid--mundial {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.estadio-dia-section {
    margin-bottom: 1.25rem;
}

.estadio-dia-section__title {
    margin: 0 0 0.65rem;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--v-text-secondary, rgba(226, 232, 240, 0.85));
    text-transform: capitalize;
}

.estadio-match__grupo-row {
    margin-bottom: 0.35rem;
    text-align: center;
}

.estadio-match__grupo {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(0, 255, 213, 0.14);
    color: var(--vibra-cyan, #00ffd5);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid rgba(0, 255, 213, 0.25);
}

.estadio-match__dia {
    font-size: 0.82rem;
    color: #fff;
    font-weight: 600;
}

.estadio-jornada-more {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.estadio-jornada-more .estadio-btn {
    min-width: min(100%, 320px);
}

.estadio-match {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.85rem;
    border-radius: var(--v-radius-card, 16px);
    background: var(--v-glass-bg, rgba(12, 6, 24, 0.72));
    border: 1px solid var(--v-glass-border, rgba(255, 154, 235, 0.28));
    box-shadow: var(--v-glow-lg);
}

.estadio-match__head {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(128, 0, 255, 0.35), rgba(255, 92, 240, 0.2));
    font-weight: 700;
    font-size: 0.82rem;
}

.estadio-match__flag {
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.estadio-match__vs {
    color: var(--v-accent-soft, #ff9aeb);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.estadio-match__meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--v-text-secondary, rgba(226, 232, 240, 0.72));
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 154, 235, 0.12);
}

.estadio-match__fase {
    color: var(--vibra-cyan, #00ffd5);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.estadio-match__fecha {
    opacity: 0.9;
}

.estadio-match__countdown {
    margin-top: 0.1rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(128, 0, 255, 0.2);
    font-size: 0.78rem;
    line-height: 1.35;
    max-width: 100%;
}

.estadio-match:not(.estadio-match--closed) .estadio-match__countdown {
    background: rgba(0, 255, 213, 0.12);
    border: 1px solid rgba(0, 255, 213, 0.28);
}

.estadio-match__countdown strong {
    color: var(--vibra-cyan, #00ffd5);
    font-weight: 800;
}

.estadio-match__votes {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}

.estadio-vote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.62rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 154, 235, 0.32);
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s, background 0.15s;
    text-align: center;
}

.estadio-vote:not(:disabled):hover {
    transform: translateY(-2px);
    border-color: var(--v-accent, #ff5cf0);
    box-shadow: var(--v-glow-sm);
    background: rgba(128, 0, 255, 0.22);
}

.estadio-vote:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.estadio-vote--draw {
    justify-content: center;
}

.estadio-vote--voted {
    border-color: var(--vibra-cyan, #00ffd5);
    background: rgba(0, 255, 213, 0.12);
    box-shadow: 0 0 12px rgba(0, 255, 213, 0.22);
}

.estadio-hype {
    text-align: center;
    margin-top: 0.15rem;
}

.estadio-hype__fill--e {
    background: linear-gradient(90deg, #ff9f43, #ffd93d);
    box-shadow: inset 0 0 8px rgba(255, 217, 61, 0.25);
}

.estadio-hype__label {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.25rem;
    font-size: 0.72rem;
    margin-bottom: 0.35rem;
    text-align: center;
}

.estadio-result__fase {
    font-size: 0.75rem;
    color: var(--v-text-secondary, rgba(226, 232, 240, 0.72));
}

.estadio-podio-user {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.estadio-podio-avatar {
    border-radius: 4px;
    border: 1px solid rgba(255, 154, 235, 0.3);
}

.estadio-match--closed {
    opacity: 0.75;
}

.estadio-match--live {
    border-color: rgba(0, 255, 213, 0.55);
    box-shadow: 0 0 12px rgba(0, 255, 213, 0.25);
}

.estadio-match--highlight {
    animation: estadio-match-highlight 0.85s ease-in-out 3;
    box-shadow: 0 0 0 2px rgba(255, 92, 240, 0.85), 0 0 24px rgba(128, 0, 255, 0.35);
}

@keyframes estadio-match-highlight {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.015); }
}

.estadio-match__live {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    background: rgba(255, 60, 60, 0.85);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    animation: estadio-pulse 1.2s ease-in-out infinite;
}

.estadio-match__done,
.estadio-match__score {
    font-size: 0.75rem;
    color: var(--vibra-cyan, #00ffd5);
}

@keyframes estadio-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.65; }
}

/* Bracket mini pixel */
.estadio-bracket {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 1rem;
    padding: 0.65rem;
    border-radius: var(--v-radius-sm, 8px);
    border: 2px solid rgba(255, 154, 235, 0.35);
    background: rgba(8, 4, 18, 0.85);
    image-rendering: pixelated;
}

.estadio-bracket__node {
    padding: 0.35rem 0.65rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
}

.estadio-bracket__node--active {
    color: #fff;
    border-color: var(--v-accent, #ff5cf0);
    box-shadow: 0 0 8px rgba(255, 92, 240, 0.45);
}

.estadio-bracket__node--done {
    color: var(--vibra-cyan, #00ffd5);
    border-color: rgba(0, 255, 213, 0.5);
}

.estadio-bracket__line {
    width: 1.25rem;
    height: 2px;
    background: rgba(255, 154, 235, 0.45);
}

/* Tablas de posiciones */
.estadio-standings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 360px));
    justify-content: center;
    justify-items: stretch;
    gap: 1rem;
    width: 100%;
    margin: 0 auto 1.25rem;
}

.estadio-standings {
    padding: 0.65rem 0.55rem;
    border-radius: var(--v-radius-sm, 8px);
    border: 1px solid var(--v-glass-border, rgba(255, 154, 235, 0.28));
    background: rgba(12, 6, 24, 0.65);
    min-width: 0;
    overflow-x: visible;
}

.estadio-standings__title {
    margin: 0 0 0.5rem;
    font-size: 0.88rem;
    color: var(--v-accent-soft, #ff9aeb);
    text-align: center;
}

.estadio-standings__table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.68rem;
}

.estadio-standings__table th,
.estadio-standings__table td {
    padding: 0.28rem 0.1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.estadio-standings__table th {
    color: var(--v-text-secondary, rgba(226, 232, 240, 0.72));
    font-weight: 700;
    font-size: 0.62rem;
}

.estadio-standings__table th:nth-child(1),
.estadio-standings__table td:nth-child(1) {
    width: 1.4rem;
}

.estadio-standings__table th:nth-child(2),
.estadio-standings__table td:nth-child(2) {
    width: 36%;
}

.estadio-standings__team {
    text-align: left !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Fase bloqueada */
.estadio-locked {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 220px;
    padding: 2rem 1rem;
    border-radius: var(--v-radius-card, 16px);
    border: 2px dashed rgba(255, 154, 235, 0.35);
    background: repeating-linear-gradient(
        -45deg,
        rgba(12, 6, 24, 0.9),
        rgba(12, 6, 24, 0.9) 8px,
        rgba(24, 12, 40, 0.9) 8px,
        rgba(24, 12, 40, 0.9) 16px
    );
    text-align: center;
}

.estadio-locked__icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 6px rgba(255, 92, 240, 0.5));
}

.estadio-locked__text {
    margin: 0;
    max-width: 28ch;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--v-accent-soft, #ff9aeb);
}

.estadio-phase-panel {
    min-height: 120px;
}

.estadio-tab.estadio-hidden {
    display: none;
}

.estadio-resultados-section {
    width: min(1180px, 100%);
    margin-inline: auto;
    margin-bottom: 1.5rem;
    padding-inline: var(--v-space-1, 12px);
    box-sizing: border-box;
}

.estadio-resultados-section__title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--v-accent-soft, #ff9aeb);
    text-align: center;
}

.estadio-standings__forma {
    white-space: nowrap;
}

.estadio-forma {
    display: inline-flex;
    gap: 0.2rem;
    align-items: center;
}

.estadio-forma__dot {
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
}

.estadio-forma__dot--w {
    background: #22c55e;
    box-shadow: 0 0 4px rgba(34, 197, 94, 0.6);
}

.estadio-forma__dot--l {
    background: #ef4444;
    box-shadow: 0 0 4px rgba(239, 68, 68, 0.5);
}

.estadio-forma__dot--d {
    background: #eab308;
}

.estadio-forma__dot--pending {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    width: 0.45rem;
    height: 0.45rem;
}

.estadio-final-scores {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.estadio-final-score {
    padding: 0.85rem;
    border-radius: var(--v-radius-card, 16px);
    border: 1px solid var(--v-glass-border, rgba(255, 154, 235, 0.28));
    background: var(--v-glass-bg, rgba(12, 6, 24, 0.72));
}

.estadio-final-score__meta {
    font-size: 0.75rem;
    color: var(--vibra-cyan, #00ffd5);
    margin-bottom: 0.4rem;
}

.estadio-final-score__match {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    font-weight: 700;
    font-size: 0.88rem;
}

.estadio-final-score__team {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    opacity: 0.75;
}

.estadio-final-score__team--winner {
    opacity: 1;
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 92, 240, 0.45);
}

.estadio-final-score__result {
    font-size: 1.1rem;
    color: var(--v-accent-soft, #ff9aeb);
    min-width: 3.5rem;
    text-align: center;
}

.estadio-final-score__winner {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.82rem;
    color: var(--vibra-cyan, #00ffd5);
}

.estadio-final-score__vote {
    margin-top: 0.45rem;
    text-align: center;
    font-size: 0.78rem;
    color: var(--v-text-secondary, rgba(226, 232, 240, 0.72));
}

/* Acordeón — partidos jugados por grupo */
.estadio-finalizados-acordeon {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.estadio-resultados-section__title--sub {
    margin-top: 1.25rem;
    font-size: 0.92rem;
}

.estadio-collapse {
    border-radius: var(--v-radius-card, 16px);
    border: 1px solid var(--v-glass-border, rgba(255, 154, 235, 0.28));
    background: var(--v-glass-bg, rgba(12, 6, 24, 0.72));
    overflow: hidden;
}

.estadio-collapse__trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: rgba(128, 0, 255, 0.15);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
    min-height: 44px;
}

.estadio-collapse__trigger:hover {
    background: rgba(128, 0, 255, 0.28);
}

.estadio-collapse__title {
    flex: 1;
    color: var(--v-accent-soft, #ff9aeb);
}

.estadio-collapse__meta {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--v-text-secondary, rgba(226, 232, 240, 0.72));
}

.estadio-collapse__chevron {
    font-size: 0.65rem;
    transition: transform 0.25s ease;
    color: var(--vibra-cyan, #00ffd5);
}

.estadio-collapse[data-collapsed="false"] .estadio-collapse__chevron {
    transform: rotate(180deg);
}

.estadio-collapse__body {
    padding: 0.65rem;
    border-top: 1px solid rgba(255, 154, 235, 0.15);
}

.estadio-collapse__body .estadio-final-scores {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.estadio-collapse__body .estadio-final-score {
    margin: 0;
}

.estadio-podio-row--champion td {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.28), rgba(255, 92, 240, 0.18)) !important;
    font-weight: 800;
    font-size: 0.98rem;
    border-top: 2px solid rgba(255, 215, 0, 0.55);
    border-bottom: 2px solid rgba(255, 215, 0, 0.55);
}

.estadio-podio-row--champion .estadio-podio-pos {
    color: #ffd700;
    font-size: 1.15rem;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.45);
}

.estadio-podio-row--silver td {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.22), rgba(128, 0, 255, 0.1)) !important;
    font-weight: 700;
    font-size: 0.92rem;
    border-top: 1px solid rgba(192, 192, 192, 0.45);
}

.estadio-podio-row--silver .estadio-podio-pos {
    color: #e8e8e8;
    font-size: 1.05rem;
}

.estadio-podio-row--bronze td {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.22), rgba(128, 0, 255, 0.08)) !important;
    font-weight: 700;
    font-size: 0.9rem;
    border-top: 1px solid rgba(205, 127, 50, 0.4);
}

.estadio-podio-row--bronze .estadio-podio-pos {
    color: #cd7f32;
    font-size: 1.02rem;
}

.estadio-podio-row--top10 td {
    background: rgba(128, 0, 255, 0.14);
    font-weight: 600;
}

.estadio-podio-row--top10 .estadio-podio-pos {
    color: rgba(255, 154, 235, 0.95);
}

.estadio-podio-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.estadio-podio-pagination__info {
    font-size: 0.82rem;
    color: var(--v-text-secondary, rgba(226, 232, 240, 0.72));
}

.estadio-dia-section--live .estadio-dia-section__title {
    color: #ff6b2c;
}

.estadio-hint--inline {
    margin-top: 1rem;
    text-align: center;
}

@media (max-width: 1100px) {
    .estadio-standings-grid {
        grid-template-columns: repeat(2, minmax(300px, 360px));
    }
}

@media (max-width: 900px) {
    .estadio-page.vibra-section {
        margin-top: var(--v-space-1, 8px);
        padding-left: max(10px, env(safe-area-inset-left));
        padding-right: max(10px, env(safe-area-inset-right));
    }

    .estadio-stage {
        min-width: 0;
        overflow-x: clip;
    }

    .estadio-user-panel {
        width: 100%;
    }

    .estadio-login {
        flex-direction: column;
        align-items: stretch;
        padding: 0 0.15rem;
    }

    .estadio-input {
        flex: 1 1 auto;
        max-width: none;
        width: 100%;
        min-height: 44px;
        font-size: 16px;
    }

    .estadio-btn {
        min-height: 44px;
        width: 100%;
    }

    .estadio-user-info {
        width: 100%;
        padding: 0.75rem;
        gap: 0.5rem;
        justify-content: flex-start;
    }

    .estadio-user-info__meta {
        flex: 1;
        min-width: 0;
    }

    .estadio-user-info__name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .estadio-fases-wrap {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        width: 100%;
        margin-bottom: 0.85rem;
    }

    .estadio-fases-nav {
        width: 100%;
        flex: 1 1 auto;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0.25rem 0.15rem 0.45rem;
        max-width: 100%;
    }

    .estadio-fases-nav::-webkit-scrollbar {
        display: none;
    }

    .estadio-fases-meta {
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
    }

    .estadio-fase-pill {
        min-width: 4.6rem;
        min-height: 44px;
        padding: 0.45rem 0.35rem;
        font-size: 0.58rem;
    }

    .estadio-fase-pill--meta {
        flex: 1 1 0;
        max-width: none;
        min-width: 0;
    }

    .estadio-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        scrollbar-width: none;
        padding-bottom: 0.35rem;
        margin-bottom: 0.85rem;
    }

    .estadio-tabs::-webkit-scrollbar {
        display: none;
    }

    .estadio-tab {
        flex: 0 0 auto;
        min-width: 7rem;
        min-height: 44px;
        font-size: 0.72rem;
        padding: 0.55rem 0.65rem;
    }

    .estadio-hint {
        font-size: 0.82rem;
        line-height: 1.5;
        padding: 0 0.15rem;
        margin-bottom: 0.85rem;
    }

    .estadio-fase__grid,
    .estadio-fase__grid--mundial {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.85rem;
    }

    .estadio-match {
        padding: 0.75rem;
        min-width: 0;
    }

    .estadio-match__head {
        flex-direction: column;
        align-items: center;
        gap: 0.35rem;
        padding: 0.65rem 0.5rem;
        font-size: 0.78rem;
        text-align: center;
    }

    .estadio-match__team {
        max-width: 100%;
        word-break: break-word;
        line-height: 1.25;
        text-align: center;
    }

    .estadio-match__vs {
        font-size: 0.65rem;
        padding: 0.1rem 0;
    }

    .estadio-match__meta {
        font-size: 0.74rem;
        gap: 0.25rem;
        align-items: center;
        text-align: center;
    }

    .estadio-match__countdown {
        word-break: break-word;
        text-align: center;
    }

    .estadio-vote {
        min-height: 44px;
        font-size: 0.78rem;
        padding: 0.6rem 0.55rem;
    }

    .estadio-vote > span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
        flex: 1;
    }

    .estadio-hype__label {
        grid-template-columns: 1fr;
        gap: 0.12rem;
        font-size: 0.68rem;
    }

    .estadio-hype__label span {
        display: block;
    }

    .estadio-dia-section__title {
        font-size: 0.82rem;
        text-align: center;
        line-height: 1.35;
    }

    .estadio-fase__title {
        text-align: center;
        font-size: 0.92rem;
    }

    .estadio-proximo__inner {
        flex-direction: column;
        text-align: center;
        font-size: 0.82rem;
        padding: 0.65rem 0.75rem;
        gap: 0.35rem;
    }

    .estadio-result {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.5rem;
        padding: 0.85rem;
    }

    .estadio-result__pts {
        width: 100%;
        min-width: 0;
    }

    .estadio-standings-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: none;
        margin-inline: 0;
        gap: 0.75rem;
    }

    .estadio-standings {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .estadio-standings__table {
        font-size: 0.62rem;
        min-width: 280px;
    }

    .estadio-leaderboard-wrap {
        border-radius: 12px;
    }

    .estadio-leaderboard {
        font-size: 0.8rem;
    }

    .estadio-leaderboard th,
    .estadio-leaderboard td {
        padding: 0.55rem 0.45rem;
    }

    .estadio-bracket {
        flex-wrap: wrap;
        gap: 0.25rem;
        font-size: 0.72rem;
    }

    .estadio-toast {
        bottom: max(1rem, env(safe-area-inset-bottom));
        left: max(12px, env(safe-area-inset-left));
        right: max(12px, env(safe-area-inset-right));
        transform: none;
        width: auto;
        max-width: none;
    }
}

@media (max-width: 680px) {
    .estadio-standings-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: none;
        margin-inline: 0;
    }
}

@media (max-width: 600px) {
    .estadio-fase-pill {
        min-width: 4.25rem;
        font-size: 0.55rem;
    }

    .estadio-fase-pill__icon {
        font-size: 0.9rem;
    }

    .estadio-match__flag {
        width: 24px !important;
        height: auto !important;
    }

    .estadio-vote__flag {
        width: 20px !important;
        height: auto !important;
    }
}
