:root {
  --bg: #070907;
  --surface: #101410;
  --surface-2: #171c17;
  --acid: #b7ff00;
  --acid-2: #78ff00;
  --text: #f5f8ef;
  --muted: #8d9689;
  --line: #273025;
  --danger: #ff5470;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { background: #020302; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 50% -10%, #1c2d10 0, var(--bg) 33%); color: var(--text); font-family: Manrope, system-ui, sans-serif; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
.app-shell { position: relative; width: min(100%, 520px); min-height: 100vh; margin: 0 auto; padding: env(safe-area-inset-top) 18px 166px; overflow: hidden; }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; border: 0; background: none; font-weight: 800; letter-spacing: -.04em; font-size: 18px; cursor: pointer; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; color: #050705; background: var(--acid); border-radius: 9px 3px 9px 3px; box-shadow: 0 0 24px #b7ff0050; }
.avatar { width: 38px; height: 38px; border: 1px solid #b7ff0060; border-radius: 50%; background: #182015; color: var(--acid); font-size: 12px; font-weight: 700; cursor: pointer; }
.avatar img { width: 100%; height: 100%; display: block; border-radius: inherit; object-fit: cover; }
.view { animation: enter .28s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }
h1 { margin: 12px 0 8px; font-size: clamp(34px, 10vw, 52px); line-height: .98; letter-spacing: -.06em; }
h2 { margin: 28px 0 14px; font-size: 20px; letter-spacing: -.03em; }
h3, p { margin: 0; }
.acid { color: var(--acid); }
.muted { color: var(--muted); }
.eyebrow { color: var(--acid); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero { position: relative; min-height: 250px; padding: 28px 24px; border: 1px solid #b7ff0033; border-radius: 28px; overflow: hidden; background: linear-gradient(145deg, #141b11, #0a0d0a 65%); }
.hero::after { content: ''; position: absolute; width: 200px; height: 200px; right: -50px; bottom: -80px; border: 38px solid var(--acid); border-radius: 50%; filter: blur(1px); opacity: .8; box-shadow: 0 0 60px #b7ff0040; }
.hero p { width: 70%; margin-top: 14px; color: #adb6a9; font-size: 13px; line-height: 1.5; }
.hero-actions { position: absolute; z-index: 2; left: 24px; bottom: 24px; display: flex; gap: 10px; }
.primary, .secondary, .chip { border: 0; cursor: pointer; }
.primary { padding: 12px 17px; color: #070907; background: var(--acid); border-radius: 14px; font-weight: 800; box-shadow: 0 0 24px #b7ff0028; }
.secondary { padding: 12px 17px; background: var(--surface-2); border-radius: 14px; color: var(--text); }
.section-head { display: flex; justify-content: space-between; align-items: center; }
.text-button { border: 0; background: none; color: var(--acid); cursor: pointer; font-size: 12px; }
.track-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.track-card { border: 0; padding: 0; text-align: left; background: transparent; cursor: pointer; min-width: 0; }
.cover { position: relative; display: block; aspect-ratio: 1; margin-bottom: 10px; border-radius: 18px; overflow: hidden; background: var(--cover); box-shadow: inset 0 0 0 1px #ffffff12; }
.cover::before, .cover::after { content: ''; position: absolute; border-radius: 50%; }
.cover::before { width: 70%; height: 70%; left: 15%; top: 15%; border: 2px solid #0008; box-shadow: 0 0 0 18px #0002, 0 0 0 36px #0002; }
.cover::after { width: 14%; height: 14%; left: 43%; top: 43%; background: var(--acid); box-shadow: 0 0 18px #b7ff00; }
.cover-index { position: absolute; z-index: 2; top: 12px; left: 12px; font-size: 11px; color: #ffffffaa; }
.play-bubble { position: absolute; z-index: 3; right: 10px; bottom: 10px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--acid); color: #050705; opacity: 0; transform: translateY(5px); transition: .2s; }
.track-card:hover .play-bubble { opacity: 1; transform: none; }
.cover.has-image::before, .cover.has-image::after { display: none; }
.track-title { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.track-meta { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 12px -18px 20px; padding: 0 18px; }
.chip { flex: 0 0 auto; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; }
.chip.active { background: var(--acid); color: #050705; border-color: var(--acid); }
.search-box { display: flex; align-items: center; gap: 10px; margin: 18px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
.search-box input::placeholder { color: #70776d; }
.track-list { display: grid; gap: 9px; }
.list-track { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 12px; width: 100%; border: 0; padding: 8px; border-radius: 15px; text-align: left; background: transparent; cursor: pointer; }
.list-track:hover { background: var(--surface); }
.list-cover { width: 54px; height: 54px; border-radius: 12px; background: var(--cover); }
.list-copy { min-width: 0; }
.list-copy strong, .list-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-copy small { margin-top: 4px; color: var(--muted); }
.duration { color: var(--muted); font-size: 11px; }
.mini-player { position: fixed; z-index: 8; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(calc(100% - 26px), 494px); display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid #b7ff004d; border-radius: 17px; background: #111710f2; backdrop-filter: blur(16px); box-shadow: 0 15px 40px #0008; }
.hidden { display: none !important; }
.mini-track { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.mini-cover { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 10px; background: var(--cover); }
.mini-copy { min-width: 0; }
.mini-copy strong, .mini-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-copy small { color: var(--muted); }
.icon-button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--acid); color: #050705; cursor: pointer; }
.bottom-nav { position: fixed; z-index: 9; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 520px); height: calc(70px + env(safe-area-inset-bottom)); padding: 9px 16px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; border-top: 1px solid #263023; background: #090c09ef; backdrop-filter: blur(18px); }
.nav-item { display: grid; place-items: center; gap: 2px; border: 0; background: none; color: #667062; cursor: pointer; }
.nav-item span { font-size: 20px; }
.nav-item small { font-size: 9px; }
.nav-item.active { color: var(--acid); }
.nav-create { justify-self: center; width: 50px; height: 50px; border: 0; border-radius: 17px 7px 17px 7px; background: var(--acid); color: #050705; font-size: 28px; box-shadow: 0 0 25px #b7ff0040; cursor: pointer; transform: translateY(-10px); }
.player-page { text-align: center; }
.player-art { width: min(82vw, 390px); margin: 18px auto 24px; aspect-ratio: 1; border-radius: 28px; background: var(--cover); position: relative; overflow: hidden; box-shadow: 0 30px 70px #000, 0 0 50px #b7ff0017; }
.player-art::after { content: ''; position: absolute; inset: 18%; border: 2px solid #0008; border-radius: 50%; box-shadow: 0 0 0 30px #0002, 0 0 0 60px #0002; }
.player-art.playing::after { animation: spin 7s linear infinite; }
.player-art.has-image::after { display: none; }
.player-art.has-image { background-position: center !important; background-size: cover !important; background-repeat: no-repeat !important; }
@keyframes spin { to { transform: rotate(360deg); } }
.player-page h2 { margin: 0 0 6px; font-size: 25px; }
.waveform { height: 46px; display: flex; align-items: center; justify-content: center; gap: 3px; margin: 22px 0 6px; }
.waveform i { width: 3px; border-radius: 3px; background: var(--acid); opacity: .3; }
.waveform i.past { opacity: 1; box-shadow: 0 0 6px #b7ff0066; }
.time-row { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.seek { width: 100%; height: 4px; margin: 2px 0 9px; accent-color: var(--acid); cursor: pointer; }
.player-controls { display: flex; justify-content: center; align-items: center; gap: 28px; margin: 24px 0; }
.player-controls button { border: 0; background: none; cursor: pointer; font-size: 20px; }
.player-controls .main-play { width: 66px; height: 66px; border-radius: 50%; background: var(--acid); color: #050705; font-size: 24px; box-shadow: 0 0 32px #b7ff0040; }
.form-stack { display: grid; gap: 18px; margin-top: 22px; }
.field label { display: block; margin: 0 0 8px; color: var(--muted); font-size: 11px; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 15px; border: 1px solid var(--line); border-radius: 14px; outline: 0; color: var(--text); background: var(--surface); }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--acid); }
.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.option { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; cursor: pointer; }
.option.active { border-color: var(--acid); background: #1a2513; color: var(--acid); }
.success { padding: 36px 20px; text-align: center; border: 1px solid #b7ff0044; border-radius: 24px; background: #11180e; }
.success-mark { width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; background: var(--acid); color: #050705; font-size: 32px; }
.lyrics { margin-top: 30px; padding: 22px 0; border-top: 1px solid var(--line); text-align: left; }
.lyrics p { margin-top: 14px; color: #c4ccc0; line-height: 1.8; white-space: normal; }
.profile-card { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.profile-card .avatar { width: 58px; height: 58px; }
.profile-avatar { flex: 0 0 58px; display: grid; place-items: center; overflow: hidden; }
.profile-card > div { min-width: 0; flex: 1; }
.profile-refresh { margin-left: auto; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 14px; }
.stat { padding: 15px 8px; text-align: center; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.stat strong, .stat small { display: block; }
.stat small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.text-small { font-size: 11px; }
.empty-state { padding: 18px 0; color: var(--muted); font-size: 12px; }
.telegram-gate { margin-top: 26px; padding: 30px 22px; border: 1px solid #b7ff0040; border-radius: 24px; background: var(--surface); text-align: center; }
.telegram-gate h2 { margin: 0 0 10px; }
.telegram-gate p { margin-bottom: 22px; line-height: 1.6; }
.orders-list { display: grid; gap: 9px; }
.order-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.order-row strong, .order-row small { display: block; }
.order-row small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.status { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; background: #273025; color: var(--muted); font-size: 9px; }
.status-new, .status-ready { background: #b7ff001f; color: var(--acid); }
.admin-entry { width: 100%; margin-top: 26px; }
.admin-tabs { display: flex; gap: 8px; margin: 18px 0; }
.admin-list { display: grid; gap: 10px; }
.admin-item { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.admin-item summary { display: flex; justify-content: space-between; gap: 12px; padding: 15px; cursor: pointer; }
.admin-item summary small { color: var(--muted); }
.admin-form { display: grid; gap: 14px; padding: 0 15px 15px; }
.publish-check { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.publish-check input { accent-color: var(--acid); }
.admin-order { display: grid; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.admin-order strong, .admin-order small { display: block; }
.admin-order small { margin-top: 4px; color: var(--muted); }
.admin-order p { margin-top: 10px; color: #c4ccc0; font-size: 12px; line-height: 1.5; }
.admin-status { width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--text); }
.upload-panel { margin: 20px 0 24px; border: 1px solid #b7ff0050; border-radius: 18px; background: #11180e; overflow: hidden; }
.upload-panel summary { padding: 16px; color: var(--acid); font-weight: 700; cursor: pointer; }
.upload-form { padding: 0 16px 16px; }
.upload-progress { min-height: 18px; color: var(--acid); font-size: 11px; }
.file-picker { position: relative; display: flex !important; align-items: center; gap: 11px; min-height: 62px; margin: 0 !important; padding: 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); cursor: pointer; overflow: hidden; }
.file-input { position: absolute; width: 1px !important; height: 1px; opacity: 0; pointer-events: none; }
.file-action { flex: 0 0 auto; padding: 10px 12px; border: 1px solid #b7ff0060; border-radius: 12px 5px 12px 5px; background: #b7ff0012; color: var(--acid); font-size: 11px; font-weight: 700; }
.file-name { min-width: 0; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.file-name.has-file { color: var(--text); }
.admin-cover, .cover-preview { width: 100%; aspect-ratio: 16/8; border-radius: 15px; background: var(--cover) center/cover no-repeat; border: 1px solid var(--line); }
.cover-preview { margin-top: 10px; background-color: var(--surface); }
.track-stats { display: flex; gap: 8px; color: var(--muted); font-size: 10px; }
.track-stats span { padding: 7px 9px; border-radius: 999px; background: var(--surface-2); }
.admin-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.admin-actions { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.danger { color: #ff786f; border: 1px solid #ff554433; }
.progress-bar { height: 7px; overflow: hidden; border-radius: 999px; background: #263023; }
.progress-bar i { display: block; width: 0; height: 100%; background: var(--acid); transition: width .2s; box-shadow: 0 0 12px #b7ff0080; }
.primary:disabled { opacity: .55; cursor: wait; }
@media (max-width: 360px) { .app-shell { padding-inline: 14px; } .hero { padding-inline: 18px; } .track-grid { gap: 12px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
