.stv-phrase-page{
  --p-blue:#1769ff;
  --p-blue-dark:#0f4fd4;
  --p-text:#17233c;
  --p-muted:#77849a;
  --p-line:#e7ebf2;
  --p-soft:#f7f9fc;
  --p-example:#f8faff;
  background:#f6f8fb;
  color:var(--p-text);
  font-family:Inter,Arial,"Segoe UI",sans-serif;
  padding:28px 16px 50px;
}
.stv-phrase-page *{box-sizing:border-box}
.stv-phrase-container{width:100%;max-width:1180px;margin:0 auto}

.phrase-hero{
  min-height:180px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  padding:30px 34px;
  border:1px solid #dfe7f4;
  border-radius:18px;
  background:linear-gradient(135deg,#fff 0%,#f5f8ff 100%);
  box-shadow:0 12px 32px rgba(20,46,90,.06);
}
.phrase-eyebrow{display:block;margin-bottom:9px;color:var(--p-blue);font-size:12px;font-weight:800;letter-spacing:.08em}
.phrase-hero h1{margin:0;color:#15213a;font-size:31px;line-height:1.18;font-weight:800}
.phrase-hero p{max-width:650px;margin:10px 0 0;color:var(--p-muted);font-size:15px;line-height:1.65}
.phrase-hero-stat{flex:0 0 auto;min-width:150px;padding:19px 22px;border:1px solid #dce6fb;border-radius:16px;background:#fff;text-align:center;box-shadow:0 10px 25px rgba(43,93,180,.06)}
.phrase-hero-stat strong{display:block;color:var(--p-blue);font-size:27px;line-height:1;font-weight:850}
.phrase-hero-stat span{display:block;margin-top:7px;color:#77849a;font-size:13px;font-weight:700}

/* Toolbar: thông tin | tìm kiếm */
.phrase-toolbar{
  display:grid;
  grid-template-columns:minmax(190px,auto) minmax(320px,1fr);
  align-items:center;
  gap:14px;
  margin:18px 0 12px;
  padding:14px 16px;
  border:1px solid var(--p-line);
  border-radius:14px;
  background:#fff;
}
.phrase-toolbar-summary{min-width:0;display:flex;flex-direction:column;gap:4px}
.phrase-toolbar-summary strong{font-size:16px}
.phrase-toolbar-summary span{color:var(--p-muted);font-size:13px;line-height:1.35}
.phrase-toolbar-actions{display:flex;align-items:center;gap:8px}
.phrase-toolbar-btn{height:38px;display:inline-flex;align-items:center;gap:7px;padding:0 12px;border-radius:9px;border:1px solid #dce4f2;background:#fff;color:#3f4b63;font-size:13px;font-weight:700;white-space:nowrap}
.phrase-toolbar-btn svg{width:17px;height:17px;fill:currentColor}
.phrase-toolbar-btn-primary{border-color:#d9e5ff;background:#eef4ff;color:#1769ff}
.phrase-toolbar-btn:disabled{opacity:.55;cursor:not-allowed}

.phrase-search-form{width:100%;min-width:0}
.phrase-search-box{height:42px;display:flex;align-items:center;gap:8px;padding:0 5px 0 12px;border:1px solid #dce4f0;border-radius:11px;background:#fff;transition:border-color .18s,box-shadow .18s}
.phrase-search-box:focus-within{border-color:#91b3ff;box-shadow:0 0 0 3px rgba(23,105,255,.09)}
.phrase-search-box>svg{flex:0 0 auto;width:18px;height:18px;fill:#78869d}
.phrase-search-box input{min-width:0;flex:1 1 auto;height:38px;border:0!important;outline:0!important;background:transparent;color:#17233c;font-size:14px;box-shadow:none!important}
.phrase-search-box input::placeholder{color:#9aa6b8}
.phrase-search-box button{flex:0 0 auto;height:34px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 13px;border:0;border-radius:8px;background:#1769ff;color:#fff;font-family:Inter,Arial,"Segoe UI",sans-serif;font-size:13px;font-weight:700;cursor:pointer}
.phrase-search-box button svg{width:15px;height:15px;fill:currentColor}
.phrase-search-box button:hover{background:#0f5ae0}
.phrase-search-clear{flex:0 0 auto;width:26px;height:26px;display:flex;align-items:center;justify-content:center;border-radius:7px;color:#8b98aa;text-decoration:none;font-size:20px;line-height:1}
.phrase-search-clear:hover{background:#f0f4fa;color:#445169}

/* 2 item / 1 dòng trên desktop */
.phrase-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.phrase-card{position:relative;min-width:0;display:flex;flex-direction:column;padding:18px;border:1px solid var(--p-line);border-radius:16px;background:#fff;box-shadow:0 4px 14px rgba(30,52,84,.035);overflow:visible}
.phrase-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.phrase-title-wrap{min-width:0;display:flex;align-items:flex-start;gap:12px}
.phrase-index{flex:0 0 auto;min-width:42px;height:42px;display:flex;align-items:center;justify-content:center;border-radius:11px;background:#edf4ff;color:#1769ff;font-size:12px;font-weight:800}
.phrase-title-copy{min-width:0}
.phrase-name-row{display:flex;align-items:center;gap:7px;min-width:0}
.phrase-name-row h2{margin:0;color:#15213a;font-size:19px;line-height:1.32;font-weight:800;word-break:break-word}
.phrase-meaning{margin:4px 0 0;color:#58657a;font-size:14px;line-height:1.5}
.phrase-audio-btn{flex:0 0 auto;width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #dbe6f9;border-radius:9px;background:#f3f7ff;color:#1769ff;cursor:pointer}
.phrase-audio-btn svg{width:16px;height:16px;fill:currentColor}
.phrase-audio-btn:hover{background:#eaf2ff}

.phrase-example{flex:1 1 auto;margin:14px 0 0 54px;padding:12px 13px;border:1px solid #e4eaf7;border-radius:12px;background:var(--p-example)}
.phrase-example-label{display:flex;align-items:center;gap:6px;margin-bottom:6px;color:#63718a;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.phrase-example-label svg{width:14px;height:14px;fill:#7b8aaa}
.phrase-example-en{margin:0;color:#25334d;font-size:13.5px;line-height:1.55;font-weight:600}
.phrase-example-vi{margin:3px 0 0;color:#7a879a;font-size:13px;line-height:1.5}
.phrase-example-empty{margin:0;color:#9aa5b4;font-size:13px;font-style:italic}

.phrase-more-examples{margin-top:9px;padding-top:8px;border-top:1px dashed #dce4f1}
.phrase-more-examples[hidden]{display:none!important}
.phrase-more-example-en{display:flex;align-items:flex-start;gap:7px;margin:7px 0 0;color:#33425d;font-size:13px;line-height:1.55;font-weight:600}
.phrase-more-example-en>span{flex:0 0 auto;color:#8a98ad;font-size:11px;font-weight:800;line-height:1.85}
.phrase-more-btn{margin-top:9px;padding:0;border:0;background:transparent;color:#1769ff;font-family:Inter,Arial,"Segoe UI",sans-serif;font-size:12.5px;font-weight:700;display:inline-flex;align-items:center;gap:4px;cursor:pointer}
.phrase-more-btn svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;transition:transform .18s}
.phrase-more-btn.open svg{transform:rotate(180deg)}
.phrase-more-btn:hover{color:#0f4fd4}

.phrase-card-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:13px 0 0 54px;padding-top:12px;border-top:1px solid #edf0f5}
.phrase-save-btn,.phrase-review-btn{height:36px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 10px;border:1px solid #dce4f2;border-radius:9px;background:#fff;color:#40506a;font-size:12.5px;font-weight:700;cursor:pointer;white-space:nowrap}
.phrase-save-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}
.phrase-save-btn:hover{border-color:#bcd0ff;background:#f7faff;color:#1769ff}
.phrase-review-wrap{position:relative;z-index:40}
.phrase-review-btn{border-color:#d7e3ff;background:#f3f7ff;color:#1769ff}
.phrase-review-btn>svg:first-child{width:16px;height:16px;fill:currentColor}
.phrase-review-chevron{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;transition:transform .18s}
.phrase-review-wrap.open .phrase-review-chevron{transform:rotate(180deg)}
.phrase-review-btn:hover{background:#eaf2ff}

.phrase-review-menu{position:absolute;right:0;top:calc(100% + 7px);width:270px;display:none;padding:7px;border:1px solid #dfe6f1;border-radius:12px;background:#fff;box-shadow:0 14px 34px rgba(25,46,80,.14);z-index:80}
.phrase-review-wrap.open .phrase-review-menu{display:block}
.phrase-card.review-open{z-index:60}
.phrase-review-item{width:100%;display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:9px;padding:8px;border:0;border-radius:9px;background:#fff;color:#25334d;text-align:left;cursor:pointer}
.phrase-review-item:hover{background:#f4f7fc}
.phrase-review-icon{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:9px;background:#eef4ff;color:#1769ff;font-size:12px;font-weight:850}
.phrase-review-item>span:last-child{min-width:0;display:flex;flex-direction:column;gap:2px}
.phrase-review-item b{font-size:12.5px;line-height:1.3}
.phrase-review-item small{color:#8793a6;font-size:11px;line-height:1.35;font-weight:500}

.phrase-pagination{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:20px;padding:14px 16px;border:1px solid var(--p-line);border-radius:14px;background:#fff}
.phrase-pagination-info{color:#758196;font-size:13px}
.phrase-pagination-pages{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.phrase-pagination-pages a,.phrase-pagination-pages span:not(.page-dots){min-width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;padding:0 9px;border:1px solid #dfe5ee;border-radius:9px;background:#fff;color:#46546a;text-decoration:none;font-size:13px;font-weight:700}
.phrase-pagination-pages a:hover{border-color:#b8cbf8;background:#f3f7ff;color:#1769ff}
.phrase-pagination-pages .active{border-color:#1769ff!important;background:#1769ff!important;color:#fff!important}
.phrase-pagination-pages .disabled{opacity:.45}
.phrase-pagination-pages .page-dots{color:#8792a3;padding:0 2px}
.page-nav{font-size:20px!important;line-height:1}
.phrase-empty{grid-column:1/-1;padding:45px 20px;text-align:center;border:1px solid var(--p-line);border-radius:16px;background:#fff;color:#7a8698}

@media(max-width:1020px){
  .phrase-toolbar{grid-template-columns:1fr}
  .phrase-search-form{grid-column:1;grid-row:2}
}

@media(max-width:820px){
  .phrase-list{grid-template-columns:1fr}
}

@media(max-width:760px){
  .stv-phrase-page{padding:18px 10px 35px}
  .phrase-hero{min-height:0;padding:22px 18px;display:block}
  .phrase-hero h1{font-size:25px}
  .phrase-hero p{font-size:14px}
  .phrase-hero-stat{display:none}
  .phrase-toolbar{display:flex;align-items:stretch;flex-direction:column;padding:14px}
  .phrase-card{padding:16px 14px}
  .phrase-title-wrap{gap:10px}
  .phrase-index{min-width:38px;height:38px;border-radius:9px}
  .phrase-name-row h2{font-size:18px}
  .phrase-meaning{font-size:14px}
  .phrase-example{margin:13px 0 0;padding:12px 13px}
  .phrase-example-en{font-size:14px}
  .phrase-example-vi{font-size:13.5px}
  .phrase-card-actions{margin-left:0;justify-content:stretch}
  .phrase-save-btn,.phrase-review-wrap{flex:1 1 0}
  .phrase-review-btn{width:100%}
  .phrase-save-btn{width:100%}
  .phrase-review-menu{right:0;width:min(280px,calc(100vw - 42px))}
  .phrase-pagination{flex-direction:column;justify-content:center}
  .phrase-pagination-pages{justify-content:center}
  .phrase-pagination-pages a,.phrase-pagination-pages span:not(.page-dots){min-width:34px;height:34px}
}

@media(max-width:390px){
  .phrase-name-row{align-items:flex-start}
  .phrase-audio-btn{width:30px;height:30px}
  .phrase-search-box button{padding:0 9px;font-size:12px}
  .phrase-pagination-pages{gap:4px}
  .phrase-pagination-pages a,.phrase-pagination-pages span:not(.page-dots){min-width:32px;height:32px;padding:0 7px}
}

/* =========================================================
   V5 — AUDIO + LƯU CÂU TRONG CARD CỤM TỪ
   ========================================================= */
.phrase-audio-btn{
  flex:0 0 auto;
  width:30px;
  height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:1px solid #d9e4f5;
  border-radius:9px;
  background:#f7faff;
  color:#1769ff;
  cursor:pointer;
  transition:.16s ease;
}
.phrase-audio-btn svg{
  width:15px;
  height:15px;
  fill:currentColor;
}
.phrase-audio-btn:hover,
.phrase-audio-btn.is-playing{
  border-color:#b9cfff;
  background:#eaf2ff;
  color:#0f58e9;
}

.phrase-example-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start;
  gap:10px;
}
.phrase-example-copy,
.phrase-more-example-copy{
  min-width:0;
}
.phrase-example-row .phrase-example-en,
.phrase-example-row .phrase-example-vi{
  margin-right:0;
}

.phrase-sentence-actions{
  display:flex;
  align-items:center;
  gap:5px;
  flex:0 0 auto;
}
.phrase-sentence-icon{
  width:29px;
  height:29px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:1px solid #dbe4f1;
  border-radius:8px;
  background:#fff;
  color:#6b7b95;
  cursor:pointer;
  transition:.16s ease;
}
.phrase-sentence-icon svg{
  width:14px;
  height:14px;
}
.phrase-sentence-listen svg{
  fill:currentColor;
}
.phrase-sentence-save svg{
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
}
.phrase-sentence-icon:hover{
  border-color:#b9cefa;
  background:#f3f7ff;
  color:#1769ff;
}
.phrase-sentence-icon.is-playing{
  border-color:#9dbdff;
  background:#eaf2ff;
  color:#1769ff;
}
.phrase-sentence-save.is-saved{
  border-color:#9dbdff;
  background:#eaf2ff;
  color:#1769ff;
}
.phrase-sentence-save.is-saved svg{
  fill:currentColor;
  stroke:currentColor;
}

.phrase-more-examples{
  display:flex;
  flex-direction:column;
  gap:0;
}
.phrase-more-example-row{
  display:grid;
  grid-template-columns:18px minmax(0,1fr) auto;
  align-items:start;
  gap:7px;
  padding:8px 0;
}
.phrase-more-example-row + .phrase-more-example-row{
  border-top:1px dashed #e1e7f0;
}
.phrase-more-example-number{
  color:#8a98ad;
  font-size:11px;
  font-weight:800;
  line-height:1.8;
}
.phrase-more-example-en{
  display:block;
  margin:0;
  color:#33425d;
  font-size:13px;
  line-height:1.5;
  font-weight:650;
}
.phrase-more-example-vi{
  margin:3px 0 0;
  color:#8090a8;
  font-size:12.5px;
  line-height:1.5;
  font-weight:500;
}

@media(max-width:480px){
  .phrase-example-row{
    grid-template-columns:minmax(0,1fr) auto;
    gap:7px;
  }
  .phrase-more-example-row{
    grid-template-columns:17px minmax(0,1fr) auto;
    gap:6px;
  }
  .phrase-sentence-actions{
    gap:4px;
  }
  .phrase-sentence-icon{
    width:27px;
    height:27px;
    border-radius:7px;
  }
  .phrase-sentence-icon svg{
    width:13px;
    height:13px;
  }
}


/* =========================================================
   V6 — POPUP LƯU SỔ ĐỒNG BỘ VỚI TRANG CHI TIẾT TỪ
   ========================================================= */
#myModal .modal-content{
  border:0;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,.18);
}
#myModal .modal-header{display:none}
#myModal .modal-footer{display:none}
#myModal .modal-body{padding:0}

.bookmark-popup{
  position:relative;
  padding:34px 28px 28px;
  text-align:center;
  background:#fff;
  font-family:Inter,Arial,"Segoe UI",sans-serif;
}
.bookmark-popup .popup-close{
  position:absolute;
  top:12px;
  right:14px;
  width:32px;
  height:32px;
  padding:0;
  border:0;
  border-radius:50%;
  background:#f3f4f6;
  color:#777;
  font-size:20px;
  line-height:30px;
  cursor:pointer;
  transition:.2s;
}
.bookmark-popup .popup-close:hover{
  background:#e5e7eb;
  color:#222;
}
.bookmark-popup .popup-icon{
  width:68px;
  height:68px;
  margin:0 auto 18px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:32px;
  font-weight:700;
}
.bookmark-popup.success .popup-icon{
  background:#eaf8ef;
  color:#20a464;
}
.bookmark-popup.warning .popup-icon{
  background:#fff4e5;
  color:#f59e0b;
}
.bookmark-popup .popup-title{
  margin:0 0 8px;
  color:#1f2937;
  font-size:21px;
  line-height:1.35;
  font-weight:700;
}
.bookmark-popup .popup-desc{
  margin:0 0 22px;
  color:#6b7280;
  font-size:14px;
  line-height:1.6;
}
.bookmark-popup .popup-actions{
  display:flex;
  justify-content:center;
  gap:10px;
}
.bookmark-popup .btn-view-bookmark{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 20px;
  border-radius:10px;
  background:#20a464;
  color:#fff!important;
  font-size:14px;
  font-weight:600;
  text-decoration:none!important;
  transition:.2s;
}
.bookmark-popup .btn-view-bookmark:hover{
  background:#188653;
  color:#fff!important;
  transform:translateY(-1px);
}
.bookmark-popup .btn-popup-close{
  min-height:42px;
  padding:0 18px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  background:#fff;
  color:#4b5563;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
}
.bookmark-popup .btn-popup-close:hover{background:#f9fafb}

.phrase-save-btn.is-saved,
.phrase-sentence-save.is-saved{
  border-color:#9fd8ba;
  background:#eaf8f0;
  color:#168a53;
}
.phrase-save-btn.is-saved svg,
.phrase-sentence-save.is-saved svg{
  fill:currentColor;
  stroke:currentColor;
}
.phrase-save-btn.is-saving,
.phrase-sentence-save.is-saving{
  opacity:.65;
  cursor:wait;
}

@media(max-width:576px){
  .bookmark-popup{padding:30px 18px 22px}
  .bookmark-popup .popup-icon{width:60px;height:60px;font-size:28px}
  .bookmark-popup .popup-title{font-size:19px}
  .bookmark-popup .popup-actions{flex-direction:column-reverse}
  .bookmark-popup .btn-view-bookmark,
  .bookmark-popup .btn-popup-close{width:100%}
}

/* =========================================================
   V8 — BỘ LỌC GRAMMAR / LEXICAL + NHÃN PHÂN LOẠI TRÊN CARD
   ========================================================= */
.phrase-type-select{
  flex:0 0 168px;
  height:34px;
  padding:0 32px 0 10px;
  border:1px solid #dce4f0;
  border-radius:8px;
  outline:0;
  background:#fff;
  color:#40506a;
  font-family:Inter,Arial,"Segoe UI",sans-serif;
  font-size:12.5px;
  font-weight:650;
  cursor:pointer;
}
.phrase-type-select:focus{
  border-color:#91b3ff;
  box-shadow:0 0 0 2px rgba(23,105,255,.08);
}
.phrase-classification{
  display:flex;
  align-items:flex-start;
  flex-wrap:wrap;
  gap:7px 12px;
  margin-top:9px;
}
.phrase-classification-group{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:5px;
  min-width:0;
}
.phrase-classification-label{
  color:#8b97aa;
  font-size:10.5px;
  line-height:1;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.035em;
}
.phrase-lexical-badges{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:5px;
}
.phrase-type-badge{
  min-height:25px;
  display:inline-flex;
  align-items:center;
  padding:0 8px;
  border:1px solid transparent;
  border-radius:999px;
  font-size:11px;
  line-height:1.2;
  font-weight:750;
  text-decoration:none!important;
  white-space:nowrap;
  transition:.16s ease;
}
.phrase-grammar-badge{
  border-color:#dbe6fb;
  background:#f2f6ff;
  color:#37639f;
}
.phrase-grammar-badge:hover,
.phrase-grammar-badge.is-active{
  border-color:#a9c4ff;
  background:#e8f0ff;
  color:#1769ff!important;
}
.phrase-lexical-badge{
  border-color:#e3e6ec;
  background:#f6f7f9;
  color:#59677b;
}
.phrase-lexical-badge:hover,
.phrase-lexical-badge.is-active{
  border-color:#c8d1df;
  background:#eef1f5;
  color:#25334d!important;
}

@media(max-width:760px){
  .phrase-search-box{height:auto;min-height:42px;flex-wrap:wrap;padding:5px 5px 5px 12px}
  .phrase-search-box input{min-width:150px;flex:1 1 180px}
  .phrase-type-select{flex:1 1 180px;min-width:0}
  .phrase-card-actions{flex-wrap:wrap}
  .phrase-classification{gap:6px 10px}
}

/* =========================================================
   V9 — LUYỆN TẬP CỤM TỪ
   ========================================================= */
body.phrase-practice-open{overflow:hidden}
.phrase-practice-backdrop{
  position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;
  padding:20px;background:rgba(18,28,45,.5);backdrop-filter:blur(3px)
}
.phrase-practice-backdrop[hidden]{display:none!important}
.phrase-practice-modal{
  position:relative;width:min(720px,100%);max-height:calc(100vh - 40px);overflow:auto;
  border:1px solid #dde5f0;border-radius:20px;background:#fff;
  box-shadow:0 24px 70px rgba(21,38,70,.25);padding:26px
}
.phrase-practice-close{
  position:absolute;top:14px;right:14px;width:34px;height:34px;border:0;border-radius:50%;
  background:#f2f5f9;color:#56657b;font-size:23px;line-height:1;cursor:pointer
}
.phrase-practice-close:hover{background:#e7edf5;color:#1f2d42}
.phrase-practice-kicker{margin-bottom:8px;color:#1769ff;font-size:11px;font-weight:850;letter-spacing:.09em}
.phrase-practice-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding-right:34px}
.phrase-practice-heading h3{margin:0;color:#10213a;font-size:25px;line-height:1.25}
.phrase-practice-heading p{margin:6px 0 0;color:#738097;font-size:14px}
.phrase-practice-sound{
  flex:0 0 auto;width:38px;height:38px;display:flex;align-items:center;justify-content:center;padding:0;
  border:1px solid #d7e3f6;border-radius:10px;background:#f5f9ff;color:#1769ff;cursor:pointer
}
.phrase-practice-sound svg{width:17px;height:17px;fill:currentColor}
.phrase-practice-sound.is-playing{background:#eaf2ff}
.phrase-practice-body{margin-top:22px}
.phrase-practice-card{border:1px solid #e0e7f1;border-radius:16px;background:#fbfcfe;padding:18px}
.phrase-practice-card-head{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:start;gap:10px;margin-bottom:18px}
.phrase-practice-card-head>span{
  width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:10px;
  background:#eaf2ff;color:#1769ff;font-size:12px;font-weight:850
}
.phrase-practice-card-head b{display:block;color:#1a2940;font-size:15px;line-height:1.35}
.phrase-practice-card-head small{display:block;margin-top:3px;color:#7f8ba0;font-size:12px;line-height:1.45;font-weight:500}

.phrase-arrange-answer{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;margin:8px 0 20px}
.phrase-letter-word{display:inline-flex;gap:4px}
.phrase-letter-slot{
  width:30px;height:38px;display:flex;align-items:center;justify-content:center;padding:0;
  border:0;border-bottom:2px solid #cbd6e7;background:transparent;color:#18304e;
  font-size:18px;font-weight:800;text-transform:none;cursor:default
}
.phrase-letter-slot.filled{border-bottom-color:#1769ff;color:#1769ff;cursor:pointer}
.phrase-arrange-hint{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:10px;color:#7b8798;font-size:12px}
.phrase-arrange-hint strong{color:#34455f;font-size:15px;letter-spacing:.12em;word-break:break-all}
.phrase-letter-bank{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;min-height:44px}
.phrase-letter-choice{
  min-width:36px;height:38px;padding:0 10px;border:1px solid #d7e2f0;border-radius:9px;
  background:#fff;color:#20334f;font-size:15px;font-weight:800;cursor:pointer;transition:.15s ease
}
.phrase-letter-choice:hover{border-color:#adc6ff;background:#f3f7ff;color:#1769ff}
.phrase-letter-choice.used{opacity:.26;transform:scale(.94);cursor:default}

.phrase-quiz-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.phrase-quiz-option{
  min-height:58px;display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center;gap:10px;
  padding:10px 12px;border:1px solid #dfe6f0;border-radius:12px;background:#fff;color:#25354e;
  text-align:left;cursor:pointer;transition:.15s ease
}
.phrase-quiz-option>span{
  width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:8px;
  background:#eef4ff;color:#1769ff;font-size:12px;font-weight:850
}
.phrase-quiz-option b{font-size:13px;line-height:1.4}
.phrase-quiz-option:hover,.phrase-quiz-option.selected{border-color:#8fb4ff;background:#f3f7ff}
.phrase-quiz-option.correct{border-color:#7bc69f;background:#edf9f2}
.phrase-quiz-option.correct>span{background:#daf3e5;color:#168a53}
.phrase-quiz-option.wrong{border-color:#e7a1a1;background:#fff2f2}
.phrase-quiz-option.wrong>span{background:#ffe0e0;color:#c43b3b}

.phrase-fill-meaning{margin-bottom:12px;padding:12px 14px;border-radius:11px;background:#f1f5fb;color:#40506a;font-size:14px;font-weight:650}
.phrase-fill-input{
  width:100%;height:46px;padding:0 14px;border:1px solid #d9e2ef;border-radius:11px;background:#fff;
  color:#1d2e47;font-size:15px;outline:none
}
.phrase-fill-input:focus{border-color:#7ca8ff;box-shadow:0 0 0 3px rgba(23,105,255,.08)}
.phrase-practice-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}
.phrase-practice-actions button{height:38px;padding:0 16px;border-radius:9px;font-size:12.5px;font-weight:800;cursor:pointer}
.phrase-practice-reset{border:1px solid #dce4ef;background:#fff;color:#596a82}
.phrase-practice-check{border:1px solid #1769ff;background:#1769ff;color:#fff}
.phrase-practice-feedback{min-height:20px;margin:12px 0 0;text-align:right;font-size:12.5px;font-weight:700}
.phrase-practice-feedback.correct{color:#168a53}
.phrase-practice-feedback.wrong{color:#c64747}
.phrase-practice-empty{padding:20px;border-radius:12px;background:#f6f8fb;color:#738097;text-align:center;font-size:13px}

@media(max-width:640px){
  .phrase-practice-backdrop{padding:10px;align-items:flex-end}
  .phrase-practice-modal{max-height:92vh;border-radius:18px 18px 0 0;padding:20px 15px}
  .phrase-practice-heading h3{font-size:21px}
  .phrase-quiz-options{grid-template-columns:1fr}
  .phrase-letter-slot{width:25px;height:35px;font-size:16px}
  .phrase-arrange-answer{gap:9px}
  .phrase-letter-word{gap:3px}
}

/* Hiển thị đáp án theo từng từ: - ---- -- ---- */
.phrase-letter-word{gap:0}
.phrase-letter-slot{
  width:18px;height:34px;border:0;background:transparent;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  font-size:19px;line-height:34px
}
.phrase-letter-slot.filled{border:0}
@media(max-width:640px){
  .phrase-letter-slot{width:16px;height:32px;font-size:17px;line-height:32px}
}
