/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/xn7gYHE41ni1AdIRggqxSvfedN62Zw.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/xn7gYHE41ni1AdIRggOxSvfedN62Zw.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/xn7gYHE41ni1AdIRggexSvfedN4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/xn7gYHE41ni1AdIRggqxSvfedN62Zw.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/xn7gYHE41ni1AdIRggOxSvfedN62Zw.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/xn7gYHE41ni1AdIRggexSvfedN4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/u-4e0qyriQwlOrhSvowK_l5UcA6zuSYEqOzpPe3HOZJ5eX1WtLaQwmYiSeqnJ-mXq1Gi3iE.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/u-4e0qyriQwlOrhSvowK_l5UcA6zuSYEqOzpPe3HOZJ5eX1WtLaQwmYiSequJ-mXq1Gi3iE.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/u-4e0qyriQwlOrhSvowK_l5UcA6zuSYEqOzpPe3HOZJ5eX1WtLaQwmYiSeqqJ-mXq1Gi.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/u-4e0qyriQwlOrhSvowK_l5UcA6zuSYEqOzpPe3HOZJ5eX1WtLaQwmYiSeqnJ-mXq1Gi3iE.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/u-4e0qyriQwlOrhSvowK_l5UcA6zuSYEqOzpPe3HOZJ5eX1WtLaQwmYiSequJ-mXq1Gi3iE.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/u-4e0qyriQwlOrhSvowK_l5UcA6zuSYEqOzpPe3HOZJ5eX1WtLaQwmYiSeqqJ-mXq1Gi.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Merriweather';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/u-4c0qyriQwlOrhSvowK_l5-eTxCVx0ZbwLvKH2Gk9hLmp0v5yA-xXPqCzLvF-adrHOg7iDTFw.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Merriweather';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/u-4c0qyriQwlOrhSvowK_l5-eTxCVx0ZbwLvKH2Gk9hLmp0v5yA-xXPqCzLvF--drHOg7iDTFw.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'Merriweather';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/u-4c0qyriQwlOrhSvowK_l5-eTxCVx0ZbwLvKH2Gk9hLmp0v5yA-xXPqCzLvF-udrHOg7iA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* Цвета и базовые настройки */
:root {
  --bg: #EEE7DE;
  --text: #1C1C1C;
  --accent: #C66A1B;       /* терракота */
  --accent-2: #6E4B3A;     /* тёплый коричневый */
  --muted: #6E4B3A1A;      /* прозрачный штрих/бордер */
  --container: 1200px;
  --radius: 10px;
  --gutter: 24px;
  --shadow: 0 6px 18px rgba(0,0,0,0.06);
  --measure: 66ch;         /* комфортная длина строки для чтения */
}

/* Сбросы/база */
* { box-sizing: border-box; }
html, body { min-height: 100%; min-width: 360px; }
html { scroll-behavior: smooth; font-synthesis: none; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  background-attachment: fixed;
}
@media (min-width: 1280px) {
  body { font-size: 19px; line-height: 1.65; }
}

/* Типографика */
h1, h2, h3, h4, h5 {
  font-family: "Merriweather", Georgia, "Times New Roman", serif;
  line-height: 1.25;
  margin: 0 0 0.6em 0;
  text-wrap: balance;
}
h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 700; }
h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 700; }
h3 { font-size: clamp(20px, 2.4vw, 24px); font-weight: 700; }
h4 { font-size: clamp(16px, 2.1vw, 22px); font-weight: 700; }
h5 { font-size: clamp(14px, 1.8vw, 19px); font-weight: 700; }

p { margin: 0 0 1em 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(var(--container), 100% - 2*var(--gutter));
  margin: 0 auto;
}

/* Доступность: видимые фокусы */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Хедер/навигация */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  /*background: color-mix(in oklab, var(--bg) 50%, white);*/
  background: #EEE7DECC;
  border-bottom: 1px solid var(--muted);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
}
.brand {
  font-size: 140%;
  font-family: "Merriweather", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.brand a {
  color: var(--text);
  text-decoration: none;
}
.nav { display: flex; gap: 20px; }
.nav a { padding: 8px 10px; border-radius: 6px; }
.nav a[aria-current="page"] { background: rgba(198,106,27,0.1); }

.nav-toggle {
  display: none;
  -webkit-tap-highlight-color: transparent;
  background: transparent;
  border: 1px solid var(--muted);
  color: var(--text);
  width: 44px; height: 44px;
  border-radius: 10px;
  align-items: center; justify-content: center;
}
.nav-toggle-box { display: inline-grid; gap: 5px; }
.nav-toggle-bar {
  display: block; width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease, width .2s ease;
}

/* Состояние «открыто»: превращаем три полоски в крестик */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Бэкдроп за меню */
.nav-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(1px);
  z-index: 8;
}

/* Мобильное поведение: показываем бургер, прячем навигацию в панель */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  .header-inner { gap: 10px; }

  .nav {
    position: fixed;
    left: 0; right: 0;
    top: var(--sticky-top, 56px);  /* высота шапки — подставляется из JS */
    z-index: 9;
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px var(--gutter) 16px;
    background: color-mix(in oklab, var(--bg) 96%, white);
    border-bottom: 1px solid var(--muted);
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    transform: translateY(-8px);
    opacity: 0;
    transition: transform .18s ease, opacity .18s ease;
  }
  .nav a { padding: 10px 10px; border-radius: 8px; }
  .nav a[aria-current="page"] { background: rgba(198,106,27,0.1); }

  /* Открытое состояние */
  .nav.is-open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
  }

  /* Когда меню открыто — фиксируем фон */
  body.nav-open { overflow: hidden; }
  body.nav-open #nav-backdrop[hidden] { display: block; }
}

/* Десктоп — как было */
@media (min-width: 861px) {
  .nav { display: flex; gap: 20px; }
}

.hero { position: relative; }

/* Высокий hero с фоновым фото и наложением */
.hero--photo {
  --hero-bg: linear-gradient(transparent, transparent);
  --overlay: linear-gradient(to bottom, rgba(20,14,10,0.60), rgba(20,14,10,0.60));

  background-image:
    var(--overlay),
    var(--hero-bg),
    radial-gradient(circle at 22% 30%, rgba(198,106,27,0.38), rgba(198,106,27,0) 80%),
    radial-gradient(circle at 82% 25%, rgba(110,75,58,0.34), rgba(110,75,58,0) 38%),
    radial-gradient(circle at 60% 78%, rgba(193,154,121,0.32), rgba(193,154,121,0) 42%),
    radial-gradient(circle at 34% 78%, rgba(209,166,138,0.30), rgba(209,166,138,0) 40%),
    linear-gradient(#EEE7DE, #EEE7DE);

  background-blend-mode:
    normal, normal,
    multiply, multiply, multiply, multiply, normal;

  background-size:
    cover,
    cover,
    100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  background-position:
    80% 35%,
    80% 35%,
    center, center, center, center, center;
  background-repeat: no-repeat;

  display: grid;
  align-content: center;
  justify-items: center;
  color: #fff;
  min-height: 640px;
}

@media (max-width: 1160px) {
  .hero--photo { min-height: 440px; }
}

@media (max-width: 400px) {
  .hero--photo { min-height: 480px; }
}

/* Модификатор: выравнивание текста слева и прижим к низу */
.hero--left {
  align-content: end;      /* прижимаем контент к нижнему краю hero */
  justify-items: start;    /* выравниваем по левому краю */
  text-align: left;
}

/* Внутренняя обёртка с контейнером и отступами */
.hero--photo .hero-inner {
  position: absolute;
  width: min(var(--container), 100% - 2*var(--gutter));
  top: auto;
  bottom: 60px;
  display: grid;
  gap: 12px;
}

.hero--photo h1 {
  max-width: 80%;
}

.hero--photo h1,
.hero--photo .hero-sub {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.hero--photo .hero-sub {
  margin-bottom: 0;
}

/* Крупнее заголовок на широких экранах */
@media (min-width: 1240px) {
  .hero--photo h1 { font-size: clamp(40px, 4.2vw, 64px); }
}

/* Опционально: ограничить длину подписи для читабельности */
.hero-lead { max-width: 60ch; }

/* Кнопка на тёмном фоне — чуть более выражённая тень */
.hero--photo .btn { box-shadow: 0 8px 24px rgba(0,0,0,0.2); }


/* Кнопки */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--accent), black 8%);
  box-shadow: var(--shadow);
  transition: transform .06s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: none;
}

/* Секции */
.section { padding: clamp(32px, 6vw, 72px) 0; }
.section--tight { padding: 24px 0; }
.section-header { margin-bottom: 12px; }

/* Сетка альбомов (карточки) */
.albums-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(1, 1fr);
  margin-bottom: 120px;
}
@media (min-width: 440px) { .albums-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { 
  .albums-grid { grid-template-columns: repeat(4, 1fr); } 
}

.card {
  border-radius: var(--radius);
  border: 1px solid var(--muted);
  background: color-mix(in oklab, var(--bg) 94%, white);
  overflow: hidden;
  transition: transform .12s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-cover {
  aspect-ratio: 1 / 1;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 28px,
      rgba(110,75,58,0.08) 29px,
      transparent 30px
    );
  display: block;
}
.card-body { padding: 12px; }
.card-title { font-weight: 700; margin: 0 0 4px 0; }
.card-year { color: #4a3b33; opacity: .8; }

.card a.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  outline: none;
}

.card-figure {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin: 0;
}

.card-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform .25s ease;
  border-radius: var(--radius);
}

.card-meta {
  padding: 12px 24px;
  display: grid; gap: 4px;
  margin-bottom: 12px;
}

.card-title { font-weight: 700; margin: 0; }
.card-year  { color: #4a3b33; opacity: .85; }

.card:hover .card-img { transform: scale(1.02); }

/* Фокус по a11y: наводим обводку на всю карточку */
.card a.card-link:focus-visible .card-figure {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* Вариант с заголовком поверх обложки (если захочешь включить) */
.card-caption {
  position: absolute; inset: auto 0 0 0;
  padding: 10px 12px;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}

/* Сетка уже есть (.albums-grid), при необходимости — плотнее на больших экранах */
@media (min-width: 1400px) {
  .albums-grid { gap: 18px; }
}

/* ===== ALBUM LAYOUT: обложка слева, плеер под обложкой, справа аннотация+треклист ===== */
.album-layout {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 960px) {
  .album-layout {
    align-items: stretch;
  }
}

/* Крупные экраны — остаётся, как у тебя */
@media (min-width: 760px) {
  .album-layout { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1260px) {
  .album-layout { grid-template-columns: 580px 1fr; }
}

.album-left { display: grid; gap: 14px; align-content: start; }
.album-left .album-cover {
  margin: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  border: 1px solid var(--muted);
  overflow: hidden;  
}
.album-left .album-cover > img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

.album-left .cd-lead { margin: 40px 0; }
.album-left .cd-lead .special-section {  
  font-size: 75%;
  font-style: italic;
  font-family: "Merriweather", Georgia, "Times New Roman", serif;
  font-face: ;
  column-count: 2;
  column-gap: 24px;
}

@media (max-width: 600px) {
  .album-left .cd-lead .special-section {
    font-size: 85%;
    column-count: 1;
  }
}

.album-right { display: grid; gap: 20px; align-content: start; }

/* ===== ПЛЕЕР: панель, иконки, «прилипание» ===== */
.player {
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--bg) 92%, white);
  padding: 12px 14px;
  display: grid;
  gap: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.player-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.player-label {
  font-family: "Merriweather", Georgia, serif;
  font-weight: 700; color: var(--accent-2);
}
.player-title { font-weight: 600; text-wrap: balance; }
.player-title[aria-live="polite"] { min-height: 1.4em; }

/* Основные кнопки */
.controls-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--muted);
  background: #fff0; color: var(--accent-2);
  transition: background .15s ease, transform .06s ease;
}
.icon-btn:hover { background: rgba(198,106,27,0.08); }
.icon-btn:active { transform: translateY(1px); }

.download-btn {
  padding: 10px 12px; border-radius: 10px; border: 1px solid var(--muted);
  color: var(--accent-2); background: #fff0; text-decoration: none;
}
.download-btn:hover { background: rgba(198,106,27,0.08); }

/* Прогресс-бар */
.seek { --seek-pct: 0%; flex: 1 1 420px; min-width: 240px; height: 28px; display: grid; align-items: center; }
.seek input[type="range"]{
  -webkit-appearance:none; appearance:none; width:100%; height:6px; margin:0; outline:none;
  background: linear-gradient(to right, var(--accent) var(--seek-pct), rgba(110,75,58,0.18) var(--seek-pct));
  border-radius: 999px;
}
.seek input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none; appearance:none; width:16px; height:16px; border-radius:50%;
  background: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent), black 8%);
  box-shadow:0 1px 2px rgba(0,0,0,.15);
}
.seek input[type="range"]::-moz-range-thumb{
  width:16px; height:16px; border-radius:50%;
  background: var(--accent);
  border:1px solid color-mix(in oklab, var(--accent), black 8%);
}
.time { font-variant-numeric: tabular-nums; color:#4a3b33; opacity:.95; display:inline-flex; gap:8px; align-items:center; }

/* Прилипание плеера под шапкой на больших экранах */
.player--dock-under-header { position: sticky; top: var(--sticky-top, 56px); z-index: 9; }


/* ===== ТРЕКЛИСТ: «человеческий» список без встроенных плееров ===== */
.tracklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: trk; }
.track {
  counter-increment: trk;
  background: #ffffff0c;
  padding: 0 0 3px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "num title actions";
  align-items: start; gap: 10px 14px;
  cursor: pointer;
  border-radius: 3px;
}
.divider {
  background: #ffffff0c;
  padding: 20px 0 3px 0;
  margin-left: 3ch;
}
.divider > * {
  margin: 40px 0 0;
}
.track:focus-within, .track:focus, .track:hover { background: color-mix(in oklab, var(--bg) 94%, white); }
.track.is-active { outline: 2px solid var(--accent); outline-offset: 2px; }

.track::before{
  grid-area: num;
  content: counter(trk) ".";
  font-family: "Merriweather", Georgia, serif; font-weight: 700;
  color: var(--accent-2);
  min-width: 2ch; text-align: right;
  margin-top: 2px;
}
.trk-title { grid-area: title; font-weight: 600; margin-top: 7px; line-height: 110%; }
.trk-title .title { display: block }
.trk-title .subtitle { display: block; font-size: 75%; color: var(--accent-2); font-style: italic; font-family: "Merriweather", Georgia, "Times New Roman", serif; }
.trk-meta  { color:#4a3b33; opacity:.9; font-variant-numeric: tabular-nums; }
.trk-actions { grid-area: actions; display: inline-flex; gap: 8px; align-items: center; padding: 2px 2px 0 0; }
.trk-actions a { padding: 2px 10px; color: var(--accent-2); text-decoration:none; }
.trk-actions a:hover { background: rgba(198,106,27,0.08); }

.trk-actions .icon-link {
  width: 36px; height: 36px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--muted);
  border-radius: 8px;
  color: var(--accent-2);
  background: transparent;
  padding: 0;                 /* перекрываем старые паддинги */
}
.trk-actions .icon-link:hover { background: rgba(198,106,27,0.08); }
.trk-actions .icon { width: 18px; height: 18px; display: block; }

/* Подзаголовок «Аннотация»/«Треки» справа */
.album-right h3 { margin-top: 0; }

/* Доступность для кликов по всей строке: делаем фокус видимым */
.track:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.track[tabindex="0"] { }

/* Скрываем системный аудио-элемент */
#hidden-audio { display: none; }


/* Футер */
.footer {
  border-top: 1px solid var(--muted);
  padding: 20px 0;
  color: #4a3b33;
  font-size: 0.95rem;
}
.footer a { color: var(--accent-2); }

/* --- БИОГРАФИЯ: акцент-вступление, таймлайн, заключение --- */

/* Акцент-вступление */
.bio-intro {
  padding: 14px 16px 0 0;
  background: color-mix(in oklab, var(--bg) 90%, #fff);
}

.bio-intro > p {
  max-width: 860px;
  margin-bottom: 0;
}

.bio-intro-wrap {
  display: grid;
  gap: 16px;                 /* мобайл: вертикальный отступ между фото и текстом */
  align-items: end;          /* вступление прижато к низу */
  margin-bottom: 22px;       /* как и было у .bio-intro */
}

/* Фото: мобайл — на всю ширину сверху */
.bio-intro-photo {
  margin: 0;
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 5;       /* единое соотношение */
  background:
    radial-gradient(circle at 22% 30%, rgba(230,149,82,.35), rgba(230,149,82,0) 44%),
    radial-gradient(circle at 82% 25%, rgba(150,104,79,.30), rgba(150,104,79,0) 40%),
    radial-gradient(circle at 60% 78%, rgba(214,174,142,.26), rgba(214,174,142,0) 46%),
    radial-gradient(circle at 34% 78%, rgba(209,166,138,.22), rgba(209,166,138,0) 42%),
    linear-gradient(#EEE7DE,#EEE7DE);
}
.bio-intro-photo img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 38%;
}

/* Таймлайн (годы слева, текст справа) */
.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.timeline-item {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  align-items: start;
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--bg) 94%, white);
  padding: 12px;
}
.timeline-year {
  font-family: "Merriweather", Georgia, serif;
  font-weight: 700;
  color: var(--accent-2);
}
.timeline-body p { margin: 0 0 0 12px; }

@media (min-width: 600px) {
  .bio-intro-wrap {
    grid-template-columns: auto 1fr;  /* слева фото (узкая колонка), справа текст */
    gap: 30px;                        /* требуемый отступ */
  }
  .bio-intro-photo {
    width: auto;            /* вычислится из высоты и aspect-ratio */
    height: 300px;          /* макс. высота по требованию */
    max-height: 330px;
    aspect-ratio: 4 / 5;    /* ширина ≈ 200px при h=300 */
  }
  .bio-intro { align-self: end; }     /* прижимаем сам блок к низу */
}

@media (min-width: 860px) {
  .timeline-item {
    grid-template-columns: 230px 1fr; /* колонка с годами + колонка с текстом */
    padding: 14px 16px;
  }
  .timeline-year { text-align: right; padding-right: 12px; }
}

@media (max-width: 859px) {
  .timeline-body p { margin: 0; }  
}

/* Заключение биографии */
.bio-outro {
  margin-top: 58px;
  padding-top: 12px;

  /* мультиколонки */
  column-count: 1;               /* мобайл/узкие — одна колонка */
  column-gap: 60px;
  column-fill: balance;
}

.bio-outro p {
  margin: 0 0 1em 0;
  widows: 2;                     /* чуть аккуратнее висячие строки */
  orphans: 2;
}

@media (min-width: 900px) {
  .bio-outro { column-count: 2; }
}

@media (min-width: 1100px) {
  .bio-outro { column-count: 2; }
}
@media (min-width: 1600px) {
  .bio-outro { column-gap: 48px; }
}

/* ===== Фуллскрин-диалог (текст песни) ===== */
.modal {
  position: fixed; inset: 0;
  display: none;
}
.modal.is-open { display: grid; place-items: center; z-index: 1000; }
body.modal-open { overflow: hidden; }

.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(5px);
}

.modal__box {
  position: relative;
  width: min(900px, 100% - 2*var(--gutter));
  max-height: calc(100vh - 2*var(--gutter) - env(safe-area-inset-bottom, 0px));
  background: color-mix(in oklab, var(--bg) 26%, white);
  border: 1px solid var(--muted);
  border-radius: 4px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.modal__header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 24px 10px 24px 40px;
}

.modal__titles {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.modal__title {
  margin: 0 36px 0 0;
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  color: color-mix(in oklab, var(--accent-2) 36%, black);
}

.modal__subtitle {
  margin: 0 36px 0 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: color-mix(in oklab, var(--accent-2) 26%, black);
  opacity: .95;
  font-style: italic;
  font-family: "Merriweather", Georgia, "Times New Roman", serif;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.modal__close {
  position: absolute;
  right: 24px;
  top: 24px;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--accent-2);
  padding: 0;
}
.modal__close .icon { width: 14px; height: 14px; }
.modal__close:hover { background: rgba(198,106,27,0.08); }
.modal__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.modal__content {
  padding: 0 40px 25px;
  overflow: auto;
  line-height: 1.7;
  max-width: none;
}

.modal__content h1, .modal__content h2, .modal__content h3, 
.modal__content h4, .modal__content h5 { margin: 2em 0 0.5em 0; }

.modal__content :nth-child(1) { margin-top: 0; }

.modal__content p { margin: 0 0 1em 0; }
.modal__content pre { white-space: pre-wrap; font: inherit; }

@media (max-width: 640px) {
  .modal__box {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
    border-left: 0; border-right: 0; border-bottom: 0;
  }

  .modal__header { padding: 16px 10px 12px 16px; }
  .modal__subtitle { font-size: 0.95rem; -webkit-line-clamp: 3; }

  .modal__content { padding: 16px 16px; }
  .modal__close {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }
  .modal__close .icon { width: 18px; height: 18px; }  
}

/* Утилиты */
.lead { font-size: clamp(18px, 2.2vw, 20px); }
.muted { color: #4a3b33; opacity: .9; }
.center { text-align: center; }

/* ===== ПЕЧАТЬ: минималистично, только сущность контента ===== */
@media print {
  @page { margin: 15mm; }                   /* поля страницы */

  /* Базовая типографика и фон */
  html, body { background: #fff !important; }
  body { color: #000 !important; font-size: 12pt; line-height: 1.5; }
  * { box-shadow: none !important; text-shadow: none !important; }

  /* Отключаем sticky/fixed/blur */
  .header, .nav-backdrop { position: static !important; filter: none !important; backdrop-filter: none !important; }
  .player, .player--dock-under-header { display: none !important; }  /* плеер в печать не идёт */

  /* Шапка/навигация/футер и служебные элементы — убрать */
  .header, .nav, .nav-toggle, .footer { display: none !important; }

  /* HERO: оставить заголовок, убрать фон и «высоту» */
  .hero--photo {
    background: none !important;
    min-height: auto !important;
  }
  .hero--photo .hero-inner {
    position: static !important;            /* было absolute — печатать как обычный поток */
    width: auto !important;
    margin: 0 0 12pt 0 !important;
  }
  .hero--photo .btn { display: none !important; }

  /* Секции — компактнее */
  .section { padding: 0 !important; }
  .section-header { margin: 0 0 8pt 0 !important; }

  .album-left .album-cover { max-width: 50%; }

  /* Карточки альбомов → текстовый список */
  .albums-grid { display: block !important; margin: 0 !important; }
  .card { border: 0 !important; background: transparent !important; margin: 0 0 12pt 0 !important; break-inside: avoid; }
  .card-figure, .card-cover, .card-img, .card-caption { display: none !important; }
  .card-meta, .card-body { padding: 0 !important; }
  .card-title { font-weight: 700 !important; font-size: 14pt !important; }
  .card-year { color: #333 !important; opacity: 1 !important; }

  /* Треклист: без иконок/кнопок — только номер, название, длительность */
  .tracklist { gap: 6pt !important; counter-reset: trk; }
  .track {
    background: transparent !important;
    padding: 0 !important;
    border: 0 !important;
    grid-template-columns: auto 1fr !important;
    grid-template-areas: "num title" !important;
    gap: 6pt 8pt !important;
    break-inside: avoid;
  }
  .divider { display: none !important; }
  .trk-actions, .icon-link, .icon-btn, .download-btn, .seek, .time { display: none !important; }
  .trk-title { margin: 0 !important; line-height: 1.35 !important; }
  input[type="range"] { display: none !important; }

  /* Биография: одна колонка для предсказуемых разрывов страниц */
  .bio-outro { column-count: 1 !important; column-gap: 0 !important; }
  .timeline-item { break-inside: avoid; }

  /* Ссылки: можно оставить как есть, без раскрытия URL */
  a { color: #000 !important; text-decoration: none !important; }

  /* Если модалка ОТКРЫТА — печатаем ТОЛЬКО её (оставляя настройки из этого блока) */
  body.modal-open > *:not(#lyrics-modal) { display: none !important; }
  #lyrics-modal {
    position: static !important; display: block !important; inset: auto !important; z-index: auto !important;
  }
  #lyrics-modal .modal__backdrop { display: none !important; }
  #lyrics-modal .modal__box {
    position: static !important; width: auto !important; height: auto !important; max-height: none !important;
    background: #fff !important; color: #000 !important; border: 0 !important; border-radius: 0 !important;
    box-shadow: none !important; overflow: visible !important; grid-template-rows: auto 1fr;
  }
  #lyrics-modal .modal__header { padding: 0 0 8pt 0 !important; border: 0 !important; }
  #lyrics-modal .modal__close { display: none !important; }
  #lyrics-modal .modal__title   { font-size: 18pt !important; line-height: 1.2 !important; margin: 0 0 4pt 0 !important; }
  #lyrics-modal .modal__subtitle{ font-size: 11pt !important; line-height: 1.35 !important; margin: 0 0 10pt 0 !important; color: #333 !important; }
  #lyrics-modal .modal__content { padding: 0 !important; overflow: visible !important; line-height: 1.55 !important; }
  #lyrics-modal .modal__content p { margin: 0 0 10pt 0 !important; }
  #lyrics-modal .modal__content pre { white-space: pre-wrap !important; font: 11pt/1.55 "Times New Roman", Georgia, serif !important; }
}
