/* Enhanced base styles with better typography and spacing */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #f8f9fa;
  line-height: 1.6;
}

/* Improved header with better padding and typography */
header {
  background-color: #333;
  color: #fff;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Enhanced table styling with better spacing and visual hierarchy */
.table-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

#mos_score {
  margin: 0 auto;
  text-align: left;
  border-collapse: collapse;
  width: 100%;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#mos_score td {
  border: 2px solid #333;
  padding: 16px 20px;
  vertical-align: top;
}

#mos_score tr:first-child td {
  background-color: #f8fafc;
  font-weight: 700;
  text-align: center;
  font-size: 1.1rem;
}

#mos_score tr:first-child td:first-child {
  background-color: #333;
  color: white;
}

/* Added samples header section styling */
.samples-header {
  background-color: #333;
  color: #fff;
  padding: 30px 20px;
  text-align: center;
  margin: 40px 0 0 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.samples-header h2 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.note {
  margin: 15px 0 0 0;
  font-size: 1.1rem;
  color: #d1d5db;
  font-weight: 400;
}

/* Enhanced speaker section styling with cards and better spacing */
.speaker-section {
  background-color: white;
  margin: 30px auto;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  max-width: 1200px;
  border: 1px solid #e5e7eb;
}

.speaker-title {
  color: #333;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 30px 0;
  padding: 0;
  border-bottom: 3px solid #333;
  padding-bottom: 10px;
}

/* Improved audio group styling with better labels and spacing */
.audio-group {
  margin-bottom: 35px;
}

.original-label {
  color: #10b981;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  display: block;
}

.clone-label {
  color: #333;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  display: block;
}

/* Enhanced clone grid with better responsive layout */
.clone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin-top: 15px;
}

.clone-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.clone-type {
  font-weight: 600;
  color: #6b7280;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Enhanced audio player styling */
audio {
  width: 100%;
  height: 45px;
  border-radius: 6px;
  outline: none;
}

audio:focus {
  box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

/* Responsive design improvements */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  .samples-header h2 {
    font-size: 1.8rem;
  }

  .speaker-section {
    margin: 20px 10px;
    padding: 25px;
  }

  .speaker-title {
    font-size: 1.5rem;
  }

  .clone-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  #mos_score td {
    padding: 12px 8px;
    font-size: 0.9rem;
  }
}

/* Removed old unused styles and cleaned up */
form {
  display: flex;
  align-items: center;
}

label {
  margin-right: 10px;
}
