.shelves {
  display: flex;
  flex-direction: column;
  gap: 2.3rem;
}

.shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.shelf-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
}

.shelf-emoji {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.7rem;
  height: 2.7rem;
  border: 3px solid var(--border);
  border-radius: 14px;
  background: var(--sun);
  box-shadow: 2px 2px 0 var(--shadow-color);
  font-size: 1.5rem;
  color: var(--ink-fixed);
}

.shelf:nth-child(3n + 2) .shelf-emoji { background: #ffb3c7; color: var(--ink-fixed); }
.shelf:nth-child(3n) .shelf-emoji { background: #9be8d8; color: var(--ink-fixed); }

.shelf-more {
  flex: 0 0 auto;
  padding: 0.4rem 1rem;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}

.shelf-more:hover { background: var(--sun); transform: translateY(-2px); color: var(--ink-fixed); }

.shelf-scroller { position: relative; }

.shelf-row {
  display: flex;
  gap: 1.15rem;
  padding: 0.3rem 0.4rem 1.3rem 0.1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--ink) transparent;
}

.shelf-row .movie-card {
  flex: 0 0 190px;
  scroll-snap-align: start;
}

.shelf-arrow {
  position: absolute;
  top: 42%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0 0 0.25rem;
  border: 3px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.shelf-arrow:hover { background: var(--sun); color: var(--ink-fixed); }

.shelf-arrow-left { left: -1.1rem; }
.shelf-arrow-right { right: -1.1rem; }

@media (max-width: 900px) {
  .shelf-arrow { display: none; }
}

@media (max-width: 700px) {
  .shelf-title { font-size: 1.4rem; }
  .shelf-emoji { width: 2.3rem; height: 2.3rem; font-size: 1.2rem; }
  .shelf-row .movie-card { flex-basis: 160px; }
}
