/* devotional.css */
.navbar-logo { height: 24px; width: auto; margin-right: 0.4rem; display: block; }
.navbar-home-icon { font-size: 1.25rem; }

.devotional-container { max-width: 800px; margin: auto; padding-top: 1rem; }
.devotional-author { font-style: italic; font-size: 1rem; color: #6c757d; }
.devotional-card { border-radius: 12px; padding: 1.5rem; }
.devotional-title { font-size: 1.8rem; line-height: 1.25; }
.devotional-subtitle { font-size: 18px; font-style: italic; line-height: 1.5; margin-top: 10px; margin-bottom: 24px; opacity: 0.9; }
.devotional-content { font-size: 16.5px; line-height: 1.6; } */
.devotional-date { font-style: italic; color: #6c757d; font-size: 1.05rem; margin-bottom: 1.4rem; }


.devotional-libary-container {
    height: 200px;             /* fixed container height */
    display: flex;
    justify-content: center;   /* horizontal centering */
    align-items: center;       /* vertical centering */
    overflow: hidden;          /* prevents overflow if image is taller */
    padding: 0 5px;          /* prevents overflow if image is taller */    
}

.devotional-libary-container a {
    display: block;          /* garante que o link seja um bloco */
    height: 100%;            /* ocupa toda altura do container */
}

.devotional-library-icon {
    height: 100%;          /* image fits container height */
    width: auto;           /* preserve aspect ratio */
    object-fit: contain;
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.devotional-library-title {
    text-align: center;         /* centraliza horizontalmente */
    white-space: wrap;        /* impede quebra de linha */
    overflow: hidden;           /* esconde excesso de texto */
    text-overflow: ellipsis;    /* mostra "..." se o texto for grande */
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-buttons { display:flex; justify-content: space-between; margin-bottom:1rem; }
.nav-buttons a.btn { min-width: 120px; text-align: center; }
.form-select { max-width:150px; display:inline-block; }
.date-selector-form { display:flex; justify-content:center; gap:0.5rem; margin-bottom:1rem; }
.round-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    object-fit: cover;   /* makes the PNG fill the square without stretching */
    display: block;      /* prevents inline spacing issues */
}

.devotional-footer {
    font-size: 0.9rem;
    border-top: 1px solid #dee2e6; /* subtle top border */
}

.title-image {
    width: 50px;   /* adjust size as needed */
    height: 50px;  /* keep square for perfect circle */
    object-fit: cover; /* crops nicely */
    border: 2px solid #ddd; /* optional border */
}

/* Book-style title image */
.book-cover {
    width: 70px;   /* match your old title-image width */
    height: 98px;  /* taller for book aspect ratio */
    flex-shrink: 0;
    border-radius: 6px;       /* slightly rounded corners */
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    background: #fff;         /* fallback color if image fails */
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;        /* maintain cover aspect */
}

.title-text h1 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.title-text .devotional-author {
    font-size: 1rem;
    color: #6c757d;
}

.legal-card { border-radius: 12px; padding: 1.5rem; }
.legal-link { color: #0d6efd; text-decoration: none; }
.legal-link:hover { text-decoration: underline; }

@media (max-width:576px){
    .devotional-title{font-size:1.5rem;}
    .devotional-subtitle { font-size: 18px; font-style: italic; line-height: 1.5; margin-top: 10px; margin-bottom: 24px; opacity: 0.9; }    
    .devotional-content { font-size: 16.5px; line-height: 1.6; } */
    .devotional-card{padding:1.2rem;}
    .devotional-date{font-size:0.95rem;}
    .nav-buttons a.btn{min-width:100px;}

    .book-cover {
        width: 60px;
        height: 84px;
    }
    .title-text h1 {
        font-size: 1.5rem;
    }
    .title-text .devotional-author {
        font-size: 0.95rem;
    }    
}

p{margin-bottom:1.2rem;}

.about-hero-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(13, 110, 253, 0.08);
}

.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 193, 7, 0.16);
    color: #b8860b;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(255, 193, 7, 0.28);
}

.about-intro {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.06), rgba(111, 66, 193, 0.04));
    border: 1px solid rgba(13, 110, 253, 0.08);
}

.about-intro-line {
    font-size: 1rem;
    font-weight: 600;
    color: #0d6efd;
    letter-spacing: 0.01em;
}

.about-social-card {
    border-radius: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 1px solid rgba(13, 110, 253, 0.08);
}

.about-social-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.75rem 1.5rem rgba(13, 110, 253, 0.12) !important;
    border-color: rgba(13, 110, 253, 0.2);
}

.about-social-icon {
    width: 2.6rem;
    height: 2.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.14), rgba(111, 66, 193, 0.12));
    color: #0d6efd;
    font-size: 1.1rem;
}

.about-social-icon-tiktok {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.08), rgba(255, 0, 80, 0.14));
    color: #ff0050;
}

.about-social-icon-instagram {
    background: linear-gradient(135deg, rgba(253, 29, 29, 0.14), rgba(131, 58, 180, 0.16), rgba(255, 220, 76, 0.14));
    color: #c13584;
}

.about-social-icon-facebook {
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.14), rgba(24, 119, 242, 0.04));
    color: #1877f2;
}

.about-social-icon-youtube {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.14), rgba(255, 0, 0, 0.04));
    color: #ff0000;
}

.about-social-icon-whatsapp {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.14), rgba(37, 211, 102, 0.04));
    color: #25d366;
}

.about-social-icon-spotify {
    background: linear-gradient(135deg, rgba(30, 215, 96, 0.16), rgba(30, 215, 96, 0.04));
    color: #1ed760;
}

.about-social-icon-apple {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
    color: #111111;
}

.about-social-icon-amazon {
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.16), rgba(255, 153, 0, 0.04));
    color: #ff9900;
}

.about-social-icon-default {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.14), rgba(111, 66, 193, 0.12));
    color: #0d6efd;
}

.sabbathschool-library-icon {
    height: 200px;          /* image fits container height */
    width: auto;           /* preserve aspect ratio */
    object-fit: contain; /* contain; */
    display: block;
    border-radius: 6px;
}

/* Shared styles for all floating buttons */
/* Shared floating button styles */
.floatingButton {
    position: fixed;       /* this makes it float */
    bottom: 20px;          /* distance from bottom */
    background-color: #555;/* rgba(200,200,200,0.3);  #000;*/
    color: #fff; /* #333; */
    border: none;
    padding: 14px 20px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: background-color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover effect */
.floatingButton:hover {
    background-color: #444; /* rgba(200,200,200,0.6); #222;*/  
    transform: translateY(-2px);
}

/* Positioning */
.floatingButton.right {
    right: 20px;
}

.floatingButton.left {
    left: 20px;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    #floatingButton {
        padding: 12px 18px;
        font-size: 14px;
    }
}

/* ───────────── Professional TV Portal (Light Mode) ───────────── */

/* Player Stage & Container */
.tv-player-container {
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    position: relative;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.tv-now-playing-card {
    border-radius: 16px !important;
    background: #ffffff;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.25s ease;
}

/* Pulsing Live Indicator */
@keyframes pulseLiveDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.live-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    animation: pulseLiveDot 1.5s infinite;
}

/* Channel Accordion Toggle & Drawer */
.tv-channels-toggle-btn {
    background: #ffffff;
    border: 1.5px solid #0d6efd !important;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 0.88rem;
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.08);
    transition: all 0.25s ease;
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 10;
}

@media (max-width: 767.98px) {
    .tv-channels-toggle-btn {
        padding: 16px 20px;
        font-size: 1rem;
        border-radius: 14px;
        margin-bottom: 8px;
    }
}

.tv-channels-toggle-btn:hover, .tv-channels-toggle-btn:focus {
    background-color: #f8fafc !important;
    border-color: #0b5ed7 !important;
    box-shadow: 0 6px 18px rgba(13, 110, 253, 0.15);
}

#channelCollapse.collapsing,
#channelCollapse:not(.show) {
    pointer-events: none !important;
}

.tv-sidebar-panel {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 16px;
}

.sidebar-tv-grid {
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
}

@media (min-width: 992px) {
    
    /* Sleek scrollbar for sidebar */
    .sidebar-tv-grid::-webkit-scrollbar {
        width: 6px;
    }
    .sidebar-tv-grid::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 4px;
    }
    .sidebar-tv-grid::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }
    .sidebar-tv-grid::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }
}

/* Standard & Mini Channel Cards */
.tv-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.tv-card .card {
    border-radius: 14px;
    border: 1px solid #edf2f7;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tv-card:hover .card {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
    border-color: #3b82f6;
}

.tv-card img {
    max-height: 110px;
    object-fit: contain;
}

.tv-mini-card {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    height: 100%;
}

.tv-mini-card .card {
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    background: #ffffff;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.tv-mini-card:hover .card {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07) !important;
    border-color: #3b82f6;
}

.tv-mini-card.active-channel .card {
    border: 2px solid #0d6efd !important;
    background-color: #f8fafc;
    box-shadow: 0 6px 18px rgba(13, 110, 253, 0.12) !important;
}

.tv-mini-card img {
    transition: transform 0.25s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.04));
}

.tv-mini-card:hover img {
    transform: scale(1.08);
}

.tv-mini-title {
    font-size: 0.75rem;
    line-height: 1.2;
    color: #334155;
}

.tv-mini-card.active-channel .tv-mini-title {
    color: #0d6efd;
    font-weight: 700 !important;
}

.active-channel-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    color: #0d6efd;
    font-size: 0.85rem;
    z-index: 2;
}

/* Page Title */
.page-title { font-size: 1.8rem; line-height: 1.25; }
.page-title-text h1 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.page-title-text .page-title-subtitle {
    font-size: 1rem;
    color: #6c757d;
}

@media (max-width:576px){
    .page-title{font-size:1.5rem;}
    .page-title-text h1 {
        font-size: 1.5rem;
    }
    .page-title-text .page-title-subtitle {
        font-size: 0.95rem;
    }    
}

/* Iframe */
.iframe-wrapper {
    width: 100%;
    max-width: 100%;
    height: 80vh; /* container height */
    position: relative;
}

.iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Hymn */
.hymn-text {
  white-space: pre-line;
}

.chord {
    font-size: 16px;    
}

.chordimg {
    width: 90px;
    height: 90px;        
}

.lyrics-line {
  display: flex;
  flex-wrap: wrap; /* wrap on small screens */
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.syllable {
  display: inline-flex;
  flex-direction: column; /* chord on top, lyric below */
  align-items: center;
  margin-right: 0.3rem; /* spacing between syllables */
}

.chord {
  font-weight: bold;
  color: red;
  font-family: monospace;
  font-size: 0.9rem;
}

.lyric {
  font-family: sans-serif;
  font-size: 1rem;
}

.lyrics-line.chorus {
  background-color: #f8f9fa;
  border-left: 3px solid #dc3545;
  padding: 0.2rem 0.5rem;
  margin-bottom: 0.5rem;
}

/* Bible */
.bible-study {
    max-width: 720px;
    margin: 0 auto;
}


/* Masonry */
.masonry {
  column-count: 3;
  column-gap: 1.5rem;
}

.masonry > * {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
}

/* iPad / tablets */
@media (max-width: 991.98px) {
  .masonry {
    column-count: 2;
  }
}

/* phones */
@media (max-width: 575.98px) {
  .masonry {
    column-count: 1;
  }
}

/* CVVPlay Specific Styles */
.cvvplay-card-avatar {
  height: 96px !important;
  width: 96px !important;
}
.cvvplay-card-icon {
  font-size: 2.6rem !important;
}
.cvvplay-card-avatar-lg {
  height: 115px !important;
  width: 115px !important;
}
.cvvplay-card-icon-lg {
  font-size: 3.0rem !important;
}

@media (max-width: 575.98px) {
  .cvvplay-card-avatar,
  .cvvplay-card-avatar-lg {
    height: 75px !important;
    width: 75px !important;
  }
  .cvvplay-card-icon,
  .cvvplay-card-icon-lg {
    font-size: 2.2rem !important;
  }
  .cvvplay-toolbar .btn {
    padding: 0.45rem 0.85rem !important;
    font-size: 0.95rem !important;
    white-space: nowrap !important;
  }
}

.cvvplay-toolbar {
  flex-wrap: nowrap !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cvvplay-toolbar::-webkit-scrollbar {
  display: none;
}

.cvvplay-card-modern {
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(0,0,0,0.08) !important;
}
.cvvplay-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 .5rem 1.2rem rgba(0,0,0,.12) !important;
}
.cvvplay-thumbnail-container {
  position: relative;
  overflow: hidden;
  background-color: #f8f9fa;
  aspect-ratio: 16 / 9;
}
.cvvplay-thumbnail-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.cvvplay-card-modern:hover .cvvplay-thumbnail-container img {
  transform: scale(1.05);
}
.cvvplay-play-badge-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}
.cvvplay-card-modern:hover .cvvplay-play-badge-overlay {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(220, 53, 69, 0.9);
}
.cvvplay-transition-icon {
  transition: transform 0.3s ease;
}
.cvvplay-card-modern:hover .cvvplay-transition-icon {
  transform: translateX(4px);
}
.cvvplay-category-banner {
  height: 45px;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
}
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Ensure video card containers, images and YouTube player iframes maintain exact 16:9 aspect ratio on desktop without layout shifting */
div[id^="video_"], iframe[id^="video_"], .ratio, .card-img-top {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    display: block !important;
    object-fit: cover;
}

/* On mobile screens (1 card per row), allow Shorts to be fully vertical (9:16) while keeping desktop grid cards uniform (16:9) */
@media (max-width: 767.98px) {
    div[id^="video_"].is-short, iframe[id^="video_"].is-short, .ratio.is-short, .card-img-top.is-short {
        aspect-ratio: 9 / 16 !important;
    }
}


/* cvvApp.php extracted card transitions & hover effects */
.tool-card { transition: transform 0.25s ease, box-shadow 0.25s ease !important; }
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important; }
.feed-card:hover { transform: translateY(-3px); box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.1) !important; }
.feed-media-wrapper img { transition: transform 0.3s ease; }
.feed-media-wrapper:hover img { transform: scale(1.03); }

/* Library Item Shared Styles (Books, Magazines, Devotionals, etc.) */
.library-item-padding { padding: 1rem; }
.library-item-img { width: 76px; height: 76px; overflow: hidden; }
.library-item-img-book { width: 72px; height: 105px; overflow: hidden; }
.library-item-img img, .library-item-img-book img { transition: transform 0.35s ease; }
.card:hover .library-item-img img, .card:hover .library-item-img-book img { transform: scale(1.12); }
.library-item-icon { font-size: 2rem; }
.library-item-title { font-size: 1.05rem; }
.library-item-badge { font-size: 0.7rem; padding: 0.4em 0.7em; }
.segmented-control .nav-link { color: #495057; border-radius: 50rem; transition: all 0.2s ease; font-weight: 500; border: none; }
.segmented-control .nav-link:hover { color: #0d6efd; }
.segmented-control .nav-link.active { background-color: #fff !important; color: #0d6efd !important; box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075); }
@media (min-width: 768px) {
    .library-item-padding { padding: 1.25rem; }
    .library-item-img { width: 86px; height: 86px; }
    .library-item-img-book { width: 82px; height: 120px; }
    .library-item-icon { font-size: 2.25rem; }
    .library-item-title { font-size: 1.1rem; }
    .library-item-badge { font-size: 0.75rem; padding: 0.45em 0.75em; }
}

/* Bottom Navigation Pill (NavBar.php) */
#bottomNavPill {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
    transform-origin: bottom center;
}
#bottomNavPill.scrolled {
    transform: scale(0.82) translateY(5px);
    opacity: 0.85;
}

/* ==========================================================================
   Full-Width Mobile Card Layout (Facebook / Instagram Feed Style)
   ========================================================================== */

@media (max-width: 575.98px) {
    /* 1. Remove side margins and horizontal gutters from feed containers on mobile */
    .container:has(.feed-card),
    .container:has(.podcast-episode-card),
    .container:has(#latest-updates-grid),
    .container:has(#videos-grid),
    .container:has(#blogs-grid),
    .container:has(#podcasts-grid),
    .container:has(#music-grid),
    .container:has(#sites-grid),
    .container:has(#search-results-grid),
    .container:has(#source-items-grid),
    .container:has(#related-updates-grid),
    .container:has(#searchablelist),
    .container:has(.tv-player-container),
    .container:has(.bible-videos-wrapper),
    .container:has(div[id^="bibvideos-"]),
    .container.feed-container,
    .container-mobile-flush {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
    }

    /* Feed grids take 100% full width */
    #latest-updates-grid,
    #videos-grid,
    #blogs-grid,
    #podcasts-grid,
    #music-grid,
    #sites-grid,
    #search-results-grid,
    #source-items-grid,
    #related-updates-grid,
    #searchablelist,
    .feed-grid {
        --bs-gutter-x: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        gap: 0 !important;
    }

    /* 2. Column wrappers take 100% width with 0 padding */
    #latest-updates-grid > .col,
    #videos-grid > .col,
    #blogs-grid > .col,
    #podcasts-grid > .col,
    #music-grid > .col,
    #sites-grid > .col,
    #search-results-grid > .col,
    #source-items-grid > .col,
    #related-updates-grid > .col,
    #searchablelist > div[class*="col-"],
    .feed-grid > .col {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    /* 3. Full-width edge-to-edge cards (FB/IG style) */
    .feed-card,
    .podcast-episode-card,
    .study-video-card,
    #searchablelist .card {
        border-radius: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
        margin-bottom: 12px !important;
        width: 100% !important;
    }

    /* 4. Full-width edge-to-edge video and image media */
    .feed-media-wrapper,
    .feed-media-wrapper img,
    .feed-media-wrapper iframe,
    .study-video-card iframe,
    #searchablelist .card .card-img-top,
    #searchablelist .card iframe,
    #searchablelist div[id^="video_"],
    div[id^="video_"],
    iframe[id^="video_"] {
        border-radius: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 5. Comfortable internal padding for header, text, and footer */
    .feed-card .card-header {
        padding: 12px 16px !important;
    }
    .feed-card .card-body {
        padding: 12px 16px 8px 16px !important;
    }
    .feed-card .card-footer {
        padding: 8px 16px 14px 16px !important;
    }
    .podcast-episode-card {
        padding: 14px 16px !important;
    }
    #searchablelist .card .card-body {
        padding: 14px 16px !important;
    }

    /* Single view hero video card full width on phone */
    .item-view-hero-card {
        border-radius: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    /* TV Portal Video Player full width on phone */
    .container:has(.tv-player-container) .col-12 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .tv-player-container,
    .tv-player-container #tv-player,
    .tv-player-container video,
    .tv-player-container iframe,
    .tv-player-container .ratio,
    .tv-player-container .liveVideo {
        border-radius: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        box-shadow: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Bible Videos Tab Edge-to-Edge on Mobile */
    .bible-videos-card {
        border-radius: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        margin-bottom: 0 !important;
    }

    .bible-videos-card > .card-header {
        padding: 12px 16px !important;
        background: #ffffff !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
        border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
        border-radius: 0 !important;
    }

    .bible-videos-card > .card-body {
        padding: 0 !important;
    }

    .bible-videos-row {
        --bs-gutter-x: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        gap: 0 !important;
    }

    .bible-videos-row > [class*="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .bible-video-item-card {
        border-radius: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
        margin-bottom: 12px !important;
        width: 100% !important;
    }

    .bible-video-item-card div[id^="video_"],
    .bible-video-item-card div[id^="video_"] img,
    .bible-video-item-card div[id^="video_"] iframe {
        border-radius: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .bible-video-item-card .card-body {
        padding: 12px 16px 14px 16px !important;
    }
}

/* Videoteca Library & Media Card Styles */
.media-card-item {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.media-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
}
.media-card-item a {
    text-decoration: none !important;
}
.media-card-item .card-title a {
    color: inherit;
    text-decoration: none !important;
}
.media-card-item:hover .card-title a,
.media-card-item:hover .card-title a.stretched-link {
    color: #0d6efd !important;
    text-decoration: none !important;
}
.cat-pill-btn {
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
    font-weight: 500;
    font-size: 0.72rem;
    text-decoration: none !important;
}
.cat-pill-btn:hover {
    transform: scale(1.06);
    filter: brightness(0.92);
    text-decoration: none !important;
}
.text-hover-primary:hover, .link-hover-primary:hover {
    color: #0d6efd !important;
    text-decoration: none !important;
}
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sortable-header {
    transition: background-color 0.15s ease, color 0.15s ease;
}
.sortable-header:hover {
    background-color: rgba(13, 110, 253, 0.08) !important;
    color: #0d6efd !important;
}
.sortable-header:hover .sort-icon {
    opacity: 1 !important;
    color: #0d6efd !important;
}


