/* ════════════════════════════════════════════════════════════
   CROWNTUNE — PLAYLISTS PAGE STYLES
   Only used on playlists.html
   Flat treatment: solid surfaces, no glows or gradient washes.
   ════════════════════════════════════════════════════════════ */

:root {
  --bad: #E15B5B;
  --bad-dim: rgba(225,91,91,0.35);
  --bad-tint: rgba(225,91,91,0.08);
}

/* ── SECTION 1: DASHBOARD HERO ── */
#pl-hero {
  background: var(--black);
  padding: 150px 60px 100px;
}

.pl-hero-head {
  max-width: var(--content-max);
  margin: 0 auto 64px;
}


.pl-headline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(52px, 6vw, 92px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 26px;
}
.pl-headline em {
  font-style: normal;
  color: var(--gold);
}

.pl-hero-sub {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray-light);
  max-width: 520px;
  margin-bottom: 36px;
}

.pl-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ════════════════════════════════════════
   PLAYLIST CAROUSEL
   Cards fan out in 3D and rotate away off-screen; playlists.js owns the
   per-card transform, this file owns look + motion timing.
   ════════════════════════════════════════ */
.pl-roulette {
  position: relative;
  height: 560px;
  margin: 0 auto;
  max-width: var(--content-max);
  perspective: 1700px;
  overflow: hidden;
}

.roul-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 340px;
  padding: 16px 16px 20px;
  border-radius: 20px;
  background: #12100A;
  border: 1px solid rgba(240,195,48,0.3);
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  cursor: pointer;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.9s, box-shadow 0.9s;
  will-change: transform, opacity;
}
/* the one in front — bright gold edge with the slight glow */
.roul-card.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(240,195,48,0.2), 0 0 40px rgba(240,195,48,0.07);
}

.roul-art {
  border-radius: 13px;
  overflow: hidden;
  aspect-ratio: 5 / 4;          /* wider than the square source art */
  background: #0A0A0A;
}
.roul-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.roul-name {
  font-size: 23px;
  font-weight: 700;
  color: var(--white);
  margin: 16px 0 3px;
  text-align: center;
  letter-spacing: -0.01em;
}
.roul-genre {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-align: center;
  margin-bottom: 16px;
}

/* songs + duration share a row, followers gets its own */
.roul-stats {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.roul-stats li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}
/* songs and duration bookend the row, each inset 10% from its edge */
.roul-stats li:nth-child(1) { padding-left: 10%; }
.roul-stats li:nth-child(2) { justify-content: flex-end; padding-right: 10%; }
/* followers sits on its own row, centred under the two above it */
.roul-stat-wide {
  grid-column: 1 / -1;
  justify-content: center;
}
.roul-stats img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

.roul-play {
  display: block;
  text-align: center;
  padding: 15px;
  border-radius: 12px;
  background: var(--gold);
  color: #000;               /* true black, not the off-black token — max punch on gold */
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s;
}
.roul-play:hover { background: var(--gold-light); }


/* ── Feature boxes (2 x 2, under the carousel) ── */
.pl-features {
  max-width: 1000px;
  margin: 64px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pl-feat {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  padding: 24px 26px;
}

.pl-feat-icon {
  width: 62px;
  height: 62px;
  object-fit: contain;
  flex-shrink: 0;
}

.pl-feat h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}
.pl-feat p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
}


/* ── SECTION 2: THE TRUTH (BENTO) ── */
#pl-truth {
  background: var(--black-2);
  border-top: 1px solid var(--border);
  padding: 100px 60px 110px;
}

.truth-head {
  max-width: var(--content-max);
  margin: 0 auto 44px;
}

.truth-headline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(38px, 4.5vw, 64px);
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
}
.truth-headline em {
  font-style: normal;
  color: var(--gold);
}

/* Bento: wide / two squares / tall */
.truth-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px 60px;  /* no boxes to separate them, so the gutter has to do it */
}

/* No container boxes — info sits straight on the page background.
   The inner widgets (scam DM, bot chart, strike panel, proof shots) keep theirs. */
.truth-box {
  position: relative;
}
.truth-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
/* the column is centred, so bottom margin lifts the copy by half its value */
.truth-wide-text { margin-bottom: 64px; }
.truth-tall { grid-column: 1 / -1; }


.truth-box h3 {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}
.truth-box h3 em {
  font-style: normal;
  color: var(--gold);
}

.truth-body {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
}
.truth-body + .truth-body { margin-top: 18px; }

/* Scam DM visual (inside wide box) */
.scam-img {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  margin: 0 auto;   /* centred in its column, not shoved to the far edge */
  border-radius: 16px;
}

/* Bots visual (square 1) */
.bot-img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 26px;
  border-radius: 14px;
}

/* Strike widget (square 2) */
.strike-widget { margin-top: 26px; }

.strike-alert {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(225,91,91,0.07);
  border: 1px solid rgba(225,91,91,0.35);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 14px;
}
.strike-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(225,91,91,0.15);
  border: 1px solid rgba(225,91,91,0.45);
  color: var(--bad);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.strike-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 4px;
}
.strike-sub {
  font-size: 11px;
  color: rgba(225,91,91,0.75);
  letter-spacing: 0.02em;
}

.strike-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.strike-stat {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.3);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.strike-stat em {
  font-style: normal;
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--bad);
  letter-spacing: 0;
  text-transform: none;
}

/* The good tall box */
.truth-tall { padding: 0; }

.truth-tall-text {
  max-width: 720px;
  margin-bottom: 30px;
}
.truth-tall .truth-body { font-size: 15px; color: var(--gray-light); }


/* Proof screenshots */
.proof-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.proof-shot {
  margin: 0;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(240,195,48,0.22);
  border-radius: 14px;
  padding: 10px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s;
}
.proof-shot:hover {
  transform: scale(1.02);
  border-color: rgba(240,195,48,0.45);
}

.proof-shot img {
  width: 100%;
  display: block;
  border-radius: 9px;
}

.proof-missing { display: none; }
.proof-shot.missing img { display: none; }
.proof-shot.missing .proof-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 190px;
  border: 1px dashed rgba(240,195,48,0.3);
  border-radius: 9px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  gap: 5px;
}
.proof-missing strong { color: var(--gold); font-weight: 600; }

.proof-shot figcaption {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
  padding: 12px 8px 6px;
  text-align: center;
}


/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .truth-wide { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .pl-features { grid-template-columns: 1fr; }
  .pl-roulette { height: 520px; }
  .roul-card { width: 300px; }
}
@media (max-width: 760px) {
  #pl-hero, #pl-truth { padding-left: 24px; padding-right: 24px; }
  .truth-grid { grid-template-columns: 1fr; }
  .proof-row { grid-template-columns: 1fr; }
}


/* ════════════════════════════════════════════════════════════
   MOBILE — PLAYLISTS PAGE
   ════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  #pl-hero { padding: 104px 20px 64px; }
  .pl-hero-head { margin-bottom: 40px; }
  .pl-headline { font-size: clamp(36px, 11vw, 58px); margin-bottom: 18px; }
  .pl-hero-sub { font-size: 15px; margin-bottom: 26px; max-width: none; }
  .pl-hero-actions { flex-wrap: wrap; gap: 12px; }
  .pl-hero-actions a { flex: 1 1 auto; text-align: center; }

  /* Carousel: narrower cards, tighter fan, only one neighbour visible.
     playlists.js reads these from CSS custom props so JS and CSS agree. */
  .pl-roulette { height: 500px; }
  .roul-card { width: 268px; padding: 13px 13px 16px; }
  .roul-name { font-size: 20px; margin: 13px 0 3px; }
  .roul-stats li { font-size: 12.5px; gap: 7px; }
  .roul-stats img { width: 22px; height: 22px; }
  .roul-play { font-size: 15px; padding: 13px; }

  /* Truth section */
  #pl-truth { padding: 64px 20px 72px; }
  .truth-head { margin-bottom: 32px; }
  .truth-headline { font-size: clamp(28px, 8.5vw, 44px); }
  .truth-grid { grid-template-columns: 1fr; gap: 56px; }
  .truth-wide { grid-template-columns: 1fr; gap: 28px; }
  .truth-wide-text { margin-bottom: 0; }
  .truth-box h3 { font-size: 22px; }
  .truth-body { font-size: 13.5px; }
  .scam-img { max-width: 260px; margin: 0 auto; }
  .bot-img { margin-top: 20px; }
  .strike-stats { gap: 8px; }
  .strike-stat { font-size: 8.5px; padding: 12px 6px; }
  .strike-stat em { font-size: 18px; }
  .proof-row { grid-template-columns: 1fr; gap: 18px; }
  .truth-tall .truth-body { font-size: 14px; }
}

@media (max-width: 560px) {
  .pl-roulette { height: 470px; }
  .roul-card { width: 244px; }
  .roul-art { aspect-ratio: 4 / 3; }
  .roul-name { font-size: 18px; }
}
