/* Choir Music Library Frontend Styles */
.choir-library {
    margin: 20px 0;
}

.choir-piece {
    border: 1px solid #ddd;
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
    background: #f9f9f9;
    transition: box-shadow 0.3s ease;
}

.choir-piece:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.choir-piece-title {
    margin: 0;
    padding: 15px 20px;
    background: #0073aa;
    color: #fff;
    cursor: pointer;
    user-select: none;
    font-size: 1.2em;
    font-weight: 600;
    transition: background-color 0.3s ease;
    position: relative;
}

.choir-piece-title:hover {
    background: #005177;
}

.choir-piece-title::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5em;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.choir-piece-active .choir-piece-title::after {
    transform: rotate(45deg);
}

.choir-piece .choir-panel {
    display: none;
    padding: 20px;
    border-top: 1px solid #ddd;
    background: #fff;
}

.choir-piece-active .choir-panel {
    display: block;
}

.choir-post-content {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.choir-post-content p {
    margin: 0 0 15px 0;
    line-height: 1.6;
    color: #333;
}

.choir-post-content p:last-child {
    margin-bottom: 0;
}

.choir-post-content img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 4px;
}

.choir-post-content h1,
.choir-post-content h2,
.choir-post-content h3,
.choir-post-content h4,
.choir-post-content h5,
.choir-post-content h6 {
    margin: 20px 0 15px 0;
    color: #333;
}

.choir-post-content h1:first-child,
.choir-post-content h2:first-child,
.choir-post-content h3:first-child,
.choir-post-content h4:first-child,
.choir-post-content h5:first-child,
.choir-post-content h6:first-child {
    margin-top: 0;
}

.choir-file-row {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.choir-file-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.choir-voice-part-label {
    font-weight: 600;
    color: #0073aa;
    margin-bottom: 8px;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.choir-file-name {
    margin: 0 0 10px 0;
    font-weight: 500;
    color: #333;
}

.choir-audio,
.choir-pdf,
.choir-unknown {
    margin-bottom: 15px;
}

.choir-audio audio {
    width: 100%;
    max-width: 600px;
    margin-bottom: 10px;
}

.choir-download-wrapper {
    margin-top: 10px;
}

.choir-download {
    display: inline-block;
    background: #0073aa;
    color: #000;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.choir-download:hover {
    background: #005177;
    color: #000;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.choir-download:active {
    transform: translateY(0);
}

.choir-pdf .choir-download {
    background: #d32f2f;
}

.choir-pdf .choir-download:hover {
    background: #b71c1c;
}

.choir-no-results {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
    background: #f5f5f5;
    border-radius: 4px;
    margin: 20px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .choir-piece-title {
        padding: 12px 15px;
        font-size: 1.1em;
    }

    .choir-piece .choir-panel {
        padding: 15px;
    }

    .choir-audio audio {
        max-width: 100%;
    }
}
