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

body {
  background: #000;
  color: #fff;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  min-height: 100vh;
}

/* ===== Player bar ===== */
.player-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 80%, transparent 100%);
  padding: 14px 24px 22px;
}

.player-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.player-icon {
  font-size: 1.4rem;
  animation: pulse 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.6));
  min-width: 28px;
  text-align: center;
  color: #fff;
}

.player-icon.playing {
  color: #ffffff;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.player-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.player-label {
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #666;
  font-weight: 600;
}

.player-song {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ddd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.play-btn {
  background: #ffffff;
  color: #000;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.2s;
  flex-shrink: 0;
}

.play-btn:hover {
  transform: scale(1.1);
  background: #e0e0e0;
}

.progress-wrap {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  min-width: 60px;
}

.progress-bar {
  height: 100%;
  background: #ffffff;
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.time-display {
  font-size: 0.7rem;
  color: #666;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.volume-slider {
  width: 70px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}

/* Кнопка добавления музыки */
.add-music-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.add-music-btn:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  transform: scale(1.1);
}

/* ===== Hero ===== */
.hero {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(ellipse at center, #0a0a0a 0%, #000 100%);
}

/* ===== Glitch text ===== */
.glitch-wrapper {
  position: relative;
  z-index: 2;
}

.name {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(1.8rem, 6vw, 4.5rem);
  letter-spacing: 0.06em;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255,255,255,0.3);
  position: relative;
  user-select: none;
  animation: glow 4s ease-in-out infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 20px rgba(255,255,255,0.2), 0 0 60px rgba(255,255,255,0.1); }
  to   { text-shadow: 0 0 40px rgba(255,255,255,0.5), 0 0 100px rgba(255,255,255,0.2); }
}

.name::before,
.name::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.name::before {
  color: #ffffff;
  animation: glitch-1 3s infinite linear alternate-reverse;
  clip-path: inset(0 0 60% 0);
}

.name::after {
  color: #ffffff;
  animation: glitch-2 2.5s infinite linear alternate-reverse;
  clip-path: inset(40% 0 0 0);
}

@keyframes glitch-1 {
  0%   { transform: translate(0); }
  20%  { transform: translate(-3px, 2px); }
  40%  { transform: translate(3px, -1px); }
  60%  { transform: translate(-1px, 1px); }
  80%  { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

@keyframes glitch-2 {
  0%   { transform: translate(0); }
  25%  { transform: translate(2px, -3px); }
  50%  { transform: translate(-2px, 2px); }
  75%  { transform: translate(1px, -1px); }
  100% { transform: translate(0); }
}

/* ===== Particles ===== */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(0, 200, 255, 0.4);
  border-radius: 50%;
  animation: float linear infinite;
}

@keyframes float {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-100vh) scale(0); opacity: 0; }
}

/* ===== Avatar ===== */
.avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 3px solid rgba(0,200,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
  position: relative;
}

.avatar:hover {
  border-color: #00c8ff;
  box-shadow: 0 0 30px rgba(0,200,255,0.3);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-plus {
  font-size: 2.2rem;
  color: rgba(0,200,255,0.5);
  font-weight: 300;
  pointer-events: none;
  transition: color 0.2s;
}

.avatar:hover .avatar-plus {
  color: #00c8ff;
}

.avatar img:not([style*="display:none"]) ~ .avatar-plus,
.avatar img[src]:not([src=""]) ~ .avatar-plus {
  display: none;
}

/* ===== MC Server Card ===== */
.mc-server {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
}

.mc-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: rgba(30,30,30,0.9);
  border: 1px solid rgba(76,175,80,0.3);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
}

.mc-card:hover {
  border-color: rgba(76,175,80,0.6);
  box-shadow: 0 0 20px rgba(76,175,80,0.15);
}

.mc-icon {
  font-size: 1.6rem;
  min-width: 32px;
  text-align: center;
}

.mc-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mc-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #4ade80;
  letter-spacing: 0.04em;
}

.mc-sub {
  font-size: 0.65rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mc-details {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 3px;
}

.mc-ip {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: rgba(76,175,80,0.15);
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'JetBrains Mono', monospace;
}

.mc-ip:hover {
  background: rgba(76,175,80,0.3);
}

.mc-version {
  font-size: 0.7rem;
  color: #888;
  padding: 2px 6px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
}

/* ===== Bottom Banner ===== */
.bottom-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 80%, transparent 100%);
  padding: 22px 24px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.banner-link {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 0.85rem;
  transition: all 0.2s;
  background: rgba(255,255,255,0.05);
}

.banner-link:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.5);
  transform: scale(1.03);
}

.banner-text {
  color: #ccc;
}

.promo-code {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  font-size: 0.8rem;
}

.promo-label {
  color: #888;
}

.promo-value {
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.promo-value:hover {
  background: rgba(255,255,255,0.25);
}

.promo-discount {
  color: #4ade80;
  font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .player-inner { gap: 8px; flex-wrap: wrap; }
  .volume-slider { display: none; }
  .time-display { font-size: 0.6rem; }
  .progress-wrap { min-width: 40px; }
}
