/* Pack Insta Magnético — sticker library.
   Brand: dark plum-black night sky with the magnet's purple → magenta → coral → orange gradient,
   peach/pink/lilac sparkles and spaced uppercase labels. Dark by default, like the logo; a light
   theme (same gradient on a soft lilac-white) follows the device or the header toggle (html[data-theme]).
   Layout: sticky header (logo, language, search, group tabs) over one scrolling view
   (home shelves, group, category grid, search results or favorites). */
:root {
  --bg: #0A050D;
  --bg-glow: #2A0F3A;
  --surface: #160C1B;
  --surface-2: #21142A;
  --ink: #F2EDF0;
  --muted: #A897AD;
  --line: #2E2036;
  --purple: #A459F4;
  --magenta: #DA48B6;
  --coral: #FF5D72;
  --orange: #FF8F45;
  --peach: #FFC58F;
  --lilac: #C59BFF;
  --grad: linear-gradient(100deg, var(--purple), var(--magenta) 40%, var(--coral) 70%, var(--orange));
  --accent: #E64FA8;
  /* Tiles: light checker for colored/dark stickers, dark checker for white lettering */
  --chk-a: #EFE7F2; --chk-b: #FFFFFF;
  --chk-da: #1C1123; --chk-db: #261830;
  --scrim: rgba(5, 2, 8, .72);
  --shadow: 0 18px 50px rgba(0, 0, 0, .55);
  --header-bg: rgba(10, 5, 13, .88);
  --pole: #F2EDF0;
  --link: var(--peach);
  --focus: var(--peach);
  --display: "Outfit", "Avenir Next", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #FBF6FB;
    --bg-glow: #F1DCF8;
    --surface: #FFFFFF;
    --surface-2: #F5ECF8;
    --ink: #22122C;
    --muted: #6E5C78;
    --line: #E9DDEE;
    --scrim: rgba(34, 18, 44, .42);
    --shadow: 0 18px 50px rgba(80, 30, 100, .2);
    --header-bg: rgba(251, 246, 251, .88);
    --pole: #3A2747;
    --link: #B8338C;
    --focus: var(--magenta);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #FBF6FB;
  --bg-glow: #F1DCF8;
  --surface: #FFFFFF;
  --surface-2: #F5ECF8;
  --ink: #22122C;
  --muted: #6E5C78;
  --line: #E9DDEE;
  --scrim: rgba(34, 18, 44, .42);
  --shadow: 0 18px 50px rgba(80, 30, 100, .2);
  --header-bg: rgba(251, 246, 251, .88);
  --pole: #3A2747;
  --link: #B8338C;
  --focus: var(--magenta);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.45; min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: radial-gradient(1100px 520px at 50% -140px, var(--bg-glow), transparent 70%) no-repeat, var(--bg); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Header */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--header-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: grid; gap: 12px; padding-block: 12px 0; }
.brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.magnet { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 4px 14px rgba(218, 72, 182, .45)); }
.wordmark { display: grid; line-height: 1; }
.wordmark small { font-family: var(--display); font-weight: 600; font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--ink); opacity: .9; margin-bottom: 3px; }
.wordmark b { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 5.4vw, 28px); letter-spacing: -.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 2px; }
.langs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); flex: none; }
.langs button { border: 0; background: transparent; border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.brand-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.theme { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; padding: 0; color: var(--ink); }
.theme svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.theme .moon, :root[data-theme="light"] .theme .sun { display: none; }
:root[data-theme="light"] .theme .moon { display: block; }
.pole { fill: var(--pole); }
.gate-theme { position: fixed; top: max(14px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); z-index: 2; }

.search { position: relative; }
.search svg { position: absolute; left: 15px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; pointer-events: none; }
.search input { width: 100%; height: 48px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 0 44px 0 44px; font-size: 16px; -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus { outline: none; border-color: transparent; box-shadow: 0 0 0 2px var(--magenta), 0 0 24px rgba(218, 72, 182, .25); }
.search .clear { position: absolute; right: 6px; top: 50%; translate: 0 -50%; width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; }

.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-inline: -8px; padding-inline: 8px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 10px 10px 12px; font-weight: 500; font-size: 14px; color: var(--muted); white-space: nowrap; text-decoration: none; position: relative; }
.tab[aria-current="true"] { color: var(--ink); font-weight: 700; }
.tab[aria-current="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--grad); }

/* Views */
main { padding-block: 22px 56px; display: grid; gap: 34px; }
.loading, .empty { color: var(--muted); text-align: center; padding: 48px 0; }
.empty strong { display: block; font-family: var(--display); color: var(--ink); font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.vhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vhead h1, .shelf h2 { font-family: var(--display); font-weight: 700; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
.vhead h1 { font-size: clamp(24px, 5.5vw, 32px); }
.vhead .count { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.back { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; text-decoration: none; flex: none; }
.back svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; }

.shelf { display: grid; gap: 12px; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.shelf h2 { font-size: 13px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.shelf h2::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); flex: none; }
.shelf h2 small { font-family: var(--body); color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.more { font-size: 14px; font-weight: 700; color: var(--link); text-decoration: none; white-space: nowrap; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 12px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px 6px; scroll-snap-type: x proximity; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 640px) { .rail { grid-auto-columns: 160px; } }
.rail.stickers { grid-auto-columns: 104px; }

.catcard { display: grid; gap: 7px; text-decoration: none; }
.mosaic { aspect-ratio: 1; max-width: 100%; border-radius: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 9px; overflow: hidden;
  background: repeating-conic-gradient(var(--chk-a) 0 25%, var(--chk-b) 0 50%) 0 0 / 14px 14px; transition: transform .18s ease, box-shadow .18s ease; }
.catcard:hover .mosaic { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--magenta), 0 10px 28px rgba(218, 72, 182, .3); }
.mosaic img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.catcard b { font-family: var(--display); font-weight: 600; font-size: 15px; line-height: 1.2; }
.catcard span { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.chip:hover { border-color: var(--magenta); }
.chip small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; } }
.tile { aspect-ratio: 1; max-width: 100%; border: 0; border-radius: 18px; padding: 10px; position: relative; overflow: hidden;
  background: repeating-conic-gradient(var(--chk-a) 0 25%, var(--chk-b) 0 50%) 0 0 / 16px 16px; transition: transform .18s ease, box-shadow .18s ease; }
.tile.dark { background: repeating-conic-gradient(var(--chk-da) 0 25%, var(--chk-db) 0 50%) 0 0 / 16px 16px; box-shadow: inset 0 0 0 1px var(--line); }
.tile:hover { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--magenta), 0 10px 28px rgba(218, 72, 182, .3); }
.tile img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tile .heart { position: absolute; top: 7px; right: 7px; width: 16px; height: 16px; fill: var(--coral); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.sentinel { height: 1px; }

/* Editor sheet */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 20; display: grid; align-items: end; justify-items: center; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@media (min-width: 760px) { .scrim { align-items: center; padding: 24px; } }
.sheet { background: var(--surface); border: 1px solid var(--line); width: 100%; max-width: 880px; max-height: 94dvh; overflow-y: auto; border-radius: 24px 24px 0 0; box-shadow: var(--shadow);
  padding: 14px max(16px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  display: grid; gap: 14px; animation: up .22s ease; }
@media (min-width: 760px) { .sheet { border-radius: 24px; grid-template-columns: 1.1fr 1fr; padding: 22px; align-items: start; column-gap: 24px; } }
@keyframes up { from { transform: translateY(24px); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .sheet, .tile, .mosaic { animation: none; transition: none; } }
.sheet-head { display: flex; align-items: center; gap: 10px; }
@media (min-width: 760px) { .sheet-head { grid-column: 1 / -1; } }
.sheet-title { flex: 1; min-width: 0; }
.sheet-head h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 21px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-head h3::first-letter { text-transform: uppercase; }
.sheet-head p { margin: 0; color: var(--muted); font-size: 13px; }
.x, .fav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); font-size: 22px; line-height: 1; flex: none; display: grid; place-items: center; }
.fav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.fav[aria-pressed="true"] { border-color: var(--coral); color: var(--coral); }
.fav[aria-pressed="true"] svg { fill: currentColor; }

.stage { border-radius: 20px; aspect-ratio: 1; max-width: 100%; position: relative; overflow: hidden; width: min(100%, 36dvh); margin-inline: auto; }
@media (min-width: 760px) { .stage { width: 100%; } }
.stage[data-bg="checker"] { background: repeating-conic-gradient(var(--chk-a) 0 25%, var(--chk-b) 0 50%) 0 0 / 20px 20px; }
.stage[data-bg="dark"] { background: repeating-conic-gradient(var(--chk-da) 0 25%, var(--chk-db) 0 50%) 0 0 / 20px 20px; box-shadow: inset 0 0 0 1px var(--line); }
.stage[data-bg="light"] { background: #F7F4F8; }
.stage[data-bg="photo"] { background: linear-gradient(160deg, #F2B5A0, #C97B8E 45%, #6D5A8C); }
.stage img { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); max-width: none; object-fit: contain; -webkit-touch-callout: default; }
.stage .busy { position: absolute; right: 12px; bottom: 12px; font-size: 12px; color: var(--ink); background: var(--surface); padding: 2px 8px; border-radius: 999px; }
.bgs { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.bgs button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); padding: 0; }
.bgs button[aria-pressed="true"] { border-color: var(--peach); }
.bgs [data-bg="checker"] { background: repeating-conic-gradient(#ddd 0 25%, #fff 0 50%) 0 0 / 8px 8px; }
.bgs [data-bg="dark"] { background: repeating-conic-gradient(#1C1123 0 25%, #2B1B35 0 50%) 0 0 / 8px 8px; }
.bgs [data-bg="light"] { background: #F7F4F8; }
.bgs [data-bg="photo"] { background: linear-gradient(160deg, #F2B5A0, #6D5A8C); }

.controls { display: grid; gap: 16px; align-content: start; }
.label { font-family: var(--display); font-size: 11.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.swatches { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; max-width: 360px; }
.sw { aspect-ratio: 1; max-width: 100%; border-radius: 50%; border: 1px solid rgba(140, 120, 150, .4); padding: 0; position: relative; }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--peach); }
.sw.orig { background: conic-gradient(var(--purple), var(--magenta), var(--coral), var(--orange), var(--peach), var(--lilac), var(--purple)); }
.sw.custom { overflow: hidden; background: var(--surface-2); display: grid; place-items: center; font-size: 18px; color: var(--muted); }
.sw.custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.modes { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; background: var(--bg); }
.modes button { border: 0; background: transparent; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 500; color: var(--muted); }
.modes button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.hint { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }

.actions { display: grid; gap: 8px; }
.actions .row { display: flex; gap: 8px; }
.actions .row .btn { flex: 1; }
.btn { height: 52px; border-radius: 16px; border: 0; font-weight: 700; font-size: 15.5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; }
.btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 2; flex: none; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(218, 72, 182, .35); text-shadow: 0 1px 2px rgba(80, 10, 50, .3); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: var(--surface-2); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--magenta); }
.tip { font-size: 13px; color: var(--muted); margin: 0; }

.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; z-index: 40; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; max-width: min(92vw, 440px); box-shadow: var(--shadow); text-align: center; }

/* Sign-in gate: the logo poster from the brand art, with the email → code steps. */
.gate { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 32px max(16px, env(safe-area-inset-right, 0px)) 32px max(16px, env(safe-area-inset-left, 0px));
  background: radial-gradient(600px 420px at 50% 28%, rgba(164, 89, 244, .28), transparent 70%), radial-gradient(500px 300px at 100% 0%, rgba(255, 143, 69, .12), transparent 70%), var(--bg); }
.gate-card { width: 100%; max-width: 400px; display: grid; justify-items: center; text-align: center; }
.gate-magnet { width: 92px; height: 92px; filter: drop-shadow(0 10px 34px rgba(218, 72, 182, .55)); margin-bottom: 18px; }
.gate-kicker { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: .42em; text-transform: uppercase; font-size: 15px; padding-left: .42em; display: flex; align-items: center; gap: 14px; }
.gate-kicker::before, .gate-kicker::after { content: ""; width: 36px; height: 1.5px; background: linear-gradient(90deg, transparent, var(--orange)); }
.gate-kicker::after { transform: scaleX(-1); }
.gate-title { margin: 2px 0 6px; font-family: var(--display); font-weight: 800; font-size: clamp(46px, 13vw, 64px); letter-spacing: -.03em; line-height: 1.05;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gate-sub { margin: 0 0 30px; font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.gate-form { width: 100%; display: grid; gap: 12px; text-align: left; }
.gate-form label { font-size: 14.5px; color: var(--ink); }
.gate-form input { height: 54px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); padding: 0 16px; font-size: 17px; width: 100%; }
.gate-form input:focus { outline: none; border-color: transparent; box-shadow: 0 0 0 2px var(--magenta), 0 0 24px rgba(218, 72, 182, .25); }
#code { font-size: 26px; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; padding-left: calc(16px + .5em); }
.gate-form .btn { width: 100%; }
.gate-form .btn:disabled { opacity: .6; cursor: progress; }
.gate-links { margin: 0; text-align: center; font-size: 13.5px; color: var(--muted); }
.gate-links button { background: none; border: 0; padding: 4px; color: var(--link); font-weight: 600; }
.gate-msg { margin: 16px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; text-align: left; width: 100%; }
.gate-msg.error { border-color: rgba(255, 93, 114, .5); }

.foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 18px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot b { color: var(--ink); font-weight: 600; word-break: break-all; }
.foot button { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; }

/* Category covers with fewer than four stickers: one fills the card, two stack. */
.mosaic.n1 { grid-template-columns: 1fr; padding: 14px; }
.mosaic.n2 { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
.mosaic.n3 img:first-child { grid-column: 1 / -1; }

/* Story backgrounds (fondos): 9:16 posters, play badge on videos, viewer sheet */
.bggrid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.tile.bgtile { aspect-ratio: 9 / 16; padding: 0; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.tile.bgtile img { object-fit: cover; }
.tile .play { position: absolute; left: 8px; bottom: 8px; width: 26px; height: 26px; padding: 6px 5px 6px 7px; border-radius: 50%; fill: #fff; background: rgba(10, 5, 13, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mosaic.bgmosaic { grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 8px; }
.mosaic.bgmosaic img { object-fit: cover; border-radius: 8px; }
.bgsheet { max-width: 460px; display: grid; gap: 14px; }
.bgmedia { display: grid; place-items: center; }
.bgmedia video, .bgmedia img { display: block; width: auto; max-width: 100%; height: min(58dvh, 560px); aspect-ratio: 9 / 16; object-fit: cover; border-radius: 18px; background: var(--surface-2); }
a.btn { text-decoration: none; color: inherit; }
@media (min-width: 760px) { .bgsheet { max-width: 680px; grid-template-columns: auto 1fr; align-items: center; } }

/* Category cover: one featured sticker on a soft tint instead of a checkerboard collage. */
.mosaic.hero { display: grid; grid-template: 1fr / 1fr; padding: 14%; background: radial-gradient(circle at 50% 40%, #fff 0, var(--tint) 75%); }
.mosaic.hero img { filter: drop-shadow(0 6px 12px rgba(60, 20, 80, .22)); }

/* Pack extras: secret GIF words and songs. */
.howto { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 14px; max-width: 640px; }
.howto b { color: var(--ink); }
.subhead { font-size: 15px; margin: 22px 0 10px; }
.subhead a { color: inherit; text-decoration: none; }
.gifgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.gifcard { display: grid; gap: 4px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.rail .gifcard { width: 132px; flex: none; }
.gifcard img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 16px; background: var(--surface-2); transition: transform .18s ease, box-shadow .18s ease; }
.gifcard:hover img { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--magenta), 0 10px 28px rgba(218, 72, 182, .3); }
.gifcard b { font-size: 14px; overflow-wrap: anywhere; }
.gifcard span { font-size: 12px; color: var(--muted); }
.songdesc { color: var(--muted); font-size: 13px; margin: -4px 0 8px; }
.songs ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.song { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.song:hover { border-color: var(--magenta); }
.song span { display: grid; min-width: 0; }
.song b { font-size: 14px; font-weight: 600; }
.song small { font-size: 12px; color: var(--muted); }
.song svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.gifnow { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 8px; aspect-ratio: 3 / 4; border-radius: 16px; background: #3a3a3c; place-items: center; }
.gifnow img { width: 100%; height: 100%; object-fit: contain; }
.gifcard.gone img, .gifcard.gone .gifnow { filter: grayscale(1); opacity: .45; }
.gifcard.gone span { color: var(--coral, #FF6F61); }
.giphy { color: var(--muted); font-size: 12px; text-align: center; margin: 28px 0 8px; }
