/* =========================================================================
 * MSA Photo Albums — gallery.css
 * Scoped to .albums-page (archive /gallery/) and .album-single-page (single).
 * Enqueued only on the gallery_album archive / single / taxonomy.
 * ====================================================================== */

.albums-page,
.album-single-page {
  background: #f4f6fc;
  color: #17215c;
}

.albums-page .albums-container,
.album-single-page .album-container {
  width: min(100% - 44px, 1200px);
  margin-inline: auto;
}

/* -------------------------------------------------------------------------
 * SHARED — buttons, tags
 * ---------------------------------------------------------------------- */
.albums-page .albums-btn,
.album-single-page .album-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.albums-page .albums-btn {
  min-height: 50px;
  padding: 0 24px;
  font-size: 15px;
}

.albums-page .albums-btn--primary {
  background: linear-gradient(135deg, #16235e, #0a1336);
  color: #fff;
  box-shadow: 0 16px 32px rgba(10, 19, 54, .26);
}

.albums-page .albums-btn--lime {
  background: #b7f238;
  color: #0d1b3a;
  box-shadow: 0 16px 30px rgba(183, 242, 56, .3);
}

.albums-page .albums-btn--ghost {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
}

.albums-page .albums-btn:hover,
.albums-page .albums-btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.albums-page .albums-tags,
.album-single-page .album-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.albums-page .albums-tag,
.album-single-page .album-tag {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #1f6fd6;
  background: rgba(76, 201, 255, .12);
  border: 1px solid rgba(76, 201, 255, .22);
}

.album-single-page .album-tag {
  color: #cfe7ff;
  background: rgba(76, 201, 255, .14);
  border-color: rgba(127, 182, 255, .3);
}

/* -------------------------------------------------------------------------
 * ARCHIVE HERO
 * ---------------------------------------------------------------------- */
.albums-page .albums-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 7vw, 120px) 0 clamp(60px, 6vw, 100px);
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(76, 201, 255, .15), transparent 32%),
    radial-gradient(circle at 82% 25%, rgba(183, 242, 56, .12), transparent 30%),
    linear-gradient(135deg, #050a24 0%, #101a4a 52%, #050a24 100%);
}

.albums-page .albums-hero::after {
  content: "MSA";
  position: absolute;
  top: 6%;
  right: 2%;
  font-size: clamp(80px, 12vw, 190px);
  font-weight: 900;
  letter-spacing: -.04em;
  color: rgba(255, 255, 255, .03);
  pointer-events: none;
}

.albums-page .albums-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.albums-page .albums-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(183, 242, 56, .14);
  border: 1px solid rgba(183, 242, 56, .3);
  color: #d6f88f;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}

.albums-page .albums-eyebrow svg {
  width: 17px;
  height: 17px;
}

.albums-page .albums-title {
  margin: 18px 0 0;
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.02em;
}

.albums-page .albums-title span {
  color: #b7f238;
}

.albums-page .albums-subtitle {
  margin: 18px 0 0;
  max-width: 30em;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
  color: rgba(226, 232, 255, .82);
}

.albums-page .albums-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.albums-page .albums-hero-stats li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(226, 232, 255, .9);
}

.albums-page .albums-hero-stats svg {
  width: 22px;
  height: 22px;
  color: #4cc9ff;
}

/* Hero collage */
.albums-page .albums-hero-visual {
  position: relative;
  min-height: 320px;
}

.albums-page .albums-collage {
  position: relative;
  height: 100%;
  min-height: 320px;
}

.albums-page .albums-collage__card {
  position: absolute;
  width: 58%;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, .1);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .4);
}

.albums-page .albums-collage__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.albums-page .albums-collage__card--1 {
  top: 4%;
  left: 6%;
  z-index: 3;
  transform: rotate(-5deg);
}

.albums-page .albums-collage__card--2 {
  top: 16%;
  right: 2%;
  z-index: 2;
  transform: rotate(4deg);
}

.albums-page .albums-collage__card--3 {
  bottom: 2%;
  left: 26%;
  z-index: 1;
  transform: rotate(-1deg);
}

.albums-page .albums-collage__court {
  position: absolute;
  inset: 10% 4%;
  display: grid;
  place-items: center;
}

.albums-page .albums-collage__court svg {
  width: 100%;
  height: auto;
}

.albums-page .albums-collage__ball {
  position: absolute;
  bottom: 8%;
  right: 12%;
  width: 64px;
  height: 64px;
  z-index: 4;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .4));
}

.albums-page .albums-collage__ball svg {
  width: 100%;
  height: 100%;
}

.albums-page .albums-collage__badge {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(10, 19, 54, .82);
  border: 1px solid rgba(120, 170, 255, .28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
  backdrop-filter: blur(6px);
}

.albums-page .albums-collage__badge svg {
  width: 26px;
  height: 26px;
  color: #b7f238;
}

.albums-page .albums-collage__badge span {
  font-size: 12px;
  line-height: 1.2;
  color: rgba(226, 232, 255, .82);
}

.albums-page .albums-collage__badge strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
}

/* -------------------------------------------------------------------------
 * CONTENT WRAP
 * ---------------------------------------------------------------------- */
.albums-page .albums-content {
  padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 84px);
}

.albums-page .albums-card-placeholder {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #101a4a, #050a24);
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* Recommended album */
.albums-page .albums-recommended {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding: 20px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(23, 33, 92, .09);
  box-shadow: 0 24px 70px rgba(24, 35, 93, .1);
  margin-bottom: clamp(40px, 5vw, 64px);
}

.albums-page .albums-recommended__media {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
}

.albums-page .albums-recommended__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.albums-page .albums-recommended__media:hover img {
  transform: scale(1.04);
}

.albums-page .albums-recommended__flag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(10, 19, 54, .85);
  color: #b7f238;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}

.albums-page .albums-recommended__body {
  padding: 10px 16px 10px 0;
}

.albums-page .albums-recommended__eyebrow {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #1f6fd6;
}

.albums-page .albums-recommended__title {
  margin: 10px 0 0;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: #0d1b3a;
}

.albums-page .albums-recommended__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: rgba(23, 33, 92, .66);
}

.albums-page .albums-recommended__meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.albums-page .albums-recommended__meta svg {
  width: 17px;
  height: 17px;
  color: #4cc9ff;
}

.albums-page .albums-recommended__text {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(23, 33, 92, .72);
}

.albums-page .albums-recommended .albums-tags {
  margin: 18px 0 0;
}

.albums-page .albums-recommended .albums-btn {
  margin-top: 22px;
}

/* Toolbar */
.albums-page .albums-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.albums-page .albums-section-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -.02em;
  color: #0d1b3a;
  position: relative;
  padding-bottom: 8px;
}

.albums-page .albums-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46px;
  height: 4px;
  border-radius: 2px;
  background: #b7f238;
}

.albums-page .albums-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: 8px;
}

.albums-page .albums-pill {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  color: #17215c;
  background: #fff;
  border: 1px solid rgba(23, 33, 92, .12);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.albums-page .albums-pill:hover {
  border-color: rgba(76, 201, 255, .5);
}

.albums-page .albums-pill--active {
  background: linear-gradient(135deg, #16235e, #0a1336);
  color: #fff;
  border-color: transparent;
}

.albums-page .albums-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: auto;
}

.albums-page .albums-search svg {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  color: rgba(23, 33, 92, .45);
  pointer-events: none;
}

.albums-page .albums-search input {
  width: clamp(220px, 24vw, 300px);
  height: 46px;
  padding: 0 16px 0 44px;
  border-radius: 999px;
  border: 1px solid rgba(23, 33, 92, .12);
  background: #fff;
  color: #17215c;
  font-size: 14px;
}

.albums-page .albums-search input:focus {
  outline: none;
  border-color: rgba(76, 201, 255, .55);
  box-shadow: 0 0 0 3px rgba(76, 201, 255, .14);
}

/* Albums grid */
.albums-page .albums-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.albums-page .albums-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(23, 33, 92, .08);
  box-shadow: 0 18px 44px rgba(24, 35, 93, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.albums-page .albums-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(24, 35, 93, .16);
}

.albums-page .albums-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.albums-page .albums-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.albums-page .albums-card:hover .albums-card__media img {
  transform: scale(1.05);
}

.albums-page .albums-card__count {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(10, 19, 54, .8);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.albums-page .albums-card__count svg {
  width: 15px;
  height: 15px;
  color: #b7f238;
}

.albums-page .albums-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.albums-page .albums-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.albums-page .albums-card__title a {
  color: #0d1b3a;
  text-decoration: none;
}

.albums-page .albums-card__title a:hover {
  color: #1f6fd6;
}

.albums-page .albums-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(23, 33, 92, .58);
}

.albums-page .albums-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.albums-page .albums-card__meta svg {
  width: 15px;
  height: 15px;
  color: #4cc9ff;
}

.albums-page .albums-card__link {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 800;
  color: #1f6fd6;
  text-decoration: none;
}

.albums-page .albums-card__link:hover {
  color: #0d1b3a;
}

/* Pagination + empty */
.albums-page .albums-pagination {
  margin-top: 40px;
}

.albums-page .albums-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.albums-page .albums-pagination a,
.albums-page .albums-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  color: #17215c;
  background: #fff;
  border: 1px solid rgba(23, 33, 92, .12);
}

.albums-page .albums-pagination .current {
  background: linear-gradient(135deg, #16235e, #0a1336);
  color: #fff;
  border-color: transparent;
}

.albums-page .albums-empty {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 22px;
  border: 1px dashed rgba(23, 33, 92, .18);
}

.albums-page .albums-empty h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
  color: #0d1b3a;
}

.albums-page .albums-empty p {
  margin: 0;
  color: rgba(23, 33, 92, .6);
}

/* CTA */
.albums-page .albums-cta-section {
  padding: 0 0 clamp(48px, 6vw, 84px);
}

.albums-page .albums-cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 14%, rgba(76, 201, 255, .2), transparent 40%),
    linear-gradient(135deg, #0a1336 0%, #16235e 100%);
  border: 1px solid rgba(120, 170, 255, .22);
  box-shadow: 0 30px 80px rgba(10, 18, 54, .4);
}

.albums-page .albums-cta__visual {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(183, 242, 56, .14);
  border: 1px solid rgba(183, 242, 56, .3);
}

.albums-page .albums-cta__visual svg {
  width: 32px;
  height: 32px;
  color: #b7f238;
}

.albums-page .albums-cta__title {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 900;
  letter-spacing: -.02em;
}

.albums-page .albums-cta__title span {
  color: #b7f238;
}

.albums-page .albums-cta__text {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(226, 232, 255, .82);
}

.albums-page .albums-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* -------------------------------------------------------------------------
 * SINGLE ALBUM
 * ---------------------------------------------------------------------- */
.album-single-page .album-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(84px, 8vw, 124px) 0 clamp(60px, 7vw, 92px);
  color: #fff;
  background:
    radial-gradient(circle at 15% 20%, rgba(76, 201, 255, .15), transparent 32%),
    radial-gradient(circle at 84% 22%, rgba(183, 242, 56, .1), transparent 30%),
    linear-gradient(135deg, #050a24 0%, #101a4a 52%, #050a24 100%);
}

.album-single-page .album-hero__court {
  position: absolute;
  left: 0;
  bottom: -8%;
  width: min(48%, 520px);
  opacity: .85;
  pointer-events: none;
}

.album-single-page .album-hero__court svg {
  width: 100%;
  height: auto;
}

.album-single-page .album-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

/* Desktop: swap the hero cover photo for the decorative court card.
   Copy takes the wider column, the court card a tidy narrower one — no
   empty middle band, no early title wrapping. */
@media (min-width: 981px) {
  .album-single-page .album-hero-media {
    display: none;
  }

  .album-single-page .album-hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    gap: clamp(32px, 4vw, 64px);
  }
}

.album-single-page .album-hero-copy {
  min-width: 0;
}

.album-single-page .album-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(226, 232, 255, .55);
}

.album-single-page .album-breadcrumbs a {
  color: rgba(226, 232, 255, .72);
  text-decoration: none;
}

.album-single-page .album-breadcrumbs a:hover {
  color: #b7f238;
}

.album-single-page .album-breadcrumbs__current {
  color: #fff;
}

.album-single-page .album-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #b7f238;
}

.album-single-page .album-eyebrow svg {
  width: 18px;
  height: 18px;
}

.album-single-page .album-title {
  margin: 14px 0 0;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.02em;
}

.album-single-page .album-hero__lead {
  margin: 18px 0 0;
  max-width: 42ch;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
  color: rgba(226, 232, 255, .82);
}

.album-single-page .album-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.album-single-page .album-hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 800;
}

.album-single-page .album-hero-meta-item svg {
  width: 18px;
  height: 18px;
  color: #4cc9ff;
}

.album-single-page .album-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* Single-album buttons */
.album-single-page .album-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.album-single-page .album-btn svg {
  width: 18px;
  height: 18px;
}

.album-single-page .album-btn--red {
  background: #e6282b;
  color: #fff;
  box-shadow: 0 16px 30px rgba(230, 40, 43, .28);
}

.album-single-page .album-btn--ghost {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
}

.album-single-page .album-btn--lime {
  background: #b7f238;
  color: #0d1b3a;
  box-shadow: 0 16px 30px rgba(183, 242, 56, .3);
}

.album-single-page .album-btn--soft {
  background: #fff;
  color: #17215c;
  border: 1px solid rgba(23, 33, 92, .14);
  box-shadow: 0 12px 30px rgba(24, 35, 93, .08);
}

.album-single-page .album-btn:hover,
.album-single-page .album-btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

/* Hero cover */
.album-single-page .album-hero-media {
  position: relative;
}

.album-single-page .album-hero-cover {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .24);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .36);
}

.album-single-page .album-hero-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.album-single-page .album-hero-cover .albums-card-placeholder {
  position: static;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* ----------------------------------------------------------------------------
 * Hero decorative court card (desktop only — toggled in the @media above).
 * Tactical top-down court: a ball rallies along a serve arc, the trajectory
 * dashes drift, and the net centre mark breathes. Distinct from the blog
 * archive court (which only bobs its ball vertically).
 * -------------------------------------------------------------------------- */
.album-single-page .album-hero-visual {
  display: none; /* hidden on mobile; revealed on desktop */
}

/* Desktop reveal — kept after the base rule so it wins source order
   (media queries add no specificity). */
@media (min-width: 981px) {
  .album-single-page .album-hero-visual {
    display: block;
    min-width: 0;
    /* Fills its narrower column (~450px) — keeps the card compact while the
       copy gets the wider column, with no empty side-band between them. */
  }
}

.album-single-page .album-court-card {
  position: relative;
  border-radius: 24px;
  padding: 26px;
  background: linear-gradient(205deg, rgba(76, 201, 255, .14), rgba(8, 16, 50, .58));
  border: 1px solid rgba(120, 170, 255, .24);
  box-shadow: 0 30px 80px rgba(4, 10, 40, .52), inset 0 1px 0 rgba(255, 255, 255, .07);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

/* Desktop: trim padding proportionally (~0.75× of 26px). Kept after the base
   rule so it wins source order (media queries add no specificity). */
@media (min-width: 981px) {
  .album-single-page .album-court-card {
    padding: 20px;
  }
}

.album-single-page .album-court-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 80% 0%, rgba(183, 242, 56, .12), transparent 60%);
  pointer-events: none;
}

.album-single-page .album-court-card svg {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

.album-single-page .album-court-card__ball {
  animation: album-court-rally 6s ease-in-out infinite alternate;
}

.album-single-page .album-court-card__path {
  animation: album-court-dash 3.4s linear infinite;
}

.album-single-page .album-court-card__mark {
  transform-box: fill-box;
  transform-origin: center;
  animation: album-court-pulse 3.6s ease-in-out infinite;
}

@keyframes album-court-rally {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(62.9px, -59.45px); }
  50%  { transform: translate(131.9px, -81.875px); }
  75%  { transform: translate(196.2px, -69.6px); }
  100% { transform: translate(245px, -25px); }
}

@keyframes album-court-dash {
  to { stroke-dashoffset: -48; }
}

@keyframes album-court-pulse {
  0%, 100% { transform: scale(1); opacity: .55; }
  50%      { transform: scale(1.5); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .album-single-page .album-court-card__ball,
  .album-single-page .album-court-card__path,
  .album-single-page .album-court-card__mark {
    animation: none;
  }
}

/* Summary card (overlaps the hero) */
.album-single-page .album-summary-section {
  background: #f4f6fc;
}

.album-single-page .album-summary-card {
  position: relative;
  z-index: 5;
  margin-top: -46px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, .78fr)) minmax(0, 1.5fr);
  gap: 24px;
  align-items: center;
  padding: 26px 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(23, 33, 92, .1);
  box-shadow: 0 28px 80px rgba(24, 35, 93, .13);
}

.album-single-page .album-summary__item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.album-single-page .album-summary__icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #0d1b3a;
  color: #fff;
}

.album-single-page .album-summary__icon--blue {
  background: #1f6fd6;
}

.album-single-page .album-summary__icon--lime {
  background: #b7f238;
  color: #0d1b3a;
}

.album-single-page .album-summary__icon svg {
  width: 22px;
  height: 22px;
}

.album-single-page .album-summary__label {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(23, 33, 92, .5);
}

.album-single-page .album-summary__value {
  margin: 3px 0 0;
  font-size: 15px;
  font-weight: 800;
  color: #0d1b3a;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.album-single-page .album-summary__desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(23, 33, 92, .72);
  border-left: 1px solid rgba(23, 33, 92, .12);
  padding-left: 24px;
}

.album-single-page .album-summary__desc p {
  margin: 0 0 8px;
}

.album-single-page .album-summary__desc p:last-child {
  margin-bottom: 0;
}

/* Photos */
.album-single-page .album-photos {
  padding: clamp(40px, 5vw, 64px) 0 clamp(48px, 6vw, 80px);
}

.album-single-page .album-photos__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.album-single-page .album-photos__title {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -.02em;
  color: #0d1b3a;
  position: relative;
  padding-bottom: 8px;
}

.album-single-page .album-photos__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46px;
  height: 4px;
  border-radius: 2px;
  background: #b7f238;
}

.album-single-page .album-photos__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(23, 33, 92, .12);
  font-size: 13px;
  font-weight: 800;
  color: #17215c;
}

.album-single-page .album-photos__pill svg {
  width: 16px;
  height: 16px;
  color: #4cc9ff;
}

/* Bento photo grid */
.album-single-page .album-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 190px;
  grid-auto-flow: dense;
  gap: 14px;
}

.album-single-page .album-photo-item {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #0d1b3a;
  box-shadow: 0 18px 50px rgba(24, 35, 93, .1);
  transition: transform .2s ease, box-shadow .2s ease;
}

.album-single-page .album-photo-item:nth-child(1),
.album-single-page .album-photo-item:nth-child(4n + 6) {
  grid-column: span 2;
}

.album-single-page .album-photo-item:nth-child(7n + 3) {
  grid-row: span 2;
}

.album-single-page .album-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.album-single-page .album-photo-item:hover {
  box-shadow: 0 26px 60px rgba(24, 35, 93, .2);
}

.album-single-page .album-photo-item:hover img {
  transform: scale(1.045);
}

.album-single-page .album-photos__more {
  margin-top: 26px;
  text-align: center;
}

/* Desktop: hide the "show all photos" soft button (and its spacing) */
@media (min-width: 981px) {
  .album-single-page .album-photos__more {
    display: none;
  }
}

/* Empty */
.album-single-page .album-empty {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 22px;
  border: 1px dashed rgba(23, 33, 92, .18);
}

.album-single-page .album-empty h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
  color: #0d1b3a;
}

.album-single-page .album-empty p {
  margin: 0;
  color: rgba(23, 33, 92, .6);
}

/* CTA */
.album-single-page .album-cta-section {
  padding: 0 0 clamp(48px, 6vw, 80px);
}

.album-single-page .album-cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 16%, rgba(183, 242, 56, .14), transparent 38%),
    radial-gradient(circle at 8% 30%, rgba(76, 201, 255, .16), transparent 36%),
    linear-gradient(135deg, #0a1336 0%, #16235e 100%);
  border: 1px solid rgba(120, 170, 255, .22);
  box-shadow: 0 30px 80px rgba(10, 18, 54, .4);
}

.album-single-page .album-cta__title {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 900;
  letter-spacing: -.02em;
}

.album-single-page .album-cta__title span {
  color: #b7f238;
}

.album-single-page .album-cta__text {
  margin: 8px 0 0;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(226, 232, 255, .82);
}

/* Other albums */
.album-single-page .album-others-section {
  padding: 0 0 clamp(56px, 7vw, 96px);
}

.album-single-page .album-others__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.album-single-page .album-others__title {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
  letter-spacing: -.02em;
  color: #0d1b3a;
}

.album-single-page .album-others__all {
  font-size: 14px;
  font-weight: 800;
  color: #1f6fd6;
  text-decoration: none;
}

.album-single-page .album-others__all:hover {
  color: #0d1b3a;
}

.album-single-page .album-others__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.album-single-page .album-other-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(23, 33, 92, .08);
  box-shadow: 0 16px 40px rgba(24, 35, 93, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.album-single-page .album-other-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 56px rgba(24, 35, 93, .16);
}

.album-single-page .album-other-card__media {
  flex: none;
  width: 92px;
  height: 92px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.album-single-page .album-other-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.album-single-page .album-other-card__body {
  min-width: 0;
}

.album-single-page .album-other-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.album-single-page .album-other-card__title a {
  color: #0d1b3a;
  text-decoration: none;
}

.album-single-page .album-other-card__title a:hover {
  color: #1f6fd6;
}

.album-single-page .album-other-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(23, 33, 92, .58);
}

.album-single-page .album-other-card__meta svg {
  width: 15px;
  height: 15px;
  color: #4cc9ff;
}

.album-single-page .album-other-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  color: #17215c;
  background: #f4f6fc;
  border: 1px solid rgba(23, 33, 92, .12);
  transition: background .18s ease, border-color .18s ease;
}

.album-single-page .album-other-card__btn:hover {
  border-color: rgba(76, 201, 255, .5);
}

/* Lightbox */
.album-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 10, 36, .92);
  backdrop-filter: blur(4px);
}

.album-lightbox[hidden] {
  display: none;
}

.album-lightbox__img {
  max-width: min(92vw, 1200px);
  max-height: 86vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}

.album-lightbox__close,
.album-lightbox__nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  transition: background .18s ease;
}

.album-lightbox__close:hover,
.album-lightbox__nav:hover {
  background: rgba(255, 255, 255, .24);
}

.album-lightbox__close {
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
}

.album-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

.album-lightbox__nav--prev {
  left: 20px;
}

.album-lightbox__nav--next {
  right: 20px;
}

/* -------------------------------------------------------------------------
 * RESPONSIVE
 * ---------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .albums-page .albums-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .albums-page .albums-hero-grid {
    grid-template-columns: 1fr;
  }

  .albums-page .albums-hero-visual {
    order: -1;
    min-height: 260px;
    max-width: 480px;
  }

  .albums-page .albums-recommended {
    grid-template-columns: 1fr;
  }

  .albums-page .albums-recommended__body {
    padding: 4px 8px 12px;
  }

  .albums-page .albums-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .albums-page .albums-cta {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .albums-page .albums-cta__visual {
    margin-inline: auto;
  }

  .albums-page .albums-cta__actions {
    justify-content: center;
  }

  /* Single album */
  .album-single-page .album-hero-grid,
  .album-single-page .album-summary-card {
    grid-template-columns: 1fr;
  }

  .album-single-page .album-hero__court {
    display: none;
  }

  /* Mobile: drop the hero cover photo so the hero stays compact */
  .album-single-page .album-hero-media {
    display: none;
  }

  /* Mobile: drop the "show all photos" soft button (wrapper carries the
     spacing, so hiding it leaves no empty gap) */
  .album-single-page .album-photos__more {
    display: none;
  }

  .album-single-page .album-summary__desc {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid rgba(23, 33, 92, .12);
    padding-top: 18px;
  }

  .album-single-page .album-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .album-single-page .album-photo-item {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .album-single-page .album-cta {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .album-single-page .album-cta__text {
    margin-inline: auto;
  }

  .album-single-page .album-others__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .albums-page .albums-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .albums-page .albums-filters {
    margin-left: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .albums-page .albums-pill {
    white-space: nowrap;
  }

  .albums-page .albums-search {
    margin-left: 0;
  }

  .albums-page .albums-search input {
    width: 100%;
  }

  .albums-page .albums-grid {
    grid-template-columns: 1fr;
  }

  .album-single-page .album-photos__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .album-single-page .album-photo-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .album-single-page .album-photo-item {
    aspect-ratio: 16 / 11;
  }

  .album-single-page .album-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .album-single-page .album-other-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .album-single-page .album-other-card__media {
    width: 100%;
    height: 160px;
  }

  .album-single-page .album-other-card__meta {
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .albums-page .albums-collage__ball {
    width: 48px;
    height: 48px;
  }
}
