/* SKILL LAB — LECTURE HALL / synchronized lyric interface */
.sl-audio-editor,.sl-player-dialog {
  color:#efe2d0;background:#261b1c;border:1px solid rgba(217,171,110,.68);
  border-radius:18px;box-shadow:0 30px 110px rgba(12,5,7,.7);
}
.sl-audio-editor::backdrop,.sl-player-dialog::backdrop {background:rgba(14,8,11,.80);backdrop-filter:blur(7px);}
.sl-audio-editor {width:min(610px,94vw);max-height:90dvh;padding:0;overflow-y:auto;}
.sl-audio-editor form {margin:0;}
.sl-dialog-head {padding:24px 27px 17px;border-bottom:1px solid rgba(211,171,121,.25);display:flex;justify-content:space-between;align-items:flex-start;gap:16px;background:linear-gradient(135deg,#552c35,#28191c);}
.sl-dialog-head small,.sl-playing-meta small,.sl-lyrics-top small {color:#d4a87b;letter-spacing:.16em;font-size:10px;font-weight:700;}
.sl-dialog-head h2{font-family:Georgia,serif;color:#fff4e6;font-size:26px;margin:5px 0 0;}
.sl-close{font-size:30px;line-height:1;background:rgba(255,255,255,.06);border:1px solid rgba(229,192,145,.35);color:#fff0df;border-radius:50%;width:40px;height:40px;cursor:pointer;}
.sl-close:hover{background:rgba(209,164,115,.2);}
.sl-editor-body{padding:24px 27px;display:flex;flex-direction:column;gap:19px;}
.sl-editor-lesson{color:#e1d0bd;line-height:1.65;margin:0;padding:13px 16px;background:rgba(204,169,127,.09);border-left:3px solid #c7a278;}
.sl-editor-body label {font-size:15px;line-height:1.55;display:flex;flex-direction:column;gap:8px;color:#f5e7d6;font-weight:700;}
.sl-editor-body input[type="file"]{width:100%;padding:13px;background:rgba(245,228,203,.10);border:1px dashed rgba(217,186,147,.45);border-radius:10px;color:#e6d4bf;font:inherit;font-size:13px;}
.sl-existing{font-size:12px;line-height:1.6;color:#d7bb96;word-break:break-word;}
.sl-helper{font-size:12px;line-height:1.75;color:#c9b7a2;margin:0;}
.sl-message,.sl-audio-message{font-size:12px;line-height:1.65;min-height:20px;margin:0;}
.sl-dialog-actions{padding:16px 27px 22px;display:flex;gap:12px;justify-content:flex-end;border-top:1px solid rgba(226,190,143,.16);}
.sl-dialog-actions button{padding:11px 17px;border-radius:8px;background:rgba(245,231,211,.1);border:1px solid rgba(234,204,162,.3);color:#f7ebdc;cursor:pointer;font-weight:700;}
.sl-dialog-actions button.sl-gold-button{background:linear-gradient(135deg,#c8a67b,#90704b);border-color:#dac19c;color:#231719;}
.sl-dialog-actions button:disabled{opacity:.55;cursor:progress;}
.sl-player-dialog{width:min(1100px,96vw);max-width:none;height:min(790px,90dvh);max-height:none;overflow:hidden;padding:0;}
.sl-player-wrap{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(360px,1.15fr);height:100%;min-height:0;background:radial-gradient(circle at 24% 22%,rgba(112,55,73,.44),transparent 44%),linear-gradient(135deg,#42262c 0%,#1b1417 70%);}
.sl-player-left{position:relative;padding:44px 35px 30px;display:flex;flex-direction:column;align-items:center;gap:15px;min-height:0;}
.sl-player-exit{position:absolute;left:20px;top:18px;z-index:5;}
.sl-cover{aspect-ratio:1 / 1;max-height:45%;max-width:min(280px,75%);border:2px solid #b88e5b;padding:5px;border-radius:12px;background:#211618;box-shadow:0 22px 42px rgba(2,1,1,.38);}
.sl-cover img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 18%;border-radius:7px;}
.sl-playing-meta{text-align:center;max-width:340px;}
.sl-playing-meta h2{font-family:Georgia,"Noto Serif TC",serif;font-size:clamp(20px,2.3vw,29px);line-height:1.36;color:#f9eddf;margin:8px 0 5px;}
.sl-playing-meta p{color:#cdb7a0;font-size:13px;margin:0;line-height:1.5;}
.sl-audio-controls{width:100%;max-width:370px;margin-top:auto;}
.sl-seek-row{display:flex;align-items:center;gap:12px;color:#e0cbb2;font-variant-numeric:tabular-nums;font-size:12px;}
#slSeek{flex:1;min-width:30px;accent-color:#d1b18a;cursor:pointer;}
.sl-controls-row{display:flex;align-items:center;justify-content:center;gap:17px;margin-top:14px;}
.sl-controls-row button{color:#eedbc2;background:transparent;border:1px solid rgba(220,183,132,.24);border-radius:999px;font-size:13px;cursor:pointer;min-width:54px;height:40px;}
.sl-controls-row button.sl-play{background:#d5b587;color:#301b20;border:0;width:58px;height:58px;font-size:22px;box-shadow:0 7px 30px rgba(230,190,130,.23);}
#slPlaybackRate{background:#332128;color:#f4dfc4;border:1px solid #8e6b54;border-radius:8px;font-size:12px;padding:6px;}
.sl-audio-message{text-align:center;margin-top:13px;color:#cdb8a1;}
.sl-player-right{min-height:0;display:flex;flex-direction:column;border-left:1px solid rgba(216,171,110,.23);background:linear-gradient(180deg,rgba(18,10,13,.45),rgba(30,13,20,.22));}
.sl-lyrics-top{display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid rgba(211,171,121,.19);padding:30px 32px 20px;}
.sl-lyrics-top h3{font-size:24px;letter-spacing:.05em;color:#f6e6ce;margin:7px 0 0;}
.sl-lyrics-top > span{font-size:12px;color:#c1a88b;text-align:right;}
.sl-lyrics-scroll{overflow-y:auto;overscroll-behavior:contain;min-height:0;flex:1;padding:32px 36px 48px;scroll-behavior:smooth;scrollbar-color:#74505a #21191c;}
.sl-lyric-line{display:block;width:100%;text-align:left;font-size:clamp(19px,2.1vw,27px);font-weight:750;line-height:1.7;color:rgba(221,202,190,.38);border:0;background:transparent;padding:14px 5px;margin:6px 0;cursor:pointer;transition:color .25s ease,text-shadow .25s ease,transform .25s ease;}
.sl-lyric-line:hover{color:rgba(255,226,190,.75);}
.sl-lyric-line.sl-active{color:#fff8ee;text-shadow:0 0 22px rgba(250,218,172,.45);transform:translateX(6px);}
.material-actions .sl-lecture-btn,.unit .sl-lecture-btn,.char-tools .sl-lecture-btn{border:1px solid rgba(225,183,125,.56);color:#f8e1bc;background:linear-gradient(135deg,#6a3546,#382126);border-radius:9px;padding:8px 11px;cursor:pointer;font-size:12px;}
/* Audio management is a primary, actionable control on light parchment cards. */
.material-actions .sl-upload-btn{
  appearance:none;
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  min-height:40px;white-space:nowrap;
  padding:10px 15px;
  border:1.5px solid #d3a86e;
  border-radius:9px;
  background:#502634;
  background-image:linear-gradient(135deg,#653143 0%,#3f1c2a 100%);
  color:#fff7ea;
  font-size:13px;font-weight:750;letter-spacing:.025em;line-height:1.25;
  text-shadow:0 1px 1px rgba(0,0,0,.3);
  box-shadow:0 2px 8px rgba(52,22,30,.20),inset 0 1px 0 rgba(250,210,168,.12);
  cursor:pointer;
  opacity:1;
}
.material-actions .sl-upload-btn:hover{
  background:#693445;
  background-image:linear-gradient(135deg,#7b4153,#512436);
  border-color:#f0c58a;
  box-shadow:0 3px 13px rgba(52,22,30,.30);
}
.material-actions .sl-upload-btn:focus-visible{
  outline:3px solid #c38838;outline-offset:3px;
}
.material-actions .sl-upload-btn:active{transform:translateY(1px);}
.material-actions .sl-upload-btn:disabled{
  cursor:not-allowed;opacity:.55;background:#6a5b5a;border-color:#9c8a80;color:#f2e9e2;
}
.material-file .sl-voice-indicator{display:inline-block;margin-left:6px;color:#c99e69;font-weight:700;}
.unit .sl-lecture-btn{margin-top:7px;display:inline-block;font-size:12px;}
@media(max-width:720px){
 .sl-player-dialog{width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0;}
 .sl-player-wrap{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);height:100%;}
 .sl-player-left{padding:18px 20px 12px;display:grid;grid-template-columns:82px minmax(0,1fr);column-gap:15px;row-gap:9px;align-items:center;}
 .sl-cover{width:82px;height:82px;max-width:none;max-height:none;grid-row:1;grid-column:1;}
 .sl-playing-meta{text-align:left;grid-row:1;grid-column:2;padding-right:28px;}
 .sl-playing-meta h2{font-size:18px;margin:4px 0;}
 .sl-playing-meta p{font-size:11px;}
 .sl-playing-meta small{font-size:8px;}
 .sl-player-exit{right:8px;top:10px;left:auto;width:32px;height:32px;font-size:22px;}
 .sl-audio-controls{grid-column:1/-1;max-width:none;grid-row:2;}
 .sl-controls-row{margin-top:7px;gap:9px;}
 .sl-controls-row button.sl-play{width:43px;height:43px;font-size:18px;}
 .sl-controls-row button{height:36px;min-width:43px;}
 .sl-audio-message{margin-top:7px;font-size:10px;}
 .sl-player-right{border-left:0;border-top:1px solid rgba(220,180,120,.20);}
 .sl-lyrics-top{padding:13px 19px 9px;}
 .sl-lyrics-top h3{font-size:18px;}
 .sl-lyrics-top > span{font-size:10px;}
 .sl-lyrics-scroll{padding:15px 21px 70px;}
 .sl-lyric-line{font-size:22px;line-height:1.6;margin:8px 0;padding:11px 0;}
 .sl-editor-body{padding:18px;}
 .sl-dialog-head{padding:19px;}
 .sl-dialog-actions{padding:13px 18px;}
}
@media(prefers-reduced-motion:reduce){.sl-lyrics-scroll{scroll-behavior:auto}.sl-lyric-line{transition:none}}
