/* ═══════════════════════════════════════════════════════════════════════════
   CHROME THEME
   Flat dark rounded card; avatars in metallic "chrome" rings (left glows pink,
   right glows cyan); a single big gift beside each avatar; "Round" + big timer
   centered; a full-width split score bar flush to the card bottom (left = pink,
   right = cyan) with a sparkle cluster sitting on the moving seam.

   Built purely as CSS overrides on the shared DOM, loaded AFTER base.css. The
   silver ring and the centre sparkles are CSS approximations — drop in real
   SVG/PNG assets later for a pixel-perfect look (ring on .team-avatar, sparkle
   on .clash-indicator::before).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Side labels (injected by chrome-labels.js, toggled via pk_media) ── */
.pk-side-label {
    position: absolute;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    pointer-events: none;
    z-index: 20;
    top: -36px;
    max-width: 220px;
    overflow: hidden;
    white-space: nowrap;
}

.pk-side-label.left {
    left: 34px;
}

.pk-side-label.right {
    right: 34px;
}

.pk-label-inner {
    display: inline-block;
    white-space: nowrap;
}

@keyframes pk-label-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(var(--pk-marquee-dist, 0px));
    }
}

/* ── Card: flat translucent dark, fully rounded, no chrome/border ── */
.pk-main-card {
    position: relative;
    width: 100%;
    margin: 0;
    height: 220px;
    min-height: 220px;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 40px;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); */
    overflow: visible;
}

/* ── Top row overlaid on the card: avatars at the corners, round centered ── */
.pk-top-row {
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0 34px;
    z-index: 12;
    align-items: flex-start;
}

.idol-name-box {
    display: none;
}


/* ── Avatars: minimal-palette colored rings + pulse glow ── */
.avatar-container {
    width: 120px;
    height: 120px;
}

.avatar-frame {
    display: none;
}

/* Base avatar — semi-transparent background, colored border per-side below */
.team-avatar {
    width: 120px;
    height: 120px;
    min-width: 120px;
    min-height: 120px;
    background: rgba(0, 0, 0, 0.35);
    border: 6px solid transparent;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.3s ease;
}

/* Left (defender) — minimal blue #2f6fed (matches the left score bar + indicator) */
.pk-team-profile.left .team-avatar {
    border-color: #2f6fed;
    box-shadow:
        0 0 0 2px rgba(47, 111, 237, 0.35),
        0 0 0 6px rgba(47, 111, 237, 0.12),
        0 6px 20px rgba(0, 0, 0, 0.6);
    animation: chrome-avatar-pulse-blue 2.8s ease-in-out infinite;
}

/* Right (attacker) — minimal pink #e0457f (matches the right score bar + indicator) */
.pk-team-profile.right .team-avatar {
    border-color: #e0457f;
    box-shadow:
        0 0 0 2px rgba(224, 69, 127, 0.35),
        0 0 0 6px rgba(224, 69, 127, 0.12),
        0 6px 20px rgba(0, 0, 0, 0.6);
    animation: chrome-avatar-pulse-pink 2.8s ease-in-out infinite;
}

.pk-team-profile.left .avatar-container {
    filter: drop-shadow(0 0 14px rgba(47, 111, 237, 0.75)) drop-shadow(0 0 28px rgba(47, 111, 237, 0.35));
}

.pk-team-profile.right .avatar-container {
    filter: drop-shadow(0 0 14px rgba(224, 69, 127, 0.75)) drop-shadow(0 0 28px rgba(224, 69, 127, 0.35));
}

@keyframes chrome-avatar-pulse-blue {

    0%,
    100% {
        box-shadow:
            0 0 0 2px rgba(47, 111, 237, 0.35),
            0 0 0 6px rgba(47, 111, 237, 0.12),
            0 6px 20px rgba(0, 0, 0, 0.6);
    }

    50% {
        box-shadow:
            0 0 0 3px rgba(47, 111, 237, 0.65),
            0 0 0 10px rgba(47, 111, 237, 0.22),
            0 0 32px rgba(47, 111, 237, 0.28),
            0 6px 20px rgba(0, 0, 0, 0.6);
    }
}

@keyframes chrome-avatar-pulse-pink {

    0%,
    100% {
        box-shadow:
            0 0 0 2px rgba(224, 69, 127, 0.35),
            0 0 0 6px rgba(224, 69, 127, 0.12),
            0 6px 20px rgba(0, 0, 0, 0.6);
    }

    50% {
        box-shadow:
            0 0 0 3px rgba(224, 69, 127, 0.65),
            0 0 0 10px rgba(224, 69, 127, 0.22),
            0 0 32px rgba(224, 69, 127, 0.28),
            0 6px 20px rgba(0, 0, 0, 0.6);
    }
}

/* ── Gifts: one large gift inset beside each avatar ── */
.pk-card-side {
    position: absolute;
    top: 12px;
    height: 120px;
    width: 150px;
    align-items: center;
    overflow: visible;
    z-index: 11;
}

.pk-card-side.left {
    left: 175px;
    justify-content: flex-start;
}

.pk-card-side.right {
    right: 175px;
    justify-content: flex-end;
}

.gift-strip-side {
    width: 150px;
    height: 120px;
}

.gift-icon {
    width: 110px;
    height: 110px;
}

/* ── Timer block: centred in the upper card ── */
.pk-card-content {
    height: 150px;
    padding: 22px 0 0 0;
    justify-content: center;
    align-items: flex-start;
}

.pk-card-center {
    flex: none;
}

.pk-timer {
    font-size: 96px;
    font-weight: 700;
}

/* ── Score bar: full-width, flush to the card bottom, split pink | cyan ── */
.score-section {
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
}


.score-bar-wrapper {
    height: 70px;
}

.pk-score-bar {
    height: 70px;
    border-radius: 0 0 40px 40px;
    overflow: visible;
    background: transparent;
}

/* Left (defender) → cyan, bottom-left rounded — matches the left indicator video. */
.score-side.blue {
    background: linear-gradient(90deg, #00c7f0 0%, #2ffefb 100%);
    border-radius: 0 0 0 40px;
}

/* Right (attacker) → pink, bottom-right rounded — matches the right indicator video. */
.score-side.pink {
    background: linear-gradient(90deg, #fe1494 0%, #ea45a7 100%);
    border-radius: 0 0 40px 0;
}

.score-label-left,
.score-label-right {
    font-size: 48px;
}

/* ── Score bar video overlays (injected by animations/bar-video.js) ── */
/* Wrapper: relative anchor + clip videos to the bar's rounded shape */
.score-bar-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 40px 40px;
}

.bar-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 6;
    transition: opacity 0.3s ease;
    will-change: opacity, clip-path;
}

.bar-video-right {
    transform: scaleX(-1) translateZ(0);
}

/* ── Clash video seam (clash-video.js injects <video> here) ── */
.clash-indicator {
    display: block;
    position: relative;
    width: 0;
    overflow: visible;
    z-index: 14;
    align-self: center;
}