/* Live cricket page. Cards are plain .arena-card panes (glass comes from glass.css);
   rows inside use the inlay fill so nothing adds a second backdrop blur. */

.live-list { display: grid; gap: 16px; }
@media (min-width: 900px) {
    .live-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.live-card .card-head { flex-wrap: wrap; gap: 8px; }
.live-card .card-head h2 { min-width: 0; overflow-wrap: anywhere; }
.live-vs { color: var(--ink-3); font-weight: 600; font-size: .85em; margin: 0 4px; }
.live-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.live-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px; border-radius: 999px;
    font-size: .72rem; font-weight: 800; letter-spacing: .08em;
    color: #fff; background: var(--rose, #FF4D6A);
}
.live-pulse {
    width: 7px; height: 7px; border-radius: 50%; background: #fff;
    animation: live-pulse 1.4s ease-in-out infinite;
}
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .live-pulse { animation: none; } }

.live-team {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    padding: 10px 14px; border-radius: var(--glass-radius-sm, 16px);
    background: var(--glass-inlay); margin-bottom: 8px;
}
.live-team-name { font-weight: 700; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.live-team-score { white-space: nowrap; color: var(--ink); font-variant-numeric: tabular-nums; }
.live-team-score strong { font-size: 1.25rem; }
.live-team.is-batting { box-shadow: inset 3px 0 0 var(--ember); }
.live-bat-dot { color: var(--ember); font-size: .5rem; vertical-align: middle; margin-right: 8px; }

.live-status { margin: 10px 2px 4px; color: var(--ink); }
.live-now {
    display: flex; flex-wrap: wrap; gap: 6px 18px;
    margin: 8px 2px; color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.live-now i { color: var(--ember); margin-right: 4px; }
.live-muted { color: var(--ink-3); }
.live-started { font-size: .8rem; margin-top: 8px; }

.live-details { margin-top: 10px; }
.live-details summary {
    cursor: pointer; font-weight: 700; color: var(--ember);
    padding: 6px 2px; list-style: none;
}
.live-details summary::-webkit-details-marker { display: none; }
.live-details summary::before { content: "\25B8"; display: inline-block; margin-right: 6px; transition: transform .15s; }
.live-details[open] summary::before { transform: rotate(90deg); }

.live-sc-wrap { display: grid; gap: 14px; margin-top: 6px; }
.live-sc-title { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.live-sc { width: 100%; border-collapse: collapse; font-size: .85rem; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.live-sc th, .live-sc td { padding: 5px 6px; text-align: right; border-bottom: 1px solid var(--ink-4); color: var(--ink-2); }
.live-sc th:first-child, .live-sc td:first-child { text-align: left; color: var(--ink); overflow-wrap: anywhere; }
.live-sc th { font-weight: 700; color: var(--ink-3); }
.live-notout { color: var(--ember); font-weight: 800; }

.live-empty { text-align: center; padding: 28px 12px; display: grid; gap: 6px; color: var(--ink); }
.live-empty .bi { font-size: 2rem; color: var(--ember); }

.live-result { padding: 10px 2px; border-bottom: 1px solid var(--ink-4); color: var(--ink); overflow-wrap: anywhere; }
.live-result:last-child { border-bottom: 0; }

.live-pool { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 6px 2px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.live-pool > i { color: var(--ember); }
.live-team-name a, .live-sc a { color: inherit; text-decoration: none; }
.live-team-name a:hover, .live-sc a:hover { color: var(--ember); text-decoration: underline; }
a.live-result:hover { background: var(--glass-inlay); border-radius: 10px; }

/* ---------------------------------------------------------------- broadcast scoreboard (lc-*) */
.lc-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; }
.lc-hero-meta { display: grid; justify-items: end; gap: 4px; font-size: .8rem; }
.lc-count {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
    background: var(--rose, #FF4D6A); color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .02em;
}
.lc-count.is-idle { background: var(--glass-inlay); color: var(--ink-2); }
.lc-count.is-idle .live-pulse { background: var(--ink-3); animation: none; }

.lc-grid { display: grid; gap: 16px; }
@media (min-width: 980px) { .lc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lc-empty-card { grid-column: 1 / -1; }

.lc { display: grid; gap: 12px; padding: 16px; }
.lc-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .78rem; }
.lc-meta { color: var(--ink-2); font-weight: 700; }
.lc-started { margin-left: auto; }

.lc-teams { display: grid; gap: 6px; }
.lc-team {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: var(--glass-radius-sm, 16px); background: var(--glass-inlay);
}
.lc-team.is-batting { box-shadow: inset 3px 0 0 var(--ember); }
.lc-team-name { font-weight: 800; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-team-name:hover { color: var(--ember); }
.lc-chip { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ember); }
.lc-score { display: inline-flex; align-items: baseline; gap: 6px; justify-self: end; color: var(--ink); }
.lc-score strong { font-size: 1.55rem; line-height: 1; letter-spacing: -.01em; }
.lc-score small, .lc-ytb { color: var(--ink-3); font-size: .78rem; }
.lc-team:not(.is-batting) .lc-score strong { font-size: 1.2rem; color: var(--ink-2); }


.lc-status { display: grid; gap: 6px; color: var(--ink); font-size: .92rem; }
.lc-rates { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .78rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lc-progress { height: 6px; border-radius: 999px; background: var(--ink-4); overflow: hidden; }
.lc-progress span { display: block; height: 100%; background: #D9560A; border-radius: 999px; transition: width .4s ease; }

.lc-label { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.lc-balls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.lc-over { display: inline-flex; align-items: center; gap: 4px; }
.lc-ov { font-size: .68rem; color: var(--ink-3); margin-right: 2px; font-variant-numeric: tabular-nums; }
.lc-ball {
    display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 5px; border-radius: 999px;
    font-size: .78rem; font-weight: 800; background: var(--glass-inlay); color: var(--ink); font-variant-numeric: tabular-nums;
}
.lc-ball.is-0 { color: var(--ink-3); }
.lc-ball.is-4 { background: #2F5FCB; color: #fff; }
.lc-ball.is-6 { background: #D9560A; color: #fff; }
.lc-ball.is-w { background: #C8102E; color: #fff; }
.lc-ball.is-x { background: transparent; box-shadow: inset 0 0 0 1px var(--ink-4); color: var(--ink-2); }

.lc-crease { display: grid; gap: 6px; }
@media (min-width: 560px) { .lc-crease { grid-template-columns: 1fr 1fr; } }
.lc-player { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--glass-inlay); }
.lc-player .lc-av { grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--ink-4); font-weight: 800; color: var(--ink-2); }
.lc-player .lc-av img { width: 100%; height: 100%; object-fit: cover; }
.lc-pinfo { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.lc-pinfo a { color: var(--ink); font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-pinfo a:hover { color: var(--ember); }
.lc-role { font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.lc-pstat { display: flex; align-items: baseline; gap: 6px; color: var(--ink); font-variant-numeric: tabular-nums; }
.lc-pstat strong { font-size: 1.05rem; }
.lc-pstat small { color: var(--ink-3); font-size: .74rem; }

.lc-pool { display: grid; gap: 6px; }
.lc-pool-head { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; }
.lc-pool-bar { display: flex; gap: 2px; height: 8px; }
.lc-pool-bar span { border-radius: 4px; min-width: 4px; }
.lc-pool-bar .is-a, .lc-pool-legend i.is-a { background: #D9560A; }
.lc-pool-bar .is-b, .lc-pool-legend i.is-b { background: #3B4F7A; }
.lc-pool-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .78rem; color: var(--ink-2); }
.lc-pool-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.lc-results { display: grid; gap: 8px; }
@media (min-width: 900px) { .lc-results { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lc-result { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--glass-inlay); color: var(--ink); text-decoration: none; }
a.lc-result:hover { box-shadow: inset 0 0 0 1px var(--ink-4); }
.lc-rteams { display: grid; gap: 4px; }
.lc-rside { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.lc-rside.is-won { color: var(--ink); font-weight: 800; }
.lc-rname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-rside small { color: var(--ink-3); font-size: .74rem; }
.lc-rfoot { display: flex; justify-content: space-between; gap: 8px; font-size: .78rem; }
@media (prefers-reduced-motion: reduce) { .lc-progress span { transition: none; } }

/* ---- Just-finished match: result card (shown ~20s, then it moves to Recent Results) ---- */
.lc-final {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
    font-size: .72rem; font-weight: 800; color: #fff; background: var(--ink);
}
.lc-final i { color: #F5B82E; }
.lc-team.is-won { box-shadow: inset 3px 0 0 #E7B33A; background: linear-gradient(90deg, rgba(255, 224, 138, .55), rgba(255, 255, 255, 0) 70%), var(--glass-inlay); }
.lc-chip--won { color: #A8740A; display: inline-flex; gap: 4px; align-items: center; }
.lc-result-banner {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 16px; border-radius: 16px;
    background: linear-gradient(180deg, #FFD976, #F5B82E 55%, #D99A12);
    color: #2A1A00; font-weight: 800; font-size: 1.05rem; text-align: center;
    box-shadow: 0 8px 22px rgba(201, 138, 11, .3), inset 0 1px 0 rgba(255, 255, 255, .6);
    animation: lc-result-in .45s cubic-bezier(.2, .8, .2, 1) both;
}
/* One clean pass of light across the banner after it lands (transform only). */
.lc-result-banner::after {
    content: ""; position: absolute; top: -50%; left: 0; width: 28%; height: 200%; pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.55), rgba(255,255,255,0));
    transform: translateX(-160%) rotate(18deg);
    animation: lc-result-shine 1.3s cubic-bezier(.45, 0, .2, 1) .5s both;
}
.lc-result-banner i { font-size: 1.2rem; }
@keyframes lc-result-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lc-result-shine { to { transform: translateX(480%) rotate(18deg); } }
.lc.is-final .live-details { display: none; }
@media (prefers-reduced-motion: reduce) { .lc-result-banner { animation: none; } }

/* ---- Sections: Tournament / Live now / Waiting ---- */
.lc-sections { display: grid; gap: 22px; }
.lc-section { display: grid; gap: 12px; }
.lc-section-h { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.lc-section-h i { color: var(--ember); }
.lc-section--tournament {
    padding: 14px; border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 224, 138, .55), rgba(255, 224, 138, .12));
    box-shadow: inset 0 0 0 1.5px rgba(231, 179, 58, .8), 0 14px 34px rgba(201, 138, 11, .2);
}
.lc-section--tournament > .lc-section-h { color: #5A3C00; }
.lc-section--tournament > .lc-section-h i { color: #C98A0B; }

/* ---- Waiting rooms ---- */
.lc-wait-list { display: grid; gap: 8px; }
@media (min-width: 900px) { .lc-wait-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lc-wait {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .48));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 6px 16px rgba(150, 105, 10, .12);
}
.lc-wait.is-tournament { box-shadow: inset 0 0 0 1.5px rgba(231, 179, 58, .8), 0 6px 16px rgba(201, 138, 11, .18); }
.lc-wait-main { display: grid; gap: 2px; min-width: 0; font-size: .82rem; }
.lc-wait-side { display: grid; justify-items: end; gap: 4px; font-size: .74rem; }
.lc-wait-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; font-size: .72rem; white-space: nowrap; }
.lc-wait-dots { display: inline-flex; gap: 2px; }
.lc-wait-dots i { width: 4px; height: 4px; border-radius: 50%; background: #F5B82E; animation: lc-dot 1.2s ease-in-out infinite; }
.lc-wait-dots i:nth-child(2) { animation-delay: .2s; }
.lc-wait-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes lc-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.lc-wait-hint { margin: 0; font-size: .8rem; }
@media (prefers-reduced-motion: reduce) { .lc-wait-dots i { animation: none; opacity: .8; } }

/* ---- Open a match from /live, and the /live/watch page ---- */
.lc.is-clickable { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.lc.is-clickable:hover { transform: translateY(-2px); }
.lc-watch { justify-self: start; display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; font-size: .8rem; text-decoration: none; }
.lc-watch:hover { color: #fff; box-shadow: 0 0 0 2px #F5B82E; }
.lc-grid--one { grid-template-columns: minmax(0, 1fr) !important; }
.lc--focus .lc-score strong { font-size: 1.9rem; }
.lc--focus .lc-ball { min-width: 32px; height: 32px; font-size: .9rem; }
.watch-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
#live-watch { display: grid; gap: 16px; }
@media (prefers-reduced-motion: reduce) { .lc.is-clickable { transition: none; } }

/* ===== Watch-page moments (watch-fx.js) =====
   FOUR / SIX / OUT: the moment's artwork (images/fx) flies in, the word slams down over it, the
   player's name rises underneath; ~2s, then it all lifts away. Transform/opacity only. */
.fx-layer { position: fixed; inset: 0; z-index: 2000; pointer-events: none; display: grid; place-items: center; overflow: hidden; }
/* A soft dark scrim lifts the moment off the page behind it (no blur: that would cost a frame). */
.fx-layer:not(:empty)::before {
    content: ""; position: absolute; inset: 0; place-self: stretch;   /* the layer centres its items; this one fills it */
    background: radial-gradient(85% 65% at 50% 48%, rgba(20, 13, 2, .86), rgba(20, 13, 2, .62) 60%, rgba(20, 13, 2, .45));
    animation: fx-scrim 2.3s ease-out both;
}
@keyframes fx-scrim { 0% { opacity: 0; } 10%, 82% { opacity: 1; } 100% { opacity: 0; } }
.fx { position: relative; display: grid; justify-items: center; width: min(92vw, 520px); animation: fx-leave .4s ease-in 1.9s both; }
.fx-glow {
    position: absolute; left: 50%; top: 42%; width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, var(--fx-glow), rgba(0,0,0,0) 70%);
    animation: fx-fade .3s ease-out both;
}
.fx-art {
    position: relative; width: min(70vw, 340px); height: auto; aspect-ratio: 1; object-fit: contain;
    filter: drop-shadow(0 18px 30px rgba(0,0,0,.28));
    animation: fx-art-in .55s cubic-bezier(.2, 1.1, .3, 1) both, fx-drift 1.9s ease-out .55s both;
}
.fx--four .fx-art { --fx-from: translate(-55%, 6%) rotate(-6deg) scale(.6); --fx-to: translate(5%, 0); }
.fx--six  .fx-art { --fx-from: translate(-40%, 40%) rotate(-12deg) scale(.55); --fx-to: translate(4%, -5%); }
.fx--out  .fx-art { --fx-from: translate(0, 10%) scale(.4); --fx-to: translate(0, 0) scale(1.03); }
.fx-word {
    position: relative; margin-top: -18%;
    font-family: 'Bangers', 'Nunito', sans-serif; font-size: clamp(4.4rem, 21vw, 7.6rem); line-height: .9; letter-spacing: .04em;
    color: #fff; -webkit-text-stroke: 4px var(--fx-ink); paint-order: stroke fill;
    text-shadow: 0 7px 0 var(--fx-ink), 0 16px 34px rgba(0,0,0,.35);
    animation: fx-slam .42s cubic-bezier(.2, .9, .3, 1.25) .14s both;
}
.fx--out .fx-word { animation: fx-slam .42s cubic-bezier(.2, .9, .3, 1.25) .14s both, fx-shake .4s ease-in-out .56s both; }
.fx-who {
    position: relative; margin-top: 12px; padding: 6px 16px; border-radius: 999px; max-width: 84vw;
    background: var(--fx-ink); color: #fff; font-weight: 800; font-size: .95rem; box-shadow: 0 10px 24px rgba(0,0,0,.25);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    animation: fx-rise .45s cubic-bezier(.2, .8, .2, 1) .38s both;
}
.fx--four { --fx-ink: #1E3A8A; --fx-glow: rgba(59, 130, 246, .42); }
.fx--six  { --fx-ink: #9A3412; --fx-glow: rgba(249, 115, 22, .45); }
.fx--out  { --fx-ink: #7F1D1D; --fx-glow: rgba(220, 38, 38, .42); }
@keyframes fx-fade { from { opacity: 0; } }
@keyframes fx-art-in { from { opacity: 0; transform: var(--fx-from); } to { opacity: 1; transform: none; } }
@keyframes fx-drift { to { transform: var(--fx-to); } }
@keyframes fx-slam { from { opacity: 0; transform: scale(2.1); } 60% { opacity: 1; } to { opacity: 1; transform: scale(1); } }
@keyframes fx-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fx-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-9px) rotate(-2deg); } 45% { transform: translateX(8px) rotate(2deg); } 70% { transform: translateX(-5px); } }
@keyframes fx-leave { to { opacity: 0; transform: translateY(-24px) scale(.96); } }
.fx-confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2001; pointer-events: none; }
