:root {
  /* Hellish primary/secondary colors */
  --primary-color: #b30000;    /* deep crimson */
  --secondary-color: #330000;  /* near-black/red */
  --accent-color: #ff4d4d;     /* fiery red */
  --bg-color: #1a0000;         /* very dark maroon */
  --text-color: #f2f2f2;       /* off-white for legibility */
  --border-color: #660000;     /* dark red */
  --button-bg: #ff1a1a;        /* vivid red */
  --button-hover: #cc0000;     /* slightly darker */
  --error-color: #ff6666;      /* light red for errors */
  --success-color: #ff4444;    /* bright red for success */
}

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

body {
  font-family: Georgia, 'Times New Roman', Times, serif;
  background: linear-gradient(135deg, var(--bg-color) 0%, var(--secondary-color) 100%);
  color: var(--text-color);
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header Styles */
.header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.title {
  font-family: 'New Rocker', Georgia, serif;
  font-size: 3rem;
  font-weight: bold;
  color: var(--accent-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

h2,h3 {
  font-family: 'New Rocker', Georgia, serif;
}

.help-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  border: 2px solid var(--border-color);
  background: var(--secondary-color);
  color: var(--text-color);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.help-btn:hover {
  background: var(--primary-color);
  border-color: var(--accent-color);
  transform: scale(1.1);
}

/* Upload Section */
.upload-section {
  margin-bottom: 2rem;
}

.upload-area {
  border: 3px dashed var(--border-color);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  background: var(--secondary-color);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.upload-area:hover,
.upload-area.drag-over {
  border-color: var(--accent-color);
  background: var(--primary-color);
  box-shadow: 0 0 20px rgba(255, 77, 77, 0.3);
}

.upload-content {
  pointer-events: none;
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.upload-title {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.upload-text {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.upload-formats {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.8;
  margin-bottom: 1rem;
}

.browse-btn {
  background: var(--button-bg);
  color: var(--text-color);
  border: 2px solid var(--border-color);
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.browse-btn:hover {
  background: var(--button-hover);
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.error-message {
  color: var(--error-color);
  text-align: center;
  margin-top: 1rem;
  font-weight: bold;
  display: none;
}

/* Audio Section */
.audio-section {
  margin-bottom: 2rem;
}

.audio-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.audio-player-wrapper {
  background: var(--secondary-color);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
}

.audio-player-wrapper h3 {
  margin-bottom: 0.5rem;
  color: var(--accent-color);
  font-size: 1.3rem;
}

.audio-status {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.7;
  margin-bottom: 1rem;
  font-style: italic;
}

audio {
  width: 100%;
  max-width: 300px;
  background: var(--bg-color);
  border-radius: 5px;
}

audio::-webkit-media-controls-panel {
  background-color: var(--bg-color);
}

/* Effects Section */
.effects-section {
  margin-bottom: 2rem;
}

.effects-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.effects-section h2 {
  color: var(--accent-color);
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
}

.bulk-controls {
  display: flex;
  gap: 0.5rem;
}

.bulk-btn {
  padding: 0.5rem 1rem;
  background: var(--secondary-color);
  color: var(--text-color);
  border: 2px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.bulk-btn:hover {
  background: var(--primary-color);
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.effects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1rem;
}

.effect-item {
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.2rem;
  transition: all 0.3s ease;
}

.effect-item:hover {
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(255, 77, 77, 0.2);
}

.effect-header {
  margin-bottom: 1rem;
}

.effect-name {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--text-color);
  display: block;
  margin-bottom: 0.3rem;
}

.effect-tagline {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-color);
  opacity: 0.8;
  display: block;
}

.effect-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.effect-controls input[type="radio"] {
  display: none;
}

.control-btn {
  flex: 1;
  min-width: 60px;
  padding: 0.6rem 0.8rem;
  text-align: center;
  border: 2px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.off-btn,
.subtle-btn,
.overt-btn,
.on-btn {
  background: var(--bg-color);
  color: var(--text-color);
}

.control-btn:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

input[type="radio"]:checked + .off-btn,
input[type="radio"]:checked + .subtle-btn,
input[type="radio"]:checked + .overt-btn,
input[type="radio"]:checked + .on-btn {
  background: var(--button-bg);
  border-color: var(--accent-color);
  box-shadow: inset 0 0 10px rgba(255, 77, 77, 0.5);
  color: var(--text-color);
}

/* Controls Section */
.controls-section {
  text-align: center;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 150px;
}

.primary-btn {
  background: var(--button-bg);
  color: var(--text-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.primary-btn:hover:not(:disabled) {
  background: var(--button-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.secondary-btn {
  background: var(--secondary-color);
  color: var(--text-color);
  border: 2px solid var(--border-color);
}

.secondary-btn:hover:not(:disabled) {
  background: var(--primary-color);
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.primary-btn:disabled,
.secondary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.status {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--accent-color);
  margin-top: 1rem;
  min-height: 30px;
}

.status.flashing {
  animation: flash 0.5s infinite alternate;
}

@keyframes flash {
  from { opacity: 1; }
  to { opacity: 0.5; }
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.footer-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  background-color: var(--secondary-color);
  margin: 10% auto;
  padding: 2rem;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.close-btn {
  color: var(--text-color);
  float: right;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.close-btn:hover {
  color: var(--accent-color);
}

.modal-content h2 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  text-align: center;
}

.instructions p {
  margin-bottom: 0.8rem;
  line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .title {
    font-size: 2rem;
  }
  
  .audio-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .effects-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .effects-grid {
    grid-template-columns: 1fr;
  }
  
  .button-group {
    flex-direction: column;
    align-items: center;
  }
  
  .primary-btn,
  .secondary-btn {
    width: 100%;
    max-width: 300px;
  }
  
  .help-btn {
    position: static;
    margin-top: 1rem;
  }
  
  .header {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .bulk-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 15px;
  }
  
  .title {
    font-size: 1.5rem;
  }
  
  .upload-area {
    padding: 1rem;
  }
  
  .effects-grid {
    gap: 0.5rem;
  }
  
  .effect-item {
    padding: 0.8rem;
  }
}
