:root {
  --bg: #111214;
  --surface: #1a1b1f;
  --raised: #26282d;
  --raised-hover: #31343a;
  --line: #26282d;
  --line-strong: #3a3d44;
  --text: #ffffff;
  --text-soft: #d0d2d6;
  --muted: #a3a6ad;
  --unplayed: #5c5f66;
  --played: #ffffff;
  --hover: #8e9199;
  --accent: #e8772e;
  --danger: #ff6b5e;
  --radius: 8px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Bai Jamjuree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); }
a:hover { color: var(--text-soft); }
img { display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #8fa8e8; outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding: 18px max(16px, 5%); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand-name { font-size: 24px; font-weight: 700; letter-spacing: 0.05em; color: var(--text); }
.brand-sub { font-size: 15px; color: var(--muted); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--text); }
.inline { display: inline; margin: 0; }
.link-btn { background: none; border: none; padding: 0; color: var(--muted); font-size: inherit; text-decoration: none; }
.link-btn:hover { color: var(--text); }

/* ---------- page ---------- */
.page { width: 100%; max-width: 1180px; margin: 0 auto; padding: 32px 24px 140px; display: flex; flex-direction: column; gap: 40px; }
.page.narrow { max-width: 440px; }
.section { display: flex; flex-direction: column; gap: 28px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.section-head h1, .section-head h2 { margin: 0; font-size: 30px; font-weight: 700; }
.cards { display: flex; flex-direction: column; gap: 44px; }
.empty { padding: 80px 0; text-align: center; }
.empty h1 { font-size: 30px; font-weight: 600; margin: 0 0 8px; }
.more { margin: 0; }
.more a { color: var(--muted); }
.description { max-width: 720px; color: var(--text-soft); font-size: 16px; line-height: 1.65; white-space: normal; }

/* ---------- track card ---------- */
.card { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.cover { width: 200px; height: 200px; border-radius: var(--radius); object-fit: cover; background: var(--raised); flex: 0 0 auto; }
.card-big .cover { width: 320px; height: 320px; }
.thumb { display: none; }
.card-body { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.card-head { display: flex; align-items: center; gap: 16px; }
.names { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.artist { font-size: 16px; font-weight: 600; color: var(--muted); }
.title { font-size: 22px; font-weight: 600; color: var(--text); text-decoration: none; margin: 0; line-height: 1.2; overflow-wrap: anywhere; }
a.title:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-big .title { font-size: 30px; }
.tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 16px;
  background: var(--raised); color: #e2e3e6; font-size: 14px; font-weight: 500; white-space: nowrap;
}
.pill-accent { color: var(--accent); }

.btn-play {
  width: 64px; height: 64px; border-radius: 50%; border: none; background: #fff; color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; transition: transform .12s ease;
}
.btn-play:hover { transform: scale(1.05); }
.btn-play:active { transform: scale(0.97); }
.card-big .btn-play { width: 72px; height: 72px; }
.btn-play.small { width: 44px; height: 44px; }
.btn-play .i-pause, .is-playing .btn-play .i-play, .pb-toggle.is-playing .i-play { display: none; }
.is-playing .btn-play .i-pause, .pb-toggle.is-playing .i-pause { display: block; }
.pb-toggle .i-pause { display: none; }
.is-loading .btn-play { opacity: .75; }

.wave { position: relative; height: 80px; cursor: pointer; touch-action: none; border-radius: 4px; }
.card-big .wave { height: 110px; }
.wave canvas { width: 100%; height: 100%; display: block; }
.times { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: -6px; }

.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-sq {
  min-width: 48px; height: 44px; padding: 0 12px; border-radius: var(--radius); border: none; background: var(--raised); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-size: 15px; font-weight: 500;
}
.btn-sq:hover { background: var(--raised-hover); color: var(--text); }
.stats { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 16px; font-variant-numeric: tabular-nums; }
.stat { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- bottom player ---------- */
.playerbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: rgba(26, 27, 31, 0.97); border-top: 1px solid #2a2c31;
  backdrop-filter: blur(10px); padding-bottom: env(safe-area-inset-bottom);
}
.pb-progress { height: 3px; background: var(--line-strong); display: none; }
.pb-fill { height: 100%; width: 0; background: var(--played); }
.pb-inner { display: flex; align-items: center; gap: 16px; padding: 10px max(16px, 5%); }
.pb-controls { display: flex; align-items: center; gap: 4px; }
.btn-icon {
  width: 44px; height: 44px; border-radius: 50%; border: none; background: transparent; color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.btn-icon:hover { background: var(--raised); }
.pb-now { display: flex; align-items: center; gap: 12px; flex: 0 1 280px; min-width: 0; }
.pb-cover { width: 44px; height: 44px; border-radius: 4px; object-fit: cover; flex: 0 0 auto; }
.pb-names { display: flex; flex-direction: column; min-width: 0; }
.pb-title { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-artist { font-size: 13px; color: var(--muted); }
.pb-time { flex: 1 1 240px; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pb-bar { flex: 1; height: 16px; display: flex; align-items: center; cursor: pointer; position: relative; }
.pb-bar::before { content: ''; position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: var(--line-strong); }
.pb-bar-fill { position: relative; height: 4px; width: 0; border-radius: 2px; background: var(--played); }
.pb-actions { display: flex; }

/* ---------- share dialog ---------- */
.share-dialog {
  border: none; padding: 0; background: transparent; color: var(--text);
  width: min(440px, 100vw); max-width: 100vw; margin: auto;
}
.share-dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.share-sheet { background: var(--surface); border-radius: 16px; padding: 16px 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.share-top { display: flex; align-items: center; justify-content: space-between; }
.share-top h2 { margin: 0; font-size: 20px; font-weight: 600; }
.share-preview { display: flex; gap: 12px; align-items: center; padding: 10px; background: var(--bg); border: 1px solid #2a2c31; border-radius: 12px; }
.share-preview img { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; }
.share-preview div { display: flex; flex-direction: column; min-width: 0; }
.sp-title { font-weight: 600; }
.sp-host { font-size: 13px; color: var(--muted); }
.share-row { display: flex; gap: 8px; }
.share-row .input { flex: 1; min-width: 0; }
.share-note { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.share-buttons { display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 640px) {
  .share-dialog { margin: auto 0 0; width: 100vw; }
  .share-sheet { border-radius: 20px 20px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}

.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); z-index: 50;
  background: #fff; color: var(--bg); padding: 10px 18px; border-radius: 22px; font-weight: 600; font-size: 15px;
  opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- forms & buttons ---------- */
.field-label { font-size: 14px; font-weight: 500; color: var(--text-soft); }
.input {
  width: 100%; height: 44px; padding: 0 12px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--text); font-size: 15px;
}
textarea.input { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input-file { font-size: 14px; color: var(--muted); max-width: 100%; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: #fff; flex: 0 0 auto; }
.btn {
  height: 48px; padding: 0 22px; border-radius: 24px; border: none; font-size: 16px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 20px; }
.btn-primary { background: #fff; color: var(--bg); }
.btn-primary:hover { background: #e6e7ea; color: var(--bg); }
.btn-secondary { background: var(--raised); color: var(--text); }
.btn-secondary:hover { background: var(--raised-hover); color: var(--text); }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.panel { background: var(--surface); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.form h1 { margin: 0 0 4px; font-size: 26px; }
.error { margin: 0; color: var(--danger); }
.flash { margin: 0; padding: 12px 16px; border-radius: var(--radius); background: var(--raised); }
fieldset.radios { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
fieldset.radios legend { margin-bottom: 4px; }

/* ---------- admin ---------- */
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  padding: 36px 20px; border: 2px dashed var(--line-strong); border-radius: 14px; color: var(--text-soft); cursor: pointer;
}
.dropzone.over, .dropzone:hover { border-color: #fff; color: #fff; }
.uploads { list-style: none; margin: -20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.uploads:empty { display: none; }
.uploads li { background: var(--surface); border-radius: var(--radius); padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.progress { height: 4px; border-radius: 2px; background: var(--line-strong); overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: #fff; transition: width .15s linear; }
.uploads .err { color: var(--danger); }

.alist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.arow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 10px; background: var(--surface); }
.arow.dragging { opacity: .4; }
.arow.drop-before { box-shadow: 0 -2px 0 #fff; }
.arow.drop-after { box-shadow: 0 2px 0 #fff; }
.grip { color: var(--muted); cursor: grab; display: flex; }
.athumb { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; }
.ainfo { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.atitle { font-size: 17px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.abadges { display: flex; flex-wrap: wrap; gap: 6px; }
.aactions { display: flex; gap: 8px; align-items: center; }

.edit-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.edit-side { flex: 0 1 320px; min-width: 260px; display: flex; flex-direction: column; gap: 16px; }
.edit-main { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.edit-cover { width: 100%; height: auto; aspect-ratio: 1; border-radius: 12px; object-fit: cover; }
.linkbox { display: flex; flex-direction: column; gap: 6px; }
.replace-form { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.replace-form .progress { width: 100%; }
.versions { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.danger { border: 1px solid #3a2523; }
.panel .btn-sm, .panel > .btn-primary { align-self: flex-start; }

/* ---------- small screens ---------- */
@media (max-width: 720px) {
  .page { padding: 20px 16px 140px; gap: 32px; }
  .site-header { padding: 14px 16px; }
  .brand-name { font-size: 20px; }
  .card { gap: 16px; }
  .card:not(.card-big) .cover { display: none; }
  .thumb { display: block; width: 52px; height: 52px; border-radius: 6px; object-fit: cover; flex: 0 0 auto; }
  .card-head { gap: 12px; }
  .card-big .cover { width: 100%; height: auto; aspect-ratio: 1; }
  .card-body { flex-basis: 100%; }
  .btn-play { width: 56px; height: 56px; }
  .card-big .btn-play { width: 64px; height: 64px; }
  .title { font-size: 19px; }
  .card-big .title { font-size: 24px; }
  .tags { display: none; }
  .wave { height: 64px; }
  .card-big .wave { height: 84px; }
  .pb-inner { gap: 10px; padding: 8px 12px; }
  .pb-progress { display: block; }
  .pb-time, .pb-prev, .pb-actions { display: none; }
  .pb-now { order: -1; flex: 1 1 auto; }
  .section-head h1, .section-head h2 { font-size: 24px; }
}

/* ---------- sets ---------- */
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 24px 20px; }
.set-tile { display: flex; flex-direction: column; gap: 6px; text-decoration: none; min-width: 0; }
.set-tile img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--raised); }
.set-tile-title { font-weight: 600; font-size: 17px; overflow-wrap: anywhere; }
.set-tile:hover .set-tile-title { text-decoration: underline; text-underline-offset: 3px; }
.set-head { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-end; }
.set-head img { width: 240px; height: 240px; object-fit: cover; border-radius: var(--radius); background: var(--raised); }
.set-head > div { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.set-head .title { font-size: 34px; }
.set-head p { margin: 0; }
.set-head .muted { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
a.stat { color: inherit; text-decoration: none; }
a.stat:hover { color: var(--text); }

/* ---------- comments ---------- */
.comments { max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.comments h2 { margin: 0; font-size: 22px; font-weight: 600; }
.comments ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.comment { display: flex; gap: 12px; align-items: flex-start; }
.comment img, .avatar-blank { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: var(--raised); }
.comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.comment-head a, .comment-head > span:first-child { font-weight: 600; text-decoration: none; }
.comment p { margin: 4px 0 0; color: var(--text-soft); overflow-wrap: anywhere; }
.link-btn.at { color: var(--text-soft); text-decoration: underline; text-underline-offset: 2px; font-size: inherit; }
.acomments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.acomments .inline { margin-left: 6px; }
.imp-errors { margin: 0; padding-left: 18px; color: var(--danger); }
.imp-errors:empty { display: none; }
code { background: var(--raised); padding: 1px 6px; border-radius: 4px; font-size: 14px; }

@media (max-width: 720px) {
  .set-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .set-head img { width: 100%; height: auto; aspect-ratio: 1; }
  .set-head .title { font-size: 26px; }
}

/* ---------- profile page ---------- */
.page-profile { gap: 0; padding-top: 24px; }
.hero { position: relative; border-radius: 12px; overflow: hidden; min-height: 260px; display: flex; align-items: center; background: linear-gradient(135deg, #2a2c31, #17181b); }
.hero-banner { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,0) 70%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 32px; padding: 30px 36px; }
.hero-avatar { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: var(--raised); box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.hero-names { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.hero-names h1, .hero-names p { margin: 0; }
.hero-names span { display: inline-block; background: rgba(0,0,0,.82); color: #fff; padding: 6px 12px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero-names h1 span { font-size: 40px; font-weight: 700; line-height: 1.15; }
.hero-sub span { font-size: 22px; font-weight: 500; color: #d7d8db; }
.hero-loc span { font-size: 20px; font-weight: 500; color: #d7d8db; }

.tabbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); margin: 20px 0 28px; position: sticky; top: 0; background: var(--bg); z-index: 15; }
.tabs { display: flex; gap: 4px 28px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { background: none; border: none; padding: 16px 0 14px; font-size: 18px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); }
.tab-share { flex: 0 0 auto; }

.profile-grid { display: flex; gap: 40px; align-items: flex-start; }
.main-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 44px; }
.side { flex: 0 0 300px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 76px; }
.side-stats { display: flex; justify-content: space-between; margin: 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.side-stats div { display: flex; flex-direction: column; gap: 2px; }
.side-stats dt { color: var(--muted); font-size: 15px; font-weight: 500; }
.side-stats dd { margin: 0; font-size: 32px; font-weight: 700; font-variant-numeric: tabular-nums; }
.side-bio p { margin: 0; color: var(--text-soft); line-height: 1.55; overflow-wrap: anywhere; }
.side-bio.is-clamped p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.bio-more { color: var(--text); font-weight: 600; margin-top: 8px; }
.side-links { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.side-links a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; color: var(--text-soft); }
.side-links a:hover { color: var(--text); }
.show-all { align-self: flex-start; }

.tags { flex-direction: column; align-items: flex-end; gap: 8px; }
.tag-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.ago { font-size: 14px; color: var(--muted); white-space: nowrap; }

.banner-preview { width: 100%; height: auto; aspect-ratio: 4.77; object-fit: cover; border-radius: 8px; }
.edit-cover.round { border-radius: 50%; }
.img-form { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

@media (max-width: 1000px) {
  .profile-grid { flex-direction: column; }
  .side { position: static; flex: 1 1 auto; width: 100%; order: -1; }
  .side-stats { justify-content: flex-start; gap: 40px; }
  .side-links { flex-direction: row; flex-wrap: wrap; gap: 12px 22px; }
}
@media (max-width: 720px) {
  .page-profile { padding-top: 0; }
  .hero { border-radius: 0; margin: 0 -16px; min-height: 200px; align-items: flex-end; }
  .hero::after { background: linear-gradient(0deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 70%); }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 60px 16px 18px; }
  .hero-avatar { width: 104px; height: 104px; }
  .hero-names { gap: 6px; }
  .hero-names h1 span { font-size: 28px; padding: 4px 10px; }
  .hero-sub span, .hero-loc span { font-size: 16px; padding: 3px 10px; }
  .tabbar { margin: 4px -16px 20px; padding: 0 16px; }
  .tab { font-size: 16px; padding: 14px 0 12px; }
  .tab-share span { display: none; }
  .tabs { gap: 22px; }
  .side-stats dd { font-size: 24px; }
  .ago { display: none; }
}

/* ---------- waveform comments ---------- */
.cmarks { position: relative; height: 22px; margin-top: -10px; }
.cm { position: absolute; top: 0; width: 20px; height: 20px; margin-left: -10px; padding: 0; border: 1px solid var(--bg); border-radius: 50%; overflow: hidden; background: var(--raised-hover); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; opacity: .9; transition: transform .12s ease, opacity .12s ease; }
.cm img { width: 100%; height: 100%; object-fit: cover; }
.cm:hover, .cm:focus-visible, .cm.on { transform: scale(1.35); opacity: 1; z-index: 3; box-shadow: 0 0 0 2px #fff; }
.cbubble { position: absolute; bottom: 26px; z-index: 6; background: #fff; color: var(--bg); padding: 8px 12px; border-radius: 8px; font-size: 14px; line-height: 1.35; box-shadow: 0 6px 18px rgba(0,0,0,.35); overflow-wrap: anywhere; pointer-events: none; }
.cbubble strong { font-weight: 700; }
.cb-at { color: #6b6e75; font-size: 12px; font-variant-numeric: tabular-nums; }
.card-big .cmarks { margin-top: -8px; }
.times { position: relative; }
.fans { max-width: 720px; display: flex; flex-direction: column; gap: 18px; }
.fans h3 { margin: 0 0 10px; font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.fan-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fan-row img, .fan-row .avatar-blank { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--raised); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: #fff; }
.fan-row a:hover img { box-shadow: 0 0 0 2px #fff; }
@media (max-width: 720px) {
  .cm { width: 18px; height: 18px; margin-left: -9px; }
  .cbubble { font-size: 13px; }
}

/* ---------- likes & comment form ---------- */
.btn-like .n-likes { font-variant-numeric: tabular-nums; }
.btn-like.is-on { color: #ff5a6e; }
.btn-like.is-on:hover { color: #ff7a8a; }
.comment-form-wrap { max-width: 720px; }
.comment-form { display: flex; flex-direction: column; gap: 12px; }
.comment-form h2 { margin: 0; font-size: 22px; font-weight: 600; }
.cf-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.cf-row .input { flex: 1 1 220px; max-width: 320px; }
.cf-at { min-height: 0; }
.cf-time { font-variant-numeric: tabular-nums; }
.cf-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.acomment .ainfo { gap: 4px; }
.acomment.is-pending { box-shadow: inset 3px 0 0 var(--accent); }
/* ---------- outside reviews ---------- */
.card-quote { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: start; margin: 10px 0 2px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 9%, transparent); border-left: 3px solid var(--accent); color: inherit; text-decoration: none; }
.card-quote:hover { background: color-mix(in srgb, var(--accent) 15%, transparent); }
.card-quote img { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; margin-top: 2px; }
.card-quote .q-body { font-size: 14px; line-height: 1.45; font-style: italic; }
.card-quote .q-who { font-size: 12px; opacity: .7; }
.card-quote .q-more { color: var(--accent); opacity: 1; font-weight: 600; }
.card-quote:not(:has(img)) .q-body, .card-quote:not(:has(img)) .q-who { grid-column: 1 / -1; }
.src-badge { font-size: 11px; font-weight: 600; letter-spacing: .02em; padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.08); }
.src-groover { background: #ff5b2e22; color: #ff8a63; }
.src-youtube { background: #ff000022; color: #ff6b6b; }
.h-sub { font-size: 15px; font-weight: 400; }
.stat-cm { color: var(--accent); }

.cmarks .cm img { object-fit: cover; }
.cbubble .cb-at { opacity: .65; font-size: 12px; }

/* ---------- search ---------- */
.tab-tools { display: flex; align-items: center; gap: 8px; }
.search { position: relative; }
.search-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: min(380px, calc(100vw - 32px)); background: var(--surface, #1b1c20); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.45); padding: 10px; }
.search-field { display: flex; align-items: center; gap: 8px; padding: 0 10px; border-radius: 10px; background: rgba(255,255,255,.06); }
.search-field svg { opacity: .6; flex: none; }
.search-input { flex: 1; min-width: 0; height: 40px; border: 0; background: transparent; color: inherit; font: inherit; font-size: 15px; outline: none; }
.search-input::-webkit-search-cancel-button { filter: invert(1); opacity: .5; }
.search-results { max-height: min(60vh, 440px); overflow-y: auto; margin-top: 6px; }
.sr-group { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .5; padding: 10px 8px 4px; }
.sr-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sr-item img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; flex: none; }
.sr-item span { display: flex; flex-direction: column; min-width: 0; }
.sr-item strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-item small, .sr-genre small { opacity: .6; font-size: 12px; }
.sr-item:hover, .sr-item.on, .sr-genre:hover, .sr-genre.on { background: rgba(255,255,255,.08); }
.sr-genres { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 6px 8px; }
.sr-genre { border: 1px solid rgba(255,255,255,.12); background: none; color: inherit; font: inherit; font-size: 13px; border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.sr-empty { opacity: .6; padding: 14px 8px; margin: 0; font-size: 14px; }
.search.is-open .search-open { background: rgba(255,255,255,.14); }
.genre-chip { margin-left: auto; border: 0; border-radius: 999px; padding: 5px 12px; background: color-mix(in srgb, var(--accent) 22%, transparent); color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.card.flash-card { animation: flashcard 1.6s ease; }
@keyframes flashcard { 0%, 40% { box-shadow: 0 0 0 2px var(--accent); border-radius: 12px; } 100% { box-shadow: 0 0 0 0 transparent; } }
.arow.moved { animation: flashcard 1.2s ease; }
@media (max-width: 560px) { .tab-share span { display: none; } }

/* ---------- front page: pitch, calls to action, proof ---------- */
.site-nav a[aria-current="page"] { color: var(--text); }
.site-nav .nav-cta { color: var(--bg); background: #fff; padding: 8px 16px; border-radius: 20px; font-weight: 600; }
.site-nav .nav-cta:hover { color: var(--bg); background: #e6e7ea; }
.hero-pitch span { font-size: 17px; font-weight: 500; color: #d7d8db; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.btn-accent { background: var(--accent); color: #141414; }
.btn-accent:hover { background: #f08a45; color: #141414; }
.btn-ghost { background: rgba(17,18,20,.72); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(38,40,45,.92); color: #fff; }
.btn-ghost svg { width: 16px; height: 16px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 17px; border-radius: 27px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

.proof { display: flex; flex-direction: column; gap: 22px; padding: 26px 30px; border-radius: 12px; background: var(--surface); margin-top: -20px; }
.proof-credits { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px; }
.proof-credits ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; }
.proof-credits li { font-size: 22px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.proof-credits li + li::before { content: '·'; color: var(--muted); margin: 0 14px; font-weight: 400; }
.proof-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 18px 24px; margin: 0; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.proof-stats div { display: flex; flex-direction: column-reverse; gap: 4px; }
.proof-stats dd { margin: 0; font-size: 36px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.proof-stats dt { font-size: 14px; color: var(--muted); line-height: 1.35; max-width: 16em; }

/* reactions wall: a slow, endless strip of quotes; hover or focus pauses it */
.reactions { display: flex; flex-direction: column; gap: 18px; margin-bottom: -10px; }
.reactions .section-head h2 { font-size: 26px; }
.rx-viewport { overflow: hidden; margin: 0 -24px; padding: 4px 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.rx-track { display: flex; gap: 14px; width: max-content; animation: rx-scroll var(--rx-dur, 110s) linear infinite; }
.rx-dup { display: contents; }
.rx-viewport:hover .rx-track, .rx-viewport:focus-within .rx-track { animation-play-state: paused; }
@keyframes rx-scroll { to { transform: translateX(calc(-50% - 7px)); } }
.rx { flex: 0 0 340px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 18px 20px; border-radius: 12px;
  background: var(--surface); border-top: 3px solid var(--accent); color: var(--text); text-decoration: none; }
.rx:hover { background: var(--raised); color: var(--text); }
.rx-body { font-size: 16px; line-height: 1.5; color: var(--text-soft); }
.rx-who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.rx-who img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.rx-who > span { display: flex; flex-direction: column; min-width: 0; }
.rx-who strong { color: var(--text); font-size: 14px; }
.rx-on { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) {
  .rx-track { animation: none; }
  .rx-dup { display: none; }
  .rx-viewport { overflow-x: auto; }
}

/* studio tour dialog */
.reel-dialog { width: min(960px, 94vw); padding: 0; border: none; background: #000; border-radius: 12px; overflow: hidden; }
.reel-dialog::backdrop { background: rgba(0,0,0,.8); }
.reel-top { position: absolute; top: 6px; right: 6px; z-index: 2; margin: 0; }
.reel-top .btn-icon { background: rgba(0,0,0,.6); color: #fff; }
.reel-frame { aspect-ratio: 16 / 9; }
.reel-frame iframe, .reel-frame video { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- services page ---------- */
.page-services { gap: 48px; }
.svc-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 16px; }
.svc-intro h1 { margin: 0; font-size: 48px; line-height: 1.08; max-width: 15em; letter-spacing: -.01em; }
.lead { margin: 0; font-size: 19px; line-height: 1.55; color: var(--text-soft); max-width: 36em; }
.page-services .proof { margin-top: 0; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.svc { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 12px; background: var(--surface); }
.svc-n { font-size: 14px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.svc h2 { margin: 0; font-size: 22px; line-height: 1.25; }
.svc p { margin: 0; color: var(--text-soft); line-height: 1.6; }
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: 36px; border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--surface)), var(--surface)); scroll-margin-top: 24px; }
.contact > div:first-child { display: flex; flex-direction: column; gap: 10px; max-width: 34em; }
.contact h2 { margin: 0; font-size: 32px; }
.contact p { margin: 0; line-height: 1.55; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-h { margin: 18px 0 0; font-size: 18px; padding-top: 18px; border-top: 1px solid var(--line-strong); }

@media (max-width: 720px) {
  .site-header { padding: 14px 16px; }
  .brand-sub { display: none; }
  .site-nav { gap: 6px 18px; }
  .hero-pitch span { font-size: 14px; padding: 3px 10px; }
  .cta-row .btn { height: 42px; padding: 0 16px; font-size: 15px; }
  .proof { margin: -16px -16px 0; border-radius: 0; padding: 22px 16px; }
  .proof-credits li { font-size: 17px; }
  .proof-credits li + li::before { margin: 0 9px; }
  .proof-stats { grid-template-columns: repeat(2, 1fr); }
  .proof-stats dd { font-size: 28px; }
  .rx-viewport { margin: 0 -16px; padding: 4px 16px; }
  .rx { flex-basis: 280px; }
  .svc-intro h1 { font-size: 34px; }
  .lead { font-size: 17px; }
  .svc-grid { grid-template-columns: 1fr; }
  .contact { padding: 26px 20px; margin: 0 -8px; }
  .contact h2 { font-size: 26px; }
  .contact-actions, .contact-actions .btn { width: 100%; }
}
.proof-stats div { flex-direction: column; justify-content: flex-start; }
.proof-stats dd { order: -1; }
@media (max-width: 720px) {
  .site-header { flex-wrap: nowrap; }
  .brand-name { font-size: 19px; }
  .site-nav { flex-wrap: nowrap; gap: 14px; font-size: 14px; }
  .site-nav .nav-cta { padding: 7px 12px; }
  .proof-credits ul { gap: 4px 16px; }
  .proof-credits li + li::before { content: none; }
}
.page-profile .hero { border-radius: 12px 12px 0 0; }
.page-profile .proof { margin-top: 0; border-radius: 0 0 12px 12px; }
.page-profile .reactions { margin: 40px 0 12px; }
@media (max-width: 720px) {
  .page-profile .hero { border-radius: 0; }
  .page-profile .proof { margin: 0 -16px; border-radius: 0; }
  .page-profile .reactions { margin: 28px 0 8px; }
}
.hero-names .cta-row span { display: inline; background: none; padding: 0; color: inherit; }
.page-profile .proof + * { margin-top: 0; }
.main-col .reactions { margin: 0; }
.main-col .reactions .section-head h2 { font-size: 30px; }
.main-col .rx-viewport { margin: 0; padding: 4px 0; }
.main-col .rx { flex-basis: 300px; }
@media (max-width: 720px) {
  .main-col .reactions .section-head h2 { font-size: 24px; }
  .main-col .rx-viewport { margin: 0 -16px; padding: 4px 16px; }
}
.main-col .rx-viewport { contain: inline-size; }
@media (max-width: 1000px) { .main-col { width: 100%; } }
