/* ============================================
   PRACTICE TEST 4 — LISTENING PART 4
   Maple syrup
   ============================================ */

.pt4l4-player-bar {
  position: sticky; top: 0; z-index: 100;
  background: #12122a; border-bottom: 2px solid var(--gold);
  padding: 10px 20px; display: flex; align-items: center; gap: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5); margin: -24px -24px 20px -24px;
}
.pt4l4-player-label { font-size: .88rem; font-weight: 700; color: var(--gold); white-space: nowrap; flex-shrink: 0; }
.pt4l4-play-btn {
  background: var(--gold); color: #111; border: none; border-radius: 50%;
  width: 40px; height: 40px; font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .15s, transform .1s;
}
.pt4l4-play-btn:hover { background: #f5a623; transform: scale(1.05); }
.pt4l4-seek { flex: 1; accent-color: var(--gold); cursor: pointer; }
.pt4l4-time { font-size: .82rem; color: rgba(255,255,255,0.55); white-space: nowrap; min-width: 90px; text-align: right; font-variant-numeric: tabular-nums; }

.pt4l4-inst-header { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 14px 20px; margin-bottom: 18px; }
.pt4l4-inst-label { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--gold); margin-bottom: 4px; }
.pt4l4-inst-text  { font-size: 1rem; color: rgba(255,255,255,0.88); line-height: 1.6; margin-bottom: 6px; }
.pt4l4-inst-tips  { font-size: .85rem; color: rgba(255,255,255,0.45); font-style: italic; }

.pt4l4-score-banner {
  display: flex; align-items: center; gap: 16px;
  background: rgba(251,191,36,0.08); border: 1.5px solid rgba(251,191,36,0.3);
  border-radius: 12px; padding: 16px 22px; margin-bottom: 20px; flex-wrap: wrap;
}
.pt4l4-score-big   { font-size: 2.6rem; font-weight: 900; color: var(--gold); line-height: 1; }
.pt4l4-score-denom { font-size: 1.4rem; color: rgba(255,255,255,0.4); }
.pt4l4-score-label { font-size: 1rem; color: rgba(255,255,255,0.8); flex: 1; }
.pt4l4-exp-hint    { font-size: .85rem; color: rgba(255,255,255,0.5); font-style: italic; width: 100%; }

.pt4l4-content-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  align-items: stretch; position: relative;
}
@media (max-width: 900px) { .pt4l4-content-wrap { grid-template-columns: 1fr; } }
.pt4l4-left-col  { min-width: 0; }
.pt4l4-right-col {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 0; min-width: 0; overflow: hidden; position: relative;
}

.pt4l4-exam-box {
  background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.88);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 10px; padding: 26px 30px;
  font-family: 'Georgia', serif; line-height: 1.9; margin-bottom: 20px;
}
.pt4l4-exam-title {
  font-size: 1.15rem; font-weight: 700; text-align: center; margin-bottom: 18px;
  font-family: 'Inter', sans-serif; color: var(--gold);
  border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 10px;
}
.pt4l4-section-head {
  font-size: 1rem; font-weight: 700; font-family: 'Inter', sans-serif;
  margin: 16px 0 8px; color: rgba(255,255,255,0.95); text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.3);
}
.pt4l4-bullets { list-style: none; padding: 0; margin: 0 0 4px 16px; }
.pt4l4-bullets li { font-size: 1rem; line-height: 2; position: relative; padding-left: 16px; color: rgba(255,255,255,0.82); }
.pt4l4-bullets li::before { content: '•'; position: absolute; left: 0; color: rgba(255,255,255,0.4); }

.pt4l4-blank {
  display: inline-block; border: none; border-bottom: 2px solid rgba(255,255,255,0.35);
  background: transparent; width: 120px; font-size: 1rem;
  font-family: 'Georgia', serif; color: rgba(255,255,255,0.9); padding: 1px 4px;
  outline: none; vertical-align: baseline; margin: 0 3px; transition: border-color .15s;
}
.pt4l4-blank:focus    { border-bottom-color: #60a5fa; }
.pt4l4-blank:disabled { cursor: not-allowed; opacity: 1; }
.pt4l4-blank-ok  { border-bottom-color: #4ade80 !important; color: #4ade80; font-weight: 700; }
.pt4l4-blank-err { border-bottom-color: #f87171 !important; color: #f87171; }
.pt4l4-q-num     { font-size: .78rem; font-weight: 700; color: var(--gold); vertical-align: super; margin-right: 1px; font-family: 'Inter', sans-serif; }
.pt4l4-correct-ans { color: #4ade80; font-weight: 700; font-size: .88rem; margin-left: 4px; font-family: 'Inter', sans-serif; }

.pt4l4-why-btn {
  background: rgba(251,191,36,0.12); border: 1px solid rgba(251,191,36,0.4);
  color: var(--gold); border-radius: 6px; padding: 2px 9px;
  font-size: .78rem; font-weight: 700; cursor: pointer;
  transition: background .15s; vertical-align: middle; margin-left: 4px;
}
.pt4l4-why-btn:hover { background: rgba(251,191,36,0.25); }

.pt4l4-script-locked {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px; padding: 40px 20px; text-align: center; min-height: 200px;
}
.pt4l4-locked-icon  { font-size: 2.4rem; opacity: .35; }
.pt4l4-locked-title { font-size: 1.1rem; font-weight: 700; color: rgba(255,255,255,0.5); }
.pt4l4-locked-msg   { font-size: .9rem; color: rgba(255,255,255,0.35); line-height: 1.6; max-width: 220px; }
.pt4l4-show-script-btn {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px; padding: 9px 18px; color: rgba(255,255,255,0.55);
  font-size: .9rem; cursor: pointer; transition: background .15s;
}
.pt4l4-show-script-btn:hover { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8); }
.pt4l4-script-title {
  font-size: 1rem; font-weight: 700; color: var(--gold);
  padding: 16px 22px 10px; position: relative; z-index: 2;
  background: rgba(14,14,28,0.97); border-bottom: 1px solid rgba(255,255,255,0.07);
}
.pt4l4-transcript-card { font-size: .97rem; line-height: 2; color: rgba(255,255,255,0.82); padding: 14px 22px 22px; transition: transform 0.45s cubic-bezier(0.4,0,0.2,1); }
.pt4l4-transcript-card p { margin: 0 0 10px; }

.pt4l4-ctx { background: rgba(251,191,36,0.12); border-radius: 4px; padding: 1px 3px; border-bottom: 2px solid rgba(251,191,36,0.35); transition: background .3s; }
.pt4l4-ctx.active { background: rgba(245,200,66,0.3); border-bottom-color: #f5c842; animation: pt4l4-pulse 1.4s ease-in-out; }
@keyframes pt4l4-pulse { 0%,100%{background:rgba(245,200,66,0.22);} 50%{background:rgba(245,200,66,0.5);} }
.pt4l4-ans { color: var(--gold); font-weight: 700; }

.pt4l4-exp-box {
  background: rgba(251,191,36,0.07); border: 1px solid rgba(251,191,36,0.3);
  border-radius: 8px; padding: 10px 14px; margin: 8px 0 6px;
  font-size: .9rem; color: rgba(255,255,255,0.85); line-height: 1.6; font-family: 'Inter', sans-serif;
}
.pt4l4-arrow-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; overflow: visible; }

.pt4l4-toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1e1e2e; border: 1px solid rgba(251,191,36,0.4); border-radius: 10px;
  padding: 12px 20px; font-size: .9rem; color: rgba(255,255,255,0.85);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5); z-index: 1000;
  opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; max-width: 380px; text-align: center;
}
.pt4l4-toast.pt4l4-toast-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
