/* Sermons page layout fixes — colors unchanged, positioning only */

body.sermons-page {
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
}

.sermons-page .sermonsmain {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1400px;
  min-height: 100vh;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

.sermons-page .signinandnav,
.sermons-page .searchheading {
  flex-shrink: 0;
  height: auto;
}

.sermons-page .signinandnav {
  min-height: 56px;
}

.sermons-page .searchheading {
  padding: 10px 16px;
}

.sermons-page .searchdiv {
  width: 100%;
  display: flex;
  justify-content: center;
}

.sermons-page .search-input {
  width: 100%;
  max-width: 640px;
  margin: 0;
}

.sermons-page .navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: auto;
  min-height: 56px;
  padding: 8px 16px;
  gap: 12px;
  position: relative;
}

.sermons-page .sermons-auth-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  order: 1;
}

.sermons-page .column-99 {
  margin-left: 0;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
}

.sermons-page .sermonsignin {
  width: auto;
  min-width: 110px;
  margin: 0;
  white-space: nowrap;
}

.sermons-page .menu-button {
  order: 2;
  flex-shrink: 0;
  margin-left: auto;
}

.sermons-page .nav-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  margin-top: 0;
  z-index: 200;
}

.sermons-page .bodydiv {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  padding: 0 12px 12px;
  overflow: hidden;
}

.sermons-page .columns-4 {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  height: auto;
  min-height: 0;
  margin-left: 0;
  margin-right: 0;
}

.sermons-page .column-8,
.sermons-page .column-6,
.sermons-page .column-7 {
  height: auto;
  float: none;
}

.sermons-page .sermon-categories,
.sermons-page .events-sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
}

.sermons-page .events-sidebar .mostplayedheading {
  flex-shrink: 0;
  margin: 0 0 8px;
}

.sermons-page .mostplayeddiv {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sermons-page .sermonlist {
  height: auto;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
}

.sermons-page .sermontitleblock {
  height: auto;
  min-height: 60px;
  align-items: center;
  gap: 10px;
  padding-left: 4px;
  padding-right: 8px;
}

.sermons-page .innerblock {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.sermons-page .innerblock .sermontitle,
.sermons-page .innerblock .sermonpastorname {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sermons-page .innerbuynow {
  flex-shrink: 0;
  width: auto;
  min-width: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sermons-page .buynowbutton,
.sermons-page .playsermonnow {
  width: 72px;
  min-width: 72px;
  margin: 0;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  border-radius: 5px;
  font-family: Exo, sans-serif;
  display: block;
}

.sermons-page .buynowbutton {
  color: #fff;
  background-color: #3898ec;
}

.sermons-page .buynowbutton:hover {
  background-color: #2d7fd1;
}

.sermons-page .playsermonnow {
  color: #fff;
  background-color: #cb6ce6;
}

.sermons-page .playsermonnow:hover {
  background-color: #b85cd4;
}

.sermons-page .playerdiv {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  min-height: 72px;
  flex-shrink: 0;
  z-index: 100;
  margin-top: auto;
}

.sermons-page .sermonplayer {
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  padding: 10px 16px;
  gap: 6px;
}

.sermons-page .currentlyplaying {
  margin: 0;
  padding: 0;
  min-height: 1.25em;
  font-size: 14px;
}

.sermons-page .currentlyplaying:empty {
  display: none;
}

.sermons-page .sermonAudio {
  position: static !important;
  width: 100%;
  margin: 0 !important;
  padding: 0;
  border-radius: 5px;
}

.sermons-page .sermontitleblock.currently-playing {
  background-color: #52345b;
  border-left: 4px solid #cb6ce6;
  padding-left: 12px;
  transform: none;
}

@keyframes sermon-pulse {
  0% { background-color: rgba(145, 53, 171, 0.15); }
  50% { background-color: rgba(145, 53, 171, 0.28); }
  100% { background-color: rgba(145, 53, 171, 0.15); }
}

.sermons-page .sermontitleblock.currently-playing {
  animation: sermon-pulse 2s infinite;
}

.sermons-page .sundaysermonscat,
.sermons-page .conventioncat,
.sermons-page .womicocat,
.sermons-page .iycat,
.sermons-page .librarycat {
  height: auto;
  min-height: 44px;
  flex-shrink: 0;
}

@media screen and (max-width: 991px) {
  .sermons-page .columns-4 {
    flex-wrap: wrap;
    gap: 12px;
  }

  .sermons-page .column-8,
  .sermons-page .column-6,
  .sermons-page .column-7 {
    width: 100% !important;
  }

  .sermons-page .sermon-categories {
    flex-direction: row;
    flex-wrap: wrap;
    max-height: none;
    overflow: visible;
  }

  .sermons-page .sermon-categories > div {
    flex: 1 1 calc(50% - 4px);
    min-width: 140px;
  }

  .sermons-page .sermonlist,
  .sermons-page .events-sidebar {
    max-height: none;
  }

  .sermons-page .sermonlist {
    min-height: 280px;
    max-height: 55vh;
  }

  .sermons-page .events-sidebar {
    max-height: 40vh;
    overflow-y: auto;
  }
}

@media screen and (max-width: 767px) {
  .sermons-page .navbar {
    padding: 8px 10px;
  }

  .sermons-page .sermonsignin {
    min-width: 90px;
    font-size: 12px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .sermons-page .innerbuynow {
    min-width: 64px;
  }

  .sermons-page .buynowbutton,
  .sermons-page .playsermonnow {
    width: 64px;
    min-width: 64px;
    font-size: 11px;
    padding: 6px 8px;
  }

  .sermons-page .sermontitle {
    font-size: 13px;
  }

  .sermons-page .sermonpastorname {
    font-size: 11px;
  }
}

.google-auth-prompt {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.72);
  z-index: 1000;
}

.google-auth-prompt.is-visible {
  display: flex;
}

.google-auth-prompt__card {
  width: 100%;
  max-width: 420px;
  background-color: #252525;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.google-auth-prompt__title {
  color: #fff;
  margin: 0 0 12px;
  font-family: Exo, sans-serif;
  font-size: 24px;
  font-weight: 600;
}

.google-auth-prompt__text {
  color: #b4b4b4;
  margin: 0 0 20px;
  font-family: Exo, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.google-auth-prompt__google {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100% !important;
  max-width: 100%;
  margin: 0 auto 12px;
  color: #111;
  background-color: #fff;
  border-radius: 5px;
  font-family: Exo, sans-serif;
  text-align: center;
}

.google-auth-prompt__google:hover {
  background-color: #a0a2a3;
}

.google-auth-prompt__later {
  display: block;
  width: auto;
  margin: 0 auto;
  color: #b4b4b4;
  background: transparent;
  border: none;
  font-family: Exo, sans-serif;
  font-size: 14px;
  cursor: pointer;
  padding: 8px;
  text-align: center;
}

.google-auth-prompt__later:hover {
  color: #fff;
}

.sermon-signin-required {
  background-color: #252525;
  border-radius: 9px;
  padding: 24px;
  margin-top: 12px;
  text-align: center;
}

.sermon-signin-required__title {
  color: #fff;
  margin: 0 0 8px;
  font-family: Exo, sans-serif;
  font-size: 20px;
  font-weight: 600;
}

.sermon-signin-required__text {
  color: #b4b4b4;
  margin: 0;
  font-family: Exo, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
