* {
  box-sizing: border-box;
}

body {
  margin: 0;

  font-family: Arial, sans-serif;

  background:
    linear-gradient(135deg,#0f172a,#1e1b4b);

  color: white;
}

.hidden {
  display: none !important;
}

.topHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 24px 40px;

  flex-wrap: wrap;

  gap: 20px;
}

.logoArea h1 {
  margin: 0;
  font-size: 34px;
}

.logoArea p {
  opacity: 0.75;
  margin-top: 6px;
}

button {
  border: none;

  background:
    linear-gradient(135deg,#6366f1,#7c3aed);

  color: white;

  padding: 12px 18px;

  border-radius: 14px;

  cursor: pointer;

  font-weight: bold;

  transition: 0.2s;
}

button:hover {
  transform: translateY(-2px);
}

.dangerBtn {
  background:
    linear-gradient(135deg,#dc2626,#991b1b);
}

input,
textarea,
select {
  width: 100%;

  padding: 14px;

  border: none;

  border-radius: 14px;

  margin: 10px 0;

  font-size: 16px;

  background: white;
}

textarea {
  resize: vertical;
}

#hero {
  padding: 90px 20px;
  text-align: center;
}

.heroContent {
  max-width: 1000px;
  margin: auto;
}

.heroContent h2 {
  font-size: 58px;
  margin-bottom: 20px;
}

.heroContent p {
  font-size: 22px;
  opacity: 0.8;
}

.glassCard {
  max-width: 1450px;

  margin: 24px auto;

  padding: 30px;

  border-radius: 30px;

  background:
    rgba(255,255,255,0.08);

  backdrop-filter: blur(18px);

  border:
    1px solid rgba(255,255,255,0.12);
}

.adminLayout,
.personalGrid,
.tutorialGrid {
  display: grid;

  grid-template-columns: 1fr 2fr;

  gap: 30px;
}

.adminPanel {
  min-width: 0;
}

.formGrid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 16px;
}

.lyricsEditor {
  min-height: 600px;

  font-family: monospace;

  line-height: 1.7;

  white-space: pre;

  tab-size: 4;
}

hr {
  border: none;

  height: 1px;

  background:
    rgba(255,255,255,0.15);

  margin: 28px 0;
}

.hint {
  opacity: 0.75;
  font-size: 14px;
}

.formActions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.songsHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 20px;
}

.categoryFilters {
  display: flex;
  flex-wrap: wrap;

  gap: 10px;

  margin: 20px 0;
}

.songsContainer {
  display: grid;

  grid-template-columns:
    repeat(auto-fill,minmax(320px,1fr));

  gap: 18px;
}

.songCard {
  background:
    rgba(255,255,255,0.08);

  border-radius: 20px;

  overflow: hidden;

  cursor: pointer;

  transition: 0.2s;
}

.songCard:hover {
  transform: translateY(-4px);

  background:
    rgba(255,255,255,0.12);
}

.songCard img {
  width: 100%;
  height: 200px;

  object-fit: cover;
}

.songCardContent {
  padding: 18px;
}

.songCard h3 {
  margin-top: 0;
}

.badge {
  display: inline-block;

  padding: 6px 12px;

  border-radius: 999px;

  background: #6366f1;

  font-size: 13px;
}

.modal {
  position: fixed;

  inset: 0;

  background:
    rgba(0,0,0,0.7);

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 100;
}

.modalContent {
  width: 92%;
  max-width: 520px;

  background: white;

  color: black;

  padding: 30px;

  border-radius: 24px;
}

.closeBtn {
  float: right;

  width: 46px;
  height: 46px;

  border-radius: 50%;

  background: #ef4444;

  font-size: 24px;

  padding: 0;
}

.detailHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 20px;

  flex-wrap: wrap;
}

#detailCategory {
  background: #6366f1;

  padding: 10px 16px;

  border-radius: 12px;
}

.coverLarge {
  width: 100%;

  max-height: 420px;

  object-fit: cover;

  border-radius: 24px;

  margin: 24px 0;
}

.songActions,
.transposeControls,
.transportControls,
.masterControls {
  display: flex;

  gap: 12px;

  flex-wrap: wrap;

  align-items: center;
}

.lyricsToolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 20px;

  flex-wrap: wrap;
}

pre {
  background:
    rgba(255,255,255,0.08);

  padding: 24px;

  border-radius: 20px;

  overflow-x: auto;

  line-height: 1.8;

  font-size: 18px;

  white-space: pre-wrap;

  font-family: monospace;
}

#mixerSection {
  margin-top: 30px;
}

.mixerTop {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 20px;

  flex-wrap: wrap;
}

.mixerTimeline {
  width: 100%;

  height: 14px;

  border-radius: 999px;

  overflow: hidden;

  background:
    rgba(255,255,255,0.12);

  margin: 20px 0;

  position: relative;
}

#mixerProgress {
  height: 100%;
  width: 0%;

  background:
    linear-gradient(90deg,#6366f1,#8b5cf6);
}

#mixerTracks {
  display: flex;
  flex-direction: column;

  gap: 18px;

  margin-top: 30px;
}

.trackCard {
  background:
    rgba(255,255,255,0.08);

  padding: 18px;

  border-radius: 18px;
}

.trackTop {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 14px;

  flex-wrap: wrap;
}

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

.trackSliders {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 16px;

  margin-top: 16px;
}

.trackSliders label {
  display: flex;
  flex-direction: column;

  gap: 6px;
}

input[type="range"] {
  padding: 0;
}

.editorStemCard,
.editorTutorialCard {
  background:
    rgba(255,255,255,0.08);

  padding: 16px;

  border-radius: 18px;

  margin-bottom: 14px;
}

iframe {
  width: 100%;
  height: 280px;

  border: none;

  border-radius: 18px;
}

audio {
  width: 100%;
}

#userList,
#favoritesList {
  list-style: none;
  padding: 0;
}

#userList li,
#favoritesList li,
.setlistCard,
.statBox {
  background:
    rgba(255,255,255,0.08);

  padding: 14px;

  border-radius: 14px;

  margin-bottom: 12px;
}

@media (max-width: 1100px) {

  .adminLayout,
  .personalGrid,
  .tutorialGrid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 800px) {

  .heroContent h2 {
    font-size: 38px;
  }

  .formGrid {
    grid-template-columns: 1fr;
  }

  .lyricsToolbar,
  .mixerTop,
  .songsHeader {
    flex-direction: column;
    align-items: stretch;
  }

  .trackSliders {
    grid-template-columns: 1fr;
  }

  .topHeader {
    padding: 20px;
  }

}