:root {
  --bg: #050814;
  --card: #0b1220;
  --card2: #101a2e;
  --blue: #005cff;
  --blue-light: #3d8bff;
  --text: #ffffff;
  --muted: #9ca3af;
  --border: rgba(61,139,255,.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(180deg,#050814,#081120);
  color: var(--text);
  font-family: 'Inter', Arial, sans-serif;
  min-height: 100vh;
  padding-bottom: 120px;
}

h1, h2, .nav-links a, .hero-btn, button {
  font-family: 'Orbitron', Arial, sans-serif;
}

/* HERO */

.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  background:
    radial-gradient(circle at top right, rgba(0,92,255,.35), transparent 35%),
    radial-gradient(circle at top left, rgba(61,139,255,.2), transparent 30%);
}

.top-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.nav-logo {
  width: min(90vw, 900px);
  height: auto;
  display: block;
  margin: auto;
  filter: drop-shadow(0 0 25px rgba(0,92,255,.5));
}

.nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.hero-center {
  text-align: center;
}

.hero-center p {
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.2rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 15px 28px;
  border-radius: 14px;
  background: linear-gradient(135deg,var(--blue),var(--blue-light));
  color: white;
  text-decoration: none;
  font-weight: 900;
}

.hero-btn img {
  width: 24px;
  height: 24px;
}

/* TOOLS */

.tools {
  max-width: 1280px;
  margin: auto;
  padding: 30px 24px;
}

#searchInput {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  color: white;
  margin-bottom: 20px;
  font-size: 16px;
}

.genre-menu {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.genre-menu button {
  border: 0;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  background: #111827;
  color: white;
  font-weight: 800;
}

.genre-menu button.active {
  background: linear-gradient(135deg,var(--blue),var(--blue-light));
}

/* MIX TEGELS */

.mix-list {
  max-width: 1280px;
  margin: auto;
  padding: 30px 24px 150px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.mix-card {
  background: linear-gradient(180deg, rgba(16,26,46,.96), rgba(7,11,18,.96));
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}

.tile-cover {
  position: relative;
  width: 100%;
  height: 260px;
}

.tile-cover img,
.tile-cover .no-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.no-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg,var(--blue),var(--blue-light));
}

.tile-new-label,
.new-label {
  display: inline-block;
  background: linear-gradient(135deg,var(--blue),var(--blue-light));
  color: white;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.tile-new-label {
  position: absolute;
  right: 14px;
  top: 14px;
}

.tile-info {
  padding: 18px;
}

.tile-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.genre {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(61,139,255,.15);
  color: var(--blue-light);
  font-size: .85rem;
  font-weight: 700;
}

.tile-downloads {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.tile-info h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.tile-info p {
  color: var(--muted);
  margin-bottom: 12px;
}

.tile-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.card-play-btn,
.tile-stop,
.download-btn,
.upload-section button,
.admin-mix-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 13px;
  padding: 13px 12px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
}

.card-play-btn {
  background: linear-gradient(135deg,var(--blue),var(--blue-light));
  color: white;
}

.tile-stop {
  background: #111827;
  color: white;
  border: 1px solid rgba(255,255,255,.08);
}

.download-btn {
  background: #111827;
  color: white;
  margin-top: 12px;
  width: 100%;
}

.card-play-btn img,
.tile-stop img,
.download-btn img,
.upload-section button img,
.admin-mix-actions button img {
  width: 22px;
  height: 22px;
}

details {
  margin-top: 16px;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

pre {
  white-space: pre-wrap;
  margin-top: 10px;
  color: var(--muted);
}

/* PLAYER ONDERAAN */

.bottom-player {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(11,18,32,.96);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 30px rgba(0,92,255,.25);
}

#bottomPlayBtn,
#bottomStopBtn,
#bottomNextBtn {
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#bottomPlayBtn {
  background: linear-gradient(135deg,var(--blue),var(--blue-light));
}

#bottomPlayBtn img,
#bottomStopBtn img,
#bottomNextBtn img {
  width: 28px;
  height: 28px;
}

.bottom-player-info {
  flex: 1;
  min-width: 0;
}

#bottomTitle {
  font-weight: 900;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bottom-progress {
  height: 10px;
  background: #1f2937;
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
}

#bottomProgressFill {
  width: 0%;
  height: 100%;
  background: linear-gradient(135deg,var(--blue),var(--blue-light));
}

.bottom-time {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  color: var(--muted);
  font-size: .85rem;
}

.separator {
  color: var(--muted);
}

#bottomVolume {
  width: 160px;
  margin-top: 10px;
  accent-color: var(--blue-light);
}

/* FOOTER */

.footer {
  text-align: center;
  padding: 80px 20px 140px;
}

.footer img {
  height: 80px;
  margin-bottom: 12px;
}

.footer h2 {
  margin-top: 10px;
  font-size: 28px;
}

.footer p {
  color: var(--muted);
  margin-top: 8px;
}

.footer-links {
  margin: 22px 0;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--blue-light);
  text-decoration: none;
  font-weight: 800;
}

.copyright {
  color: var(--muted);
  font-size: 14px;
}

/* ADMIN */

.admin-hero {
  min-height: 420px;
}

.admin-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.upload-section {
  max-width: 1100px;
  margin: 30px auto;
  padding: 28px;
  background: rgba(11,18,32,.95);
  border: 1px solid var(--border);
  border-radius: 24px;
}

.upload-section h2 {
  margin-bottom: 18px;
}

.upload-section form {
  display: grid;
  gap: 14px;
}

.upload-section input,
.upload-section select,
.upload-section textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #050814;
  color: white;
  font-size: 15px;
}

.upload-section textarea {
  min-height: 120px;
}

.upload-section label {
  color: var(--muted);
  font-weight: 800;
}

.upload-section button {
  background: linear-gradient(135deg,var(--blue),var(--blue-light));
  color: white;
}

.progress-wrap {
  display: none;
  height: 28px;
  background: #111827;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(135deg,var(--blue),var(--blue-light));
  text-align: center;
  line-height: 28px;
  font-weight: 900;
}

#adminMixList {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
  gap: 22px;
}

.admin-mix-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(16,26,46,.96), rgba(7,11,18,.96));
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}

.admin-cover {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
}

.admin-cover img,
.admin-no-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-no-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,var(--blue),var(--blue-light));
  font-size: 2rem;
  font-weight: 900;
}

.admin-mix-data {
  padding: 18px;
}

.admin-mix-data strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.admin-mix-data p {
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.7;
}

.admin-mix-data p img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 6px;
}

.admin-mix-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-mix-actions button:first-child {
  background: linear-gradient(135deg,var(--blue),var(--blue-light));
  color: white;
}

.admin-mix-actions button:last-child {
  background: #111827;
  color: white;
  border: 1px solid rgba(255,255,255,.08);
}

/* MOBIEL */

@media(max-width: 768px) {
  .hero {
    padding: 28px 18px;
    min-height: 55vh;
  }

  .nav-logo {
    width: min(95vw, 520px);
  }

  .mix-list {
    grid-template-columns: 1fr;
    padding: 20px 16px 150px;
  }

  .tile-cover {
    height: 280px;
  }

  .bottom-player {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 12px;
    gap: 8px;
  }

  #bottomPlayBtn,
  #bottomStopBtn,
  #bottomNextBtn {
    width: 46px;
    height: 46px;
  }

  #bottomPlayBtn img,
  #bottomStopBtn img,
  #bottomNextBtn img {
    width: 23px;
    height: 23px;
  }

  #bottomVolume {
    width: 120px;
  }

  .footer {
    padding-bottom: 150px;
  }

  #adminMixList {
    grid-template-columns: 1fr;
  }
}
.cover-library {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(120px,1fr));
  gap: 12px;
  margin-top: 15px;
}

.cover-library img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: .2s;
}

.cover-library img:hover {
  transform: scale(1.03);
}

.cover-library img.selected {
  border-color: var(--blue-light);
  box-shadow: 0 0 20px rgba(61,139,255,.5);
}