/* ============================================
   PRACTICE TEST 4 — LISTENING PART 1
   ============================================ */

.pt4l1-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;
}
.pt4l1-player-label { font-size: .88rem; font-weight: 700; color: var(--gold); white-space: nowrap; flex-shrink: 0; }
.pt4l1-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;
}
.pt4l1-play-btn:hover { background: #f5a623; transform: scale(1.05); }
.pt4l1-seek { flex: 1; accent-color: var(--gold); cursor: pointer; }
.pt4l1-time { font-size: .82rem; color: rgba(255,255,255,0.55); white-space: nowrap; min-width: 90px; text-align: right; }

.pt4l1-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; }
.pt4l1-inst-label { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--gold); margin-bottom: 4px; }
.pt4l1-inst-text  { font-size: 1rem; color: rgba(255,255,255,0.88); line-height: 1.6; margin-bottom: 6px; }
.pt4l1-inst-tips  { font-size: .85rem; color: rgba(255,255,255,0.45); font-style: italic; }

.pt4l1-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;
}
.pt4l1-score-big   { font-size: 2.6rem; font-weight: 900; color: var(--gold); line-height: 1; }
.pt4l1-score-denom { font-size: 1.4rem; color: rgba(255,255,255,0.4); }
.pt4l1-score-label { font-size: 1rem; color: rgba(255,255,255,0.8); flex: 1; }
.pt4l1-exp-hint    { font-size: .85rem; color: rgba(255,255,255,0.5); font-style: italic; width: 100%; }

.pt4l1-content-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  align-items: stretch; position: relative;
}
@media (max-width: 900px) { .pt4l1-content-wrap { grid-template-columns: 1fr; } }
.pt4l1-left-col  { min-width: 0; }
.pt4l1-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;
}

/* ── Notes box ── */
.pt4l1-notes-box {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 20px 24px;
}
.pt4l1-notes-title {
  font-size: 1.05rem; font-weight: 700; color: var(--gold);
  border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; margin-bottom: 14px;
}
.pt4l1-notes-section {
  font-size: .88rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: rgba(255,255,255,0.45); margin: 16px 0 8px;
}
.pt4l1-notes-item {
  font-size: .97rem; color: rgba(255,255,255,0.7);
  padding: 4px 0 4px 18px; line-height: 1.6;
}

/* ── Question row ── */
.pt4l1-q-row {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 6px 0; border-bottom: 1px dashed rgba(255,255,255,0.06);
}
.pt4l1-q-num {
  min-width: 26px; height: 26px; border-radius: 50%; background: #1a6ef5;
  color: #fff; font-size: .8rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pt4l1-q-label { font-size: .97rem; color: rgba(255,255,255,0.82); line-height: 1.7; flex: 1; }

/* ── Blank input ── */
.pt4l1-blank {
  background: rgba(255,255,255,0.07); border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 6px; padding: 3px 10px; color: rgba(255,255,255,0.9);
  font-size: .95rem; width: 120px; outline: none;
  transition: border-color .15s, background .15s;
}
.pt4l1-blank:focus { border-color: var(--gold); background: rgba(251,191,36,0.06); }
.pt4l1-blank.blank-ok  { border-color: #4ade80; background: rgba(74,222,128,.1); color: #4ade80; font-weight: 700; }
.pt4l1-blank.blank-err { border-color: #f87171; background: rgba(248,113,113,.08); color: #f87171; }
.pt4l1-correct-ans { font-size: .85rem; color: #4ade80; font-weight: 700; margin-left: 6px; }

/* ── Why button ── */
.pt4l1-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; flex-shrink: 0;
}
.pt4l1-why-btn:hover { background: rgba(251,191,36,0.25); }

/* ── Script panel ── */
.pt4l1-script-locked {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px; padding: 40px 20px; text-align: center; min-height: 200px;
}
.pt4l1-locked-icon  { font-size: 2.4rem; opacity: .35; }
.pt4l1-locked-title { font-size: 1.1rem; font-weight: 700; color: rgba(255,255,255,0.5); }
.pt4l1-locked-msg   { font-size: .9rem; color: rgba(255,255,255,0.35); line-height: 1.6; max-width: 220px; }
.pt4l1-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;
}
.pt4l1-show-script-btn:hover { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8); }
.pt4l1-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);
}
.pt4l1-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); }
.pt4l1-transcript-card p { margin: 0 0 10px; }

/* ── Context highlight ── */
.pt4l1-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; }
.pt4l1-ctx.active { background: rgba(245,200,66,0.3); border-bottom-color: #f5c842; animation: pt4l1-pulse 1.4s ease-in-out; }
@keyframes pt4l1-pulse { 0%,100%{background:rgba(245,200,66,0.22);} 50%{background:rgba(245,200,66,0.5);} }
.pt4l1-ans { color: var(--gold); font-weight: 700; }

/* ── Exp box + arrow ── */
.pt4l1-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;
}
.pt4l1-arrow-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; overflow: visible; }

/* ── Toast ── */
.pt4l1-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;
}
.pt4l1-toast.pt4l1-toast-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
