:root {
  --bg: #0f1115;
  --bg-card: #171a21;
  --bg-nominee: #1c202a;
  --border: #2a2f3a;
  --text: #e8eaf0;
  --text-dim: #9aa3b2;
  --accent: #d4af37;      /* grammy gold */
  --accent-soft: #f5d97a;
  --link: #6db3f2;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.45;
  padding-bottom: 60px;
}

header {
  text-align: center;
  padding: 42px 16px 26px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #14161c 0%, var(--bg) 100%);
}
header h1 { font-size: 2rem; font-weight: 700; letter-spacing: 0.4px; }
.accent { color: var(--accent); }
.subtitle { color: var(--text-dim); margin-top: 8px; font-size: 0.95rem; }

main { max-width: 860px; margin: 0 auto; padding: 24px 16px; }

/* ---------- Year sections ---------- */
.year {
  margin: 34px 0 10px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.year h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent-soft);
  letter-spacing: 0.5px;
}
.year .year-line { flex: 1; height: 1px; background: var(--border); }

/* ---------- Cards ---------- */
.card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.card:hover { border-color: #3a4150; }

/* art */
.art-wrap { flex: 0 0 auto; }
.art-wrap img {
  display: block;
  border-radius: 6px;
  cursor: zoom-in;
  object-fit: cover;
  background: #232733;
  box-shadow: 0 2px 8px rgba(0,0,0,.45);
  transition: transform .15s ease;
}
.art-wrap img:hover { transform: scale(1.04); }
.art-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: linear-gradient(135deg, #2a2f3d, #1d212b);
  border: 1px dashed #3a4150;
  color: var(--text-dim);
  font-size: 1.6rem;
  font-weight: 700;
  cursor: default;
}

/* text */
.card-text { min-width: 0; }
.card-text .artist {
  font-size: 0.95rem;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.3px;
}
.card-text a.album {
  display: block;
  color: var(--link);
  text-decoration: none;
  font-weight: 700;
  margin-top: 1px;
  overflow-wrap: anywhere;
}
.card-text a.album:hover { text-decoration: underline; color: #8cc4f7; }
.card-text .album-plain { display:block; font-weight: 700; margin-top: 1px; overflow-wrap: anywhere; }

/* ---------- Winner gets bigger ---------- */
.card.winner {
  background: linear-gradient(180deg, #1d1a10 0%, #171a21 70%);
  border: 1px solid #4d4320;
  box-shadow: 0 0 0 1px rgba(212,175,55,.15), 0 4px 18px rgba(0,0,0,.5);
  padding: 20px 22px;
  margin-bottom: 16px;
}
.card.winner .art-wrap img { width: 128px; height: 128px; border-radius: 8px; }
.card.winner .card-text .artist { font-size: 1.15rem; color: #c8c2ae; }
.card.winner .card-text a.album, .card.winner .album-plain { font-size: 1.5rem; margin-top: 3px; }
.card.winner .badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #1a1507;
  background: var(--accent);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 6px;
}

/* nominee art size */
.card.nominee .art-wrap img, .card.nominee .art-placeholder { width: 84px; height: 84px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5,6,9,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: zoom-out;
}
/* CRITICAL: author display:flex above overrides the UA's [hidden]{display:none},
   so we must explicitly hide when the hidden attribute is set. */
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 88vw;
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 10px 60px rgba(0,0,0,.8);
}
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 22px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox-close:hover { color: var(--accent-soft); }

footer {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  padding: 20px 16px 0;
}

/* ---------- Small screens ---------- */
@media (max-width: 560px) {
  .card.winner { padding: 16px; }
  .card.winner .art-wrap img { width: 96px; height: 96px; }
  .card.winner .card-text a.album, .card.winner .album-plain { font-size: 1.2rem; }
  .card.nominee .art-wrap img, .card.nominee .art-placeholder { width: 64px; height: 64px; }
  .card { gap: 12px; padding: 12px 14px; }
}
