:root {
  --bg: #0c0a08;
  --text: #f1e8db;
  --muted: #bcaa99;
  --bronze: #d3a679;
  --line: #39291e;
}
html { scrollbar-color: #936647 #1c1510; }
.velvet, .admin-body { background: var(--bg); color: var(--text); }
.velvet :focus-visible, .admin-body :focus-visible { outline-color: #e4b587; }
.velvet .site-wrap { max-width: 1032px; padding: 0 24px; }
.velvet .city-backdrop { height: 610px; }
.velvet .city-backdrop > img { object-position: center 42%; opacity: .84; }
.velvet .city-backdrop::after, .admin-body .city-backdrop::after {
  background: linear-gradient(90deg,#0c0a08 4%,#0c0a08bd 40%,#0c0a0817 75%,#0c0a08aa 100%),
    linear-gradient(0deg,#0c0a08 6%,transparent 68%);
}
.velvet .ambient { display: none; }
.velvet .topbar { height: 95px; border-bottom: 1px solid #d3a67932; }
.velvet .topbar .brand-logo, .admin-top .brand-logo {
  width: min(295px,70vw); height: 65px; object-fit: contain; object-position: left center;
}
.velvet .hero {
  display: grid; grid-template-columns: minmax(0,700px); align-items: center;
  min-height: 300px; padding: 35px 0 48px;
}
.velvet .hero-eyebrow { color: #e0b286; margin: 0 0 18px; letter-spacing: .19em; }
.velvet .hero-eyebrow span { background: var(--bronze); box-shadow: none; }
.velvet .hero h1 {
  background: none; color: #f4e3cd; -webkit-text-fill-color: currentColor;
  font: 400 clamp(3rem,8vw,5.6rem)/.98 Georgia,serif; white-space: pre-line;
  margin: 0 0 19px; text-shadow: 0 4px 28px #100905a8; letter-spacing: -.05em;
}
.velvet .hero h1::after { display: none; }
.velvet .hero-subtitle { color: #ead7c2; margin: 0; max-width: none; font-size: 1rem; text-shadow: 0 2px 9px #0e0906; }
.velvet .glass, .admin-body .glass {
  background: linear-gradient(145deg,#221a14,#15110e 55%,#110f0d);
  border: 1px solid var(--line); box-shadow: 0 7px 25px #0003; backdrop-filter: none;
}
.velvet .radio-player {
  max-width: none; display: grid; grid-template-columns: 128px minmax(0,1fr) 91px;
  align-items: center; gap: 25px; padding: 16px; border-radius: 7px; margin: 0 0 14px;
}
.radio-cover { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid #ad7d5455; border-radius: 5px; }
.radio-details { min-width: 0; }
.radio-details .eyebrow { color: var(--bronze); font-size: .72rem; letter-spacing: .15em; }
.radio-details h2 { font: 400 clamp(1.3rem,3vw,2.1rem)/1.12 Georgia,serif; margin: 6px 0; overflow-wrap: anywhere; }
.velvet .player-state { margin: 0; max-width: none; font-size: .8rem; color: var(--muted); box-shadow: none; }
.velvet .player-state.active { color: #ecc59d; }
.velvet #spectrum { width: 100%; height: 40px; margin-top: 9px; display: block; }
.velvet .radio-play {
  justify-self: center; width: 61px; height: 61px; padding: 17px;
  background: linear-gradient(145deg,#eac498,#b58053); color: #21140c;
  border: 1px solid #f3cfaa; box-shadow: 0 0 23px #dca67924;
}
.velvet .radio-play:hover { box-shadow: 0 0 20px #dbab7566; }
.velvet .radio-play svg, .velvet .voice-play svg { width: 100%; height: 100%; fill: #24160d; }
.velvet .player-note { font-size: .75rem; color: var(--muted); margin: 6px 0 0; }
.radio-grid, .community-grid { display: grid; gap: 14px; align-items: stretch; margin-bottom: 14px; }
.radio-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.community-grid { grid-template-columns: minmax(0,.66fr) minmax(0,1.34fr); }
.velvet .wall-section, .history-section, .artist-gallery, .velvet .submit-section {
  margin: 0; padding: 17px 18px; border-radius: 7px; min-width: 0;
}
.panel-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 11px; }
.panel-heading h2 {
  margin: 0; font: 600 .8rem/1.4 Arial,sans-serif; text-transform: uppercase;
  letter-spacing: .115em; color: #e1b080;
}
.panel-heading h2::after { content: ''; display: block; background: #9a6b45; width: 25px; height: 1px; margin-top: 8px; }
.velvet .panel-heading .text-link, #history-state { margin: 0; color: var(--muted); font-size: .75rem; }
.velvet .voice-track {
  display: block; height: 165px; margin: 0; padding: 0 5px 0 0; overflow: auto;
  scroll-snap-type: none; scrollbar-color: #a27350 #241b14; scrollbar-width: thin;
}
.velvet .voice-card, .recent-tracks li {
  height: 55px; border: 0; border-bottom: 1px solid #dca67a26; border-radius: 0;
  box-shadow: none; background: none;
}
.velvet .voice-card {
  display: grid; align-items: center; grid-template-columns: minmax(0,1fr) minmax(100px,.9fr);
  gap: 8px; min-height: 0; padding: 0 4px 0 0;
}
.velvet .voice-card.is-playing { background: #68422932; }
.velvet .voice-person { min-width: 0; display: flex; align-items: center; gap: 8px; }
.velvet .voice-person > div:last-child { padding: 0; border: 0; }
.velvet .voice-card .avatar {
  width: 36px; height: 36px; flex-basis: 36px; border: 1px solid #b78a5d77;
  border-radius: 3px; box-shadow: none; filter: saturate(.5);
}
.velvet .voice-card h3, .recent-tracks strong { font: 400 1rem/1.1 Georgia,serif; color: var(--text); margin: 0 0 3px; }
.velvet .voice-card p, .recent-tracks span {
  color: var(--muted); font-size: .73rem; min-height: 0; margin: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.velvet .voice-audio { gap: 6px; padding: 0; margin: 0; min-width: 0; }
.velvet .voice-play {
  width: 29px; height: 29px; border: 1px solid #ca9b70; padding: 6px;
  background: #c7976b; box-shadow: none;
}
.velvet .voice-wave {
  position: relative; display: block; height: 9px; border-radius: 2px;
  background: #4a3123; mask: repeating-linear-gradient(90deg,#000 0 2px,transparent 2px 4px);
}
.velvet .voice-wave::before {
  content: ''; position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--level,0%)) 0 0);
  background: linear-gradient(90deg,#93603c,#cf9b66 70%,#efc99a);
}
.velvet .voice-duration { font-size: .69rem; color: var(--muted); }
.velvet .demo-tag { display: none; }
.wall-bottom { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 8px; color: var(--muted); font-size: .67rem; }
.velvet .auto-button, .gallery-tools button { color: #e4c8ae; background: transparent; border: 1px solid #80583c; border-radius: 4px; padding: 5px 8px; font-size: .72rem; max-width: none; }
.velvet .empty-wall { border-color: #795a45; color: var(--muted); padding: 15px; }
.recent-tracks { list-style: none; margin: 0; padding: 0; }
.recent-tracks li { display: flex; align-items: center; gap: 11px; min-width: 0; }
.recent-tracks li:last-child { border-bottom: 0; }
.recent-tracks li > div { min-width: 0; display: grid; }
.recent-tracks li strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.recent-tracks img { width: 38px; height: 38px; border-radius: 3px; object-fit: cover; }
.recent-tracks .history-empty { color: var(--muted); border: 0; height: auto; margin: 12px 0; }
.artist-gallery { align-self: stretch; }
.gallery-frame { isolation: isolate; display: block; position: relative; width: 100%; aspect-ratio: 1; margin: 0; background: #1c140e; overflow: hidden; border-radius: 5px; }
.gallery-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 36%;
  opacity: 0; transition: opacity .8s ease-in-out;
}
.gallery-photo.visible { opacity: 1; }
.gallery-caption {
  position: absolute; z-index: 3; inset: auto 0 0; padding: 40px 12px 11px;
  background: linear-gradient(0deg,#100b08e8,transparent);
  color: #fff1df; font: 400 1.15rem/1.2 Georgia,serif;
}
.gallery-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gallery-credits { margin-top: 10px; font-size: .75rem; color: var(--muted); }
.gallery-credits summary { cursor: pointer; }
.gallery-credits ul { padding-left: 18px; max-height: 250px; overflow: auto; overflow-wrap: anywhere; }
.gallery-credits li { margin: 5px 0; }
.gallery-credits a { text-decoration: underline; }
.velvet .submit-section::before { display: none; }
.velvet .form-intro h2 { font: 400 clamp(1.4rem,3vw,2rem)/1.1 Georgia,serif; margin: 0 0 7px; }
.velvet .form-intro p { font-size: .89rem; color: var(--muted); }
.velvet .submit-grid { grid-template-columns: minmax(0,1fr); gap: 14px; margin: 14px 0; }
.velvet .details-side { grid-template-columns: 93px minmax(0,1fr); gap: 12px; }
.velvet .photo-upload { height: 108px; margin-top: 23px; border-color: #a27456; }
.velvet .photo-placeholder, .velvet .photo-placeholder small, .velvet .muted, .velvet .record-help, .velvet .consent small { color: var(--muted); }
.velvet .photo-placeholder svg { stroke: var(--bronze); }
.velvet .text-fields input, .velvet .text-fields textarea, .admin-body .admin-field input:not([type=checkbox]), .admin-body .admin-field textarea {
  background: #140f0b; border-color: #74523b; color: var(--text);
}
.velvet .text-fields textarea { min-height: 61px; }
.velvet .text-fields input::placeholder, .velvet .text-fields textarea::placeholder { color: #b6a394; }
.velvet .record-side { padding: 12px 0 0; border: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px 13px; align-items: center; }
.velvet .record-side .record-actions { margin: 0; }
.velvet .record-side .record-help, .velvet .record-side audio { grid-column: 1/-1; margin: 0; }
.velvet .record-display { gap: 12px; }
.velvet .record-meta output { font-size: 1rem; }
.velvet .record-meta canvas { height: 19px; }
.velvet .mic-orb { width: 47px; height: 47px; border: 1px solid #dcaa7d; background: #422b1c; box-shadow: none; }
.velvet .mic-orb svg { width: 23px; height: 23px; stroke: #f3cdaa; }
.velvet .mic-orb.recording { box-shadow: 0 0 18px #efb980a0; }
.velvet .form-bottom { border-color: var(--line); padding-top: 13px; gap: 12px; }
.velvet .consent input, .admin-body .admin-check input { accent-color: #ba885e; }
.velvet .outline-button, .admin-body .outline-button {
  background: #291d14; border-color: #9d7153; color: #eed8c1; min-width: 0; padding: 8px 13px; border-radius: 4px;
}
.velvet .primary-button, .admin-body .primary-button {
  background: linear-gradient(135deg,#e8bd92,#b98255); border-color: #d19b71; border-radius: 4px;
  color: #21150c; box-shadow: none; white-space: normal;
}
.velvet .primary-button:hover, .admin-body .primary-button:hover { box-shadow: 0 0 18px #d1a07342; }
.velvet .subtle-button, .velvet .form-notice.success { color: #ecd0b1; }
.velvet .form-notice, .velvet .toast { background: #211710; border-color: #8e6549; color: var(--text); }
.velvet-footer {
  display: block; padding: 0; margin-top: 26px; border-top: 1px solid #6f4f37; color: var(--muted); font-size: .85rem;
}
.footer-main, .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.footer-main { padding: 18px 0; }
.velvet-footer .brand-logo { width: 180px; height: 44px; object-fit: contain; }
.velvet-footer nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.velvet-footer a:hover, .velvet .text-link:hover { color: #f5c99d; }
.footer-bottom { border-top: 1px solid var(--line); padding: 13px 0 20px; }
.footer-bottom .admin-link { color: var(--muted); }
.admin-body .admin-nav a, .admin-body .admin-alert, .admin-body .admin-stats span { border-color: #8b6042; color: var(--text); }
.admin-body .admin-nav a.active, .admin-body .admin-alert, .admin-body .admin-stats span { background: #462e20; }
.admin-body .admin-field small, .admin-body .admin-sub, .admin-body .muted { color: var(--muted); }
.admin-body .admin-panel { border-radius: 7px; }
@media (max-width: 760px) {
  .velvet .site-wrap { padding: 0 16px; }
  .velvet .topbar { height: 80px; }
  .velvet .hero { min-height: 246px; }
  .community-grid { grid-template-columns: minmax(0,1fr) minmax(0,1.5fr); }
  .velvet .form-bottom .primary-button { align-self: stretch; }
}
@media (max-width: 585px) {
  .radio-grid, .community-grid { grid-template-columns: minmax(0,1fr); }
  .velvet .hero { min-height: 226px; padding: 26px 0 34px; }
  .velvet .radio-player { grid-template-columns: 66px minmax(0,1fr) 42px; gap: 11px; padding: 10px; }
  .velvet .radio-play { width: 41px; height: 41px; padding: 10px; }
  .velvet #spectrum { height: 29px; margin-top: 5px; }
  .gallery-frame { aspect-ratio: 5/4; }
  .velvet .wall-section, .history-section, .artist-gallery, .velvet .submit-section { padding: 14px 12px; }
}
.velvet .hero h1 span { color: #e2b485; }
.velvet .hero-subtitle { text-transform: uppercase; letter-spacing: .19em; font-weight: 600; font-size: .79rem; }
.hero-cta { display: inline-block; margin-top: 21px; padding: 8px 18px; border: 1px solid #e3b688; background: #d3a679; color: #24150c; border-radius: 2px; font-size: .72rem; text-transform: uppercase; font-weight: 700; letter-spacing: .11em; }
.gallery-tools button:hover, .hero-cta:hover { filter: brightness(1.13); }
.gallery-credits p { margin: 8px 0 0; }
@media (max-width: 585px) {
  .velvet .city-backdrop > img { object-position: 66% top; }
  .velvet .hero-cta { margin-top: 15px; }
}
.velvet .skip-link { visibility: hidden; background: #422b1c; }
.velvet .skip-link:focus { visibility: visible; }
.velvet .radio-player::after { display: none; }
.velvet .player-state { text-align: left; }
.velvet .skip-link:not(:focus) {
  top: 0; width: 1px; height: 1px; padding: 0; clip-path: inset(50%); overflow: hidden; visibility: visible;
}
