:root {
  --header-max-width: 720px;
  --nav-gap-desktop: 12px;
  --nav-gap-mobile: 8px;
  --nav-pad-y-desktop: 12px;
  --nav-pad-x-desktop: 20px;
  --nav-pad-y-mobile: 10px;
  --nav-pad-x-mobile: 14px;
  --rosette-kev-pick: #C55FA6;
  --rosette-listener-pick: #4F7DFF;
  --rosette-new: #2F8F6B;
  --rosette-most-underrated: #3FAE6A;
  --rosette-most-overrated: #C84B4B;
  --rosette-most-divisive: #7A5BCF;
  --rosette-lost-plot-bg: #2E6E7A;
  --rosette-fixed-it-bg: #7A5A2E;
  --rosette-consensus-bg: #3C5B8F;
}

body {
  /* Updated by shared.js after header injection so page content can offset safely. */
  --stickyHeaderH: 0px;
}

#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0f0f0f;
  overflow: visible;
}

.sticky-menu {
  position: sticky;
  top: 0;
  width: 100%;
  max-width: 100%;
  padding: 16px 16px 12px;
  margin: 0 0 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

.sticky-divider {
  width: 100%;
  height: 1px;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.12);
  min-width: 48px;
}

.header-extras {
  margin: 0;
  padding: 0;
}

.header-extras:empty {
  display: none;
}

.site-title {
  text-align: center;
  margin: 0 0 12px;
  color: #c06131;
}

.site-title img {
  display: block;
  max-width: 320px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .site-title img {
    max-width: 400px;
    max-width: min(400px, 100%);
  }
}

@media (min-width: 1024px) {
  .site-title img {
    max-width: 430px;
    max-width: min(430px, 100%);
  }
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--nav-gap-desktop);
  padding: 12px 0 20px;
  margin: 0 auto;
  width: 100%;
  max-width: var(--header-max-width);
  flex-wrap: nowrap;
  overflow-x: visible;
}

.nav-links a {
  background: #2c2c2c;
  color: #fff;
  text-decoration: none;
  padding: var(--nav-pad-y-desktop) var(--nav-pad-x-desktop);
  border-radius: 20px;
  font-weight: bold;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-links a:hover {
  opacity: 0.7;
}

.nav-links a.active {
  background: #d1632e;
}

@media (max-width: 720px) {
  .nav-links {
    gap: var(--nav-gap-mobile);
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    padding: var(--nav-pad-y-mobile) var(--nav-pad-x-mobile);
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .sticky-menu {
    padding: 10px 10px 6px;
    margin: 0 0 8px;
  }

  .site-title {
    margin: 0 0 8px;
  }

  .site-title img {
    width: 96vw;
    max-width: 360px;
    max-height: 92px;
    object-fit: contain;
  }

  .nav-links {
    gap: 6px;
    padding: 4px 0 8px;
  }

  .nav-links a {
    font-size: 14px;
    min-height: 42px;
    padding: 11px 12px;
    border-radius: 22px;
  }

  #header-extras {
    margin-top: 2px;
  }

  #header-extras .controls {
    gap: 4px;
    margin: 0;
  }

  #header-extras .filters-row {
    margin: 0;
  }

  #header-extras .film-search-row {
    margin-top: 0;
  }

  .sticky-divider {
    margin-top: 8px;
  }
}

.listen-highlight {
  background: linear-gradient(rgba(191, 93, 46, 0.08), rgba(191, 93, 46, 0.03));
  border: 1px solid rgba(191, 93, 46, 0.25);
  border-radius: 16px;
  padding: 28px;
  margin-top: 28px;
  background-clip: padding-box;
}

.listen-highlight .listen-intro {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  position: relative;
  padding-bottom: 12px;
}

.listen-highlight .listen-intro::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 2px;
  border-radius: 999px;
  background: rgba(191, 93, 46, 0.8);
}

.listen-highlight .listen-logo {
  width: 34px;
  height: 34px;
}

@media (max-width: 600px) {
  .listen-highlight {
    padding: 22px;
  }

  .listen-highlight .listen-intro {
    font-size: 18px;
  }
}
