/* ===================================================
   shiurim.css â€” Or Hajaim Foundation â€” Shiurim Page
   Torah Anytime-style layout + premium modal
   =================================================== */

/* â”€â”€ PAGE HERO â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sp-hero {
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 30px;
  overflow: hidden;
  background: var(--blue-deep);
  text-align: center;
  transition: background 0.5s ease;
}

body.light-mode .sp-hero {
  background: transparent;
}

.sp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201, 151, 58, 0.14) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(201, 151, 58, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.sp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 15, 30, 0.4) 0%, rgba(10, 15, 30, 0.7) 100%);
  pointer-events: none;
  transition: background 0.5s ease;
}

body.light-mode .sp-hero-overlay {
  background: linear-gradient(180deg, rgba(253, 248, 230, 0.4) 0%, rgba(232, 208, 160, 0.2) 100%);
}

.sp-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.sp-hero-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  margin: 10px 0 10px;
  line-height: 1.15;
}

.sp-hero-sub {
  font-size: 1.05rem;
  color: var(--white-muted);
  max-width: 600px;
  margin: 0 auto 10px;
  line-height: 1.7;
  transition: color 0.3s ease;
}

body.light-mode .sp-hero-sub {
  color: #4a3b2b;
}

/* â”€â”€ LAYOUT WRAPPER â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sp-page-layout {
  display: flex;
  min-height: 100vh;
  background: var(--blue-deep);
  position: relative;
  transition: background 0.5s ease;
}

body.light-mode .sp-page-layout {
  background: transparent;
}

/* â”€â”€ SIDEBAR â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sp-sidebar {
  width: 75px;
  height: calc(100vh - 140px);
  /* Altura reducida para flotar con gaps */
  background: rgba(10, 15, 30, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 151, 58, 0.35);
  border-radius: 24px;
  /* Las cuatro puntas redondeadas premium */
  display: grid !important;
  grid-template-columns: 100%;
  place-items: start center;
  align-content: start;
  position: fixed;
  top: 105px;
  /* Empieza despuÃ©s del header */
  left: 15px;
  /* Separado del borde izquierdo */
  padding: 15px 0 0 !important;
  /* Limpieza de padding interno ya no necesario */
  z-index: 900;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  /* Sombra mÃ¡s profunda para frotar */
}

.sp-sidebar::-webkit-scrollbar {
  display: none !important;
  /* Chrome/Safari/Edge */
}

.sp-sidebar:hover,
.sp-sidebar:focus-within {
  width: 260px;
  place-items: start stretch;
}

/* Sidebar Branding / Header */
.sidebar-header {
  padding: 15px 0;
  display: grid !important;
  place-items: center !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  width: 100%;
}

.sidebar-brand span {
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.5rem;
  /* TamaÃ±o muy pequeÃ±o para el modo contraÃ­do */
  font-weight: 900;
  letter-spacing: 0.1em;
  display: block;
  text-align: center;
  color: var(--gold-main);
  transition: all 0.35s ease;
  white-space: nowrap;
}

.sp-sidebar:hover .sidebar-brand span,
.sp-sidebar:focus-within .sidebar-brand span {
  font-size: 0.9rem;
  /* TamaÃ±o completo al expandir */
  letter-spacing: 0.2em;
}

/* Sidebar Sections */
.sidebar-content {
  flex: 1;
  width: 100%;
  padding: 20px 0;
  display: grid !important;
  grid-template-columns: 100%;
  place-items: center;
  /* Centrado forzado de secciones */
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.sidebar-content::-webkit-scrollbar {
  display: none !important;
}

.sidebar-section {
  width: 100%;
  padding: 0 0 24px;
  margin-bottom: 8px;
  display: grid !important;
  grid-template-columns: 100%;
  place-items: center;
  /* Centrado absoluto de hijos */
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.sidebar-label {
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  /* Aumentado ligeramente para legibilidad */
  color: var(--gold-main);
  font-weight: 700;
  margin: 15px auto 10px;
  letter-spacing: 0.12em;
  /* MÃ¡s espaciado premium */
  display: block;
  white-space: nowrap;
  text-align: center;
  transition: all 0.35s ease;
  width: 100%;
}

.sp-sidebar:hover .sidebar-label,
.sp-sidebar:focus-within .sidebar-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-align: left;
  margin: 15px 0 10px 20px;
  /* Mantener 15px de margen superior */
}

/* Forzar visibilidad y tamaÃ±o de iconos Lucide - EstÃ¡ndar Premium */
.sp-sidebar .sidebar-icon,
.sp-sidebar .sidebar-icon svg,
.sp-sidebar [data-lucide],
.sp-sidebar [data-lucide] svg {
  color: #c9973a !important;
  stroke: #c9973a !important;
  width: 32px !important;
  /* MÃ¡s grandes como en la captura */
  height: 32px !important;
  stroke-width: 2.8px !important;
  /* DefiniciÃ³n alta */
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.sp-sidebar:hover .sidebar-label,
.sp-sidebar:focus-within .sidebar-label,
.sp-sidebar:hover .sidebar-brand span,
.sp-sidebar:focus-within .sidebar-brand span {
  opacity: 1;
  /* Asegurar visibilidad total en hover */
}


.sp-sidebar .sp-search-wrap {
  display: grid !important;
  place-items: center !important;
  /* Centrado absoluto Grid */
  padding: 0 !important;
  height: 38px !important;
  width: 38px !important;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 151, 58, 0.35);
  border-radius: 19px !important;
  transition: width 0.35s ease, margin 0.35s ease;
  margin: 0 auto 15px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  flex: none !important;
}

.sp-sidebar:hover .sp-search-wrap,
.sp-sidebar:focus-within .sp-search-wrap {
  display: flex !important;
  /* Volver a flex para que el input estÃ© al lado del icono */
  width: calc(100% - 32px) !important;
  height: 38px !important;
  margin: 0 16px 15px !important;
  justify-content: flex-start !important;
  padding: 0 12px !important;
}

.sp-sidebar input#sp-search {
  display: none;
  /* Ocultar para que no ocupe espacio en colapsado */
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #fff !important;
  width: 100% !important;
  height: 38px !important;
  min-height: 0 !important;
  opacity: 0;
  transition: opacity 0.2s ease;
  font-family: 'Assistant', sans-serif;
  font-size: 0.9rem;
  outline: none !important;
}

.sp-sidebar:hover input#sp-search,
.sp-sidebar:focus-within input#sp-search {
  display: block;
  opacity: 1;
}

.sp-sidebar .sp-search-wrap .sidebar-icon,
.sp-sidebar .sp-search-wrap .sidebar-icon svg {
  width: 24px !important;
  /* Reducido para mejor equilibrio */
  height: 24px !important;
}

/* Vertical Filters */
.filter-group-vertical {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sp-sidebar .filter-pill {
  display: flex !important;
  flex-direction: column !important;
  /* APILAMIENTO VERTICAL EN COLAPSADO */
  align-items: center !important;
  justify-content: center !important;
  width: 60px;
  height: 60px;
  background: transparent;
  border: none;
  border-radius: 16px;
  color: var(--white-muted);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 5px auto !important;
  /* MÃ¡s apretado para permitir apilamiento */
  padding: 0 !important;
  overflow: hidden;
  flex-shrink: 0;
}

.sp-sidebar:not(:hover) .filter-pill span {
  font-size: 0.4rem !important;
  margin-top: 2px !important;
  opacity: 0.7 !important;
}

.sp-sidebar:hover .filter-pill,
.sp-sidebar:focus-within .filter-pill {
  flex-direction: row !important;
  /* VUELVE A FILA EN EXPANDIDO */
  width: calc(100% - 24px);
  margin: 5px 12px !important;
  padding-left: 16px !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  height: 48px;
}

.filter-pill .sidebar-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold-main);
  background: none !important;
  /* Quitar cualquier fondo que haga cÃ­rculos */
  border: none !important;
  /* Quitar bordes que hagan cÃ­rculos */
  box-shadow: none !important;
}

.filter-pill.active {
  background: rgba(255, 255, 255, 0.08) !important;
  /* Fondo sutil oscuro/grisÃ¡ceo */
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.04);
}

.sp-sidebar .filter-pill span {
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  font-size: 0.95rem;
}

.sp-sidebar:hover .filter-pill span,
.sp-sidebar:focus-within .filter-pill span {
  opacity: 1;
}

.sidebar-select-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Custom Premium Dropdown System */
.custom-select {
  position: relative;
  width: 100%;
  user-select: none;
}

.select-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 151, 58, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--white-muted);
}

.sp-sidebar:not(:hover) .select-trigger {
  width: 48px;
  padding: 0;
  margin: 0 auto;
  justify-content: center;
  background: transparent;
  border-color: transparent;
}

.custom-select:hover .select-trigger {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(201, 151, 58, 0.5);
  transform: translateX(4px);
}

.custom-select.active .select-trigger {
  border-color: var(--gold-main);
  background: rgba(201, 151, 58, 0.1);
}

.select-trigger span {
  font-family: 'Assistant', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  flex: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  display: none;
}

.sp-sidebar:hover .select-trigger span,
.sp-sidebar:focus-within .select-trigger span {
  display: block;
  opacity: 1;
}

.select-trigger .chevron {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  opacity: 0;
  display: none;
}

.sp-sidebar:hover .select-trigger .chevron,
.sp-sidebar:focus-within .select-trigger .chevron {
  display: block;
  opacity: 0.6;
}

.custom-select.active .chevron {
  transform: rotate(180deg);
}

.select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: rgba(15, 20, 35, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 151, 58, 0.3);
  border-radius: 14px;
  overflow: hidden;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.96);
  transform-origin: top left;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(201, 151, 58, 0.08);
}

.custom-select.active .select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.select-option {
  padding: 12px 16px 12px 20px;
  font-family: 'Assistant', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white-muted);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  border-left: 3px solid transparent;
  position: relative;
}

.select-option:last-child {
  border-bottom: none;
}

.select-option:hover {
  background: rgba(201, 151, 58, 0.12);
  color: var(--gold-light);
  border-left-color: var(--gold-main);
  padding-left: 24px;
}

.select-option.selected {
  background: rgba(201, 151, 58, 0.18);
  color: #fff;
  font-weight: 700;
  border-left-color: var(--gold-main);
}

.select-option.selected::after {
  content: 'âœ“';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-main);
  font-size: 0.85rem;
  font-weight: 700;
}

/* Light Mode Overrides for Custom Select */
body.light-mode .select-trigger {
  background: rgba(255, 252, 245, 0.6);
  border-color: rgba(176, 141, 72, 0.2);
  color: #4a3b2b;
}

body.light-mode .sp-sidebar:not(:hover) .select-trigger {
  background: transparent;
  border-color: transparent;
}

body.light-mode .custom-select:hover .select-trigger {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(176, 141, 72, 0.5);
}

body.light-mode .custom-select.active .select-trigger {
  background: rgba(255, 252, 245, 0.95);
  border-color: #b08d48;
}

body.light-mode .select-options {
  background: rgba(255, 253, 247, 0.98);
  border-color: rgba(176, 141, 72, 0.3);
  box-shadow: 0 12px 40px rgba(122, 88, 26, 0.15), 0 0 0 1px rgba(176, 141, 72, 0.08);
}

body.light-mode .select-option {
  color: #4a3b2b;
  border-bottom-color: rgba(176, 141, 72, 0.06);
}

body.light-mode .select-option:hover {
  background: rgba(201, 151, 58, 0.08);
  color: #5c3c0a;
  border-left-color: #b08d48;
}

body.light-mode .select-option.selected {
  background: rgba(201, 151, 58, 0.12);
  color: #3d2605;
  border-left-color: #b08d48;
}

body.light-mode .select-option.selected::after {
  color: #8a6220;
}

/* View Toggles in Sidebar */
.view-toggle-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 1;
  transition: all 0.3s ease;
  align-items: center;
  width: 100%;
}

.sp-sidebar:hover .view-toggle-grid,
.sp-sidebar:focus-within .view-toggle-grid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 12px;
  padding: 0 16px;
}

.sp-sidebar .view-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(201, 151, 58, 0.2);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--white-muted);
  cursor: pointer;
}

.sp-sidebar .view-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(201, 151, 58, 0.5);
  transform: translateY(-2px);
}

.sp-sidebar .view-btn.active {
  background: rgba(201, 151, 58, 0.15);
  border-color: var(--gold-main);
  color: var(--gold-main);
  box-shadow: 0 4px 15px rgba(201, 151, 58, 0.15);
}

body.light-mode .view-btn {
  background: rgba(255, 252, 245, 0.6) !important;
  border-color: rgba(176, 141, 72, 0.2) !important;
  color: #4a3b2b !important;
}

body.light-mode .view-btn:hover {
  background: #fff !important;
  border-color: var(--gold-main) !important;
}

body.light-mode .view-btn.active {
  background: rgba(201, 151, 58, 0.15) !important;
  border-color: var(--gold-main) !important;
  color: #5c3c0a !important;
}

/* Rabbi Pills Vertical */
.rabbi-pills-vertical {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sp-sidebar .rabbi-pill {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  /* CÃ­rculo perfecto */
  overflow: hidden;
  /* Cortar lo que se salga */
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 8px auto;
  border: 1px solid rgba(201, 151, 58, 0.3);
  transition: all 0.35s ease;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.sp-sidebar .rabbi-pill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ajuste perfecto sin deformar */
  border-radius: 50%;
}

.sp-sidebar:hover .rabbi-pill,
.sp-sidebar:focus-within .rabbi-pill {
  width: calc(100% - 24px);
  height: 48px;
  border-radius: 12px;
  /* Se vuelve pastilla al expandir */
  margin: 8px 12px;
  padding: 0 12px !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  gap: 12px;
}

.sp-sidebar:hover .rabbi-pill img {
  width: 32px;
  height: 32px;
}

.sp-sidebar .rabbi-pill span {
  display: none;
  /* Eliminar del flujo para que no empuje la imagen */
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.sp-sidebar:hover .rabbi-pill span,
.sp-sidebar:focus-within .rabbi-pill span {
  display: block;
  opacity: 1;
}

/* â”€â”€ CONTENT CONTAINER (PUSH) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sp-content-container {
  flex: 1;
  margin-left: 105px;
  /* Ajuste: 15px (gap) + 75px (sidebar) + 15px (separaciÃ³n visual) */
  transition: margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 40px;
  min-width: 0;
  /* Permite que el flex item se encoja si es necesario */
  background: var(--blue-deep);
  transition: background 0.5s ease, margin-left 0.35s ease;
}

body.light-mode .sp-content-container {
  background: transparent;
}

.sp-sidebar:hover+.sp-content-container,
.sp-sidebar:focus-within+.sp-content-container,
.sp-sidebar:hover~.sp-content-container,
.sp-sidebar:focus-within~.sp-content-container {
  margin-left: 290px;
  /* Ajuste: 15px (gap) + 260px (sidebar) + 15px (separaciÃ³n visual) */
}

/* Light Mode Overrides */
body.light-mode .sp-sidebar {
  background: rgba(255, 252, 245, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-right: 1.5px solid rgba(201, 151, 58, 0.5);
  box-shadow: 10px 0 40px rgba(122, 88, 26, 0.08);
}

body.light-mode .sidebar-header {
  border-bottom-color: rgba(176, 141, 72, 0.1);
}

body.light-mode .sidebar-section {
  border-bottom-color: rgba(176, 141, 72, 0.1);
}

body.light-mode .sp-sidebar .sidebar-icon,
body.light-mode .sp-sidebar .sidebar-icon svg,
body.light-mode .sp-sidebar [data-lucide],
body.light-mode .sp-sidebar [data-lucide] svg {
  color: #7a581a !important;
  stroke: #7a581a !important;
}

body.light-mode .sp-sidebar .filter-pill {
  color: #4a3b2b;
}

body.light-mode .sp-sidebar .filter-pill.active {
  background: rgba(201, 151, 58, 0.15) !important;
  color: #5c3c0a;
  border: 1px solid rgba(201, 151, 58, 0.4) !important;
  box-shadow: 0 4px 12px rgba(201, 151, 58, 0.1);
}

body.light-mode .sp-sidebar .filter-pill:hover:not(.active) {
  background: rgba(201, 151, 58, 0.05);
}

body.light-mode .sp-sidebar .sp-search-wrap {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(201, 151, 58, 0.3);
}

body.light-mode .sp-sidebar input#sp-search {
  color: #4a3b2b !important;
}

body.light-mode .sp-sidebar input#sp-search::placeholder {
  color: rgba(74, 59, 43, 0.5);
}

body.light-mode .sp-sidebar .sidebar-label {
  color: #8a6220;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* body.light-mode .gold-text-vibrant removed - now using global vibrant_gold.css */

body.light-mode .section-tag {
  color: #7a581a !important;
  border-color: rgba(122, 88, 26, 0.4) !important;
  background: rgba(255, 252, 245, 0.5);
}

body.light-mode .sidebar-select-item {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(201, 151, 58, 0.2);
}

body.light-mode .sidebar-select-item select {
  color: #4a3b2b;
}

body.light-mode .rabbi-pill {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(201, 151, 58, 0.2);
}

body.light-mode .rabbi-pill:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--gold-main);
}

/* Mobile Adjustments â€” Reducido a 768px para evitar disparos accidentales en desktop */
@media (max-width: 768px) {
  .sp-page-layout {
    flex-direction: column;
  }

  .sp-sidebar {
    width: 100% !important;
    height: auto;
    position: relative;
    top: 0;
    flex-direction: row;
    overflow-x: auto;
    padding: 10px;
    min-height: unset;
  }

  .sidebar-header,
  .sidebar-label,
  .sp-sidebar .filter-pill span,
  .sp-sidebar input#sp-search,
  .sidebar-select-item select,
  .sidebar-brand {
    display: none !important;
  }

  .sidebar-content {
    display: flex;
    padding: 0;
    gap: 15px;
  }

  .sidebar-section {
    padding: 0;
    border: none;
    margin: 0;
  }

  .sp-sidebar .sp-search-wrap,
  .sp-sidebar .filter-pill,
  .sp-sidebar .rabbi-pill {
    width: 44px !important;
  }

  .sp-content-container {
    margin-left: 0 !important;
  }
}

body.light-mode .sp-main {
  background: transparent;
}

/* â”€â”€ CATEGORY SECTION â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sp-cat-section {
  margin-bottom: 52px;
}

.sp-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 18px;
  /* Eliminado el padding lateral redundante */
}

.sp-cat-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.05em;
}

.sp-cat-nav {
  display: flex;
  gap: 8px;
}

.sp-row-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue-mid);
  border: 1.5px solid var(--gold-main);
  color: var(--gold-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.sp-row-arrow:hover {
  background: var(--gold-main);
  color: var(--blue-deep);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(201, 151, 58, 0.4);
}

.sp-row-arrow i {
  width: 20px;
  height: 20px;
  stroke-width: 2.5px;
}

/* Light Mode Arrow Overrides */
body.light-mode .sp-row-arrow {
  background: #ffffff;
  border-color: var(--gold-main);
  color: var(--gold-main);
  box-shadow: 0 4px 15px rgba(122, 88, 26, 0.15);
}

body.light-mode .sp-row-arrow:hover {
  background: var(--gold-main);
  color: #ffffff;
}

/* â”€â”€ HORIZONTAL CAROUSEL ROW â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sp-row-wrap {
  position: relative;
  overflow: hidden;
  padding: 8px 0 16px;
  /* Eliminado el padding lateral redundante */
}

.sp-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
  cursor: grab;
}

.sp-row:active {
  cursor: grabbing;
}

.sp-row::-webkit-scrollbar {
  display: none;
}

/* â”€â”€ VIDEO CARD â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sp-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--card-bg);
  border-radius: 14px;
  border: 1px solid var(--card-border);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.light-mode .sp-card {
  background: rgba(255, 252, 245, 0.7);
  border-color: rgba(176, 141, 72, 0.2);
  box-shadow: 0 8px 24px rgba(122, 88, 26, 0.08);
}

.sp-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(201, 151, 58, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(201, 151, 58, 0.2);
}

.sp-card:focus {
  outline: 2px solid var(--gold-main);
  outline-offset: 2px;
}

.sp-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(10, 15, 30, 0.8);
}

.sp-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.sp-card:hover .sp-card-thumb img {
  transform: scale(1.07);
}

.sp-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 30, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s ease;
}

.sp-card:hover .sp-card-overlay {
  background: rgba(10, 15, 30, 0.55);
}

.sp-card-play {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 6px 20px rgba(201, 151, 58, 0.5);
  color: var(--blue-deep);
}

.sp-card:hover .sp-card-play {
  opacity: 1;
  transform: scale(1);
}

.sp-card-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 0.75rem;
  font-family: 'Assistant', sans-serif;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.sp-card-info {
  padding: 14px 16px 16px;
}

.sp-card-cat {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-main);
  margin-bottom: 6px;
}

.sp-card-title {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

body.light-mode .sp-card-title {
  color: #3d2605;
}

.sp-card-speaker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(201, 151, 58, 0.15);
}

.sp-speaker-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-main);
  object-fit: cover;
  background: var(--blue-dark);
}

.sp-speaker-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sp-speaker-name {
  font-family: 'Assistant', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}

.sp-card-date {
  font-family: 'Assistant', sans-serif;
  font-size: 0.72rem;
  color: var(--white-muted);
  opacity: 0.8;
  transition: color 0.3s ease;
}

body.light-mode .sp-card-date {
  color: #5c3c0a;
}


/* â”€â”€ SEARCH RESULTS GRID â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sp-search-grid {
  padding: 0 40px;
}

.sp-search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.sp-search-results-grid .sp-card {
  flex: none;
  width: 100%;
}

/* â”€â”€ NO RESULTS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sp-no-results {
  text-align: center;
  color: var(--white-muted);
  font-size: 1.05rem;
  padding: 60px 24px;
  font-family: 'Lora', serif;
}

/* â”€â”€ YOUTUBE CTA BANNER â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sp-yt-banner {
  padding: 60px 40px;
  background: linear-gradient(135deg, rgba(26, 39, 68, 0.95) 0%, rgba(10, 15, 30, 0.98) 100%);
  border-top: 1px solid rgba(201, 151, 58, 0.2);
  border-bottom: 1px solid rgba(201, 151, 58, 0.2);
}

body.light-mode .sp-yt-banner {
  background: linear-gradient(135deg, rgba(240, 235, 220, 0.95) 0%, rgba(250, 245, 235, 0.98) 100%);
}

.sp-community-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 50px;
  align-items: center;
}

.sp-community-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.sp-community-divider {
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(201, 151, 58, 0.3) 20%, rgba(201, 151, 58, 0.3) 80%, transparent 100%);
}

@media (max-width: 900px) {
  .sp-community-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sp-community-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(201, 151, 58, 0.3) 20%, rgba(201, 151, 58, 0.3) 80%, transparent 100%);
  }

  .sp-community-block {
    align-items: center;
    text-align: center;
  }

  .sp-community-block .sp-cta-actions {
    justify-content: center;
  }
}

.sp-banner-icons {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-shrink: 0;
}

.sp-banner-icons .icon-yt,
.sp-banner-icons .icon-sp,
.sp-banner-icons .icon-wa {
  flex-shrink: 0;
}

.sp-banner-icons .icon-yt {
  color: #ff0000;
  filter: drop-shadow(0 0 16px rgba(255, 0, 0, 0.35));
}

.sp-banner-icons .icon-sp {
  color: #1DB954;
  filter: drop-shadow(0 0 16px rgba(29, 185, 84, 0.35));
}

.sp-banner-icons .icon-wa {
  color: #25D366;
  filter: drop-shadow(0 0 16px rgba(37, 211, 102, 0.35));
}

.sp-yt-text {
  flex: 1;
  min-width: 200px;
}

.sp-yt-text h3 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.4rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.sp-yt-text p {
  color: var(--white-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* â”€â”€â”€ YouTube Button â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.btn-youtube {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  background: #ff0000;
  color: #fff;
  border-radius: 100px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(255, 0, 0, 0.35);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-youtube:hover {
  background: #cc0000;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 0, 0, 0.5);
}

.sp-cta-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

@media (max-width: 768px) {

  .btn-youtube,
  .btn-spotify {
    width: 100%;
    min-width: unset;
  }
}

/* â”€â”€ VIDEO MODAL BACKDROP â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body.modal-open {
  overflow: hidden;
}

/* sp-modal styles removed - now using global styles in styles.css */
/* ============================================
   SHORTS (VERTICAL VIDEOS) STYLES
   ============================================ */
.sp-card-vertical {
  flex: 0 0 200px !important;
}

.sp-card-vertical .sp-card-thumb {
  aspect-ratio: 9 / 16 !important;
}

.sp-search-results-grid:has(.sp-card-vertical) {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
}


/* ── AUDIO CARD STYLES ─────────────────── */
.sp-card-audio .sp-card-thumb {
  background: linear-gradient(135deg, #1a2744 0%, #2a3b5a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-card-audio .sp-card-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(201, 151, 58, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.sp-card-audio .sp-card-play {
 background: var(--gold-main);
 color: #fff;
 opacity: 1;
 transform: scale(1);
 box-shadow: 0 0 20px rgba(201, 151, 58, 0.4);
}

.sp-card-audio:hover .sp-card-play {
 transform: scale(1.1);
 background: var(--gold-light);
}

/* Sonar Effect for Audio */
.sp-card-audio .sp-card-play::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--gold-main);
  border-radius: 50%;
  animation: sonar-wave 2s infinite;
  opacity: 0;
}

@keyframes sonar-wave {
 0% { transform: scale(1); opacity: 0.6; }
 100% { transform: scale(2.5); opacity: 0; }
}

#sp-modal-audio {
 background: rgba(255, 255, 255, 0.05);
 border-radius: 12px;
 padding: 10px;
 border: 1px solid rgba(201, 151, 58, 0.2);
 filter: invert(1) hue-rotate(180deg); /* Adjust default browser player colors */
}

/* ── AUDIO MODAL STYLES ─────────────────── */
.sp-modal.is-audio .sp-modal-player-container {
  background: linear-gradient(135deg, #0a0f1e 0%, #1a2744 100%);
  border-bottom: 1px solid rgba(201, 151, 58, 0.2);
}

.sp-modal.is-audio .sp-modal-player {
  aspect-ratio: auto !important;
  height: auto !important;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.sp-modal.is-audio .sp-modal-player::before {
  content: "🎙️";
  font-size: 5rem;
  opacity: 0.1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.sp-modal.is-audio #sp-modal-audio {
 position: relative;
 z-index: 1;
 display: block !important;
 max-width: 600px;
 margin: 0 auto;
 box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* ── REFINED AUDIO MODAL STYLES ─────────────────── */
.sp-modal.is-audio .sp-modal-player {
  min-height: 130px !important;
  padding: 15px !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sp-modal.is-audio .sp-modal-player::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 30, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1;
}

.sp-modal.is-audio #sp-modal-audio,
.sp-modal.is-audio-yt #sp-modal-iframe {
 position: relative;
 z-index: 2;
 max-width: 500px;
 box-shadow: 0 15px 40px rgba(0,0,0,0.6);
 border-radius: 12px;
}

/* Adjusting YouTube player when it is used for audio */
.sp-modal.is-audio-yt .sp-modal-player {
 aspect-ratio: auto !important;
 height: 200px !important;
}

.sp-modal.is-audio-yt #sp-modal-iframe {
 height: 80px !important;
 background: #000;
}

/* Light Mode Fixes */
body.light-mode .sp-modal.is-audio .sp-modal-player::after {
 background: rgba(255, 255, 255, 0.3);
}

body.light-mode .sp-modal-header {
 background: #fff !important;
 border-bottom: 1px solid rgba(122, 88, 26, 0.1);
}

/* -- DAILY SHIURIM SECTION ---------------------- */
.sp-daily-section {
    padding: 0 40px 40px;
    margin-top: 20px;
    position: relative;
    z-index: 10;
}

.sp-daily-card {
    border-radius: 32px;
    padding: 30px;
    border: 1px solid rgba(201, 151, 58, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    background: rgba(15, 20, 35, 0.8);
    backdrop-filter: blur(20px);
}

body.light-mode .sp-daily-card {
    background: rgba(255, 252, 245, 0.9);
    border-color: rgba(176, 141, 72, 0.3);
    box-shadow: 0 15px 35px rgba(122, 88, 26, 0.1);
}

.sp-daily-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.sp-daily-tag {
    font-family: "Assistant", sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--gold-main);
    display: block;
    margin-bottom: 4px;
}

.sp-daily-title {
    font-family: "Cinzel", serif;
    font-size: 1.6rem;
    color: #fff;
    margin: 0;
}

body.light-mode .sp-daily-title { color: #4a3b2b; }

.sp-daily-controls {
 display: flex;
 align-items: center;
 gap: 12px;
}

.sp-view-toggle {
 display: flex;
 background: rgba(255, 255, 255, 0.05);
 padding: 3px;
 border-radius: 10px;
 border: 1px solid rgba(201, 151, 58, 0.2);
}

body.light-mode .sp-view-toggle {
 background: rgba(0, 0, 0, 0.03);
}

.toggle-btn {
 width: 36px;
 height: 32px;
 display: flex;
 align-items: center;
 justify-content: center;
 border: none;
 background: transparent;
 color: var(--white-muted);
 border-radius: 7px;
 cursor: pointer;
 transition: all 0.3s ease;
}

body.light-mode .toggle-btn { color: #4a3b2b; }

.toggle-btn.active {
 background: var(--gold-main);
 color: #000;
}

.sp-date-search {
 display: flex;
 align-items: center;
 background: rgba(255, 255, 255, 0.05);
 border-radius: 10px;
 border: 1px solid rgba(201, 151, 58, 0.2);
 overflow: hidden;
 height: 38px;
}

body.light-mode .sp-date-search {
 background: rgba(0, 0, 0, 0.03);
}

.date-input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 0 10px;
    font-family: "Assistant", sans-serif;
    outline: none;
    font-size: 0.85rem;
}

body.light-mode .date-input { color: #4a3b2b; }

.search-btn {
 background: transparent;
 border: none;
 color: var(--gold-main);
 padding: 0 10px;
 cursor: pointer;
 height: 100%;
}

/* Calendar Styles */
.sp-calendar-container {
 margin-bottom: 25px;
 min-height: 110px;
}

/* Week View */
.week-strip {
 display: flex !important;
 flex-direction: row !important;
 gap: 12px;
 overflow-x: auto;
 padding: 5px 2px 15px;
 scrollbar-width: none;
}

.week-strip::-webkit-scrollbar { display: none; }

.day-card {
 flex: 1;
 min-width: 85px;
 height: 90px;
 display: flex !important;
 flex-direction: column !important;
 align-items: center !important;
 justify-content: center !important;
 background: rgba(255, 255, 255, 0.04);
 border: 1px solid rgba(201, 151, 58, 0.15);
 border-radius: 16px;
 cursor: pointer;
 transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-mode .day-card {
 background: #fff;
 border-color: rgba(176, 141, 72, 0.15);
}

.day-card:hover {
 background: rgba(201, 151, 58, 0.08);
 border-color: rgba(201, 151, 58, 0.4);
 transform: translateY(-4px);
}

.day-card.active {
 background: linear-gradient(135deg, rgba(201, 151, 58, 0.25), rgba(201, 151, 58, 0.05));
 border-color: var(--gold-main);
 box-shadow: 0 8px 20px rgba(201, 151, 58, 0.2);
}

body.light-mode .day-card.active {
 background: linear-gradient(135deg, rgba(201, 151, 58, 0.15), rgba(255, 255, 255, 1));
}

.day-name {
 font-size: 0.65rem;
 font-weight: 800;
 text-transform: uppercase;
 color: var(--gold-main);
 margin-bottom: 4px;
}

.day-number {
    font-family: "Cinzel", serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

body.light-mode .day-number { color: #4a3b2b; }

.day-card.today::after {
    content: "";
    width: 5px;
    height: 5px;
    background: var(--gold-main);
    border-radius: 50%;
    margin-top: 4px;
}

/* Month Grid */
.month-grid {
 display: grid !important;
 grid-template-columns: repeat(7, 1fr) !important;
 gap: 6px;
 max-width: 500px;
 margin: 0 auto;
}

.month-header-day {
 text-align: center;
 font-size: 0.65rem;
 font-weight: 800;
 color: var(--gold-main);
 padding: 8px 0;
}

.month-day {
    aspect-ratio: 1;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    cursor: pointer;
    font-family: "Cinzel", serif;
    font-size: 0.9rem;
    color: var(--white-muted);
    transition: all 0.2s ease;
}

body.light-mode .month-day {
 background: rgba(0, 0, 0, 0.02);
 color: #4a3b2b;
}

.month-day:hover {
 background: rgba(201, 151, 58, 0.15);
 border-color: rgba(201, 151, 58, 0.4);
}

.month-day.active {
 background: var(--gold-main);
 color: #000;
 font-weight: 700;
 border-color: var(--gold-main);
}

.month-day.empty {
 visibility: hidden;
}

/* Daily Content Area */
.sp-daily-content {
 background: rgba(255, 255, 255, 0.03);
 border-radius: 20px;
 padding: 25px;
 border: 1px solid rgba(255, 255, 255, 0.06);
 min-height: 180px;
}

body.light-mode .sp-daily-content {
 background: rgba(0, 0, 0, 0.02);
 border-color: rgba(176, 141, 72, 0.1);
}

.daily-shiur-empty {
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 height: 150px;
 color: var(--white-muted);
 font-style: italic;
 gap: 12px;
}

body.light-mode .daily-shiur-empty { color: #4a3b2b; opacity: 0.6; }

.daily-shiur-grid {
 display: grid;
 grid-template-columns: 280px 1fr;
 gap: 25px;
}

@media (max-width: 768px) {
 .daily-shiur-grid { grid-template-columns: 1fr; }
 .sp-daily-header { align-items: center; text-align: center; flex-direction: column; }
 .sp-daily-section { padding: 0 15px 20px; }
}

.daily-shiur-thumb {
 width: 100%;
 aspect-ratio: 16/9;
 border-radius: 14px;
 overflow: hidden;
 border: 1px solid rgba(201, 151, 58, 0.2);
}

.daily-shiur-thumb img {
 width: 100%;
 height: 100%;
 object-fit: cover;
}

.daily-shiur-info h3 {
    font-family: "Lora", serif;
    font-size: 1.4rem;
    color: #fff;
    margin: 0 0 8px;
}

body.light-mode .daily-shiur-info h3 { color: #4a3b2b; }

.daily-shiur-desc {
 color: var(--white-muted);
 font-size: 0.9rem;
 line-height: 1.5;
 margin-bottom: 18px;
}

body.light-mode .daily-shiur-desc { color: #4a3b2b; opacity: 0.8; }

.daily-shiur-player {
 display: flex;
 align-items: center;
 gap: 12px;
 flex-wrap: wrap;
}

.btn-play-daily {
 display: flex;
 align-items: center;
 gap: 8px;
 padding: 10px 20px;
 background: var(--gold-main);
 color: #000;
 border-radius: 50px;
 font-weight: 700;
 text-decoration: none;
 transition: all 0.3s ease;
 font-size: 0.9rem;
}

.btn-play-daily:hover {
 transform: scale(1.05);
 box-shadow: 0 8px 16px rgba(201, 151, 58, 0.3);
}

.btn-text-daily {
 display: flex;
 align-items: center;
 gap: 8px;
 padding: 10px 20px;
 background: rgba(255, 255, 255, 0.05);
 color: var(--gold-main);
 border: 1px solid var(--gold-main);
 border-radius: 50px;
 font-weight: 700;
 text-decoration: none;
 transition: all 0.3s ease;
 font-size: 0.9rem;
}

body.light-mode .btn-text-daily { background: transparent; }

.btn-text-daily:hover {
 background: rgba(201, 151, 58, 0.1);
}

/* Fix for icons if they are too small */
.sp-daily-section [data-lucide] {
 width: 18px;
 height: 18px;
}


/* Month Navigation Buttons */
.month-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.month-nav-btn:hover {
    background: rgba(201, 151, 58, 0.15) !important;
}

body.light-mode .month-nav-btn:hover {
    background: rgba(176, 141, 72, 0.1) !important;
}


/* Calendar System Toggle Styles */
body.light-mode .sp-calendar-system-toggle {
    background: rgba(0, 0, 0, 0.03) !important;
}

