/* Court Champions — broadcast leaderboard podium (shared) */

.lb-podium {
    --lb-ink: #09090B;
    --lb-field: #0F9F6E;
    --lb-field-deep: #073b2e;
    --lb-accent: #D9F114;
    --lb-silver: #e4e4e7;
    --lb-bronze: #34d399;
    --lb-card: rgba(9, 9, 11, 0.72);
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(217, 241, 20, 0.16), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(15, 159, 110, 0.22), transparent 50%),
        linear-gradient(165deg, #0a2f28 0%, #0c4a3a 42%, #06241c 100%);
    box-shadow: 0 18px 40px rgba(7, 59, 46, 0.28);
}

.lb-podium__sponsors {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(0.85rem, 3.5vw, 2rem);
    margin: 1.15rem auto 0;
    max-width: 42rem;
    padding: 0.85rem 0.5rem 0.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lb-podium__sponsors-label {
    width: 100%;
    margin: 0 0 0.35rem;
    text-align: center;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.lb-podium__sponsor {
    flex: 0 1 auto;
    max-width: min(28%, 140px);
    max-height: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.lb-podium__inner {
    position: relative;
    z-index: 1;
    padding: 1.15rem 1rem 1.25rem;
}

.lb-podium__head {
    text-align: center;
    margin-bottom: 1.1rem;
}

.lb-podium__title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.65rem, 2.5vw, 1.25rem);
    margin: 0.15rem 0 0.35rem;
}

.lb-podium__title-logo {
    flex: 0 0 auto;
    width: auto;
    height: clamp(3.1rem, 9vw, 4.5rem);
    max-width: min(34vw, 160px);
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.lb-podium__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.45rem;
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lb-ink);
    background: var(--lb-accent);
    box-shadow: 0 0 18px rgba(217, 241, 20, 0.35);
}

.lb-podium__kicker i { font-size: 0.7rem; }

.lb-podium__title {
    margin: 0;
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: clamp(1.55rem, 4.2vw, 2.45rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 0 24px rgba(217, 241, 20, 0.25);
    line-height: 1;
    flex: 0 1 auto;
    min-width: 0;
}

.lb-podium__sub {
    margin: 0.4rem 0 0;
    font-size: 0.78rem;
    font-weight: 650;
    color: rgba(255, 255, 255, 0.72);
}

/* Champion hero */
.lb-champ {
    --saber: var(--lb-accent);
    --saber-speed: 2.4s;
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.85rem 1rem;
    align-items: center;
    margin: 0 auto 1rem;
    max-width: 36rem;
    padding: 1.05rem 1.15rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(9, 9, 11, 0.92), rgba(24, 24, 27, 0.88));
    isolation: isolate;
    overflow: hidden;
    animation: lb-rise 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.lb-champ::before {
    content: "";
    position: absolute;
    inset: -60%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg 250deg,
        var(--saber) 285deg,
        #fff 308deg,
        var(--saber) 332deg,
        transparent 360deg
    );
    animation: lb-saber-spin var(--saber-speed) linear infinite;
    z-index: 0;
    opacity: 0.95;
}

.lb-champ::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 12% 20%, rgba(217, 241, 20, 0.18), transparent 45%),
        linear-gradient(145deg, #141416 0%, #09090B 100%);
    z-index: 1;
}

.lb-champ > * { position: relative; z-index: 2; }

.lb-champ__rank {
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: clamp(2.6rem, 8vw, 3.4rem);
    line-height: 0.85;
    letter-spacing: 0.04em;
    color: var(--lb-accent);
    text-shadow: 0 0 20px rgba(217, 241, 20, 0.45);
}

.lb-champ__meta { min-width: 0; }

.lb-champ__place {
    display: inline-block;
    margin-bottom: 0.25rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--lb-accent);
}

.lb-champ__names {
    font-size: clamp(0.95rem, 2.8vw, 1.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    word-break: break-word;
}

.lb-champ__names span {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 650;
    margin: 0 0.25rem;
}

.lb-champ__icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--lb-ink);
    background: var(--lb-accent);
    box-shadow:
        0 0 0 3px rgba(217, 241, 20, 0.25),
        0 0 28px rgba(217, 241, 20, 0.45);
    animation: lb-pulse 2.4s ease-in-out infinite;
}

/* Runner tiles */
.lb-rail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
    gap: 0.65rem;
    margin: 0 auto;
    max-width: 42rem;
}

.lb-tile {
    --saber: #e4e4e7;
    --saber-speed: 3s;
    --tile-accent: #e4e4e7;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 7.5rem;
    padding: 0.85rem 0.7rem 0.75rem;
    border-radius: 14px;
    background: transparent;
    animation: lb-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.lb-tile--2 {
    --saber: #f4f4f5;
    --tile-accent: #f4f4f5;
    --saber-speed: 2.8s;
    animation-delay: 0.08s;
}
.lb-tile--3 {
    --saber: #34d399;
    --tile-accent: #34d399;
    --saber-speed: 3.1s;
    animation-delay: 0.14s;
}
.lb-tile--4 {
    --saber: #D9F114;
    --tile-accent: #D9F114;
    --saber-speed: 3.4s;
    animation-delay: 0.2s;
}

.lb-tile::before {
    content: "";
    position: absolute;
    inset: -55%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg 255deg,
        var(--saber) 285deg,
        #fff 310deg,
        var(--saber) 335deg,
        transparent 360deg
    );
    animation: lb-saber-spin var(--saber-speed) linear infinite;
    z-index: 0;
    opacity: 0.9;
}

.lb-tile::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 40%),
        linear-gradient(160deg, rgba(24, 24, 27, 0.95), rgba(9, 9, 11, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    z-index: 1;
}

.lb-tile > * { position: relative; z-index: 2; }

.lb-tile__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
}

.lb-tile__rank {
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: 1.65rem;
    line-height: 1;
    letter-spacing: 0.04em;
    color: var(--tile-accent);
    text-shadow: 0 0 12px color-mix(in srgb, var(--tile-accent) 55%, transparent);
}

.lb-tile__medal {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    color: var(--lb-ink);
    background: var(--tile-accent);
    box-shadow: 0 0 12px color-mix(in srgb, var(--tile-accent) 40%, transparent);
}

.lb-tile__place {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.lb-tile__names {
    margin-top: auto;
    font-size: 0.72rem;
    font-weight: 750;
    color: #fff;
    line-height: 1.3;
    word-break: break-word;
}

.lb-tile__names span {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    margin: 0 0.15rem;
}

/* Standings strip removed — podium cards are the sole placement display */

@keyframes lb-saber-spin {
    to { transform: rotate(360deg); }
}

@keyframes lb-rise {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes lb-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(217, 241, 20, 0.25), 0 0 22px rgba(217, 241, 20, 0.4); }
    50% { box-shadow: 0 0 0 5px rgba(217, 241, 20, 0.18), 0 0 32px rgba(217, 241, 20, 0.55); }
}

@media (max-width: 640px) {
    .lb-podium__inner { padding: 1rem 0.75rem 1.1rem; }
    .lb-podium__title-row {
        gap: 0.45rem;
    }
    .lb-podium__title-logo {
        height: 2.75rem;
        max-width: 28vw;
    }
    .lb-champ {
        grid-template-columns: auto 1fr;
        gap: 0.65rem 0.75rem;
    }
    .lb-champ__icon {
        grid-column: 1 / -1;
        justify-self: start;
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.15rem;
    }
    .lb-rail { gap: 0.45rem; }
    .lb-tile {
        min-height: 6.75rem;
        padding: 0.7rem 0.55rem 0.65rem;
    }
    .lb-tile__names { font-size: 0.65rem; }
    .lb-tile__rank { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
    .lb-champ,
    .lb-tile,
    .lb-champ__icon { animation: none; }
    .lb-champ::before,
    .lb-tile::before {
        animation: none;
        background: conic-gradient(from 210deg, transparent 0 55%, var(--saber) 70%, #fff 80%, var(--saber) 90%, transparent 100%);
    }
}
