:root {
  --bg: #1a1205;
  --bg-alt: #271c0a;
  --red: #c1001f;
  --video-red: #d1001a;
  --text: #fff;
  --grey: #7d7d7d;
  --line: #6b6b6b;
  --font: "Syne", "Arial Black", Arial, sans-serif;
  --pad: clamp(16px, 5.6vw, 64px);
}

* { box-sizing: border-box; }

html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 800;
  text-transform: uppercase;
}

h1, h2 { font-weight: 800; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Header */
#title-section {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 20px;
  padding: 28px var(--pad);
}
#title-section h1 {
  margin: 0;
  color: var(--red);
  font-size: clamp(1.5rem, 3.6vw, 2.7rem);
  letter-spacing: 0.02em;
}
.links { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 32px); font-size: clamp(0.7rem, 1.9vw, 1.3rem); white-space: nowrap; }
.links-right { justify-content: flex-end; }
.links a { display: flex; align-items: center; }
.links img { display: block; height: clamp(38px, 4.6vw, 60px); width: auto; } /* logo size in the header */
/* Hero */
.hero {
  display: block;
  width: 100%;
  height: clamp(220px, 45vw, 640px);
  object-fit: cover;
  object-position: center 30%;
}

/* Sections */
section { padding: 0 var(--pad); }
h2 {
  margin: clamp(28px, 5vw, 56px) 0 clamp(24px, 4vw, 48px);
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
}

/* Albums */
.albums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4.5vw, 64px); align-items: start; padding-bottom: clamp(28px, 5vw, 56px); }
.album {
  all: unset;
  display: block;
  cursor: pointer;
  text-align: center;
  font-size: clamp(0.85rem, 2.4vw, 1.7rem);
}
.album img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 14px;
}
.album:hover img { filter: brightness(1.08); }

/* Singles */
section[aria-labelledby="singles-h"] {
  background: var(--bg-alt);
  display: flow-root;
  padding-bottom: clamp(24px, 4vw, 48px);
}
.singles { list-style: none; margin: 0; padding: 0; }
.single {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 20px;
  border-bottom: 5px solid var(--line);
  border-radius: 4px;
  font-size: clamp(0.95rem, 2.4vw, 1.7rem);
  font-weight: 700;
}
.single:last-child { border-bottom: 0; }
.listen-btn {
  flex: none;
  padding: 14px clamp(18px, 3vw, 38px);
  border: 0;
  background: var(--grey);
  color: #fff;
  font: 700 clamp(0.75rem, 1.6vw, 1rem) Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}
.listen-btn:hover { background: #959595; }

/* Videos */
.videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(16px, 2.4vw, 32px);
  padding-bottom: 80px;
}
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--video-red);
  overflow: hidden;
}
.video-play {
  all: unset;
  box-sizing: border-box;
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  padding: 12px;
  cursor: pointer;
  font-size: clamp(0.9rem, 2.2vw, 1.6rem);
  text-align: center;
}
.video-play svg { align-self: center; width: clamp(44px, 7vw, 84px); }
.video-fallback { display: inline-block; margin-top: 10px; font: 700 0.85rem Arial, Helvetica, sans-serif; text-transform: none; color: #cfc7b8; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Pop-up */
dialog {
  width: min(92vw, 420px);
  padding: 0;
  border: 3px solid var(--red);
  background: #231806;
  color: var(--text);
  font-family: var(--font);
}
dialog::backdrop { background: rgba(0, 0, 0, 0.75); }
.dialog-inner { position: relative; padding: 36px 28px 28px; text-align: center; }
.dialog-close {
  position: absolute; top: 6px; right: 10px;
  background: none; border: 0; color: #fff;
  font-size: 2rem; line-height: 1; cursor: pointer;
}
.dialog-kicker { margin: 0 0 6px; font-size: 0.8rem; color: #b9b0a0; text-transform: uppercase; }
dialog h3 { margin: 0 0 24px; font-size: 1.5rem; text-transform: uppercase; }
.platforms { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.platform {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  min-height: 64px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font: 700 1rem Arial, Helvetica, sans-serif;
  text-align: left;
  text-transform: none;
}
.platform:hover { background: rgba(255, 255, 255, 0.16); border-color: var(--red); text-decoration: none; }
.platform-logo { flex: none; width: 36px; height: 36px; object-fit: contain; }
.platform.no-logo .platform-logo { display: none; }
.platforms.logos-only { display: flex; flex-wrap: wrap; }
.platforms.logos-only li { flex: 1 1 calc(50% - 10px); }
.platforms.logos-only .platform { justify-content: center; min-height: 76px; padding: 14px 12px; }
.platforms.logos-only .platform-logo { width: auto; max-width: 100%; height: 40px; }
.platforms.logos-only .platform:not(.no-logo) .platform-label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.coming-soon { font: 400 1rem Arial, sans-serif; text-transform: none; color: #b9b0a0; }

.load-error { margin: 40px var(--pad); color: #ff8a8a; font: 400 1rem Arial, sans-serif; text-transform: none; }

@media (max-width: 600px) {
  #title-section { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 12px; padding: 18px var(--pad); }
  #title-section h1 { grid-row: 1; grid-column: 1 / -1; text-align: center; }
  .links-left { grid-row: 2; grid-column: 1; }
  .links-right { grid-row: 2; grid-column: 2; }
  .links { font-size: 0.68rem; white-space: normal; gap: 12px; }
  .links img { height: 42px; }
  .links-left { text-align: left; }
  .albums { gap: 14px; }
  .album span { display: block; overflow-wrap: anywhere; }
}

/* Demos page */
.demos { list-style: none; margin: 0; padding: 0 0 80px; }
.demo {
  display: grid;
  grid-template-columns: auto minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px 22px;
  padding: 22px 0 20px;
  border-bottom: 5px solid var(--line);
  border-radius: 4px;
}
.demo:last-child { border-bottom: 0; }
.demo-btn {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 0; background: var(--grey); color: #fff; cursor: pointer;
}
.demo-btn:hover { background: #959595; }
.demo.playing .demo-btn { background: var(--red); }
.demo-title { display: block; font-weight: 700; font-size: clamp(0.95rem, 2.4vw, 1.7rem); overflow-wrap: anywhere; }
.demo-note { display: block; margin-top: 4px; font: 400 0.9rem Arial, Helvetica, sans-serif; text-transform: none; color: #cfc7b8; }
.demo-bar { display: flex; align-items: center; gap: 14px; }
.demo-time { flex: none; min-width: 6.5em; text-align: right; font: 400 0.85rem Arial, Helvetica, sans-serif; text-transform: none; color: #cfc7b8; font-variant-numeric: tabular-nums; }
.demo-seek {
  flex: 1; min-width: 0; margin: 0; height: 6px;
  -webkit-appearance: none; appearance: none;
  border-radius: 3px; cursor: pointer;
  background: linear-gradient(to right, var(--red) var(--pct, 0%), #4a4a4a var(--pct, 0%));
}
.demo-seek:disabled { opacity: 0.5; cursor: default; }
.demo-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; }
.demo-seek::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; }
.demo-seek::-moz-range-track { background: transparent; }

@media (max-width: 700px) {
  .demo { grid-template-columns: auto minmax(0, 1fr); }
  .demo-bar { grid-column: 1 / -1; }
}
