:root {
  --primary-color: #ff0099;
  --secondary-color: #00ffcc;
  --dark-bg: rgba(10, 10, 30, 0.95);
  --card-bg: rgba(20, 20, 40, 0.85);
  --glow-pink: 0 0 20px rgba(255, 0, 153, 0.5);
  --glow-cyan: 0 0 20px rgba(0, 255, 204, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: #000;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

#canva {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  cursor: pointer;
}

.canvas-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 2;
  pointer-events: none;
}

.content-wrapper {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 2rem 1rem;
}

.title-glow {
  font-family: "Rowdies", cursive;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px var(--primary-color),
    0 0 30px var(--primary-color);
  animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
      0 0 20px var(--primary-color);
  }
  50% {
    text-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 40px var(--primary-color),
      0 0 50px var(--primary-color);
  }
}

.player-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1),
    var(--glow-pink);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.player-card:hover {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 40px var(--primary-color);
  transform: translateY(-2px);
}

.form-select {
  background-color: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.form-select:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.25rem rgba(0, 255, 204, 0.15);
  color: #fff;
}

.form-select option {
  background-color: #1a1a2e;
  color: #fff;
}

.form-label {
  color: rgba(255, 255, 255, 0.9);
}

.btn-play {
  background: linear-gradient(135deg, var(--primary-color), #cc0077);
  border: none;
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 0, 153, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-play:hover::before {
  width: 300px;
  height: 300px;
}

.btn-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 0, 153, 0.6);
  color: white;
}

.btn-play:active {
  transform: translateY(0);
}

.btn-stop {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-stop:hover {
  background: rgba(255, 0, 0, 0.2);
  border-color: rgba(255, 0, 0, 0.5);
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
  color: white;
}

.legals {
  text-align: center;
  padding: 1.5rem;
  position: relative;
  z-index: 3;
}

.legals a {
  color: white;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  color: darkgrey;
}

.legals a:hover {
  color: var(--secondary-color);
  text-shadow: 0 0 10px var(--secondary-color);
}

.modal-content {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  color: #fff;
}

.modal-header .btn-close {
  filter: invert(1);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 768px) {
  .title-glow {
    font-size: 2rem;
  }

  .btn-play,
  .btn-stop {
    width: 100%;
  }

  main {
    padding: 1rem;
  }
}

.btn-play.playing .play-text {
  display: none;
}

.btn-play.playing .pause-text {
  display: inline !important;
}

.info-display {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.info-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.info-box:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

.info-box small {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.info-box span {
  color: var(--secondary-color);
  font-size: 1rem;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
  font-family: "Courier New", monospace;
  line-height: 1;
  margin-top: 0.3rem;
}

@keyframes valueUpdate {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
    color: var(--primary-color);
  }
  100% {
    transform: scale(1);
  }
}

.info-box span.updating {
  animation: valueUpdate 0.3s ease;
}

@media (max-width: 768px) {
  .info-box {
    min-height: 60px;
    padding: 0.75rem 0.25rem;
  }

  .info-box small {
    font-size: 0.65rem;
  }

  .info-box span {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .info-box {
    min-height: 55px;
  }

  .info-box small {
    font-size: 0.6rem;
  }

  .info-box span {
    font-size: 1rem;
  }
}

.btn-help-small {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.btn-help-small:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
  transform: scale(1.1);
}

.btn-help-small:active {
  transform: scale(0.95);
}

.btn-github-small {
  position: absolute;
  bottom: 10px;
  right: 56px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 10;
  text-decoration: none;
}

.btn-github-small:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  box-shadow: 0 0 15px rgba(110, 84, 148, 0.3);
  transform: scale(1.1);
}

.btn-github-small:active {
  transform: scale(0.95);
}
