/* --- Live Workout View --- */
.live-workout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.live-workout-title {
    font-size: 28px;
    font-weight: 500;
    color: #5c6078;
}

.live-workout-total-time {
    font-size: 28px;
    color: #e2e4ea;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.live-profile-container {
    position: relative;
    background: #1E2130;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 16px 12px 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.live-profile {
    display: flex;
    align-items: flex-end;
    height: 180px;
    gap: 1px;
    position: relative;
}

.live-profile-bar {
    min-width: 2px;
    border-radius: 3px 3px 0 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.live-profile-bar .bar-label {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    z-index: 1;
}

.live-profile-bar .bar-label.bar-label-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    top: auto;
    bottom: 12px;
    left: 50%;
    right: auto;
    translate: -50% 0;
    font-size: 10px;
    display: block;
    overflow: hidden;
    text-overflow: clip;
    text-align: center;
}

.live-profile-bar .bar-progress {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
    transition: width 0.5s linear;
}

.live-profile-bar.current {
    box-shadow: 0 0 6px rgba(102, 126, 234, 0.25);
    outline: 1px solid rgba(102, 126, 234, 0.5);
    outline-offset: -1px;
    z-index: 2;
}

.live-current-interval {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 20px;
    background: #1E2130;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.live-power-display {
    text-align: center;
}

.live-power-value {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    color: #e2e4ea;
}

.live-power-unit {
    font-size: 14px;
    color: #5c6078;
    margin-top: 4px;
}

/* Intensity controls (below interval box, centered) */
.live-intensity-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-basis: 100%;
    margin-top: 8px;
}

.btn-intensity-sm {
    padding: 8px 18px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    min-width: 44px;
    background: rgba(102, 126, 234, 0.12);
    color: #667eea;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-intensity-sm:hover {
    background: rgba(102, 126, 234, 0.22);
}

.intensity-label-sm {
    font-size: 16px;
    font-weight: 700;
    color: #8b8fa3;
    min-width: 50px;
    text-align: center;
}

.live-zone-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    color: white;
    font-weight: 700;
    font-size: 18px;
    white-space: nowrap;
    align-self: center;
}

.live-timer-display {
    text-align: center;
}

.live-timer-countdown {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    color: #e2e4ea;
    font-variant-numeric: tabular-nums;
}

.live-timer-label {
    font-size: 14px;
    color: #5c6078;
    margin-top: 4px;
}

.live-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.live-controls .btn,
.live-controls .btn-end {
    min-width: 140px;
    font-size: 18px;
    padding: 12px 24px;
}

.btn-end {
    background: rgba(229, 62, 62, 0.12);
    color: #fc8181;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-end:hover {
    background: rgba(229, 62, 62, 0.22);
}

.live-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #5c6078;
}

.live-empty-state p {
    font-size: 15px;
    margin-bottom: 8px;
}

.live-empty-state .hint {
    font-size: 13px;
    font-style: italic;
}
