/* home.css */
.greeting { font-size: 2rem; font-weight: 800; margin: 14px 0 4px; letter-spacing: -.02em; }
.greeting-sub { margin: 0 0 20px; color: var(--muted); font-size: 1rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile {
  display: flex; align-items: center; gap: 14px; height: 72px;
  background: var(--card-hover); border-radius: 6px; overflow: hidden; cursor: pointer;
  position: relative; transition: background .15s, transform .3s cubic-bezier(.22,.72,.24,1.06), box-shadow .3s ease;
}
.tile:hover {
  background: var(--elevated); z-index: 3;
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 16px 30px -8px rgba(255,199,44,.45), 0 8px 22px rgba(0,0,0,.5);
}
.tile-cover { width: 72px; height: 72px; flex: 0 0 auto; overflow: hidden; display: grid; place-items: center; font-size: 1.5rem; color: #fff; }
.tile-cover img { width: 100%; height: 100%; object-fit: cover; }
.tile-cover svg { width: 32px; height: 32px; }
.tile-name { font-weight: 700; font-size: 0.98rem; }
.tile-fab {
  margin-left: auto; margin-right: 14px; width: 42px; height: 42px; border-radius: 999px;
  background: var(--gold); border: none; display: grid; place-items: center; cursor: pointer;
  opacity: 0; transform: translateY(8px); transition: .2s; box-shadow: 0 8px 18px rgba(0,0,0,.4);
}
.tile:hover .tile-fab { opacity: 1; transform: none; }
.tile-fab svg { width: 20px; height: 20px; color: #000; }

.shelf-head { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 14px; }
.shelf-head h2 { font-size: 1.45rem; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.show-all { color: var(--muted); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; background: none; border: none; }
.show-all:hover { color: var(--text); text-decoration: underline; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.card {
  background: var(--card); border-radius: 8px; padding: 14px; cursor: pointer;
  transition: background .2s, transform .3s cubic-bezier(.22,.72,.24,1.06), box-shadow .3s ease; position: relative;
}
.card:hover {
  background: var(--card-hover); z-index: 3;
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 22px 44px -10px rgba(255,199,44,.42), 0 12px 26px rgba(0,0,0,.55);
}
@media (prefers-reduced-motion: reduce) {
  .tile, .card { transition: background .2s; }
  .tile:hover, .card:hover { transform: none; }
}

.reveal { opacity: 0; transform: translateY(14px); will-change: opacity, transform; }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--ri, 0) * 55ms);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
}

.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: .78em; margin-left: 14px; vertical-align: baseline; }
.eq i {
  width: 3px; height: 30%; border-radius: 2px; background: var(--gold);
  transform-origin: bottom;
}
.sp.playing .eq i { animation: eq-bounce .9s ease-in-out infinite; }
.sp.playing .eq i:nth-child(2) { animation-duration: .62s; animation-delay: -.18s; }
.sp.playing .eq i:nth-child(3) { animation-duration: 1.05s; animation-delay: -.35s; }
.sp.playing .eq i:nth-child(4) { animation-duration: .74s; animation-delay: -.5s; }
@keyframes eq-bounce { 0%,100% { height: 22%; } 50% { height: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .sp.playing .eq i { animation: none; height: 45%; }
}
.card-art {
  width: 100%; aspect-ratio: 1; border-radius: 6px; margin-bottom: 12px; overflow: hidden;
  display: grid; place-items: center; font-size: 2.4rem; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.4); position: relative;
}
.card-art img { width: 100%; height: 100%; object-fit: cover; }
.doc-art img.fit-cover { object-fit: cover; object-position: top center; }
.doc-art img.fit-contain { object-fit: contain; padding: 16px; }
.card-art.round { border-radius: 999px; }
.card-title { font-weight: 700; font-size: 0.96rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub { color: var(--muted); font-size: 0.82rem; margin-top: 4px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-fab {
  position: absolute; right: 18px; top: 152px; width: 46px; height: 46px; border-radius: 999px;
  background: var(--gold); border: none; display: grid; place-items: center; cursor: pointer;
  opacity: 0; transform: translateY(8px); transition: .2s; box-shadow: 0 8px 18px rgba(0,0,0,.45); z-index: 2;
}
.card:hover .card-fab { opacity: 1; transform: none; }
.card-fab:hover { background: var(--gold-bright); transform: scale(1.06); }
.card-fab svg { width: 22px; height: 22px; color: #000; }
