@font-face {
    font-family: 'riyd';
    src: url('/assets/font/b2.woff2') format('woff2'), url('/assets/font/b2.woff') format('woff');
    font-weight: 400;
}
@font-face {
    font-family: 'riyd';
    src: url('/assets/font/h4.woff2') format('woff2'), url('/assets/font/h4.woff') format('woff');
    font-weight: 700;
    /* font-display: block; *//* show nothing instead of fallback font */
}
@font-face {
    font-family: 'riyd-alt';
    src: url('/assets/font/h2-light.woff2') format('woff2'), url('/assets/font/h2-light.woff') format('woff');
    font-weight: 700;
    /* font-display: block; *//* show nothing instead of fallback font */
}

:root {
  color-scheme: light dark;
  background: var(--bg);
  color: var(--fg)
}

:root[data-dark] {
  color-scheme: light;
  --bg: #fffdfa;
  --gb: #ccc;
  --gf: #666;
  --fg: #333
}

:root[data-dark=true] {
  color-scheme: dark;
  --bg: #222;
  --gb: #555;
  --gf: #aaa;
  --fg: #ddd
}
#theme {
  position: absolute;
  padding: 12px;
  right: 0;
  line-height: 1;
  cursor: default;
  font-size: 20px
}

#theme:hover {
  transform: rotate(180deg)
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.4;
  font-family: riyd, sans-serif;
}

h1, h2, h3 {
	text-transform: uppercase;
	/* font-family: riyd-alt; */
}

.site-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #222;
}

.logo {
  font-weight: 700;
  font-size: 1.4rem;
  fill: var(--fg);
  text-decoration: none;
  letter-spacing: 0.05em;
}

#app {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
}

.hidden { display: none !important; }

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 4rem 2rem;
}

.card {
  cursor: pointer;
  line-height: 24px;
  /* margin: 0 0 96px; */
  position: relative; /* For z-index layering */
  /* overflow: hidden; */
}

.card img {
  transition: transform 0.3s;
  transform: translateY(90px);
  position: relative;
  margin: -3rem 5px 0;
}

.card .meta {
  padding: 1rem 0 0 0;
  position: relative;
  z-index: 2;
  background: rgb(from var(--bg) r g b / .86);
  background: linear-gradient(transparent,1%,var(--bg));
  backdrop-filter: blur(3px);
  padding: 7px;
}

.card .artist {
  font-size: 22px;
}

.card .title {
  font-size: 26px;
  margin-bottom: 26px;
}

/* not used yet */
.card .feats {
  margin: -18px 0 18px;
}

.card .year {
  font-size: 0.85rem;
  color: var(--muted);
}

.card:hover img,
.card:focus-within img {
    transform: translateY(9px);
}

img.fade{
    transform:translateY(120px);
}


/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--bg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--fg);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.6;
}

.modal-close:hover { opacity: 1; }

/* Release detail inside modal / full view */
.release-detail {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .release-detail {
    grid-template-columns: 280px 1fr;
  }
}

.release-detail img.cover {
  width: 100%;
}

img {
  border-radius: 3px;
}

.release-detail h1 {
  margin: 0 0 0.25rem;
  font-size: 1.6rem;
}

.release-detail .by {
  color: var(--muted);
  margin-bottom: 1rem;
}

.tracklist {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.tracklist td {
  padding: 0.35rem 0.5rem 0.35rem 0;
  vertical-align: top;
}

.tracklist td:first-child {
  width: 2rem;
  color: var(--muted);
  text-align: right;
  padding-right: 0.75rem;
}

.tracklist .time {
  text-align: right;
  color: var(--muted);
  white-space: nowrap;
}

.pagination {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 3rem;
  font-weight: 600;
}

.pagination a, .pagination span {
  color: var(--fg);
  text-decoration: none;
  padding: 0.3rem 0.6rem;
}

.pagination a:hover {
  border-bottom: 2px solid var(--accent);
}
