/**
 * Box Cricket Live Player Bidding System
 * Live TV / Projector Display Stylesheet (High Contrast, Ultra-Large Typography)
 */

body.live-body {
    background: radial-gradient(circle at 50% 20%, #1e1b4b 0%, #090d16 60%, #030712 100%);
    color: #f8fafc;
    min-height: 100vh;
    overflow-x: hidden;
    user-select: none;
}

/* Header bar */
.live-header {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid #312e81;
    padding: 0.75rem 2rem;
}

.live-title {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #f59e0b;
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

/* Live Main Grid */
.live-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

/* Player Display Card */
.player-live-card {
    background: rgba(30, 41, 59, 0.7);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.player-photo-container {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto 1.5rem;
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid #6366f1;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.35);
    background: #111827;
}

.player-photo-live {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-id-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.85);
    color: #fbbf24;
    font-weight: 800;
    font-size: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    border: 1px solid #fbbf24;
}

.player-name-live {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.player-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.live-meta-badge {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.player-specs-box {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 1.15rem;
}

/* Bidding Arena Card */
.bidding-live-card {
    background: rgba(15, 23, 42, 0.85);
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Base Price Pill */
.base-price-box {
    background: rgba(51, 65, 85, 0.6);
    border: 1px solid #475569;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.base-price-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: #94a3b8;
}

/* Current Bid Hero */
.current-bid-box {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 3px solid #f59e0b;
    border-radius: 20px;
    padding: 1.75rem;
    text-align: center;
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.25);
    position: relative;
    overflow: hidden;
}

.current-bid-label {
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #fbbf24;
    letter-spacing: 2px;
    margin-bottom: 0.25rem;
}

.current-bid-amount {
    font-size: 5rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 0 25px rgba(245, 158, 11, 0.5);
    font-variant-numeric: tabular-nums;
}

/* Leading Team Display */
.leading-team-box {
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid #10b981;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    animation: glow-green 2s infinite alternate;
}

@keyframes glow-green {
    0% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.2); }
    100% { box-shadow: 0 0 25px rgba(16, 185, 129, 0.45); }
}

.leading-team-name {
    font-size: 2.4rem;
    font-weight: 900;
    color: #10b981;
    text-transform: uppercase;
    line-height: 1.1;
}

/* Big Countdown Timer */
.timer-container {
    text-align: center;
    margin: 1.5rem 0;
}

.timer-digits {
    font-size: 4.8rem;
    font-weight: 900;
    font-family: 'Courier New', Courier, monospace;
    line-height: 1;
    padding: 0.5rem 1.5rem;
    border-radius: 16px;
    display: inline-block;
    background: rgba(0, 0, 0, 0.6);
    border: 3px solid #10b981;
    color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.timer-warning {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.5) !important;
}

.timer-critical {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.8) !important;
    animation: timer-pulse 0.6s infinite alternate;
}

@keyframes timer-pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.06); }
}

/* Big Status Banners for SOLD / UNSOLD */
.overlay-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 9999;
    padding: 3rem 5rem;
    border-radius: 25px;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 100px rgba(0,0,0,0.9);
}

.overlay-banner.show {
    transform: translate(-50%, -50%) scale(1);
}

.sold-banner {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
    border: 6px solid #10b981;
}

.unsold-banner {
    background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 100%);
    border: 6px solid #ef4444;
}

/* Recent Bid Ticker */
.bid-ticker-box {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    max-height: 130px;
    overflow-y: hidden;
}

.ticker-row {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(51, 65, 85, 0.4);
    font-size: 1.1rem;
}

.ticker-row:last-child {
    border-bottom: none;
}
