/* ============================================
   PRACTICE TEST 2 — LISTENING PART 2
   ============================================ */

.pt2l2-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;
}
.pt2l2-player-label { font-size: .88rem; font-weight: 700; color: var(--gold); white-space: nowrap; flex-shrink: 0; }
.pt2l2-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;
}
.pt2l2-play-btn:hover { background: #f5a623; transform: scale(1.05); }
.pt2l2-seek { flex: 1; accent-color: var(--gold); cursor: pointer; }
.pt2l2-time { font-size: .82rem; color: rgba(255,255,255,0.55); white-space: nowrap; min-width: 90px; text-align: right; }

.pt2l2-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; }
.pt2l2-inst-label { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--gold); margin-bottom: 4px; }
.pt2l2-inst-text  { font-size: 1rem; color: rgba(255,255,255,0.88); line-height: 1.6; margin-bottom: 6px; }
.pt2l2-inst-tips  { font-size: .85rem; color: rgba(255,255,255,0.45); font-style: italic; }

.pt2l2-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;
}
.pt2l2-score-big   { font-size: 2.6rem; font-weight: 900; color: var(--gold); line-height: 1; }
.pt2l2-score-denom { font-size: 1.4rem; color: rgba(255,255,255,0.4); }
.pt2l2-score-label { font-size: 1rem; color: rgba(255,255,255,0.8); flex: 1; }
.pt2l2-exp-hint    { font-size: .85rem; color: rgba(255,255,255,0.5); font-style: italic; width: 100%; }

.pt2l2-content-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  align-items: stretch; position: relative;
}
@media (max-width: 900px) { .pt2l2-content-wrap { grid-template-columns: 1fr; } }
.pt2l2-left-col  { min-width: 0; }
.pt2l2-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;
}

/* ── MC questions ── */
.pt2l2-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; }
.pt2l2-q-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 4px; flex-wrap: wrap; }
.pt2l2-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; }
.pt2l2-q-text { font-size: 1rem; color: rgba(255,255,255,0.88); line-height: 1.6; flex: 1; }

.pt2l2-opts { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 0; }
.pt2l2-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;
}
.pt2l2-opt:hover         { border-color: var(--gold); }
.pt2l2-opt.selected      { border-color: var(--gold); background: rgba(251,191,36,0.1); color: var(--gold); font-weight: 700; }
.pt2l2-opt.opt-ok        { border-color: #4ade80; background: rgba(74,222,128,.1); color: #4ade80; font-weight: 700; }
.pt2l2-opt.opt-err       { border-color: #f87171; background: rgba(248,113,113,.08); color: #f87171; }
.pt2l2-opt.opt-correct   { border-color: #4ade80; background: rgba(74,222,128,.08); color: #4ade80; }
.pt2l2-opt-letter        { font-weight: 800; min-width: 18px; }

/* ── Section head ── */
.pt2l2-section-head { font-size: 1rem; font-weight: 700; color: var(--gold); margin: 24px 0 10px; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 8px; }

/* ── Activity legend ── */
.pt2l2-act-legend {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-size: .93rem;
  color: rgba(255,255,255,0.78);
}
.pt2l2-act-opt strong { color: var(--gold); margin-right: 4px; }

/* ── Matching rows Q15-20 ── */
.pt2l2-match-row { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 14px 18px; margin-bottom: 12px; }
.pt2l2-match-loc { font-size: 1rem; font-weight: 700; color: rgba(255,255,255,0.9); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; text-transform: capitalize; }
.pt2l2-match-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.pt2l2-match-opt {
  display: flex; align-items: center; gap: 6px;
  border: 2px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 7px 12px;
  cursor: pointer; font-size: .93rem; color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.03); transition: border-color .15s, background .15s; user-select: none;
}
.pt2l2-match-opt:hover       { border-color: var(--gold); }
.pt2l2-match-opt.selected    { border-color: var(--gold); background: rgba(251,191,36,0.1); color: var(--gold); font-weight: 700; }
.pt2l2-match-opt.opt-ok      { border-color: #4ade80; background: rgba(74,222,128,.1); color: #4ade80; font-weight: 700; }
.pt2l2-match-opt.opt-err     { border-color: #f87171; background: rgba(248,113,113,.08); color: #f87171; }
.pt2l2-match-opt.opt-correct { border-color: #4ade80; background: rgba(74,222,128,.07); color: #4ade80; }
.pt2l2-match-letter          { font-weight: 800; min-width: 16px; }

/* ── Why button ── */
.pt2l2-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;
}
.pt2l2-why-btn:hover { background: rgba(251,191,36,0.25); }

/* ── Script panel ── */
.pt2l2-script-locked {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px; padding: 40px 20px; text-align: center; min-height: 200px;
}
.pt2l2-locked-icon  { font-size: 2.4rem; opacity: .35; }
.pt2l2-locked-title { font-size: 1.1rem; font-weight: 700; color: rgba(255,255,255,0.5); }
.pt2l2-locked-msg   { font-size: .9rem; color: rgba(255,255,255,0.35); line-height: 1.6; max-width: 220px; }
.pt2l2-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;
}
.pt2l2-show-script-btn:hover { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8); }
.pt2l2-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);
}
.pt2l2-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); }
.pt2l2-transcript-card p { margin: 0 0 10px; }
.pt2l2-transcript-card strong:not(.pt2l2-ans) { color: rgba(255,255,255,0.95); }

/* ── Context highlight ── */
.pt2l2-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; }
.pt2l2-ctx.active { background: rgba(245,200,66,0.3); border-bottom-color: #f5c842; animation: pt2l2-pulse 1.4s ease-in-out; }
@keyframes pt2l2-pulse { 0%,100%{background:rgba(245,200,66,0.22);} 50%{background:rgba(245,200,66,0.5);} }
.pt2l2-ans { color: var(--gold); font-weight: 700; }

/* ── Exp box + arrow ── */
.pt2l2-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;
}
.pt2l2-arrow-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; overflow: visible; }

/* ── Toast ── */
.pt2l2-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;
}
.pt2l2-toast.pt2l2-toast-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
