/* Audiobook Container */
.audiobook-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

/* Titles */
.audiobook-container h2 {
    font-size: 24px;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 5px;
    margin-bottom: 15px;
    word-wrap: break-word;
}

/* Audio Player */
.audiobook-container audio {
    width: 100%;
    margin: 20px 0;
    border-radius: 5px;
}

/* Video Player */
.audiobook-container iframe {
    width: 100%;
    height: 400px;
    margin-top: 20px;
    border-radius: 5px;
}

/* Navigation Buttons */
.audiobook-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.audiobook-navigation a {
    text-decoration: none;
    background-color: #0073aa;
    color: white;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 5px;
    transition: 0.3s;
    text-align: center;
    white-space: nowrap;
}

.audiobook-navigation a:hover {
    background-color: #005f8b;
}

/* Chapter List */
.chapter-list {
    list-style: none;
    padding: 0;
}

.chapter-list li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chapter-list a {
    text-decoration: none;
    color: #0073aa;
    font-weight: bold;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chapter-list a:hover {
    color: #005f8b;
}

/* Responsive Fixes */
@media screen and (max-width: 600px) {
    .audiobook-container {
        padding: 15px;
    }
    
    .audiobook-container h2 {
        font-size: 20px;
    }
    
    .audiobook-navigation a {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .chapter-list li {
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
