/* ── RELEASES PAGE ─────────────────────────────────────────── */
.releases-wrapper {
  width: 100%;
  padding: 20px 0;
}

.releases-category-group {
  margin-bottom: 52px;
}

/* ── CATEGORY HEADER (collapsible) ─────────────────────────── */
.releases-category-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid #6b1020;
  margin-bottom: 18px;
  cursor: pointer;
  user-select: none;
}

.releases-category-label:hover .releases-cat-title {
  color: #6b1020;
}

.releases-cat-title {
  font-size: 20px;
  font-weight: 600;
  color: #111;
  transition: color 0.15s;
}

.releases-cat-count {
  font-size: 11px;
  color: #999;
  background: #f4f4f4;
  padding: 2px 8px;
  border-radius: 99px;
}

.releases-cat-chevron {
  margin-left: auto;
  transition: transform 0.25s ease;
  color: #999;
  display: flex;
  align-items: center;
}

.releases-category-group.collapsed .releases-cat-chevron {
  transform: rotate(-90deg);
}

/* ── GRID ───────────────────────────────────────────────────── */
.releases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 24px;
  overflow: hidden;
  max-height: 2000px;
  opacity: 1;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

.releases-category-group.collapsed .releases-grid {
  max-height: 0;
  opacity: 0;
}

/* ── RELEASE CARD ───────────────────────────────────────────── */
.release-card {
  cursor: pointer;
  border-radius: 7px;
  overflow: hidden;
  aspect-ratio: 3/4;
  position: relative;
  box-shadow: 0 3px 12px rgba(0,0,0,0.13);
  transition: transform 0.2s, box-shadow 0.2s;
}

.release-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.release-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.release-no-cover {
  width: 100%;
  height: 100%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #666;
  padding: 10px;
  text-align: center;
}

/* ── HOVER OVERLAY ──────────────────────────────────────────── */
.release-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 35%, rgba(0,0,0,0.82));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px 8px 8px;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.release-card:hover .release-card-overlay {
  opacity: 1;
}

.release-card-month {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 3px;
  display: block;
}

.release-card-title {
  font-size: 12px;
  color: #fff;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

/* ── FLIPHTML5 MODAL ────────────────────────────────────────── */
.release-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 1000000;
  align-items: center;
  justify-content: center;
}

.release-modal-overlay.active {
  display: flex;
}

.release-modal-box {
  position: relative;
  width: 90vw;
  height: 85vh;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.release-modal-content {
  width: 100%;
  height: 100%;
}

.release-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 10;
  background: white;
  border: none;
  font-size: 18px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.release-modal-close:hover {
  background: #f0f0f0;
}

/* ── MOBILE ─────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .releases-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
  }

  .releases-cat-title {
    font-size: 17px;
  }
}
