:root {
  --bg:#0b0b10;
  --panel:rgba(25,25,32,.9);
  --line:rgba(255,255,255,.1);
  --text:#f7f7fa;
  --muted:#a6a6b1;
  --accent:#ff375f;
  --accent2:#ff7a97;
  --green:#54e0a4;
}

*{box-sizing:border-box}
html,body{min-height:100%}
body{
  margin:0;color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",sans-serif;
  background:
    radial-gradient(circle at 15% 0%,rgba(255,55,95,.16),transparent 32%),
    radial-gradient(circle at 90% 10%,rgba(102,76,255,.15),transparent 30%),
    var(--bg);
  -webkit-font-smoothing:antialiased;
}
button{font:inherit}
.shell{
  width:min(960px,100%);
  margin:auto;
  padding:clamp(22px,5vw,50px) 18px 35px;
}
.hero{text-align:center;padding:10px 0 30px}
.top-bar{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin:0 0 4px;
}
.eyebrow,.step,.answer-tag,.answer-label,.small-label{
  font-size:11px;font-weight:900;letter-spacing:.17em;
}
.eyebrow,.step,.answer-label{color:var(--accent2)}
.hero h1{
  font-size:clamp(45px,9vw,78px);
  line-height:.94;letter-spacing:-.06em;margin:9px 0;
}
.hero h1 span{color:var(--accent)}
.hero p{margin:15px 0 0;color:var(--muted);font-size:17px}
.panel{
  border:1px solid var(--line);
  background:var(--panel);
  border-radius:28px;
  padding:clamp(20px,5vw,38px);
  box-shadow:0 25px 80px rgba(0,0,0,.35);
  backdrop-filter:blur(20px);
}
.panel-head,.filter-head,.quiz-head{
  display:flex;justify-content:space-between;align-items:center;gap:16px
}
h2{letter-spacing:-.035em}
.panel-head h2{margin:5px 0 0;font-size:28px}
.source-badge{
  border:1px solid var(--line);background:rgba(255,255,255,.05);
  padding:9px 12px;border-radius:99px;color:var(--muted);font-size:12px
}
.message{
  margin:22px 0;padding:14px 16px;border:1px solid var(--line);
  border-radius:15px;color:var(--muted);background:rgba(255,255,255,.035)
}
.message.error{color:#ff9eb3;border-color:rgba(255,55,95,.35)}
.filter{border-top:1px solid var(--line);padding:23px 0}
.filter-head strong{font-size:16px}
.text-btn{
  border:0;background:transparent;color:var(--accent2);font-weight:750;
  padding:8px;cursor:pointer
}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:13px}
.chip{
  min-height:42px;padding:9px 14px;border-radius:99px;
  border:1px solid var(--line);background:rgba(255,255,255,.04);
  color:var(--muted);cursor:pointer
}
.chip.on{
  color:white;background:rgba(255,55,95,.18);
  border-color:rgba(255,55,95,.65)
}
.primary,.stop{
  width:100%;min-height:59px;border-radius:17px;
  border:0;font-weight:850;cursor:pointer
}
.primary{
  color:white;background:linear-gradient(135deg,#ff375f,#ff174f);
  box-shadow:0 13px 32px rgba(255,55,95,.23)
}
.primary:disabled{opacity:.4;cursor:not-allowed}
.quiz-head{text-align:left}
.small-label{color:var(--muted);margin-top:5px}
.timer{
  width:75px;height:75px;border:2px solid rgba(255,55,95,.55);
  border-radius:50%;display:grid;place-items:center;
  font-size:28px;font-weight:850;font-variant-numeric:tabular-nums
}
.timer.warning{color:#ff91a7;animation:pulse 1s infinite}
@keyframes pulse{50%{transform:scale(1.06)}}
.progress{height:7px;background:rgba(255,255,255,.07);border-radius:99px;margin:24px 0 42px;overflow:hidden}
#progress{height:100%;background:linear-gradient(90deg,var(--accent),var(--accent2));transform-origin:left}

.record{text-align:center; padding-bottom:28px}
.record h2{font-size:clamp(28px,5vw,41px);margin:0 0 10px}
.record p{max-width:580px;margin:auto;color:var(--muted);line-height:1.5}
.stop{width:min(430px,100%);background:rgba(255,255,255,.07);border:1px solid var(--line);color:white}
.play-info{height:25px;margin-top:13px;text-align:center;color:#777783;font-size:13px}
.answer{text-align:center}
.answer-tag{
  display:inline-block;color:var(--green);background:rgba(84,224,164,.1);
  padding:8px 12px;border-radius:99px
}
.answer-grid{
  display:grid;grid-template-columns:minmax(180px,250px) 1fr;
  gap:clamp(25px,5vw,50px);align-items:center;text-align:left;margin:0px 0 34px
}
.cover-link{
  display:block;position:relative;width:100%;border-radius:20px;overflow:hidden;
  text-decoration:none;color:inherit;cursor:pointer;
  box-shadow:0 24px 55px rgba(0,0,0,.4);transition:transform .2s ease,box-shadow .2s ease
}
.cover-link:hover{transform:scale(1.02);box-shadow:0 28px 60px rgba(0,0,0,.5)}
.cover-link:hover .cover-hint{opacity:1}
.cover{width:100%;aspect-ratio:1;object-fit:cover;display:block;border-radius:20px}
.cover-hint{
  position:absolute;right:12px;bottom:12px;padding:6px 10px;border-radius:999px;
  background:rgba(0,0,0,.65);color:#fff;font-size:12px;font-weight:700;
  opacity:.75;transition:opacity .2s ease;pointer-events:none
}
.answer-copy h2{font-size:clamp(30px,5vw,49px);line-height:1.03;margin:7px 0}
.answer-copy p{font-size:21px;color:var(--muted);margin:0}
.meta{display:flex;gap:10px;flex-wrap:wrap;margin-top:21px;color:#dddde5;font-size:14px}
.meta i{color:var(--accent)}
.autoplay-switch{
  display:flex;align-items:center;justify-content:center;gap:12px;
  margin:18px auto 0;cursor:pointer;user-select:none;max-width:320px
}
.autoplay-switch input{position:absolute;opacity:0;pointer-events:none}
.switch-track{
  width:46px;height:26px;border-radius:999px;background:rgba(255,255,255,.12);
  border:1px solid var(--line);position:relative;flex-shrink:0;transition:background .2s ease,border-color .2s ease
}
.switch-thumb{
  position:absolute;top:2px;left:2px;width:20px;height:20px;border-radius:50%;
  background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.35);transition:transform .2s ease
}
.autoplay-switch input:checked + .switch-track{
  background:rgba(84,224,164,.28);border-color:rgba(84,224,164,.65)
}
.autoplay-switch input:checked + .switch-track .switch-thumb{transform:translateX(20px)}
.switch-text{color:var(--muted);font-size:14px;font-weight:650}
footer{display:flex;justify-content:space-between;align-items:center;color:#777783;font-size:12px;padding:18px 4px}
.hidden{display:none!important}
@media(max-width:650px){
  .panel{border-radius:22px}
  .panel-head{align-items:flex-start;flex-direction:column}
  .source-badge{align-self:flex-start}
  .answer-grid{grid-template-columns:1fr}
  .cover-link{width:min(280px,70vw);margin:auto}
  .answer-copy{text-align:center}
  .meta{justify-content:center}
}

.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:13px}
.mode-card{display:flex;align-items:center;gap:13px;min-height:76px;padding:13px 15px;border:1px solid var(--line);border-radius:17px;background:rgba(255,255,255,.035);cursor:pointer}
.mode-card.selected{border-color:rgba(255,55,95,.65);background:rgba(255,55,95,.12)}
.mode-card input{position:absolute;opacity:0;pointer-events:none}
.mode-icon{flex:0 0 40px;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:rgba(255,255,255,.07);font-weight:900;color:var(--accent2)}
.mode-card b{display:block;font-size:14px;margin-bottom:4px}.mode-card small{display:block;color:var(--muted);font-size:12px;line-height:1.35}
.quiz .record h2{font-size:clamp(28px,5vw,41px);margin:0 0 10px}.quiz .record p{max-width:580px;margin:auto;color:var(--muted);line-height:1.5}
.quiz-actions{display:grid;grid-template-columns:1fr 1.8fr;gap:10px;max-width:650px;margin:auto}
.pause,.stop{min-height:56px;border-radius:16px;border:1px solid var(--line);color:white;cursor:pointer;font-weight:800}
.pause{background:rgba(255,255,255,.07)}.pause.resume{background:rgba(84,224,164,.12);border-color:rgba(84,224,164,.4)}
.choices{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0px auto 18px;max-width:760px}
.choice{min-height:62px;padding:10px 15px;border:1px solid var(--line);border-radius:16px;color:white;background:rgba(255,255,255,.055);cursor:pointer;font-weight:750;text-align:left}
.choice.correct{background:rgba(84,224,164,.16);border-color:rgba(84,224,164,.7)}
.choice.wrong{background:rgba(255,55,95,.16);border-color:rgba(255,55,95,.7)}
.choice:disabled{cursor:default}.choices-loading{text-align:center;color:var(--muted);grid-column:1/-1;padding:10px}
@media(max-width:650px){.mode-grid,.choices,.quiz-actions{grid-template-columns:1fr}}

.language-switch {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  flex-shrink: 0;
}
.language-switch .text-btn {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255,255,255,.06);
  color: inherit;
  font-weight: 700;
}
.no-highlight {
    color: inherit;
    text-decoration: none;
}
