.hal-album-page {
  --hal-gold: #d6ad74;
  --hal-gold-light: #f0d4a6;
  --hal-ink: #07090b;
  --hal-panel: #101419;
  --hal-panel-soft: #151a20;
  --hal-line: rgba(214, 173, 116, 0.2);
  --hal-text: #f5f1eb;
  --hal-muted: #aaa8a4;
  background: var(--hal-ink);
  color: var(--hal-text);
  min-height: 100vh;
}

.hal-album-page *,
.hal-album-page *::before,
.hal-album-page *::after {
  box-sizing: border-box;
}

.hal-album-shell {
  width: 100%;
  margin: 0 auto;
  padding-bottom: 72px;
}

.hal-album-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--hal-line);
}

.hal-album-backdrop,
.hal-album-shade {
  position: absolute;
  inset: 0;
}

.hal-album-backdrop {
  z-index: -3;
  background-position: center;
  background-size: cover;
  filter: blur(38px) saturate(0.78);
  transform: scale(1.12);
  opacity: 0.42;
}

.hal-album-shade {
  z-index: -2;
  background:
    radial-gradient(circle at 22% 35%, rgba(214, 173, 116, 0.13), transparent 38%),
    linear-gradient(90deg, rgba(5, 7, 9, 0.95) 0%, rgba(5, 7, 9, 0.7) 55%, rgba(5, 7, 9, 0.9) 100%),
    linear-gradient(0deg, #07090b 0%, transparent 44%);
}

.hal-album-hero-content,
.hal-album-main-grid,
.hal-related-albums {
  width: min(1380px, calc(100% - 64px));
  margin-inline: auto;
}

.hal-album-hero-content {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(42px, 6vw, 92px);
  padding: 72px 0 68px;
}

.hal-album-cover-wrap {
  position: relative;
  border: 1px solid rgba(240, 212, 166, 0.36);
  background: #0c0f12;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.58);
}

.hal-album-cover-wrap::after {
  content: "";
  position: absolute;
  inset: 14px -16px -16px 14px;
  z-index: -1;
  border: 1px solid rgba(214, 173, 116, 0.18);
}

.hal-album-cover {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.hal-album-intro {
  max-width: 760px;
}

.hal-album-kicker,
.hal-section-eyebrow {
  display: block;
  color: var(--hal-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hal-album-intro h1 {
  margin: 10px 0 22px;
  color: var(--hal-text);
  font-size: clamp(42px, 6.1vw, 90px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.hal-album-artist,
.hal-artist-card-head {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--hal-text);
  text-decoration: none;
}

.hal-album-artist:hover,
.hal-artist-card-head:hover {
  color: var(--hal-gold-light);
  text-decoration: none;
}

.hal-album-artist img {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(214, 173, 116, 0.42);
  border-radius: 50%;
  object-fit: cover;
}

.hal-album-artist span,
.hal-artist-card-head span {
  display: flex;
  flex-direction: column;
}

.hal-album-artist strong,
.hal-artist-card-head strong {
  color: inherit;
  font-size: 15px;
  font-weight: 700;
}

.hal-album-artist small,
.hal-artist-card-head small {
  margin-top: 2px;
  color: var(--hal-muted);
  font-size: 12px;
}

.hal-album-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 22px 0 18px;
  color: #d4d0ca;
  font-size: 13px;
  letter-spacing: 0.025em;
}

.hal-album-meta span {
  display: inline-flex;
  align-items: center;
}

.hal-album-meta span:not(:last-child)::after {
  content: "";
  width: 3px;
  height: 3px;
  margin: 0 11px;
  border-radius: 50%;
  background: var(--hal-gold);
}

.hal-album-description {
  max-width: 680px;
  color: #c4c0ba;
  font-size: 15px;
  line-height: 1.75;
}

.hal-album-description p:last-child {
  margin-bottom: 0;
}

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

.hal-btn {
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.hal-btn:hover {
  transform: translateY(-1px);
}

.hal-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--hal-gold-light), var(--hal-gold));
  color: #11100e;
}

.hal-btn-secondary,
.hal-btn-icon {
  background: rgba(8, 10, 12, 0.52) !important;
  border-color: rgba(240, 212, 166, 0.38) !important;
  color: var(--hal-gold-light) !important;
  box-shadow: none !important;
}

.hal-btn-secondary:hover,
.hal-btn-icon:hover {
  background: rgba(214, 173, 116, 0.12) !important;
  border-color: var(--hal-gold) !important;
}

.hal-play-symbol,
.hal-track-play span {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid currentColor;
}

.hal-album-owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
}

.hal-album-owner-actions a,
.hal-album-purchase,
.hal-album-purchase button {
  color: var(--hal-gold-light);
  font-size: 12px;
  text-decoration: none;
}

.hal-album-owner-actions a:last-child {
  color: #e78b83;
}

.hal-album-purchase {
  margin-top: 16px;
}

.hal-buy-link {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
}

.hal-album-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 350px);
  gap: 34px;
  padding-top: 58px;
}

.hal-album-track-panel,
.hal-album-artist-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(20, 25, 30, 0.94), rgba(10, 13, 16, 0.96));
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22);
}

.hal-album-track-panel {
  min-width: 0;
  padding: 30px;
}

.hal-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.hal-section-heading h2 {
  margin: 5px 0 0;
  color: var(--hal-text);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 750;
  line-height: 1.2;
}

.hal-section-heading > span {
  flex: 0 0 auto;
  color: var(--hal-muted);
  font-size: 12px;
}

.hal-track-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hal-track-list .no-songs-found {
  padding: 44px 20px;
  color: var(--hal-muted);
}

.hal-track-row {
  display: grid !important;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 68px;
  margin: 0 !important;
  padding: 8px 10px !important;
  border: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--hal-text);
  transition: background-color 150ms ease;
}

.hal-track-row:hover {
  background: rgba(214, 173, 116, 0.055) !important;
}

.hal-track-number {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #817f7b;
  font-size: 13px;
}

.hal-track-play {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(214, 173, 116, 0.42);
  border-radius: 50%;
  background: var(--hal-gold);
  color: #111;
  cursor: pointer;
}

.hal-track-play span {
  margin-left: 2px;
  border-top-width: 5px;
  border-bottom-width: 5px;
  border-left-width: 8px;
}

.hal-track-row:hover .hal-track-number > span {
  visibility: hidden;
}

.hal-track-row:hover .hal-track-play,
.hal-track-play:focus {
  display: grid;
}

.hal-track-title {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  color: var(--hal-text);
  text-align: left;
  cursor: pointer;
}

.hal-track-title strong,
.hal-track-title small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hal-track-title strong {
  font-size: 14px;
  font-weight: 650;
}

.hal-track-title small {
  margin-top: 4px;
  color: var(--hal-muted);
  font-size: 12px;
}

.hal-track-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-left: 16px;
}

.hal-track-duration {
  min-width: 38px;
  color: var(--hal-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.hal-track-sort {
  color: var(--hal-muted);
  cursor: grab;
  font-size: 18px;
}

.hal-track-favorite .fav-icon,
.hal-track-favorite svg {
  width: 19px !important;
  height: 19px !important;
}

.hal-track-menu {
  position: relative;
}

.hal-track-menu > button {
  padding: 5px 2px;
  border: 0;
  background: transparent;
  color: var(--hal-muted);
  font-size: 16px;
  letter-spacing: 1px;
  cursor: pointer;
}

.hal-track-menu .dropdown-menu {
  background: #171b20;
  border: 1px solid var(--hal-line);
}

.hal-track-menu .dropdown-menu a {
  color: #e7e2da;
}

.hal-album-artist-card {
  align-self: start;
  padding: 30px;
}

.hal-artist-card-head {
  display: flex;
  margin-top: 22px;
}

.hal-artist-card-head img {
  width: 70px;
  height: 70px;
  border: 1px solid rgba(214, 173, 116, 0.38);
  border-radius: 50%;
  object-fit: cover;
}

.hal-album-artist-card p {
  margin: 24px 0;
  color: #bcb8b1;
  font-size: 13px;
  line-height: 1.7;
}

.hal-artist-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.hal-artist-socials a {
  padding: 7px 10px;
  border: 1px solid rgba(214, 173, 116, 0.22);
  color: var(--hal-gold-light);
  font-size: 11px;
  text-decoration: none;
}

.hal-view-artist {
  display: inline-flex;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--hal-gold);
  color: var(--hal-gold-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.hal-view-artist:hover,
.hal-artist-socials a:hover {
  color: #fff;
  text-decoration: none;
}

.hal-related-albums {
  padding-top: 62px;
}

.hal-related-albums .sq_track_slider {
  margin-top: 4px;
}

.hal-related-albums .owl-prev,
.hal-related-albums .owl-next {
  color: var(--hal-gold-light) !important;
}

.hal-album-page button:focus-visible,
.hal-album-page a:focus-visible {
  outline: 2px solid var(--hal-gold-light);
  outline-offset: 3px;
}

@media (max-width: 1040px) {
  .hal-album-hero-content {
    grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
    gap: 44px;
  }

  .hal-album-main-grid {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
}

@media (max-width: 820px) {
  .hal-album-hero {
    min-height: 0;
  }

  .hal-album-hero-content,
  .hal-album-main-grid,
  .hal-related-albums {
    width: min(100% - 34px, 680px);
  }

  .hal-album-hero-content {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 40px 0 48px;
  }

  .hal-album-cover-wrap {
    width: min(100%, 390px);
    margin-inline: auto;
  }

  .hal-album-intro {
    max-width: none;
    text-align: center;
  }

  .hal-album-artist,
  .hal-album-actions,
  .hal-album-meta,
  .hal-album-owner-actions {
    justify-content: center;
  }

  .hal-album-description {
    margin-inline: auto;
  }

  .hal-album-main-grid {
    grid-template-columns: 1fr;
  }

  .hal-album-artist-card {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .hal-album-hero-content,
  .hal-album-main-grid,
  .hal-related-albums {
    width: min(100% - 24px, 520px);
  }

  .hal-album-intro h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .hal-album-actions .hal-btn {
    flex: 1 1 calc(50% - 8px);
    padding-inline: 15px;
  }

  .hal-album-actions .hal-btn-primary {
    flex-basis: 100%;
  }

  .hal-album-track-panel,
  .hal-album-artist-card {
    padding: 22px 16px;
  }

  .hal-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .hal-track-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    padding-inline: 2px !important;
  }

  .hal-track-actions {
    gap: 8px;
    padding-left: 5px;
  }

  .hal-track-favorite,
  .hal-track-sort {
    display: none;
  }

  .hal-track-duration {
    min-width: 32px;
  }

  .hal-track-play {
    display: grid;
    border-color: rgba(214, 173, 116, 0.32);
    background: transparent;
    color: var(--hal-gold);
  }

  .hal-track-number > span {
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hal-album-page *,
  .hal-album-page *::before,
  .hal-album-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
