:root {
  --bg: #0B0B0C;
  --ink: #F5F3F0;
  --ink-2: rgba(245, 243, 240, .66);
  --ink-3: rgba(245, 243, 240, .42);
  --line: rgba(255, 255, 255, .10);
  --glass: rgba(255, 255, 255, .09);
  --glass-hi: rgba(255, 255, 255, .16);
  --glass-line: rgba(255, 255, 255, .16);
  --ya: #FFDB4D;
  --accent: #54382b;
  --deep: #18100c;
  --display: "Unbounded", "Inter", sans-serif;
  --sans: "Inter", -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --top: calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px));
  --bottom: max(env(safe-area-inset-bottom), var(--tg-safe-area-inset-bottom, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body { margin: 0; background: transparent; color: var(--ink); }
body { font: 500 15px/1.45 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; overscroll-behavior-y: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* background: plain dark on the main tab; the album colour and its blurred cover on album and track pages */
#bg { position: fixed; inset: 0; z-index: -1; background: var(--bg); transition: background .5s ease; overflow: hidden; }
#bg.tinted { background: linear-gradient(180deg, var(--accent) 0, var(--accent) min(100vw, 78vh), var(--deep) calc(min(100vw, 78vh) + 45vh), #050505 100%); }
#bg.tinted #bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 60% at 50% 0%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .35) 100%); }
#bg.tinted::after { display: none; }

#cover { position: fixed; top: 0; left: 0; right: 0; z-index: 0; aspect-ratio: 1; max-height: 78vh; overflow: hidden; pointer-events: none;
  opacity: 0; transition: opacity .45s ease; }
#cover.on.ok { opacity: 1; }
#cover img { width: 100%; height: 100%; object-fit: cover; }
#cover::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, var(--dim, 0)); }
#cover .fadeout { position: absolute; left: 0; right: 0; bottom: -1px; height: 45%; z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), var(--accent) 100%); }
body.over-cover #view { position: relative; z-index: 1; }

#view { padding: calc(var(--top) + 8px) 0 calc(var(--bottom) + 28px); min-height: 100vh; }
.page { animation: in .35s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- home ---------- */
.home-head { padding: 18px 20px 6px; }
.home-head .kicker { font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.home-head h1 { font: 800 46px/0.95 var(--display); letter-spacing: -1px; margin: 8px 0 10px; }
.home-head p { margin: 0; color: var(--ink-2); font-size: 14px; }
.stats { display: flex; gap: 18px; margin-top: 16px; }
.stats div b { display: block; font: 700 20px var(--display); }
.stats div span { font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 1px; }

.latest { margin: 22px 16px 0; position: relative; border-radius: 26px; overflow: hidden; display: block; width: calc(100% - 32px);
  aspect-ratio: 1 / 1.08; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.latest img { width: 100%; height: 100%; object-fit: cover; }
.latest .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .7) 100%); }
.latest .cap { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; align-items: flex-end; gap: 12px; }
.latest .cap > div { flex: 1; }
.latest .tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; padding: 7px 11px; border-radius: 12px; margin-bottom: 10px; }
.latest h2 { font: 700 30px/1 var(--display); margin: 0; }
.latest .sub { color: var(--ink-2); font-size: 13px; margin-top: 6px; }
.play { width: 54px; height: 54px; border-radius: 50% !important; display: grid; place-items: center; flex: none; }
.play svg { width: 20px; height: 20px; margin-left: 2px; }

.tabs { display: flex; gap: 6px; margin: 26px 16px 18px; padding: 4px; border-radius: 18px !important; }
.tabs button { flex: 1; height: 40px; border-radius: 12px; text-align: center; font-weight: 600; color: var(--ink-2); transition: background .25s, color .25s; }
.tabs button.on { background: rgba(255, 255, 255, .16); color: var(--ink); box-shadow: inset 0 1px .5px rgba(255, 255, 255, .45), 0 2px 8px rgba(0, 0, 0, .2); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 14px; padding: 0 16px; }
.alb { display: block; min-width: 0; }
.alb .ph { aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #1a1a1a; box-shadow: 0 10px 28px rgba(0, 0, 0, .45); }
.alb .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.alb b { display: block; margin-top: 10px; font-weight: 700; font-size: 15px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alb span { font-size: 12.5px; color: var(--ink-3); }

.year-head { padding: 22px 20px 8px; font: 700 13px var(--display); color: var(--ink-3); letter-spacing: 1px; }
.year-head:first-child { padding-top: 0; }
.list { padding: 0 16px; }
.row { display: flex; align-items: center; gap: 13px; width: 100%; padding: 9px 0; }
.row img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; flex: none; background: #1a1a1a; }
.row .t { flex: 1; min-width: 0; }
.row .t b { display: block; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .t span { display: block; font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.ya-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ya); flex: none; }

img.fade { opacity: 0; transition: opacity .4s ease; }
img.fade.ok { opacity: 1; }

/* ---------- album ---------- */
.album-top { padding: 18px 20px 0; text-align: center; }
.spacer { height: min(calc(100vw - 150px), calc(78vh - 150px)); }
.album-top h1, .track-top h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.album-top h1 { font: 700 28px/1.05 var(--display); margin: 22px 0 6px; letter-spacing: -.3px; }
.album-top .meta { color: var(--ink-2); font-size: 13.5px; }
.actions { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.btn { height: 48px; border-radius: 24px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 700; font-size: 15px;
  transition: transform .15s ease; }
.btn:active { transform: scale(.96); }
.btn.ya { background: var(--ya); color: #1a1400; }
.btn.ya svg, .btn.glass svg { width: 17px; height: 17px; }
.btn.wide { width: 100%; }

/* Clear glass, like iOS: almost no frost, the cover shows through brighter and more saturated; a thin rim that
   catches the light on the upper-left and lower-right edges and small glints on the corners. */
.glass-card {
  position: relative; isolation: isolate; border-radius: 24px; border: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .17) 0%, rgba(255, 255, 255, .06) 34%, rgba(255, 255, 255, .025) 62%, rgba(255, 255, 255, .09) 100%);
  backdrop-filter: blur(3px) saturate(150%) brightness(1.03) contrast(1.02);
  -webkit-backdrop-filter: blur(3px) saturate(150%) brightness(1.03) contrast(1.02);
  box-shadow:
    inset 0 1.5px .5px rgba(255, 255, 255, .5),
    inset 0 -1px .5px rgba(255, 255, 255, .16),
    inset 1px 0 .5px rgba(255, 255, 255, .2),
    inset -1px 0 .5px rgba(255, 255, 255, .08),
    inset 0 0 22px rgba(255, 255, 255, .06),
    0 16px 40px rgba(0, 0, 0, .28),
    0 2px 6px rgba(0, 0, 0, .14);
}
.glass-card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; padding: 1.2px;
  background: linear-gradient(calc(135deg + var(--lx, 0) * 40deg), rgba(255, 255, 255, .8) 0%, rgba(255, 255, 255, .22) 14%, rgba(255, 255, 255, .04) 36%,
    rgba(255, 255, 255, .02) 64%, rgba(255, 255, 255, .2) 86%, rgba(255, 255, 255, .6) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.glass-card::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; mix-blend-mode: screen;
  background:
    radial-gradient(70px 9px at calc(18% + var(--lx, 0) * 26%) 0%, rgba(255, 255, 255, .58), rgba(255, 255, 255, 0) 70%),
    radial-gradient(9px 46px at 0% calc(24% + var(--ly, 0) * 22%), rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 70%),
    radial-gradient(60px 8px at calc(84% + var(--lx, 0) * 14%) 100%, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 70%),
    radial-gradient(8px 40px at 100% calc(78% + var(--ly, 0) * 18%), rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 70%); }
.glass-card:active { background: linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08) 40%, rgba(255, 255, 255, .12)); }
.tracks { margin: 26px 16px 0; padding: 6px 0; overflow: hidden; }
.tr { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 16px; transition: background .2s; position: relative; }
.tr + .tr::before { content: ""; position: absolute; top: 0; left: 50px; right: 16px; height: 1px; background: rgba(255, 255, 255, .12); }
.tr:active { background: rgba(255, 255, 255, .08); }
.tr .n { width: 20px; text-align: center; font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: 14px; font-weight: 600; flex: none; }
.tr .t { flex: 1; min-width: 0; }
.tr .t b { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.tr .t span { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.tr .d { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; flex: none; }
.about { margin: 14px 16px 0; padding: 18px; }
.about h3 { margin: 0 0 8px; font: 700 15px var(--display); letter-spacing: .2px; }
.about p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.about .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.about .facts div span { display: block; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 1px; }
.about .facts div b { font-weight: 600; font-size: 14px; }

/* ---------- track ---------- */
.track-top { padding: 26px 20px 0; text-align: center; }
.track-top h1 { font: 700 26px/1.1 var(--display); margin: 24px 0 6px; }
.track-top .meta { color: var(--ink-2); font-size: 14px; }
.track-top .from { display: inline-flex; align-items: center; justify-content: center; margin-top: 12px; padding: 9px 16px; border-radius: 16px; font-size: 13.5px; font-weight: 600; }
.listen { margin: 24px 16px 0; }
.no-link { text-align: center; color: var(--ink-3); font-size: 13px; margin-top: 10px; }
.nav2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 16px 0; }
.nav2 button { min-width: 0; min-height: 68px; padding: 12px 14px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 3px; border-radius: 20px; }
.nav2 button:only-child { grid-column: 1 / -1; }
.nav2 span { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 1px; }
.nav2 b { font-size: 14px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.foot { text-align: center; color: var(--ink-3); font-size: 11.5px; padding: 30px 30px 0; line-height: 1.5; }
.loading { min-height: 80vh; display: grid; place-items: center; font: 800 30px var(--display); letter-spacing: 2px; opacity: .6; animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .25; } }

@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, 1fr); } .latest { aspect-ratio: 16 / 10; } }

/* ---------- motion ---------- */
.fly { position: fixed; z-index: 50; object-fit: cover; transform-origin: 0 0; pointer-events: none; will-change: transform;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
#cover.hold { visibility: hidden; }
.rise { animation: rise .6s cubic-bezier(.2, .85, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms + 140ms); }
.tracks .tr { animation: rise .55s cubic-bezier(.2, .85, .2, 1) both; animation-delay: calc(var(--i, 0) * 32ms + 200ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.tr, .glass-card, .alb, .row, .latest { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), background .25s ease; }
.pressed { transform: scale(.97); transition: transform .12s ease-out, background .2s ease; }
.tr.pressed { transform: scale(.985); }
.alb .ph { position: relative; isolation: isolate; }
.alb .ph .row { position: relative; isolation: isolate; overflow: hidden; border-radius: 14px; }
.latest 
@media (prefers-reduced-motion: reduce) {
  .rise, .tracks .tr, .page { animation: none; }
  .pressed { transform: none; }
}
