/* Releases: shared foundation + per-type presentation (square, landscape, portrait, product, date, text).
   Colours come from the global tokens and the page's artwork palette, never hard-coded, so every theme works. */

/* ---------- foundation ---------- */
.rel { display: grid; align-content: start; gap: var(--s3); min-width: 0; }
.rel-media { position: relative; display: block; overflow: hidden; border-radius: var(--r-sm); background: var(--surface-2); isolation: isolate; }
.rel-media .art, .rel-ph { width: 100%; aspect-ratio: var(--rel-ar, 1 / 1); transition: transform 600ms var(--ease-out); }
@media (hover: hover) { .rel-media:hover .art { transform: scale(1.035); } }
.rel-body { display: grid; gap: 3px; min-width: 0; }
.rel-kicker { color: var(--text-2); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.rel-kicker .sep { margin: 0 .45em; opacity: .5; }
.rel-title { font-size: 16px; font-weight: 650; letter-spacing: -.02em; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.rel-title a { transition: color var(--t-fast); }
@media (hover: hover) { .rel-title a:hover { color: var(--accent-text); } }
.rel-meta, .rel-summary { color: var(--text-2); font-size: 13px; line-height: 1.4; }
.rel-summary { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rel-cta { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; color: var(--accent-text); font-size: 13px; font-weight: 600; }
.rel-cta .icon { width: 13px; height: 13px; font-size: 13px; }
.rel-badge { position: absolute; z-index: 1; top: 8px; left: 8px; padding: 3px 8px; border-radius: 6px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.rel-badge--draft { background: var(--surface-3); color: var(--text); }
.rel-media .play-chip { opacity: .95; transform: none; }

/* placeholder cover: typographic, tinted by title, with the type icon */
.rel-ph { position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(155deg, hsl(var(--hue) 30% 30%), hsl(calc(var(--hue) + 40) 28% 16%)); color: rgb(255 255 255 / .9); }
.rel-ph b { font: 700 clamp(44px, 9vw, 84px)/1 var(--font-display); letter-spacing: -.05em; opacity: .9; }
.rel-ph .icon { position: absolute; right: 10%; bottom: 10%; width: 22%; height: 22%; opacity: .28; }

/* ---------- layouts ---------- */
.rel--square { --rel-ar: 1 / 1; }
.rel--landscape { --rel-ar: 16 / 9; }
.rel--portrait { --rel-ar: 2 / 3; }
.rel--product { --rel-ar: 4 / 5; }
.rel--square .rel-media, .rel--portrait .rel-media { border-radius: var(--r-xs); box-shadow: 0 8px 24px rgb(0 0 0 / .25); }
.rel--landscape .rel-media { border-radius: var(--r-sm); }
.rel--product .rel-media { border-radius: var(--r-sm); }

/* events: the date is the artwork */
.rel--date { grid-template-columns: auto 1fr; align-items: start; gap: var(--s4); padding: var(--s3) 0; box-shadow: 0 -.5px 0 var(--sep); }
.rel-datebox { display: grid; place-items: center; align-content: center; width: 64px; height: 72px; border-radius: var(--r-sm); background: var(--fill); text-align: center; }
.rel-datebox b { font: 700 28px/1 var(--font-display); letter-spacing: -.04em; }
.rel-datebox span { margin-top: 3px; color: var(--accent-text); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.rel-datebox .icon { width: 26px; height: 26px; font-size: 26px; color: var(--text-2); }
.rel--date .rel-title { font-size: 17px; }

/* announcements: typography only */
.rel--text { padding: var(--s4) 0; box-shadow: 0 -.5px 0 var(--sep); }
.rel--text .rel-title { font-size: 18px; -webkit-line-clamp: 3; }

/* ---------- rows: swipeable on phones, grids from tablet up ---------- */
.rel-row { display: flex; gap: var(--s3); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; padding-inline: var(--gutter); margin-inline: calc(var(--gutter) * -1); scroll-padding-inline: var(--gutter); }
.rel-row::-webkit-scrollbar { display: none; }
.rel-row > * { flex: none; scroll-snap-align: start; }
@media (max-width: 819px) {
  .rel-row--square > * { width: min(44vw, 188px); }
  .rel-row--landscape > * { width: min(74vw, 300px); }
  .rel-row--portrait > * { width: min(40vw, 168px); }
  .rel-row--product > * { width: min(44vw, 188px); }
}
.rel-row--date, .rel-row--text { display: grid; overflow: visible; padding-inline: 0; margin-inline: 0; gap: 0; max-width: 680px; }
@media (min-width: 820px) {
  .rel-row { display: grid; overflow: visible; padding-inline: 0; margin-inline: 0; gap: var(--s6) var(--s5); }
  .rel-row--square { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .rel-row--landscape { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .rel-row--portrait { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
  .rel-row--product { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .rel-row--date, .rel-row--text { gap: 0; }
}
.rel-section .section-head h2 { font-size: 22px; }

/* ---------- spotlight (featured / coming soon / latest) ---------- */
.spotlight-wrap { margin-top: var(--s6); }
.spotlight { position: relative; isolation: isolate; display: grid; gap: var(--s5); padding: var(--s5); border-radius: var(--r-lg); background: linear-gradient(160deg, var(--artwork-primary), var(--artwork-bg) 72%); color: #fff; overflow: hidden; }
.spotlight::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 100% 0, color-mix(in srgb, var(--artwork-glow) 35%, transparent), transparent 60%); }
.spotlight-media { display: block; width: min(100%, 360px); margin-inline: auto; overflow: hidden; border-radius: var(--r-sm); box-shadow: 0 24px 60px rgb(0 0 0 / .45); background: var(--artwork-bg); }
.spotlight--landscape .spotlight-media, .spotlight--text .spotlight-media { --rel-ar: 16 / 9; width: 100%; max-width: 560px; }
.spotlight--square .spotlight-media { --rel-ar: 1 / 1; }
.spotlight--portrait .spotlight-media { --rel-ar: 2 / 3; width: min(62%, 280px); }
.spotlight--product .spotlight-media { --rel-ar: 4 / 5; width: min(70%, 320px); }
.spotlight--date .spotlight-media { --rel-ar: 16 / 9; }
.spotlight-media .rel-art { aspect-ratio: var(--rel-ar); }
.spotlight-body { display: grid; align-content: center; gap: var(--s3); min-width: 0; }
.spotlight .kicker { color: rgb(255 255 255 / .78); }
.spotlight .kicker .sep { margin: 0 .5em; opacity: .55; }
.spotlight-title { font-size: clamp(30px, 8vw, 52px); font-weight: 750; letter-spacing: -.04em; line-height: 1.04; overflow-wrap: anywhere; text-wrap: balance; }
.spotlight-summary { color: rgb(255 255 255 / .82); font-size: 16px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.spotlight .rel-meta { color: rgb(255 255 255 / .7); font-size: 14px; }
.spotlight-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
.spotlight-actions .btn--tint { background: rgb(255 255 255 / .18); color: #fff; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.spotlight-actions .btn .icon { width: 15px; height: 15px; font-size: 15px; }
.spotlight-more { display: flex; gap: var(--s3); overflow-x: auto; scrollbar-width: none; padding-top: var(--s4); box-shadow: 0 -.5px 0 rgb(255 255 255 / .16); }
.spotlight-chip { display: flex; flex: none; align-items: center; gap: var(--s3); max-width: 260px; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.spotlight-chip small { display: block; color: rgb(255 255 255 / .6); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.spotlight-chip-art { width: 48px; flex: none; overflow: hidden; border-radius: 6px; }
.spotlight-chip-art .art, .spotlight-chip-art .rel-ph { --rel-ar: 1 / 1; aspect-ratio: 1; }
.spotlight-chip-art .rel-ph b { font-size: 22px; } .spotlight-chip-art .rel-ph .icon { display: none; }
@media (max-width: 599px) { .spotlight { margin-inline: calc(var(--gutter) * -1); border-radius: 0; padding: var(--s6) var(--gutter); } .spotlight-wrap { margin-top: var(--s4); } }
@media (min-width: 820px) {
  .spotlight { grid-template-columns: minmax(0, 380px) 1fr; gap: var(--s10); padding: var(--s10); align-items: center; }
  .spotlight--landscape, .spotlight--text, .spotlight--date { grid-template-columns: minmax(0, 520px) 1fr; }
  .spotlight-media { margin-inline: 0; }
  .spotlight-more { grid-column: 1 / -1; }
}

/* ---------- release page ---------- */
.release { position: relative; isolation: isolate; padding-bottom: var(--s10); }
.release-wash { position: absolute; z-index: -1; inset: 0 0 auto 0; height: 70vh; pointer-events: none; background: linear-gradient(to bottom, var(--artwork-primary), var(--artwork-bg) 55%, var(--bg)); opacity: .9; }
.release-top { display: grid; gap: var(--s6); padding-top: calc(var(--topbar-h) + var(--s2)); }
.release-cover { --rel-ar: 1 / 1; width: min(100%, 440px); margin-inline: auto; overflow: hidden; border-radius: var(--r-sm); box-shadow: 0 30px 80px rgb(0 0 0 / .5); background: var(--artwork-bg); }
.release--landscape .release-cover, .release--date .release-cover, .release--text .release-cover { --rel-ar: 16 / 9; width: 100%; max-width: 720px; }
.release--portrait .release-cover { --rel-ar: 2 / 3; width: min(70%, 320px); }
.release--product .release-cover { --rel-ar: 4 / 5; width: min(80%, 380px); }
.release-cover .rel-art { aspect-ratio: var(--rel-ar); }
.release-info { display: grid; align-content: center; gap: var(--s3); min-width: 0; color: #fff; }
.release-info .kicker { color: rgb(255 255 255 / .78); }
.release-info .kicker .sep { margin: 0 .5em; opacity: .55; }
.release-title { font-size: clamp(32px, 9vw, 60px); font-weight: 760; letter-spacing: -.045em; line-height: 1.03; overflow-wrap: anywhere; text-wrap: balance; }
.release-by { display: inline-flex; align-items: center; gap: var(--s2); width: fit-content; font-size: 16px; font-weight: 600; color: rgb(255 255 255 / .92); }
.release-by .avatar { --size: 28px; }
.release-summary { color: rgb(255 255 255 / .85); font-size: 17px; line-height: 1.5; max-width: 60ch; }
.release-cta { display: grid; gap: var(--s3); margin-top: var(--s3); max-width: 420px; }
.release-cta .btn--light { min-height: 52px; font-size: 16px; }
.also-on { display: grid; margin: 0; padding: 0; list-style: none; border-radius: var(--r-md); background: rgb(255 255 255 / .1); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); overflow: hidden; }
.also-on li + li { box-shadow: 0 -.5px 0 rgb(255 255 255 / .16); }
.also-on a { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 48px; padding: 0 var(--s4); font-size: 15px; font-weight: 500; transition: background var(--t-fast); }
.also-on a:hover { background: rgb(255 255 255 / .1); }
.also-on .icon { width: 15px; height: 15px; font-size: 15px; opacity: .7; }
.also-on small { color: rgb(255 255 255 / .6); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.release-detail { display: grid; gap: var(--s8); margin-top: var(--s10); max-width: 760px; }
.release-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s5) var(--s4); margin: 0; }
.release-meta div { display: grid; gap: 2px; }
.release-meta dt { color: var(--text-3); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.release-meta dd { margin: 0; font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.release-body { color: var(--text); font-size: 17px; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; max-width: 62ch; }
.draft-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--topbar-h); padding: var(--s3) var(--gutter); background: color-mix(in srgb, var(--accent) 22%, var(--bg)); font-size: 14px; }
@media (min-width: 820px) {
  .release-top { grid-template-columns: minmax(0, 440px) 1fr; gap: var(--s12); align-items: start; padding-top: calc(var(--topbar-h) + var(--s8)); }
  .release--landscape .release-top, .release--date .release-top, .release--text .release-top { grid-template-columns: minmax(0, 560px) 1fr; }
  .release-cover { margin-inline: 0; }
}
@media (max-width: 599px) { .release-cover { width: calc(100% + var(--gutter) * 2) !important; max-width: none !important; margin-inline: calc(var(--gutter) * -1); border-radius: 0; } }

/* ---------- studio (creator dashboard) ---------- */
.studio-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4); }
.studio-tabs { display: flex; gap: var(--s2); overflow-x: auto; scrollbar-width: none; margin: var(--s2) calc(var(--gutter) * -1) var(--s4); padding-inline: var(--gutter); }
.studio-list { display: grid; }
.studio-row { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: var(--s3); padding: var(--s3) 0; }
.studio-row + .studio-row { box-shadow: 0 -.5px 0 var(--sep); }
.studio-thumb { width: 64px; overflow: hidden; border-radius: 6px; }
.studio-thumb .art, .studio-thumb .rel-ph { aspect-ratio: 1; --rel-ar: 1 / 1; }
.studio-thumb .rel-ph b { font-size: 26px; } .studio-thumb .rel-ph .icon { display: none; }
.studio-main { min-width: 0; display: grid; gap: 2px; }
.studio-main strong { overflow: hidden; font-size: 16px; font-weight: 600; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.studio-main .meta { display: flex; flex-wrap: wrap; gap: 0 .4em; align-items: center; }
.status { display: inline-block; padding: 1px 7px; border-radius: 5px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--fill-hover); color: var(--text-2); }
.status--published { background: color-mix(in srgb, #2fb457 22%, transparent); color: var(--success-text, #2fb457); }
.status--upcoming { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent-text); }
.studio-actions { display: flex; align-items: center; gap: 2px; }
.studio-actions form { display: contents; }
.studio-actions .icon-btn { width: 40px; height: 40px; }
.studio-actions .icon-btn.is-on { color: var(--accent-text); }
@media (max-width: 599px) { .studio-row { grid-template-columns: 56px 1fr; } .studio-thumb { width: 56px; } .studio-actions { grid-column: 1 / -1; justify-content: flex-end; margin-top: -4px; } }

/* ---------- release chooser + editor ---------- */
.type-groups { display: grid; gap: var(--s6); }
.type-group h2 { margin-bottom: var(--s3); color: var(--text-2); font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.type-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s2); }
.type-tile { display: grid; justify-items: start; gap: var(--s2); min-height: 84px; padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--surface); text-align: left; font-size: 15px; font-weight: 600; transition: background var(--t-fast), transform var(--t-fast) var(--ease); }
.type-tile:active { transform: scale(.97); }
@media (hover: hover) { .type-tile:hover { background: var(--surface-2); } }
.type-tile .icon { color: var(--accent-text); }
.paste-box { display: grid; gap: var(--s2); padding: var(--s4); border-radius: var(--r-md); background: var(--surface); }
.paste-box .row { display: grid; grid-template-columns: 1fr auto; gap: var(--s2); }
.paste-box input { min-height: 46px; padding: 0 var(--s4); border: 0; border-radius: var(--r-sm); background: var(--fill); color: var(--text); font-size: 16px; outline: none; min-width: 0; }
.paste-box input:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.or-rule { display: flex; align-items: center; gap: var(--s3); color: var(--text-3); font-size: 13px; }
.or-rule::before, .or-rule::after { content: ""; flex: 1; height: .5px; background: var(--sep); }
.dest-edit { display: grid; gap: var(--s2); }
.dest-row { display: grid; grid-template-columns: 1fr auto; gap: var(--s2); align-items: start; padding: var(--s3); border-radius: var(--r-sm); background: var(--surface); }
.dest-row .fields { display: grid; gap: var(--s2); min-width: 0; }
.dest-row input[type="text"] { width: 100%; min-height: 44px; padding: 0 var(--s3); border: 0; border-radius: var(--r-xs); background: var(--fill); color: var(--text); font-size: 15px; outline: none; }
.dest-row input:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.dest-detected { min-height: 1.2em; color: var(--text-2); font-size: 13px; }
.dest-detected.is-known { color: var(--accent-text); font-weight: 600; }
.dest-primary { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; }
.meta-fields { display: grid; gap: var(--s4); }
@media (min-width: 700px) { .meta-fields { grid-template-columns: 1fr 1fr; } }
.field select { width: 100%; min-height: 46px; padding: 0 14px; border: 0; border-radius: var(--r-sm); background: var(--fill); color: var(--text); font-size: 16px; outline: none; }
.field select:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.field select option { background: var(--surface-2); }
.cover-edit { display: grid; gap: var(--s3); }
.cover-preview { display: grid; place-items: center; min-height: 160px; max-width: 320px; padding: var(--s2); border-radius: var(--r-sm); background: var(--surface-2); overflow: hidden; }
.cover-preview img { max-width: 100%; max-height: 260px; object-fit: contain; }
.editor-status { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }

/* ---------- Following feed ---------- */
.act-list { display: grid; gap: var(--s6); }
.act { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s3); }
.act-main { display: grid; gap: var(--s3); min-width: 0; }
.act-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .35em; color: var(--text-2); font-size: 14px; line-height: 1.4; }
.act-who { color: var(--text); font-weight: 650; letter-spacing: -.01em; }
.act-who:hover { color: var(--accent-text); }
.act-line .verified { align-self: center; } .act-line .verified .icon { width: 15px; height: 15px; font-size: 15px; }
.act-line .sep { margin: 0 .2em; opacity: .5; }
.act .rel { max-width: 340px; }
.act .rel--landscape { max-width: 460px; }
.act .rel--date, .act .rel--text { max-width: 560px; }
.feed-group { margin-top: var(--s8); }
.feed-group:first-child { margin-top: 0; }
@media (min-width: 820px) { .act { grid-template-columns: 48px minmax(0, 1fr); gap: var(--s4); } .act .rel--square { max-width: 300px; } }

/* Creator cards (discovery rails) */
.rail--pcards { display: flex; gap: var(--s4); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: var(--s2); }
.pcard { flex: 0 0 min(300px, 82vw); width: min(300px, 82vw); min-width: 0; overflow: hidden; scroll-snap-align: start; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s4); border-radius: var(--r-lg, 18px); background: var(--surface, rgba(127,127,127,.08)); }
.pcard-link { display: flex; align-items: center; gap: var(--s3); min-width: 0; flex: 1; color: inherit; text-decoration: none; }
.pcard-text { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.pcard-text strong, .pcard-text .meta, .pcard-latest { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-latest { font-size: .8rem; color: var(--text-2); }
.pcard .btn { flex: none; }
.rel-by { color: var(--text-2); text-decoration: none; }
.rel-by:hover { color: var(--text); }

/* Notifications bell */
.bell { position: relative; }
.bell-dot { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent, #e0314b); color: #fff; font: 700 11px/18px var(--font, system-ui); text-align: center; }
.act--new .act-line::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--accent, #e0314b); }

/* Insights */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--s4); margin-bottom: var(--s6); }
.stat { display: flex; flex-direction: column; gap: 4px; padding: var(--s4); border-radius: var(--r-lg, 18px); background: var(--surface, rgba(127,127,127,.08)); min-width: 0; }
.stat-label { font-size: .8rem; color: var(--text-2); }
.stat-value { font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: .8rem; color: var(--text-2); }
.spark { width: 100%; height: 48px; margin-top: var(--s2); color: var(--accent, #e0314b); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: var(--s3) var(--s2); text-align: left; border-bottom: 1px solid var(--line, rgba(127,127,127,.2)); }
.table thead th { font-size: .78rem; font-weight: 600; color: var(--text-2); }
.table tbody th { font-weight: 600; }
.table tbody th .meta { display: block; font-weight: 400; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

.release-cal { margin-top: var(--s3); font-size: .9rem; }
.release-cal .icon, .artist-about + .meta .icon { width: 1em; height: 1em; vertical-align: -.15em; font-size: 1em; }

/* Countdown on upcoming release pages */
.countdown { display: inline-flex; gap: var(--s2); margin: var(--s3) 0; }
.countdown > div { display: grid; justify-items: center; min-width: 64px; padding: 10px 8px; border-radius: 14px; background: rgb(255 255 255 / .14); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.countdown b { font: 700 1.6rem/1 var(--font-display, inherit); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.countdown span { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; margin-top: 4px; }
.countdown-done { font-weight: 600; }
@media (max-width: 420px) { .countdown > div { min-width: 56px; } }

/* Embedded player (click to load) */
.player-embed { margin-top: var(--s4); width: min(100%, 560px); height: var(--h, auto); border-radius: 16px; overflow: hidden; background: rgb(0 0 0 / .35); }
.player-embed--video { aspect-ratio: 16 / 9; }
.player-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.player-embed-btn { all: unset; box-sizing: border-box; cursor: pointer; display: grid; place-content: center; justify-items: center; gap: 4px; width: 100%; height: 100%; min-height: 96px; color: #fff; background: linear-gradient(135deg, rgb(255 255 255 / .16), rgb(255 255 255 / .06)); }
.player-embed-btn:hover { background: rgb(255 255 255 / .22); }
.player-embed-btn:focus-visible { outline: 3px solid var(--accent, #fff); outline-offset: -3px; }
.player-embed-btn .icon { width: 36px; height: 36px; font-size: 36px; }
.player-embed-btn span { font-weight: 600; }
.player-embed-btn small { opacity: .7; font-size: .75rem; }

/* Studio: arrange */
.arrange-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.arrange .icon.up { transform: rotate(-90deg); }
.arrange .icon.down { transform: rotate(90deg); }
.arrange .icon-btn[disabled] { opacity: .3; cursor: default; }

/* Like button */
.release-like { margin-top: var(--s3); }
.like-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 600; color: inherit; background: rgb(255 255 255 / .16); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.like-btn:hover { background: rgb(255 255 255 / .24); }
.like-btn[aria-pressed="true"] { background: rgb(255 255 255 / .92); color: #111; }
.like-btn[aria-pressed="true"] .icon.on, .like-btn .icon.off { display: block; }
.like-btn[aria-pressed="true"] .icon.off, .like-btn .icon.on { display: none; }
.like-btn[aria-pressed="true"] .icon.on { color: var(--accent, #e0314b); }
.like-btn:disabled { opacity: .6; }
.like-count { font-variant-numeric: tabular-nums; opacity: .75; }

.rel-row--grid { flex-wrap: wrap; overflow: visible; row-gap: var(--s5); scroll-snap-type: none; }

/* Pinned message on creator pages */
.announce { display: flex; align-items: center; gap: var(--s3); margin: var(--s4) 0 0; padding: var(--s3) var(--s4); border-radius: var(--r-lg, 18px); background: color-mix(in srgb, var(--accent, #e0314b) 16%, var(--surface, rgb(127 127 127 / .1))); border: 1px solid color-mix(in srgb, var(--accent, #e0314b) 35%, transparent); }
.announce > .icon { flex: none; width: 22px; height: 22px; font-size: 22px; color: var(--accent, #e0314b); }
.announce p { flex: 1; margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.announce .btn { flex: none; min-height: 36px; }

.side-badge { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent, #e0314b); color: #fff; font: 700 11px/20px var(--font, system-ui); text-align: center; }

/* Report disclosure */
.report { margin: var(--s6) 0 0; font-size: .85rem; color: var(--text-3); }
.report summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; list-style: none; padding: 6px 0; }
.report summary::-webkit-details-marker { display: none; }
.report summary:hover { color: var(--text-2); }
.report-form { display: grid; gap: var(--s3); max-width: 420px; margin-top: var(--s2); padding: var(--s4); border-radius: 16px; background: var(--surface, rgb(127 127 127 / .1)); color: var(--text-2); }
.report-form label { display: grid; gap: 6px; }
.report-form select, .report-form textarea { font: inherit; color: var(--text); background: var(--fill, rgb(127 127 127 / .14)); border: 0; border-radius: 10px; padding: 10px 12px; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s8); }

/* Browse, mixed types: a calm uniform grid of square tiles */
.rel-row--mixed { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: var(--s5) var(--s4); overflow: visible; align-items: start; padding-inline: 0; margin-inline: 0; scroll-snap-type: none; }
.rel-row--mixed > * { width: auto !important; }
.rel-row--mixed .rel { --rel-ar: 1 / 1; }
.rel-row--mixed .rel--date, .rel-row--mixed .rel--text { grid-column: span 2; }

/* Milestone badges */
.badges { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; margin: 0 0 var(--s4); padding: 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--text); background: color-mix(in srgb, var(--accent, #e0314b) 14%, var(--surface, rgb(127 127 127 / .1))); }
.badge .icon { width: 18px; height: 18px; font-size: 18px; color: var(--accent-text, #e0314b); }

/* Link-in-bio page */
.links-page .main { padding: 0; }
.links { position: relative; max-width: 560px; margin: 0 auto; padding: var(--s8) var(--gutter) var(--s10); display: grid; gap: var(--s6); }
.links-wash { position: fixed; inset: 0 0 auto 0; height: 60vh; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, var(--artwork-primary, #2a2a35) 0, var(--artwork-bg, #15151a) 55%, transparent 100%); opacity: .75; }
.links-head { display: grid; justify-items: center; gap: var(--s2); text-align: center; }
.links-head h1 { font-size: clamp(28px, 7vw, 38px); letter-spacing: -.03em; display: inline-flex; align-items: center; gap: 8px; }
.links-avatar { display: block; border-radius: 50%; box-shadow: 0 10px 40px rgb(0 0 0 / .35); }
.links-pin { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--s2); padding: 8px 14px; border-radius: 999px; background: rgb(255 255 255 / .12); font-weight: 600; font-size: .9rem; }
.links-pin a { color: inherit; }
.links-pin .icon { color: var(--accent, #e0314b); width: 18px; height: 18px; font-size: 18px; }
.links-actions { display: flex; gap: var(--s2); margin-top: var(--s3); }
.links-list { display: grid; gap: var(--s3); }
.links-card { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border-radius: 18px; color: inherit; text-decoration: none; background: var(--surface, rgb(127 127 127 / .12)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: transform 160ms var(--ease, ease), background 160ms; }
.links-card:hover { transform: translateY(-2px); background: var(--surface-2, rgb(127 127 127 / .2)); }
.links-card > .icon { margin-left: auto; color: var(--text-3); flex: none; }
.links-cover { flex: none; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: rgb(127 127 127 / .2); }
.links-cover .art, .links-cover .rel-ph { width: 100%; height: 100%; aspect-ratio: 1 / 1; }
.links-text { display: grid; min-width: 0; }
.links-text small { color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; font-size: .68rem; }
.links-text strong { overflow-wrap: anywhere; }
.links-card--plain { justify-content: space-between; padding-block: var(--s4); }
.links-foot { text-align: center; font-size: .85rem; color: var(--text-3); }
.links-foot a { color: inherit; }
.links-page .topbar, .links-page .tabbar, .links-page .sidebar, .links-page .side { display: none !important; }
.links-page .shell, .links-page .app { display: block; }
.links-foot a { display: inline-flex; align-items: center; gap: 6px; }
.links-foot .icon { width: 18px; height: 18px; }
.links-page .nav-side { display: none !important; }
.links-page .app { padding-left: 0; }
.links-page .main { padding: 0; }

/* Share kit */
.share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s4); }
.share-item { display: grid; justify-items: center; gap: var(--s3); padding: var(--s4); border-radius: 18px; background: var(--surface, rgb(127 127 127 / .1)); text-align: center; }
.share-item canvas { width: 160px; height: 160px; border-radius: 12px; background: #fff; image-rendering: pixelated; }
.share-text { display: grid; gap: 2px; min-width: 0; max-width: 100%; }
.share-text strong, .share-text .meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-actions { display: flex; gap: var(--s2); }

/* Studio: this week */
.week { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s2) var(--s4); margin-bottom: var(--s5); padding: var(--s4); border-radius: 18px; background: var(--surface, rgb(127 127 127 / .1)); }
.week-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); grid-column: 1 / -1; }
.week-stats { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); }
.week-stat { display: grid; gap: 2px; min-width: 88px; }
.week-stat strong { font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.delta { font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.delta--up { color: var(--success-text); }
.delta--down { color: var(--danger-text); }
@media (max-width: 560px) { .week { grid-template-columns: 1fr; } }

.chip-n { opacity: .85; font-variant-numeric: tabular-nums; }
.status:not(.status--published):not(.status--upcoming) { color: var(--text); }

/* Credits */
.release-with { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-top: var(--s2); }
.credit-requests { display: grid; gap: var(--s3); margin-bottom: var(--s5); padding: var(--s4); border-radius: 18px; background: color-mix(in srgb, var(--accent, #e0314b) 12%, var(--surface, rgb(127 127 127 / .1))); }
.credit-request { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.credit-btns { display: flex; gap: var(--s2); }

/* Release page: the artwork wash now wraps exactly the white-text hero block (cover + title + buttons), at any height and in
   both themes, then eases into the page background below it. (Fixes white-on-white in light mode.) */
.release { overflow-x: clip; }
.release-wash { display: none; }
.release-top { position: relative; isolation: isolate; padding-bottom: var(--s8); }
.release-top::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: linear-gradient(to bottom, var(--artwork-primary), var(--artwork-bg)); -webkit-mask-image: linear-gradient(#000 calc(100% - 56px), transparent); mask-image: linear-gradient(#000 calc(100% - 56px), transparent); }

/* Link-in-bio: always a dark stage (white text sits on artwork colour), whatever the theme */
.links-page { color-scheme: dark; --bg: #0b0b0d; --surface: #1b1b1f; --surface-2: #26262b; --text: #f5f5f7; --text-2: rgb(235 235 245 / .68); --text-3: rgb(235 235 245 / .56); --fill: rgb(255 255 255 / .1); --fill-hover: rgb(255 255 255 / .16); --sep: rgb(255 255 255 / .1); }
.release-info .link-inline, .release-info .release-cal a { color: #fff; text-decoration-color: rgb(255 255 255 / .6); }
