@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  background: #090b10;
  color: #f3f4f8;
  --muted: #a4aabd;
  --line: #292e3a;
  --blue: #7faaff;
  --red: #ff534e;
}
* { box-sizing: border-box; }
html { scroll-padding: 20px 0 calc(115px + env(safe-area-inset-bottom)); }
body { margin: 0; padding-bottom: calc(106px + env(safe-area-inset-bottom)); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button, .download, .track-download, .dock-download { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
svg { width: 21px; height: 21px; flex: none; }
.masthead {
  min-height: 74px; padding: 14px max(5vw, 18px); display: flex; justify-content: space-between;
  align-items: center; gap: 18px; border-bottom: 1px solid #242734;
  background: linear-gradient(#151923, #0e1118);
}
.brand { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: .84rem; font-weight: 800; letter-spacing: .08em; }
.mark {
  display: grid; place-items: center; width: 35px; height: 35px; margin-right: 4px;
  border: 1px solid #565b6b; border-radius: 8px; color: #fff;
  background: linear-gradient(145deg, #353e50, #171a24 45%, #200e17);
  font: 800 1.55rem Barlow Condensed, sans-serif;
}
.brand-music { color: var(--blue); font-size: .7rem; }
nav { display: flex; gap: clamp(14px, 3vw, 36px); font-size: .82rem; font-weight: 600; color: #c0c6d5; }
nav a:hover { color: white; }
.shell { width: min(1200px, 100% - 2 * clamp(14px, 5vw, 60px)); margin: 28px auto 32px; }
.hero {
  position: relative; overflow: hidden; border: 1px solid #353749; border-radius: 24px;
  background: radial-gradient(ellipse at 100% 20%, #243d74 0%, transparent 56%),
    radial-gradient(ellipse at 0% 100%, #521924 0%, transparent 59%),
    linear-gradient(140deg, #141823, #0b0e17 60%, #151b31);
  box-shadow: 0 20px 65px #0006, inset 0 1px #c9d1ff1c;
}
.hero-inner {
  min-height: 440px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 38%);
  align-items: center; gap: clamp(16px, 5vw, 74px); padding: clamp(22px, 5vw, 68px);
}
.kicker { margin: 0 0 15px; display: flex; align-items: center; gap: 9px; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #d6dae5; }
.kicker span { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 14px var(--red); }
h1, h2 { font-family: Barlow Condensed, 'Arial Narrow', Inter, sans-serif; }
h1 {
  margin: 0; font-size: clamp(3.4rem, 8vw, 7rem); line-height: .88; font-weight: 800;
  text-transform: uppercase; letter-spacing: -.025em;
  background: linear-gradient(#fff 38%, #b6c2dd); background-clip: text; color: transparent;
}
.artist { margin: 17px 0 24px; font-size: .82rem; font-weight: 700; letter-spacing: .16em; color: #c6cbdb; }
.cover {
  display: grid; place-items: center; position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 7px;
  background: radial-gradient(ellipse at top right, #1c3464, transparent), linear-gradient(135deg, #232b40, #461a25);
}
.cover span { font: 800 1.15rem Barlow Condensed, sans-serif; color: #dae2f6; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-cover { width: 100%; border-radius: 15px; border: 1px solid #8998bd6b; box-shadow: 0 24px 55px #000a, 0 0 52px #446bc843; }
.hero-cover span { font-size: 7rem; }
.hero-actions, .hero-transport, .dock-transport, .dock-timeline { display: flex; align-items: center; gap: 10px; }
.hero-actions { margin-bottom: 18px; flex-wrap: wrap; }
.primary, .download {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; gap: 7px; padding: 0 15px;
  border-radius: 8px; font-size: .83rem; font-weight: 700; border: 1px solid #9d5c65;
}
.primary { background: linear-gradient(#fd625d, #ce262e); color: #100607; min-width: 97px; }
.primary:hover { background: #ff807a; }
.download { background: #16121edb; border-color: #756070; }
.download:hover { background: #312733; }
.hero-transport button, .dock-transport button, .dock-download, .track-download {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 9px;
  background: #151822; border: 1px solid #444756;
}
.hero-transport button:hover, .dock-transport button:hover, .dock-download:hover, .track-download:hover { background: #2c354c; }
.clock { font-size: .72rem; min-width: 33px; text-align: center; color: #c1c7d7; font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; min-width: 0; margin: 0; accent-color: var(--blue); cursor: pointer; }
input[type=range]:disabled { opacity: .45; cursor: default; }
#playback-status { color: #ffc3bf; margin: 0; font-size: .8rem; }
#playback-status:not(:empty) { margin-top: 12px; }
#library { margin-top: 36px; }
.library-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
h2 { margin: 0; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filters button {
  min-height: 40px; border: 1px solid var(--line); background: #12151e; color: #bfc6d9;
  border-radius: 999px; padding: 0 13px; font-size: .76rem; font-weight: 700;
}
.filters button:hover, .filters button[aria-pressed=true] { background: #1e2b46; color: #e2edff; border-color: #526892; }
.tracks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.tracks li { display: flex; align-items: center; gap: 8px; padding: 7px; background: #11141c; border: 1px solid var(--line); border-radius: 11px; min-width: 0; }
.tracks li.active { border-color: #607aa8; background: linear-gradient(95deg, #1c2941, #121621); }
.track-select {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 11px; flex: 1;
  padding: 0 5px 0 0; border: 0; border-radius: 7px; background: transparent; text-align: left; min-width: 0;
}
.track-name { font-size: .88rem; font-weight: 700; overflow-wrap: anywhere; }
.track-action { display: grid; color: #c2d4fc; }
.track-select:hover .track-action { color: white; }
.dock {
  position: fixed; inset: auto 0 0; z-index: 3; padding: 11px max(14px, 5vw) calc(11px + env(safe-area-inset-bottom));
  border-top: 1px solid #454c60; background: #10141eef; backdrop-filter: blur(18px); box-shadow: 0 -10px 36px #0006;
}
.dock-inner { width: min(1200px, 100%); margin: auto; display: grid; grid-template-columns: minmax(120px, 1fr) auto minmax(130px, 1.1fr) auto; align-items: center; gap: clamp(12px, 3vw, 36px); }
.now-playing { display: grid; grid-template-columns: 49px minmax(0, 1fr); align-items: center; gap: 10px; }
.now-playing strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .83rem; }
.now-playing > div:last-child > span { display: block; margin-top: 4px; font-size: .68rem; color: var(--muted); }
.dock-transport .dock-play { background: #e8edff; color: #121520; border-color: #c7d3f3; }
.dock-transport .dock-play:hover { background: #c6d8fc; }
@media (max-width: 700px) {
  body { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
  .brand-music { display: none; }
  .masthead { min-height: 62px; }
  .shell { margin-top: 15px; }
  .hero-inner { min-height: 0; grid-template-columns: 1fr; gap: 20px; }
  .hero-cover { grid-row: 1; width: min(100%, 320px); justify-self: center; }
  .hero-copy { min-width: 0; }
  h1 { font-size: clamp(3.3rem, 10vw, 5rem); }
  .tracks { grid-template-columns: 1fr; }
  .dock-inner { grid-template-columns: minmax(0, 1fr) auto auto; gap: 5px 7px; }
  .dock-timeline { grid-column: 1 / -1; grid-row: 2; }
  .dock-transport { gap: 4px; }
  .now-playing { grid-template-columns: 36px minmax(0, 1fr); gap: 6px; }
  .now-playing strong { font-size: .74rem; }
  .now-playing > div:last-child > span { font-size: .62rem; }
}
@media (max-width: 360px) {
  .dock-cover { display: none; }
  .now-playing { grid-template-columns: minmax(0, 1fr); }
  .brand { gap: 4px; }
}
