/* WEB_PLUM_01 — presentation that only the web (Toss) deployment loads, behind FORYOUTUNE_WEB_PLUM.
   Colours and sizes are the existing app-v2 tokens. Display only: nothing here decides a route, right or payment. */

/* M2: the genre song samples, drawn where the web's two base products carry no Shorts card. */
[data-app-design-v2] .appV2GenreSample {
  box-sizing: border-box;
  inline-size: 100%;
  margin-block: 0 16px;
  padding: 14px;
  border: 1px solid rgb(94 42 53 / 7%);
  border-radius: var(--app-v2-radius-card);
  background: var(--app-v2-surface);
  box-shadow: 0 6px 16px rgb(68 35 40 / 5%);
  color: var(--app-v2-plum);
  text-align: start;
}
[data-app-design-v2] .appV2GenreSampleCopy { min-inline-size: 0; }
[data-app-design-v2] .appV2GenreSampleTitle {
  margin: 0 0 2px;
  color: var(--app-v2-plum);
  font: 700 1.125rem/1.3 var(--app-v2-font-display);
  letter-spacing: -0.03em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
[data-app-design-v2] .appV2GenreSampleText,
[data-app-design-v2] .appV2GenreSampleNote {
  margin: 0;
  color: var(--app-v2-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
[data-app-design-v2] .appV2GenreSampleNote { margin-block-start: 8px; font-size: 12px; font-weight: 400; }
[data-app-design-v2] .appV2GenreSampleList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
[data-app-design-v2] .appV2GenreSampleItem { min-inline-size: 0; margin: 0; padding: 0; }
[data-app-design-v2] .appV2GenreSampleButton {
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  inline-size: 100%;
  min-block-size: 48px;
  padding: 0 12px 4px;
  overflow: hidden;
  border: 1px solid var(--app-v2-rule);
  border-radius: 14px;
  background: var(--app-v2-paper);
  color: var(--app-v2-plum);
  font: 600 .8125rem/1.3 var(--app-v2-font);
  text-align: start;
  cursor: pointer;
}
[data-app-design-v2] .appV2GenreSampleButton[aria-pressed="true"] { border-color: transparent; background: var(--app-v2-plum); color: var(--app-v2-on-night); }
[data-app-design-v2] .appV2GenreSampleButton:focus-visible { outline: var(--app-v2-focus); outline-offset: 2px; }
[data-app-design-v2] .appV2GenreSampleIcon { display: grid; flex: none; place-items: center; }
[data-app-design-v2] .appV2GenreSampleIcon .appV2Icon { inline-size: 16px; block-size: 16px; }
[data-app-design-v2] .appV2GenreSampleLabel { min-inline-size: 0; word-break: keep-all; overflow-wrap: anywhere; }
[data-app-design-v2] .appV2GenreSampleTrack { position: absolute; inset-inline: 12px; inset-block-end: 5px; block-size: 3px; overflow: hidden; border-radius: 2px; background: transparent; }
[data-app-design-v2] .appV2GenreSampleButton[aria-pressed="true"] .appV2GenreSampleTrack { background: #f6f1ec40; }
[data-app-design-v2] .appV2GenreSampleFill { display: block; inline-size: 100%; block-size: 100%; border-radius: inherit; background: var(--app-v2-action); transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) {
  [data-app-design-v2] .appV2GenreSampleFill { transition: transform .25s linear; }
}

/* WEB_PLUM_01 PR 4 - desktop-wide screens (>=1024px): the PLUM column is a centred fixed-width card on the promotional home's page tone
   (home v8 --blush, its card-shadow tone) instead of a full-bleed canvas. The card is as wide as the existing frame (480px) and the
   fixed tab dock (also 480px, centred), so nothing inside moves. Below 1024px nothing here applies: phones and tablets are untouched.
   The promotional home itself (/home, and / for desktop browsers) is a full-width page, so a document that contains it is not carded.
   overflow: clip (not hidden) keeps sticky children sticky; the page tone is a fixed layer behind everything (z-index -1), so the
   preview-environment notice and every other in-flow element stay above it. Display only. */
@media (min-width: 1024px) {
  [data-app-design-v2].appV2Document[data-plum-web]:not(:has([data-home-v8-root])) {
    box-sizing: border-box;
    inline-size: 100%;
    max-inline-size: 480px;
    min-block-size: calc(100svh - 48px);
    margin: 24px auto;
    border-radius: 28px;
    overflow: clip;
    box-shadow: 0 16px 42px rgb(68 35 47 / 14%);
  }
  /* The dock is fixed to the viewport bottom while the card sits 24px lower: add that margin to the bottom clearance. Every
     [data-app-design-v2] element (frame, footer) re-declares the variable itself, so the document and its descendants are both set. */
  [data-app-design-v2].appV2Document[data-plum-web]:not(:has([data-home-v8-root])),
  [data-app-design-v2].appV2Document[data-plum-web]:not(:has([data-home-v8-root])) [data-app-design-v2] {
    --app-v2-clearance: calc(var(--app-v2-dock-size) + var(--app-v2-safe-bottom) + 12px + 24px);
  }
  [data-app-design-v2].appV2Document[data-plum-web]:not(:has([data-home-v8-root]))::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: #f1e2e6;
  }
}
