:root {
    --bg: #06060a;
    --panel: #0e0e16;
    --border: rgba(255, 255, 255, 0.07);
    --text: #e8e8f0;
    --muted: #6b6b80;
    --accent: #c084fc;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

  body {
    background: var(--bg);
      color: var(--text);
    font-family: sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

 #dren {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
      gap: 2rem;
    padding: 2rem;
}

#dren h1 {
    font-family: cursive;
font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

#drne {
    width: min(500px, 90vw);
    min-height: 140px;
    border: 1.5px solid purple;
    display: flex;
       flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 2rem;
    background: radial-gradient(ellipse at 50% 100%, rgba(192, 132, 252, 0.07) 0%, transparent 70%);
}

#drne:hover,
#drne.drag-over {
    border-color: violet;
    background: radial-gradient(ellipse at 50% 100%, rgba(192, 132, 252, 0.13) 0%, transparent 70%);
}

#drne 
.dzel {
    font-size: 14px;
    color: var(--text);
}

#drne .dzub {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.08em;
}

#fiut {
    display: none;
}

#vien {
    flex: 1;
    display: none;
    flex-direction: column;
}

#inar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 18px;
    background: black;
    border-bottom: 1px solid var(--border);
    gap: 12px;
    flex-wrap: wrap;
}

#trme {
    font-family: sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#stts {
    display: flex;
    gap: 18px;
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.08em;
}

#stts b {
    color: var(--accent);
    font-weight: 400;
}

#caap {
    position: relative;
    flex: 1;
    min-height: 300px;
    height: calc(100vh - 205px);
}

#c {
    display: block;
    width: 100%;
    height: 100%;
}

#ovfo {
    position: absolute;
    top: 14px;
    left: 18px;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: black;
    pointer-events: none;
    user-select: none;
    font-family: cursive;
}

#newn {
    position: absolute;
    top: 10px;
    right: 14px;
    background: black;
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 5px 12px;
    font-family: cursive;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s;
    backdrop-filter: blur(6px);
}

#newn:hover {
    color: var(--text);
    border-color: black;
}

#vuer {
    position: absolute;
    bottom: 14px;
    right: 16px;
    display: flex;
    gap: 3px;
    align-items: flex-end;
}

.vub {
    width: 4px;
    transition: height 0.06s, background 0.06s;
}

#plar {
    padding: 9px 18px;
    background: black;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

#plar audio {
    flex: 1;
    height: 30px;
    accent-color: var(--accent);
}

#ctel {
    background: black;
    border-top: 1px solid var(--border);
    padding: 11px 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    align-items: center;
    justify-content: center;
}

.cg {
    display: flex;
    align-items: center;
    gap: 7px;
}

.cg > label {
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

select {
    background: black;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 4px 24px 4px 9px;
    font-family: sans-serif;
    font-size: 11px;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b6b80' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 7px center;
    transition: border-color 0.15s;
}

input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    height: 3px;
    background: black;
    outline: none;
    cursor: pointer;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 13px;
    height: 13px;
    background: var(--accent);
    cursor: pointer;
    transition: transform 0.15s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

input[type=range]::-moz-range-thumb {
    width: 13px;
    height: 13px;
    background: var(--accent);
    border: none;
    cursor: pointer;
}

.tbtn {
    background: black;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 4px 10px;
    font-family: cursive;
    font-size: 10px;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.15s;

    white-space: nowrap;
}

.tbtn:hover {
    border-color: black;
    color: var(--text);
}

.tbtn.on {
    background: black;
    border-color: violet;
    color: var(--accent);
}

#swes {
    display: flex;
    gap: 5px;
}

.sw {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
    flex-shrink: 0;
}

.sw:hover {
    transform: scale(1.25);
}

.sw.on {
    border-color: black;
    transform: scale(1.2);
}

.sv {
    font-size: 10px;
    color: var(--muted);
    min-width: 22px;
    text-align: right;
}

   #bpay {
    position: absolute;
     top: 14px;
    left: 50%;
      transform: translateX(-50%);
    font-family: cursive;
    font-size: 22px;
    font-weight: 800;


    color: black;
    pointer-events: none;
    user-select: none;
    letter-spacing: 0.1em;
    transition: color 0.05s;
}

#bpay.beat {
    color: violet !important;
}

#flay {
    display: none;
    position: absolute;
    inset: 0;
    background: #fff;
    pointer-events: none;
    z-index: 10;
}

#kbnt {
    font-family: sans-serif;
    font-size: 10px;
    color: red;
    letter-spacing: 0.06em;
    text-align: center;
 padding: 6px 18px 10px;

    opacity: 0.55;
    background: black;
    border-top: 1px solid var(--border);
}
 

     #rege {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    transform: translateX(-50%);
    background: red;
    color: #fff;
font-family: cursive;
    font-size: 11px;
    letter-spacing: 0.1em;
    padding: 4px 14px;
    z-index: 999;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.68; }
}

#tost {
    display: none;
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(192,132,252,0.28);
    border: 1px solid rgba(192,132,252,0.28);
 color: #e8e8f0;
    font-family: sans-serif;
    font-size: 12px;
    padding: 8px 18px;
    z-index: 999;
    backdrop-filter: blur(8px);
    pointer-events: none;
    white-space: nowrap;
}
