/* SIIK Pack Grid: pack cards with genre filter chips, demo play buttons and genre bundles. Scoped to .spg
 * Type: Poppins for names, Roboto for everything you read. Weights are set on purpose everywhere,
 * because the theme's default body weight is bold. */
.spg {
  --spg-cols: 3;
  --spg-accent: #8B5CF6;
  --spg-button: #B197FF;
  --spg-card: rgba(14, 14, 24, 0.5);
  --spg-text: #F4F4F8;
  --spg-muted: #A7AEC4;
  --spg-line: rgba(255, 255, 255, 0.08);
  --spg-head: Poppins, system-ui, sans-serif;
  --spg-body: Roboto, system-ui, sans-serif;
  color: var(--spg-text);
  font-family: var(--spg-body);
  font-weight: 400;
  text-align: left;
}
.spg *, .spg *::before, .spg *::after { box-sizing: border-box; }
.spg p { margin: 0; }

/* ---- genre chips + bundle hint ---- */
.spg-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 0 32px; }
.spg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.spg .spg-chip {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 16px; border-radius: 19px;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.03);
  color: var(--spg-muted); font-family: var(--spg-body); font-size: 14px; font-weight: 500; line-height: 1;
  transition: color .15s, border-color .15s, background-color .15s;
}
.spg .spg-chip:hover { color: var(--spg-text); border-color: rgba(255, 255, 255, 0.28); }
.spg .spg-chip[aria-pressed="true"] { background: var(--spg-text); border-color: var(--spg-text); color: #0D0D17; }
.spg .spg-chip:focus-visible { outline: 2px solid var(--spg-button); outline-offset: 2px; }
.spg-chip span { font-size: 12px; font-weight: 400; opacity: .6; font-variant-numeric: tabular-nums; }
.spg-hint { font-size: 14px; color: var(--spg-muted); }
.spg-hint b { color: var(--spg-button); font-weight: 500; }
.spg-hint[hidden] { display: none; }

/* ---- grid: the artwork carries the card, text sits on the page ---- */
.spg .spg-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--spg-cols), minmax(0, 1fr)); gap: 44px 28px; }
.spg .spg-card { margin: 0; min-width: 0; display: flex; flex-direction: column; }
.spg .spg-card[hidden] { display: none; }

.spg .spg-art {
  position: relative; display: block; aspect-ratio: 5 / 4; overflow: hidden;
  border-radius: 22px; border: 1px solid var(--spg-line);
  background:
    radial-gradient(60% 70% at 50% 55%, rgba(139, 92, 246, .18), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01));
  transition: border-color .25s ease;
}
.spg .spg-art > a { display: block; width: 100%; height: 100%; padding: 26px 26px 18px; }
.spg .spg-art img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .5)); transition: transform .35s ease; }
.spg .spg-card:hover .spg-art { border-color: rgba(255, 255, 255, .16); }
.spg .spg-card:hover .spg-art img { transform: translateY(-4px) scale(1.02); }

/* quiet glass play button, violet once it plays */
.spg .spg-play {
  all: unset; box-sizing: border-box; cursor: pointer;
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; background: rgba(14, 14, 24, .55);
  border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.spg .spg-play:hover { background: var(--spg-accent); border-color: var(--spg-accent); transform: scale(1.06); }
.spg .spg-play:active { transform: scale(.95); }
.spg .spg-play:focus-visible { outline: 2px solid var(--spg-text); outline-offset: 3px; }
.spg .spg-play svg { width: 16px; height: 16px; display: block; }
.spg .spg-play .spg-i-pause { display: none; }
.spg .spg-play[aria-pressed="true"] { background: var(--spg-accent); border-color: var(--spg-accent); }
.spg .spg-play[aria-pressed="true"] .spg-i-play { display: none; }
.spg .spg-play[aria-pressed="true"] .spg-i-pause { display: block; }
.spg .spg-play.is-loading { animation: spg-pulse 1s ease-in-out infinite; }
@keyframes spg-pulse { 50% { opacity: .6; } }
.spg .spg-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .08); opacity: 0; transition: opacity .2s; }
.spg .spg-prog i { display: block; height: 100%; width: 0; background: var(--spg-button); }
.spg .spg-card.is-playing .spg-prog { opacity: 1; }
.spg .spg-card.is-playing .spg-art { border-color: rgba(177, 151, 255, .5); }

/* name + price, then genre + rating + cart */
.spg .spg-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 4px 0; }
.spg .spg-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.spg .spg-title {
  min-width: 0; color: var(--spg-text); font-family: var(--spg-head); font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em;
  text-decoration: none;
}
.spg .spg-title:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.spg .spg-title:focus-visible { outline: 2px solid var(--spg-button); outline-offset: 2px; border-radius: 4px; }
.spg .spg-meta { min-width: 0; font-size: 14px; font-weight: 400; color: var(--spg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spg-star { color: #F5B942; }
.spg-count { opacity: .8; }

.spg .spg-price { flex: none; font-family: var(--spg-body); font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* the theme colours every "li .woocommerce-Price-amount" dark with !important, so these need it too */
.spg .spg-price, .spg .spg-price .woocommerce-Price-amount, .spg .spg-price bdi, .spg .spg-price ins { color: var(--spg-text) !important; }
.spg .spg-price del, .spg .spg-price del .woocommerce-Price-amount, .spg .spg-price del bdi { color: var(--spg-muted) !important; }
.spg .spg-price del { opacity: .7; font-size: .8em; font-weight: 400; margin-right: 6px; }
.spg .spg-price ins { text-decoration: none; }
.spg .spg-price .woocommerce-price-suffix, .spg .spg-price .screen-reader-text { display: none; }

/* buttons */
.spg .spg-add,
.spg .spg-add.button {
  all: unset; box-sizing: border-box; cursor: pointer; flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 12px;
  font-family: var(--spg-body); font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, transform .08s;
}
.spg .spg-add:active { transform: translateY(1px); }
.spg .spg-add:focus-visible { outline: 2px solid var(--spg-text); outline-offset: 2px; }
.spg .spg-add.loading { opacity: .6; cursor: progress; }
.spg .spg-add.loading::after { display: none; }
.spg .added_to_cart { display: none !important; } /* the side cart opens instead */

/* "Add to cart" with a bag; a tick once WooCommerce marks it added */
.spg .spg-add--pill, .spg .spg-add--pill.button {
  height: 42px; padding: 0 18px 0 14px;
  color: #0D0D17; background: var(--spg-button); border: 1px solid var(--spg-button);
  font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
}
.spg .spg-add--pill:hover { background: #C7B6FF; border-color: #C7B6FF; }
.spg .spg-add--pill svg { width: 18px; height: 18px; display: block; flex: none; }
.spg .spg-add--pill .spg-i-done { display: none; }
.spg .spg-add--pill.added, .spg .spg-add--pill.added.button { background: #8ff0b0; border-color: #8ff0b0; }
.spg .spg-add--pill.added .spg-i-bag { display: none; }
.spg .spg-add--pill.added .spg-i-done { display: block; }
.spg .spg-line:last-child { flex-wrap: wrap; row-gap: 10px; }

.spg .spg-add--solid, .spg .spg-add--solid.button {
  height: 46px; padding: 0 24px; background: var(--spg-button); color: #0D0D17; font-weight: 600; font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 26px rgba(139, 92, 246, .3);
}
.spg .spg-add--solid:hover { background: #C7B6FF; }
.spg .spg-add--solid.added { background: #8ff0b0; }

/* ---- overlapping covers for bundles ----
 * Covers are square images with the box in the middle ~60%, so each one steps 0.42 of its height:
 * the boxes overlap by about a third and the transparent sides can spill over harmlessly. */
.spg-fan { --fan-h: 200px; display: flex; align-items: center; justify-content: center; height: var(--fan-h); }
.spg-fan img {
  display: block; width: var(--fan-h); height: var(--fan-h); max-width: none; flex: none; object-fit: contain;
  margin-right: calc(var(--fan-h) * -.58);
  transform: rotate(calc((var(--i) - (var(--n) - 1) / 2) * 3deg)) translateY(calc((var(--i) - (var(--n) - 1) / 2) * (var(--i) - (var(--n) - 1) / 2) * 3px));
  z-index: calc(10 - var(--i)); position: relative;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .55));
}
.spg-fan img:last-child { margin-right: 0; }

/* ---- the genre's bundle in the grid: one banner across the row ---- */
.spg .spg-banner {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) auto; align-items: center; gap: 12px 40px;
  padding: 24px 40px 24px 24px;
  border-radius: 24px; border: 1px solid rgba(177, 151, 255, .35);
  background:
    radial-gradient(70% 140% at 15% 50%, rgba(139, 92, 246, .32), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01)), var(--spg-card);
}
.spg .spg-banner[hidden] { display: none; }
.spg .spg-banner .spg-bundle-art { display: block; }
.spg .spg-banner .spg-fan { --fan-h: 180px; }
.spg-bundle-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.spg .spg-kicker { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--spg-muted); }
.spg .spg-save { padding: 4px 10px; border-radius: 999px; background: #8ff0b0; color: #0D0D17; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.spg .spg-banner .spg-title { font-size: 26px; line-height: 1.2; }
.spg .spg-sub { font-size: 15px; line-height: 1.5; color: var(--spg-muted); }
.spg-bundle-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.spg .spg-banner .spg-price { font-size: 26px; }

/* ---- SIIK Genre Bundles widget: the same bundle, as standing cards ---- */
.spg--bundles { --spg-cols: 4; }
.spg--bundles .spg-grid { gap: 20px; }
.spg--bundles .spg-bundle {
  overflow: hidden;
  border-radius: 22px; border: 1px solid var(--spg-line);
  background: radial-gradient(120% 70% at 50% 0%, rgba(139, 92, 246, .26), transparent 65%), linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)), var(--spg-card);
  transition: border-color .2s ease, transform .2s ease;
}
.spg--bundles .spg-bundle:hover { border-color: rgba(177, 151, 255, .4); transform: translateY(-3px); }
.spg--bundles .spg-bundle-art { display: block; padding: 26px 12px 8px; }
.spg--bundles .spg-fan { --fan-h: 120px; }
.spg--bundles .spg-bundle .spg-body { padding: 12px 20px 20px; gap: 6px; flex: 1; }
.spg--bundles .spg-bundle .spg-title { font-size: 20px; }
.spg--bundles .spg-sub { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spg--bundles .spg-buy { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.spg--bundles .spg-bundle .spg-price { font-size: 20px; }
.spg--bundles .spg-bundle .spg-add { width: 100%; height: 44px; background: var(--spg-button); color: #0D0D17; font-weight: 600; }
.spg--bundles .spg-bundle .spg-add:hover { background: #C7B6FF; }

.spg-none { margin: 24px 0 0; color: var(--spg-muted); }
.spg-empty { color: var(--spg-muted); }

@media (max-width: 1024px) {
  .spg .spg-banner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); padding: 24px; }
  .spg-bundle-buy { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
  .spg--bundles { --spg-cols: 2; }
}
@media (max-width: 767px) {
  .spg-top { margin-bottom: 20px; gap: 10px; }
  .spg .spg-grid { gap: 28px 12px; }
  .spg-chips { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 32px); margin: 0 -16px; padding: 0 16px 4px; scroll-padding-inline: 16px; scrollbar-width: none; }
  .spg-chips::-webkit-scrollbar { display: none; }
  .spg .spg-chip { flex: none; height: 36px; font-size: 13px; }
  .spg-hint { font-size: 13px; }
  .spg .spg-art { aspect-ratio: 1 / 1; border-radius: 18px; }
  .spg .spg-art > a { padding: 16px 16px 12px; }
  .spg .spg-play { width: 36px; height: 36px; left: 8px; bottom: 8px; }
  .spg .spg-play svg { width: 14px; height: 14px; }
  .spg .spg-body { padding: 10px 2px 0; gap: 2px; }
  .spg .spg-line:first-child { flex-direction: column; align-items: flex-start; gap: 2px; }
  .spg .spg-title { font-size: 15px; }
  .spg .spg-price { font-size: 15px; }
  .spg .spg-meta { font-size: 12px; }
  .spg-count { display: none; }
  .spg .spg-line:last-child { flex-direction: column; align-items: stretch; gap: 10px; }
  .spg .spg-add--pill, .spg .spg-add--pill.button { width: 100%; height: 40px; padding: 0 12px; font-size: 13px; }

  .spg .spg-banner { grid-template-columns: 1fr; padding: 20px 18px; gap: 14px; border-radius: 20px; }
  .spg .spg-banner .spg-fan { --fan-h: 130px; }
  .spg .spg-banner .spg-title { font-size: 20px; }
  .spg .spg-sub { font-size: 14px; }
  .spg-bundle-buy { grid-column: auto; }
  .spg .spg-banner .spg-price { font-size: 20px; }
  .spg .spg-add--solid, .spg .spg-add--solid.button { height: 44px; }

  /* bundles widget: swipe through the cards */
  .spg--bundles .spg-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; gap: 12px; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .spg--bundles .spg-grid::-webkit-scrollbar { display: none; }
  .spg--bundles .spg-bundle { flex: 0 0 78%; scroll-snap-align: start; }
  .spg--bundles .spg-fan { --fan-h: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .spg * { transition: none !important; animation: none !important; }
}

/* ---- sticky demo player: shows while a pack's demo plays (lives on <body>) ---- */
.spg-player {
  --pl-text: #F4F4F8; --pl-muted: #A7AEC4; --pl-accent: #8B5CF6; --pl-button: #B197FF;
  position: fixed; z-index: 9991; left: 50%; bottom: 16px;
  width: min(1080px, calc(100% - 32px));
  display: grid; grid-template-columns: 52px minmax(0, 200px) 44px minmax(0, 1fr) auto auto 32px; align-items: center; gap: 14px;
  padding: 10px 12px 10px 10px; border-radius: 20px;
  color: var(--pl-text); font-family: Roboto, system-ui, sans-serif; font-weight: 400; line-height: 1.3; text-align: left;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)), rgba(14, 14, 24, .82);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 20px 50px rgba(0, 0, 0, .5);
  transform: translate(-50%, calc(100% + 40px)); opacity: 0; visibility: hidden;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .2s, visibility 0s .3s;
}
.spg-player.is-shown { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .2s, visibility 0s; }
.spg-player *, .spg-player *::before, .spg-player *::after { box-sizing: border-box; }
.spg-player p { margin: 0; }
.spg-player .spg-pl-cover { display: block; width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .05); }
.spg-player .spg-pl-cover img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.spg-pl-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.spg-player .spg-pl-title { color: var(--pl-text); font-family: Poppins, system-ui, sans-serif; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spg-player .spg-pl-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.spg-pl-sub { font-size: 13px; color: var(--pl-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spg-player button { all: unset; box-sizing: border-box; cursor: pointer; }
.spg-player button:focus-visible, .spg-player a:focus-visible, .spg-player canvas:focus-visible { outline: 2px solid var(--pl-button); outline-offset: 2px; }
.spg-player .spg-pl-toggle { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--pl-accent); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); transition: filter .15s, transform .15s; }
.spg-player .spg-pl-toggle:hover { filter: brightness(1.12); transform: scale(1.05); }
.spg-player .spg-pl-toggle svg { width: 16px; height: 16px; display: block; }
.spg-player .spg-pl-toggle .spg-i-pause { display: none; }
.spg-player.is-playing .spg-pl-toggle .spg-i-play { display: none; }
.spg-player.is-playing .spg-pl-toggle .spg-i-pause { display: block; }
.spg-player.is-loading .spg-pl-toggle { animation: spg-pulse 1s ease-in-out infinite; }
.spg-pl-wave { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 12px; color: var(--pl-muted); font-variant-numeric: tabular-nums; }
.spg-pl-wave canvas { display: block; width: 100%; height: 36px; cursor: pointer; touch-action: none; border-radius: 4px; }
.spg-pl-buy { display: flex; align-items: center; gap: 12px; }
.spg-pl-price { font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.spg-pl-price, .spg-pl-price .woocommerce-Price-amount, .spg-pl-price bdi, .spg-pl-price ins { color: var(--pl-text) !important; }
.spg-pl-price del, .spg-pl-price del .woocommerce-Price-amount, .spg-pl-price del bdi { color: var(--pl-muted) !important; }
.spg-pl-price del { opacity: .7; font-size: .8em; margin-right: 6px; }
.spg-pl-price ins { text-decoration: none; }
.spg-pl-price .woocommerce-price-suffix, .spg-pl-price .screen-reader-text { display: none; }
.spg-player .spg-add, .spg-player .spg-add.button {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px 0 14px; border-radius: 12px; white-space: nowrap;
  background: var(--pl-button); color: #0D0D17; font-family: Roboto, system-ui, sans-serif; font-size: 14px; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); transition: background-color .15s;
}
.spg-player .spg-add:hover { background: #C7B6FF; }
.spg-player .spg-add svg { width: 18px; height: 18px; display: block; }
.spg-player .spg-add .spg-i-done { display: none; }
.spg-player .spg-add.added { background: #8ff0b0; }
.spg-player .spg-add.added .spg-i-bag { display: none; }
.spg-player .spg-add.added .spg-i-done { display: block; }
.spg-player .spg-add.loading { opacity: .6; }
.spg-player .spg-add.loading::after, .spg-player .added_to_cart { display: none !important; }
.spg-player .spg-pl-cart { position: relative; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--pl-text); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.spg-player .spg-pl-cart:hover { background: rgba(255, 255, 255, .12); }
.spg-player .spg-pl-cart svg { width: 20px; height: 20px; display: block; }
.spg-pl-count:empty { display: none; }
.spg-pl-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center; background: var(--pl-accent); color: #fff; font-size: 11px; font-weight: 700; box-shadow: 0 0 0 2px #0E0E18; }
.spg-player .spg-pl-close { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--pl-muted); font-size: 20px; line-height: 1; }
.spg-player .spg-pl-close:hover { color: var(--pl-text); background: rgba(255, 255, 255, .08); }
.spg-player-on #fkcart-floating-toggler { opacity: 0 !important; visibility: hidden !important; transition: opacity .2s, visibility 0s .2s; }

@media (max-width: 900px) {
  .spg-player { grid-template-columns: 40px minmax(0, 1fr) 40px auto 40px 24px; grid-template-areas: "cover info toggle buy cart close" "wave wave wave wave wave wave"; gap: 8px 6px; padding: 10px; left: 12px; right: 12px; width: auto; bottom: 12px; transform: translateY(calc(100% + 40px)); }
  .spg-player.is-shown { transform: translateY(0); }
  .spg-player .spg-pl-cover { grid-area: cover; width: 40px; height: 40px; border-radius: 10px; }
  .spg-player .spg-pl-toggle, .spg-player .spg-pl-cart { width: 40px; height: 40px; }
  .spg-pl-info { grid-area: info; }
  .spg-player .spg-pl-toggle { grid-area: toggle; }
  .spg-pl-buy { grid-area: buy; }
  .spg-pl-wave { grid-area: wave; }
  .spg-player .spg-pl-close { grid-area: close; }
  .spg-player .spg-pl-cart { grid-area: cart; }
  .spg-pl-price { display: none; }
  .spg-pl-wave canvas { height: 28px; }
  .spg-player .spg-add, .spg-player .spg-add.button { height: 40px; padding: 0 11px; }
  .spg-player .spg-add span { display: none; }
  .spg-player .spg-pl-close { width: 24px; height: 24px; font-size: 18px; }
  .spg-player .spg-pl-title { font-size: 14px; }
  .spg-pl-sub { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .spg-player { transition: none !important; }
}
/* the theme focuses the waveform on click; only show the ring for keyboard users */
.spg-player canvas:focus:not(:focus-visible) { outline: none; }
/* without the side cart there is no cart button: give its column back */
@media (max-width: 900px) {
  .spg-player:not(:has(.spg-pl-cart)) { grid-template-columns: 40px minmax(0, 1fr) 40px auto 24px; grid-template-areas: "cover info toggle buy close" "wave wave wave wave wave"; }
}
/* free packs show "Free" instead of €0,00 */
.spg .spg-free { color: #8ff0b0; font-weight: 600; }
/* on product pages: while a pack demo plays, its player takes the bottom of the screen from the buy bar */
.spg-player-on .svp-bar.is-shown { opacity: 0 !important; visibility: hidden !important; pointer-events: none; }
/* clicking a cover with the mouse shouldn't leave the theme's focus outline around it */
.spg a:focus:not(:focus-visible), .spg button:focus:not(:focus-visible) { outline: none; box-shadow: none; }

/* ---- collection tabs (shop and collection pages) ---- */
.spg-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 0 0 20px; border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid var(--spg-line); width: fit-content; max-width: 100%; }
.spg .spg-tab {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 12px;
  color: var(--spg-muted); font-family: var(--spg-head); font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: color .15s, background-color .15s;
}
.spg .spg-tab:hover { color: var(--spg-text); background: rgba(255, 255, 255, .05); }
.spg .spg-tab.is-on { color: #0D0D17; background: var(--spg-button); font-weight: 600; }
.spg .spg-tab:focus-visible { outline: 2px solid var(--spg-button); outline-offset: 2px; }
@media (max-width: 767px) {
  .spg-tabs { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 32px); max-width: none; margin: 0 -16px 16px; padding: 4px 16px; border: 0; border-radius: 0; background: none; scrollbar-width: none; }
  .spg-tabs::-webkit-scrollbar { display: none; }
  .spg .spg-tab { flex: none; height: 38px; padding: 0 14px; font-size: 14px; border: 1px solid var(--spg-line); }
  .spg .spg-tab.is-on { border-color: var(--spg-button); }
}
/* "Samples, presets or kits from €17,99" under a full pack's name */
.spg .spg-versions { align-self: flex-start; font-size: 13px; font-weight: 500; color: var(--spg-button); text-decoration: none; }
.spg .spg-versions:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) { .spg .spg-versions { font-size: 12px; } }

/* Free pack gate: Download buttons + the email form (an Elementor form with the class siik-free-gate) */
.spg .spg-free-dl svg { width: 18px; height: 18px; display: block; flex: none; }
.spg-player .spg-free-dl .spg-i-dl { width: 18px; height: 18px; display: block; }
.elementor-element.siik-free-gate { scroll-margin-top: 120px; max-width: 560px !important; }
.siik-free-gate .elementor-form-fields-wrapper { flex-wrap: nowrap; gap: 10px; margin: 0 !important; }
.siik-free-gate .elementor-form-fields-wrapper > .elementor-field-group { padding: 0 !important; margin: 0 !important; }
.siik-free-gate .elementor-field-type-email { flex: 1 1 auto; width: auto !important; max-width: none !important; }
.siik-free-gate .elementor-field-type-submit { flex: 0 0 auto; width: auto !important; max-width: none !important; }
.elementor-widget-form.siik-free-gate .elementor-field-group .elementor-field.elementor-field-textual {
  height: 54px; min-height: 54px; padding: 0 22px; border-radius: 999px !important; font-size: 16px; color: #fff !important;
  background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.16) !important; box-shadow: none;
}
.elementor-widget-form.siik-free-gate .elementor-field-group .elementor-field::placeholder { color: rgba(255,255,255,.5); }
.elementor-widget-form.siik-free-gate .elementor-field-group .elementor-field:focus { border-color: #B197FF !important; outline: none; background: rgba(255,255,255,.09) !important; }
.elementor-widget-form.siik-free-gate .elementor-button {
  height: 54px; min-height: 54px; padding: 0 26px; border-radius: 999px !important; border: 0; white-space: nowrap;
  background: #B197FF !important; color: #0D0D17 !important; font-size: 16px; font-weight: 600; box-shadow: 0 10px 30px rgba(139,92,246,.35);
}
.elementor-widget-form.siik-free-gate .elementor-button:hover { background: #C7B6FF !important; }
.siik-free-gate .elementor-message-success { display: none; }
.siik-free-gate .elementor-message-danger { color: #ffb4b4; font-size: 14px; margin-top: 8px; }
.siik-free-unlocked .siik-free-gate .elementor-form { display: none; }
.siik-free-gate .sfg-done {
  display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 20px; border-radius: 999px; width: fit-content;
  background: rgba(143,240,176,.1); border: 1px solid rgba(143,240,176,.35); color: #dffbe9; font-size: 15px;
}
.siik-free-gate .sfg-done::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #8ff0b0; flex: none; }
.siik-free-gate .sfg-done b { color: #8ff0b0; font-weight: 600; }
.siik-free-gate.sfg-nudge .elementor-form { animation: sfg-nudge .9s ease; border-radius: 999px; }
@keyframes sfg-nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(177,151,255,0); } 30% { box-shadow: 0 0 0 6px rgba(177,151,255,.45); } }
@media (max-width: 600px) {
  .siik-free-gate .elementor-form-fields-wrapper { flex-wrap: wrap; }
  .siik-free-gate .elementor-field-type-email, .siik-free-gate .elementor-field-type-submit { flex: 1 1 100%; }
  .elementor-widget-form.siik-free-gate .elementor-button { width: 100%; }
  .siik-free-gate .sfg-done { border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) { .siik-free-gate.sfg-nudge .elementor-form { animation: none; } }
