/* Sendungstermine List Plugin Styles */
/*
.sendungstermine-list {
    margin: 20px 0;
}

.sendungstermine-list h2 {
    color: #000;
    border-bottom: 2px solid #4a90e2;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.sendungstermine-count {
    font-style: italic;
    color: #000;
    margin-bottom: 20px;
}

.sendungstermin-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 30px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sendungstermin-header {
    margin-bottom: 15px;
}

.sendungstermin-date {
    background: #4a90e2;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
}

.sendungstermin-image {
    margin: 15px 0;
}

.sendungstermin-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.sendungstermin-image-caption {
    font-style: italic;
    color: #000;
    margin-top: 5px;
    font-size: 0.9em;
}

.sendungstermin-content {
    margin: 15px 0;
    line-height: 1.6;
}
 */
.sendungstermin-audio {
    background: #fff;
    padding: 15px;
    border-radius: 0px;
    margin: 15px 0;
}

.sendungstermin-audio h3 {
    margin-top: 0;
    color: #000;
}

.sendungstermin-audio-description {
    color: #000;
    font-style: italic;
    margin-bottom: 10px;
}

.sendungstermin-audio audio {
    width: 100%;
    margin: 10px 0;
}

.sendungstermin-audio-link {
    margin-top: 10px;
}

.sendungstermin-audio-link a {
    color: #005C66;
    text-decoration: none;
}

.sendungstermin-audio-link a:hover {
    text-decoration: underline;
}

.sendungstermin-tracks {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.sendungstermin-tracks h3 {
    margin-top: 0;
    color: #2d3748;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}

.track-list {
    list-style: decimal;
    padding-left: 20px;
    margin: 0;
}

.track-item {
    padding: 5px 0;
    border-bottom: 1px solid #f7fafc;
}

.track-item:last-child {
    border-bottom: none;
}

.track-artist {
    font-weight: bold;
    color: #000;
}

.track-title {
    color: #000;
}

.track-album {
    color: #000;
    font-style: italic;
}

.sendungstermine-empty {
    text-align: center;
    padding: 40px 20px;
    background: #f7fafc;
    border-radius: 8px;
}

.sendungstermine-empty h2 {
    color: #000;
    margin-bottom: 10px;
}

.sendungstermine-empty p {
    color: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sendungstermin-item {
        padding: 15px;
    }

    .sendungstermin-date {
        font-size: 0.9em;
        padding: 6px 12px;
    }

    .track-list {
        padding-left: 15px;
    }
}

/* Year Grouping Styles */
/* .sendungstermine-by-year {
    margin: 30px 0;
}

.sendungstermine-by-year h2 {
    color: #000;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.year-count {
    font-weight: bold;
    margin: 10px 0;
    color: #000;
}

.year-group {
    margin-bottom: 40px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    background: #fafafa;
}

.year-title {
    font-size: 1.8em;
    color: #000;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
}

.year-count-badge {
    font-size: 0.8em;
    color: #000;
    font-weight: normal;
}

.year-sendungen {
    display: grid;
    gap: 15px;
}

.sendungstermin-item-compact {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.sendungstermin-item-compact:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
 */
/* .sendung-header {
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.sendung-date {
    background: #4a90e2;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.9em;
}
 */
.sendung-interpret {
    color: #000;
}

.sendung-titel {
    color: #000;
}

.sendung-content {
    margin: 10px 0;
    color: #555;
    line-height: 1.5;
}

.sendung-tracks {
    margin: 10px 0;
    background: #f8f8f8;
    padding: 10px;
    border-radius: 0px;
    border-left: 3px solid #F1FF53;
}

.sendung-tracks .track {
    margin: 5px 0;
    font-size: 0.9em;
    line-height: 1.4;
}

.sendung-audio {
    margin-top: 10px;
}

.sendung-audio audio {
    width: 100%;
    max-width: 300px;
}

/* Detail View Styles */
.sendungtermin-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.detail-header {
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 15px;
}

.detail-title {
    color: #000;
    margin: 0 0 10px 0;
    font-size: 1.8em;
}

.detail-date {
    color: #000;
    font-size: 1.1em;
    margin: 0;
    display:none;
}
@media (min-width: 768px) {
    .detail-date{
        display:inline-block
    }
}


.detail-image {
    text-align: center;
    margin: 20px 0;
}

.detail-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0px;
    //box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.detail-image-caption {
    font-style: italic;
    color: #000;
    margin-top: 10px;
}

.detail-content {
    margin: 25px 0;
    line-height: 1.6;
}

.detail-content h3 {
    color: #000;
    border-bottom: 0px solid #ddd;
    padding-bottom: 8px;
}

.detail-audio {
    margin: 25px 0;
    background: #fff;
    padding: 20px;
    border-radius: 0px;
}

.detail-audio h3 {
    margin-top: 0;
    color: #000;
}

.detail-audio-player {
    width: 100%;
    margin: 15px 0;
}

.audio-description {
    margin: 10px 0;
    color: #000;
}

.download-link {
    display: inline-block;
    background: #005C66;
    color: white;
    padding: 8px 15px;
    border-radius: 0px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.download-link:hover {
    background: #005C66;
    color: white;
    text-decoration: none;
}

/* Playlist Styles */
.detail-playlist {
    margin: 25px 0;
}

.detail-playlist h3 {
    color: #000;
    border-bottom: 2px solid #000;
    padding-bottom: 8px;
}

.playlist-container {
    background: white;
    border-radius: 0px;
    overflow: hidden;
    //box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.playlist-item {
    display: flex;
    padding: 12px 15px;
    border-bottom: 1px solid #000;
    transition: background 0.2s;
}

.playlist-item:hover {
    //background: #f8f9fa;
}

.playlist-item.odd {
    background: white;
}

.playlist-item.even {
    background: white;
}

.track-number {
    font-weight: bold;
    color: #000;
    min-width: 30px;
    flex-shrink: 0;
}

.track-info {
    flex: 1;
    margin-left: 10px;
}

.track-artist {
    font-weight: bold;
    color: #000;
    margin-bottom: 3px;
}

.track-title {
    color: #005C66;
    font-style: italic;
    margin-bottom: 3px;
}

.track-album {
    color: #999;
    font-size: 0.9em;
}

.detail-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 0px solid #eee;
    text-align: center;
}

.record-info {
    color: #999;
    font-size: 0.8em;
    margin: 0;
}

/* Link Styles for Detail Links */
/* .detail-link {
    color: #4a90e2 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: color 0.3s;
}

.detail-link:hover {
    color: #357abd !important;
    text-decoration: underline !important;
} */

/* .sendung-date.detail-link {
    background: #4a90e2;
    color: white !important;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.9em;
} */

/* .sendung-date.detail-link:hover {
    background: #357abd !important;
    color: white !important;
    text-decoration: none !important;
} */

/* Error Styles */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 20px 0;
}

/* Magnific Popup Overrides */
.mfp-content .sendungtermin-detail {
    max-width: calc(100vw - 40px);
    max-height: 80vh;
    overflow-y: auto;
    background: white;
    /* border-radius: 8px; */
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);


}

@media (min-width: 768px) {
    .mfp-content .sendungtermin-detail {
        max-width: 76vw;
    }
}
@media (min-width: 1440px) {
    .mfp-content .sendungtermin-detail {
        max-width: 60vw;
    }
}

@media (max-width: 768px) {
    .sendungtermin-popup-content .mfp-close{
        right:20px;
        top:20px;
    }
}
