/* Album shelves — Audio → Songs & Albums. Ported verbatim from the mockup
   (Kalameh Web Songs[ EN].html). The accent comes from the .section--audio
   scope; the author + "See all" links are hidden exactly as in the mockup. */

.album-shelf { margin-bottom: 56px; }
.album-shelf:last-child { margin-bottom: 0; }
.album-shelf .shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.album-shelf .shelf-head h3 { font-family: var(--serif); font-weight: 600; font-size: 21px; margin: 0; letter-spacing: -0.3px; color: var(--ink); }
.album-shelf .shelf-head .sub { font-size: 12.5px; color: var(--ink-3); }
[dir="rtl"] .album-shelf .shelf-head h3 { font-family: var(--farsi); }

.album-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 200px;
  gap: 22px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; padding-bottom: 10px;
  margin: 0; scrollbar-width: none;
}
.album-row::-webkit-scrollbar { display: none; }

.row-wrap { position: relative; padding: 0 64px; }
.row-arrow {
  position: absolute; top: 0; bottom: 70px;
  display: flex; align-items: center; justify-content: center;
  z-index: 4; width: 56px; transition: opacity 0.2s;
}
.row-arrow.prev { left: 0; }
.row-arrow.next { right: 0; }
.row-arrow button {
  width: 44px; height: 44px; border-radius: 999px;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(20,16,30,0.18), 0 2px 4px rgba(20,16,30,0.08);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.15s, transform 0.15s, color 0.15s; font: inherit;
}
.row-arrow button:hover { background: var(--ink); color: #fff; transform: scale(1.06); }
.row-arrow.hide { opacity: 0; pointer-events: none; }
@media (max-width: 720px) { .row-arrow { display: none; } .row-wrap { padding: 0; } }

.album-card { display: flex; flex-direction: column; gap: 10px; scroll-snap-align: start; cursor: pointer; text-decoration: none; }
.album-card .ac-cover {
  position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden;
  background: var(--paper-2);
  box-shadow: 0 10px 20px rgba(30,30,40,0.14), 0 2px 4px rgba(30,30,40,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.album-card:hover .ac-cover { transform: translateY(-4px); box-shadow: 0 18px 32px rgba(30,30,40,0.20); }
.album-card .ac-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-card .ac-cover .ac-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55) 100%);
  opacity: 0; transition: opacity 0.2s;
}
.album-card:hover .ac-cover .ac-overlay { opacity: 1; }
.album-card .ac-cover .ac-play, .album-card .ac-cover .ac-dl {
  position: absolute; bottom: 10px;
  width: 38px; height: 38px; border-radius: 999px;
  background: #fff; color: var(--accent-deep); border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 16px rgba(0,0,0,0.30);
  opacity: 0; transform: translateY(6px); transition: opacity 0.2s, transform 0.2s;
}
[dir="rtl"] .album-card .ac-cover .ac-play { right: auto; left: 10px; }
[dir="rtl"] .album-card .ac-cover .ac-dl { left: auto; right: 10px; }
[dir="ltr"] .album-card .ac-cover .ac-play { right: 10px; }
[dir="ltr"] .album-card .ac-cover .ac-dl { left: 10px; }
.album-card:hover .ac-cover .ac-play, .album-card:hover .ac-cover .ac-dl { opacity: 1; transform: translateY(0); }
.album-card .ac-play:hover { background: var(--accent); color: #fff; }
.album-card .ac-dl { background: rgba(255,255,255,0.92); color: var(--accent-deep); }
.album-card .ac-dl:hover { background: #fff; }

.album-card .ttl { font-family: var(--serif); font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--ink); margin: 0; }
[dir="rtl"] .album-card .ttl { font-family: var(--farsi); }
.album-card .meta { font-size: 11px; color: var(--ink-4); margin-top: 2px; }
