/* ═══════════════════════════════════════════
   CatMap – Album (stili specifici)
   ═══════════════════════════════════════════ */

/* ── VARIABILI AGGIUNTIVE ALBUM ── */
:root {
  --topbar-h: 64px;
  --sidebar-w: 300px;
}

/* Link reset */
a { text-decoration: none; color: inherit; }

/* ══════════════════════════════════════
   CONTENT AREA
   (.content è ora in style.css globale)
══════════════════════════════════════ */

/* ── TOP BAR MOBILE (album) ── */
.album-top-bar {
  position: relative;
  z-index: 50;
  background: var(--cream);
  padding: 14px 16px 0;
  flex-shrink: 0;
}
.album-top-bar-row1 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; position: relative; }

/* ── DESKTOP HEADER (album) ── */
.desktop-header {
  display: none;
  padding: 20px 28px 0;
  flex-shrink: 0;
}
.desktop-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.desktop-title { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--brown); }
.desktop-title span { color: var(--terra); }
.desktop-count { font-size: 13px; font-weight: 600; color: var(--sand-dark); margin-top: 3px; }

/* ── SEARCH + SORT ROW ── */
.search-sort-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.search-box {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1.5px solid var(--sand);
  border-radius: var(--radius-pill); padding: 10px 16px;
  box-shadow: var(--shadow-sm); transition: border-color 0.2s;
}
.search-box:focus-within { border-color: var(--terra); }
.search-box input { border: none; outline: none; font-family: var(--font-ui); font-size: 14px; font-weight: 500; color: var(--brown); background: transparent; flex: 1; min-width: 0; }
.search-box input::placeholder { color: var(--sand-dark); }

.sort-btn {
  width: 42px; height: 42px; border-radius: var(--radius-md);
  background: var(--white); border: 1.5px solid var(--sand);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); color: var(--brown-mid);
  transition: all 0.15s; flex-shrink: 0;
}
.sort-btn:hover { border-color: var(--terra); color: var(--terra); }
.sort-btn.open { background: var(--terra); border-color: var(--terra); color: white; }

/* Sort dropdown */
.sort-dropdown {
  position: absolute;
  top: calc(100% + 6px); right: 16px;
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); border: 1px solid var(--cream-mid);
  z-index: 200; overflow: hidden;
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  min-width: 200px;
}
.sort-dropdown.open { opacity: 1; pointer-events: all; transform: translateY(0); }
.sort-option {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; font-size: 14px; font-weight: 600; color: var(--brown-mid);
  cursor: pointer; transition: background 0.12s;
}
.sort-option:hover { background: var(--cream); }
.sort-option.active { color: var(--terra); background: var(--terra-pale); }
.sort-option-icon { font-size: 16px; }

/* ── CHIPS FILTRO (album) ── */
.filter-chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding-bottom: 2px;
}
.filter-chips::-webkit-scrollbar { display: none; }

/* ── DIVISORE ── */
.top-bar-divider {
  height: 1px; background: var(--cream-mid);
  margin: 12px 0 0;
}

/* ══════════════════════════════════════
   GRIGLIA ALBUM
══════════════════════════════════════ */
.album-scroll {
  flex: 1;
  min-height: 0; /* bug noto di Safari: senza questo, un flex-item con overflow non si contrae e non scrolla mai */
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--sand) transparent;
  padding: 16px 14px calc(var(--nav-h) + 16px);
}
.album-scroll::-webkit-scrollbar { width: 4px; }
.album-scroll::-webkit-scrollbar-thumb { background: var(--sand); border-radius: 2px; }

/* Sezione in evidenza */
.album-featured-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.7px; color: var(--sand-dark);
  margin-bottom: 12px;
}
.album-featured-label::after { content: ''; flex: 1; height: 1px; background: var(--cream-mid); }

/* Card in evidenza (orizzontale, top 1) */
.card-featured {
  display: flex; gap: 0;
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md);
  margin-bottom: 20px; cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.22s ease;
  animation: cardIn 0.4s ease both;
}
.card-featured:hover { border-color: var(--terra); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.card-featured-photo {
  width: 130px; flex-shrink: 0;
  position: relative; overflow: hidden;
  min-height: 140px;
}
.card-featured-photo .lqip-img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
}
.card-featured-body { flex: 1; padding: 18px 16px; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.card-featured-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.card-featured-name { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--brown); line-height: 1.1; }
.card-featured-breed { font-size: 12px; color: var(--brown-mid); font-weight: 500; margin-top: 3px; }
.card-featured-badges { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.card-featured-bottom { display: flex; align-items: center; justify-content: space-between; }
.card-featured-stats { display: flex; gap: 14px; }
.card-featured-stat { text-align: center; }
.card-featured-stat-val { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--terra); line-height: 1; }
.card-featured-stat-lbl { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--sand-dark); margin-top: 1px; }

/* Griglia normale 2 col mobile */
.album-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* Card normale */
.cat-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  cursor: pointer; border: 1.5px solid transparent;
  transition: all 0.22s ease;
  animation: cardIn 0.4s ease both;
  display: flex; flex-direction: column;
}
.cat-card:hover { border-color: var(--terra); transform: translateY(-3px); box-shadow: var(--shadow-md); }

.cat-card-photo {
  aspect-ratio: 1 / 1;
  position: relative; overflow: hidden;
}
.cat-card-photo .lqip-img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
}

/* ── LQIP immagine base (album) ── */
.lqip-img {
  display: block;
  filter: blur(10px);
  transition: filter 0.45s ease;
}
.lqip-img.lqip-loaded { filter: blur(0); }

/* Palette sfondo foto card (fallback se img non carica) */
.bg-0 { background: #F5DFD0; }
.bg-1 { background: #D0E8D0; }
.bg-2 { background: #D0D8E8; }
.bg-3 { background: #E8E0D0; }
.bg-4 { background: #E8D0D0; }
.bg-5 { background: #E0D0E8; }
.bg-6 { background: #D0E8E4; }
.bg-7 { background: #E8E8D0; }

.cat-card-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(61,43,31,0.08) 100%);
}
.cat-card-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--terra); color: white;
  font-size: 9px; font-weight: 800;
  padding: 3px 8px; border-radius: var(--radius-pill);
}
.cat-card-like {
  position: absolute; top: 8px; right: 8px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.88); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}
.cat-card-like:active { transform: scale(1.3); }

.cat-card-body { padding: 12px 12px 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.cat-card-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--brown); line-height: 1.1; }
.cat-card-breed { font-size: 11px; color: var(--brown-mid); font-weight: 500; }
.cat-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.cat-card-time { display: flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; color: var(--sand-dark); }
.cat-card-avv { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--terra); }

/* Badge pill */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 10px; font-weight: 700;
}
.badge-green { background: var(--sage-light); color: #3A6A3A; }
.badge-terra { background: var(--terra-pale); color: var(--terra-dark); }
.badge-sand  { background: var(--cream-mid);  color: var(--brown-mid); }

/* ─── PAGINAZIONE ─── */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 24px 0 10px; flex-wrap: wrap;
}
.pg-btn {
  min-width: 36px; height: 36px; padding: 0 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 1.5px solid var(--sand);
  border-radius: var(--radius-md); font-size: 13px; font-weight: 700;
  color: var(--brown-mid); cursor: pointer; transition: all 0.15s ease;
  font-family: var(--font-ui);
}
.pg-btn:hover:not(:disabled) { border-color: var(--terra); color: var(--terra); }
.pg-btn.active { background: var(--terra); border-color: var(--terra); color: white; }
.pg-btn:disabled { opacity: 0.35; cursor: default; }
.pg-ellipsis { font-size: 13px; color: var(--sand-dark); padding: 0 2px; line-height: 36px; }

/* Stato vuoto */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px 32px; text-align: center;
  display: none;
}
.empty-state-emoji { font-size: 64px; margin-bottom: 16px; }
.empty-state-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--brown); margin-bottom: 8px; }
.empty-state-sub { font-size: 14px; color: var(--brown-mid); font-weight: 500; }

/* ══════════════════════════════════════
   SKELETON — placeholder animato mostrato prima
   che arrivino i dati reali (card in evidenza + griglia)
══════════════════════════════════════ */
@keyframes skeletonShimmer {
  0%   { background-position: -300px 0; }
  100% { background-position: 300px 0; }
}
.skel-line {
  background: linear-gradient(90deg, var(--cream-mid) 25%, var(--cream) 37%, var(--cream-mid) 63%);
  background-size: 300px 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
}

.card-featured-skeleton {
  display: flex; gap: 0;
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md);
  margin-bottom: 20px;
}
.card-featured-skeleton .skel-photo {
  width: 130px; flex-shrink: 0; min-height: 140px;
  background: linear-gradient(90deg, var(--cream-mid) 25%, var(--cream) 37%, var(--cream-mid) 63%);
  background-size: 300px 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
}
.card-featured-skeleton .skel-body {
  flex: 1; padding: 18px 16px;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.card-featured-skeleton .skel-line.h-lg  { height: 18px; width: 55%; }
.card-featured-skeleton .skel-line.h-sm  { height: 11px; width: 35%; }
.card-featured-skeleton .skel-line.h-tag { height: 20px; width: 70px; border-radius: 10px; }
.card-featured-skeleton .skel-tags { display: flex; gap: 6px; }

.grid-skeleton {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.cat-card-skeleton {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.cat-card-skeleton .skel-photo {
  aspect-ratio: 1 / 1;
  background: linear-gradient(90deg, var(--cream-mid) 25%, var(--cream) 37%, var(--cream-mid) 63%);
  background-size: 300px 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
}
.cat-card-skeleton .skel-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.cat-card-skeleton .skel-line.h-md { height: 13px; width: 75%; }
.cat-card-skeleton .skel-line.h-sm { height: 10px; width: 45%; }

@media (min-width: 768px) {
  .grid-skeleton { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 1100px) {
  .grid-skeleton { grid-template-columns: repeat(4, 1fr); }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════
   MODALE DETTAGLIO GATTO
══════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(61,43,31,0.45);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex; align-items: flex-end;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  width: 100%; max-height: 92dvh;
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden; display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -8px 40px rgba(61,43,31,0.25);
}
.modal-overlay.open .modal { transform: translateY(0); }

/* Hero foto modale */
.modal-hero {
  height: 260px; flex-shrink: 0;
  position: relative; overflow: hidden;
}
.modal-hero .lqip-img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.modal-hero-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.88); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--brown); box-shadow: var(--shadow-sm);
}
.modal-hero-like {
  position: absolute; top: 14px; left: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.88); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-hero-like:active { transform: scale(1.35); }
.modal-hero-share {
  position: absolute; top: 14px; right: 56px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.88); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--brown); box-shadow: var(--shadow-sm);
}
.modal-hero-badge {
  position: absolute; bottom: 14px; left: 14px;
  background: var(--terra); color: white;
  font-size: 10px; font-weight: 800;
  padding: 4px 12px; border-radius: var(--radius-pill);
}
.modal-hero-pending-badge {
  position: absolute; bottom: 14px; right: 14px;
  background: rgba(40,32,24,0.82); color: white;
  font-size: 10px; font-weight: 800;
  padding: 4px 12px; border-radius: var(--radius-pill);
  align-items: center; gap: 5px;
}

.modal-body { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 20px 32px; -webkit-overflow-scrolling: touch; }

.modal-name-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.modal-name { font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--brown); line-height: 1.1; }
.modal-breed { font-size: 14px; color: var(--brown-mid); font-weight: 500; margin-bottom: 12px; }
.modal-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }

/* Stats modale */
.modal-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.modal-stat { background: var(--cream); border-radius: var(--radius-md); padding: 14px 10px; text-align: center; }
.modal-stat-val { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--terra); line-height: 1; }
.modal-stat-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--brown-mid); margin-top: 3px; }

/* Descrizione */
.modal-section-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.7px; color: var(--sand-dark); margin-bottom: 8px; }
.modal-desc { font-size: 14px; color: var(--brown-mid); font-weight: 500; line-height: 1.6; margin-bottom: 18px; }

/* Strip foto */
.modal-photos { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 18px; }
.modal-photos::-webkit-scrollbar { display: none; }
.modal-photo-thumb {
  width: 80px; height: 80px; flex-shrink: 0;
  border-radius: var(--radius-sm); display: flex;
  align-items: center; justify-content: center;
  font-size: 36px; cursor: pointer;
  transition: transform 0.15s; overflow: hidden;
}
.modal-photo-thumb:hover { transform: scale(1.05); }
.modal-photo-add {
  width: 80px; height: 80px; flex-shrink: 0;
  border-radius: var(--radius-sm); border: 2px dashed var(--sand);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; color: var(--sand-dark); font-size: 10px; font-weight: 700;
  cursor: pointer; transition: border-color 0.15s;
}
.modal-photo-add:hover { border-color: var(--terra); color: var(--terra); }
.modal-photo-add span { font-size: 22px; }

/* Info zona */
.modal-zone {
  display: flex; align-items: center; gap: 12px;
  background: var(--cream); border-radius: var(--radius-md);
  padding: 14px 16px; margin-bottom: 18px; cursor: pointer;
  border: 1.5px solid transparent; transition: border-color 0.18s;
}
.modal-zone:hover { border-color: var(--terra); }
.modal-zone-icon { font-size: 26px; flex-shrink: 0; }
.modal-zone-info { flex: 1; }
a.modal-zone { text-decoration: none; }

/* ─── FORM SEGNALA AVVISTAMENTO ─── */
.segnala-form {
  display: none; flex-direction: column; gap: 10px;
  background: var(--cream); border: 1.5px solid var(--terra-pale);
  border-radius: var(--radius-md); padding: 16px;
  margin: 0 20px 24px; animation: fadeSlideUp .2s ease;
}
.segnala-form.open { display: flex; }
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.segnala-title { font-size: 13px; font-weight: 700; color: var(--brown); }
.segnala-textarea {
  width: 100%; resize: none; border: 1.5px solid var(--sand);
  border-radius: var(--radius-sm); padding: 10px 12px;
  font-family: var(--font-ui); font-size: 13px; color: var(--brown);
  background: var(--white); outline: none; box-sizing: border-box;
  transition: border-color .15s;
}
.segnala-textarea:focus { border-color: var(--terra); }
.segnala-chars { font-size: 10px; color: var(--sand-dark); text-align: right; margin-top: -4px; }
.segnala-actions { display: flex; gap: 8px; justify-content: flex-end; }
.segnala-cancel {
  padding: 8px 16px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--sand); background: var(--white);
  font-size: 13px; font-weight: 600; color: var(--brown-mid); cursor: pointer;
}
.segnala-submit {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: var(--radius-pill);
  border: none; background: var(--terra); color: white;
  font-size: 13px; font-weight: 700; cursor: pointer; transition: background .15s;
}
.segnala-submit:hover { background: var(--terra-dark); }

/* CTA modale */
.modal-cta { padding: 0 20px 20px; }
.btn-full { width: 100%; justify-content: center; }
.btn-outline {
  padding: 14px 18px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--sand); color: var(--brown-mid);
  font-family: var(--font-ui); font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all 0.15s;
}
.btn-outline:hover { border-color: var(--terra); color: var(--terra); }

/* Avvistamenti recenti */
.modal-sightings { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.modal-sighting-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--cream); border-radius: var(--radius-md);
}
.modal-sighting-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--terra); color: white; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 13px; font-weight: 600; flex-shrink: 0; }
.modal-sighting-info { flex: 1; }
.modal-sighting-user { font-size: 13px; font-weight: 700; color: var(--brown); }
.modal-sighting-time { font-size: 11px; color: var(--sand-dark); font-weight: 500; }
.modal-sighting-note { font-size: 12px; color: var(--brown-mid); margin-top: 1px; }

/* ── SIDEBAR TOP CATS ── */
.sidebar-top-cats { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sidebar-top-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-md);
  background: var(--white); border: 1.5px solid transparent;
  cursor: pointer; transition: all 0.18s ease;
}
.sidebar-top-item:hover { border-color: var(--terra); transform: translateX(2px); }
.sidebar-top-rank { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--sand); width: 22px; flex-shrink: 0; text-align: center; }
.sidebar-top-rank.gold   { color: #D4A83A; }
.sidebar-top-rank.silver { color: #A0A8B8; }
.sidebar-top-rank.bronze { color: #C4845A; }
.sidebar-top-photo { width: 38px; height: 38px; border-radius: var(--radius-sm); background: var(--cream-mid); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.sidebar-top-info { flex: 1; min-width: 0; }
.sidebar-top-name { font-size: 13px; font-weight: 700; color: var(--brown); }
.sidebar-top-meta { font-size: 11px; color: var(--brown-mid); margin-top: 1px; }
.sidebar-top-count { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--terra); flex-shrink: 0; }

/* ══════════════════════════════════════
   DESKTOP ≥ 768px
══════════════════════════════════════ */
@media (min-width: 768px) {
  .album-top-bar { display: none; }
  .desktop-header { display: block; }

  .album-scroll {
    padding: 16px 28px 32px;
  }

  .album-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .modal-overlay { align-items: center; justify-content: center; padding: 20px; }
  .modal {
    max-width: 560px; width: 100%;
    border-radius: var(--radius-lg);
    max-height: 88dvh;
  }
  .modal-overlay.open .modal { transform: translateY(0); }

  .sort-dropdown { right: 28px; }
  .search-sort-row { padding: 0; }
}

@media (min-width: 1100px) {
  .album-grid { grid-template-columns: repeat(4, 1fr); }
}
