:root {
      --bg: #000;
      --panel: rgba(10, 10, 12, 0.88);
      --panel-2: rgba(8, 8, 10, 0.72);
      --border: rgba(16, 185, 129, 0.2);
      --border-2: rgba(82,82,91,1);
      --text: #f4f4f5;
      --muted: #a1a1aa;
      --muted2: #71717a;
      --green: #34d399;
      --green2: #22c55e;
      --red: #f87171;
      --amber: #fbbf24;
      --cyan: #67e8f9;
      --blue: #60a5fa;
      --pink: #ff77c8;
      --radius: 28px;
      --radius2: 20px;
      --shadow: 0 20px 60px rgba(0,0,0,0.35);
      --maxw: 1280px;
      --header-h: 88px;
    }
    * { box-sizing: border-box; }
    html, body { min-height: 100%; }
    html { scroll-behavior: auto; overflow-y: scroll; scrollbar-gutter: stable; }
    body {
      margin: 0;
      color: var(--text);
      background: #000;
      font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      overflow-x: hidden;
    }
    body::before {
      content: "";
      position: fixed; inset: 0;
      z-index: -2;
      background:
        radial-gradient(circle at top, rgba(16,185,129,0.18), transparent 35%),
        radial-gradient(circle at bottom, rgba(34,197,94,0.10), transparent 30%);
      pointer-events: none;
    }
    body::after {
      content: "";
      position: fixed; inset: 0;
      z-index: -1;
      opacity: .08;
      background-image:
        linear-gradient(rgba(16,185,129,0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16,185,129,0.35) 1px, transparent 1px);
      background-size: 26px 26px;
      pointer-events: none;
    }
    html::-webkit-scrollbar, body::-webkit-scrollbar { width: 6px; }
    html::-webkit-scrollbar-track, body::-webkit-scrollbar-track { background: transparent; }
    html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb { background: #34d399; border-radius: 999px; }
    * { scrollbar-width: thin; scrollbar-color: #34d399 transparent; }
    a { color: inherit; text-decoration: none; }
    button, input, textarea, select { font: inherit; }
    .shell { min-height: 100vh; display: flex; flex-direction: column; }
    .site-header {
      position: fixed; inset-inline: 0; top: 0; z-index: 40;
      border-bottom: 1px solid var(--border);
      background: rgba(0,0,0,.85);
      backdrop-filter: blur(10px);
      transition: transform .3s ease;
    }
    .site-header.hidden { transform: translateY(-100%); }
    .wrap { width: min(var(--maxw), calc(100% - 32px)); margin: 0 auto; }
    .header-inner {
      min-height: var(--header-h);
      display: flex; align-items: center; justify-content: space-between; gap: 16px;
      padding: 16px 0;
    }
    .terminal-button { background: transparent; border: 0; color: inherit; cursor: pointer; padding: 0; text-align: left; }
    .terminal-prompt {
      font-family: "JetBrains Mono", monospace;
      font-size: 13px; letter-spacing: .08em; color: #d4d4d8;
    }
    .terminal-prompt .host { color: var(--green); }
    .terminal-prompt .path { color: var(--cyan); }
    .terminal-prompt .cursor { display: inline-block; animation: blink 1s step-end infinite; color: var(--green); }
    @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
    .nav-desktop { display: none; gap: 8px; align-items: center; }
    .nav-mobile-toggle, #mobileToggle { display: inline-flex; }
    @media (min-width: 960px) {
      .nav-desktop { display: flex; }
      .nav-mobile-toggle, #mobileToggle { display: none !important; }
      .mobile-menu { display: none !important; }
    }
    .lang-pill {
      display: none; align-items: center; gap: 8px;
      padding: 4px 8px; border-radius: 999px;
      border: 1px solid #3f3f46; background: rgba(10,10,12,.8); color: #d4d4d8;
    }
    @media (min-width: 960px) { .lang-pill { display: inline-flex; } }
    .lang-pill button {
      border: 0; background: transparent; color: #d4d4d8; padding: 6px 10px; border-radius: 999px; cursor: pointer;
      font-size: 12px; font-weight: 600;
    }
    .lang-pill button.active { background: #34d399; color: #000; }
    .mobile-menu {
      display: none;
      border-top: 1px solid var(--border);
      padding: 16px 0;
    }
    .mobile-menu.open { display: block; }
    .menu-backdrop { position: fixed; inset: var(--header-h) 0 0 0; z-index: 35; background: rgba(0,0,0,.38); backdrop-filter: blur(2px); display: none; }
    .menu-backdrop.open { display: block; }
    @media (min-width: 960px) { .menu-backdrop { display: none !important; } }
    .mobile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .main { flex: 1; padding-top: calc(var(--header-h) + 40px); padding-bottom: 40px; }
    .view-enter { animation: viewFade .18s ease-out; }
    @keyframes viewFade { from { opacity: .01; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes restoreFlash { from { box-shadow: 0 0 0 rgba(16,185,129,0); } 50% { box-shadow: 0 0 0 2px rgba(16,185,129,.45), 0 0 30px rgba(16,185,129,.18); } to { box-shadow: 0 0 0 rgba(16,185,129,0); } }
    @media (min-width: 1024px) { .main { padding-top: calc(var(--header-h) + 48px); padding-bottom: 56px; } }
    .stack { display: flex; flex-direction: column; gap: 24px; }
    .hero-grid { display: grid; gap: 24px; }
    @media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0,7fr) minmax(0,3fr); align-items: stretch; } }
    .grid-2 { display: grid; gap: 16px; }
    @media (min-width: 1280px) { .grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
    .panel {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      overflow: hidden;
    }
    .panel.panel-soft { background: var(--panel-2); }
    .panel-head { padding: 24px 24px 0; }
    .panel-row { display: flex; flex-direction: column; gap: 16px; }
    @media (min-width: 768px) { .panel-row.inline { flex-direction: row; justify-content: space-between; align-items: flex-start; } }
    .panel-title {
      display: flex; align-items: center; gap: 8px;
      color: #6ee7b7; font-family: "JetBrains Mono", monospace; font-weight: 400;
      letter-spacing: .08em; font-size: 26px; line-height: 1;
      margin: 0;
    }
    .panel-desc { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.6; }
    .panel-body { padding: 24px; }
    .eyebrow {
      display: inline-flex; align-items: center; gap: 8px; border-radius: 999px;
      border: 1px solid var(--border); background: rgba(16,185,129,.10);
      color: #6ee7b7; font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
      padding: 10px 16px; font-weight: 600;
    }
    .hero-title {
      max-width: 820px; margin: 16px 0 0; color: white;
      font-family: "JetBrains Mono", monospace; font-weight: 400;
      font-size: clamp(28px, 3vw, 40px); line-height: 1.04; letter-spacing: .05em;
    }
    .hero-text { max-width: 760px; margin-top: 16px; color: #d4d4d8; line-height: 1.8; font-size: 17px; }
    .button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
    .btn {
      position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      min-height: 44px; border-radius: 999px; padding: 10px 18px; cursor: pointer; text-decoration: none;
      transition: all .2s ease; border: 1px solid #3f3f46; background: #18181b; color: #d4d4d8;
    }
    .btn::before {
      content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: #34d399;
      transform: scaleY(0); transform-origin: top; transition: transform .2s ease;
    }
    .btn:hover { border-color: #10b981; background: rgba(16,185,129,.10); color: #6ee7b7; }
    .btn:hover::before { transform: scaleY(1); }
    .btn.active { border-color: #10b981; background: rgba(16,185,129,.10); color: #6ee7b7; }
    .btn.active::before { transform: scaleY(1); }
    .btn.filled { border-color: rgba(52,211,153,.3); background: #34d399; color: #000; }
    .btn.filled::before { background: rgba(0,0,0,.8); }
    .btn.filled:hover { background: #4ade80; color: #000; }
    .btn.danger::before { background: #f87171; }
    .btn.danger:hover { border-color: #f87171; background: rgba(248,113,113,.10); color: #fca5a5; }
    .social-pill {
      position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px;
      border-radius: 999px; padding: 10px 14px; border: 1px solid var(--border);
      transition: all .2s ease; font-size: 14px;
    }
    .social-pill::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: currentColor; transform: scaleY(0); transform-origin: top; transition: transform .2s ease; }
    .social-pill:hover::before { transform: scaleY(1); }
    .profile-name { color: #fff; font-family: "JetBrains Mono", monospace; font-weight: 400; letter-spacing: .04em; font-size: 34px; }
    .muted { color: var(--muted); }
    .muted2 { color: var(--muted2); }
    .form-grid { display: grid; gap: 14px; }
    .input, .textarea {
      width: 100%; border: 1px solid var(--border); background: rgba(0,0,0,.30); color: #fff;
      border-radius: 16px; padding: 12px 14px; outline: none;
    }
    .textarea { min-height: 110px; resize: vertical; }
    .input:focus, .textarea:focus { border-color: #10b981; }
    .field-grid-2 { display: grid; gap: 14px; }
    @media (min-width: 768px) { .field-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
    .genre-wrap, .track-admin-item, .soft-box {
      border: 1px solid rgba(16,185,129,.15); background: rgba(0,0,0,.20); border-radius: 20px; padding: 16px;
    }
    .chips { display: flex; flex-wrap: wrap; gap: 8px; }
    .chip {
      border-radius: 999px; padding: 9px 13px; border: 1px solid rgba(16,185,129,.2);
      background: rgba(16,185,129,.05); color: #e4e4e7; cursor: pointer; transition: all .2s ease;
    }
    .chip.active { border-color: #fbbf24; background: rgba(251,191,36,.15); color: #fcd34d; }
    .chip.badge { cursor: default; color: #a7f3d0; }
    .tracks { display: flex; flex-direction: column; gap: 20px; }
    .track-card {
      overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel);
      box-shadow: var(--shadow);
    }
    .track-card.restore-focus { animation: restoreFlash .28s ease; }
    .track-lyrics.restore-focus, .section-block.restore-focus, .lyrics-col.restore-focus { animation: restoreFlash .28s ease; }
    .track-grid { display: grid; gap: 0; }
    @media (min-width: 768px) { .track-grid { grid-template-columns: 220px 1fr; } }
    @media (min-width: 1024px) { .track-grid { grid-template-columns: minmax(260px, 28%) 1fr; } }
    .track-media { position: relative; min-height: 220px; background: #000; }
    .track-media img { width: 100%; height: 100%; object-fit: cover; opacity: .9; display: block; }
    .track-image-link { position: absolute; inset: 0; bottom: 120px; z-index: 1; background: transparent; border: 0; cursor: pointer; }
    .track-overlay-content { z-index: 2; }
    .track-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.96), rgba(0,0,0,.20), transparent); }
    .track-overlay-content { position: absolute; left: 20px; right: 20px; bottom: 20px; }
    .track-title { color: #fff; font-family: "JetBrains Mono", monospace; font-weight: 400; font-size: 36px; line-height: 1; letter-spacing: .04em; }
    .track-side { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
    .track-lyrics { border: 1px solid #27272a; background: rgba(0,0,0,.30); border-radius: 20px; padding: 16px; white-space: pre-line; color: #d4d4d8; line-height: 1.8; font-size: 14px; }
    .track-page-grid { display: grid; gap: 20px; }
    .track-hero { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); box-shadow: var(--shadow); }
    .track-hero-media { position: relative; height: 360px; background: #000; }
    @media (min-width: 640px) { .track-hero-media { height: 440px; } }
    @media (min-width: 1024px) { .track-hero-media { height: 520px; } }
    .track-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .9; display: block; }
    .track-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.96), rgba(0,0,0,.25), transparent); }
    .back-btn-wrap { position: absolute; left: 20px; top: 20px; z-index: 2; }
    .track-info-box {
      position: absolute; left: 20px; bottom: 20px; z-index: 2;
      width: fit-content; min-width: 260px; max-width: calc(100% - 40px);
      border-radius: 20px; border: 1px solid rgba(255,255,255,.10);
      background: rgba(0,0,0,.28); backdrop-filter: blur(5px); padding: 20px;
    }
    @media (min-width: 1024px) { .track-info-box { width: fit-content; max-width: min(46vw, 620px); } }
    .track-sections { display: grid; gap: 16px; align-items: start; }
    .right-stack { display: grid; gap: 16px; align-items: start; }
    .lyrics-col { align-self: start; height: max-content; }
    .video-col { align-self: start; }
    .links-full { align-self: start; }
    @media (min-width: 1280px) {
      .track-sections.layout-detail { grid-template-columns: minmax(0,35fr) minmax(0,65fr); align-items: start; }
      .track-sections.layout-detail .audio-full { grid-column: 1 / -1; }
      .track-sections.layout-detail .right-stack { grid-column: 2; }
    }
    .section-block {
      border-radius: var(--radius); border: 1px solid var(--border); background: rgba(10,10,12,.72); padding: 20px; box-shadow: 0 12px 30px rgba(0,0,0,.20);
      overflow: hidden;
    }
    .section-block.x2 { grid-column: 1 / -1; }
    .section-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: #6ee7b7; font-family: "JetBrains Mono", monospace; letter-spacing: .08em; font-size: 28px; }
    .retro-audio {
      width: 100%; border-radius: 14px; accent-color: #f4f4f5; border: 1px solid rgba(39,39,42,1); background: #71717a;
    }
    .retro-audio::-webkit-media-controls-enclosure { border-radius: 14px; background: #71717a; }
    .retro-audio::-webkit-media-controls-panel { background: #71717a; }
    iframe, video { width: 100%; display: block; border: 0; border-radius: 20px; }
    .video-col iframe, .video-col video { height: 100%; min-height: 280px; }
    .aspect-video { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 20px; border: 1px solid #27272a; background: #000; min-height: 280px; }
    @media (min-width: 1280px) { .video-col .aspect-video { min-height: 340px; } }
    .empty { border: 1px dashed #3f3f46; border-radius: 20px; padding: 32px; text-align: center; color: var(--muted); }
    .pages { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
    .footer { border-top: 1px solid var(--border); background: rgba(0,0,0,.80); margin-top: auto; }
    .footer-inner { display: flex; flex-direction: column; gap: 24px; padding: 32px 0; }
    @media (min-width: 1024px) { .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; } }
    .hide-desktop { display: inline-flex; }
    @media (min-width: 960px) { .hide-desktop { display: none !important; } }
    .show-desktop-admin { display: none; }
    @media (min-width: 960px) { .show-desktop-admin { display: inline-flex; } }
    .row-between { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
    .admin-layout { display: grid; gap: 28px; }
    @media (min-width: 1280px) { .admin-layout { grid-template-columns: .95fr 1.05fr; } }
    .logo-mini {
      display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; color: currentColor;
    }
    .small { font-size: 14px; line-height: 1.7; }
    .route-btn { background: transparent; border: 0; padding: 0; cursor: pointer; color: inherit; }

    .custom-player {
      display: grid;
      grid-template-columns: 48px auto minmax(120px,1fr) auto 44px minmax(84px,120px);
      align-items: center;
      gap: 10px;
      border: 1px solid rgba(63,63,70,1);
      background: #18181B;
      border-radius: 16px;
      padding: 10px 12px;
    }
    .custom-player.large { padding: 12px 14px; }
    .player-btn, .player-mute {
      display: inline-flex; align-items: center; justify-content: center;
      width: 36px; height: 36px; border-radius: 999px;
      border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.04); color: #f4f4f5; cursor: pointer;
    }
    .custom-player.large .player-btn, .custom-player.large .player-mute { width: 40px; height: 40px; }
    .player-time { color: #f4f4f5; font-size: 13px; font-variant-numeric: tabular-nums; }
    .player-range, .player-volume {
      width: 100%; accent-color: #34d399; cursor: pointer;
    }
    .player-range { min-width: 0; }
    .player-volume { min-width: 70px; }
    @media (max-width: 768px) {
      .custom-player {
        grid-template-columns: 44px auto 1fr auto;
        grid-template-areas:
          "play current duration mute"
          "progress progress progress progress"
          "volume volume volume volume";
      }
      .player-btn { grid-area: play; }
      .player-time.current { grid-area: current; }
      .player-time.duration { grid-area: duration; justify-self: end; }
      .player-range { grid-area: progress; }
      .player-mute { grid-area: mute; justify-self: end; }
      .player-volume { grid-area: volume; }
    }


    .toast-root {
      position: fixed; left: 18px; bottom: 18px; z-index: 10000;
      display: flex; flex-direction: column; gap: 10px; pointer-events: none;
      max-width: min(420px, calc(100vw - 36px));
    }
    .toast-message {
      pointer-events: none;
      min-width: 260px; max-width: 420px;
      border-radius: 18px;
      border: 1px solid #F2C24B;
      background: #2A2412;
      color: #F2C24B;
      box-shadow: 0 14px 34px rgba(0,0,0,.34);
      padding: 14px 16px;
      font-size: 15px; line-height: 1.5;
      transform: translateY(10px); opacity: 0;
      transition: transform .22s ease, opacity .22s ease;
    }
    .toast-message.show { transform: translateY(0); opacity: 1; }
    .toast-message.error { border-color: #f87171; background: #2a1616; color: #fecaca; }
    .toast-message.success { border-color: #F2C24B; background: #2A2412; color: #F2C24B; }
    .toast-message.info { border-color: #F2C24B; background: #2A2412; color: #F2C24B; }
    @media (max-width: 640px) {
      .toast-root { left: 12px; right: 12px; bottom: 12px; max-width: calc(100vw - 24px); }
      .toast-message { min-width: 0; max-width: 100%; font-size: 16px; padding: 15px 16px; }
    }
