#releases { padding-block: 46px 24px; }
#releases .release-heading { margin: 0 0 28px; color: var(--text, #fff); font-size: clamp(1.7rem, 3vw, 2.35rem); }
#releases .release-toolbar { display: grid; grid-template-columns: minmax(0,2fr) minmax(180px,1fr) minmax(180px,1fr); gap: 18px; margin-bottom: 12px; }
#releases .release-field { display: grid; gap: 8px; }
#releases .release-field label { color: var(--text, #fff); font-weight: 700; }
#releases .release-field input,
#releases .release-field select { width: 100%; min-height: 48px; padding: 10px 13px; color: var(--text,#fff); background: var(--panel,#202020); border: 1px solid var(--line,#3a3a3a); border-radius: 9px; font: inherit; }
#releases .release-count { margin: 10px 0 20px; color: var(--muted,#bbb); }
.release-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.release-card { overflow: hidden; color: var(--text,#fff); background: var(--panel,#1c1c1c); border: 1px solid var(--line,#393939); border-radius: 14px; transition: transform .2s ease, border-color .2s ease; }
.release-card:hover { transform: translateY(-3px); border-color: #722F99; }
.release-cover { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #111; }
.release-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.release-card:hover .release-cover img { transform: scale(1.025); }
.release-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%,rgba(0,0,0,.55)); }
.release-play { position: absolute; z-index: 1; left: 50%; top: 50%; display: grid; place-items: center; width: 58px; height: 58px; padding-left: 4px; color: #111; background: #f3ce00; border-radius: 50%; transform: translate(-50%,-50%); box-shadow: 0 8px 26px rgba(0,0,0,.4); }
.release-body { display: grid; gap: 13px; padding: 16px; }
.release-body h3 { min-height: 2.8em; margin: 0; font-size: 1rem; line-height: 1.4; }
.release-name-label { color: var(--muted,#bbb); font-weight: 600; }
.release-artist { min-height: 1.4em; margin: -5px 0 0; overflow: hidden; color: var(--text,#fff); font-size: .88rem; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.release-artist-label { color: var(--muted,#bbb); font-weight: 600; }
.release-meta { display: flex; align-items: center; justify-content: space-between; gap: 9px; color: var(--muted,#bbb); font-size: .82rem; }
.release-type { padding: 5px 10px; color: #fff; border: 1px solid transparent; border-radius: 999px; font-weight: 800; }
.release-type-album { background: #722F99; border-color: #a957cf; box-shadow: 0 0 10px rgba(114,47,153,.28); }
.release-type-single { background: #087f9e; border-color: #20b8d9; box-shadow: 0 0 10px rgba(8,127,158,.28); }
.release-type-ep { background: #bd5d0c; border-color: #f1913d; box-shadow: 0 0 10px rgba(189,93,12,.28); }
.release-open { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 12px; color: #111; background: #f3ce00; border-radius: 8px; font-weight: 800; text-decoration: none; }
.release-empty { grid-column: 1 / -1; padding: 45px 20px; color: var(--muted,#bbb); text-align: center; }
#releases .release-pagination { display: flex !important; visibility: visible !important; opacity: 1 !important; position: static !important; float: none !important; width: 100% !important; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 34px 0 5px; }
.release-pagination > button { min-width: 44px; min-height: 44px; padding: 7px 11px; color: var(--text,#fff); background: var(--panel,#202024); border: 1px solid var(--line,#393940); border-radius: 9px; font: inherit; font-weight: 700; cursor: pointer; }
.release-pagination > .release-page-back,
.release-pagination > .release-page-next { color: #fff; background: #722F99; border-color: #a13ac8; }
.release-pagination > .release-page-first,
.release-pagination > .release-page-last { color: #69d5e8; background: #162b31; border-color: #00a9c6; }
.release-pagination > button[aria-current="page"] { color: #111; background: #f3ce00; border-color: #ffe000; box-shadow: 0 0 12px rgba(243,206,0,.38); }
.release-pagination > button:disabled { opacity: .42; cursor: default; }
html[data-theme="light"] .release-card { background: #fff; }
html[data-theme="light"] #releases .release-field input,
html[data-theme="light"] #releases .release-field select,
html[data-theme="light"] .release-pagination > button:not(.release-page-back):not(.release-page-next):not(.release-page-edge):not([aria-current="page"]) { color: #17212c; background: #fff; border-color: #d1d8e0; }
@media (max-width:1050px) { .release-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width:760px) {
  #releases .release-toolbar { grid-template-columns: 1fr; }
  .release-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
  .release-card { border-radius: 12px; }
  .release-body { padding: 12px; }
  .release-play { width: 50px; height: 50px; }
  #releases .release-pagination { display: grid !important; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 7px; width: 100%; }
  #releases .release-pagination > button { display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; min-height: 44px; padding: 6px 2px; font-size: clamp(.68rem,3vw,.93rem); white-space: nowrap; }
}
@media (max-width:390px) { .release-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion:reduce) { .release-card,.release-cover img { transition: none; } .release-card:hover { transform: none; } }

/* RELEASES PAGINATION MATCH SHORTS START */
#releases .release-pagination > button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 7px 11px !important;
  margin: 0 !important;
  color: var(--text,#fff) !important;
  background: var(--panel,#202024) !important;
  border: 1px solid var(--line,#393940) !important;
  border-radius: 9px !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Purple Back and Next buttons */
#releases .release-pagination > .release-page-back,
#releases .release-pagination > .release-page-next {
  color: #fff !important;
  background: #722F99 !important;
  border-color: #a13ac8 !important;
  box-shadow: 0 5px 18px rgba(114,47,153,.35) !important;
}

/* Cyan First and Last buttons */
#releases .release-pagination > .release-page-first,
#releases .release-pagination > .release-page-last {
  color: #69d5e8 !important;
  background: #162b31 !important;
  border-color: #00a9c6 !important;
  box-shadow: 0 0 10px rgba(0,169,198,.22) !important;
}

/* Yellow active page number */
#releases .release-pagination > button[aria-current="page"],
#releases .release-pagination > button.is-active {
  color: #111 !important;
  background: #f3ce00 !important;
  border-color: #ffe000 !important;
  box-shadow: 0 0 0 3px rgba(243,206,0,.22) !important;
  transform: translateY(-1px) !important;
}

#releases .release-pagination > button:disabled {
  opacity: .42 !important;
  cursor: default !important;
}

html[data-theme="light"] #releases .release-pagination > button:not(.release-page-back):not(.release-page-next):not(.release-page-edge):not([aria-current="page"]) {
  color: #17212c !important;
  background: #fff !important;
  border-color: #d1d8e0 !important;
}

@media (max-width:760px) {
  #releases .release-grid { margin-bottom: 45px !important; }
  #releases .release-pagination {
    display: grid !important;
    grid-template-columns: repeat(7,minmax(0,1fr)) !important;
    grid-auto-flow: row !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    gap: 7px !important;
    width: 100% !important;
    padding: 12px 0 !important;
    margin: 16px 0 5px !important;
    overflow: visible !important;
  }
  #releases .release-pagination > button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 44px !important;
    padding: 6px 2px !important;
    font-size: clamp(.68rem,3vw,.93rem) !important;
    white-space: nowrap !important;
  }
}
/* RELEASES PAGINATION MATCH SHORTS END */

/* PAGE NUMBER VIDEO HOVER START */
/* Match the Videos-tab hover on numeric pages only. */
.short-pagination > button:nth-child(n+3):nth-last-child(n+3),
.release-pagination > button:nth-child(n+3):nth-last-child(n+3) {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease !important;
}

.short-pagination > button:nth-child(n+3):nth-last-child(n+3):not(:disabled):not([aria-current="page"]):hover,
.short-pagination > button:nth-child(n+3):nth-last-child(n+3):not(:disabled):not([aria-current="page"]):focus-visible,
.release-pagination > button:nth-child(n+3):nth-last-child(n+3):not(:disabled):not([aria-current="page"]):hover,
.release-pagination > button:nth-child(n+3):nth-last-child(n+3):not(:disabled):not([aria-current="page"]):focus-visible {
  border-color: #f3ce00 !important;
  box-shadow: 0 0 0 2px rgba(243,206,0,.95), 0 0 16px rgba(243,206,0,.45) !important;
  transform: translateY(-2px) !important;
  cursor: pointer !important;
}
/* PAGE NUMBER VIDEO HOVER END */
