:root {
  --bg: #090b0f;
  --surface: #11151b;
  --surface-2: #171c24;
  --line: #282f39;
  --text: #f5f7fa;
  --muted: #9aa3af;
  --accent: #68d8ec;
  --accent-soft: rgba(104, 216, 236, .12);
  --violet: #887df4;
  --green: #59df9a;
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; background: var(--text); color: var(--bg); border-radius: 10px; }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(22px, 4vw, 72px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(9, 11, 15, .92);
  backdrop-filter: blur(20px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; }
.brand img { width: 46px; height: 46px; object-fit: contain; border-radius: 50%; animation: sbk-logo-pulse 2.8s ease-in-out infinite; }
@keyframes sbk-logo-pulse {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(238,32,65,.28)); box-shadow: 0 0 0 rgba(238,32,65,0); }
  44% { filter: drop-shadow(0 0 11px rgba(238,32,65,.88)); box-shadow: 0 0 19px rgba(238,32,65,.24); }
  52% { filter: drop-shadow(0 0 16px rgba(255,47,82,1)); box-shadow: 0 0 27px rgba(238,32,65,.38); }
  61% { filter: drop-shadow(0 0 8px rgba(238,32,65,.62)); box-shadow: 0 0 14px rgba(238,32,65,.16); }
}
@media (prefers-reduced-motion: reduce) {
  .brand img { animation: none; filter: drop-shadow(0 0 7px rgba(238,32,65,.58)); }
}
.brand span { display: flex; flex-direction: column; line-height: 1; gap: 5px; }
.brand strong { font-size: 19px; letter-spacing: .22em; }
.brand small { color: var(--muted); font-size: 9px; letter-spacing: .3em; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a { position: relative; padding: 27px 17px 25px; color: #aab2bd; font-size: 14px; font-weight: 650; }
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a.active::after { content: ""; position: absolute; left: 17px; right: 17px; bottom: 0; height: 2px; background: var(--accent); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.language-switcher { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); }
.language-switcher > span { color: var(--accent); font-size: 13px; }
.language-switcher select { width: 74px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 11px; font-weight: 750; cursor: pointer; }
.language-switcher option { background: var(--surface); color: var(--text); }
.coin-pill, .profile-button, .support-panel-button { height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.coin-pill { display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; }
.coin-pill span:last-child { color: var(--muted); font-size: 12px; }
.coin-gem { color: var(--violet); }
.profile-button { padding: 0 19px; background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 750; }
.support-panel-button { padding: 0 15px; border-color: rgba(104,216,236,.38); background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 800; }

main { overflow: clip; }
.studio-hero { position: relative; min-height: 810px; padding: 96px clamp(22px, 5vw, 96px) 110px; border-bottom: 1px solid var(--line); }
.studio-hero::before { content: ""; position: absolute; width: 780px; height: 560px; right: -240px; top: 20px; background: radial-gradient(circle, rgba(104,216,236,.13), rgba(104,216,236,0) 68%); pointer-events: none; }
.studio-intro { width: min(780px, 100%); margin: 0 auto 60px; text-align: center; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .24em; }
.eyebrow span { width: 34px; height: 1px; background: currentColor; }
.studio-intro h1 { margin: 24px 0 24px; font-size: clamp(58px, 7vw, 104px); line-height: .92; letter-spacing: -.07em; }
.studio-intro h1 em { font-style: normal; color: #a5adb9; }
.studio-intro > p { width: min(670px, 100%); margin: 0 auto; color: var(--muted); font-size: 18px; line-height: 1.65; }
.trust-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 26px; margin-top: 30px; color: #c7ced7; font-size: 13px; }
.trust-row span::first-letter { color: var(--green); }

.creator-card { position: relative; width: min(1120px, 100%); margin: 0 auto; padding: clamp(24px, 3vw, 44px); border: 1px solid #303946; border-radius: 26px; background: rgba(17,21,27,.94); box-shadow: 0 35px 100px rgba(0,0,0,.26); }
.creator-head, .creator-head > div, .creator-footer, .engine-state { display: flex; align-items: center; }
.creator-head { justify-content: space-between; gap: 24px; }
.creator-head > div { gap: 18px; }
.creator-head small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; letter-spacing: .2em; font-weight: 800; }
.creator-head h2 { margin: 0; font-size: 27px; letter-spacing: -.03em; }
.step { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--accent-soft); border: 1px solid rgba(104,216,236,.34); color: var(--accent); font-weight: 800; }
.switch { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch span { position: relative; width: 42px; height: 24px; border-radius: 99px; background: #2c333d; transition: .2s; }
.switch span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 16px; height: 16px; border-radius: 50%; background: #a8b1bd; transition: .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); background: #071014; }
.creator-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; padding: 6px; border: 1px solid var(--line); border-radius: 16px; background: #0b0e12; }
.creator-modes button { display: grid; grid-template-columns: 28px auto; grid-template-rows: auto auto; column-gap: 10px; padding: 13px 16px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--muted); text-align: left; cursor: pointer; }
.creator-modes button > span { grid-row: 1 / 3; align-self: center; color: #77818d; font-size: 17px; }
.creator-modes button strong { color: #c9d0da; font-size: 13px; }
.creator-modes button small { margin-top: 2px; font-size: 10px; }
.creator-modes button.selected { border-color: rgba(104,216,236,.35); background: var(--accent-soft); }
.creator-modes button.selected > span, .creator-modes button.selected strong { color: var(--accent); }
.prompt-label { display: block; margin-top: 34px; color: #cbd2db; font-size: 13px; font-weight: 700; }
.prompt-label small { margin-left: 7px; color: var(--muted); font-size: 10px; font-weight: 500; }
textarea { width: 100%; min-height: 132px; margin-top: 11px; padding: 22px 24px; resize: vertical; border: 1px solid var(--line); border-radius: 16px; outline: none; background: #0b0e12; color: var(--text); font-size: 17px; line-height: 1.55; transition: border-color .2s, box-shadow .2s; }
textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(104,216,236,.09); }
textarea::placeholder { color: #626c78; }
.prompt-tools { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; color: #747e89; font-size: 12px; }
.quiet-button { border: 0; background: none; color: var(--violet); font-weight: 750; cursor: pointer; }
.advanced-creator { margin-top: 26px; }
.advanced-creator[hidden], [data-creator-panel][hidden] { display: none; }
.advanced-grid { display: grid; grid-template-columns: 1fr 170px; gap: 14px; }
.advanced-grid.three { grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
.advanced-grid label { display: flex; flex-direction: column; gap: 8px; color: #cbd2db; font-size: 12px; font-weight: 750; }
.advanced-grid label small { color: var(--muted); font-size: 10px; font-weight: 500; }
.advanced-grid input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; outline: none; background: #0b0e12; color: var(--text); }
.advanced-grid input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(104,216,236,.09); }
.lyrics-field { min-height: 210px; }
.control-check { display: grid; grid-template-columns: 20px 1fr; gap: 3px 10px; margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: #0b0e12; color: #cbd2db; cursor: pointer; }
.control-check input { grid-row: 1 / 3; align-self: center; width: 17px; height: 17px; accent-color: var(--accent); }
.control-check strong { font-size: 11px; }
.control-check small { color: var(--muted); font-size: 10px; }
.field-row { display: grid; grid-template-columns: 1fr 270px; gap: 28px; margin-top: 30px; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend, .select-field { color: #cbd2db; font-size: 12px; font-weight: 750; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.chips button { padding: 10px 17px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface-2); color: var(--muted); cursor: pointer; }
.chips button:hover, .chips button.selected { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.select-field { display: flex; flex-direction: column; gap: 11px; }
select { height: 43px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; outline: none; background: var(--surface-2); color: var(--text); }
.creator-footer { justify-content: space-between; gap: 24px; margin-top: 36px; padding-top: 25px; border-top: 1px solid var(--line); }
.engine-state { gap: 12px; }
.engine-state i { width: 11px; height: 11px; border-radius: 50%; background: var(--green); box-shadow: 0 0 18px rgba(89,223,154,.7); }
.engine-state span { display: flex; flex-direction: column; gap: 3px; }
.engine-state strong { font-size: 13px; }
.engine-state small { color: var(--muted); font-size: 11px; }
.primary-button { min-width: 235px; min-height: 58px; padding: 10px 24px; border: 0; border-radius: 14px; background: var(--text); color: var(--bg); cursor: pointer; font-weight: 800; }
.primary-button span, .primary-button small { display: block; }
.primary-button small { margin-top: 2px; color: #5f6772; font-size: 10px; font-weight: 650; }
.primary-button:hover { background: var(--accent); }

.community-preview, .tools-strip { padding: 96px clamp(22px, 5vw, 96px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; max-width: 1320px; margin: 0 auto 40px; }
.section-heading .eyebrow { justify-content: flex-start; }
.section-heading h2 { margin: 14px 0 0; font-size: clamp(36px, 5vw, 62px); line-height: 1; letter-spacing: -.055em; }
.section-heading > a { color: var(--muted); font-size: 13px; }
.section-heading > a span { margin-left: 8px; color: var(--accent); }
.track-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; max-width: 1320px; margin: auto; }
.track-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cover { position: relative; height: 270px; overflow: hidden; display: grid; place-items: center; background: #121720; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.38)); }
.cover img { width: 80%; height: 80%; object-fit: contain; filter: drop-shadow(0 0 38px rgba(238,32,65,.38)); }
.cover span { font-size: 52px; font-weight: 900; letter-spacing: .12em; }
.cover-two { background: radial-gradient(circle at 30% 20%, #244f63, #11151b 58%); }
.cover-three { background: radial-gradient(circle at 60% 40%, #443f7c, #11151b 62%); }
.cover button { position: absolute; right: 18px; bottom: 18px; z-index: 2; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--text); color: var(--bg); cursor: pointer; }
.track-body { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 21px; }
.track-body small { color: var(--accent); font-size: 9px; letter-spacing: .18em; font-weight: 800; }
.track-body h3 { margin: 8px 0 4px; font-size: 20px; }
.track-body p { margin: 0; color: var(--muted); font-size: 12px; }
.track-actions { display: flex; gap: 5px; }
.track-actions button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; }
.track-actions a { color: var(--muted); font-size: 12px; }
.track-actions button.liked { color: #f36688; }
.home-community-empty { grid-column: 1 / -1; min-height: 230px; display: grid; grid-template-columns: 54px 1fr auto; gap: 18px; align-items: center; padding: 30px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }
.home-community-empty > span { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 22px; }
.home-community-empty h3 { margin: 0 0 6px; font-size: 22px; }
.home-community-empty p { margin: 0; color: var(--muted); }
.home-community-empty a { color: var(--accent); font-weight: 800; }

.community-band { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 96px clamp(22px, 7vw, 130px); background: #e9edf2; color: #0a0d11; }
.eyebrow.light { justify-content: flex-start; color: #246579; }
.community-band h2 { margin: 20px 0 0; font-size: clamp(46px, 6vw, 82px); line-height: .95; letter-spacing: -.065em; }
.community-copy > p { max-width: 590px; margin: 0 0 34px; color: #555e69; font-size: 18px; line-height: 1.65; }
.community-links { border-top: 1px solid #c5cbd2; }
.community-links a { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; padding: 20px 0; border-bottom: 1px solid #c5cbd2; }
.community-links a > span { grid-row: 1 / 3; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #0a0d11; color: white; }
.community-links strong { font-size: 16px; }
.community-links small { margin-top: 3px; color: #65707a; }

.tools-strip { background: #0d1015; }
.tool-list { max-width: 1320px; margin: auto; border-top: 1px solid var(--line); }
.tool-list a { display: grid; grid-template-columns: 64px 1fr 1.5fr 30px; gap: 20px; align-items: center; padding: 24px 8px; border-bottom: 1px solid var(--line); transition: padding .2s, background .2s; }
.tool-list a:hover { padding-left: 20px; background: rgba(255,255,255,.025); }
.tool-list span { color: var(--accent); font-size: 11px; }
.tool-list strong { font-size: 18px; }
.tool-list small { color: var(--muted); }
.tool-list b { color: var(--accent); font-size: 20px; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 34px clamp(22px, 5vw, 96px); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.brand.compact img { width: 38px; height: 38px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 90; max-width: 360px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 13px; background: #171c24; color: var(--text); box-shadow: 0 20px 70px rgba(0,0,0,.35); opacity: 0; transform: translateY(18px); pointer-events: none; transition: .25s; }
.toast.visible { opacity: 1; transform: translateY(0); }

/* Shared inner pages */
.app-page { min-height: 100vh; }
.page-shell { min-height: calc(100vh - 76px); }
.page-hero { display: flex; align-items: end; justify-content: space-between; gap: 70px; padding: 90px clamp(22px, 5vw, 96px) 70px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 84% 18%, rgba(104,216,236,.08), transparent 32%); }
.page-hero .eyebrow { justify-content: flex-start; }
.page-hero h1 { margin: 22px 0; font-size: clamp(58px, 7vw, 104px); line-height: .88; letter-spacing: -.07em; }
.page-hero h1 em { color: #a5adb9; font-style: normal; }
.page-hero > div > p { max-width: 660px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.compact-hero { min-height: 410px; }
.light-action { flex: 0 0 auto; background: var(--accent); }
.full-button { width: 100%; }
.aside-label { display: block; margin-bottom: 18px; color: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: .2em; }
.search-field { height: 47px; display: flex; align-items: center; gap: 10px; padding: 0 15px; border: 1px solid var(--line); border-radius: 13px; background: #0d1015; }
.search-field span { color: var(--muted); }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
.sort-select { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.sort-select select { min-width: 150px; }
.feed-notice, .forum-notice { margin: 0 0 18px; padding: 12px 15px; border: 1px solid rgba(104,216,236,.24); border-radius: 12px; background: var(--accent-soft); color: #bceef6; font-size: 12px; }
.loading-state { min-height: 150px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.loading-state span { width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: sbk-spin .8s linear infinite; }
@keyframes sbk-spin { to { transform: rotate(360deg); } }
.empty-state { min-height: 300px; display: grid; place-items: center; align-content: center; text-align: center; padding: 40px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty-state > span { color: var(--accent); font-size: 34px; }
.empty-state h2 { margin: 15px 0 5px; color: var(--text); }
.empty-state p { margin: 0; }

/* Discover and full-song player */
.discover-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; max-width: 1500px; margin: auto; padding: 54px clamp(22px, 5vw, 96px) 130px; }
.feed-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 13px; margin-bottom: 27px; }
.feed-toolbar .filter-pills { grid-column: 1 / -1; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pills button { padding: 9px 15px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--muted); cursor: pointer; }
.filter-pills button:hover, .filter-pills button.active { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.community-feed { display: grid; gap: 14px; }
.feed-track { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: 245px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.feed-cover { position: relative; min-height: 220px; display: grid; place-items: center; overflow: hidden; border: 0; background: radial-gradient(circle at 35% 25%, #334f63, #10141a 68%); color: white; cursor: pointer; }
.feed-cover img { width: 100%; height: 100%; object-fit: cover; }
.feed-cover > span { font-size: 36px; font-weight: 900; letter-spacing: .1em; }
.feed-cover i { position: absolute; right: 17px; bottom: 17px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: white; color: #090b0f; font-style: normal; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.feed-track-main { display: flex; flex-direction: column; padding: 21px 23px 16px; }
.creator-line { display: flex; align-items: center; gap: 11px; }
.creator-line > b, .topic-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: #263342; color: var(--accent); font-size: 11px; }
.creator-line span { display: flex; flex: 1; flex-direction: column; }
.creator-line strong { font-size: 12px; }
.creator-line small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.creator-line button { padding: 7px 12px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; }
.feed-copy { margin: 24px 0 18px; }
.feed-copy > small { color: var(--accent); font-size: 9px; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.feed-copy h2 { margin: 7px 0; font-size: 26px; letter-spacing: -.035em; }
.feed-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.feed-track-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 18px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.feed-track-actions button { border: 0; padding: 0; background: none; color: inherit; cursor: pointer; }
.feed-track-actions button.liked { color: #ff6e8b; }
.discover-aside { display: flex; flex-direction: column; gap: 20px; }
.discover-aside > section, .forum-card { padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.trend-list { margin: 0; padding: 0; list-style: none; }
.trend-list li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.trend-list li:last-child { border: 0; }
.trend-list b { color: var(--accent); font-size: 10px; }
.trend-list div { display: flex; flex-direction: column; gap: 3px; }
.trend-list strong { font-size: 12px; }
.trend-list small, .trend-list li > span { color: var(--muted); font-size: 9px; }
.creator-list { display: grid; gap: 10px; }
.creator-list a, .creator-list .creator-entry { display: flex; align-items: center; gap: 11px; }
.creator-list i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #263342; color: var(--accent); font-style: normal; font-weight: 800; }
.creator-list span { display: flex; flex: 1; flex-direction: column; }
.creator-list strong { font-size: 12px; }
.creator-list small { color: var(--muted); font-size: 9px; }
.creator-list button { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); font-size: 9px; }
.creator-list button.following { border-color: var(--accent); color: var(--accent); }
.creator-empty { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.forum-card { display: block; background: linear-gradient(145deg, rgba(104,216,236,.1), rgba(136,125,244,.06)); }
.forum-card > span { color: var(--accent); font-size: 24px; }
.forum-card strong { display: block; margin-top: 22px; font-size: 18px; }
.forum-card p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.forum-card b { color: var(--accent); font-size: 11px; }
.audio-dock { position: fixed; left: 50%; bottom: 18px; z-index: 80; width: min(900px, calc(100% - 28px)); display: grid; grid-template-columns: 46px minmax(130px, 220px) 1fr auto 32px; gap: 15px; align-items: center; padding: 13px 17px; border: 1px solid #3a4654; border-radius: 17px; background: rgba(17,21,27,.97); box-shadow: 0 24px 70px rgba(0,0,0,.5); transform: translateX(-50%); backdrop-filter: blur(20px); }
.audio-dock[hidden] { display: none; }
.audio-dock button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--text); color: var(--bg); cursor: pointer; }
.audio-dock > div { display: flex; min-width: 0; flex-direction: column; }
.audio-dock strong, .audio-dock small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audio-dock small, .audio-dock > span { color: var(--muted); font-size: 10px; }
.audio-dock input { accent-color: var(--accent); }

/* Dialogs and forms */
dialog { color: var(--text); }
dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(8px); }
.upload-dialog, .comment-dialog, .topic-view-dialog { width: min(680px, calc(100% - 28px)); max-height: 90vh; padding: 0; overflow: auto; border: 1px solid #38414e; border-radius: 22px; background: var(--surface); box-shadow: 0 40px 120px rgba(0,0,0,.55); }
.dialog-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 28px; border: 0; border-bottom: 1px solid var(--line); background: rgba(17,21,27,.97); }
.dialog-head small { color: var(--accent); font-size: 9px; font-weight: 850; letter-spacing: .18em; }
.dialog-head h2 { margin: 5px 0 0; font-size: 26px; }
.dialog-head button { width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; font-size: 22px; }
.upload-form { display: grid; gap: 19px; padding: 28px; }
.upload-form > label, .two-fields > label, .video-field { display: flex; flex-direction: column; gap: 9px; color: #ccd3db; font-size: 12px; font-weight: 700; }
.upload-form input, .video-field input { height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: #0b0e12; color: var(--text); }
.upload-form input:focus, .video-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(104,216,236,.09); }
.upload-form textarea { min-height: 105px; font-size: 14px; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.file-drop { position: relative; min-height: 160px; display: grid !important; place-items: center; align-content: center; gap: 7px !important; padding: 25px; border: 1px dashed #45515f; border-radius: 16px; background: #0d1117; text-align: center; cursor: pointer; }
.file-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-drop > span { color: var(--accent); font-size: 26px; }
.file-drop small { color: var(--muted); font-weight: 400; }
.form-message { min-height: 18px; margin: 0; color: #ffc6cf; font-size: 12px; }
.auth-dialog { width: min(510px, calc(100% - 28px)); max-height: 92vh; padding: 0; overflow: auto; border: 1px solid #38414e; border-radius: 22px; background: var(--surface); box-shadow: 0 40px 120px rgba(0,0,0,.6); color: var(--text); }
.auth-brand { display: flex; align-items: center; gap: 12px; padding: 22px 25px; border-bottom: 1px solid var(--line); }
.auth-brand img { width: 46px; height: 46px; object-fit: contain; }
.auth-brand > div { display: flex; flex: 1; flex-direction: column; gap: 3px; }
.auth-brand strong { font-size: 13px; letter-spacing: .16em; }
.auth-brand small { color: var(--muted); font-size: 9px; }
.auth-brand > button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; font-size: 21px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 22px 25px 0; padding: 4px; border-radius: 12px; background: #0b0e12; }
.auth-tabs button { height: 39px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.auth-tabs button.selected { background: var(--surface-2); color: var(--text); }
.auth-copy { padding: 28px 28px 5px; }
.auth-copy > small { color: var(--accent); font-size: 9px; font-weight: 850; letter-spacing: .17em; }
.auth-copy h2 { margin: 8px 0; font-size: 30px; letter-spacing: -.035em; }
.auth-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.auth-form { display: grid; gap: 16px; padding: 20px 28px; }
.auth-form label { display: flex; flex-direction: column; gap: 8px; color: #ccd3db; font-size: 11px; font-weight: 700; }
.auth-form input { height: 47px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: #0b0e12; color: var(--text); }
.auth-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(104,216,236,.09); }
.auth-form .otp-input { font-size: 23px; font-weight: 850; letter-spacing: .25em; text-align: center; }
.auth-message { min-height: 16px; margin: 0; color: var(--green); font-size: 11px; }
.auth-message.error { color: #ff9aac; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; padding: 3px 25px 27px; }
.auth-links button { border: 0; background: transparent; color: var(--accent); cursor: pointer; font-size: 10px; }
.account-copy { padding: 30px 30px 22px; text-align: center; }
.account-copy > small { color: var(--accent); font-size: 8px; font-weight: 850; letter-spacing: .18em; }
.account-copy h2 { margin: 8px 0 7px; font-size: 30px; }
.account-copy p { margin: 0; color: var(--muted); font-size: 11px; }
.account-copy p b { color: #bcb5ff; }
.account-links { display: grid; border-top: 1px solid var(--line); }
.account-links a, .account-links button { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; align-items: center; padding: 17px 24px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; text-align: left; }
.account-links a:hover, .account-links button:hover { background: var(--accent-soft); }
.account-links strong { font-size: 12px; }
.account-links small { color: var(--muted); font-size: 9px; }
.account-links b { grid-column: 2; grid-row: 1 / 3; color: var(--accent); }
.account-logout { display: block; width: calc(100% - 48px); min-height: 43px; margin: 22px 24px 25px; border: 1px solid rgba(255,82,111,.32); border-radius: 10px; background: rgba(255,82,111,.07); color: #ff8ba0; cursor: pointer; font-weight: 750; }
.comment-list, .topic-view { padding: 27px; }
.comment { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment b, .comment small { display: block; }
.comment small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.comment p { margin: 10px 0 0; line-height: 1.6; }
.comment-form, .reply-form { display: grid; gap: 12px; padding: 0 27px 27px; }
.comment-form textarea, .reply-form textarea { min-height: 90px; font-size: 14px; }
.comment-form .primary-button, .reply-form .primary-button { justify-self: end; min-width: 150px; }

/* Forum */
.forum-hero { min-height: 380px; }
.forum-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 45px; max-width: 1430px; margin: auto; padding: 54px clamp(22px, 5vw, 96px) 120px; }
.forum-categories > nav { display: grid; }
.forum-categories > nav button { display: flex; justify-content: space-between; gap: 12px; padding: 14px 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; text-align: left; }
.forum-categories > nav button:hover, .forum-categories > nav button.active { color: var(--text); background: var(--accent-soft); }
.forum-categories > nav b { color: var(--accent); }
.forum-guidelines { margin-top: 28px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.forum-guidelines strong { font-size: 13px; }
.forum-guidelines p { color: var(--muted); font-size: 11px; line-height: 1.6; }
.forum-guidelines a { color: var(--accent); font-size: 10px; }
.topic-toolbar { display: grid; grid-template-columns: 1fr auto; gap: 15px; margin-bottom: 22px; }
.topic-list { border-top: 1px solid var(--line); }
.topic-row { border-bottom: 1px solid var(--line); }
.topic-row > button { width: 100%; display: grid; grid-template-columns: 42px minmax(0, 1fr) 70px 70px 24px; gap: 14px; align-items: center; padding: 20px 12px; border: 0; background: transparent; color: var(--text); cursor: pointer; text-align: left; transition: background .2s, padding .2s; }
.topic-row > button:hover { padding-left: 20px; background: rgba(255,255,255,.025); }
.topic-copy { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.topic-copy small { color: var(--accent); font-size: 8px; font-weight: 850; letter-spacing: .15em; }
.topic-copy strong { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.topic-copy em { color: var(--muted); font-size: 10px; font-style: normal; }
.topic-stat { display: flex; flex-direction: column; text-align: center; }
.topic-stat b { font-size: 14px; }
.topic-stat small { color: var(--muted); font-size: 8px; }
.topic-row i { color: var(--accent); font-style: normal; }
.topic-dialog { width: min(720px, calc(100% - 28px)); }
.topic-view-dialog { width: min(820px, calc(100% - 28px)); }
.forum-post { margin: 0 0 15px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #0d1015; }
.forum-post.original { border-color: rgba(104,216,236,.35); }
.forum-post > div { display: flex; gap: 10px; align-items: baseline; }
.forum-post small { color: var(--muted); font-size: 9px; }
.forum-post p { white-space: pre-wrap; margin: 14px 0 0; color: #c8d0d9; line-height: 1.7; }

/* Scene-based music video */
.video-hero { min-height: 420px; }
.video-principle { width: min(390px, 100%); padding: 26px; border: 1px solid rgba(104,216,236,.32); border-radius: 17px; background: var(--accent-soft); }
.video-principle span, .video-principle strong, .video-principle small { display: block; }
.video-principle span { color: #f58aa0; font-size: 10px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.video-principle strong { margin: 7px 0; font-size: 20px; }
.video-principle small { color: var(--muted); line-height: 1.5; }
.video-builder { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); gap: 24px; max-width: 1450px; margin: auto; padding: 45px clamp(22px, 5vw, 96px) 120px; }
.video-controls, .storyboard-panel { padding: clamp(24px, 3vw, 38px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.builder-step { display: flex; gap: 14px; align-items: center; margin: 5px 0 18px; }
.builder-step:not(:first-child) { margin-top: 38px; padding-top: 31px; border-top: 1px solid var(--line); }
.builder-step > span { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(104,216,236,.3); border-radius: 11px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 850; }
.builder-step small { color: var(--accent); font-size: 8px; letter-spacing: .17em; }
.builder-step h2 { margin: 3px 0 0; font-size: 20px; }
.compact-drop { min-height: 128px; }
.video-field textarea { min-height: 118px; font-size: 14px; }
.video-field select { width: 100%; background: #0b0e12; }
.style-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.style-grid button { min-height: 125px; display: flex; flex-direction: column; gap: 5px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #0d1015; color: var(--text); cursor: pointer; text-align: left; }
.style-grid button:hover, .style-grid button.selected { border-color: var(--accent); background: var(--accent-soft); }
.style-grid i { height: 52px; margin-bottom: 5px; border-radius: 8px; background: linear-gradient(140deg, #233140, #57798a); }
.style-grid .style-performance { background: linear-gradient(140deg, #2c1c29, #81485b); }
.style-grid .style-urban { background: linear-gradient(140deg, #15223d, #7b2b83); }
.style-grid .style-dream { background: linear-gradient(140deg, #647b91, #a68aaf); }
.style-grid .style-animated { background: linear-gradient(140deg, #163f49, #2bc1a2); }
.style-grid .style-future { background: linear-gradient(140deg, #0d0e13, #c12747); }
.style-grid strong { font-size: 11px; }
.style-grid small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.video-plan-button { margin-top: 30px; }
.storyboard-panel { position: sticky; top: 98px; height: max-content; max-height: calc(100vh - 125px); overflow: auto; background: #0d1015; }
.storyboard-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 20px; }
.storyboard-head small { color: var(--accent); font-size: 8px; font-weight: 850; letter-spacing: .18em; }
.storyboard-head h2 { margin: 5px 0 0; }
.storyboard-head > span { padding: 7px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: 9px; }
.story-frame { min-height: 220px; display: grid; place-items: center; align-content: center; padding: 30px; border-radius: 15px; background: radial-gradient(circle at 60% 30%, #31475b, #10131a 68%); text-align: center; }
.story-frame > span { font-size: 35px; font-weight: 900; letter-spacing: .12em; }
.story-frame strong { margin-top: 16px; font-size: 18px; }
.story-frame small { margin-top: 7px; color: #aab5c2; }
.shot-list { display: grid; gap: 8px; margin-top: 13px; }
.shot-list article { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.shot-list article > b { color: var(--accent); font-size: 10px; }
.shot-list strong { font-size: 11px; }
.shot-list p { margin: 4px 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.shot-list small { color: #687380; font-size: 8px; }
.story-cost { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 17px 0; }
.story-cost > div { display: flex; flex-direction: column; gap: 5px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; }
.story-cost span { color: var(--muted); font-size: 9px; }
.story-cost strong { font-size: 11px; }
.secondary-wide { width: 100%; min-height: 49px; padding: 10px 15px; border: 1px solid var(--accent); border-radius: 12px; background: var(--accent-soft); color: var(--text); cursor: pointer; font-weight: 800; }
.secondary-wide:disabled { border-color: var(--line); color: #68717c; cursor: not-allowed; }
.safety-note { color: var(--muted); font-size: 9px; line-height: 1.55; }

/* Local audio tools */
.audio-tools-hero { min-height: 400px; }
.privacy-panel { width: min(350px, 100%); display: grid; grid-template-columns: 42px 1fr; gap: 5px 13px; padding: 22px; border: 1px solid rgba(89,223,154,.3); border-radius: 16px; background: rgba(89,223,154,.07); }
.privacy-panel > span { grid-row: 1 / 3; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(89,223,154,.12); color: var(--green); }
.privacy-panel strong { font-size: 14px; }
.privacy-panel small { color: var(--muted); line-height: 1.45; }
.audio-tool-layout { display: grid; grid-template-columns: 285px minmax(0, 1fr); gap: 45px; max-width: 1400px; margin: auto; padding: 52px clamp(22px, 5vw, 96px) 120px; }
.audio-tool-nav { position: sticky; top: 105px; height: max-content; display: grid; }
.audio-tool-nav > button { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 17px 11px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; text-align: left; }
.audio-tool-nav > button:hover, .audio-tool-nav > button.active { background: var(--accent-soft); color: var(--text); }
.audio-tool-nav > button b { color: var(--accent); font-size: 10px; }
.audio-tool-nav > button span { display: flex; flex-direction: column; gap: 4px; }
.audio-tool-nav > button strong { font-size: 13px; }
.audio-tool-nav > button small { color: var(--muted); font-size: 9px; }
.audio-tool-stage { min-width: 0; }
.audio-tool-panel { display: none; padding: clamp(24px, 4vw, 46px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.audio-tool-panel.active { display: block; }
.audio-panel-head { display: flex; justify-content: space-between; gap: 25px; align-items: flex-start; margin-bottom: 30px; }
.audio-panel-head small { color: var(--accent); font-size: 9px; font-weight: 850; letter-spacing: .17em; }
.audio-panel-head h2 { margin: 8px 0; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.045em; }
.audio-panel-head p { max-width: 650px; margin: 0; color: var(--muted); line-height: 1.6; }
.audio-panel-head > span { flex: 0 0 auto; padding: 9px 12px; border: 1px solid rgba(136,125,244,.35); border-radius: 99px; background: rgba(136,125,244,.1); color: #bcb5ff; font-size: 10px; }
.audio-tool-panel .file-drop { margin-bottom: 20px; }
.file-drop.has-file { border-color: var(--green); background: rgba(89,223,154,.06); }
.audio-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 24px; }
.audio-choices button { min-height: 78px; display: flex; flex-direction: column; gap: 5px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #0b0e12; color: var(--text); cursor: pointer; text-align: left; }
.audio-choices button:hover, .audio-choices button.selected { border-color: var(--accent); background: var(--accent-soft); }
.audio-choices small { color: var(--muted); font-size: 9px; }
.split-explainer { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 24px; }
.split-explainer article { display: grid; grid-template-columns: 34px 1fr; gap: 5px 10px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: #0b0e12; }
.split-explainer b { grid-row: 1 / 3; color: var(--accent); font-size: 10px; }
.split-explainer strong { font-size: 12px; }
.split-explainer small { color: var(--muted); font-size: 9px; }
.audio-result { display: grid; gap: 12px; margin-top: 20px; }
.audio-result article { padding: 18px; border: 1px solid rgba(89,223,154,.27); border-radius: 14px; background: rgba(89,223,154,.05); }
.audio-result article > div { display: grid; grid-template-columns: 32px 1fr auto; gap: 11px; align-items: center; }
.audio-result article > div > span { color: var(--green); }
.audio-result p { display: flex; margin: 0; flex-direction: column; gap: 3px; }
.audio-result small { color: var(--muted); font-size: 9px; }
.audio-result a { padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--accent); font-size: 9px; }
.audio-result audio { width: 100%; margin-top: 14px; }

.coin-dialog { width: min(760px, calc(100% - 28px)); max-height: 92vh; padding: 0 0 24px; overflow: auto; border: 1px solid #38414e; border-radius: 22px; background: var(--surface); box-shadow: 0 40px 120px rgba(0,0,0,.65); color: var(--text); }
.coin-dialog::backdrop { background: rgba(3,5,8,.78); backdrop-filter: blur(7px); }
.coin-loading { padding: 42px; color: var(--muted); text-align: center; }
.coin-dialog-copy { padding: 28px 28px 18px; text-align: center; }
.coin-dialog-copy h2 { margin: 0 0 8px; font-size: 30px; }
.coin-dialog-copy p { max-width: 560px; margin: auto; color: var(--muted); line-height: 1.55; }
.coin-pack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 24px; }
.coin-pack-grid button { min-height: 190px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 23px; border: 1px solid var(--line); border-radius: 16px; background: #0b0f14; color: var(--text); cursor: pointer; text-align: left; }
.coin-pack-grid button:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.coin-pack-grid button:disabled { opacity: .55; cursor: wait; }
.coin-pack-grid small { color: var(--accent); font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.coin-pack-grid strong { margin-top: 5px; font-size: 23px; }
.coin-pack-grid span { font-size: 18px; }
.coin-pack-grid em { margin-top: auto; color: var(--muted); font-size: 9px; font-style: normal; }
.coin-mode { margin: 16px 0 0; color: var(--muted); text-align: center; font-size: 9px; }

/* Owner dashboard */
.owner-shell { min-height: calc(100vh - 76px); padding: 65px clamp(22px, 5vw, 96px) 110px; background: radial-gradient(circle at 85% 0, rgba(136,125,244,.08), transparent 28%); }
.owner-heading { display: flex; justify-content: space-between; align-items: end; gap: 35px; max-width: 1400px; margin: 0 auto 40px; }
.owner-heading .eyebrow { justify-content: flex-start; }
.owner-heading h1 { margin: 15px 0 8px; font-size: clamp(46px, 6vw, 76px); letter-spacing: -.06em; }
.owner-heading p { margin: 0; color: var(--muted); }
.owner-lock { min-height: 390px; max-width: 900px; display: grid; place-items: center; align-content: center; margin: 30px auto; padding: 40px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); text-align: center; }
.owner-lock[hidden], .owner-dashboard[hidden] { display: none; }
.owner-lock > span { color: var(--accent); font-size: 38px; }
.owner-lock h2 { margin: 18px 0 7px; }
.owner-lock p { margin: 0; color: var(--muted); }
.owner-dashboard { max-width: 1400px; margin: auto; }
.owner-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.owner-stats article { padding: 23px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.owner-stats small { display: block; color: var(--accent); font-size: 8px; font-weight: 850; letter-spacing: .18em; }
.owner-stats strong { display: block; margin-top: 8px; font-size: 37px; }
.owner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.owner-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.owner-card > header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 21px 23px; border-bottom: 1px solid var(--line); }
.owner-card > header small { color: var(--accent); font-size: 8px; font-weight: 850; letter-spacing: .18em; }
.owner-card > header h2 { margin: 4px 0 0; font-size: 20px; }
.owner-card > header > span, .owner-card > header > a { color: var(--muted); font-size: 9px; }
.admin-list { max-height: 430px; overflow: auto; }
.admin-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.admin-row > span { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.admin-row strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.admin-row small { color: var(--muted); font-size: 8px; }
.admin-row > div { display: flex; gap: 5px; }
.admin-row button { padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; font-size: 8px; }
.admin-row button:hover { border-color: var(--accent); color: var(--text); }
.admin-empty { padding: 30px; color: var(--muted); text-align: center; font-size: 11px; }
.finance-card > p { margin: 0; padding: 0 22px 22px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.finance-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 20px; }
.finance-summary > div { display: flex; flex-direction: column; gap: 5px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #0d1015; }
.finance-summary span { color: var(--muted); font-size: 9px; }
.finance-summary strong { font-size: 18px; }
.provider-links { display: grid; }
.provider-links a { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.provider-links a:last-child { border-bottom: 0; }
.provider-links a:hover { background: var(--accent-soft); }
.provider-links strong { font-size: 12px; }
.provider-links small { color: var(--muted); font-size: 9px; }
.provider-links b { grid-column: 2; grid-row: 1 / 3; color: var(--accent); }

/* Support popup and extended owner controls */
.support-dialog { width: min(1280px, calc(100% - 28px)); max-height: 92vh; padding: 0; overflow: auto; border: 1px solid #38414e; border-radius: 22px; background: #0c0f14; box-shadow: 0 40px 120px rgba(0,0,0,.7); color: var(--text); }
.support-dialog::backdrop { background: rgba(3,5,8,.8); backdrop-filter: blur(8px); }
.support-head { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; gap: 28px; align-items: center; padding: 23px 27px; border-bottom: 1px solid var(--line); background: rgba(12,15,20,.96); backdrop-filter: blur(16px); }
.support-head small { color: var(--accent); font-size: 8px; font-weight: 850; letter-spacing: .2em; }
.support-head h2 { margin: 4px 0; font-size: 27px; }
.support-head p { margin: 0; color: var(--muted); font-size: 10px; }
.support-head > div:last-child { display: flex; gap: 8px; }
.staff-online { display: inline-flex; align-items: center; gap: 6px; padding: 0 9px; color: var(--green); font-size: 9px; font-weight: 800; }
.staff-online i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(89,223,154,.8); }
.support-head button { min-height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); cursor: pointer; }
.support-head [data-support-close] { width: 38px; padding: 0; font-size: 20px; }
.support-body { padding: 18px; }
.support-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 14px; }
.support-stats article { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.support-stats small { display: block; color: var(--accent); font-size: 8px; font-weight: 850; letter-spacing: .16em; }
.support-stats strong { display: block; margin-top: 7px; font-size: 28px; }
.support-health.ok { color: var(--green); }
.support-health.warn { color: #ffb95a; }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.support-search, .admin-search, .support-role-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.support-search input, .admin-search input, .support-role-form input { min-width: 0; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; outline: none; background: #090c10; color: var(--text); }
.support-search input:focus, .admin-search input:focus, .support-role-form input:focus { border-color: var(--accent); }
.support-search button, .admin-search button, .support-role-form button { min-height: 38px; padding: 0 13px; border: 1px solid rgba(104,216,236,.36); border-radius: 9px; background: var(--accent-soft); color: var(--accent); cursor: pointer; font-size: 9px; font-weight: 800; }
.support-role-form { grid-template-columns: minmax(0, 1fr) auto auto; }
.staff-badge, .job-state { flex: 0 0 auto; padding: 6px 8px; border: 1px solid rgba(136,125,244,.35); border-radius: 7px; color: #bcb5ff; font-size: 8px; }
.job-state.failed, .job-state.refunded { border-color: rgba(255,82,111,.35); color: #ff8ba0; }
.job-state.ready { border-color: rgba(89,223,154,.35); color: var(--green); }
.payment-row strong { white-space: normal; }
.margin-safe { color: var(--green); }
.margin-danger { color: #ff7991; }
.support-ticket-card { grid-column: 1 / -1; }
.support-ticket-list { display: grid; max-height: 620px; overflow: auto; }
.support-case { border-bottom: 1px solid var(--line); background: #0d1117; }
.support-case[open] { background: #10151c; }
.support-case.priority-urgent { box-shadow: inset 4px 0 #ff4d6d; }
.support-case.priority-high { box-shadow: inset 4px 0 #ffb04f; }
.support-case summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 20px; cursor: pointer; list-style: none; }
.support-case summary::-webkit-details-marker { display: none; }
.support-case summary > span { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.support-case summary small { color: var(--accent); font-size: 8px; font-weight: 850; letter-spacing: .12em; }
.support-case summary strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.support-case summary em { color: var(--muted); font-size: 9px; font-style: normal; }
.support-conversation { display: grid; gap: 9px; max-height: 330px; overflow: auto; padding: 18px 20px; border-top: 1px solid var(--line); background: #090c10; }
.support-message { max-width: 80%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px 13px 13px 4px; background: var(--surface); }
.support-message:has(small:first-child) { justify-self: start; }
.support-message.internal { border-color: rgba(255,176,79,.34); background: rgba(255,176,79,.07); }
.support-message small { color: var(--accent); font-size: 8px; font-weight: 800; }
.support-message p { margin: 6px 0 0; color: #ccd3dc; font-size: 11px; line-height: 1.55; }
.ticket-controls { display: grid; grid-template-columns: 1fr 1fr auto; gap: 9px; padding: 14px 20px 0; }
.ticket-controls label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 8px; }
.ticket-controls select { height: 38px; }
.ticket-controls button, .ticket-reply button { align-self: end; min-height: 38px; padding: 0 13px; border: 1px solid rgba(104,216,236,.35); border-radius: 9px; background: var(--accent-soft); color: var(--accent); cursor: pointer; font-size: 9px; font-weight: 800; }
.ticket-reply { padding: 10px 20px 18px; }
.ticket-reply textarea { min-height: 78px; margin: 0; padding: 12px 14px; border-radius: 10px; font-size: 11px; }
.ticket-reply > div { display: flex; gap: 8px; margin-top: 8px; }
.ticket-reply > div button:last-child { border-color: var(--line); background: transparent; color: var(--muted); }

/* Public Support AI */
.support-ai { position: fixed; right: 22px; bottom: 22px; z-index: 85; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.support-ai-launcher { min-width: 190px; display: grid; grid-template-columns: 38px 1fr; column-gap: 10px; align-items: center; padding: 10px 14px 10px 10px; border: 1px solid rgba(104,216,236,.42); border-radius: 16px; background: rgba(14,19,26,.97); color: var(--text); box-shadow: 0 18px 55px rgba(0,0,0,.42); cursor: pointer; text-align: left; }
.support-ai-launcher > span { grid-row: 1 / 3; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--violet)); color: #071014; font-size: 17px; }
.support-ai-launcher strong { font-size: 12px; }
.support-ai-launcher small { color: var(--muted); font-size: 9px; }
.support-ai-pulse { animation: sbk-support-pulse 2.2s ease-in-out infinite; }
@keyframes sbk-support-pulse { 50% { box-shadow: 0 0 22px rgba(104,216,236,.55); transform: scale(1.05); } }
.support-ai-panel { width: min(390px, calc(100vw - 28px)); max-height: min(690px, calc(100vh - 110px)); overflow: hidden; border: 1px solid #3a4452; border-radius: 20px; background: #0d1117; box-shadow: 0 32px 100px rgba(0,0,0,.7); }
.support-ai-panel[hidden] { display: none; }
.support-ai-panel > header { display: flex; align-items: center; justify-content: space-between; padding: 16px 17px; border-bottom: 1px solid var(--line); background: #11161d; }
.support-ai-panel > header > div { display: flex; align-items: center; gap: 11px; }
.support-ai-panel > header > div > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--violet)); color: #071014; }
.support-ai-panel > header div div { display: flex; flex-direction: column; gap: 3px; }
.support-ai-panel > header strong { font-size: 12px; }
.support-ai-panel > header small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 8px; }
.support-ai-panel > header small i { width: 6px; height: 6px; border-radius: 50%; background: #78828e; }
.support-ai-panel > header small i.online { background: var(--green); box-shadow: 0 0 8px rgba(89,223,154,.7); }
.support-ai-panel > header small b { font-weight: 600; }
.support-ai-panel > header button, .support-contact-form > div button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; font-size: 18px; }
.support-ai-messages { min-height: 170px; max-height: 260px; display: flex; flex-direction: column; gap: 9px; overflow: auto; padding: 15px; background: #090c10; }
.support-ai-message { max-width: 86%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 13px 13px 13px 4px; background: #141a22; }
.support-ai-message.user { align-self: flex-end; border-color: rgba(104,216,236,.3); border-radius: 13px 13px 4px 13px; background: var(--accent-soft); }
.support-ai-message p { margin: 0; color: #d1d7df; font-size: 11px; line-height: 1.55; }
.support-ai-suggestions { display: flex; gap: 6px; overflow-x: auto; padding: 11px 13px 3px; }
.support-ai-suggestions button { flex: 0 0 auto; padding: 7px 9px; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: var(--muted); cursor: pointer; font-size: 8px; }
.support-ai-suggestions button:hover { border-color: var(--accent); color: var(--text); }
.support-ai-ask { display: grid; grid-template-columns: 1fr auto; gap: 7px; padding: 10px 13px 14px; }
.support-ai-ask input, .support-contact-form input, .support-contact-form select { min-width: 0; height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; outline: none; background: #090c10; color: var(--text); }
.support-ai-ask button { padding: 0 13px; border: 0; border-radius: 10px; background: var(--accent); color: #071014; cursor: pointer; font-weight: 850; }
.support-contact-form { max-height: 480px; display: grid; gap: 9px; overflow: auto; padding: 15px; border-top: 1px solid var(--line); background: #10151c; }
.support-contact-form[hidden] { display: none; }
.support-contact-form > div { display: flex; align-items: center; justify-content: space-between; }
.support-contact-form label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 9px; }
.support-contact-form textarea { min-height: 90px; margin: 0; padding: 11px; border-radius: 10px; font-size: 11px; }
.support-contact-form .primary-button { min-width: 0; min-height: 42px; }
.support-contact-form > a { color: var(--accent); font-size: 8px; text-align: center; }
.support-contact-form > p { margin: 0; color: var(--green); font-size: 9px; }
.support-contact-form > p.error { color: #ff8ca1; }
.support-honeypot { position: absolute !important; left: -10000px !important; }

/* Music library */
.library-hero { min-height: 390px; }
.link-button { display: grid; place-items: center; align-content: center; text-align: center; }
.library-workspace { max-width: 1380px; margin: auto; padding: 45px clamp(22px, 5vw, 96px) 120px; }
.library-toolbar { display: grid; grid-template-columns: 1fr auto; gap: 14px; margin-bottom: 22px; }
.library-notice { margin-bottom: 18px; padding: 12px 15px; border: 1px solid rgba(104,216,236,.24); border-radius: 12px; background: var(--accent-soft); color: #bceef6; font-size: 12px; }
.project-list { display: grid; gap: 16px; }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.project-card > header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 22px 25px; border-bottom: 1px solid var(--line); }
.project-card > header > div { display: flex; flex-direction: column; gap: 4px; }
.project-card > header small { color: var(--accent); font-size: 8px; font-weight: 850; letter-spacing: .18em; }
.project-card > header h2 { margin: 0; font-size: 20px; }
.project-card > header span { color: var(--muted); font-size: 9px; }
.project-card > header button { border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.version-row { display: grid; grid-template-columns: 72px minmax(160px, 260px) minmax(260px, 1fr) auto; gap: 18px; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.version-row:last-child { border-bottom: 0; }
.version-art { position: relative; width: 64px; height: 64px; display: grid; place-items: center; overflow: hidden; border-radius: 13px; background: radial-gradient(circle at 30% 25%, #47687a, #151b22 68%); }
.version-art span { font-size: 18px; font-weight: 900; }
.version-art i { position: absolute; inset: 0; border: 2px solid transparent; border-top-color: var(--accent); border-radius: inherit; animation: sbk-spin 1.2s linear infinite; }
.version-info { display: flex; flex-direction: column; gap: 4px; }
.version-info small { color: var(--accent); font-size: 8px; font-weight: 850; letter-spacing: .15em; }
.version-info strong { font-size: 14px; }
.version-info span { color: var(--muted); font-size: 9px; }
.version-player audio { width: 100%; height: 38px; }
.generation-progress i { display: block; height: 5px; overflow: hidden; border-radius: 99px; background: #252c35; }
.generation-progress em { display: block; width: 42%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--violet)); animation: sbk-progress 2.2s ease-in-out infinite alternate; }
@keyframes sbk-progress { from { transform: translateX(-35%); } to { transform: translateX(165%); } }
.generation-progress span, .demo-audio, .failed-state { display: block; margin: 7px 0 0; color: var(--muted); font-size: 9px; }
.failed-state { color: #ff9aac; }
.version-actions { display: flex; gap: 7px; }
.version-actions a, .version-actions button { min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; font-size: 9px; }
.version-actions button:hover, .version-actions a:hover { border-color: var(--accent); color: var(--text); }
.version-actions button:disabled { opacity: .4; cursor: not-allowed; }
.video-render-result { max-width: 1400px; margin: 0 auto 110px; padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.video-render-result > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.video-render-result > header small { color: var(--accent); font-size: 8px; font-weight: 850; letter-spacing: .17em; }
.video-render-result > header h2 { margin: 7px 0 0; font-size: 31px; }
.video-render-result > header > span { color: var(--muted); font-size: 10px; }
.video-job-progress i { display: block; height: 7px; overflow: hidden; border-radius: 99px; background: #242a32; }
.video-job-progress em { display: block; width: 3%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--violet)); transition: width .35s; }
.video-job-progress p { margin: 9px 0 24px; color: var(--muted); font-size: 10px; }
.scene-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.scene-preview-grid article { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #090c10; }
.scene-preview-grid video { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #030405; }
.scene-preview-grid article > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; }
.scene-preview-grid strong { font-size: 10px; }
.scene-preview-grid button { border: 0; background: transparent; color: var(--accent); cursor: pointer; font-size: 9px; }
.video-sequence-player { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); gap: 20px; margin-top: 24px; padding: 18px; border: 1px solid rgba(104,216,236,.25); border-radius: 16px; background: rgba(104,216,236,.04); }
.video-sequence-player[hidden] { display: none; }
.video-sequence-player video { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; background: #000; }
.video-sequence-player > div { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.video-sequence-player audio { width: 100%; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .field-row, .community-band, .advanced-grid.three { grid-template-columns: 1fr; }
  .track-grid { grid-template-columns: 1fr 1fr; }
  .track-card.featured { grid-column: 1 / -1; }
  .community-band { gap: 40px; }
  .page-hero { align-items: flex-start; flex-direction: column; }
  .discover-layout, .video-builder { grid-template-columns: 1fr; }
  .discover-aside { display: grid; grid-template-columns: 1fr 1fr; }
  .storyboard-panel { position: static; max-height: none; }
  .forum-layout { grid-template-columns: 1fr; }
  .forum-categories > nav { grid-template-columns: 1fr 1fr; }
  .audio-tool-layout { grid-template-columns: 1fr; }
  .audio-tool-nav { position: static; grid-template-columns: repeat(3, 1fr); }
  .audio-tool-nav > .aside-label { grid-column: 1 / -1; }
  .owner-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .version-row { grid-template-columns: 64px 1fr auto; }
  .version-player { grid-column: 2 / -1; }
}

@media (max-width: 650px) {
  .site-header { height: 68px; padding-inline: 15px; }
  .brand img { width: 39px; height: 39px; }
  .brand span { display: none; }
  .header-actions { gap: 6px; }
  .language-switcher { padding-inline: 8px; }
  .language-switcher select { width: 62px; }
  .brand span { display: none; }
  .header-actions { gap: 6px; }
  .language-switcher { padding-inline: 8px; }
  .language-switcher select { width: 62px; }
  .coin-pill span:last-child { display: none; }
  .profile-button { padding-inline: 13px; }
  .studio-hero { padding-top: 68px; }
  .studio-intro { text-align: left; }
  .studio-intro .eyebrow, .trust-row { justify-content: flex-start; }
  .studio-intro h1 { font-size: 54px; }
  .creator-card { border-radius: 18px; }
  .creator-modes { grid-template-columns: 1fr; }
  .advanced-grid { grid-template-columns: 1fr; }
  .creator-head { align-items: flex-start; }
  .creator-head > div { align-items: flex-start; }
  .creator-footer { align-items: stretch; flex-direction: column; }
  .primary-button { width: 100%; }
  .track-grid { grid-template-columns: 1fr; }
  .track-card.featured { grid-column: auto; }
  .home-community-empty { grid-template-columns: 46px 1fr; }
  .home-community-empty > a { grid-column: 2; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .community-band { padding-block: 70px; }
  .tool-list a { grid-template-columns: 44px 1fr 24px; }
  .tool-list small { display: none; }
  footer { align-items: flex-start; flex-direction: column; }
  .page-hero { min-height: 0; padding-top: 60px; gap: 35px; }
  .page-hero h1 { font-size: 57px; }
  .discover-layout, .forum-layout, .video-builder { padding-block: 32px 90px; }
  .feed-toolbar, .topic-toolbar { grid-template-columns: 1fr; }
  .feed-toolbar .filter-pills { grid-column: auto; }
  .feed-track { grid-template-columns: 1fr; }
  .feed-cover { min-height: 260px; }
  .discover-aside { grid-template-columns: 1fr; }
  .audio-dock { grid-template-columns: 40px 1fr auto 28px; }
  .audio-dock input { grid-column: 1 / -1; grid-row: 2; }
  .two-fields, .style-grid, .story-cost { grid-template-columns: 1fr; }
  .forum-categories > nav { grid-template-columns: 1fr; }
  .topic-row > button { grid-template-columns: 36px minmax(0, 1fr) 24px; }
  .topic-stat { display: none; }
  .video-controls, .storyboard-panel { padding: 20px; }
  .audio-tool-nav { grid-template-columns: 1fr; }
  .audio-tool-nav > .aside-label { grid-column: auto; }
  .audio-panel-head { flex-direction: column; }
  .audio-choices, .split-explainer { grid-template-columns: 1fr; }
  .audio-result article > div { grid-template-columns: 28px 1fr; }
  .audio-result a { grid-column: 2; width: max-content; }
  .owner-heading { align-items: flex-start; flex-direction: column; }
  .owner-stats { grid-template-columns: 1fr 1fr; }
  .support-stats { grid-template-columns: 1fr 1fr; }
  .support-head { align-items: flex-start; flex-direction: column; }
  .support-role-form { grid-template-columns: 1fr; }
  .ticket-controls { grid-template-columns: 1fr; }
  .support-ai { right: 12px; bottom: 12px; }
  .support-ai-launcher { min-width: 0; }
  .support-ai-launcher strong, .support-ai-launcher small { display: none; }
  .support-ai-panel { max-height: calc(100vh - 82px); }
  .coin-pack-grid { grid-template-columns: 1fr; }
  .admin-row { align-items: flex-start; flex-direction: column; }
  .library-toolbar { grid-template-columns: 1fr; }
  .version-row { grid-template-columns: 52px 1fr; padding: 16px; }
  .version-art { width: 50px; height: 50px; }
  .version-player, .version-actions { grid-column: 1 / -1; }
  .scene-preview-grid, .video-sequence-player { grid-template-columns: 1fr; }
}
