@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=IBM+Plex+Sans:wght@400;500;700&display=swap");

:root {
  --ink: #102029;
  --paper: #f8f1e7;
  --panel: #fff8ed;
  --accent: #d45d2f;
  --accent-deep: #8d2f10;
  --muted: #5b646b;
  --border: #deb78e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 20%, #f5c16b 0, transparent 35%),
    radial-gradient(circle at 85% 10%, #f2a85f 0, transparent 30%),
    linear-gradient(160deg, #fdf9f2 0%, #f1dec9 100%);
  padding: 1.5rem;
  overflow-x: hidden;
}

.top-nav {
  max-width: 950px;
  margin: 0 auto 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.top-actions {
  display: flex;
  gap: 0.5rem;
}

.badge {
  display: inline-block;
  margin-left: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
  font-size: 0.82rem;
  background: #fff3e4;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(35px);
  z-index: -1;
  opacity: 0.6;
}

.bg-shape-a {
  width: 280px;
  height: 280px;
  background: #ec7f4e;
  top: -80px;
  left: -100px;
}

.bg-shape-b {
  width: 360px;
  height: 360px;
  background: #dfb14f;
  right: -140px;
  bottom: -180px;
}

.hero {
  max-width: 950px;
  margin: 0 auto 1.25rem;
  animation: rise 700ms ease-out both;
}

.eyebrow {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-deep);
  margin-bottom: 0.25rem;
}

h1 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
}

.subtitle {
  margin-top: 0.6rem;
  max-width: 760px;
  color: var(--muted);
}

.layout {
  max-width: 950px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.panel {
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgb(99 71 28 / 12%);
  padding: 1rem;
  animation: rise 700ms ease-out both;
}

.panel:nth-child(1) { animation-delay: 80ms; }
.panel:nth-child(2) { animation-delay: 160ms; }
.panel:nth-child(3) { animation-delay: 240ms; }

.panel:nth-child(1),
.panel:nth-child(2) {
  grid-column: span 6;
}

#upload-panel,
#site-settings-panel,
#user-admin-panel {
  grid-column: span 6;
}

.player-panel {
  grid-column: span 12;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

h2,
h3 {
  margin: 0.4rem 0;
}

button {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  padding: 0.55rem 1rem;
  cursor: pointer;
}

button:hover {
  background: var(--accent-deep);
}

input {
  width: 100%;
  margin: 0.4rem 0 0.8rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-size: 1rem;
}

textarea {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-size: 0.95rem;
  font-family: "IBM Plex Sans", sans-serif;
  margin: 0.5rem 0 0.8rem;
}

.field-label {
  display: block;
  margin-top: 0.8rem;
  font-weight: 500;
}

.track-list,
.playlist-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  max-height: 360px;
  overflow: auto;
}

.track-item,
.playlist-item {
  border: 1px solid #dfc19f;
  border-radius: 12px;
  padding: 0.6rem;
  background: #fffefa;
}

.track-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

.track-actions {
  margin-top: 0.4rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.secondary {
  background: #f2e2cf;
  color: var(--ink);
}

.secondary:hover {
  background: #ead2b4;
}

.hidden {
  display: none;
}

#audio-player {
  width: 100%;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .panel:nth-child(1),
  .panel:nth-child(2),
  #upload-panel,
  #site-settings-panel,
  #user-admin-panel,
  .player-panel {
    grid-column: span 12;
  }

  .top-nav {
    flex-direction: column;
    align-items: flex-start;
  }
}
