/* RS Player Styles */
.rs-container {
    max-width: 900px;
    margin-top: 8rem;
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-out;
}

.rs-header {
    text-align: center;
    margin-bottom: 2rem;
}

.rs-header h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.rs-header p {
    color: #7f8c8d;
    font-size: 1rem;
}

/* Audio Player Section */
.audio-player-section {
    margin-bottom: 2rem;
}

.audio-player-container {
    background: linear-gradient(145deg, #f9f9f9, #f0f0f0);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Player Controls */
.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1.5rem;
}

.control-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #555;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background-color: #eee;
    color: #3498db;
}

.play-btn {
    background-color: #3498db;
    color: white;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

.play-btn:hover {
    background-color: #2980b9;
    color: white;
    transform: scale(1.05);
}

.play-btn.playing .fa-play {
    display: none;
}

.play-btn:not(.playing) .fa-pause {
    display: none;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 1.5rem;
}

.progress-bar {
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

#progress {
    height: 100%;
    background-color: #3498db;
    width: 0;
    border-radius: 4px;
    transition: width 0.1s linear;
}

.time-display {
    display: flex;
    justify-content: flex-start;
    gap: 4px;
    color: #555;
    font-size: 0.9rem;
}

/* Player Options */
.player-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Subtitle Toggle Switch */
.subtitle-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #3498db;
}

input:focus + .slider {
    box-shadow: 0 0 1px #3498db;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Playback Speed Selector */
#speed-selector {
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: white;
    color: #555;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Subtitle Container */
.subtitle-container {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    background-color: #f9f9f9;
    border-left: 4px solid #3498db;
    min-height: 60px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    transition: opacity 0.3s ease;
}

.subtitle-container.hidden {
    opacity: 0;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.subtitle-container .active-text {
    font-weight: 600;
    color: #2980b9;
}

/* Keyboard Shortcuts Info */
.keyboard-shortcuts-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

.keyboard-shortcuts-info p {
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

.keyboard-shortcuts-info ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.keyboard-shortcuts-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.key {
    display: inline-block;
    background-color: #e9ecef;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.9rem;
    color: #495057;
    border: 1px solid #ced4da;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .rs-container {
        margin-top: 5rem;
        padding: 1rem;
    }
    
    .player-controls {
        gap: 1rem;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
    }
    
    .play-btn {
        width: 50px;
        height: 50px;
    }
    
    .keyboard-shortcuts-info ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Animation Effect */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
} 