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

html,
body {
  max-width: 800px;
  min-height: 100%;
  margin: 0 auto;
}

body {
  background: #000;
  color: #fff;
  font-family:
  "Hiragino Sans",
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

/* =========================
   App
========================= */

.app {
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 32px 24px 48px;

  display: flex;
  flex-direction: column;
  gap: 24px;
}


/* =========================
   Header
========================= */

.app-header {
  text-align: center;
}

.app-header h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* =========================
   Editor
========================= */

.editor {
  width: 100%;
}
.canvas-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

#visualizerCanvas {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
}


/* =========================
   Controls
========================= */
.select-title {
  font-weight: 700;
  font-size: 24px;
  justify-content: center;
}

.file-discript {
  opacity: 0.7;
  margin-bottom: 6px;
}

.select-button {
  width: auto;
  margin: 0 auto;
  display: inline-block;
  padding: 13px 20px;
  border: none;
  border-radius: 30px;
  background: #fff;
  color: #000;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.controls {
  display: grid;
  gap: 16px;
}


.control-group {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 2px dashed #67707b;
  text-align: center;
  border-radius: 8px;
}


.control-group label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


.control-group select,
.control-group input[type="file"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 10px 12px;
}

.control-group select {
  cursor: pointer;
}

.control-group input[type="file"] {
  cursor: pointer;
}


/* Color */

#barColor {
  width: 100%;
  height: 50px;
  padding: 4px;
  border: 1px solid
    rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background:
    rgba(255, 255, 255, 0.06);
  cursor: pointer;
}


/* =========================
   Actions
========================= */

.actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 0px;
}

.wrapper {
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px; 
}

.container {
  display: flex;
  margin-top: auto;
  justify-content: flex-end;
  flex-direction: column; 
  gap: 10px; 
}

#playButton {
  background-color: red;
  color: #fff;
}


.act-button {
  width: 350px;
  height: 50px;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}


.act-button:hover {
  opacity: 0.85;
}


.act-button:active {
  transform: scale(0.98);
}



/* =========================
   Status
========================= */

.status-message {
  min-height: 20px;
  text-align: center;
  font-size: 13px;
}

/* =========================
   description
========================= */
.area {
  padding: 20px 0px;
}

.description{
  margin: auto;
}

h2 {
  text-align: center;
  font-size: 24px;
}

.title{
  padding-bottom: 6px;
  padding-top: 6px;
}

.sub-list {
  padding-bottom: 10px;
  text-align: center;
  font-size: 20px;
}

li {
  list-style: none;
  padding-bottom: 10px;
  font-weight: 200;
  font-size: 16px;
}



/* =========================
   Footer
========================= */

footer {
  text-align: center;

  font-size: 11px;

  opacity: 0.8;

  letter-spacing: 0.04em;
}


.site-footer {
  width: 100%;
  box-sizing: border-box;
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  color: #ffffff;
}

.site-footer .copyright {
  margin: 0 0 10px;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links a:hover {
  color: #3984e8;
}



/* =========================
   Mobile
========================= */

@media (max-width: 780px) {

  .app {
    padding: 20px 12px 32px;
    margin: 0;
    gap: 18px;
  }

  .app-header h1 {
    font-size: 24px;
  }

  .canvas-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .wrapper {
    margin: 0;
  }

  .controls {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .actions {
    box-sizing: border-box;
    flex-direction: column;
  }

  .description {
    margin: 0 16px;
  }
}
