.sermon-video-date {
    margin: 0;
    font-size: 0.85em;
    color: #666;
    text-align: center;
}

/* Load More Button */
.sermon-load-more {
    display: block;
    margin: 30px auto 0;
    padding: 12px 32px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sermon-load-more:hover {
    background: #555;
}

.sermon-series-item.is-hidden,
.sermon-video-item.is-hidden {
    display: none;
}/* Sermon Series Grid */
.sermon-series-grid {
    display: grid;
    grid-template-columns: repeat(var(--columns, 3), 1fr);
    gap: 30px;
    padding: 20px 0;
}

@media (max-width: 1024px) {
    .sermon-series-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .sermon-series-grid {
        grid-template-columns: 1fr;
    }
}

.sermon-series-item {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sermon-series-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.sermon-series-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.sermon-series-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sermon-series-item:hover .sermon-series-thumbnail img {
    transform: scale(1.05);
}

.sermon-series-title {
    padding: 15px 20px;
    margin: 0;
    font-size: 1.1em;
    text-align: center;
}

/* Modal Styles */
.sermon-series-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sermon-series-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.sermon-series-modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sermon-series-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #666;
    z-index: 10;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
}

.sermon-series-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.sermon-series-modal-title {
    padding: 25px 60px 20px 30px;
    margin: 0;
    border-bottom: 1px solid #eee;
    font-size: 1.5em;
}

.sermon-series-modal-body {
    padding: 20px 30px 30px;
    overflow-y: auto;
    flex: 1;
}

.sermon-series-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Animation */
.sermon-series-modal.is-opening {
    animation: modalFadeIn 0.3s ease forwards;
}

.sermon-series-modal.is-closing {
    animation: modalFadeOut 0.2s ease forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.sermon-series-modal.is-opening .sermon-series-modal-content {
    animation: modalSlideIn 0.3s ease forwards;
}

.sermon-series-modal.is-closing .sermon-series-modal-content {
    animation: modalSlideOut 0.2s ease forwards;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes modalSlideOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-30px);
        opacity: 0;
    }
}

/* Video Grid in Modal */
.sermon-videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 40px;
}

@media (max-width: 768px) {
    .sermon-videos-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

.sermon-video-item {
    cursor: pointer;
    text-align: center;
}

.sermon-video-thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background-color: #000;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    border-radius: 8px;
    transition: opacity 0.2s ease;
}

.sermon-video-item:hover .sermon-video-thumb-wrap {
    opacity: 0.8;
}

.sermon-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.sermon-video-item:hover .sermon-video-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.sermon-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.sermon-video-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.sermon-video-title {
    margin: 12px 0 4px;
    font-size: 1em;
    line-height: 1.3;
    text-align: center;
}

/* Load More Button */
.sermon-load-more {
    display: block;
    width: 210px;
    text-align: center;
    margin: 30px auto 0;
    padding: 12px 32px;
    background: #2eb2ff;
    font-weight: 700;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sermon-load-more:hover {
    background: #555;
}

.sermon-series-item.is-hidden,
.sermon-video-item.is-hidden {
    display: none;
}