/* ============================================================
   COHD Greek Podcast Platform — Dark Navy Theme
   ============================================================ */

/* ── CSS Variables ── */
:root {
  --bg-dark: #1A160C;
  --bg-darker: #110E08;
  --bg-card: rgba(255, 255, 255, 0.05);
  --cream: #F5E6C8;
  --cream-muted: rgba(245, 230, 200, 0.6);
  --accent-green: #ADBC37;
  --accent-warm: #944C22;
  --accent-olive: #928D34;
  --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-serif: 'Playfair Display', serif;
}

/* ── Base ── */
html {
  font-size: 16px;
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--cream);
  overflow-x: hidden;
}

/* ── Utilities ── */
.bg-dark-blue {
  background-color: var(--bg-darker);
}

.fs-xs {
  font-size: 0.75rem;
}

.fs-sm {
  font-size: 0.875rem;
}

.tracking-widest {
  letter-spacing: 0.2em;
}

.transition-all {
  transition: all 0.3s ease;
}

.hover-opacity:hover {
  opacity: 0.7;
}

.hover-white:hover {
  color: var(--cream) !important;
}

/* ── Main Content ── */
.main-content {
  min-height: calc(100vh - 350px);
}

/* ── Typography ── */
.section-title {
  font-family: var(--font-sans);
  letter-spacing: 0.15em;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
  color: var(--cream);
}

.serif-heading {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--cream);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
  background: linear-gradient(120deg, #EDE5CC 0%, #D5CEBC 60%, #C5BCA6 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
}

/* ── Logo ── */
.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  transition: opacity 0.3s ease;
}

.site-logo:hover {
  opacity: 0.82;
  text-decoration: none !important;
}

.site-logo-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  gap: 0.05rem;
}

.site-logo-mark__top {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.38em;
  color: var(--accent-green);
  font-weight: 600;
  text-transform: uppercase;
}

.site-logo-mark__main {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  color: var(--cream);
  font-weight: 800;
  text-transform: uppercase;
}

.site-header.scrolled .site-logo-mark__top {
  color: var(--accent-warm);
}

.site-header.scrolled .site-logo-mark__main {
  color: var(--bg-dark);
}

/* ── Nav links ── */
.custom-nav-link {
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  position: relative;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.4s ease;
}

.custom-nav-link:hover {
  opacity: 0.65;
}

.site-header.scrolled .custom-nav-link {
  color: var(--bg-dark) !important;
}

/* ── Nav icon ── */
.nav-icon-link {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 1rem;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.4s ease;
}

.nav-icon-link:hover {
  opacity: 0.65;
}

.site-header.scrolled .nav-icon-link {
  color: var(--bg-dark) !important;
}

/* ── Nav search ── */
.nav-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  border: 1px solid rgba(245, 230, 200, 0.22);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.25rem 0.3rem 0.25rem 0.85rem;
  backdrop-filter: blur(10px);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.3s ease;
}

.nav-search:focus-within {
  border-color: rgba(245, 230, 200, 0.45);
  box-shadow: 0 0 0 3px rgba(173, 188, 55, 0.16);
}

.nav-search--desktop {
  width: clamp(12rem, 18vw, 16rem);
}

.nav-search__input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--cream);
  font-size: 0.88rem;
}

.nav-search__input::placeholder {
  color: rgba(245, 230, 200, 0.65);
}

.nav-search__submit {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  color: var(--cream);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.nav-search__submit:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.site-header.scrolled .nav-search {
  border-color: rgba(17, 14, 8, 0.12);
  background: rgba(255, 255, 255, 0.62);
}

.site-header.scrolled .nav-search:focus-within {
  box-shadow: 0 0 0 3px rgba(148, 76, 34, 0.12);
}

.site-header.scrolled .nav-search__input {
  color: var(--bg-dark);
}

.site-header.scrolled .nav-search__input::placeholder {
  color: rgba(26, 22, 12, 0.52);
}

.site-header.scrolled .nav-search__submit {
  background: var(--bg-dark);
  color: #fff;
}

.site-header.scrolled .nav-search__submit:hover {
  background: #2A1E0E;
}

/* ── Primary button ── */
.btn-nav-primary {
  background: rgba(255, 255, 255, 0.18);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  backdrop-filter: blur(4px);
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease, transform 0.15s ease;
}

.btn-nav-primary:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff !important;
  transform: translateY(-1px);
}

.site-header.scrolled .btn-nav-primary {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: #fff !important;
  backdrop-filter: none;
}

.site-header.scrolled .btn-nav-primary:hover {
  background: #2A1E0E;
}

/* ── Ghost button (Συνδέσου / Αποσύνδεση) ── */
.btn-nav-ghost {
  background: none;
  border: none;
  padding: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.4s ease;
}

.btn-nav-ghost:hover {
  opacity: 0.65;
}

.site-header.scrolled .btn-nav-ghost {
  color: var(--bg-dark);
}

/* ── Signed-in username ── */
.nav-username {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.4s ease;
}

.site-header.scrolled .nav-username {
  color: var(--bg-dark);
  opacity: 0.7;
}

.custom-nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.custom-nav-link:hover::after {
  width: 100%;
}

/* ============================================================
   SEARCH
   ============================================================ */
.search-page {
  min-height: calc(100vh - 350px);
  padding: 8.5rem 0 5rem;
}

.search-page__intro {
  max-width: 52rem;
  margin-bottom: 2rem;
}

.search-page__eyebrow {
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent-green);
}

.search-page__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  color: var(--cream);
}

.search-page__subtitle {
  margin: 1rem 0 0;
  max-width: 42rem;
  color: rgba(245, 230, 200, 0.75);
  line-height: 1.7;
}

.search-page__query {
  color: var(--cream);
  font-weight: 600;
}

.search-page__count {
  color: var(--accent-green);
}

.search-page__form {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
  padding: 0.5rem;
  border: 1px solid rgba(245, 230, 200, 0.12);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 1.5rem;
}

.search-page__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--cream);
  font-size: 1rem;
  padding: 0.55rem 0.9rem;
}

.search-page__input::placeholder {
  color: rgba(245, 230, 200, 0.56);
}

.search-page__submit {
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent-green);
  color: #1B160C;
  font-weight: 700;
  transition: transform 0.15s ease, filter 0.2s ease;
}

.search-page__submit:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.search-empty-state {
  max-width: 36rem;
  padding: 2rem;
  border: 1px solid rgba(245, 230, 200, 0.12);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.04);
}

.search-empty-state h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  color: var(--cream);
}

.search-empty-state p {
  margin: 0;
  color: rgba(245, 230, 200, 0.72);
  line-height: 1.7;
}

.search-results {
  display: grid;
  gap: 1.35rem;
}

.search-result-card {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: 1.35rem;
  padding: 1rem;
  border: 1px solid rgba(245, 230, 200, 0.12);
  border-radius: 1.5rem;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.search-result-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.04);
}

.search-result-card__media img,
.search-result-card__video-thumb,
.search-result-card__placeholder {
  width: 100%;
  height: 100%;
}

.search-result-card__media img,
.search-result-card__video-thumb {
  object-fit: cover;
}

.search-result-card__video-thumb {
  display: block;
}

.search-result-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(173, 188, 55, 0.18), rgba(148, 76, 34, 0.22));
  color: var(--cream);
  font-size: 2rem;
}

.search-result-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  justify-content: center;
}

.search-result-card__match {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-green);
}

.search-result-card__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.search-result-card__title a {
  color: var(--cream);
  text-decoration: none;
}

.search-result-card__title a:hover {
  color: #fff;
}

.search-result-card__summary {
  margin: 0;
  color: rgba(245, 230, 200, 0.76);
  line-height: 1.75;
}

.search-result-card__meta {
  margin: 0;
  color: rgba(245, 230, 200, 0.58);
  font-size: 0.95rem;
}

.search-result-card__meta span {
  color: rgba(245, 230, 200, 0.86);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background-color: #000;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
  filter: grayscale(100%);
  opacity: 0.75;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0) 25%,
      rgba(26, 22, 12, 0.65) 55%,
      rgba(26, 22, 12, 0.94) 80%,
      rgba(26, 22, 12, 1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem 7rem;
  max-width: 860px;
  width: 100%;
}

.hero-label {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--cream);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-description {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: rgba(245, 230, 200, 0.82);
  line-height: 1.7;
  margin-bottom: 2.2rem;
}

.hero-play-btn {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  border: none;
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.hero-play-btn:hover {
  background: #fff;
  transform: scale(1.04);
  color: #111;
}

.hero-duration {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding-left: 0.7rem;
  margin-left: 0.2rem;
  border-left: 1px solid rgba(0, 0, 0, 0.18);
}

.hero-duration:empty {
  display: none;
}

.hero-nav {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-nav-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hero-nav-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
}

.hero-nav-next {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
  border-radius: 50px;
  padding: 0.55rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hero-nav-next:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ============================================================
   PAGE SECTIONS
   ============================================================ */
.page-section {
  background: var(--bg-dark);
  padding: 4rem 0;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--cream-muted);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-header a {
  color: var(--cream-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.section-header a:hover {
  color: var(--cream);
}

.section-title-text {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cream-muted);
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .nav-search--mobile {
    width: 100%;
    margin-bottom: 1rem;
  }

  .search-page {
    padding-top: 7.5rem;
  }
}

@media (max-width: 767.98px) {
  .search-page__form {
    flex-direction: column;
    align-items: stretch;
  }

  .search-page__submit {
    justify-content: center;
  }

  .search-result-card {
    grid-template-columns: 1fr;
  }

  .search-result-card__media {
    max-width: 16rem;
  }
}

/* ============================================================
   PODCAST CARDS (horizontal scroll row with arrow nav)
   ============================================================ */

.podcast-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.podcast-arrow {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(245, 230, 200, 0.35);
  background: transparent;
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.podcast-carousel-wrap:hover .podcast-arrow {
  opacity: 1;
}

.podcast-arrow:hover {
  background: rgba(245, 230, 200, 0.08);
  border-color: var(--cream);
}

.podcast-row {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.podcast-row::-webkit-scrollbar {
  display: none;
}

.podcast-card {
  flex: 0 0 auto;
  width: 160px;
  cursor: pointer;
}

.podcast-card__thumb {
  width: 160px;
  height: 160px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
  position: relative;
}

.podcast-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.podcast-card:hover .podcast-card__thumb img {
  transform: scale(1.06);
}

/* Play overlay on hover */
.podcast-card__thumb::after {
  content: '\25B6';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: white;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.podcast-card:hover .podcast-card__thumb::after {
  opacity: 1;
}

.podcast-card__duration {
  font-size: 0.75rem;
  color: var(--cream-muted);
  margin-bottom: 0.25rem;
}

.podcast-card__title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cream);
  text-transform: uppercase;
  line-height: 1.3;
}

/* ============================================================
   CATEGORY + MOOD TAGS
   ============================================================ */
.cat-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(245, 230, 200, 0.3);
  border-radius: 50px;
  color: var(--cream-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.cat-tag:hover {
  border-color: var(--cream);
  color: var(--cream);
}

.cat-tag--active {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #1A160C;
  font-weight: 700;
}

.mood-tag {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(245, 230, 200, 0.2);
  border-radius: 50px;
  color: rgba(245, 230, 200, 0.5);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.mood-tag:hover {
  color: var(--cream-muted);
  border-color: rgba(245, 230, 200, 0.4);
}

.tags-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ============================================================
   FULL-WIDTH FEATURE SECTIONS
   ============================================================ */
.fullwidth-feature {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  /* support inline background-image usage */
  background-size: cover;
  background-position: center;
}

.fullwidth-feature .feature-bg {
  position: absolute;
  inset: 0;
}

.fullwidth-feature .feature-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fullwidth-feature--grayscale {
  filter: grayscale(80%);
}

.fullwidth-feature--no-img {
  background: linear-gradient(135deg, #1a1208 0%, #2e1f0a 40%, #1c1510 100%);
}

.feature-video-bg,
.feature-photo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.fullwidth-feature .feature-overlay,
.fullwidth-feature>.feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0) 30%,
      rgba(20, 16, 8, 0.7) 60%,
      rgba(20, 16, 8, 0.97) 100%);
  z-index: 1;
}

/* feature-nav inherits hero-nav positioning but scoped to fullwidth-feature */
.fullwidth-feature .feature-nav {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 3;
}

.feature-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem 5rem;
  max-width: 700px;
}

.feature-label {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: rgba(245, 230, 200, 0.7);
  margin-bottom: 0.75rem;
  display: block;
  text-transform: uppercase;
}

.feature-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--cream);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  line-height: 1.05;
}

.feature-subtitle {
  font-size: 0.85rem;
  color: var(--cream-muted);
  margin-bottom: 0.75rem;
}

.feature-description {
  font-size: 0.95rem;
  color: rgba(245, 230, 200, 0.75);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.feature-play-btn {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  border: none;
  border-radius: 50px;
  padding: 0.6rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.feature-play-btn:hover {
  background: #fff;
  transform: scale(1.04);
  color: #111;
}

/* ============================================================
   MAP SECTIONS
   ============================================================ */
.map-section {
  background: var(--bg-darker);
  padding: 0;
  min-height: 500px;
}

/* map-layout is the actual flex row inside map-section */
.map-layout {
  display: flex;
  width: 100%;
  min-height: 500px;
}

.map-layout .map-visual {
  flex: 0 0 62%;
  background: #0D0A06;
  position: relative;
  overflow: hidden;
  height: 460px;
}

#map-preview {
  width: 100%;
  height: 100%;
}

/* Right-edge gradient fade: map bleeds into the text panel */
.map-layout .map-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 500;
  background:
    linear-gradient(to right,  transparent 55%, var(--bg-darker) 100%),
    linear-gradient(to bottom, var(--bg-darker) 0%, transparent 12% 88%, var(--bg-darker) 100%);
}

.map-layout .map-text {
  flex: 0 0 38%;
  padding: 4rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* reversed layout */
.map-layout--reversed .map-visual {
  order: 2;
}

.map-layout--reversed .map-text {
  order: 1;
}

/* map SVG containers fill their parent */
.greece-map,
.athens-map {
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.map-pin {
  position: absolute;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15), 0 0 12px rgba(255, 255, 255, 0.3);
}

.map-pin::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid white;
}

/* Leaflet divIcon for the homepage map preview */
.cohd-map-pin {
  background: none !important;
  border: none !important;
}
.cohd-map-pin svg {
  display: block;
}

.map-section .map-text .section-label {
  color: var(--accent-green);
}

.map-title {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 900;
  color: var(--cream);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.map-description {
  color: var(--cream-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 340px;
}

.map-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: var(--cream);
  border: none;
  border-radius: 50px;
  color: var(--bg-dark);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.map-btn:hover {
  background: var(--cream);
  color: var(--bg-dark);
  opacity: 0.88;
}

/* ============================================================
   SUPPORT SECTION
   ============================================================ */
.support-section {
  background: var(--bg-dark);
  padding: 6rem 1.5rem;
  text-align: center;
}

.support-text {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: var(--cream-muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.support-btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  border: 2px solid var(--cream);
  border-radius: 50px;
  color: var(--cream);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.support-btn:hover {
  background: var(--cream);
  color: var(--bg-dark);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0B0907;
  color: var(--cream);
  padding-top: 3rem;
  padding-bottom: 1.5rem;
}

.footer-link {
  color: var(--cream-muted) !important;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.9rem;
}

.footer-link:hover {
  color: var(--cream);
}

/* ============================================================
   COLLECTION FEATURE (e.g. ΚΟΝΤΡΑ ΣΤΑ ΠΡΟΓΝΩΣΤΙΚΑ)
   Full-width image card with title + two CTA buttons
   ============================================================ */
.collection-feature {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-size: cover;
  background-position: center top;
}

.collection-feature__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(13, 10, 5, 0.35) 45%,
      rgba(13, 10, 5, 0.88) 80%,
      rgba(13, 10, 5, 0.98) 100%);
  z-index: 1;
}

.collection-feature__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem 4rem;
  max-width: 700px;
  width: 100%;
}

.collection-feature__title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--cream);
  text-transform: uppercase;
  line-height: 1.0;
  margin-bottom: 1rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.collection-feature__desc {
  font-size: 0.95rem;
  color: rgba(245, 230, 200, 0.78);
  line-height: 1.65;
  margin-bottom: 1.8rem;
}

.collection-feature__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.collection-feature__btn {
  display: inline-flex;
  align-items: center;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.65rem 1.6rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.collection-feature__btn--primary {
  background: rgba(255, 255, 255, 0.92);
  color: #111;
}

.collection-feature__btn--primary:hover {
  background: #fff;
  color: #111;
  transform: scale(1.03);
}

.collection-feature__btn--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: white;
}

.collection-feature__btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: white;
  color: white;
}

/* ============================================================
   ΠΟΛΛΑΠΛΕΣ ΣΥΛΛΟΓΕΣ — Collections Carousel
   ============================================================ */
.collections-section {
  background: #F5EDD8;
  padding: 3.5rem 0 4rem;
  color: #111;
}

.collections-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  min-height: 2.5rem;
}

/* "Όλα τα podcasts" pinned to the right */
.collections-all-btn {
  position: absolute;
  right: 0;
}

.collections-heading {
  font-size: clamp(0.9rem, 1.8vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #111;
  margin: 0;
  flex: 1;
  text-align: center;
}

/* "Όλα τα podcasts" pill button styles */
.collections-all-btn {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 50px;
  color: #333;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.collections-all-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #111;
}

/* Carousel wrapper */
.collections-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Both arrows */
.collections-arrow {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.collections-carousel-wrap:hover .collections-arrow {
  opacity: 1;
}

/* ← : solid dark */
.collections-arrow--prev {
  background: #1a1a1a;
  color: #fff;
  border: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.collections-arrow--prev:hover {
  background: #333;
}

/* → : outline/ghost */
.collections-arrow--next {
  background: rgba(245, 230, 200, 0.12);
  color: #F5EDD8;
  border: 1px solid rgba(245, 230, 200, 0.35);
}

.collections-arrow--next:hover {
  background: rgba(245, 230, 200, 0.22);
}

.collections-row {
  flex: 1;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 1rem 0 1.5rem 0;
}

.collections-row::-webkit-scrollbar {
  display: none;
}

/* ── Individual collection card ── */
.coll-card {
  flex: 0 0 auto;
  width: 260px;
  /* landscape card */
  cursor: pointer;
}

.coll-card__stack {
  position: relative;
  width: 260px;
  height: 168px;
  /* ~16:10 landscape ratio */
  border-radius: 12px;
  overflow: visible;
  margin-bottom: 0.75rem;
}

/* Two stacked shadow layers behind the card — shifted down-right */
.coll-card__stack::before,
.coll-card__stack::after {
  content: '';
  position: absolute;
  border-radius: 12px;
  z-index: 0;
  background: #bfb49a;
}

.coll-card__stack::before {
  inset: 0;
  transform: translate(7px, 8px);
  opacity: 0.6;
}

.coll-card__stack::after {
  inset: 0;
  transform: translate(13px, 14px);
  opacity: 0.35;
}

.coll-card__stack img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  transition: transform 0.35s ease;
}

.coll-card:hover .coll-card__stack img {
  transform: scale(1.03);
}

/* Play + Add buttons — shown on hover, bottom-left of image */
.coll-card__actions {
  position: absolute;
  bottom: 0.65rem;
  left: 0.65rem;
  z-index: 3;
  display: flex;
  gap: 0.4rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.coll-card:hover .coll-card__actions {
  opacity: 1;
}

.coll-card__action-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
  background: rgba(255, 255, 255, 0.88);
  color: #111;
}

.coll-card__action-btn:hover {
  background: #fff;
}

.coll-card__action-btn--play {
  background: #111;
  color: #fff;
}

.coll-card__action-btn--play:hover {
  background: #333;
  color: #fff;
}

/* Text below card */
.coll-card__count {
  font-size: 0.72rem;
  color: #999;
  margin-bottom: 0.2rem;
  text-align: center;
}

.coll-card__title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #1A160C;
  text-transform: uppercase;
  line-height: 1.25;
  text-align: center;
}

/* ── feature-desc alias ── */
.feature-desc {
  font-size: 0.95rem;
  color: rgba(245, 230, 200, 0.75);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ── section-link ── */
.section-link {
  color: var(--cream-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.section-link:hover {
  color: var(--cream);
}

/* ============================================================
   CATEGORIES + MOOD GRID
   ============================================================ */
.cat-mood-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.cat-col,
.mood-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cat-cta {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(245, 230, 200, 0.08);
}

.cat-cta__heading {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--cream);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.cat-cta__sub {
  color: var(--cream-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.cat-cta__btn {
  display: inline-block;
  padding: 0.65rem 1.8rem;
  border: 1px solid rgba(245, 230, 200, 0.4);
  border-radius: 50px;
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cat-cta__btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--cream);
  color: var(--cream);
}

/* ============================================================
   MAP TEXT SUBCLASSES (BEM from HTML)
   ============================================================ */
.map-text__title {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 800;
  color: var(--cream);
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.map-text__desc {
  color: var(--cream-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.map-text__count {
  font-size: 0.85rem;
  color: var(--accent-green);
  font-weight: 600;
  margin-bottom: 1rem;
}

.map-text__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  border: 1px solid rgba(245, 230, 200, 0.4);
  border-radius: 50px;
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.map-text__btn:hover {
  border-color: var(--cream);
  background: rgba(255, 255, 255, 0.05);
  color: var(--cream);
}

/* ── support-inner ── */
.support-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ============================================================
   LEGACY CARD / STORY UTILITIES (kept for compatibility)
   ============================================================ */
.card-hover-zoom {
  overflow: hidden;
  border-radius: 8px;
  position: relative;
  cursor: pointer;
}

.card-hover-zoom img {
  transition: transform 0.5s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-hover-zoom:hover img {
  transform: scale(1.05);
}

.story-card {
  min-width: 280px;
  max-width: 320px;
  flex: 0 0 auto;
}

.stories-row {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding-bottom: 1rem;
  scrollbar-width: none;
}

.stories-row::-webkit-scrollbar {
  display: none;
}

.category-card {
  background-color: var(--bg-card);
  border: 1px solid rgba(245, 230, 200, 0.08);
  border-radius: 8px;
  padding: 3rem 1rem;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  color: var(--cream);
  text-decoration: none;
  display: block;
}

.category-card:hover {
  background-color: rgba(255, 255, 255, 0.09);
  transform: translateY(-5px);
  color: var(--cream);
}

.stacked-card-wrapper {
  position: relative;
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.stacked-card-wrapper::before,
.stacked-card-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  z-index: -1;
  transition: transform 0.3s ease;
}

.stacked-card-wrapper::before {
  transform: translate(5px, 5px);
}

.stacked-card-wrapper::after {
  transform: translate(10px, 10px);
}

.stacked-card-wrapper:hover {
  transform: translate(-5px, -5px);
}

.stacked-card-wrapper:hover::before {
  transform: translate(10px, 10px);
}

.stacked-card-wrapper:hover::after {
  transform: translate(20px, 20px);
}

.collection-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

/* ============================================================
   EPISODE CAROUSEL  (_EpisodeCarousel.cshtml)
   Side-by-side cards: portrait thumb LEFT, meta RIGHT
   ============================================================ */

.ec-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  min-height: 2.5rem;
}

.ec-heading {
  font-size: clamp(0.85rem, 1.8vw, 1.2rem);
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0;
  text-align: center;
}

.ec-all-btn {
  position: absolute;
  right: 0;
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border: 1px solid rgba(245, 230, 200, 0.4);
  border-radius: 50px;
  color: var(--cream-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ec-all-btn:hover {
  background: rgba(245, 230, 200, 0.08);
  color: var(--cream);
}

.ec-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ec-arrow {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(245, 230, 200, 0.4);
  background: transparent;
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.ec-carousel-wrap:hover .ec-arrow {
  opacity: 1;
}

.ec-arrow:hover {
  background: rgba(245, 230, 200, 0.1);
  border-color: var(--cream);
}

.ec-row {
  flex: 1;
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}

.ec-row::-webkit-scrollbar {
  display: none;
}

/* Side-by-side card */
.ec-card {
  flex: 0 0 auto;
  width: 360px;
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  cursor: pointer;
  background: transparent;
  border-radius: 10px;
  padding: 0.75rem;
  scroll-snap-align: start;
  transition: background 0.25s ease;
}

.ec-card:focus-visible,
.ep-detail__list-item:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 4px;
}

.ec-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ec-card__thumb {
  flex: 0 0 155px;
  width: 155px;
  height: 185px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.ec-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ec-card:hover .ec-card__thumb img {
  transform: scale(1.05);
}

.ec-card__thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.ec-card:hover .ec-card__thumb::before {
  opacity: 1;
}

.ec-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ec-card__play span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  padding-left: 2px;
}

.ec-card:hover .ec-card__play,
.ec-card:focus-within .ec-card__play,
.ep-detail__list-item:hover .ec-card__play,
.ep-detail__list-item:focus-within .ec-card__play {
  opacity: 1;
  pointer-events: auto;
}

.ec-card__meta {
  flex: 1;
  padding-top: 0.2rem;
}

.ec-card__duration {
  font-size: 0.75rem;
  color: var(--cream-muted);
  margin-bottom: 0.4rem;
}

.ec-card__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--cream);
  text-transform: uppercase;
  line-height: 1.3;
}

.ec-card__title a {
  color: inherit;
  text-decoration: none;
}

.ec-card__title a:hover {
  color: var(--cream);
}

/* ============================================================
   SERIES CAROUSEL  (_SeriesCarousel.cshtml)
   Landscape cards — play + add buttons centered on hover
   ============================================================ */

.sc-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  min-height: 2.5rem;
}

.sc-heading {
  font-size: clamp(0.85rem, 1.8vw, 1.2rem);
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0;
  text-align: center;
}

.sc-all-btn {
  position: absolute;
  right: 0;
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border: 1px solid rgba(245, 230, 200, 0.4);
  border-radius: 50px;
  color: var(--cream-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sc-all-btn:hover {
  background: rgba(245, 230, 200, 0.08);
  color: var(--cream);
}

.sc-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sc-arrow {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 0.88rem;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.sc-carousel-wrap:hover .sc-arrow {
  opacity: 1;
}

.sc-arrow--prev {
  background: rgba(245, 230, 200, 0.1);
  color: var(--cream);
  border: 1px solid rgba(245, 230, 200, 0.35);
}

.sc-arrow--prev:hover {
  background: rgba(245, 230, 200, 0.2);
}

.sc-arrow--next {
  background: rgba(245, 230, 200, 0.1);
  color: var(--cream);
  border: 1px solid rgba(245, 230, 200, 0.35);
}

.sc-arrow--next:hover {
  background: rgba(245, 230, 200, 0.2);
}

.sc-row {
  flex: 1;
  display: flex;
  gap: 2.25rem;
  /* extra gap absorbs the 15px stacked-card overhang */
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 1.5rem 2rem 0;
  /* bottom + right padding so stacked layers don't clip */
}

.sc-row::-webkit-scrollbar {
  display: none;
}

/* ── Series card
   Shadow layers = ::before (z-index:0) and ::after (z-index:1) on .sc-card.
   .sc-card has isolation:isolate so its children z-index values are scoped.
   .sc-card__img-wrap sits at z-index:2 — always in front.
   ── */
.sc-card {
  flex: 0 0 auto;
  width: 292px;
  cursor: pointer;
  text-align: center;
  position: relative;
  isolation: isolate;
  /* creates stacking context: children z-index scoped here */
}

/* Image container — isolation creates stacking context for z-index: -1 shadows */
.sc-card__img-wrap {
  position: relative;
  isolation: isolate;
  width: 292px;
  aspect-ratio: 290 / 160;
  height: auto;
  margin-bottom: 1rem;
}

/* Shadow images — 80% height, pinned left / right, behind main image */
.sc-card__shadow-img {
  position: absolute;
  top: 50%;
  aspect-ratio: 260 / 160;
  height: 80%;
  width: auto;
  transform: translateY(-50%);
  filter: brightness(0.5);
  border-radius: 4px;
  z-index: -1;
  transition: transform 0.2s ease;
  object-fit: cover;
}

.sc-card__shadow-img--left {
  left: 0;
}

.sc-card__shadow-img--right {
  right: 0;
}

.sc-card:hover .sc-card__shadow-img--left {
  transform: translateX(-20px) translateY(-50%);
}

.sc-card:hover .sc-card__shadow-img--right {
  transform: translateX(20px) translateY(-50%);
}

/* Main image — full height, centered */
.sc-card__main-img {
  position: absolute;
  aspect-ratio: 260 / 160;
  height: 100%;
  width: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 10px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.sc-card:hover .sc-card__main-img {
  transform: translate(-50%, -50%) scale(1.03);
}

/* Play + Add — bottom-left of image, revealed on hover */
.sc-card__actions {
  position: absolute;
  bottom: 0.65rem;
  left: 0.65rem;
  display: flex;
  gap: 0.4rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sc-card:hover .sc-card__actions {
  opacity: 1;
}

.sc-card__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sc-card__btn--play {
  background: rgba(255, 255, 255, 0.92);
  color: #111;
}

.sc-card__btn--play i {
  transform: translateX(1px);
}

.sc-card__btn--play:hover {
  background: #fff;
}

.sc-card__btn--add {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.sc-card__btn--add:hover {
  background: rgba(255, 255, 255, 0.35);
}

.sc-card__count {
  font-size: 0.72rem;
  color: var(--cream-muted);
  margin-bottom: 0.3rem;
  text-align: center;
}

.sc-card__title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--cream);
  text-transform: uppercase;
  line-height: 1.3;
  text-align: center;
}

/* ============================================================
   CATEGORIES GRID  (_CategoriesGrid.cshtml)
   ============================================================ */

.categories-section {
  padding: 3rem 0;
}

.categories-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.categories-heading {
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 0.75rem;
}

/* decorative ornament below heading */
.categories-heading-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.categories-heading-line {
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(173, 188, 55, 0.5), transparent);
}

.categories-heading-diamond {
  display: block;
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  transform: rotate(45deg);
  opacity: 0.7;
}

.categories-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cat-tile {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(245, 230, 200, 0.1);
  border-bottom: 2px solid transparent;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.cat-tile:hover {
  background: rgba(173, 188, 55, 0.08);
  border-color: rgba(245, 230, 200, 0.15);
  border-bottom-color: var(--accent-green);
  box-shadow: 0 4px 18px rgba(173, 188, 55, 0.12);
}

.cat-tile--active {
  background: rgba(173, 188, 55, 0.1);
  border-color: rgba(173, 188, 55, 0.3);
  border-bottom-color: var(--accent-green);
}

.cat-tile__name {
  font-size: 1rem;
  color: var(--cream);
  font-family: var(--font-serif);
  white-space: nowrap;
}

.cat-tile__name--bold {
  font-weight: 700;
  font-family: var(--font-sans);
}

.cat-tile__name--italic {
  font-style: italic;
}

.cat-tile__count {
  font-size: 0.7rem;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--accent-green);
  background: rgba(173, 188, 55, 0.12);
  border-radius: 20px;
  padding: 0.1rem 0.45rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

/* ============================================================
   MOOD SELECTOR  (_MoodSelector.cshtml)
   ============================================================ */

.mood-selector-section {
  padding: 5rem 0;
  text-align: center;
}

.mood-selector__heading {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--cream);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  line-height: 1;
}

.mood-selector__divider {
  width: 60px;
  height: 3px;
  background: rgba(245, 230, 200, 0.3);
  margin: 0 auto 2.5rem;
}

.mood-selector__step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.mood-selector__step-num {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mood-selector__question {
  font-size: 1rem;
  color: var(--cream);
  margin: 0;
}

.mood-selector__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.mood-tag-pill {
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(245, 230, 200, 0.25);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--cream-muted);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mood-tag-pill:hover,
.mood-tag-pill.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(245, 230, 200, 0.5);
  color: var(--cream);
}

.mood-selector__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.mood-selector__back-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(245, 230, 200, 0.3);
  background: rgba(255, 255, 255, 0.07);
  color: var(--cream);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mood-selector__back-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.mood-selector__next-btn {
  padding: 0.75rem 2rem;
  border-radius: 50px;
  border: none;
  background: var(--cream);
  color: var(--bg-dark);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mood-selector__next-btn:hover {
  background: #fff;
}

/* ============================================================
   FEATURE SECTION BUTTONS  (_FullWidthFeature.cshtml)
   ============================================================ */

.feature-btns {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.feature-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 50px;
  padding: 0.65rem 1.75rem;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.feature-btn--play {
  background: rgba(255, 255, 255, 0.88);
  color: #111;
}

.feature-btn--play:hover {
  background: #fff;
  transform: scale(1.02);
  color: #111;
}

.feature-btn--subscribe {
  background: rgba(255, 255, 255, 0.12);
  color: var(--cream);
  border: 1px solid rgba(245, 230, 200, 0.4);
}

.feature-btn--subscribe:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ============================================================
   VIDEO EPISODES CAROUSEL  -- DEPRECATED (dead code)
   ============================================================ */

.vc-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  min-height: 2.5rem;
}

.vc-heading {
  font-size: clamp(0.9rem, 1.8vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0;
  text-align: center;
}

.vc-all-btn {
  position: absolute;
  right: 0;
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border: 1px solid rgba(245, 230, 200, 0.4);
  border-radius: 50px;
  color: var(--cream-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.vc-all-btn:hover {
  background: rgba(245, 230, 200, 0.08);
  color: var(--cream);
}

.vc-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.vc-arrow {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(245, 230, 200, 0.4);
  background: transparent;
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.vc-carousel-wrap:hover .vc-arrow {
  opacity: 1;
}

.vc-arrow:hover {
  background: rgba(245, 230, 200, 0.1);
  border-color: var(--cream);
}

.vc-row {
  flex: 1;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}

.vc-row::-webkit-scrollbar {
  display: none;
}

.vc-card {
  flex: 0 0 auto;
  width: 190px;
  cursor: pointer;
}

.vc-card__thumb {
  width: 190px;
  height: 252px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.65rem;
  position: relative;
}

.vc-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.vc-card:hover .vc-card__thumb img {
  transform: scale(1.05);
}

/* Dark overlay */
.vc-card__thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.vc-card:hover .vc-card__thumb::before {
  opacity: 1;
}

/* Centered play button */
.vc-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.vc-card__play span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  padding-left: 2px;
}

.vc-card:hover .vc-card__play {
  opacity: 1;
}

.vc-card__duration {
  font-size: 0.72rem;
  color: var(--cream-muted);
  margin-bottom: 0.25rem;
}

.vc-card__title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--cream);
  text-transform: uppercase;
  line-height: 1.3;
}

/* ============================================================
   PODCAST SERIES CAROUSEL  (_PodcastSeriesCarousel.cshtml)
   Landscape cards — play + add buttons centered on hover
   ============================================================ */

.ps-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  min-height: 2.5rem;
}

.ps-heading {
  font-size: clamp(0.9rem, 1.8vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0;
  text-align: center;
}

.ps-all-btn {
  position: absolute;
  right: 0;
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border: 1px solid rgba(245, 230, 200, 0.4);
  border-radius: 50px;
  color: var(--cream-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ps-all-btn:hover {
  background: rgba(245, 230, 200, 0.08);
  color: var(--cream);
}

.ps-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Solid dark prev, outline next — same pattern as collections carousel */
.ps-arrow {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 0.88rem;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.ps-carousel-wrap:hover .ps-arrow {
  opacity: 1;
}

.ps-arrow--prev {
  background: #1a1a1a;
  color: #fff;
  border: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.ps-arrow--prev:hover {
  background: #333;
}

.ps-arrow--next {
  background: rgba(245, 230, 200, 0.08);
  color: var(--cream);
  border: 1px solid rgba(245, 230, 200, 0.35);
}

.ps-arrow--next:hover {
  background: rgba(245, 230, 200, 0.18);
}

.ps-row {
  flex: 1;
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}

.ps-row::-webkit-scrollbar {
  display: none;
}

.ps-card {
  flex: 0 0 auto;
  width: 280px;
  cursor: pointer;
}

.ps-card__thumb {
  width: 280px;
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  position: relative;
}

.ps-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ps-card:hover .ps-card__thumb img {
  transform: scale(1.04);
}

/* Centered overlay + buttons */
.ps-card__actions {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.ps-card:hover .ps-card__actions {
  opacity: 1;
}

.ps-card__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ps-card__btn--play {
  background: #111;
  color: #fff;
  padding-left: 2px;
}

.ps-card__btn--play:hover {
  background: #333;
  color: #fff;
}

.ps-card__btn--add {
  background: rgba(255, 255, 255, 0.88);
  color: #111;
}

.ps-card__btn--add:hover {
  background: #fff;
}

.ps-card__count {
  font-size: 0.72rem;
  color: var(--cream-muted);
  margin-bottom: 0.25rem;
}

.ps-card__title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--cream);
  text-transform: uppercase;
  line-height: 1.3;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .podcast-card {
    width: 130px;
  }

  .podcast-card__thumb {
    width: 130px;
    height: 130px;
  }

  .map-layout {
    flex-direction: column;
  }

  .map-layout .map-visual {
    flex: 0 0 auto;
    height: 300px;
    width: 100%;
  }

  #map-preview {
    height: 300px;
  }

  .map-layout .map-text {
    flex: 0 0 auto;
    padding: 2rem 1.5rem;
  }

  .map-layout--reversed .map-visual {
    order: 1;
  }

  .map-layout--reversed .map-text {
    order: 2;
  }

  .fullwidth-feature {
    height: 80vh;
  }

  .cat-mood-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-content {
    padding: 0 1rem 4rem;
  }
}

/* ============================================================
   EPISODE DETAIL PAGE  (EpisodeDetail.cshtml)
   Three columns: [left: cover+actions] [center: tabs] [right: up-next]
   The right column reuses .ec-card__* classes from _EpisodeCarousel.
   ============================================================ */

/* ── Title header ── */
.ep-detail-header {
  padding: 7rem 0 2rem;
  /* 7rem top = nav height clearance */
  text-align: center;
  background: var(--bg-dark);
}

.ep-detail-header__title {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 900;
  color: var(--cream);
  text-transform: uppercase;
  line-height: 1.15;
  max-width: 760px;
  margin: 0 auto;
}

/* ── Section wrapper — removes default page-section top padding ── */
.ep-detail-section {
  padding-top: 1.5rem;
}

/* ── Three-column grid ── */
.ep-detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr 300px;
  gap: 2rem;
  align-items: flex-start;
}

/* ══════════════════════════════════════════════
   LEFT COLUMN
   ══════════════════════════════════════════════ */
.ep-detail__left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Cover image — standalone container with play button bottom-left */
.ep-detail__cover {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 10px;
  margin-bottom: 0;
  overflow: hidden;
  cursor: pointer;
}

.ep-detail__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ep-detail__cover:hover img {
  transform: scale(1.05);
}

.ep-detail__cover-play {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 2;
  padding-left: 3px;
}

.ep-detail__cover-play:hover {
  background: rgba(0, 0, 0, 0.75);
}

/* Action buttons list */
.ep-detail__actions {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(245, 230, 200, 0.08);
}

.ep-detail__action-item {
  border-bottom: 1px solid rgba(245, 230, 200, 0.08);
}

.ep-detail__action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 0.9rem 0.25rem;
  cursor: pointer;
  color: var(--cream-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.ep-detail__action-btn:hover {
  color: var(--cream);
}

.ep-detail__action-icon {
  font-size: 0.95rem;
  color: var(--cream-muted);
  transition: color 0.2s ease;
}

.ep-detail__action-btn:hover .ep-detail__action-icon {
  color: var(--cream);
}

/* ══════════════════════════════════════════════
   CENTER COLUMN
   ══════════════════════════════════════════════ */
.ep-detail__center {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 230, 200, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  min-height: 340px;
}

/* ── Tab bar ── */
.ep-detail__tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(245, 230, 200, 0.1);
  padding-bottom: 0;
}

.ep-detail__tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.5rem 1rem 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cream-muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  margin-bottom: -1px;
}

.ep-detail__tab-btn:hover {
  color: var(--cream);
}

.ep-detail__tab-btn--active {
  color: var(--cream);
  border-bottom-color: var(--cream);
}

/* ── Tab panel ── */
.ep-detail__tab-content {
  display: block;
}

.ep-detail__tab-content--hidden {
  display: none;
}

/* ── Section label ("Description", "Tags", "Credits") ── */
.ep-detail__section-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-bottom: 0.6rem;
  display: block;
}

/* ── Description body text ── */
.ep-detail__description {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(245, 230, 200, 0.8);
  margin-bottom: 1.5rem;
}

.ep-detail__transcript-body {
  font-size: 0.875rem;
  line-height: 1.8;
  color: rgba(245, 230, 200, 0.85);
  white-space: pre-wrap;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.5rem;
  margin-bottom: 1rem;
}

.ep-detail__transcript-download {
  margin-top: 0.75rem;
  font-size: 0.8rem;
}

.ep-detail__transcript-link {
  color: rgba(245, 230, 200, 0.6);
  text-decoration: none;
}
.ep-detail__transcript-link:hover {
  color: rgba(245, 230, 200, 1);
}

.ep-detail__transcript-notes {
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(245, 230, 200, 0.55);
  white-space: pre-wrap;
  border-top: 1px solid rgba(245, 230, 200, 0.15);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

/* ── Tags wrap ── */
.ep-detail__tags-wrap {
  margin-bottom: 1.5rem;
}

/* ── Credits heading ── */
.ep-detail__credits-heading {
  margin-top: 0.5rem;
  margin-bottom: 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.12em;
}

/* ── Credits two-column grid ── */
.ep-detail__credits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  margin-top: 0;
}

.ep-detail__credits-role {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: none;
  font-style: italic;
  color: var(--cream-muted);
  margin-bottom: 0.15rem;
}

.ep-detail__credits-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream);
  margin: 0 0 0.1rem 0;
}

/* ══════════════════════════════════════════════
   RIGHT COLUMN — UP NEXT
   Reuses .ec-card__thumb, .ec-card__play,
   .ec-card__duration, .ec-card__title from _EpisodeCarousel
   ══════════════════════════════════════════════ */
.ep-detail__right {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* "Up next" + autoplay row */
.ep-detail__upnext-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.ep-detail__upnext-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-muted);
}

/* Autoplay toggle — custom pill switch */
.ep-detail__autoplay {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.ep-detail__autoplay-text {
  font-size: 0.72rem;
  color: var(--cream-muted);
}

.ep-detail__autoplay-check {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ep-detail__autoplay-slider {
  display: inline-block;
  position: relative;
  width: 36px;
  height: 20px;
  background: rgba(245, 230, 200, 0.2);
  border-radius: 20px;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.ep-detail__autoplay-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cream-muted);
  transition: transform 0.2s ease, background 0.2s ease;
}

.ep-detail__autoplay-check:checked+.ep-detail__autoplay-slider {
  background: var(--accent-green);
}

.ep-detail__autoplay-check:checked+.ep-detail__autoplay-slider::after {
  transform: translateX(16px);
  background: #fff;
}

/* Vertical list of up-next items */
.ep-detail__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 660px;
  overflow-y: auto;
  scrollbar-width: none;
  padding-right: 2px;
}

.ep-detail__list::-webkit-scrollbar {
  display: none;
}

/* Individual up-next item (thumbnail LEFT + meta RIGHT) */
.ep-detail__list-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  cursor: pointer;
}

.ep-detail__list-item:hover .ec-card__title {
  color: var(--accent-green);
}

.ep-detail__list-item:hover .ec-card__thumb::before,
.ep-detail__list-item:focus-within .ec-card__thumb::before {
  opacity: 1;
}

.ep-detail__list-item:hover .ec-card__thumb img,
.ep-detail__list-item:hover .ec-card__video-thumb,
.ep-detail__list-item:focus-within .ec-card__thumb img,
.ep-detail__list-item:focus-within .ec-card__video-thumb {
  transform: scale(1.05);
}

/* Smaller thumbnail for the up-next list */
.ep-detail__thumb-sm {
  flex: 0 0 90px !important;
  width: 90px !important;
  height: 70px !important;
  border-radius: 6px !important;
}

.ep-detail__list-meta {
  flex: 1;
  padding-top: 0.1rem;
}

/* ── Responsive stacking ── */
@media (max-width: 1100px) {
  .ep-detail-layout {
    grid-template-columns: 280px 1fr 260px;
    gap: 1.5rem;
  }
}

@media (max-width: 860px) {
  .ep-detail-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ep-detail__cover {
    height: 240px;
  }

  .ep-detail__right {
    order: 3;
  }
}
/* ── Photo grid in media tab ── */
.ep-detail__photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.4rem;
}

.ep-detail__photo-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  padding: 0;
  display: block;
}

.ep-detail__photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ep-detail__photo-thumb:hover img {
  transform: scale(1.06);
  opacity: 0.82;
}

.ep-detail__media-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.ep-detail__photo-grid + .ep-detail__media-list {
  margin-top: 1rem;
}

.ep-detail__media-item {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid rgba(245, 230, 200, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.ep-detail__media-item--audio {
  align-items: center;
}

.ep-detail__media-item--video {
  grid-template-columns: 4.75rem minmax(0, 1fr) auto;
}

.ep-detail__media-thumb {
  width: 4.75rem;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.32);
}

.ep-detail__media-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(173, 188, 55, 0.16);
  color: var(--accent-green);
}

.ep-detail__media-main {
  min-width: 0;
}

.ep-detail__media-title {
  margin: 0;
  color: var(--cream);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.ep-detail__media-meta {
  margin: 0.2rem 0 0;
  color: rgba(245, 230, 200, 0.58);
  font-size: 0.86rem;
  line-height: 1.45;
}

.ep-detail__media-play {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(173, 188, 55, 0.48);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(173, 188, 55, 0.14);
  color: var(--accent-green);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.ep-detail__media-play:hover {
  color: #1B160C;
  background: var(--accent-green);
  transform: translateY(-1px);
}

/* ── Photo lightbox ── */
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(13, 10, 5, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.photo-lightbox--open {
  opacity: 1;
  pointer-events: auto;
}

.photo-lightbox__counter {
  position: absolute;
  top: 1.2rem;
  left: 1.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(245, 230, 200, 0.6);
  letter-spacing: 0.05em;
}

.photo-lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: rgba(245, 230, 200, 0.1);
  border: none;
  color: var(--cream);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.photo-lightbox__close:hover {
  background: rgba(245, 230, 200, 0.22);
}

.photo-lightbox__body {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  padding: 3.5rem 5rem;
  gap: 2.5rem;
}

.photo-lightbox__img-wrap {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-height: 80vh;
}

.photo-lightbox__img-wrap img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}

.photo-lightbox__meta {
  flex: 0 0 220px;
  padding: 0.5rem 0;
}

.photo-lightbox__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.6rem;
  line-height: 1.45;
}

.photo-lightbox__caption {
  font-size: 0.82rem;
  color: rgba(245, 230, 200, 0.65);
  line-height: 1.65;
  margin: 0;
}

.photo-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(245, 230, 200, 0.1);
  border: none;
  color: var(--cream);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.photo-lightbox__nav:hover {
  background: rgba(245, 230, 200, 0.22);
}

.photo-lightbox__nav--prev { left: 1rem; }
.photo-lightbox__nav--next { right: 1rem; }

@media (max-width: 640px) {
  .ep-detail__media-item {
    grid-template-columns: 2.5rem minmax(0, 1fr);
  }

  .ep-detail__media-play {
    grid-column: 2;
    justify-self: start;
  }

  .photo-lightbox__body {
    flex-direction: column;
    padding: 3rem 1rem 1.5rem;
    gap: 1rem;
  }

  .photo-lightbox__meta {
    flex: none;
    width: 100%;
  }
}

/* ============================================================
   MAP PAGE  (MapPage.cshtml)
   Two columns: [map + filter bar] [right: ep-detail__right reused]
   ============================================================ */

/* ── Page shell — fills viewport below fixed navbar ── */
.map-page {
  display: flex;
  height: calc(100vh - 70px);
  margin-top: 70px;
  overflow: hidden;
  background: var(--bg-dark);
}

/* ── Map column ── */
.map-page__map-col {
  flex: 1;
  position: relative;
  min-width: 0;
}

/* Map fills the column completely — absolute fill is more reliable than height:100% in flex/mobile layouts */
#map-google {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* ── Filter bar — overlaid on top of the map ── */
.map-filters {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: min(100% - 2.2rem, 36rem);
  padding: 0.95rem 1rem 0.9rem;
  background: rgba(15, 12, 7, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(245, 230, 200, 0.16);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.map-filters__label {
  color: rgba(245, 230, 200, 0.7);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.map-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem;
  background: rgba(245, 230, 200, 0.06);
  border: 1px solid rgba(245, 230, 200, 0.12);
  border-radius: 999px;
}

.map-mode-btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(245, 230, 200, 0.88);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.8rem 1.15rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.map-mode-btn:hover,
.map-mode-btn:focus-visible {
  background: rgba(245, 230, 200, 0.1);
  color: var(--cream);
  outline: none;
}

.map-mode-btn.is-active {
  background: var(--cream);
  color: var(--bg-dark);
}

.map-mode-legend {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  color: rgba(245, 230, 200, 0.82);
  font-size: 0.78rem;
}

.map-mode-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.map-mode-dot {
  display: inline-block;
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.map-mode-dot--birth {
  background: var(--cream);
  border: 1px solid rgba(15, 12, 7, 0.18);
}

.map-mode-dot--current {
  background: #F0A500;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

/* ── Leaflet custom markers ── */
.map-cluster {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #F0A500;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  font-family: var(--font-sans);
}

.map-cluster--lg {
  font-size: 1rem;
}

.map-pin-single {
  width: 22px;
  height: 30px;
  background: #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(0,0,0,0.1);
}

/* ── Right column — reuses ep-detail__right styles ── */
.map-page__right-col {
  width: 320px;
  flex-shrink: 0;
  background: var(--bg-dark);
  border-left: 1px solid rgba(245, 230, 200, 0.08);
  padding: 1.5rem 1.25rem;
  overflow-y: auto;
  scrollbar-width: none;
}

.map-page__right-col::-webkit-scrollbar {
  display: none;
}

/* Let the up-next list fill the column freely */
.map-page__right-col .ep-detail__list {
  max-height: none;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .map-page {
    flex-direction: column;
    min-height: calc(100vh - 64px);
    min-height: calc(100svh - 64px);
    height: auto;
    margin-top: 64px;
  }

  .map-page__map-col {
    height: calc(100vh - 64px);
    height: calc(100svh - 64px);
    min-height: 32rem;
  }

  .map-page__right-col {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(245, 230, 200, 0.08);
  }

  .map-filters {
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    max-width: none;
    max-height: none;
    overflow: visible;
    gap: 0.55rem;
    padding: 0.8rem;
    border-radius: 14px;
  }

  .map-mode-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .map-mode-btn {
    min-width: 0;
    padding: 0.72rem 0.55rem;
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .map-mode-btn {
    font-size: 0.78rem;
  }
}

/* ============================================================
   PERSISTENT AUDIO PLAYER BAR
   ============================================================ */
.ap-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 76px;
  background: rgba(13, 10, 5, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 20px;
}

.ap-bar.ap-visible {
  transform: translateY(0);
}

body.ap-active {
  padding-bottom: 76px;
}

/* ── Thumbnail ── */
.ap-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,0.08);
}

/* ── Center: title · dot · seek ── */
.ap-center {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ap-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
  max-width: 220px;
  margin: 0;
}

.ap-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cream);
  flex-shrink: 0;
}

.ap-seek {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    var(--cream) 0%,
    var(--cream) var(--ap-pct, 0%),
    rgba(255,255,255,0.18) var(--ap-pct, 0%),
    rgba(255,255,255,0.18) 100%
  );
  cursor: pointer;
  outline: none;
}

.ap-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 0;
  height: 0;
  opacity: 0;
}

.ap-seek:hover::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cream);
  opacity: 1;
  transition: opacity 0.15s;
}

.ap-seek::-moz-range-thumb {
  width: 0;
  height: 0;
  background: transparent;
  border: none;
}

/* ── Right: controls ── */
.ap-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ap-btn {
  background: none;
  border: none;
  color: rgba(245, 230, 200, 0.65);
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  line-height: 1;
  flex-shrink: 0;
}

.ap-btn:hover {
  color: var(--cream);
  background: rgba(255,255,255,0.08);
}

/* Bordered square buttons (prev, rew, fwd, next) */
.ap-btn--bordered {
  border: 1px solid rgba(255,255,255,0.18);
}

.ap-btn--bordered:hover {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.06);
}

.ap-btn--play {
  background: var(--cream);
  color: var(--bg-darker);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1rem;
  border: none;
  flex-shrink: 0;
}

.ap-btn--play:hover {
  background: #fff;
  color: var(--bg-darker);
}

.ap-btn-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0;
}

.ap-btn--speed {
  font-size: 0.72rem;
  font-weight: 700;
  width: auto;
  padding: 0 6px;
  letter-spacing: 0.02em;
}

.ap-btn--liked i {
  color: #e05;
}

.ap-btn--liked .fa-regular { display: none; }
.ap-btn--liked .fa-solid-heart { display: inline; }

.ap-btn--close {
  margin-left: 4px;
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,0.1);
  border-radius: 0;
  color: rgba(245, 230, 200, 0.35);
  width: auto;
}

.ap-btn--close:hover {
  color: var(--cream);
  background: none;
}

@media (max-width: 640px) {
  .ap-title { max-width: 120px; }
  .ap-btn--speed,
  #ap-like,
  #ap-queue { display: none; }
  .ap-controls { gap: 3px; }
}

/* ── Video Thumbnail (carousel + detail cover) ──────────────────────────── */
.ec-card__video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.ec-card:hover .ec-card__video-thumb {
  transform: scale(1.05);
}

.ep-detail__cover-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.ep-detail__cover:hover .ep-detail__cover-video {
  transform: scale(1.05);
}

/* ── Video Modal ─────────────────────────────────────────────────────────── */
.vmodal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vmodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.vmodal__box {
  position: relative;
  z-index: 1;
  width: min(90vw, 960px);
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.vmodal__box video {
  display: block;
  width: 100%;
  max-height: 80vh;
  background: #000;
}

.vmodal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.vmodal__close:hover {
  background: rgba(0, 0, 0, 0.9);
}

body.vmodal-open {
  overflow: hidden;
}

.vmodal__loader {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.vmodal__spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: vmodal-spin 0.75s linear infinite;
}

@keyframes vmodal-spin {
  to { transform: rotate(360deg); }
}

/* ── Custom Video Player Controls ── */
.vp-controls {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  padding: 20px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vp-seek {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(
    to right,
    #fff calc(var(--vp-pct, 0%)),
    rgba(255, 255, 255, 0.25) calc(var(--vp-pct, 0%))
  );
}

.vp-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 0;
  height: 0;
}

.vp-seek::-moz-range-thumb {
  width: 0;
  height: 0;
  border: none;
  background: transparent;
}

.vp-btns {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vp-btns-left,
.vp-btns-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vp-time {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  margin-left: 4px;
}

/* Volume group: mute icon + slider side by side */
.vp-volume {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vp-vol {
  -webkit-appearance: none;
  appearance: none;
  width: 72px;
  height: 3px;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(
    to right,
    #fff calc(var(--vp-vol-pct, 100%)),
    rgba(255, 255, 255, 0.25) calc(var(--vp-vol-pct, 100%))
  );
}

.vp-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.vp-vol::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
}

/* Active CC button highlight */
.ap-btn--cc-on {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6) !important;
}

/* ── Google Maps InfoWindow — dark editorial theme ── */
.gm-style-iw-c {
  background: #1c1811 !important;
  border: 1px solid rgba(245, 230, 200, 0.14) !important;
  border-radius: 10px !important;
  padding: 0 !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7) !important;
}
.gm-style-iw-d {
  overflow: hidden !important;
  max-height: none !important;
}
/* tail arrow */
.gm-style-iw-t::after {
  background: #1c1811 !important;
}
/* close button */
.gm-ui-hover-effect {
  top: 4px !important;
  right: 4px !important;
  opacity: 0.7 !important;
}
.gm-ui-hover-effect > span {
  background-color: var(--cream) !important;
}
.gm-ui-hover-effect:hover {
  opacity: 1 !important;
}

/* ── InfoWindow card layout ── */
.map-iw-card {
  display: flex;
  align-items: flex-start;
  gap: 0;
  width: 280px;
  font-family: var(--font-sans);
  color: var(--cream);
}
.map-iw-card__photo {
  width: 90px;
  min-width: 90px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px 0 0 10px;
  display: block;
}
.map-iw-card__photo--empty {
  background: rgba(245, 230, 200, 0.06);
}
.map-iw-card__body {
  flex: 1;
  padding: 14px 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.map-iw-card__place {
  margin: 0;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-olive);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-iw-card__name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.3;
}
.map-iw-card__desc {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(245, 230, 200, 0.6);
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.map-iw-card__link {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-green);
  text-decoration: none;
}
.map-iw-card__link:hover {
  color: var(--cream);
}

/* Multi-interviewee variant */
.map-iw-card--multi {
  flex-direction: column;
  padding: 14px;
  width: 220px;
}
.map-iw-card--multi .map-iw-card__place {
  margin-bottom: 8px;
}
.map-iw-multi {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.map-iw-multi__item {
  font-size: 0.82rem;
  color: var(--cream);
  text-decoration: none;
  padding: 5px 8px;
  border-radius: 4px;
  background: rgba(245, 230, 200, 0.05);
  transition: background 0.15s;
}
.map-iw-multi__item:hover {
  background: rgba(245, 230, 200, 0.12);
  color: var(--cream);
}

/* ============================================================
   RESPONSIVE STABILITY OVERRIDES
   Keep the existing visual language while allowing fixed-width
   sections, cards, map panels, and media controls to scale down.
   ============================================================ */

img,
video {
  max-width: 100%;
}

.navbar-toggler {
  color: var(--cream);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(245, 230, 200, 0.18);
}

.navbar-toggler-icon {
  background-image: none;
  width: 1.35rem;
  height: 1.35rem;
  position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon {
  border-top: 2px solid currentColor;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
}

.navbar-toggler-icon::before {
  top: 0.42rem;
}

.navbar-toggler-icon::after {
  top: 0.84rem;
}

.site-header.scrolled .navbar-toggler {
  color: var(--bg-dark);
}

.site-header .navbar-collapse {
  width: 100%;
}

@media (max-width: 1199.98px) {
  .ec-card {
    width: clamp(18rem, 42vw, 22.5rem);
  }

  .sc-card,
  .sc-card__img-wrap {
    width: clamp(15.5rem, 32vw, 18.25rem);
  }

  .collections-header,
  .ec-header,
  .sc-header,
  .ps-header {
    padding-right: 8rem;
    padding-left: 8rem;
  }
}

@media (max-width: 991.98px) {
  .site-header {
    background: rgba(17, 14, 8, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .site-header.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-header .navbar {
    padding: 0.85rem 1rem !important;
  }

  #navbarSupportedContent {
    width: 100%;
    padding: 1rem 0 0.25rem;
  }

  #navbarSupportedContent .navbar-nav {
    gap: 0.35rem;
  }

  #navbarSupportedContent .nav-link {
    color: var(--cream);
    padding: 0.65rem 0;
  }

  .site-header.scrolled #navbarSupportedContent .nav-link {
    color: var(--bg-dark);
  }

  .hero-section {
    height: 88svh;
    min-height: 34rem;
  }

  .hero-content {
    padding-bottom: 6rem;
    max-width: min(42rem, 100%);
  }

  .hero-nav {
    right: 1rem;
    bottom: 1rem;
  }

  .page-section {
    padding: 3.25rem 0;
  }

  .fullwidth-feature,
  .collection-feature {
    height: 64svh;
    min-height: 28rem;
  }

  .map-layout .map-text {
    padding: 3rem 2rem;
  }

  .collections-header,
  .ec-header,
  .sc-header,
  .ps-header {
    justify-content: flex-start;
    padding: 0;
  }

  .collections-heading,
  .ec-heading,
  .sc-heading,
  .ps-heading {
    text-align: left;
  }

  .collections-all-btn,
  .ec-all-btn,
  .sc-all-btn,
  .ps-all-btn {
    position: static;
    margin-left: auto;
  }
}

@media (max-width: 767.98px) {
  html {
    font-size: 15px;
  }

  .hero-section {
    min-height: 36rem;
    align-items: flex-end;
  }

  .hero-content {
    padding: 0 1rem 5.5rem;
  }

  .hero-label,
  .feature-label,
  .section-label {
    letter-spacing: 0.24em;
  }

  .hero-title {
    font-size: clamp(2rem, 13vw, 3.1rem);
    overflow-wrap: anywhere;
  }

  .hero-description {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-play-btn,
  .feature-btn,
  .map-btn,
  .support-btn {
    max-width: 100%;
    justify-content: center;
  }

  .hero-nav-next {
    padding-inline: 1rem;
  }

  .hero-nav-arrow,
  .hero-nav-next,
  .ec-arrow,
  .sc-arrow,
  .collections-arrow,
  .ps-arrow,
  .podcast-arrow {
    opacity: 1;
  }

  .ec-carousel-wrap,
  .sc-carousel-wrap,
  .collections-carousel-wrap,
  .ps-carousel-wrap,
  .podcast-carousel-wrap {
    gap: 0.45rem;
  }

  .ec-arrow,
  .sc-arrow,
  .collections-arrow,
  .ps-arrow {
    flex-basis: 2rem;
    width: 2rem;
    height: 2rem;
  }

  .ec-row {
    gap: 0.85rem;
  }

  .ec-card {
    width: min(62vw, 15rem);
    gap: 0.6rem;
    padding: 0.55rem;
  }

  .ec-card__thumb {
    flex-basis: clamp(5.5rem, 24vw, 7rem);
    width: clamp(5.5rem, 24vw, 7rem);
    height: clamp(7rem, 30vw, 9rem);
  }

  .ec-card__title {
    font-size: 0.85rem;
  }

  .collections-header,
  .sc-header,
  .ps-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.85rem;
  }

  /* ec-header stays in a single row on mobile; tighten letter-spacing so the
     heading and button fit side-by-side without wrapping */
  .ec-header {
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
  }

  .ec-heading {
    flex: 1;
    min-width: 0;
    letter-spacing: 0.18em;
    font-size: clamp(0.72rem, 3.2vw, 1.1rem);
  }

  .collections-all-btn,
  .sc-all-btn,
  .ps-all-btn {
    margin-left: 0;
  }

  .ec-all-btn {
    flex-shrink: 0;
    margin-left: 0;
    font-size: 0.72rem;
    padding: 0.35rem 0.85rem;
  }

  .cat-tile {
    max-width: 100%;
  }

  .cat-tile__name {
    white-space: normal;
  }

  .fullwidth-feature,
  .collection-feature {
    min-height: 30rem;
  }

  .feature-content,
  .collection-feature__content {
    padding-inline: 1rem;
  }

  .feature-title,
  .collection-feature__title,
  .map-title {
    overflow-wrap: anywhere;
  }

  .map-layout .map-visual::after {
    background: linear-gradient(to bottom, transparent 55%, var(--bg-darker) 100%);
  }

  .map-description {
    max-width: none;
  }

  .search-page {
    padding-inline: 0.35rem;
  }

  .search-result-card__media {
    max-width: none;
  }

  .ep-detail-header {
    padding-top: 6rem;
  }

  .ep-detail__center {
    padding: 1rem;
  }

  .ep-detail__tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .ep-detail__tab-btn {
    white-space: nowrap;
    padding-inline: 0.8rem;
  }

  .ep-detail__credits-grid {
    grid-template-columns: 1fr;
  }

  .vmodal {
    align-items: stretch;
  }

  .vmodal__box {
    width: 100vw;
    max-height: 100svh;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    justify-content: center;
  }

  .vmodal__box video {
    max-height: 58svh;
  }

  .vp-btns {
    align-items: stretch;
    flex-direction: column;
    gap: 0.65rem;
  }

  .vp-btns-left,
  .vp-btns-right {
    justify-content: center;
    flex-wrap: wrap;
  }

  .vp-volume {
    display: none;
  }
}

@media (max-width: 640px) {
  .ap-bar {
    height: auto;
    min-height: 5.75rem;
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr) auto;
    grid-template-areas:
      "thumb title close"
      "controls controls controls";
    align-items: center;
    gap: 0.45rem 0.75rem;
    padding: 0.65rem 0.8rem calc(0.65rem + env(safe-area-inset-bottom));
  }

  body.ap-active {
    padding-bottom: 6.5rem;
  }

  .ap-thumb {
    grid-area: thumb;
    width: 3rem;
    height: 3rem;
  }

  .ap-center {
    grid-area: title;
    display: block;
  }

  .ap-title {
    max-width: 100%;
  }

  .ap-dot,
  .ap-seek {
    display: none;
  }

  .ap-controls {
    grid-area: controls;
    justify-content: center;
    min-width: 0;
  }

  .ap-btn {
    width: 2rem;
    height: 2rem;
  }

  .ap-btn--play {
    width: 2.6rem;
    height: 2.6rem;
  }

  .ap-btn--close {
    grid-area: close;
    justify-self: end;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .map-page__map-col {
    height: calc(100vh - 64px);
    height: calc(100svh - 64px);
    min-height: 32rem;
  }

  .map-filters {
    max-height: none;
    overflow: visible;
  }

  .map-mode-legend {
    gap: 0.55rem;
  }
}

@media (max-width: 575.98px) {
  body {
    overflow-x: clip;
  }

  .site-header .container-fluid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 0.75rem;
  }

  .site-header .container-fluid > .d-flex:first-child {
    display: none !important;
  }

  .site-logo {
    justify-self: start;
    margin-inline: 0 !important;
    min-width: 0;
  }

  .site-header .container-fluid > .d-flex.ms-auto {
    justify-self: end;
    min-width: 0;
    gap: 0.45rem !important;
  }

  .site-header .btn-nav-ghost {
    display: none;
  }

  .site-logo-mark__top {
    font-size: 0.54rem;
    letter-spacing: 0.28em;
  }

  .site-logo-mark__main {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
  }

  .hero-title {
    max-width: min(100%, 20rem);
    margin-inline: auto;
    font-size: clamp(1.45rem, 7.1vw, 1.75rem);
    line-height: 1.12;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .hero-nav {
    left: 1rem;
    right: 1rem;
    justify-content: center;
  }

  .hero-nav-next {
    flex: 1 1 auto;
    justify-content: center;
    max-width: 12rem;
  }

  .ec-card {
    width: min(66vw, 14.5rem);
  }

  .ec-card__thumb {
    flex-basis: 5.25rem;
    width: 5.25rem;
    height: 6.75rem;
  }

  .sc-card,
  .sc-card__img-wrap,
  .coll-card,
  .coll-card__stack,
  .ps-card,
  .ps-card__thumb {
    width: min(72vw, 17rem);
  }

  .coll-card__stack,
  .ps-card__thumb {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .support-section {
    padding: 4rem 1rem;
  }
}
