/* ── Variables ──────────────────────────────────────────────────────────────── */
:root {
  color-scheme: dark;
  --bg:          #141413;
  --surface:     #1c1c1a;
  --surface-2:   #252521;
  --surface-3:   #2e2e28;
  --line:        #33322b;
  --line-strong: #46443a;
  --text:        #f0efe8;
  --soft:        #d5d0c0;
  --muted:       #9e9b8e;
  --faint:       #6a6860;
  --green:       #22c77e;
  --green-dim:   #1a9460;
  --orange:      #e49a3d;
  --red:         #d05c54;
  --yellow:      #d4c04a;
  --blue:        #4aa3c7;
  --shadow-sm:   0 2px 8px rgba(0,0,0,.28);
  --shadow:      0 8px 32px rgba(0,0,0,.38);
  --shadow-lg:   0 20px 60px rgba(0,0,0,.5);
  --radius:      10px;
  --radius-sm:   6px;
  --radius-pill: 999px;
}

/* ── Reset & base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 40% at 60% -10%, rgba(34,199,126,.07) 0%, transparent 60%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0; }

/* ── Shell ──────────────────────────────────────────────────────────────────── */
.app-shell {
  width: min(1560px, 100%);
  margin: 0 auto;
  padding: 0 24px 48px;
}

/* ── Topbar ─────────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 10px 0;
  background: rgba(20,20,19,.92);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(70,68,58,.6);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover { text-decoration: none; }

.brand-mark {
  color: var(--green);
  transition: opacity .15s;
  flex-shrink: 0;
}

.brand:hover .brand-mark { opacity: .75; }

.brand-wordmark {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -.5px;
  color: var(--text);
}

/* Auth section */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px 0 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  transition: background .15s, border-color .15s;
}

.user-chip:hover { background: var(--surface-3); border-color: var(--green); }

.user-chip-name {
  font-size: .88rem;
}

/* ── Layout ─────────────────────────────────────────────────────────────────── */
.layout {
  display: grid;
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr) minmax(260px, 320px);
  gap: 20px;
  align-items: start;
  padding-top: 24px;
}

/* ── Panels ─────────────────────────────────────────────────────────────────── */
.panel, .workspace {
  border: 1px solid var(--line);
  background: rgba(28,28,26,.9);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
}

.panel--empty {
  border-color: transparent;
  background: none;
  box-shadow: none;
}

.panel {
  position: sticky;
  top: 82px;
  padding: 20px;
}

.workspace {
  min-width: 0;
  padding: 20px;
}

/* ── Profile panel ──────────────────────────────────────────────────────────── */
.profile-identity {
  display: grid;
  gap: 12px;
}

.profile-name {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.1;
}

.handle-display {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.handle-line {
  margin-top: 4px;
  color: var(--muted);
  font-size: .85rem;
}

.bio-text {
  color: var(--soft);
  font-size: .9rem;
  line-height: 1.55;
}

.panel-section-title {
  margin: 0 0 12px;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
}

.panel-ctas {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Avatars ────────────────────────────────────────────────────────────────── */
.avatar {
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  color: var(--green);
  font-weight: 900;
  flex-shrink: 0;
}

.avatar-xs  { width: 28px; height: 28px; font-size: .75rem; border-radius: 4px; }
.avatar-sm  { width: 34px; height: 34px; font-size: .9rem;  border-radius: 6px; }
.avatar-lg  { width: 56px; height: 56px; font-size: 1.4rem; }
.avatar-xl  { width: 72px; height: 72px; font-size: 1.8rem; }

.avatar-photo {
  object-fit: cover;
  border: 1px solid var(--line-strong);
}

/* ── Stat grid ──────────────────────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--surface);
}

.stat strong {
  display: block;
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── Tags ───────────────────────────────────────────────────────────────────── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  color: var(--soft);
  background: var(--surface-3);
  border: 1px solid var(--line);
  font-size: .78rem;
  white-space: nowrap;
  transition: border-color .12s;
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.button, .ghost-button, .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: var(--surface-2);
  font-weight: 600;
  font-size: .88rem;
  transition: background .13s, border-color .13s, box-shadow .13s;
  white-space: nowrap;
}

.button {
  background: var(--green);
  border-color: var(--green);
  color: #061a0f;
  font-weight: 700;
}

.button:hover {
  background: #28e691;
  border-color: #28e691;
}

.ghost-button {
  background: transparent;
}

.ghost-button:hover {
  background: var(--surface-3);
  border-color: var(--line-strong);
}

.icon-button {
  width: 38px;
  padding: 0;
  font-size: 1rem;
}

.icon-button:hover {
  background: var(--surface-3);
  border-color: var(--line-strong);
}

.button-compact {
  min-height: 34px;
  padding: 0 14px;
  font-size: .85rem;
}

.button:disabled, .ghost-button:disabled, .icon-button:disabled {
  cursor: not-allowed;
  opacity: .4;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  font-size: inherit;
  text-align: left;
  cursor: pointer;
  transition: color .12s;
}

.text-button:hover { color: var(--green); }

.link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
}

/* ── Catalog toolbar ────────────────────────────────────────────────────────── */
.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 200px) minmax(130px, 170px);
  gap: 12px;
  align-items: end;
}

label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

input, select, textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text);
  background: #0e0e0d;
  outline: none;
  transition: border-color .13s, box-shadow .13s;
}

textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.55;
  text-transform: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34,199,126,.15);
}

/* ── Catalog meta / pager ───────────────────────────────────────────────────── */
.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 16px;
  color: var(--muted);
  font-size: .85rem;
}

.pager {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

/* ── Album grid ─────────────────────────────────────────────────────────────── */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 14px;
}

.album-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.album-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.cover-button {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: #0c0c0b;
  overflow: hidden;
  flex-shrink: 0;
}

.cover-button:hover .cover { opacity: .88; }

.cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .15s;
}

.album-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px;
  gap: 10px;
}

.album-text { flex: 1; }

.album-title {
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.album-artist {
  margin-top: 3px;
  color: var(--soft);
  font-size: .82rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.album-year {
  margin-top: 2px;
  color: var(--muted);
  font-size: .77rem;
}

.album-footer { display: grid; gap: 8px; }

.rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: .8rem;
}

.log-count { color: var(--muted); white-space: nowrap; }

.card-actions {
  display: grid;
  grid-template-columns: 1fr 38px;
  gap: 6px;
}

.card-log-btn { width: 100%; }

/* ── Stars ──────────────────────────────────────────────────────────────────── */
.stars { color: var(--yellow); font-style: normal; white-space: nowrap; }
.stars-xs { font-size: .72rem; }
.stars-sm { font-size: .82rem; }
.stars-md { font-size: .95rem; }
.rating-empty { color: var(--faint); font-style: italic; font-size: .82rem; }

/* ── Friend / activity sidebar ──────────────────────────────────────────────── */
.friend-list { display: grid; gap: 8px; }

.friend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.friend-item-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.friend-item-inner div { min-width: 0; }

.friend-item small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: .78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.remove-friend-btn {
  flex-shrink: 0;
  width: 28px;
  min-height: 28px;
  font-size: .9rem;
  border-color: transparent;
  color: var(--muted);
  background: transparent;
}

.remove-friend-btn:hover { color: var(--red); background: rgba(208,92,84,.1); border-color: var(--red); }

.friend-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 14px;
}

.friend-form label { text-transform: none; font-size: .85rem; }

.activity-list { display: grid; gap: 10px; margin-top: 4px; }

.activity-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: start;
}

.activity-cover {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.activity-cover .cover { width: 48px; height: 48px; }

.activity-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.activity-stars { font-size: .78rem; }

.activity-album-title {
  font-size: .85rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-artist {
  display: block;
  color: var(--muted);
  font-size: .77rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-review-text {
  margin: 4px 0 0;
  font-size: .78rem;
  color: var(--soft);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Empty / loading states ─────────────────────────────────────────────────── */
.empty-state {
  color: var(--muted);
  font-size: .88rem;
  font-style: italic;
}

.full-empty {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
}

.skeleton {
  aspect-ratio: 3/4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(90deg, #1c1c1a 25%, #242420 50%, #1c1c1a 75%);
  background-size: 300% 100%;
  animation: shimmer 1.6s infinite;
}

@keyframes shimmer {
  from { background-position: 100% 0; }
  to   { background-position: -100% 0; }
}

/* ── Muted helper ───────────────────────────────────────────────────────────── */
.muted { color: var(--muted); }

/* ── Toast ──────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--surface-3);
  color: var(--text);
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: .9rem;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast-success { border-color: var(--green); color: var(--green); }
.toast-error   { border-color: var(--red);   color: var(--red);   }

/* ── Modal ──────────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8,8,7,.75);
  backdrop-filter: blur(4px);
}

.modal {
  width: min(860px, 100%);
  max-height: min(90vh, 920px);
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 20px 18px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}

.modal-header h2 { margin: 0; font-size: 1.25rem; line-height: 1.15; }
.modal-header p  { margin-top: 4px; color: var(--muted); font-size: .88rem; }

.close-btn {
  flex-shrink: 0;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  font-size: 1.3rem;
}

.close-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--line); }

.modal-body {
  padding: 20px;
  display: grid;
  gap: 20px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}

/* ── Album detail dialog ────────────────────────────────────────────────────── */
.album-dialog {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 20px;
  align-items: start;
}

.cover-wrap {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #0c0c0b;
}

.cover-wrap .cover { width: 100%; height: 100%; }

.album-detail-info {
  display: grid;
  gap: 16px;
}

.cover-credit { font-size: .8rem; }

/* ── Reviews section ────────────────────────────────────────────────────────── */
.reviews-section h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
}

.review-list { display: grid; gap: 10px; }

.review-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color .12s;
}

.review-item--with-cover {
  display: flex;
  gap: 12px;
  padding: 10px;
  align-items: flex-start;
}

.review-cover-thumb {
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  display: block;
}

.review-cover-thumb .cover {
  display: block;
  border-radius: var(--radius-sm);
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.review-item-content {
  flex: 1;
  min-width: 0;
}

.review-item:hover { border-color: var(--line-strong); }

.review-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.review-author {
  font-size: .92rem;
  font-weight: 700;
}

.review-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.review-date { color: var(--muted); font-size: .78rem; }

.fav-badge { color: var(--red); font-size: .85rem; }

.delete-review-btn {
  width: 26px;
  min-height: 26px;
  font-size: .9rem;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  opacity: 0;
  transition: opacity .12s, background .12s, color .12s;
}

.review-item:hover .delete-review-btn { opacity: 1; }
.delete-review-btn:hover { background: rgba(208,92,84,.12); color: var(--red); border-color: var(--red); }

.review-text {
  margin-top: 8px;
  color: var(--soft);
  font-size: .9rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* ── Photo upload ───────────────────────────────────────────────────────────── */
.photo-upload-section {
  display: grid;
  gap: 8px;
}

.photo-upload-label-text {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.photo-upload-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.photo-upload-btn {
  cursor: pointer;
}

/* ── Auth forms ─────────────────────────────────────────────────────────────── */
.auth-form { gap: 14px; }

.auth-switch {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
  text-align: center;
}

/* ── Review form ────────────────────────────────────────────────────────────── */
.review-fields {
  display: grid;
  gap: 16px;
}

.range-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

input[type="range"] {
  padding: 0;
  min-height: 0;
  height: 4px;
  accent-color: var(--green);
  border: none;
  background: transparent;
}

.rating-display {
  font-size: 1rem;
  color: var(--yellow);
  white-space: nowrap;
  min-width: 48px;
  text-align: right;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--soft);
  text-transform: none;
  font-size: .9rem;
  cursor: pointer;
}

.check-row input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
  border: none;
  padding: 0;
}

/* ── Profile overview in modal ──────────────────────────────────────────────── */
.profile-overview {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}

.profile-overview-info { display: grid; gap: 14px; }

/* ── Mobile nav ─────────────────────────────────────────────────────────────── */
.mobile-nav { display: none; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 1160px) {
  .layout {
    grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  }
  .activity-panel {
    grid-column: 1 / -1;
    position: static;
  }
}

@media (max-width: 800px) {
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: rgba(20,20,19,.96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(20px) saturate(160%);
  }

  .mobile-nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 0 18px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    cursor: pointer;
    transition: color .15s;
  }

  .mobile-nav-tab.is-active { color: var(--green); }

  /* Catalog tab active: hide activity panel */
  .layout:not(.tab-activity) #activityPanel { display: none; }

  /* Activity tab active: hide catalog + profile panel */
  .layout.tab-activity .workspace,
  .layout.tab-activity #profilePanel { display: none; }

  .app-shell { padding: 0 14px 80px; }

  .topbar {
    flex-wrap: wrap;
    min-height: auto;
    gap: 10px;
    padding: 12px 0;
  }

  .topbar-actions { width: 100%; }

  .layout {
    grid-template-columns: 1fr;
    padding-top: 16px;
  }

  .panel { position: static; }

  .catalog-toolbar {
    grid-template-columns: 1fr;
  }

  .album-grid {
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 10px;
  }

  .album-dialog,
  .profile-overview {
    grid-template-columns: 1fr;
  }

  .detail-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-header, .modal-body, .modal-footer { padding: 14px; }

  .catalog-meta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .album-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}

