/* ---------- Minimal White Theme (Theme A) ---------- */
:root{
  --bg:#f7f8fa;
  --panel:#ffffff;
  --muted:#6b7280;
  --accent:#0070ff;
  --accent-strong:#005ad1;
  --line:#e6e7ea;
  --highlight:#fff8d2;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background:var(--bg);
  color:#111827;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Layout */
.container{
  display:flex;
  min-height:100vh;
}

/* Sidebar */
.sidebar{
  width:240px;
  background:var(--panel);
  border-right:1px solid var(--line);
  padding:18px;
  height:100vh;
  position:sticky;
  top:0;
  overflow:auto;
}

.app-title{
  margin:0 0 12px 0;
  font-size:18px;
  text-align:center;
  padding-bottom:8px;
  border-bottom:1px solid var(--line);
}

/* Search box */
.search-box{
  width:100%;
  padding:8px 10px;
  border-radius:8px;
  border:1px solid var(--line);
  margin:12px 0 14px 0;
  font-size:14px;
  outline:none;
}
.search-box:focus{
  box-shadow:0 0 0 3px rgba(0,112,255,0.08);
  border-color:var(--accent-strong);
}

/* Chapter / lessons */
.chapter{
  margin-bottom:6px;
  border-bottom:1px solid rgba(0,0,0,0.04);
}

.chapter-title{
  padding:10px 8px;
  font-weight:600;
  cursor:pointer;
  position:relative;
  border-radius:6px;
  user-select:none;
  color:#111827;
  color: red;
  font-size:20px;
}
.chapter-title::after{
  content:"►";
  position:absolute;
  right:10px;
  transition:transform .18s ease, color .18s;
  color:var(--muted);
}
.chapter-title.open::after{
  content:"▼";
  color:var(--accent);
}
.lesson-list{
  list-style:none;
  margin:6px 0 12px 0;
  padding:0 4px;
  display:none;
  
}
.lesson-list li{
  padding:8px 10px;
  margin:4px 0;
  border-radius:8px;
  
  
  cursor:pointer;
  transition:background .15s, transform .06s;
  color:#111827;
  color: rgb(4, 89, 246);
  font-size:16px;
}


.lesson-list li:hover{ background:#f1f8ff }
.lesson-list li.active{ background:var(--accent); color:#fff }

/* MAIN content */
.content{
  flex:1;
  padding:0px 20px ;
  overflow:auto;
}

/* Topbar */
.topbar{ color: rgb(4, 89, 246);
  font-size:12px; display:flex; align-items:center; gap:12px; justify-content:space-between}

/* Player area */
.player-area{ max-width:900px; margin-bottom:12px }
audio{ width:100%; border-radius:8px; background:var(--panel) }
.time-display{ color:var(--muted); font-size:13px; margin:8px 0 12px 0 }

/* Repeat buttons */
.repeat-controls{ display:flex; gap:8px; max-width:420px }
.repeat-controls button{
  padding:8px 10px;
  border-radius:8px;
  border:1px solid var(--line);
  background:transparent;
  cursor:pointer;
  font-size:14px;
}
.repeat-controls button.active{
  background:linear-gradient(0deg,var(--accent),var(--accent-strong));
  color:white;
  border-color:transparent;
}

/* Transcript box */
.transcript-box{
  background:var(--panel);
  padding:16px;
  border-radius:10px;
  box-shadow:0 4px 12px rgba(15,23,42,0.03);
  border:1px solid var(--line);
  max-width:900px;
  min-height:320px;
  height:70vh;
  overflow:auto;
}

/* Lines */
.transcript-box .line{
  padding:8px 10px;
  margin:6px 0;
  border-radius:8px;
  cursor:pointer;
  transition:background .12s;
  font-size:24px;
  line-height:1.6;
}
.transcript-box .line:hover{ background:#fbfdff }
.transcript-box .line.active{
  background:var(--highlight);
  border-left:6px solid #ffb84d;
  padding-left:8px;
}

/* hint */
.hint{ color:var(--muted); font-style:italic }

/* Responsive */
@media (max-width:880px){
  .sidebar{ display:none }
  .container{ flex-direction:column }
  .content{ padding:14px }
  .transcript-box{ height:55vh }
}
