:root{
  --accent:#2E86AB; /* highlight color - adjust to match sample */
  --bg: #f7f9fb;
  --card: #ffffff;
  --muted: #8b9aa5;
  --thumb-size: 14px;
  --progress-height: 12px;
}

*{box-sizing:border-box;font-family:Inter,Arial,Helvetica,sans-serif}
body{margin:0;background:var(--bg);color:#123;border-radius:0}
.container{max-width:980px;margin:18px auto;padding:18px;background-color: white;}
.header{margin-bottom:12px}
.content {display: flex;flex-direction: column; gap: 16px; width: 100%; height: 100%;justify-content: space-between;}
.slide-area{
background: var(--card);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
    height: auto;
    overflow: auto;
}
.slide-area img{max-width:100%;border-radius:8px;object-fit:cover;height: -webkit-fill-available;}
.time-spent{position:fixed;top:12px;right:12px;background:rgba(0,0,0,0.06);padding:6px 10px;border-radius:10px;font-size:13px;z-index: 1000;background: #005bbb;color: white;}

.player-area {
    background: var(--card);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(16,24,40,0.06);
    height: auto;
    /* overflow: auto; */
}
.audio-controls{display:flex;align-items:center;gap:10px}
.control-btn{background:transparent;border:1px solid rgba(0,0,0,0.06);padding:10px;border-radius:8px;cursor:pointer;font-size:16px}
.nav-buttons{display:flex;justify-content:flex-end;margin-top:12px;gap:8px}
.nav{padding:8px 14px;border-radius:8px;border:1px solid rgba(0,0,0,0.08);cursor:pointer}

.progress-wrap{flex:1;display:flex;align-items:center;gap:8px;min-width:300px}
.time.small{font-size:13px;color:var(--muted);min-width:48px;text-align:center}

.progress-bar{
  position:relative;flex:1;height:var(--progress-height);background:linear-gradient(180deg,#e6eef6,#f5f9fc);border-radius:999px;overflow:hidden;cursor:pointer;
  display:flex;align-items:center;
}
.progress-played{height:100%;width:0%;background:linear-gradient(90deg,var(--accent),#4fb0e6);border-radius:999px;display:flex;align-items:center;transition:width 0.15s linear}
.thumb{width:var(--thumb-size);height:var(--thumb-size);border-radius:50%;background:white;border:3px solid var(--accent);position:relative;right:-6px;box-shadow:0 3px 6px rgba(0,0,0,0.12);transform:translateX(0);}

.volume-slider{width:120px}

.transcript{margin-top:12px;border-top:1px dashed #eee;padding-top:12px;max-height:150px;overflow:auto}
.transcript.hidden{display:none}
.transcript-list{display:flex;flex-direction:column;gap:6px;padding-right:6px}
.transcript-line{padding:8px;border-radius:8px;cursor:pointer}
.transcript-line.active{background:linear-gradient(90deg,var(--accent),#4fb0e6);color:white}
.transcript-line.inactive{background:transparent;color:#223;font-size:14px}
.course-time {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.08);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 1000;
}
.hidden { display: none; }
.nav-btn {
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin: 5px;
    background: #005bbb;
    color: white;
    transition: 0.3s;
}

.nav-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

/* Highlight the Finish button */
.finish-btn {
    background: #28a745 !important;
    font-weight: bold;
    padding: 14px 26px;
    font-size: 18px;
}

/* Center Finish button */
.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
}

#slide-video {
    max-width: 100%;
    width: 100%;
    border-radius: 8px;
    background: #fff;
    height: 100%;
    /* max-height: 500px; */
    /* object-fit: cover; */
}


/* Responsive Design */
@media (max-width: 768px) {
  .audio-controls {
    flex-wrap: wrap;
  }
  
  .progress-wrap {
    min-width: 100%;
    order: -1;
  }
  
  #slide-video {
    max-height: 300px;
  }
}

/* Fullscreen styles */
.slide-area:fullscreen {
  background: #000;
}

.slide-area:fullscreen #slide-video {
  max-height: 100vh;
  height: 100%;
}

.slide-area:fullscreen .audio-controls {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: white;
  max-width: 800px;
  z-index: 100;
}

.slide-area:fullscreen .nav-buttons {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 100;
}

.slide-area:fullscreen .course-time {
  background: rgba(0,0,0,0.8);
}