* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #0a0a0a;
  color: #e0e0e0;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

header h1 {
  font-size: 2rem;
  color: var(--neon-color, #00bcd4);
  text-shadow: 0 0 10px var(--neon-color, #00bcd4);
  margin-top: 30px;
}

.controls {
  margin: 20px 0;
}

select {
  background: #1e1e1e;
  color: #fff;
  border: 1px solid var(--neon-color, #00bcd4);
  border-radius: 8px;
  padding: 6px 10px;
}

#stats {
  margin: 10px 0 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 1rem;
}

.clip-area {
  width: 100%;
  height: 400px;
  background: #111;
  border: 2px solid var(--neon-color, #00bcd4);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  user-select: none;
  transition: box-shadow 0.3s;
}

.clip-area.active {
  box-shadow: 0 0 30px var(--neon-color, #00bcd4);
}

#clipText {
  color: #ccc;
  font-size: 1.3rem;
  pointer-events: none;
}

#resultBox {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #1e1e1e;
  border: 2px solid var(--neon-color, #00bcd4);
  box-shadow: 0 0 20px var(--neon-color, #00bcd4);
  padding: 30px;
  border-radius: 16px;
  z-index: 100;
  color: #fff;
  text-align: center;
}

.hidden {
  display: none;
}

#rankingSection {
  margin-top: 50px;
}

.ranking-controls {
  margin-bottom: 10px;
}

button {
  background: var(--neon-color, #00bcd4);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  background: #0097a7;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th, td {
  border: 1px solid #333;
  padding: 8px;
}

.color-picker {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 10;
  background: #1e1e1e;
  border: 1px solid var(--neon-color, #00bcd4);
  border-radius: 8px;
  padding: 8px 12px;
  box-shadow: 0 0 10px var(--neon-color, #00bcd4);
}

#background {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at center, transparent 0%, #000 70%);
  overflow: hidden;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-20px) scale(1.1);
    opacity: 1;
  }
}
