.live-page {
    min-height: 80vh;
    padding: 2rem 0 3%;
    padding-top: 6rem;
}

@media (max-width: 768px) {
    .live-page {
        padding-top: 5.5rem;
    }
}

@media (max-width: 576px) {
    .live-page {
        padding-top: 5.25rem;
    }
}

.live-hero {
    background: linear-gradient(135deg, #0066FF 0%, #FF6B00 60%, #00CC66 100%);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.live-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
}

.live-hero::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.live-hero > * {
    position: relative;
    z-index: 1;
}

.live-hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.5rem;
}

.live-hero p {
    color: rgba(255,255,255,0.82);
    font-size: 1rem;
    margin: 0;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    margin-bottom: 1.2rem;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: #ff3b3b;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff3b3b;
    animation: pulse-dot 1.2s infinite;
    display: inline-block;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.6; }
}

.refresh-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.refresh-bar .countdown {
    font-weight: 700;
    color: var(--blue-primary);
}

.btn-refresh {
    background: var(--gradient-blue, linear-gradient(135deg,#0066FF,#00CCFF));
    color: #fff;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}

.btn-refresh:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.live-race-block {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    border: 2px solid transparent;
    background:
        linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
        linear-gradient(135deg, #0066FF, #FF6B00, #00CC66) border-box;
    box-shadow: 0 8px 40px rgba(0,102,255,0.10);
}

.race-block-header {
    background: linear-gradient(135deg, #0066FF 0%, #FF6B00 100%);
    padding: 1.2rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.race-block-header .race-block-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
}

.race-block-header .race-block-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.race-block-header .meta-pill {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.race-block-body {
    padding: 1.5rem 1.75rem;
}

.progress-bar-wrap {
    margin-bottom: 1.5rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.custom-progress {
    height: 8px;
    border-radius: 4px;
    background: rgba(0,102,255,0.1);
    overflow: hidden;
}

.custom-progress-bar {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #0066FF, #FF6B00);
    transition: width 0.6s ease;
}

.live-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.live-table thead tr {
    border-bottom: 2px solid rgba(0,102,255,0.15);
}

.live-table thead th {
    padding: 0.65rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-align: left;
}

.live-table tbody tr {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background 0.2s;
}

.live-table tbody tr:hover {
    background: rgba(0,102,255,0.04);
}

.live-table td {
    padding: 0.7rem 0.85rem;
    color: var(--text-body);
    vertical-align: middle;
}

.live-table tr.row-gold { background: rgba(255,215,0,0.06); }
.live-table tr.row-silver { background: rgba(192,192,192,0.06); }
.live-table tr.row-bronze { background: rgba(205,127,50,0.06); }

.pos-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.82rem;
}

.pos-badge.gold { background: rgba(255,215,0,0.2); color: #b8860b; border: 1.5px solid rgba(255,215,0,0.5); }
.pos-badge.silver { background: rgba(192,192,192,0.2); color: #666; border: 1.5px solid rgba(192,192,192,0.5); }
.pos-badge.bronze { background: rgba(205,127,50,0.2); color: #8b4513; border: 1.5px solid rgba(205,127,50,0.5); }
.pos-badge.regular { background: rgba(0,102,255,0.08); color: var(--text-muted); border: 1.5px solid rgba(0,102,255,0.15); }

.live-time {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--green-primary, #00CC66);
    font-size: 0.95rem;
}

.bib-badge {
    background: rgba(255,107,0,0.12);
    color: var(--orange-primary, #FF6B00);
    border: 1px solid rgba(255,107,0,0.25);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
}

.gender-badge.male { color: #1e90ff; }
.gender-badge.female { color: #ff69b4; }

.no-finishers {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
}

.no-finishers i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
    opacity: 0.4;
}

.live-empty {
    text-align: center;
    padding: 5rem 1rem;
}

.live-empty i {
    font-size: 4rem;
    color: var(--text-muted);
    opacity: 0.35;
    margin-bottom: 1.25rem;
    display: block;
}

.live-empty h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-body);
    margin-bottom: 0.5rem;
}

.live-empty p {
    color: var(--text-muted);
    font-size: 0.97rem;
    max-width: 400px;
    margin: 0 auto 1.5rem;
}
