/* Sync Reader Styles */

.sync-reader-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.reader-title {
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.audio-controls audio {
    border-radius: 8px;
    height: 40px;
}

/* Customizing audio player colors if supported by browser/implementation */
.audio-controls audio::-webkit-media-controls-panel {
    background-color: rgba(255, 255, 255, 0.9);
}

.reader-content-box {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.reader-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.sync-segment {
    padding: 2px 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.sync-segment:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sync-segment.active {
    background-color: #fbbf24;
    /* Amber-400 - Bright Yellow/Gold */
    color: #000;
    /* Black text for max contrast */
    font-weight: 700;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.6);
    /* Glow effect */
    transform: scale(1.05);
    /* Slight pop */
    display: inline-block;
    /* Required for transform */
    border-radius: 6px;
    padding: 2px 6px;
    margin: 0 2px;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}