/* =====================================================
   GABAY STORY AUDIO
   Warm storybook narration + Kuwago read-aloud
   ===================================================== */

.gabay-audio-player{
  margin:22px 0;
  padding:20px;
  border:1px solid #d8e5df;
  border-radius:20px;
  background:
    linear-gradient(
      135deg,
      #fffaf0 0%,
      #f5fbf8 100%
    );
  box-shadow:0 10px 30px rgba(18,54,45,.08);
}

.gabay-audio-heading{
  display:flex;
  gap:13px;
  align-items:flex-start;
  margin-bottom:15px;
}

.gabay-audio-icon{
  display:grid;
  place-items:center;
  flex:0 0 46px;
  width:46px;
  height:46px;
  border-radius:50%;
  background:#00583f;
  color:white;
  font-size:22px;
}

.gabay-audio-heading h2{
  margin:0 0 4px;
  color:#12362d;
  font-size:1.2rem;
}

.gabay-audio-heading p{
  margin:0;
  color:#526b63;
  line-height:1.55;
}

.gabay-audio-controls{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin:14px 0;
}

.gabay-audio-btn{
  appearance:none;
  border:1px solid #c8d9d2;
  border-radius:999px;
  padding:10px 15px;
  background:#fff;
  color:#12362d;
  font:inherit;
  font-weight:700;
  cursor:pointer;
  transition:
    transform .15s ease,
    background .15s ease,
    border-color .15s ease;
}

.gabay-audio-btn:hover{
  transform:translateY(-1px);
  border-color:#08785a;
}

.gabay-audio-btn:focus-visible{
  outline:3px solid rgba(232,173,37,.45);
  outline-offset:3px;
}

.gabay-audio-btn.primary{
  background:#00583f;
  border-color:#00583f;
  color:#fff;
}

.gabay-audio-btn.gold{
  background:#e8ad25;
  border-color:#e8ad25;
  color:#12362d;
}

.gabay-audio-btn[disabled]{
  opacity:.45;
  cursor:not-allowed;
  transform:none;
}

.gabay-audio-options{
  display:grid;
  grid-template-columns:
    repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:15px;
}

.gabay-audio-field label{
  display:block;
  margin-bottom:5px;
  color:#12362d;
  font-weight:800;
  font-size:.9rem;
}

.gabay-audio-field select{
  width:100%;
  min-height:44px;
  border:1px solid #c8d9d2;
  border-radius:12px;
  padding:8px 10px;
  background:white;
  color:#12362d;
  font:inherit;
}

.gabay-audio-status{
  margin-top:13px;
  padding:11px 13px;
  border-radius:12px;
  background:rgba(0,88,63,.07);
  color:#294d43;
  line-height:1.5;
  font-size:.92rem;
}

.gabay-audio-note{
  margin:10px 0 0;
  color:#667a74;
  font-size:.82rem;
  line-height:1.5;
}

.gabay-story-narrating{
  position:relative;
  border-radius:12px;
  background:#fff5cf !important;
  box-shadow:0 0 0 4px rgba(232,173,37,.18);
  transition:
    background .25s ease,
    box-shadow .25s ease;
}

.gabay-kuwago-listen{
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin:5px 0 5px 8px;
  border:1px solid #d4dfda;
  border-radius:999px;
  padding:6px 10px;
  background:#fff;
  color:#00583f;
  font:inherit;
  font-size:.78rem;
  font-weight:800;
  cursor:pointer;
}

.gabay-kuwago-listen:hover{
  border-color:#08785a;
  background:#f4faf7;
}

.gabay-kuwago-listen:focus-visible{
  outline:3px solid rgba(232,173,37,.4);
  outline-offset:2px;
}

@media(max-width:640px){
  .gabay-audio-player{
    padding:16px;
  }

  .gabay-audio-options{
    grid-template-columns:1fr;
  }

  .gabay-audio-controls{
    display:grid;
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }

  .gabay-audio-btn{
    width:100%;
  }
}

@media(prefers-reduced-motion:reduce){
  .gabay-audio-btn,
  .gabay-story-narrating{
    transition:none;
  }

  .gabay-audio-btn:hover{
    transform:none;
  }
}
