
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

/* =========================================
   JNKVERSE — THE RUBY SOUNDSPACE
========================================= */

:root {
  --bg: #080609;
  --surface: #100b10;
  --ruby: #ff245f;
  --ruby-dark: #a50b3b;
  --rose: #ff9ab7;
  --gold: #e6c78f;
  --white: #f8f3f4;
  --muted: #b6aab1;
  --line: rgba(255,255,255,.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--ruby);
  color: white;
}

/* =========================================
   NAVIGATION
========================================= */

.topbar {
  min-height: 78px;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 10;
  background: rgba(8,6,9,.97);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .15em;
  white-space: nowrap;
}

.logo span {
  color: var(--ruby);
  margin-right: 9px;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 38px);
}

.topbar nav a {
  color: #a99da4;
  font-size: 10px;
  letter-spacing: .16em;
  transition: color .25s ease;
}

.topbar nav a:hover,
.topbar nav a.active {
  color: white;
}

.topbar nav a.active {
  position: relative;
}

.topbar nav a.active::after {
  content: "";
  height: 2px;
  background: var(--ruby);
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
}

/* =========================================
   HERO — JENNIE BACKGROUND
========================================= */

.hero {
  min-height: 530px;
  padding: 85px 7% 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;

  background:
    linear-gradient(
      90deg,
      rgba(8,6,9,.84) 0%,
      rgba(8,6,9,.68) 34%,
      rgba(8,6,9,.16) 72%,
      rgba(8,6,9,.18) 100%
    ),
    linear-gradient(
      0deg,
      var(--bg) 0%,
      transparent 28%
    ),
    url("../assets/images/playlist-bg.jpg")
      center 35% / cover no-repeat;

  border: 0;
}

/* Soft ruby atmosphere */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      circle at 78% 35%,
      rgba(255,36,95,.13),
      transparent 40%
    );
  pointer-events: none;
}

/* Subtle celestial symbol */
.hero::after {
  content: "✧";
  position: absolute;
  right: 9%;
  top: 17%;
  color: rgba(255,190,210,.75);
  font-size: clamp(35px, 5vw, 65px);
  animation: starFloat 5s ease-in-out infinite;
  pointer-events: none;
}

.hero .eyebrow {
  color: var(--rose);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .34em;
  margin: 0 0 25px;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(68px, 9vw, 124px);
  line-height: .78;
  font-weight: 500;
  letter-spacing: -.055em;
  text-transform: uppercase;
  text-shadow: 0 5px 35px rgba(0,0,0,.25);
}

.hero h1 span {
  display: block;
  margin-top: 12px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,240,245,.85);
}

.hero-description {
  max-width: 440px;
  margin: 27px 0 0;
  color: rgba(255,245,248,.82);
  font-size: 14px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 28px;
}

.hero-button {
  min-height: 44px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 30px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  transition: .25s ease;
}

.hero-button.primary {
  border-color: var(--ruby);
  background: linear-gradient(110deg, #c50d43, #ff245f);
  color: white;
  box-shadow: 0 5px 25px rgba(255,36,95,.17);
}

.hero-button:hover {
  transform: translateY(-2px);
  border-color: var(--rose);
}

.hero-button.secondary {
  background: rgba(0,0,0,.2);
  backdrop-filter: blur(8px);
}

/* =========================================
   COLLECTION AREA
========================================= */

.library {
  position: relative;
  padding: 48px 5.5% 85px;
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(125,13,53,.12),
      transparent 50%
    ),
    var(--bg);
  border: 0;
}

/* Collection introduction */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 30px;
}

.section-head .eyebrow {
  color: var(--ruby);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .28em;
  margin: 0 0 12px;
}

.section-head h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(35px, 4.5vw, 55px);
  line-height: 1;
  font-weight: 500;
}

.section-head > p {
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  text-align: right;
}

/* =========================================
   PLAYLIST GRID
========================================= */

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 18px;
}

.playlist-card {
  min-width: 0;
  position: relative;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.035),
      rgba(255,255,255,.008)
    );
  transition:
    transform .3s ease,
    border-color .3s ease,
    box-shadow .3s ease;
}

.playlist-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,36,95,.55);
  box-shadow: 0 12px 35px rgba(130,10,49,.13);
}

.cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 75% 20%, #64112e, transparent 50%),
    linear-gradient(135deg, #230b15, #080609);
}

.cover img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.playlist-card:hover .cover img {
  transform: scale(1.045);
}

.cover::before {
  content: "✧";
  position: absolute;
  z-index: 3;
  top: 9px;
  left: 10px;
  color: white;
  font-size: 18px;
  opacity: 0;
  transform: scale(.7);
  transition: .3s ease;
  pointer-events: none;
}

.playlist-card:hover .cover::before {
  opacity: .95;
  transform: scale(1);
}

/* Actual playlist details */
.card-copy {
  padding: 13px 2px 3px;
}

.card-copy p {
  margin: 0 0 6px;
  color: var(--ruby);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.card-copy h2 {
  margin: 0 0 13px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.open-playlist {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 11px;
  border-top: 1px solid rgba(255,255,255,.13);
  color: rgba(255,255,255,.8);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
  transition: color .2s ease;
}

.open-playlist span {
  color: var(--ruby);
  font-size: 15px;
}

.open-playlist:hover {
  color: var(--rose);
}

/* =========================================
   FOOTER
========================================= */

footer {
  padding: 25px 5.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  color: #8e8189;
  font-size: 9px;
  letter-spacing: .16em;
}

footer span:first-child {
  color: var(--white);
}

/* =========================================
   ANIMATION
========================================= */

@keyframes starFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: .65;
  }
  50% {
    transform: translateY(-10px) rotate(12deg);
    opacity: 1;
  }
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1050px) {
  .playlist-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px 15px;
  }

  .hero {
    min-height: 480px;
    padding: 75px 6%;
  }

  .library {
    padding: 42px 4%;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {
  .topbar {
    min-height: 68px;
    padding: 0 20px;
  }

  .logo {
    font-size: 15px;
  }

  .topbar nav {
    gap: 12px;
  }

  .topbar nav a {
    font-size: 8px;
    letter-spacing: .08em;
  }

  .hero {
    min-height: 490px;
    padding: 70px 24px 80px;
    background-position: 58% center;
  }

  .hero::after {
    right: 7%;
    top: 12%;
    font-size: 40px;
  }

  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: .2em;
  }

  .hero h1 {
    font-size: clamp(57px, 12vw, 82px);
    line-height: .84;
  }

  .hero-description {
    max-width: 330px;
    font-size: 12px;
  }

  .hero-button {
    min-height: 41px;
    padding: 0 15px;
    font-size: 9px;
  }

  .library {
    padding: 36px 20px 55px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .section-head > p {
    text-align: left;
    font-size: 11px;
  }

  .playlist-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 11px;
  }

  .playlist-card {
    padding: 7px;
    border-radius: 10px;
  }

  .card-copy {
    padding-top: 10px;
  }

  .card-copy p {
    font-size: 7px;
  }

  .card-copy h2 {
    font-size: 10px;
    margin-bottom: 10px;
  }

  .open-playlist {
    font-size: 7px;
    letter-spacing: .04em;
  }

  footer {
    padding: 22px 20px;
    font-size: 8px;
  }
}

@media (max-width: 420px) {
  .topbar nav {
    gap: 9px;
  }

  .topbar nav a {
    font-size: 7px;
  }

  .playlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 23px 13px;
  }

  .hero {
    min-height: 460px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .card-copy h2 {
    font-size: 11px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* FINAL FIX — ONE JENNIE BACKGROUND, NO DUPLICATE */

.hero {
  background-image:
    linear-gradient(
      90deg,
      rgba(8, 6, 9, 0.68) 0%,
      rgba(8, 6, 9, 0.35) 42%,
      rgba(8, 6, 9, 0.05) 75%,
      rgba(8, 6, 9, 0.08) 100%
    ),
    linear-gradient(
      to bottom,
      transparent 60%,
      #080609 100%
    ),
    url("../assets/images/playlist-bg.jpg") !important;

  background-repeat: no-repeat !important;
  background-size: 100% 100%, 100% 100%, cover !important;
  background-position: center, center, center 35% !important;

  border-bottom: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

/* The collection must never reuse Jennie's photo */
.library {
  background: #080609 !important;
  background-image:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(125, 13, 53, 0.12),
      transparent 50%
    ) !important;
  border-top: none !important;
}

.library::before {
  display: none !important;
}

/* Remove the decorative star */
.hero::after {
  content: none !important;
}


/* JNKVERSE — cleaner playlist cards */

.playlist-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 22px !important;
}

.playlist-card {
  padding: 10px !important;
  border-radius: 14px !important;
  background: linear-gradient(145deg, #171016, #0b090c) !important;
}

.cover {
  aspect-ratio: 1 / 1 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 75% 20%, #761337, transparent 55%),
    #10090e !important;
}

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

.cover small {
  font-size: 9px !important;
  letter-spacing: 0.12em !important;
}

.card-copy h2 {
  font-size: 14px !important;
  line-height: 1.5 !important;
}

@media (max-width: 900px) {
  .playlist-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 600px) {
  .playlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}


/* ✦ JNKVERSE — COVER-COLOUR PLAYLIST CARDS ✦ */

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.playlist-card {
  --card-colour: #283c5b;
  --card-text: #f5f5f8;

  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--card-colour), white 18%);
  border-radius: 13px;
  background: var(--card-colour);
  color: var(--card-text);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.playlist-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px color-mix(
    in srgb, var(--card-colour), transparent 45%
  );
}

/* Square playlist artwork */
.playlist-card .cover {
  width: 76px;
  height: 76px;
  aspect-ratio: 1;
  border-radius: 9px;
  overflow: hidden;
  position: relative;
  background: rgba(0,0,0,.18);
}

.playlist-card .cover img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* Remove the large gradient-card decoration */
.playlist-card .cover::before {
  display: none;
}

.playlist-card .cover small,
.playlist-card .cover strong,
.playlist-card .cover > span {
  display: none;
}

/* Compact title and artist details */
.playlist-card .card-copy {
  min-width: 0;
  padding: 0;
}

.playlist-card .card-copy p {
  margin: 0 0 4px;
  color: color-mix(in srgb, var(--card-text), transparent 22%);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .08em;
}

.playlist-card .card-copy h2 {
  margin: 0;
  color: var(--card-text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.playlist-card .open-playlist {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: -7px;
  padding-top: 0;
  border: 0;
  color: var(--card-text);
  font-size: 9px;
  letter-spacing: .05em;
  opacity: .9;
}

.playlist-card .open-playlist span {
  color: var(--card-text);
}

/* Mobile */
@media (max-width: 650px) {
  .playlist-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .playlist-card {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
    padding: 11px;
  }

  .playlist-card .cover {
    width: 68px;
    height: 68px;
  }

  .playlist-card .card-copy h2 {
    font-size: 14px;
  }
}


/* =========================================
   JNKVERSE — RUBY GLOW PLAYLIST LIBRARY
   ========================================= */

:root {
  --ruby: #ff245f;
  --ruby-soft: #ff7098;
  --ruby-deep: #8e123d;
  --ruby-white: #fff4f8;
}

/* Section heading */
.section-head h2 {
  font-family: "Cormorant Garamond", serif !important;
  font-size: clamp(36px, 4vw, 54px) !important;
  font-weight: 500 !important;
  letter-spacing: -1px;
  color: var(--ruby-white);
  text-shadow: 0 0 24px rgba(255, 36, 95, 0.12);
}

.section-head .eyebrow {
  color: var(--ruby);
  letter-spacing: 0.24em;
}

/* Playlist cards */
.playlist-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 125, 164, 0.20) !important;
  border-radius: 17px !important;

  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(153, 20, 65, 0.13),
      transparent 48%
    ),
    linear-gradient(145deg, #130c12, #09080b 75%) !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.035),
    0 8px 24px rgba(0,0,0,0.12);

  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

/* Subtle ruby shimmer */
.playlist-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 72, 126, 0.07) 45%,
    transparent 70%
  );

  opacity: 0;
  transition: opacity 0.3s ease;
}

.playlist-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 65, 112, 0.72) !important;

  box-shadow:
    0 12px 34px rgba(0,0,0,0.35),
    0 0 22px rgba(255,36,95,0.09),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.playlist-card:hover::before {
  opacity: 1;
}

/* Cover artwork */
.playlist-card .cover {
  border-radius: 12px !important;
  overflow: hidden;
  background: #160b12;
  box-shadow: 0 4px 16px rgba(0,0,0,0.30);
}

.playlist-card .cover img {
  transition: transform 0.4s ease, filter 0.4s ease;
}

.playlist-card:hover .cover img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

/* Collection number */
.playlist-card .card-copy > p {
  color: var(--ruby-soft) !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  line-height: 1.6;
}

/* Actual playlist title */
.playlist-card .card-copy h2 {
  color: #fff5f8 !important;
  font-family: "DM Sans", sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.4;
  letter-spacing: -0.02em;
  transition: color 0.25s ease;
}

.playlist-card:hover .card-copy h2 {
  color: #ffb4cb !important;
}

/* Spotify link */
.playlist-card .open-playlist {
  color: #e7dbe1 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  transition: color 0.25s ease;
}

.playlist-card .open-playlist span {
  color: var(--ruby) !important;
  font-size: 16px;
  transition: transform 0.25s ease;
}

.playlist-card:hover .open-playlist {
  color: white !important;
}

.playlist-card:hover .open-playlist span {
  transform: translate(3px, -3px);
}

/* Platform switcher */
.playlist-tabs {
  gap: 12px;
}

.playlist-tab {
  border-color: rgba(255,255,255,0.13) !important;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease !important;
}

.playlist-tab:hover {
  transform: translateY(-2px);
}

.playlist-tab.active {
  background: linear-gradient(
    110deg,
    #a50b3b,
    #ff245f
  ) !important;

  box-shadow:
    0 5px 22px rgba(255,36,95,0.22),
    inset 0 1px 0 rgba(255,255,255,0.15) !important;
}

/* Section atmosphere */
.library {
  position: relative;
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(115, 14, 48, 0.12),
      transparent 55%
    ),
    #080609 !important;
}

/* Mobile refinements */
@media (max-width: 650px) {
  .playlist-card {
    border-radius: 14px !important;
  }

  .playlist-card .card-copy h2 {
    font-size: 14px !important;
  }

  .playlist-card:hover {
    transform: translateY(-2px);
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .playlist-card,
  .playlist-card *,
  .playlist-tab {
    transition: none !important;
  }
}


/* Apple Music playlist typography fix */
.apple-playlist-card .card-copy {
  font-family: 'DM Sans', sans-serif;
}

.apple-playlist-card .card-copy h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
}

.apple-playlist-card .card-copy p {
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.12em;
}

.apple-playlist-card .open-playlist {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
}


/* Match Apple Music card size to Spotify cards */
.apple-playlist-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100%;
  max-width: 400px;
  min-width: 0;
  box-sizing: border-box;
}

.apple-playlist-card .apple-embed-wrap {
  width: 100%;
  height: 152px;
  min-height: 152px;
  overflow: hidden;
  border-radius: 10px;
}

.apple-playlist-card .apple-embed-wrap iframe {
  width: 100%;
  height: 152px;
  min-height: 152px;
  border: 0;
}

.apple-playlist-card .card-copy {
  padding: 18px 0 0;
}

.apple-playlist-card .card-copy h2 {
  font-size: 20px;
  line-height: 1.3;
}

@media (max-width: 600px) {
  .apple-playlist-card {
    max-width: 100%;
  }
}
