/* ============================================
   Live Timelapse Player
   ============================================ */

.live-player-container {
    background: #000;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    position: relative;
    max-width: 50%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .live-player-container {
        max-width: 80%;
    }
}

.live-player-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-player-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.live-player-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.live-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.live-player-controls {
    background: rgba(0,0,0,0.8);
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.live-progress-container {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    transition: height 0.2s ease;
}

.live-progress-container:hover {
    height: 8px;
}

.live-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 3px;
    transition: width 0.1s ease;
    position: relative;
}

.live-progress-bar::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.live-progress-container:hover .live-progress-bar::after {
    opacity: 1;
}

.live-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.live-controls-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 16px;
    width: 28px;
    height: 28px;
}

.live-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.live-btn:active {
    transform: scale(0.95);
}

.live-btn-play {
    font-size: 20px;
    width: 32px;
    height: 32px;
}

.live-time-display {
    color: white;
    font-size: 11px;
    font-weight: 500;
    min-width: 80px;
    font-family: 'Courier New', monospace;
}

.live-controls-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.live-speed-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-speed-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.live-speed-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.live-speed-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
}

.live-speed-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.live-info-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 6px 10px;
    border-radius: 4px;
    color: white;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-badge {
    background: #ef4444;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.live-image-counter {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
}

/* 반응형 */
@media (max-width: 768px) {
    .live-player-controls {
        padding: 16px;
        gap: 12px;
    }
    
    .live-controls-row {
        flex-wrap: wrap;
    }
    
    .live-controls-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .live-time-display {
        font-size: 12px;
        min-width: 100px;
    }
    
    .live-btn {
        font-size: 20px;
        width: 36px;
        height: 36px;
    }
    
    .live-btn-play {
        font-size: 28px;
        width: 44px;
        height: 44px;
    }
    
    .live-info-overlay {
        top: 12px;
        right: 12px;
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Empty state */
.live-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    gap: 8px;
}

.live-empty-icon {
    font-size: 32px;
    opacity: 0.5;
}

.live-empty-text {
    font-size: 14px;
    font-weight: 500;
}

.live-empty-subtext {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}
