@font-face {
  font-family: "Cormorant";
  src: url("/static/fonts/CormorantGaramond[wght].ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PT Serif";
  src: url("/static/fonts/PT_Serif-Web-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PT Serif";
  src: url("/static/fonts/PT_Serif-Web-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PT Sans";
  src: url("/static/fonts/PT_Sans-Web-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PT Sans";
  src: url("/static/fonts/PT_Sans-Web-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #5a6e8c;
  --bg: #08080b;
  --fg: #f6f2ea;
  --muted: #b8b2a7;
  --panel: rgba(10, 10, 14, 0.72);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "PT Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--fg); }

.bg-cover {
  position: fixed;
  inset: -50px;
  background-size: cover;
  background-position: center;
  filter: blur(46px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.55;
  z-index: -2;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 11, 0.4), rgba(8, 8, 11, 0.88));
  z-index: -1;
  pointer-events: none;
}

body.style-editorial {
  --bg: #f3eee4;
  --fg: #1c1a18;
  --muted: #6f685e;
  --panel: rgba(255, 255, 255, 0.62);
  --border: rgba(28, 26, 24, 0.14);
  --shadow: 0 30px 80px rgba(60, 48, 32, 0.16);
  background: var(--bg);
  color: var(--fg);
}
body.style-editorial::after {
  background: linear-gradient(180deg, rgba(243, 238, 228, 0.5), rgba(243, 238, 228, 0.9));
}
body.style-editorial .bg-cover { opacity: 0.14; filter: blur(42px) saturate(0.8); }

body.style-gradient {
  background: var(--accent);
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--accent) 78%, white), transparent 58%),
    linear-gradient(160deg, var(--accent), #08080b 72%);
}
body.style-gradient::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.32));
}
body.style-gradient .bg-cover { opacity: 0.22; }

.track-card {
  width: min(760px, calc(100% - 32px));
  margin: 48px auto;
  padding: 34px;
  border-radius: 30px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.1);
}
.track-head { display: flex; gap: 24px; align-items: flex-start; }
.cover { flex: none; }
.cover img {
  width: 184px;
  height: 184px;
  border-radius: 20px;
  object-fit: cover;
  display: block;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}
.head-text { flex: 1; min-width: 0; }
.brand {
  font-family: "PT Sans", sans-serif;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--fg);
  text-decoration: none;
}
.artist {
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.title {
  margin: 8px 0 0;
  font-family: "Cormorant", serif;
  font-weight: 600;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.style-editorial .title {
  font-family: "PT Serif", serif;
  font-weight: 700;
  font-size: clamp(32px, 5.4vw, 50px);
  line-height: 1.08;
}
.style-gradient .title {
  font-family: "PT Sans", sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.06;
}
.album { margin-top: 10px; font-size: 14px; color: var(--muted); }

.excerpt {
  margin: 34px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  font-family: "Cormorant", serif;
  font-weight: 500;
  font-size: clamp(24px, 3.6vw, 32px);
  line-height: 1.38;
  white-space: pre-line;
  overflow-wrap: anywhere;
  color: var(--fg);
}
.style-editorial .excerpt {
  font-family: "PT Serif", serif;
  font-size: clamp(21px, 3.2vw, 28px);
  line-height: 1.5;
}

.links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.platform {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--fg);
  text-decoration: none;
  font-size: 15px;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.platform:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.2);
}
.style-editorial .platform {
  background: rgba(28, 26, 24, 0.05);
  border-color: rgba(28, 26, 24, 0.13);
}
.style-editorial .platform:hover { background: rgba(28, 26, 24, 0.09); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.platform-yandex .dot { background: #ffcc00; }
.platform-apple .dot { background: #f5f5f7; }
.platform-deezer .dot { background: #a238ff; }
.platform-youtube .dot { background: #ff0033; }
.platform-spotify .dot { background: #1db954; }
.platform-vk .dot { background: #0077ff; }
.platform-custom .dot { background: var(--accent); }
.label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kind {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 7px;
}
.arrow { margin-left: auto; opacity: 0.55; font-size: 14px; }
.kind + .arrow { margin-left: 8px; }

.track-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.foot-left { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.foot-left a { color: var(--muted); text-decoration: none; }
.foot-left a:hover { color: var(--fg); }
.copy {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.copy:hover { color: var(--fg); border-color: var(--fg); }

.archive-page {
  padding: 48px 24px 80px;
  background:
    radial-gradient(circle at 50% -20%, #1a1a24, #08080b 62%);
  min-height: 100vh;
}
.archive-head { max-width: 1100px; margin: 0 auto 36px; }
.archive-page .brand { font-size: 13px; color: var(--fg); text-decoration: none; }
.tagline {
  margin: 10px 0 0;
  font-family: "Cormorant", serif;
  font-weight: 600;
  font-size: clamp(44px, 8vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.archive-sub { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.archive-sub a { color: var(--muted); }
.archive-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.archive-card {
  text-decoration: none;
  color: var(--fg);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: transform 0.2s ease, background 0.2s ease;
}
.archive-card:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.09); }
.archive-cover { aspect-ratio: 1 / 1; background-size: cover; background-position: center; }
.archive-body { padding: 14px 16px 16px; }
.archive-artist { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.archive-title { font-family: "Cormorant", serif; font-size: 24px; line-height: 1.1; margin-top: 4px; }
.archive-date { font-size: 11px; color: var(--muted); margin-top: 8px; }
.empty { max-width: 640px; margin: 120px auto; text-align: center; color: var(--muted); }
.empty .brand { display: block; margin-bottom: 20px; color: var(--fg); }
.empty a { color: var(--fg); }

@media (max-width: 680px) {
  .track-card {
    width: calc(100% - 20px);
    margin: 16px auto;
    padding: 22px;
    border-radius: 24px;
  }
  .track-head { gap: 16px; }
  .cover img { width: 104px; height: 104px; border-radius: 14px; }
  .artist { margin-top: 10px; font-size: 11px; }
  .title { font-size: 34px; }
  .excerpt { font-size: 22px; padding-left: 16px; margin: 26px 0; }
  .links { grid-template-columns: 1fr; }
  .track-foot { flex-direction: column; align-items: flex-start; }
  .archive-page { padding: 28px 16px 60px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
