/* Sermons Feature Styles */

/* Common */
.sermons-directory-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.sermons-hero {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
}

.sermons-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.sermons-hero-content {
    flex: 1;
    max-width: 800px;
}

.sermons-hero-content h1 {
    color: #e92026;
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    text-transform: uppercase;
}

.sermons-hero-content p {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 20px;
}

.sermons-hero-content p strong {
    color: #333;
}

.sermons-search-bar {
    display: flex;
    max-width: 100%;
    margin-bottom: 25px;
}

.search-input-wrapper {
    flex: 1;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.search-input-wrapper i {
    color: #aaa;
    margin-right: 15px;
    font-size: 1.1rem;
}

.search-input-wrapper input {
    border: none;
    outline: none;
    padding: 18px 0;
    width: 100%;
    font-size: 1.05rem;
    color: #333;
}

.search-input-wrapper input::placeholder {
    color: #aaa;
}

.sermons-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.sermons-filters select {
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    background: white;
    color: #666;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23b0b0b0%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat, repeat;
    background-position: right .7em top 50%, 0 0;
    background-size: .65em auto, 100%;
    padding-right: 30px;
}

.date-filter-input {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: white;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.date-filter-input:hover {
    border-color: #ccc;
}

.date-filter-input:focus {
    border-color: #e92026;
    box-shadow: 0 0 0 3px rgba(233, 32, 38, 0.1);
}

.date-range-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Enterprise Church Filters */
.church-filters-row {
    background: white;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #edf0f2;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    margin-bottom: 40px !important;
    display: flex;
    align-items: center;
    gap: 25px; /* Increased spacing between groups */
    flex-wrap: wrap;
}

.church-filters-row .search-input-wrapper {
    background: #fdfdfd;
    border: 1px solid #ebeef1;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
    padding: 0 18px;
    height: 50px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 2;
    min-width: 280px;
}

.church-filters-row .search-input-wrapper:focus-within {
    background: white;
    border-color: #e92026;
    box-shadow: 0 0 0 4px rgba(233, 32, 38, 0.08);
}

.church-filters-row .search-input-wrapper input {
    padding: 0;
    font-size: 1rem;
    font-weight: 500;
    background: transparent;
    color: #333;
}

.church-filters-row .search-input-wrapper i {
    font-size: 1.1rem;
    color: #adb5bd;
}

/* Custom Themed Dropdown */
.category-filter-wrapper {
    flex: 1;
    min-width: 200px;
}

.category-filter-wrapper select.date-filter-input {
    width: 100%;
    height: 50px;
    padding: 0 40px 0 18px;
    background: #fdfdfd url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23e92026%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") no-repeat right 16px center;
    background-size: 11px auto;
    appearance: none;
    border: 1px solid #ebeef1;
    border-radius: 12px;
    color: #495057;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
    transition: all 0.3s ease;
}

.category-filter-wrapper select.date-filter-input:hover {
    border-color: #dee2e6;
    background-color: #fff;
}

.category-filter-wrapper select.date-filter-input:focus {
    border-color: #e92026;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(233, 32, 38, 0.08);
}

/* Premium Date Picker */
.church-filters-row .date-range-wrapper {
    background: #fdfdfd;
    border: 1px solid #ebeef1;
    padding: 6px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 2;
    min-width: 380px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
}

.church-filters-row .date-range-wrapper span {
    color: #e92026;
    font-size: 0.7rem !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.church-filters-row .date-range-wrapper input.date-filter-input {
    border: 1px solid #f1f3f5;
    height: 38px;
    padding: 0 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    border-radius: 8px;
    background: white;
    box-shadow: none;
    flex: 1;
    transition: all 0.2s ease;
}

.church-filters-row .date-range-wrapper input.date-filter-input:hover {
    border-color: #dee2e6;
}

.church-filters-row .date-range-wrapper input.date-filter-input:focus {
    border-color: #e92026;
    box-shadow: 0 0 0 3px rgba(233, 32, 38, 0.08);
}



.sermons-hero-illustration {
    flex: 0 0 350px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    margin-right: -20px;
}

.sermons-hero-illustration img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
}

@media (max-width: 900px) {
    .sermons-hero-container {
        flex-direction: column;
        text-align: center;
    }

    .sermons-hero-content {
        max-width: 100%;
    }

    .sermons-search-bar {
        margin: 0 auto 25px;
    }

    .sermons-filters {
        justify-content: center;
    }

    .sermons-hero-illustration {
        display: none;
    }
}


/* Layout */
.sermons-layout {
    display: flex;
    gap: 40px;
}

@media (max-width: 900px) {
    .sermons-layout {
        flex-direction: column;
    }
}

.sermons-main-col {
    flex: 1;
    width: 100%;
}



/* Tabs */
.sermons-tabs {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
}

.sermons-tabs button {
    background: none;
    border: none;
    font-size: 1.05rem;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    padding: 0 5px 15px 5px;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.sermons-tabs button:hover {
    color: #555;
}

.sermons-tabs button.active {
    color: #e92026;
    border-bottom: 2px solid #e92026;
}

/* Grid & Cards */
/* List Layout */
.churches-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.church-list-item {
    background: white;
    border-radius: 10px;
    padding: 15px 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f0f0f0;
}

.church-list-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border-color: #ffeaea;
}

.church-item-main {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.church-item-main img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: contain;
    background: #fdfdfd;
    padding: 3px;
    border: 1px solid #eee;
    overflow: hidden;
}

.church-item-info h3 {
    font-size: 1.1rem;
    color: #222;
    margin: 0 0 2px 0;
}

.church-item-info p {
    font-size: 0.9rem;
    color: #777;
    margin: 0;
}

.live-badge {
    background: #e92026;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(233, 32, 38, 0.2);
    animation: liveBadgePulse 2s infinite;
}

.live-badge i {
    font-size: 0.8rem;
}

@keyframes liveBadgePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(233, 32, 38, 0.4); }
    50% { transform: scale(1.03); box-shadow: 0 0 10px 4px rgba(233, 32, 38, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(233, 32, 38, 0); }
}

@keyframes liveDotPulse {
    0% { transform: scale(1); opacity: 1; text-shadow: 0 0 0 rgba(233, 32, 38, 0); }
    50% { transform: scale(1.2); opacity: 0.7; text-shadow: 0 0 8px rgba(233, 32, 38, 0.5); }
    100% { transform: scale(1); opacity: 1; text-shadow: 0 0 0 rgba(233, 32, 38, 0); }
}

.church-item-stats {
    display: flex;
    gap: 25px;
    margin: 0 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-weight: 700;
    color: #333;
    font-size: 1.1rem;
}

.stat-label {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value.is-live {
    color: #e92026;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.stat-value.is-live i {
    font-size: 0.6rem;
    filter: drop-shadow(0 0 2px rgba(233, 32, 38, 0.5));
    animation: liveIndicatorPulse 1.5s infinite;
}

.stat-value.is-offline {
    color: #bbb;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.stat-value.is-offline i {
    color: #eee;
    font-size: 0.6rem;
}

@keyframes liveIndicatorPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    .church-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .church-item-stats {
        margin: 0;
        width: 100%;
        justify-content: space-between;
    }
}

.church-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.series-count {
    color: #888;
    font-size: 0.95rem;
}

.view-sermons-btn {
    background: #e92026;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.view-sermons-btn:hover {
    background: #c71b21;
}


/* Church Page Banner */
.church-page-header {
    background: #fff5f5;
    padding: 50px 0;
    margin-bottom: 50px;
}

.church-banner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 50px;
}

.church-logo-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: white;
    border: 4px solid #e92026;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(233, 32, 38, 0.15);
    flex-shrink: 0;
    overflow: hidden;
}

.church-logo-circle img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.church-banner-text h1 {
    color: #e92026;
    font-size: 2.2rem;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    font-weight: 800;
}

.church-banner-text p {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 20px;
}

/* Latest Sermon Player */
.latest-sermon-player {
    display: flex;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    margin-bottom: 80px;
    gap: 0;
}

@media (max-width: 900px) {
    .latest-sermon-player {
        flex-direction: column;
    }

    .church-banner {
        flex-direction: column;
        text-align: center;
    }

    .sermons-filters {
        justify-content: center;
    }

    .date-range-wrapper {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}

.latest-sermon-video {
    flex: 3;
    background: #111;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.live-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #e92026;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(233, 32, 38, 0.4);
    animation: livePulse 2s infinite;
}

.live-tag i {
    font-size: 0.6rem;
}

@keyframes livePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(233, 32, 38, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 20px rgba(233, 32, 38, 0.6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(233, 32, 38, 0.4);
    }
}

.modern-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Video Fallback / Not Available */
.video-not-available {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #222 0%, #0a0a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.fallback-content i {
    font-size: 4rem;
    color: #e92026;
    margin-bottom: 25px;
    opacity: 0.8;
}

.fallback-content h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.fallback-content p {
    color: #aaa;
    max-width: 400px;
    margin: 0 auto 25px;
    line-height: 1.6;
    font-size: 1rem;
}

.database-sourcing-tag {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(233, 32, 38, 0.1);
    border: 1px solid rgba(233, 32, 38, 0.2);
    color: #e92026;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.latest-sermon-info {
    flex: 2;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.sermon-date {
    color: #666;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
    font-size: 1.1rem;
}

.latest-sermon-info h2 {
    font-size: 2.2rem;
    margin: 0 0 30px 0;
    color: #1a1a1a;
    line-height: 1.2;
    font-weight: 800;
}

.sermon-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 1.05rem;
    color: #333;
    font-weight: 600;
}

.latest-sermon-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.live-sermon-btn {
    background: #e92026;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.live-sermon-btn:hover {
    background: #c71b21;
}


.share-btn {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #f5f5f5;
    border: 1px solid #eee;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn:hover {
    background: #eee;
    color: #333;
}

@media (max-width: 900px) {
    .latest-sermon-player {
        flex-direction: column;
    }

    .latest-sermon-video {
        min-height: 300px;
    }

    .sermon-meta-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Recent Sermons List */
.recent-sermons-list {
    margin-top: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.sermon-list-header {
    display: grid;
    grid-template-columns: 120px 1fr 100px 180px;
    background: #f8f9fa;
    padding: 15px 25px;
    font-weight: 700;
    color: #444;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #eee;
}

.sermon-list-row {
    display: grid;
    grid-template-columns: 120px 1fr 100px 180px;
    padding: 18px 25px;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

.sermon-duration-col {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.sermon-list-row:hover {
    background: #fffafa;
}

.sermon-list-row:last-child {
    border-bottom: none;
}

.sermon-date-col {
    color: #777;
    font-size: 0.9rem;
}

.sermon-info-col h4 {
    margin: 0 0 4px 0;
    font-size: 1.05rem;
    color: #222;
}

.sermon-info-col p {
    margin: 0;
    font-size: 0.85rem;
    color: #999;
}

.sermon-actions-col {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.play-row-btn {
    background: #e92026;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
    text-transform: uppercase;
    margin-left: 10px;
}

.play-row-btn:hover {
    background: #c71b21;
}

.action-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    background: #f8f8f8;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 0.8rem;
}

.action-icon:hover {
    background: #e92026;
    color: white;
    transform: scale(1.1);
}

.action-icon.watch {
    color: #e92026;
}

.action-icon.watch:hover {
    background: #e92026;
    color: white;
}

/* ===================== PAGINATION ===================== */

.pagination-container {
    margin-top: 40px;
    padding: 20px 0 10px;
}

.pagination-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.pagination-info {
    font-size: 0.88rem;
    color: #888;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Prev / Next buttons */
.pagination-controls .prev-page,
.pagination-controls .next-page {
    background: white;
    border: 1.5px solid #ddd;
    padding: 9px 18px;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.pagination-controls .prev-page:hover:not(:disabled),
.pagination-controls .next-page:hover:not(:disabled) {
    border-color: #e92026;
    color: #e92026;
    background: #fff5f5;
}

.pagination-controls .prev-page:disabled,
.pagination-controls .next-page:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8f8f8;
}

/* Page number group */
.page-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Individual page number buttons */
.page-num {
    min-width: 40px;
    height: 40px;
    background: white;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s;
}

.page-num:hover:not(.active) {
    border-color: #e92026;
    color: #e92026;
    background: #fff5f5;
}

.page-num.active {
    background: #e92026;
    color: white;
    border-color: #e92026;
    cursor: default;
    box-shadow: 0 3px 8px rgba(233, 32, 38, 0.25);
}

/* Ellipsis */
.page-ellipsis {
    min-width: 32px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 1rem;
    letter-spacing: 1px;
    user-select: none;
}

/* Mobile: stack controls vertically */
@media (max-width: 600px) {
    .pagination-controls {
        gap: 6px;
    }

    .page-num {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .pagination-controls .prev-page,
    .pagination-controls .next-page {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

/* ====================================================== */

@media (max-width: 768px) {
    .sermon-list-header {
        display: none;
    }

    .sermon-list-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 20px;
    }

    .sermon-actions-col {
        justify-content: flex-start;
        margin-top: 10px;
    }
}

/* Skeleton Loading */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }

    100% {
        background-position: 468px 0;
    }
}

.skeleton-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f9f9f9;
}

.skel-top {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: center;
}

.skel-img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 800px 100px;
    animation-duration: 1.5s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-name: shimmer;
    animation-timing-function: linear;
}

.skel-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skel-line {
    height: 14px;
    border-radius: 4px;
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-size: 800px 100px;
    animation: shimmer 1.5s linear infinite forwards;
}

.w-80 {
    width: 80%;
}

.w-60 {
    width: 60%;
}

.w-40 {
    width: 40%;
}

.w-30 {
    width: 30%;
}

.skel-bottom {
    border-top: 1px solid #eee;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
}

.skel-btn {
    height: 40px;
    border-radius: 6px;
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-size: 800px 100px;
    animation: shimmer 1.5s linear infinite forwards;
}

.sample-data-badge {
    grid-column: 1 / -1;
    background: #fff3cd;
    color: #856404;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #ffeeba;
}

.database-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e1f5fe;
    color: #0288d1;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid #b3e5fc;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.video-fallback-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.empty-video-placeholder {
    background: #111;
    color: white;
    padding: 80px 20px;
    text-align: center;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.empty-video-placeholder i {
    font-size: 5rem;
    color: #444;
    margin-bottom: 25px;
}

.empty-video-placeholder h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.empty-video-placeholder p {
    color: #aaa;
    font-size: 1.1rem;
    max-width: 400px;
    margin: 0 auto;
}

.no-sermons-text {
    text-align: center;
    color: #888;
    font-size: 1.1rem;
}

/* Series */
.sermon-series-section h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #333;
}

.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.series-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    display: flex;
    gap: 20px;
    border: 1px solid #f9f9f9;
}

.series-icon img {
    width: 60px;
    height: 60px;
}

.series-info h4 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    color: #222;
}

.series-info p {
    margin: 0 0 15px 0;
    color: #777;
    font-size: 0.95rem;
}

.series-date {
    display: block;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 8px;
}

.series-speaker {
    display: block;
    font-size: 0.95rem;
    color: #555;
}

.series-actions {
    margin-top: 20px;
}

.watch-btn {
    background: white;
    color: #e92026;
    border: 1px solid #e92026;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.watch-btn:hover {
    background: #e92026;
    color: white;
}

/* Live Stream Features */
.live-banner {
    background: #1a1a1a;
    color: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 25px rgba(233, 32, 38, 0.15);
    border-left: 5px solid #e92026;
    background-image: linear-gradient(45deg, #1a1a1a 0%, #2a0a0a 100%);
}

.live-banner-content h2 {
    color: white;
    margin: 15px 0 20px 0;
    font-size: 1.8rem;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e92026;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 800;
    animation: livePulse 2s infinite;
}

.live-churches {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.live-church-link {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-church-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.church-list-item.is-live {
    border-left: 4px solid #e92026;
}

.church-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff0f0;
    color: #e92026;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    border: 1px solid #ffeaea;
}

.live-indicator i {
    font-size: 0.5rem;
}

/* Video Player Improvements */
.video-container {
    width: 100%;
    height: 100%;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border-radius: 0;
}

@media (max-width: 600px) {
    .live-banner {
        padding: 20px;
    }
    
    .live-banner-content h2 {
        font-size: 1.4rem;
    }
    
    .video-container iframe {
        min-height: 250px;
    }
}

/* YouTube-Style Layout Overhaul */
.yt-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 1100px) {
    .yt-layout {
        grid-template-columns: 1fr;
    }
    
    .yt-sidebar {
        margin-top: 40px;
    }
}

.yt-main {
    min-width: 0; /* Prevents flex/grid blowouts */
}

/* Main Video Info Styling */
.yt-video-info {
    margin-top: 25px;
    padding-bottom: 25px;
}

.yt-video-info h1 {
    font-size: 1.6rem;
    color: #1a1a1a;
    margin: 10px 0 20px 0;
    font-weight: 700;
}

.yt-date {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

.yt-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.yt-speaker-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.yt-avatar i {
    font-size: 2.5rem;
    color: #e92026;
    opacity: 0.8;
}

.yt-speaker-text {
    display: flex;
    flex-direction: column;
}

.yt-speaker-name {
    font-weight: 700;
    color: #222;
    font-size: 1.05rem;
}

.yt-series-name {
    font-size: 0.85rem;
    color: #777;
}

.yt-actions {
    display: flex;
    gap: 10px;
}

.yt-action-btn {
    background: #f2f2f2;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.yt-action-btn:hover {
    background: #e5e5e5;
}

/* Sidebar Playlist Styling */
.sidebar-title {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-weight: 700;
}

.yt-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.yt-sidebar-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.1s;
}

.yt-sidebar-card:hover {
    transform: scale(1.02);
}

.yt-card-thumb {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 90px;
}

.yt-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yt-card-duration {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 700;
}

.yt-card-info h4 {
    font-size: 0.95rem;
    color: #1a1a1a;
    margin: 0 0 5px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yt-card-meta {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 2px;
}

@media (max-width: 600px) {
    .yt-sidebar-card {
        grid-template-columns: 120px 1fr;
    }
    
    .yt-card-thumb {
        height: 70px;
    }
    
    .yt-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

/* Error State */
.error-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 500px;
    margin: 40px auto;
}

.error-state h2 {
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.error-state p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Breadcrumbs */
.breadcrumb {
    margin-bottom: 20px;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: #888;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin: 0 12px;
    font-size: 0.8rem;
    color: #ccc;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: #e92026;
}

.breadcrumb .active {
    color: #e92026;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

/* Load More Sidebar Button */
.load-more-sidebar {
    text-align: center;
    padding: 15px 0;
    margin-top: 10px;
    border-top: 1px solid #eee;
}

.load-more-sidebar-btn {
    background: transparent;
    border: 1px solid #e92026;
    color: #e92026;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.load-more-sidebar-btn:hover {
    background: #e92026;
    color: white;
}

/* Sticky Main Video Player */
@media (min-width: 1101px) {
    .yt-main {
        position: sticky !important;
        top: 20px;
        height: max-content;
        z-index: 10;
    }
}
/* Tiled Grid Layout (More Sermons) */
.sermons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.sermon-tile-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.sermon-tile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #ffeaea;
}

.sermon-tile-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
}

.sermon-tile-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sermon-tile-thumb .duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.sermon-tile-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sermon-tile-info h4 {
    margin: 0 0 8px 0;
    font-size: 1.05rem;
    color: #1a1a1a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sermon-tile-info p {
    margin: 0 0 5px 0;
    color: #666;
    font-size: 0.85rem;
}

.sermon-tile-info .date {
    margin-top: auto;
    color: #999;
    font-size: 0.8rem;
}

/* Grid Load More */
.load-more-grid {
    text-align: center;
    margin-top: 10px;
}

.load-more-grid-btn {
    background: transparent;
    border: 2px solid #e92026;
    color: #e92026;
    padding: 10px 30px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.load-more-grid-btn:hover {
    background: #e92026;
    color: white;
}

.end-of-list {
    text-align: center;
    color: #999;
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
}
