/* Spotify-style homepage horizontal rails */
.beast-home {
  padding-bottom: 2rem;
}
.beast-home__hero {
  margin: 0 0 1.25rem;
}
.beast-home__brand {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.beast-home__tagline {
  margin: 0.35rem 0 0;
  opacity: 0.72;
  font-size: 0.98rem;
}
.beast-home-row {
  margin-bottom: 1.75rem;
}
.beast-home-row__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
  padding-right: 0.25rem;
}
.beast-home-row__titles h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
}
.beast-home-row__titles p {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  opacity: 0.65;
}
.beast-home-row__see-all {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.8;
}
.beast-home-row__see-all:hover {
  opacity: 1;
  text-decoration: underline;
}
.beast-home-rail-wrap {
  position: relative;
}
.beast-home-rail {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  grid-auto-columns: 148px;
  column-gap: 0.85rem;
  row-gap: 0.85rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 0.15rem 0.15rem 0.85rem;
  margin: 0 -0.15rem;
  /* Always show a clear horizontal scrollbar (macOS overlay is easy to miss). */
  scrollbar-width: auto;
  scrollbar-color: rgba(187, 32, 36, 0.75) rgba(127, 127, 127, 0.18);
}
.beast-home-rail::-webkit-scrollbar {
  height: 10px;
}
.beast-home-rail::-webkit-scrollbar-track {
  background: rgba(127, 127, 127, 0.18);
  border-radius: 999px;
}
.beast-home-rail::-webkit-scrollbar-thumb {
  background: rgba(187, 32, 36, 0.75);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.beast-home-rail::-webkit-scrollbar-thumb:hover {
  background: rgba(187, 32, 36, 0.95);
  border: 2px solid transparent;
  background-clip: padding-box;
}
.beast-home-rail-btn {
  position: absolute;
  top: 28%;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(26, 22, 20, 0.82);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0;
}
.beast-home-rail-btn.is-visible {
  display: inline-flex;
}
.beast-home-rail-wrap:hover .beast-home-rail-btn.is-visible,
.beast-home-rail-wrap:focus-within .beast-home-rail-btn.is-visible {
  opacity: 1;
}
.beast-home-rail-btn--prev {
  left: 0.15rem;
}
.beast-home-rail-btn--next {
  right: 0.15rem;
}
.beast-home-rail-btn:hover {
  background: rgba(187, 32, 36, 0.92);
}
.beast-home-rail-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
@media (hover: none) {
  .beast-home-rail-btn.is-visible {
    opacity: 0.9;
  }
}
.beast-home-card {
  width: 148px;
  max-width: 148px;
  scroll-snap-align: start;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
@media (min-width: 768px) {
  .beast-home-rail {
    grid-auto-columns: 168px;
  }
  .beast-home-card {
    width: 168px;
    max-width: 168px;
  }
}
.beast-home-card__cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background-color: rgba(127, 127, 127, 0.15);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}
.beast-home-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.28), transparent 45%);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}
.beast-home-card:hover .beast-home-card__cover::after,
.beast-home-card:focus-within .beast-home-card__cover::after {
  opacity: 1;
}
.beast-home-card__body {
  padding: 0.55rem 0.1rem 0;
}
.beast-home-card__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  /* Single-line marquee (via .music-card__title / BeastMusicCards) — no wrap. */
  display: block;
  overflow: hidden;
  white-space: nowrap;
  line-height: 1.25;
  height: 1.25rem;
  min-height: 1.25rem;
}
.beast-home-card__body > a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.beast-home-card__meta {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  opacity: 0.68;
  white-space: nowrap;
  overflow: hidden;
}
.beast-home-skel {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  grid-auto-columns: 148px;
  column-gap: 0.85rem;
  row-gap: 0.85rem;
  overflow: hidden;
}
.beast-home-skel__card {
  width: 148px;
  height: 198px;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    rgba(127, 127, 127, 0.12) 0%,
    rgba(127, 127, 127, 0.22) 50%,
    rgba(127, 127, 127, 0.12) 100%
  );
  background-size: 200% 100%;
  animation: beast-home-shimmer 1.2s ease-in-out infinite;
}
@media (min-width: 768px) {
  .beast-home-skel {
    grid-auto-columns: 168px;
  }
  .beast-home-skel__card {
    width: 168px;
  }
}
@keyframes beast-home-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.beast-home-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  opacity: 0.75;
}
