/* ============================================
   PRACTICE TEST 2 — LISTENING PART 1
   ============================================ */

/* ── Sticky audio player ── */
.pt2l1-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;
}
.pt2l1-player-label { font-size: .88rem; font-weight: 700; color: var(--gold); white-space: nowrap; flex-shrink: 0; }
.pt2l1-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;
}
.pt2l1-play-btn:hover { background: #f5a623; transform: scale(1.05); }
.pt2l1-seek { flex: 1; accent-color: var(--gold); cursor: pointer; }
.pt2l1-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; }

/* ── Instruction header ── */
.pt2l1-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; }
.pt2l1-inst-label { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--gold); margin-bottom: 4px; }
.pt2l1-inst-text  { font-size: 1rem; color: rgba(255,255,255,0.88); line-height: 1.6; margin-bottom: 6px; }
.pt2l1-inst-tips  { font-size: .85rem; color: rgba(255,255,255,0.45); font-style: italic; }

/* ── Score banner ── */
.pt2l1-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;
}
.pt2l1-score-big   { font-size: 2.6rem; font-weight: 900; color: var(--gold); line-height: 1; }
.pt2l1-score-denom { font-size: 1.4rem; color: rgba(255,255,255,0.4); }
.pt2l1-score-label { font-size: 1rem; color: rgba(255,255,255,0.8); flex: 1; }
.pt2l1-exp-hint    { font-size: .85rem; color: rgba(255,255,255,0.5); font-style: italic; width: 100%; }

/* ── Two-column layout ── */
.pt2l1-content-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  align-items: stretch; position: relative;
}
@media (max-width: 900px) {
  .pt2l1-content-wrap { grid-template-columns: 1fr; }
}
.pt2l1-left-col  { min-width: 0; }
.pt2l1-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;
}

/* ── Explanation box ── */
.pt2l1-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;
}
/* ── Dotted arrow SVG ── */
.pt2l1-arrow-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; overflow: visible; }

/* ── Exam box (dark mode) ── */
.pt2l1-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;
}
.pt2l1-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;
}
.pt2l1-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);
}
.pt2l1-sub-head {
  font-size: .97rem; font-weight: 700; font-style: italic;
  margin: 12px 0 6px; font-family: 'Inter', sans-serif; color: rgba(255,255,255,0.75);
}
.pt2l1-bullets { list-style: none; padding: 0; margin: 0 0 4px 16px; }
.pt2l1-bullets li { font-size: 1rem; line-height: 2; position: relative; padding-left: 16px; color: rgba(255,255,255,0.82); }
.pt2l1-bullets li::before { content: '•'; position: absolute; left: 0; color: rgba(255,255,255,0.4); }

/* ── Table (Q8-10) ── */
.pt2l1-table-wrap { margin-top: 14px; overflow-x: auto; }
.pt2l1-table {
  width: 100%; border-collapse: collapse; font-family: 'Georgia', serif;
  font-size: .97rem; color: rgba(255,255,255,0.85);
}
.pt2l1-table th {
  background: rgba(251,191,36,0.12); color: var(--gold); font-family: 'Inter', sans-serif;
  font-size: .85rem; font-weight: 700; text-align: left;
  padding: 10px 14px; border-bottom: 1.5px solid rgba(255,255,255,0.15);
}
.pt2l1-table td { padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.07); vertical-align: middle; }
.pt2l1-table tr:last-child td { border-bottom: none; }
.pt2l1-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ── Inline blank ── */
.pt2l1-blank {
  display: inline-block; border: none; border-bottom: 2px solid rgba(255,255,255,0.35);
  background: transparent; width: 110px; 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;
}
.pt2l1-blank:focus    { border-bottom-color: #60a5fa; }
.pt2l1-blank:disabled { cursor: not-allowed; opacity: 1; }
.pt2l1-blank-ok  { border-bottom-color: #4ade80 !important; color: #4ade80; font-weight: 700; }
.pt2l1-blank-err { border-bottom-color: #f87171 !important; color: #f87171; }
.pt2l1-q-num     { font-size: .78rem; font-weight: 700; color: var(--gold); vertical-align: super; margin-right: 1px; font-family: 'Inter', sans-serif; }
.pt2l1-correct-ans { color: #4ade80; font-weight: 700; font-size: .88rem; margin-left: 4px; font-family: 'Inter', sans-serif; }

/* ── Check / Reset buttons ── */
.pt2l1-btn-row { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.pt2l1-check-btn {
  background: var(--gold); color: #111; border: none; border-radius: 8px;
  padding: 11px 28px; font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: background .15s, transform .1s;
}
.pt2l1-check-btn:hover { background: #f5a623; transform: scale(1.02); }
.pt2l1-reset-btn {
  background: transparent; color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 8px;
  padding: 11px 22px; font-size: 1rem; cursor: pointer;
  transition: color .15s, border-color .15s;
}
.pt2l1-reset-btn:hover { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.45); }

/* ── Why? button ── */
.pt2l1-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: .8rem; font-weight: 700; cursor: pointer;
  transition: background .15s; vertical-align: middle; margin-left: 6px;
}
.pt2l1-why-btn:hover { background: rgba(251,191,36,0.25); }

/* ── Script panel ── */
.pt2l1-script-locked {
  text-align: center; padding: 40px 20px; color: rgba(255,255,255,0.4); font-size: .95rem;
}
.pt2l1-script-locked button {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7); border-radius: 8px; padding: 10px 22px;
  font-size: .95rem; cursor: pointer; margin-top: 10px; display: block; margin: 10px auto 0;
  transition: background .15s;
}
.pt2l1-script-locked button:hover { background: rgba(255,255,255,0.12); }
.pt2l1-script-warn { color: #f87171; font-size: .9rem; margin-top: 10px; text-align: center; }
.pt2l1-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);
}
.pt2l1-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);
}
.pt2l1-transcript-card p { margin: 0 0 10px; }
.pt2l1-transcript-card strong:not(.pt2l1-ans) { color: rgba(255,255,255,0.95); }

/* ── Context highlight ── */
.pt2l1-ctx {
  background: rgba(251,191,36,0.13); border-radius: 4px; padding: 1px 3px;
  transition: background .25s, box-shadow .25s;
}
.pt2l1-ctx.active {
  background: rgba(251,191,36,0.28);
  box-shadow: 0 0 0 2px rgba(251,191,36,0.5);
  animation: pt2l1-pulse 0.6s ease-out;
}
@keyframes pt2l1-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(251,191,36,0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(251,191,36,0); }
  100% { box-shadow: 0 0 0 2px rgba(251,191,36,0.5); }
}
.pt2l1-ans { color: var(--gold); font-weight: 700; }

/* ── Popup (legacy, kept for safety) ── */
.pt2l1-popup-inner {
  background: #1a1a2e; border: 1.5px solid rgba(251,191,36,0.5);
  border-radius: 10px; padding: 14px 16px; max-width: 280px;
  font-size: .88rem; line-height: 1.6; color: rgba(255,255,255,0.88);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6); position: relative;
}
.pt2l1-popup-close {
  position: absolute; top: 6px; right: 8px; background: none; border: none;
  color: rgba(255,255,255,0.4); cursor: pointer; font-size: .85rem;
}
