:root {
  --bg: #07111f;
  --bg-soft: #0d1b2e;
  --card: rgba(17, 29, 49, 0.82);
  --line: rgba(173, 213, 255, 0.16);
  --text: #edf5ff;
  --muted: #a9bdd7;
  --accent: #87c5ff;
  --accent-2: #d2a9ff;
  --shadow: 0 24px 80px rgba(0,0,0,0.45);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(130, 177, 255, 0.20), transparent 30%),
    radial-gradient(circle at 85% 18%, rgba(214, 169, 255, 0.14), transparent 22%),
    linear-gradient(180deg, #050c16 0%, #08111d 35%, #091828 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  opacity: 0.35;
}

body::before {
  top: -12rem;
  left: -8rem;
  background: rgba(98, 167, 255, 0.18);
}

body::after {
  right: -10rem;
  bottom: -14rem;
  background: rgba(193, 136, 255, 0.14);
}

a { color: inherit; text-decoration: none; }

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.glass {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 16px 0;
  background: linear-gradient(180deg, rgba(4, 10, 18, 0.82), rgba(4, 10, 18, 0.35));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(135,197,255,0.28), rgba(210,169,255,0.22));
  border: 1px solid rgba(255,255,255,0.12);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 12px 30px rgba(125,180,255,0.16);
  font-size: 1rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.25s ease;
  border: 1px solid transparent;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  outline: none;
}

.hero {
  padding: 44px 0 26px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}

.hero-main,
.hero-photo {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

.hero-main {
  padding: 46px;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(7,17,31,0.20), rgba(7,17,31,0.96)),
    url('assets/images/hero-bg.jpg') center/cover no-repeat;
}

.hero-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 22%, rgba(145, 201, 255, 0.18), transparent 25%),
    linear-gradient(120deg, rgba(6,12,24,0.35), rgba(6,12,24,0.04) 60%, rgba(210,169,255,0.08));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #dcecff;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

h1, h2, h3 {
  margin-top: 0;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  line-height: 0.98;
}

.hero p, .section-head p, .album-desc, .artist-note p, .panel p, .instruction-box p, .instruction-box li {
  color: var(--muted);
}

.hero-actions, .album-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: 0.25s ease;
  border: 1px solid rgba(255,255,255,0.10);
  cursor: pointer;
}

.btn-primary {
  color: #07111f;
  background: linear-gradient(135deg, #c5e3ff, #d8c4ff);
  box-shadow: 0 16px 40px rgba(164, 196, 255, 0.18);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

.hero-photo {
  padding: 18px;
  min-height: 560px;
}

.hero-photo-card {
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(180deg, rgba(7,17,31,0.02), rgba(7,17,31,0.78)),
    url('assets/images/luis-fader-photo.jpg') center/cover no-repeat;
  border: 1px solid rgba(255,255,255,0.08);
}

.hero-photo-card::after {
  content: "ФОТО АВТОРА";
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  background: rgba(6, 14, 28, 0.72);
  border: 1px solid rgba(255,255,255,0.08);
  color: #d9e7f7;
}

.section { padding: 26px 0; }

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

.artist-note, .album-detail, .footer-box {
  padding: 26px;
  border-radius: 24px;
}

.albums-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.album-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
  padding: 22px;
  border-radius: 28px;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

.album-cover,
.album-cover-large {
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 44px rgba(0,0,0,0.32);
  background-color: rgba(255,255,255,0.04);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.album-cover {
  aspect-ratio: 1 / 1;
}

.album-cover-large {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 26px;
}

.album-cover::after,
.album-cover-large::after {
  content: "ЗАМЕНИТЕ ОБЛОЖКУ";
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(5,10,18,0.78);
  border: 1px solid rgba(255,255,255,0.08);
  color: #dbe8f8;
  letter-spacing: 0.05em;
}

.cover-pred { background-image: url('assets/covers/predchuvstvie.jpg'); }
.cover-med { background-image: url('assets/covers/medovye-melodii.jpg'); }

.album-tag, .stat, .back-link {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: #dfeeff;
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.9rem;
}

.album-title {
  font-size: clamp(1.5rem, 2vw, 2.4rem);
  line-height: 1.05;
}

.album-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.album-detail-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 26px;
  align-items: start;
}

.album-sidebar {
  display: grid;
  gap: 18px;
}

.panel, .track, .instruction-box {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.06);
}

.track-list {
  display: grid;
  gap: 14px;
}

.track-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}

.track-number {
  color: var(--accent);
  font-weight: 700;
  min-width: 2.6rem;
}

.track-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.track-meta {
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

audio {
  width: 100%;
  margin-top: 6px;
  border-radius: 12px;
}

.page-hero {
  padding: 40px 0 10px;
}

.page-hero-box {
  padding: 28px;
  border-radius: 28px;
}

.page-title {
  font-size: clamp(2.2rem, 4vw, 4rem);
  margin-bottom: 12px;
}

.footer {
  padding: 34px 0 46px;
  color: var(--muted);
}

code {
  background: rgba(255,255,255,0.06);
  padding: 3px 7px;
  border-radius: 8px;
}

.readme-box {
  white-space: pre-line;
}

@media (max-width: 1080px) {
  .hero-grid,
  .album-detail-grid,
  .album-card {
    grid-template-columns: 1fr;
  }

  .hero-main, .hero-photo {
    min-height: auto;
  }
}

@media (max-width: 820px) {
  .albums-grid { grid-template-columns: 1fr; }
  .topbar-inner { align-items: start; flex-direction: column; }
  .nav { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .wrap { width: min(var(--max), calc(100% - 18px)); }
  .hero-main, .artist-note, .album-card, .album-detail, .footer-box, .page-hero-box {
    padding: 20px;
    border-radius: 22px;
  }
  .track-top { flex-direction: column; }
  .track-meta { white-space: normal; }
}