
.video-library {
  background-color: var(--cream, #fdfbf7);
  min-height: 100vh;
  padding-bottom: 100px;
}

/* ── Hero Header (Dark Forest) ── */
.library-hero {
  background-color: var(--forest, #1A3A20);
  padding: 160px 0 80px;
  text-align: center;
  margin-bottom: 0;
}

.library-hero h1 {
  font-family: var(--display, 'Cormorant Garamond', serif);
  font-size: clamp(44px, 8vw, 80px);
  color: #fdfbf7;
  margin-bottom: 16px;
  line-height: 1;
}

.library-hero h1 em {
  font-style: italic;
  color: var(--gold-light, #E2C073);
}

.library-hero p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
}

.lib-card .sc-card__tag-pill {
    background: rgba(26, 58, 32, 0.08);
    color: var(--forest);
    border-color: rgba(26, 58, 32, 0.15);
}

/* ── Custom Wider Container ── */
.wrap-wide {
  width: 92%;
  max-width: 1500px;
  margin: 0 auto;
}

/* ── Layout Grid ── */
.library-layout {
  display: flex;
  align-items: flex-start;
  gap: clamp(40px, 5vw, 80px);
  padding-top: 64px; 
}

/* ── Sticky Sidebar ── */
.library-sidebar {
  width: 240px;
  flex-shrink: 0;
}

.sidebar-sticky {
  position: sticky;
  top: 120px;
}

.sidebar-title {
  font-family: var(--body, sans-serif);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-light, #8E8A80);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(28,26,22,0.1);
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  color: var(--ink-mid, #4A4843);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-md);
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}

.sidebar-link:hover {
  background: rgba(26,58,32,0.04);
  color: var(--forest, #1A3A20);
}

.sidebar-link.active {
  background: rgba(196,154,60,0.1);
  color: var(--forest, #1A3A20);
  border-left-color: var(--gold, #C49A3C);
  font-weight: 600;
}

.video-count {
  font-size: 11px;
  font-weight: 700;
  background: rgba(28,26,22,0.06);
  padding: 2px 8px;
  border-radius: 12px;
  color: var(--ink-light);
}

.sidebar-link.active .video-count {
  background: var(--gold);
  color: #fff;
}

/* ── Content Area ── */
.library-content {
  flex: 1;
  min-width: 0; 
}

.muni-section {
  margin-bottom: 80px;
  padding-top: 20px;
}

.muni-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(28,26,22,0.1);
}

.muni-section__title-group {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.muni-section__title-group h2 {
  font-family: var(--display, 'Cormorant Garamond', serif);
  font-size: clamp(32px, 4vw, 44px);
  color: var(--forest, #1A3A20);
  margin: 0;
  line-height: 1;
}

.muni-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Carousel Arrows ── */
.muni-carousel-controls {
  display: flex;
  gap: 8px;
  padding-bottom: 4px;
}

.muni-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(28,26,22,0.15);
  background: #ffffff;
  color: var(--ink-mid, #4A4843);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
}

.muni-btn:hover {
  background: var(--forest, #1A3A20);
  color: #ffffff;
  border-color: var(--forest, #1A3A20);
  transform: scale(1.05);
}

.vc-desc-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;  
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: justify;
    text-indent: 36px;
}

.vc-desc-text.expanded {
    display: block;
    --webkit-line-clamp: unset;
}

.vc-desc-toggle {
    background: none;
    border: none;
    padding: 4px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--forest);
    cursor: pointer;
    display: block;
    transition: color 0.2s;
}

.vc-desc-toggle:hover {
    color: var(--gold);
}
/* ════════════════════════════════════════
   HORIZONTAL CAROUSEL (NETFLIX STYLE)
════════════════════════════════════════ */

.muni-video-track {
  display: flex;
  flex-wrap: nowrap; 
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 24px; 
  scroll-snap-type: x mandatory; 
  --webkit-overflow-scrolling: touch; 
  --webkit-scrollbar-width: thin;
  --webkit-scrollbar-color: var(--gold) rgba(28,26,22,0.05);
}

.muni-video-track::-webkit-scrollbar {
  height: 6px;
}
.muni-video-track::-webkit-scrollbar-track {
  background: rgba(28,26,22,0.05);
  border-radius: 10px;
}
.muni-video-track::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 10px;
}

/* ── Light Theme Overrides for Cards ── */
.lib-card {
  flex: 0 0 calc(33.333% - 16px);
  scroll-snap-align: start; 
  background: #ffffff;
  border: 1px solid rgba(28,26,22,0.1);
  box-shadow: 0 12px 32px rgba(26,58,32,0.05);
  padding-bottom: 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.lib-card:hover {
  transform: translateY(-5px);
}

.lib-card .sc-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #111;
}

.lib-card .sc-card__info {
  padding: 24px 24px 0;
}

.lib-card .sc-card__info h3 {
  font-family: var(--display, serif);
  color: var(--ink, #1C1A16);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.2;
}

.lib-card .sc-card__info p {
  color: var(--ink-mid, #4A4843);
  font-size: 14px;
  line-height: 1.6;
}

/* Empty State */
.library-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--ink-light);
  width: 100%;
}

.library-empty i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

/* ════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
════════════════════════════════════════ */

@media (max-width: 1200px) {
  .lib-card {
    flex: 0 0 calc(50% - 12px); 
  }
}

@media (max-width: 860px) {
  .library-layout {
    flex-direction: column;
    gap: 40px;
  }
  
  .library-sidebar {
    width: 100%;
  }

  .sidebar-sticky {
    position: relative;
    top: 0;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    -ms-overflow-style: none;
    --webkit-scrollbar-width: none;   
  }
  
  .sidebar-nav::-webkit-scrollbar {
    display: none;
  }

  .sidebar-link {
    white-space: nowrap;
    border-left: none;
    border-bottom: 2px solid transparent;
  }

  .sidebar-link.active {
    border-left: none;
    border-bottom-color: var(--gold);
  }
}

@media (max-width: 640px) {
  .muni-carousel-controls {
    display: none; 
  }

  .muni-section__head h2 {
    font-size: 28px;
  }

  .lib-card {
    flex: 0 0 85%; 
  }
}