:root {
  --accent: #E8347A;
  --accent-2: #F5E040;
  --accent-3: #1FB7A4;
  --ink: #0A0A0A;
  --paper: #FFFFFF;
  --muted: #6B6B6B;
  --hairline: #1a1a1a;
  --font-display: 'Futura', 'Arial', sans-serif;
  --font-body: 'Futura', 'Arial', sans-serif;
}

@font-face {
  font-family: 'Futura';
  src: url('/app/themes/mitsou-magazine/dist/fonts/Futura-Medium.woff2') format("woff2"), url('/app/themes/mitsou-magazine/dist/fonts/Futura-Medium.woff') format("woff");
  font-style: normal;
  font-weight: 400;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

/* ---------------- Sticky platform banner ---------------- */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 28px;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Back-to-magazine link, top-left */
.pb-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.2em;
  font-size: 11px;
  text-transform: uppercase;
  padding: 6px 0;
  transition: color .2s ease;
  justify-self: start;
}

.pb-back:hover {
  color: var(--accent);
}

.pb-back:hover svg {
  transform: translateX(-3px);
}

.pb-back svg {
  width: 14px;
  height: 14px;
  transition: transform .2s ease;
}

.pb-back .pb-logo-img {
  height: 18px;
  width: auto;
  display: block;
  /* SVG paths are dark — invert to white on the dark bar */
  filter: invert(1) brightness(2);
}

.pb-back .pb-back-tag {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: 10px;
  margin-left: 4px;
}

.top-bar .pb-mark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 14px;
  color: #fff;
  text-transform: uppercase;
  justify-self: center;
}

.top-bar .pb-mark span {
  color: var(--accent);
}

.pb-links {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-self: end;
}

.pb-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.06em;
  font-size: 12px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all .2s ease;
}

.pb-link:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.pb-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--accent);
  color: #fff;
  overflow: hidden;
  padding-top: 56px;
  /* to clear the platform bar */
}

.hero-type {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 56px 72px 64px;
  z-index: 2;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.92;
}

.hero-meta::before {
  content: "";
  width: 28px;
  height: 1px;
  background: #fff;
}

.wordmark {
  width: 100%;
  height: auto;
  display: block;
  margin: 24px 0;
}

.wordmark text {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-feat {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-top: 8px;
  color: #fff;
}

.hero-feat em {
  font-style: italic;
  font-weight: 500;
}

.hero-actions {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.listen-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  border-radius: 0;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 16px;
  width: fit-content;
  min-width: 380px;
  transition: transform .25s ease, background .25s ease, color .25s ease;
  position: relative;
  overflow: hidden;
}

.listen-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-2);
  transform: translateX(-101%);
  transition: transform .35s cubic-bezier(.6, .05, .05, .95);
  z-index: 0;
}

.listen-cta>* {
  position: relative;
  z-index: 1;
}

.listen-cta:hover {
  transform: translateY(-2px);
}

.listen-cta:hover::before {
  transform: translateX(0);
}

.listen-cta .arrow {
  width: 28px;
  height: 28px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease;
}

.listen-cta:hover .arrow {
  transform: rotate(-45deg);
}

.hero-photo {
  position: relative;
  overflow: hidden;
}

.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}

/* Cover artwork — straddles seam between type panel and photo */
.hero-cover {
  position: absolute;
  bottom: 80px;
  left: calc(51.22% - 130px);
  /* centered on the column seam (1.05fr / 2.05fr) */
  width: 260px;
  aspect-ratio: 1;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.05);
  transform: rotate(-4deg);
  transition: transform .4s ease;
  z-index: 5;
}

.hero-cover:hover {
  transform: rotate(0deg) scale(1.04);
}

.hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-cover .cover-tag {
  position: absolute;
  top: -18px;
  left: -18px;
  background: var(--accent-2);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  padding: 8px 12px;
  text-transform: uppercase;
  transform: rotate(3deg);
}

/* Vertical credit strip */
.credit-strip {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  z-index: 3;
  white-space: nowrap;
}

/* Ticker at bottom of hero */
.ticker {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 4;
}

.ticker-track {
  display: flex;
  gap: 48px;
  padding: 14px 0;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  animation: ticker 35s linear infinite;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 48px;
}

.ticker-track span::after {
  content: "✦";
  color: var(--accent);
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ---------------- Section frame ---------------- */
section.block {
  padding: 120px 64px 80px;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--ink);
}

.eyebrow .num {
  color: var(--accent);
  font-weight: 700;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 7vw, 110px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 56px;
}

.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

/* ---------------- Quote moment ---------------- */
.quote-block {
  background: var(--ink);
  color: #fff;
  padding: 140px 64px;
  position: relative;
  overflow: hidden;
}

.quote-block::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -5%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse at center, var(--accent) 0%, transparent 60%);
  opacity: 0.55;
  filter: blur(40px);
}

.quote-block::after {
  content: "";
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at center, var(--accent-2) 0%, transparent 55%);
  opacity: 0.25;
  filter: blur(60px);
}

.quote-text {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 4.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 1400px;
  text-wrap: balance;
}

.quote-text strong {
  font-weight: 800;
  font-style: italic;
  color: var(--accent-2);
}

.quote-mark {
  position: absolute;
  top: 60px;
  left: 60px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 240px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.4;
  z-index: 1;
}

/* ---------------- Reels row ---------------- */
.reels {
  padding: 100px 64px 0;
  background: var(--paper);
  position: relative;
}

/* ---------------- Shelves ---------------- */

.shelf {
  margin-bottom: 100px;
}

.shelf-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-right: 64px;
}

.shelf-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.shelf-title .count {
  display: inline-block;
  margin-left: 16px;
  font-size: 0.35em;
  letter-spacing: 0.2em;
  color: var(--accent);
  transform: translateY(-0.7em);
  font-weight: 600;
}

.shelf-nav {
  display: flex;
  gap: 8px;
}

.shelf-nav button {
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
  color: var(--ink);
}

.shelf-nav button:hover {
  background: var(--ink);
  color: #fff;
}

.shelf-nav button:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.shelf-nav button:disabled:hover {
  background: transparent;
  color: var(--ink);
}

.shelf-track-wrap {
  position: relative;
  margin: 0 -64px;
  padding: 0 64px;
}

.shelf-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 64px;
  padding: 8px 64px 40px 0;
  scrollbar-width: none;
}

.shelf-track::-webkit-scrollbar {
  display: none;
}

.release {
  flex: 0 0 auto;
  scroll-snap-align: start;
  cursor: pointer;
  position: relative;
  transition: transform .3s ease;
}

.release:hover {
  transform: translateY(-6px);
}

.release-cover {
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
}

.release-cover .ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(135deg,
      #ddd 0 8px,
      #e8e8e8 8px 16px);
  color: #555;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px;
}

.release-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.release-cover .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 10, 10, 0.0);
  transition: background .25s ease;
}

.release-cover .play svg {
  width: 56px;
  height: 56px;
  fill: #fff;
  opacity: 0;
  transform: scale(0.8);
  transition: all .3s ease;
}

.release:hover .release-cover .play {
  background: rgba(10, 10, 10, 0.35);
}

.release:hover .release-cover .play svg {
  opacity: 1;
  transform: scale(1);
}

.release-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 14px;
  font-family: var(--font-display);
}

.release-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-transform: none;
}

.release-links {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.release-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}

.release-link:hover {
  background: var(--ink);
  color: #fff;
}

.release-link svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.release-year {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
}

.release-type {
  display: inline-block;
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Singles size */
.shelf-singles .release-cover {
  width: 280px;
  aspect-ratio: 1;
}

/* Albums size — bigger */
.shelf-albums .release-cover {
  width: 360px;
  aspect-ratio: 1;
}

/* Featured (new) — biggest */
.shelf-new .release-cover {
  width: 460px;
  aspect-ratio: 1;
}

/* "NEW" tag */
.release-new-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent-2);
  color: var(--ink);
  padding: 6px 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  z-index: 2;
}

/* ---------------- Footer ---------------- */
footer {
  background: var(--ink);
  color: #fff;
  padding: 80px 64px 40px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 80px;
}

.foot-logo {
  width: 200px;
  height: auto;
  display: block;
  filter: invert(1) brightness(2);
}

.foot-tag {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 360px;
  line-height: 1.5;
}

.foot-col h4 {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
  font-weight: 500;
}

.foot-col ul {
  list-style: none;
}

.foot-col li {
  margin-bottom: 10px;
  font-size: 14px;
}

.foot-col a {
  color: #fff;
  text-decoration: none;
  transition: color .2s ease;
}

.foot-col a:hover {
  color: var(--accent);
}

.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-photo {
    aspect-ratio: 4/3;
    position: relative;
  }

  .hero-photo img {
    position: absolute;
  }

  .hero-type {
    padding: 80px 28px 40px;
  }

  .hero-cover {
    left: auto;
    right: 28px;
    bottom: 20px;
    width: 140px;
  }

  .credit-strip {
    display: none;
  }

  section.block {
    padding: 80px 28px 60px;
  }

  .shelf-head {
    padding-right: 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .shelf-track-wrap {
    margin: 0 -28px;
    padding: 0 28px;
  }

  .shelf-track {
    scroll-padding-left: 28px;
    padding-right: 28px;
  }

  .shelf-singles .release-cover {
    width: 220px;
  }

  .shelf-albums .release-cover {
    width: 240px;
  }

  .shelf-new .release-cover {
    width: 280px;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .reels {
    padding: 60px 28px 40px;
  }

  .reels-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .reels-grid {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -28px;
    padding: 0 28px 12px;
    scrollbar-width: none;
  }

  .reels-grid::-webkit-scrollbar {
    display: none;
  }

  .reel {
    flex: 0 0 70%;
    max-width: 280px;
    scroll-snap-align: start;
  }

  .top-bar {
    padding: 10px 16px;
    grid-template-columns: auto 1fr;
  }

  .top-bar .pb-mark {
    display: none;
  }

  .pb-back-tag {
    display: none;
  }

  .pb-link span:not(.icon) {
    display: none;
  }

  .listen-cta {
    min-width: 0;
    width: 100%;
  }

  footer {
    padding: 60px 28px 30px;
  }
}