       /* Сброс и базовые стили */
        .pin-access-wrapper {
            all: initial;
            display: block;
            box-sizing: border-box;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            background-color: #000000;
            /* Убраны min-height и большие паддинги */
            width: 100%;
            padding: 8px 16px 16px;  /* минимальные отступы сверху/снизу */
            margin: 0;
            color: #ffffff;
        }

        .pin-access-wrapper *,
        .pin-access-wrapper *::before,
        .pin-access-wrapper *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        .pin-access-card {
            max-width: 480px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            /* убрали min-height и вертикальное центрирование */
        }

        /* Заголовок — компактнее */
        .pin-title {
            font-size: 1.6rem;
            font-weight: 500;
            letter-spacing: -0.02em;
            margin-top: 4px;
            margin-bottom: 4px;
            text-align: center;
            color: #ffffff;
        }

        .pin-subtitle {
            font-size: 0.95rem;
            font-weight: 400;
            opacity: 0.7;
            margin-bottom: 20px;  /* уменьшено с 36px */
            text-align: center;
            color: #ffffff;
        }

        /* Поля ввода */
        .pin-fields {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-bottom: 24px;  /* уменьшено */
            width: 100%;
        }

        .pin-digit {
            width: 65px;
            height: 72px;
            background-color: #ffffff;
            border: 2px solid #2a2a2a;
            border-radius: 18px;
            font-size: 2.6rem;
            font-weight: 600;
            text-align: center;
            color: #000000;
            caret-color: #000000;
            outline: none;
            box-shadow: 0 6px 0 rgba(255, 255, 255, 0.05);
            transition: border 0.15s ease, box-shadow 0.15s ease, transform 0.1s;
            padding: 0;
            line-height: 1;
            font-family: inherit;
            -moz-appearance: textfield;
            appearance: textfield;
        }

        .pin-digit::-webkit-outer-spin-button,
        .pin-digit::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .pin-digit:focus {
            border-color: #ffffff;
            box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2), 0 6px 0 #1a1a1a;
            transform: translateY(-2px);
        }

        .pin-digit.filled {
            border-color: #aaaaaa;
        }

        /* Кнопка */
        .pin-submit-btn {
            background-color: #ffffff;
            color: #000000;
            border: none;
            border-radius: 60px;
            padding: 14px 28px;    /* немного уменьшено */
            font-size: 1.2rem;
            font-weight: 600;
            letter-spacing: -0.01em;
            width: 100%;
            max-width: 340px;
            cursor: pointer;
            box-shadow: 0 6px 0 #1f1f1f;
            transition: all 0.15s ease;
            text-align: center;
            border: 1px solid #333333;
            margin-top: 4px;
            margin-bottom: 4px;
            font-family: inherit;
        }

        .pin-submit-btn:hover {
            background-color: #f0f0f0;
            transform: translateY(-2px);
            box-shadow: 0 8px 0 #1a1a1a;
        }

        .pin-submit-btn:active {
            transform: translateY(2px);
            box-shadow: 0 4px 0 #1a1a1a;
        }

        /* Статус */
        .pin-status {
            min-height: 22px;
            margin-top: 8px;
            margin-bottom: 4px;
            color: #ff7b7b;
            font-size: 0.9rem;
            font-weight: 400;
            text-align: center;
        }

        /* Адаптивность */
        @media (max-width: 480px) {
            .pin-digit {
                width: 55px;
                height: 62px;
                font-size: 2.2rem;
                border-radius: 16px;
            }
            .pin-fields {
                gap: 8px;
            }
            .pin-title {
                font-size: 1.4rem;
            }
            .pin-submit-btn {
                padding: 12px 20px;
                font-size: 1.1rem;
            }
        }

        @media (max-width: 360px) {
            .pin-digit {
                width: 48px;
                height: 56px;
                font-size: 1.9rem;
                border-radius: 14px;
            }
        }

        .visually-hidden {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border-width: 0;
        }
		
		
		
:root {
  --lilac-primary: #b388ff;
  --lilac-light: #d1b3ff;
  --lilac-dark: #7e57c2;
  --lilac-glow: rgba(179, 136, 255, 0.35);
  --bg-panel: rgba(18, 12, 30, 0.85);
  --text-main: #f3f0ff;
  --text-muted: #a89bca;
  --radius-xl: 24px;
  --radius-md: 12px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

#playCode {
    display:none; 
}
#playNone {
   display:none;
}
.lilac-audio-player {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: clamp(20px, 5vw, 32px);
  background: var(--bg-panel);
  border: 1px solid rgba(179, 136, 255, 0.2);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 40px var(--lilac-glow);
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  overflow: hidden;
  user-select: none;
}

.player-glow {
  position: absolute;
  top: -30%; left: -20%;
  width: 160%; height: 160%;
  background: radial-gradient(circle at center, var(--lilac-glow), transparent 60%);
  filter: blur(40px);
  opacity: 0.4;
  transition: opacity 0.5s ease, transform 0.8s ease;
  pointer-events: none;
  transform: scale(0.8);
}
.lilac-audio-player.playing .player-glow {
  opacity: 0.8;
  transform: scale(1.1);
}

/* Визуализатор */
.player-visualizer {
  display: flex;
  justify-content: center;
  gap: 4px;
  height: 24px;
  margin-bottom: 16px;
}
.player-visualizer span {
  width: 3px;
  height: 10px;
  background: var(--lilac-primary);
  border-radius: 4px;
  animation: barPulse 1s ease-in-out infinite alternate;
}
.player-visualizer span:nth-child(2) { animation-delay: 0.15s; height: 16px; }
.player-visualizer span:nth-child(3) { animation-delay: 0.3s; height: 20px; }
.player-visualizer span:nth-child(4) { animation-delay: 0.45s; height: 14px; }
.player-visualizer span:nth-child(5) { animation-delay: 0.6s; height: 8px; }
.lilac-audio-player:not(.playing) .player-visualizer span { animation-play-state: paused; height: 6px; }

@keyframes barPulse {
  to { height: 24px; opacity: 0.6; }
}

/* Обложка / Диск */
.player-cover {
  display: flex;
  justify-content: center;
  margin: 12px 0 20px;
}
.disc {
  width: clamp(140px, 30vw, 180px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: 
    radial-gradient(circle at 50% 50%, #110b1a 22%, transparent 22.5%),
    conic-gradient(from 0deg, #2a1545, #4a2a7a, #7e57c2, #b388ff, #7e57c2, #2a1545);
  box-shadow: 0 0 0 4px rgba(179, 136, 255, 0.2), inset 0 0 20px rgba(0,0,0,0.8);
  transition: transform 0.3s linear;
}
.lilac-audio-player.playing .disc {
  animation: spin 4s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Инфо */
.player-info { text-align: center; margin-bottom: 20px; }
.track-title {
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.track-artist {
  font-size: clamp(12px, 3vw, 14px);
  color: var(--text-muted);
  font-weight: 400;
}

/* Прогресс */
.player-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.time {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  min-width: 36px;
}
.progress-track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  transition: height var(--transition);
}
.progress-track:hover { height: 8px; }
.progress-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--lilac-dark), var(--lilac-primary));
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s linear;
}
.progress-handle {
  position: absolute;
  top: 50%; left: 0%;
  width: 14px; height: 14px;
  background: #fff;
  border: 2px solid var(--lilac-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform var(--transition);
  box-shadow: 0 0 8px var(--lilac-glow);
}
.progress-track:hover .progress-handle,
.progress-track:active .progress-handle {
  transform: translate(-50%, -50%) scale(1);
}

/* Контролы */
.player-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.ctrl-btn {
  width: 44px; height: 44px;
  border: none;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all var(--transition);
}
.ctrl-btn:hover { background: rgba(179, 136, 255, 0.15); color: var(--lilac-light); transform: scale(1.08); }
.ctrl-btn:active { transform: scale(0.95); }
.play-btn {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--lilac-dark), var(--lilac-primary));
  box-shadow: 0 4px 16px rgba(126, 87, 194, 0.4);
}
.play-btn:hover { box-shadow: 0 6px 24px rgba(179, 136, 255, 0.5); color: #fff; }
.ctrl-btn svg { width: 22px; height: 22px; }
.play-btn svg { width: 26px; height: 26px; }

/* Громкость */
.player-volume {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
}
.vol-icon { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.volume-track {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}
.volume-fill {
  height: 100%;
  width: 70%;
  background: var(--lilac-primary);
  border-radius: 2px;
  transition: width 0.1s linear;
}

/* Адаптивность */
@media (max-width: 480px) {
  .lilac-audio-player { padding: 20px; border-radius: 20px; }
  .player-controls { gap: 14px; }
  .ctrl-btn { width: 40px; height: 40px; }
  .play-btn { width: 50px; height: 50px; }
  .time { font-size: 11px; min-width: 32px; }
}		