/* SpeechSuper Assessment - New Interface */

.ss-speech-assessment {
  max-width: 1200px;
  margin: 0 auto;
  /* padding: 20px; */
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

/* Header */
.ss-header {
  background: linear-gradient(135deg, #0a0a0a, #1d1d1f);
  color: #fff;
  padding: 30px;
  text-align: center;
  position: relative;
  border-radius: 0.8rem 0.8rem 0 0;
}

.ss-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.ss-topic-relevance {
  font-size: 1.6rem;
  opacity: 0.85;
}

/* Category Tabs */
.ss-category-tabs {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  /* margin-bottom: 30px; */
  border-bottom: 1px solid #e0e0e0;
}

.ss-category-tabs .ss-tab {
  padding: 8px;
  margin: 0 5px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  color: #7f8c8d;
  font-size: 14px;
}

.ss-category-tabs .ss-tab.active {
  color: #3498db;
  border-bottom-color: #3498db;
}

.ss-category-tabs .ss-tab:hover {
  color: #3498db;
}

/* Score Summary */
.ss-score-summary {
  background: #f8f9fa;
  padding: 30px;
  /* border-radius: 12px; */
  margin-bottom: 40px;
}

.ss-score-summary h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #2c3e50;
}

/* Test Type Tabs */
.ss-test-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 1.2rem;
  gap: 1.2rem;
}

.ss-test-tab {
  padding: 8px 16px;
  background: #e9ecef;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.ss-test-tab.active {
  background: #3498db;
  color: white;
}

.ss-test-tab:hover {
  background: #2980b9;
  color: white;
}

/* Main Score Display */
.ss-main-score {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Test score panels */
.ss-test-score {
  display: none;
  width: 100%;
  align-items: center;
  gap: 40px;
}

.ss-test-score.active {
  display: flex;
}

.ss-score-gauge {
  position: relative;
  text-align: center;
}

.ss-gauge-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: conic-gradient(
    #3498db 0deg,
    #3498db calc(var(--score, 0) * 3.6deg),
    #e9ecef calc(var(--score, 0) * 3.6deg),
    #e9ecef 360deg
  );
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.ss-gauge-circle::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  background: white;
  border-radius: 50%;
}

.ss-gauge-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: #2c3e50;
  z-index: 1;
}

.ss-gauge-scale {
  font-size: 1.2rem;
  color: #7f8c8d;
}

.ss-gauge-label {
  font-size: 1.1rem;
  color: #7f8c8d;
  margin-top: 0;
  position: relative;
  z-index: 1;
  order: -1;
}

.ss-gauge-icon {
  font-size: 3rem;
  margin-top: 20px;
}

/* Individual Scores */
.ss-individual-scores {
  flex: 1;
}

.ss-score-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "label value"
    "bar bar";
  row-gap: 8px;
  column-gap: 16px;
  margin-bottom: 18px;
  align-items: center;
}

.ss-score-label {
  grid-area: label;
  font-size: 1.6rem;
  color: #2c3e50;
  font-weight: 600;
}

.ss-score-bar {
  grid-area: bar;
  height: 10px;
  background: #e9ecef;
  border-radius: 999px;
  overflow: hidden;
}

.ss-score-fill {
  height: 100%;
  background: linear-gradient(90deg, #3498db, #2980b9);
  border-radius: 4px;
  transition: width 0.8s ease;
}

.ss-score-value {
  grid-area: value;
  min-width: 80px;
  font-weight: 700;
  color: #2c3e50;
  text-align: right;
}

.ss-score-value .ss-score-max,
.ss-gauge-value .ss-score-max,
.ss-gauge-scale.ss-score-max {
  font-weight: normal;
}

/* Fixed colors per criterion (order-based) */
.ss-test-score .ss-score-item:nth-child(1) .ss-score-fill {
  background: #2ecc71;
}

/* Fluency - green */
.ss-test-score .ss-score-item:nth-child(1) .ss-score-bar {
  background: #eaf7f0;
}

.ss-test-score .ss-score-item:nth-child(2) .ss-score-fill {
  background: #bb6bd9;
}

/* Vocabulary - purple */
.ss-test-score .ss-score-item:nth-child(2) .ss-score-bar {
  background: #f3e9fb;
}

.ss-test-score .ss-score-item:nth-child(3) .ss-score-fill {
  background: #ff73a5;
}

/* Grammatical - pink */
.ss-test-score .ss-score-item:nth-child(3) .ss-score-bar {
  background: #ffe6ef;
}

.ss-test-score .ss-score-item:nth-child(4) .ss-score-fill {
  background: #f5a623;
}

/* Pronunciation - orange */
.ss-test-score .ss-score-item:nth-child(4) .ss-score-bar {
  background: #ffeed6;
}

/* Transcription */
.ss-transcription-section {
  background: #f8f9fa;
  padding: 1.2rem;
  margin-bottom: 1.2rem;
}

.ss-transcription-section h2 {
  margin-bottom: 15px;
  color: #2c3e50;
  font-size: 2rem;
  font-weight: 500;
}

.ss-transcription-text {
  line-height: 1.6;
  color: #34495e;
  font-size: 1.6rem;
  padding: 1.2rem;
  text-align: justify;
}

/* Breakdown Sections */

.ss-breakdown-section {
  background: white;
  /* border: 1px solid #e0e0e0; */
  /* border-radius: 8px; */
  /* overflow: hidden; */
  padding: 0.8rem;
  &:not(:last-child) {
    margin-bottom: 1.2rem;
  }
}

.ss-breakdown-section h3 {
  background: #f8f9fa;
  margin: 0;
  color: #2c3e50;
}

.ss-breakdown-content {
  /* padding: 20px; */
}

.ss-breakdown-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0.8rem 1.6rem;
  margin: 0;
  gap: 0.8rem;
  border-bottom: 1px solid #e9ecef;
}

.ss-breakdown-item.ss-inline-flex {
  display: inline-flex;
}

.ss-breakdown-item:last-child {
  border-bottom: 0;
}

.ss-breakdown-label {
  font-weight: 600;
  color: #2c3e50;
  text-align: left;
}

.ss-breakdown-value {
  font-weight: 600;
  color: #2c3e50;
  /* text-align: center; */
}

/* Speaking Rate */
.ss-speaking-rate {
  flex: 1;
  position: relative;
  width: 300px;
  max-width: 100%;
}

.ss-rate-bar {
  position: relative;
  display: flex;
  height: 14px;
  border-radius: 8px;
  overflow: hidden;
}

.ss-rate-segment {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
}

.ss-rate-scale {
  position: relative;
  height: 0;
}

.ss-rate-scale span {
  position: absolute;
  transform: translateX(-50%);
  top: 0;
  font-size: 12px;
  color: #2c3e50;
}

.ss-too-slow {
  background: #e74c3c;
}

.ss-moderate {
  background: #27ae60;
}

.ss-too-fast {
  background: #3498db;
}

/* Move arrow on top of the bar and add scale */
.ss-rate-marker {
  position: absolute;
  top: -8px;
  width: 0;
  height: 0;
}

.ss-rate-marker::after {
  content: "▼";
  position: absolute;
  top: -8px;
  left: 0;
  transform: translateX(-50%);
  color: #27ae60;
  font-size: 14px;
}

.ss-rate-scale {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #7f8c8d;
  margin-top: 2px;
}

/* Progress Bars */
.ss-progress-bar {
  flex: 1;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  margin: 0 15px;
}

.ss-progress-fill {
  height: 100%;
  background: #3498db;
  border-radius: 4px;
  transition: width 0.8s ease;
}

.ss-progress-fill.ss-good {
  background: #37a869;
}

.ss-progress-fill.ss-needs-improvement {
  background: #ff5136;
}

.ss-progress-fill.ss-fair {
  background: #fd9c00;
}

.ss-progress-value {
  min-width: 50px;
  text-align: right;
  font-weight: bold;
  color: #2c3e50;
}

/* CEFR Distribution */
.ss-cefr-distribution {
  margin-top: 25px;
}

.ss-cefr-distribution h4 {
  margin-bottom: 15px;
  color: #2c3e50;
}

.ss-cefr-chart {
  display: flex;
  gap: 10px;
  align-items: end;
  height: 120px;
}

.ss-cefr-bar {
  flex: 1;
  background: #3498db;
  border-radius: 4px 4px 0 0;
  position: relative;
  /* allow 0% height to be truly zero */
  min-height: 0;
}

.ss-cefr-label {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: #7f8c8d;
}

.ss-cefr-percentage {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: #2c3e50;
  font-weight: bold;
}

/* Grammar Suggestions */
.ss-grammar-suggestions {
  margin-top: 25px;
}

.ss-grammar-suggestions h4 {
  margin-bottom: 20px;
  color: #2c3e50;
}

.ss-grammar-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.ss-grammar-header {
  background: #f8f9fa;
  padding: 12px 20px;
  border-bottom: 1px solid #e0e0e0;
}

.ss-grammar-number {
  background: #3498db;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
}

.ss-grammar-content {
  padding: 20px;
}

.ss-grammar-row {
  display: flex;
  margin-bottom: 15px;
  align-items: flex-start;
}

.ss-grammar-row:last-child {
  margin-bottom: 0;
}

.ss-grammar-label {
  min-width: 100px;
  font-weight: bold;
  color: #7f8c8d;
  padding-top: 4px;
}

.ss-grammar-text {
  flex: 1;
  padding: 12px 16px;
  border-radius: 6px;
  line-height: 1.5;
}

.ss-original {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
}

.ss-corrected {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.ss-no-errors {
  text-align: center;
  padding: 30px;
  color: #27ae60;
  font-style: italic;
}

/* Equivalent Scores */
.ss-equivalent-scores {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 12px;
}

.ss-equivalent-scores h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #2c3e50;
}

.ss-score-tabs {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.ss-score-tab {
  background: white;
  padding: 20px;
  border-radius: 8px;
  min-width: 200px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ss-score-tab h3 {
  text-align: center;
  margin-bottom: 15px;
  color: #2c3e50;
  font-size: 1.1rem;
}

.ss-score-grid {
  display: grid;
  gap: 10px;
}

.ss-score-grid-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.ss-score-grid-item:last-child {
  border-bottom: none;
}

.ss-score-category {
  color: #7f8c8d;
  font-size: 0.9rem;
}

.ss-score-value {
  font-weight: bold;
  color: #2c3e50;
}

/* Score Interpretation */
.ss-score-interpretation {
  /* padding: 1.2rem; */
}

.ss-score-interpretation h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #2c3e50;
}

.ss-interpretation-content {
  display: grid;
  gap: 1.6rem;
}

.ss-interpretation-item {
  margin-bottom: 1.6rem;
  padding: 0.8rem;
  border-radius: 0.8rem;
  border: 1px solid #e0e0e0;
  border-left: 0.3rem solid #3498db;
}

.ss-interpretation-item h3 {
  color: #3498db;
  margin-bottom: 10px;
  font-size: 1.6rem;
  text-align: left;
  padding: 0;
  border: unset;
  background: unset;
}

.ss-interpretation-item p {
  line-height: 1.6;
  color: #34495e;
  margin-bottom: 0;
}

.ss-analysis-grid {
  display: grid;
  gap: 10px;
}

.ss-analysis-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.ss-analysis-label {
  font-weight: 600;
  color: #2c3e50;
  flex: 1;
}

.ss-analysis-score {
  font-weight: bold;
  color: #3498db;
  margin: 0 20px;
}

.ss-analysis-level {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
}

.ss-analysis-level:contains("Advanced") {
  background: #d4edda;
  color: #155724;
}

.ss-analysis-level:contains("Intermediate") {
  background: #fff3cd;
  color: #856404;
}

.ss-analysis-level:contains("Basic") {
  background: #f8d7da;
  color: #721c24;
}

/* Responsive Design */
@media (max-width: 768px) {
  .ss-main-score {
    flex-direction: column;
    text-align: center;
  }

  .ss-category-tabs {
    flex-wrap: wrap;
  }

  .ss-test-tabs {
    flex-wrap: wrap;
    gap: 1.2rem;
  }

  .ss-breakdown-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .ss-breakdown-label {
    min-width: auto;
  }

  .ss-cefr-chart {
    flex-direction: column;
    height: auto;
    gap: 15px;
  }

  .ss-cefr-bar {
    height: 30px;
  }

  .ss-analysis-item {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .ss-analysis-score {
    margin: 0;
  }
}

/* metric row (label | bar | value) */
.ss-score-interpretation .ss-metric-row {
  display: grid !important;
  grid-template-columns: 1fr 3fr auto !important;
  align-items: center;
}

.ss-score-interpretation .ss-metric-row .ss-progress-bar {
  margin: 0 10px;
  height: 8px;
  width: 100%;
}

.ss-score-interpretation .ss-metric-row .ss-speaking-rate {
  width: 100%;
  margin: 0 10px;
}

.ss-score-interpretation .ss-metric-row .ss-speaking-rate .ss-rate-bar {
  width: 100%;
}

.ss-score-interpretation .ss-metric-row .ss-breakdown-label {
  text-align: left;
}

.ss-score-interpretation .ss-metric-row .ss-breakdown-value {
  text-align: right;
  min-width: 48px;
}

.ss-breakdown-value.ss-flex-value {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ss-speaking-value {
  font-size: 1rem;
  font-weight: 600;
}

.ss-pauses-block {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  margin-top: 12px;
}

.ss-pauses-title {
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 10px;
  color: #2c3e50;
}

.ss-pauses-text {
  line-height: 1.9;
  font-size: 1.05rem;
  color: #2c3e50;
}

.ss-pauses-text .ss-word {
  display: inline;
}

.ss-pause-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff7f32;
  position: relative;
  top: 3px;
  margin: 0 6px;
}

.ss-pause-icon::before,
.ss-pause-icon::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 3px;
  height: 10px;
  background: #fff;
}

.ss-pause-icon::before {
  left: 5px;
}

.ss-pause-icon::after {
  right: 5px;
}

/* CEFR fixed colors */
.ss-cefr-bar[data-level="A1"] {
  background: #4dabf7;
}

.ss-cefr-bar[data-level="A2"] {
  background: #63e6be;
}

.ss-cefr-bar[data-level="B1"] {
  background: #ffd43b;
}

.ss-cefr-bar[data-level="B2"] {
  background: #ffa94d;
}

.ss-cefr-bar[data-level="C1"] {
  background: #ff6b6b;
}

.ss-cefr-bar[data-level="C2"] {
  background: #845ef7;
}

/* Filler Words Statistics */
.ss-filler-stats {
  margin-top: 25px;
}

.ss-filler-stats h4 {
  margin-bottom: 20px;
  color: #2c3e50;
  font-size: 1.1rem;
  text-align: center;
}

.ss-filler-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ss-filler-table th {
  background: #f8f9fa;
  padding: 15px 20px;
  text-align: left;
  font-weight: 600;
  color: #2c3e50;
  border-bottom: 2px solid #e0e0e0;
}

.ss-filler-table td {
  padding: 15px 20px;
  border-bottom: 1px solid #e9ecef;
  color: #34495e;
}

.ss-filler-table tr:last-child td {
  border-bottom: none;
}

.ss-filler-table .ss-filler-word {
  font-weight: 600;
  color: #2c3e50;
}

.ss-filler-table .ss-filler-count {
  text-align: center;
  font-weight: 700;
  color: #e74c3c;
  background: #fdf2f2;
  border-radius: 20px;
  padding: 4px 12px;
  min-width: 40px;
  display: inline-block;
}

.ss-filler-table .ss-no-fillers {
  text-align: center;
  color: #27ae60;
  font-style: italic;
  padding: 30px;
}

.ss-filler-table .ss-filler-header {
  background: #e8f4fd;
  border-bottom: 2px solid #3498db;
}

.ss-filler-table .ss-filler-header th {
  background: #e8f4fd;
  color: #2980b9;
  text-align: center;
}

/* Pronunciation Word Display */
.ss-pronunciation-words {
  margin-top: 25px;
}

.ss-pronunciation-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.ss-pronunciation-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.ss-pronunciation-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.ss-pronunciation-legend-dot.ss-good {
  background: #37a869;
}

.ss-pronunciation-legend-dot.ss-fair {
  background: #fd9c00;
}

.ss-pronunciation-legend-dot.ss-needs-work {
  background: #ff5136;
}

.ss-pronunciation-legend-text.ss-good {
  color: #37a869;
}

.ss-pronunciation-legend-text.ss-fair {
  color: #fd9c00;
}

.ss-pronunciation-legend-text.ss-needs-work {
  color: #ff5136;
}

.ss-pronunciation-sentences {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ss-pronunciation-sentence {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
}

.ss-pronunciation-sentence-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}

.ss-pronunciation-sentence-text {
  font-weight: 600;
  color: #2c3e50;
  font-size: 1rem;
}

.ss-pronunciation-sentence-score {
  background: #3498db;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.ss-pronunciation-words-display {
  line-height: 2;
  font-size: 1.05rem;
  text-align: left;
}

.ss-pronunciation-word {
  display: inline-block;
  margin: 0 2px 10px 0;
  padding: 2px 4px;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: help;
  position: relative;
}

.ss-pronunciation-word.ss-good {
  background: rgba(55, 168, 105, 0.1);
  color: #37a869;
  border: 1px solid rgba(55, 168, 105, 0.3);
}

.ss-pronunciation-word.ss-fair {
  background: rgba(253, 156, 0, 0.1);
  color: #fd9c00;
  border: 1px solid rgba(253, 156, 0, 0.3);
}

.ss-pronunciation-word.ss-needs-work {
  background: rgba(255, 81, 54, 0.1);
  color: #ff5136;
  border: 1px solid rgba(255, 81, 54, 0.3);
}

.ss-pronunciation-word.ss-unknown {
  background: rgba(127, 140, 141, 0.1);
  color: #7f8c8d;
  border: 1px solid rgba(127, 140, 141, 0.3);
}

.ss-pronunciation-word:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ss-pronunciation-word.ss-good:hover {
  background: rgba(55, 168, 105, 0.2);
}

.ss-pronunciation-word.ss-fair:hover {
  background: rgba(253, 156, 0, 0.2);
}

.ss-pronunciation-word.ss-needs-work:hover {
  background: rgba(255, 81, 54, 0.2);
}

.ss-pronunciation-word.ss-unknown:hover {
  background: rgba(127, 140, 141, 0.2);
}

/* Tooltip for pronunciation scores */
.ss-pronunciation-word[data-pronunciation]::after {
  content: attr(data-pronunciation) + "%";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #2c3e50;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1000;
  margin-bottom: 5px;
}

.ss-pronunciation-word[data-pronunciation]::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #2c3e50;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  margin-bottom: 1px;
}

.ss-pronunciation-word:hover::after,
.ss-pronunciation-word:hover::before {
  opacity: 1;
  visibility: visible;
}

/* Show the same caret/tooltip when active */
.ss-pronunciation-word.is-active::after,
.ss-pronunciation-word.is-active::before {
  opacity: 1;
  visibility: visible;
}

/* Active word styling */
.ss-pronunciation-word.is-active {
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.25);
  position: relative;
}

.ss-pronunciation-word.is-active::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #e0e0e0;
}

/* Word detail panel */
.ss-pronunciation-word-detail {
  display: none;
  margin-top: 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px 16px;
}

.ss-pronunciation-word-detail.open {
  display: block;
}

.ss-word-detail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.ss-word-detail-item {
  width: calc(25% - 12px);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* First three items (Word, Pronunciation, Level) each 1/3 width */
.ss-word-detail-item:nth-child(-n + 3) {
  width: calc(33.333% - 11px);
}

.ss-word-detail-label {
  text-align: left;
  color: #7f8c8d;
  font-weight: 600;
  min-width: 110px;
}

.ss-word-detail-value {
  color: #2c3e50;
  font-weight: 600;
  text-align: left;
}

.ss-word-detail-item:nth-child(-n + 3) .ss-word-detail-label,
.ss-word-detail-item:nth-child(-n + 3) .ss-word-detail-value {
  text-align: center;
}
