/* ============================================
   PRACTICE TEST 1 — LISTENING PART 2
   ============================================ */

.pt1l2-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;
}
.pt1l2-player-label { font-size: .88rem; font-weight: 700; color: var(--gold); white-space: nowrap; flex-shrink: 0; }
.pt1l2-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;
}
.pt1l2-play-btn:hover { background: #f5a623; transform: scale(1.05); }
.pt1l2-seek { flex: 1; accent-color: var(--gold); cursor: pointer; }
.pt1l2-time { font-size: .82rem; color: rgba(255,255,255,0.55); white-space: nowrap; min-width: 90px; text-align: right; }

.pt1l2-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; }
.pt1l2-inst-label { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--gold); margin-bottom: 4px; }
.pt1l2-inst-text  { font-size: 1rem; color: rgba(255,255,255,0.88); line-height: 1.6; margin-bottom: 6px; }
.pt1l2-inst-tips  { font-size: .85rem; color: rgba(255,255,255,0.45); font-style: italic; }

.pt1l2-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;
}
.pt1l2-score-big   { font-size: 2.6rem; font-weight: 900; color: var(--gold); line-height: 1; }
.pt1l2-score-denom { font-size: 1.4rem; color: rgba(255,255,255,0.4); }
.pt1l2-score-label { font-size: 1rem; color: rgba(255,255,255,0.8); flex: 1; }
.pt1l2-exp-hint    { font-size: .85rem; color: rgba(255,255,255,0.5); font-style: italic; width: 100%; }

.pt1l2-content-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  align-items: stretch; position: relative;
}
@media (max-width: 900px) {
  .pt1l2-content-wrap { grid-template-columns: 1fr; }
}
.pt1l2-left-col  { min-width: 0; }
.pt1l2-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;
}

.pt1l2-script-locked {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px; padding: 40px 20px; text-align: center; min-height: 200px;
}
.pt1l2-locked-icon  { font-size: 2.4rem; opacity: .35; }
.pt1l2-locked-title { font-size: 1.1rem; font-weight: 700; color: rgba(255,255,255,0.5); }
.pt1l2-locked-msg   { font-size: .9rem; color: rgba(255,255,255,0.35); line-height: 1.6; max-width: 220px; }
.pt1l2-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, color .15s;
}
.pt1l2-show-script-btn:hover { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8); }

.pt1l2-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;
}
.pt1l2-toast.pt1l2-toast-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

.pt1l2-section-head { font-size: 1rem; font-weight: 700; color: var(--gold); margin: 24px 0 12px; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 8px; }

.pt1l2-opts { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 0; }
.pt1l2-opt {
  display: flex; align-items: center; gap: 8px;
  border: 2px solid rgba(255,255,255,0.15); border-radius: 8px; padding: 8px 14px;
  cursor: pointer; font-size: 1rem; color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.04); transition: border-color .15s, background .15s; user-select: none;
}
.pt1l2-opt:hover { border-color: var(--gold); }
.pt1l2-opt.selected  { border-color: var(--gold); background: rgba(251,191,36,0.1); color: var(--gold); font-weight: 700; }
.pt1l2-opt.opt-ok    { border-color: var(--success); background: rgba(72,199,116,.1); color: #4ade80; font-weight: 700; }
.pt1l2-opt.opt-err   { border-color: var(--error); background: rgba(255,100,100,.08); color: #f87171; }
.pt1l2-opt.opt-correct { border-color: var(--success); background: rgba(72,199,116,.08); color: #4ade80; }
.pt1l2-opt-letter { font-weight: 800; min-width: 18px; }

.pt1l2-q-block { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 16px 20px; margin-bottom: 14px; }
.pt1l2-q-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 4px; flex-wrap: wrap; }
.pt1l2-q-num { min-width: 30px; height: 30px; border-radius: 50%; background: #1a6ef5; color: #fff; font-size: .85rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pt1l2-q-text { font-size: 1rem; color: rgba(255,255,255,0.88); line-height: 1.6; flex: 1; }

.pt1l2-group-box { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; }
.pt1l2-group-nums { font-size: .82rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pt1l2-group-inst { font-size: .9rem; color: rgba(255,255,255,0.55); font-style: italic; margin-bottom: 8px; }
.pt1l2-group-q { font-size: 1rem; color: rgba(255,255,255,0.88); line-height: 1.6; margin-bottom: 12px; }
.pt1l2-group-opts { display: flex; flex-direction: column; gap: 8px; }
.pt1l2-group-opt {
  display: flex; align-items: flex-start; gap: 10px;
  border: 2px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 10px 14px;
  cursor: pointer; font-size: .97rem; color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.03); transition: border-color .15s, background .15s; user-select: none;
}
.pt1l2-group-opt:hover { border-color: var(--gold); }
.pt1l2-group-opt.selected { border-color: var(--gold); background: rgba(251,191,36,0.08); color: var(--gold); font-weight: 600; }
.pt1l2-group-opt.opt-ok  { border-color: var(--success); background: rgba(72,199,116,.08); color: #4ade80; font-weight: 700; }
.pt1l2-group-opt.opt-err { border-color: var(--error); background: rgba(255,100,100,.07); color: #f87171; }
.pt1l2-group-opt-letter { font-weight: 800; min-width: 20px; flex-shrink: 0; }

.pt1l2-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;
}
.pt1l2-why-btn:hover { background: rgba(251,191,36,0.25); }

.pt1l2-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);
}
.pt1l2-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); }
.pt1l2-transcript-card p { margin: 0 0 10px; }
.pt1l2-transcript-card strong:not(.pt1l2-ans) { color: rgba(255,255,255,0.95); }
/* ── Explanation box ── */
.pt1l2-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;
}
.pt1l2-arrow-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; overflow: visible; }

.pt1l2-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;
}
.pt1l2-ctx.active {
  background: rgba(245,200,66,0.3); border-bottom-color: #f5c842;
  animation: pt1l2-ctx-pulse 1.4s ease-in-out;
}
@keyframes pt1l2-ctx-pulse {
  0%,100% { background: rgba(245,200,66,0.22); }
  50%      { background: rgba(245,200,66,0.5); }
}
.pt1l2-ans { color: var(--gold); font-weight: 700; }

.pt1l2-arrow-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 10; overflow: visible; }
.pt1l2-exp-popup { position: absolute; z-index: 20; }
.pt1l2-popup-inner {
  background: var(--bg-card-2, #1e1e2e); border: 1.5px solid var(--gold);
  border-radius: 10px; padding: 12px 36px 12px 14px; max-width: 270px;
  font-size: .9rem; line-height: 1.6; box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  color: rgba(255,255,255,0.88); position: relative;
}
.pt1l2-popup-close { position: absolute; top: 6px; right: 8px; background: none; border: none; cursor: pointer; color: rgba(255,255,255,0.4); font-size: .8rem; }
.pt1l2-popup-close:hover { color: rgba(255,255,255,0.8); }
