/* AMA IELTS - OREC / BMPRR method pages, model player, recorder zone and verdict */

.mt, .mt-q, .mt-model, .mt-build, .mt-plan, .mt-talk {
 --k-o: #c8262e; --k-r: #1f4fa8; --k-e: #b07d12; --k-c: #16794a; --k-f: #6a3fa0;
}
.mt { display: grid; gap: 18px; }
.mt h3, .mt h4, .mt h5, .mt h6 { margin: 0; }
.mt-muted { color: var(--ie-dim, #5a6b82); margin: 4px 0 10px; font-size: 0.92rem; }

.mt-step--o, .mt-block--o, .mt-build__box--o, .mt-tick--o, .mt-plan__box--b, .mt-step--b, .mt-block--b, .mt-tick--b { --k: var(--k-o, #c8262e); }
.mt-step--r, .mt-block--r, .mt-build__box--r, .mt-tick--r, .mt-plan__box--m, .mt-step--m, .mt-block--m, .mt-tick--m { --k: var(--k-r, #1f4fa8); }
.mt-step--e, .mt-block--e, .mt-build__box--e, .mt-tick--e, .mt-plan__box--p, .mt-step--p, .mt-block--p, .mt-tick--p { --k: var(--k-e, #b07d12); }
.mt-step--c, .mt-block--c, .mt-build__box--c, .mt-tick--c, .mt-plan__box--rs, .mt-step--rs, .mt-block--rs, .mt-tick--rs { --k: var(--k-c, #16794a); }
.mt-step--f, .mt-block--f, .mt-tick--f, .mt-plan__box--f { --k: var(--k-f, #6a3fa0); }

/* ---------- Hero ---------- */
.mt-hero {
 display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: start;
 padding: 26px; border-radius: 20px; color: #fff;
 background: radial-gradient(circle at 92% 10%, rgba(245, 200, 66, 0.22), transparent 45%), linear-gradient(135deg, #001a4d 0%, #002366 55%, #1f3f9f 100%);
 box-shadow: 0 16px 38px rgba(0, 35, 102, 0.22);
}
.mt-hero__eyebrow { margin: 0 0 6px; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: #f5c842; font-weight: 700; }
.mt-hero h3 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); line-height: 1.15; color: #fff; }
.mt-hero h3 em { font-style: normal; color: #f5c842; }
.mt-hero__text p:last-child { margin: 10px 0 0; color: rgba(255, 255, 255, 0.88); line-height: 1.55; }
@media (max-width: 820px) { .mt-hero { grid-template-columns: 1fr; padding: 20px; } }

/* ---------- Method strip ---------- */
.mt-method { background: #fff; color: var(--ie-text, #0f2044); border-radius: 16px; padding: 14px; display: grid; gap: 10px; }
.mt-method__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mt-method__name { font-weight: 800; letter-spacing: 0.08em; color: #002366; }
.mt-time {
 display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
 background: #eaf6ef; color: #16794a; font-weight: 700; font-size: 0.82rem; border: 1px solid #bfe3cd;
}
.mt-method__steps { display: grid; gap: 7px; }
.mt-step { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; padding: 8px 10px; border-radius: 12px; background: color-mix(in srgb, var(--k) 7%, #fff); border-left: 4px solid var(--k); }
.mt-step > b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--k); color: #fff; font-size: 0.95rem; }
.mt-step strong { display: block; color: var(--k); font-size: 0.95rem; }
.mt-step strong small { color: var(--ie-dim, #5a6b82); font-weight: 600; margin-left: 4px; }
.mt-step span { font-size: 0.88rem; color: #33445f; line-height: 1.4; }
.mt-method__tip { margin: 0; font-size: 0.86rem; color: #5a4a1a; background: #fff7e0; border-radius: 10px; padding: 8px 10px; }
.mt-method__tip i { color: #c9952a; margin-right: 4px; }

/* ---------- Tiles ---------- */
.mt-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.mt-tile {
 display: grid; gap: 6px; text-align: left; padding: 16px; border-radius: 16px; cursor: pointer;
 background: #fff; border: 1px solid var(--ie-border, #c5d4e8); color: var(--ie-text, #0f2044);
 font: inherit; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.mt-tile:hover, .mt-tile:focus-visible { transform: translateY(-2px); border-color: #c9952a; box-shadow: 0 10px 24px rgba(0, 35, 102, 0.12); }
.mt-tile > i { font-size: 1.3rem; color: #c9952a; }
.mt-tile strong { font-size: 1rem; line-height: 1.3; }
.mt-tile small { color: var(--ie-dim, #5a6b82); }
.mt-tile.is-done { border-color: #9fd3b4; background: #f5fbf7; }

/* ---------- Question cards ---------- */
.mt-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mt-head h3 { color: #002366; font-size: 1.35rem; }
.mt-head h3 i { color: #c9952a; margin-right: 6px; }
.mt-q { display: grid; gap: 12px; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--ie-border, #c5d4e8); box-shadow: 0 6px 20px rgba(0, 35, 102, 0.06); }
.mt-q.is-done { border-color: #9fd3b4; }
.mt-q__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mt-q__head h4 { flex: 1 1 260px; font-size: 1.08rem; line-height: 1.4; color: #0f2044; }
.mt-q__n { display: grid; place-items: center; min-width: 38px; height: 30px; border-radius: 10px; background: #002366; color: #f5c842; font-weight: 800; font-size: 0.85rem; }
.mt-q.is-done .mt-q__n { background: #16794a; color: #fff; }
.mt-q__vocab { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mt-q__vocab > span { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ie-dim, #5a6b82); margin-right: 4px; }
.mt-type { margin: 0; padding: 10px 12px; border-radius: 12px; background: #f3f6fc; font-size: 0.92rem; line-height: 1.5; color: #33445f; }
.mt-type span { display: inline-block; margin-right: 6px; padding: 2px 9px; border-radius: 999px; background: #002366; color: #fff; font-size: 0.76rem; font-weight: 700; }

/* ---------- Part 3 workshop ---------- */
.mt-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: none; }
.mt-flow__step { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: #fafbfe; border: 1px dashed #d3ddef; }
.mt-flow__step h5 { display: flex; align-items: center; gap: 8px; font-size: 1rem; color: #002366; }
.mt-flow__step h5 b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #c9952a; color: #fff; font-size: 0.85rem; }
.mt-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mt-side { padding: 12px; border-radius: 12px; background: #eef3fd; border-left: 4px solid #1f4fa8; }
.mt-side--b { background: #fff4ea; border-left-color: #c8262e; }
.mt-side h6 { font-size: 0.9rem; margin-bottom: 6px; color: #0f2044; }
.mt-side ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 0.9rem; line-height: 1.45; }
@media (max-width: 640px) { .mt-sides { grid-template-columns: 1fr; } }

.mt-lenses { padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--ie-border, #c5d4e8); }
.mt-lenses h4 { color: #002366; margin-bottom: 10px; font-size: 1.02rem; }
.mt-lenses h4 i { color: #c9952a; }
.mt-lenses__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.mt-lens { display: grid; gap: 3px; padding: 10px 12px; border-radius: 12px; background: #f6f8fc; }
.mt-lens i { color: #1f4fa8; }
.mt-lens strong { font-size: 0.92rem; }
.mt-lens span { font-size: 0.84rem; color: #4a5a74; line-height: 1.4; }

/* ---------- OREC builder ---------- */
.mt-build { display: grid; gap: 10px; }
.mt-build__ideas { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mt-build__ideas > span { font-size: 0.84rem; color: var(--ie-dim, #5a6b82); margin-right: 4px; }
.mt-idea, .mt-starter {
 font: inherit; font-size: 0.82rem; line-height: 1.3; cursor: pointer; text-align: left;
 padding: 5px 10px; border-radius: 999px; border: 1px solid #d3ddef; background: #fff; color: #23365a;
}
.mt-idea:hover, .mt-starter:hover { border-color: #c9952a; background: #fffaf0; }
.mt-idea.is-used { opacity: 0.5; text-decoration: line-through; }
.mt-build__grid, .mt-plan__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.mt-build__box, .mt-plan__box { display: grid; gap: 6px; padding: 10px; border-radius: 12px; background: color-mix(in srgb, var(--k) 6%, #fff); border-top: 4px solid var(--k); }
.mt-build__tag { font-size: 0.86rem; font-weight: 700; color: var(--k); }
.mt-build__tag b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--k); color: #fff; font-size: 0.78rem; margin-right: 3px; }
.mt-build__tag small { color: var(--ie-dim, #5a6b82); font-weight: 600; }
.mt-build__box textarea, .mt-plan__box textarea {
 width: 100%; box-sizing: border-box; resize: vertical; min-height: 56px;
 font: inherit; font-size: 0.95rem; padding: 8px 10px; border-radius: 10px; border: 1px solid #d3ddef; background: #fff;
}
.mt-build__box textarea:focus, .mt-plan__box textarea:focus { outline: 2px solid color-mix(in srgb, var(--k) 45%, transparent); border-color: var(--k); }
.mt-build__starters { display: flex; flex-wrap: wrap; gap: 5px; }
.mt-build__read { justify-self: start; }

/* ---------- Model answer + timed player ---------- */
.mt-model { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid #e6d7ae; }
.mt-model__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mt-model__head h5 { font-size: 1rem; color: #002366; }
.mt-model__head h5 i { color: #c9952a; }
.mt-model__est { font-size: 0.82rem; color: var(--ie-dim, #5a6b82); }
.mt-model__note { margin: 0; font-size: 0.84rem; color: var(--ie-dim, #5a6b82); }
.mt-blocks { display: grid; gap: 8px; }
.mt-block { padding: 10px 12px; border-radius: 12px; border-left: 4px solid var(--k); background: color-mix(in srgb, var(--k) 5%, #fff); transition: background 0.2s ease, box-shadow 0.2s ease; }
.mt-block.is-live { background: color-mix(in srgb, var(--k) 14%, #fff); box-shadow: 0 0 0 2px color-mix(in srgb, var(--k) 40%, transparent); }
.mt-block__tag { display: block; font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--k); margin-bottom: 3px; }
.mt-block__tag b { margin-right: 2px; }
.mt-block p { margin: 0; line-height: 1.6; color: #1d2b45; }
.mt-player { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mt-player__track { position: relative; flex: 1 1 180px; height: 10px; border-radius: 999px; background: #e9eef7; overflow: hidden; }
.mt-player__zone { position: absolute; top: 0; bottom: 0; background: rgba(22, 121, 74, 0.28); border-left: 2px solid #16794a; border-right: 2px solid #16794a; }
.mt-player__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #1f3f9f, #c9952a); border-radius: 999px; transition: width 0.25s linear; }
.mt-player__clock { min-width: 52px; font-size: 1.15rem; font-variant-numeric: tabular-nums; color: #002366; }
.mt-player__clock.is-good { color: #16794a; }
.mt-player__clock.is-off { color: #c8262e; }

/* ---------- Part 2 ---------- */
.mt-p2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.mt-p2__prep { display: grid; place-items: center; gap: 12px; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--ie-border, #c5d4e8); text-align: center; }
.mt-p2__clockwrap { display: grid; gap: 2px; }
.mt-p2__clock { font-size: 2.6rem; font-variant-numeric: tabular-nums; color: #002366; line-height: 1; }
.mt-p2__clockwrap small { color: var(--ie-dim, #5a6b82); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.74rem; }
@media (max-width: 760px) { .mt-p2 { grid-template-columns: 1fr; } }
.mt-plan, .mt-talk { display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--ie-border, #c5d4e8); }
.mt-plan h4, .mt-talk h4 { color: #002366; font-size: 1.05rem; }
.mt-plan h4 small { font-weight: 500; color: var(--ie-dim, #5a6b82); font-size: 0.82rem; margin-left: 6px; }
.mt-plan h4 i, .mt-talk h4 i { color: #c9952a; }
.mt-talk.is-ready { border-color: #c9952a; box-shadow: 0 0 0 3px rgba(201, 149, 42, 0.2); }

/* ---------- Recorder target zone ---------- */
.ielts-rec__bar { position: relative; }
.ielts-rec__bar span { position: relative; z-index: 1; }
.ielts-rec__zone { position: absolute; top: 0; bottom: 0; z-index: 0; background: rgba(22, 121, 74, 0.3); }
.ielts-rec__target { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: #eaf6ef; color: #16794a; font-weight: 700; font-size: 0.8rem; }

/* ---------- Verdict after recording ---------- */
.mt-verdict { display: grid; gap: 8px; margin: 10px 0; }
.mt-verdict__time { padding: 9px 12px; border-radius: 12px; font-size: 0.92rem; line-height: 1.45; }
.mt-verdict__time.is-good { background: #eaf6ef; color: #135f3b; }
.mt-verdict__time.is-ok { background: #fff6dd; color: #6b4e09; }
.mt-verdict__time.is-short { background: #fdecec; color: #8f1d22; }
.mt-verdict__struct { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mt-verdict__label { font-size: 0.8rem; font-weight: 700; color: var(--ie-dim, #5a6b82); margin-right: 4px; }
.mt-tick { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 0.82rem; background: #f2f4f8; color: #7a879c; border: 1px solid #e0e5ee; }
.mt-tick b { color: inherit; }
.mt-tick.is-ok { background: color-mix(in srgb, var(--k) 12%, #fff); color: var(--k); border-color: color-mix(in srgb, var(--k) 35%, transparent); }
.mt-verdict__fix { margin: 0; font-size: 0.9rem; line-height: 1.5; padding: 8px 12px; border-radius: 10px; background: #f3f6fc; }
.mt-verdict__fix em { font-style: normal; color: #002366; font-weight: 600; }
.mt-verdict__fix.is-good { background: #eaf6ef; color: #135f3b; }
