/* Album detail page — page-specific styles only.
   Resets, tokens, page padding handled by design-system.css */

.album-page {
  min-height: 100vh;
  position: relative;
}

.album-shell {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.album-main {
  min-height: 862px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.album-hero {
  height: 400px;
  display: grid;
  grid-template-columns: 400px 623px 211px;
  gap: 12px;
  align-items: center;
}

.album-cover {
  width: 400px;
  height: 400px;
  margin: 0;
  border: 1px solid #c7aaa5;
  border-radius: 16px;
  overflow: hidden;
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-info {
  width: 623px;
  height: 400px;
  padding: 24px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.album-info-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.album-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.album-meta span {
  color: rgba(29, 29, 29, 0.5);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.32px;
}

.album-meta-dot {
  width: 6px;
  height: 6px;
}

.album-title {
  margin: 0;
  color: var(--nm-color-text);
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.28px;
}

.album-artist {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.album-artist img {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  object-fit: cover;
}

.album-artist span {
  color: var(--nm-color-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.32px;
}

.album-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.album-action-form {
  display: inline-flex;
  margin: 0;
}

.album-btn {
  height: 44px;
  border-radius: 999px;
  padding: 14px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.album-btn img {
  width: 16px;
  height: 16px;
}

.album-btn span {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.28px;
}

.album-btn-start {
  color: #fff;
  background: rgba(204, 153, 70, 0.75);
  backdrop-filter: blur(22px);
}

.album-btn-start span {
  font-size: 16px;
  letter-spacing: -0.32px;
}

.album-btn-like {
  color: #fff;
  background: rgba(231, 14, 66, 0.75);
  backdrop-filter: blur(22px);
}

.album-btn-like.is-liked {
  background: rgba(231, 14, 66, 0.95);
  box-shadow: 0 18px 36px rgba(231, 14, 66, 0.25);
}

.album-btn-outline,
.album-btn-read {
  color: var(--nm-color-text);
  border: 1px solid rgba(29, 29, 29, 0.25);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(22px);
}

.album-btn.is-busy {
  opacity: 0.72;
  pointer-events: none;
}

.album-btn.is-success {
  border-color: rgba(204, 153, 70, 0.72);
  background: rgba(204, 153, 70, 0.18);
}

.album-lyrics {
  width: 211px;
  height: 383px;
  margin-top: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.album-lyrics-label {
  margin: 0;
  color: rgba(29, 29, 29, 0.5);
  font-size: 12px;
  font-weight: 400;
  line-height: 15px;
  letter-spacing: -0.24px;
}

.album-lyrics-window {
  width: 211px;
  height: 360px;
  position: relative;
  overflow: hidden;
}

.album-lyrics-window p {
  margin: 0;
  color: var(--nm-color-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.32px;
  white-space: pre-line;
}

.album-lyrics-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 100%);
}

.album-btn-read {
  width: 141px;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}

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

.album-lyrics-overlay {
  position: absolute;
  inset: 100px 0 0;
  z-index: 60;
}

.album-lyrics-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(22px);
}

.album-lyrics-overlay__sheet {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(810px, calc(100vw - 140px));
  height: calc(100vh - 131px);
  min-height: 560px;
  transform: translateX(-50%);
  background: #fff;
  overflow: hidden;
}

.album-lyrics-overlay__copy {
  position: relative;
  height: 100%;
  padding: 56px;
  overflow: hidden;
}

.album-lyrics-overlay__line {
  margin: 0;
  color: #999;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.8px;
}

.album-lyrics-overlay__line.is-heading {
  color: #999;
}

.album-lyrics-overlay__line.is-active {
  color: #1d1d1d;
}

.album-lyrics-overlay__spacer {
  height: 60px;
}

.album-lyrics-overlay__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 360px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 100%);
}

.album-lyrics-overlay__close {
  position: absolute;
  top: 32px;
  left: calc(50% + 265px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 108px;
  min-height: 44px;
  padding: 14px 24px;
  border: 1px solid rgba(29, 29, 29, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(22px);
  color: #1d1d1d;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.28px;
}

.album-lyrics-overlay__close img {
  width: 16px;
  height: 16px;
}

body.album-lyrics-open {
  overflow: hidden;
}

.album-tracks {
  position: relative;
  height: 450px;
  border: 1px solid #fff;
  border-radius: 16px;
  overflow: hidden;
  padding: 1px;
}

.album-tracks-glow {
  position: absolute;
  left: 320px;
  top: -272px;
  width: 304px;
  height: 304px;
  border-radius: 16px;
  filter: blur(67.5px);
}

.album-tracks-inner {
  width: 100%;
  height: 448px;
  border-radius: 15px;
  overflow: hidden;
  background: linear-gradient(167.442deg, rgba(255, 255, 255, 0.81) 4.053%, #fdfdfd 79.497%);
}

.album-tracks-head {
  padding: 24px 24px 12px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-bottom: 1px solid rgba(29, 29, 29, 0.05);
}

.album-tracks-head h2 {
  margin: 0;
  color: rgba(29, 29, 29, 0.7);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.album-cols-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.album-cols-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}

.album-cols {
  display: grid;
  grid-template-columns: 32px 320px 110px 96px 48px 48px;
  gap: 12px;
}

.album-cols span {
  color: rgba(29, 29, 29, 0.7);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.32px;
}

.album-track-row {
  position: relative;
  display: grid;
  grid-template-columns: 32px 320px 110px 1fr 48px 48px;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 8px 12px 8px 24px;
  border-bottom: 1px solid rgba(29, 29, 29, 0.05);
}

.album-track-row > * {
  position: relative;
  z-index: 2;
}

.album-track-num {
  color: var(--nm-color-text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.4px;
}

.album-track-song {
  width: 320px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.album-track-song img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.album-track-song span,
.album-track-song a {
  color: var(--nm-color-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

a.album-track-song-strong,
span.album-track-song-strong {
  font-weight: 700;
}

.album-track-artist {
  color: rgba(29, 29, 29, 0.7);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
}

.album-track-plays {
  color: rgba(29, 29, 29, 0.5);
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
}

.album-row-btn {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(29, 29, 29, 0.06);
  display: grid;
  place-items: center;
}

.album-row-btn img {
  width: 16px;
  height: 16px;
}

.album-settings-ico {
  width: 20px;
  height: 20px;
}

.album-row-btn.is-dim {
  background: rgba(29, 29, 29, 0.1);
}

.album-track-row.is-active {
  border-bottom-color: var(--nm-color-gold);
  overflow: hidden;
}

.album-active-shade {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 376px;
  height: 36.5px;
  background: url('assets/figma/albomlar-40-2011/active-row-shade.svg') no-repeat center/100% 100%;
  z-index: 0;
}

.album-active-line-strong {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 774px;
  height: 2px;
  background: var(--nm-color-gold);
  z-index: 1;
}

.album-active-line-soft {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 370px;
  height: 2px;
  background: linear-gradient(270deg, #cc9946 0%, #9a6714 100%);
  z-index: 2;
}

.album-active-line-vector {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 376px;
  height: 2px;
  background: url('assets/figma/albomlar-40-2011/active-row-line.svg') no-repeat center/100% 100%;
  z-index: 3;
}

.album-track-row.is-active .album-row-btn.is-playing {
  background: var(--nm-color-gold);
}

.album-track-row.is-active .album-row-btn.is-playing img {
  width: 24px;
  height: 24px;
}

/* ---- Responsive ---- */
@media (max-width: 1240px) {
  .album-main {
    min-height: 0;
  }

  .album-hero {
    height: auto;
    grid-template-columns: 360px minmax(0, 1fr);
  }

  .album-cover {
    width: 360px;
    height: 360px;
  }

  .album-info {
    width: 100%;
    min-height: 360px;
    padding: 16px 24px;
  }

  .album-title {
    font-size: 52px;
  }

  .album-lyrics {
    grid-column: 1 / -1;
    width: 100%;
    height: auto;
    margin-top: 0;
  }

  .album-lyrics-window {
    width: 100%;
    height: 200px;
  }

  .album-btn-read {
    position: static;
    transform: none;
    margin-top: 4px;
  }

  .album-tracks {
    height: auto;
  }

  .album-tracks-inner {
    height: auto;
  }
}

@media (max-width: 1024px) {
  .album-hero {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .album-cover {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .album-info {
    min-height: 0;
    padding: 4px 0;
  }

  .album-title {
    font-size: 48px;
  }

  .album-actions {
    flex-wrap: wrap;
  }

  .album-lyrics {
    display: flex;
    width: 100%;
    height: auto;
    margin-top: 0;
  }

  .album-lyrics-window {
    width: 100%;
    height: 200px;
  }

  .album-btn-read {
    position: static;
    transform: none;
    margin-top: 4px;
  }

  .album-tracks {
    padding: 0;
    overflow-x: auto;
  }

  .album-tracks-inner {
    min-width: 980px;
  }
}

@media (max-width: 768px) {
  .album-title {
    font-size: 40px;
  }

  .album-meta {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .album-actions {
    gap: 8px;
  }

  .album-btn {
    padding: 12px 18px;
  }

  .album-lyrics-overlay {
    inset: 90px 0 0;
  }

  .album-lyrics-overlay__sheet {
    width: calc(100vw - 40px);
    height: calc(100vh - 110px);
  }

  .album-lyrics-overlay__copy {
    padding: 32px 28px;
  }

  .album-lyrics-overlay__line {
    font-size: 28px;
    letter-spacing: -0.56px;
  }

  .album-lyrics-overlay__spacer {
    height: 34px;
  }

  .album-lyrics-overlay__close {
    top: 18px;
    left: auto;
    right: 18px;
  }

  .album-tracks-head {
    padding: 20px 16px 10px;
  }

  .album-track-row {
    padding-left: 16px;
    padding-right: 8px;
  }
}

@media (max-width: 560px) {
  .album-title {
    font-size: 34px;
  }

  .album-lyrics-overlay {
    inset: 82px 0 0;
  }

  .album-lyrics-overlay__sheet {
    width: calc(100vw - 20px);
    height: calc(100vh - 102px);
  }

  .album-lyrics-overlay__copy {
    padding: 22px 18px;
  }

  .album-lyrics-overlay__line {
    font-size: 22px;
    letter-spacing: -0.44px;
  }

  .album-lyrics-overlay__spacer {
    height: 24px;
  }

  .album-lyrics-overlay__close {
    top: 12px;
    right: 12px;
    min-width: 96px;
    padding: 12px 18px;
  }

  .album-tracks-inner {
    min-width: 860px;
  }
}
