/* Blackmagic Design Inspired Theme */
.audiobook-player {
    background: #0a0a0a;
    color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

.audiobook-header {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.audiobook-cover {
    flex-shrink: 0;
    width: 150px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    border: 1px solid #444;
}

.audiobook-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.audiobook-info {
    flex: 1;
}

.audiobook-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.audiobook-author,
.audiobook-narrator {
    font-size: 16px;
    margin: 8px 0;
    color: #ccc;
    font-weight: 400;
}

/* Player Controls */
.player-controls {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #333;
    position: relative;
}

.control-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.control-btn {
    background: linear-gradient(135deg, #ff2d00, #ff6b00);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 45, 0, 0.3);
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 45, 0, 0.4);
    background: linear-gradient(135deg, #ff6b00, #ff2d00);
}

.control-btn:active {
    transform: translateY(0);
}

.play-pause {
    width: 70px;
    height: 70px;
    font-size: 24px;
}

.progress-container {
    margin-bottom: 15px;
}

.time-display {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #999;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #ff2d00, #ff6b00);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    position: absolute;
    right: 25px;
    top: 25px;
}

.volume-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    outline: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.volume-control:hover .volume-slider {
    opacity: 1;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff2d00;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff2d00;
    cursor: pointer;
    border: none;
}

.playback-speed {
    position: absolute;
    left: 25px;
    top: 25px;
}

.speed-select {
    background: #333;
    color: white;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.speed-select:focus {
    border-color: #ff2d00;
}

/* Chapters List */
.chapters-list {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #333;
}

.chapters-list h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    border-bottom: 2px solid #ff2d00;
    padding-bottom: 10px;
}

.chapters-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chapter-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.chapter-item:hover {
    background: #2a2a2a;
    border-color: #444;
}

.chapter-item.active {
    background: linear-gradient(135deg, #ff2d00, #ff6b00);
    border-color: #ff2d00;
}

.chapter-number {
    font-weight: 600;
    color: #ff6b00;
    margin-right: 15px;
    min-width: 30px;
}

.chapter-item.active .chapter-number {
    color: white;
}

.chapter-title {
    flex: 1;
    font-weight: 500;
}

.chapter-duration {
    color: #999;
    font-size: 14px;
    font-weight: 500;
}

.chapter-item.active .chapter-duration {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .audiobook-player {
        padding: 20px;
        margin: 10px;
    }
    
    .audiobook-header {
        flex-direction: column;
        text-align: center;
    }
    
    .audiobook-cover {
        align-self: center;
    }
    
    .player-controls {
        padding: 20px 15px;
    }
    
    .volume-control,
    .playback-speed {
        position: static;
        justify-content: center;
        margin-top: 15px;
    }
    
    .volume-control {
        display: flex;
        justify-content: center;
    }
    
    .control-buttons {
        gap: 10px;
    }
    
    .control-btn {
        width: 50px;
        height: 50px;
    }
    
    .play-pause {
        width: 60px;
        height: 60px;
    }
}

/* Loading State */
.audiobook-player.loading {
    opacity: 0.7;
    pointer-events: none;
}

.audiobook-player.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top: 3px solid #ff2d00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}