/* =========================
   10) VOCAB TABLE MODAL
   ========================= */

.vt-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  font-family: inherit;
}

.vt-modal.is-open{ display: block !important; }

.vt-modal__overlay{
  position:absolute;
  inset:0;
  background: rgba(17, 24, 39, .22);
}

.vt-modal__dialog{
  position: relative;
  width: min(1360px, calc(100% - 18px));
  margin: 10px auto;
  background:#f7f7f8;
  border-radius: 0;
  overflow: hidden;
  box-shadow:none;
  display:flex;
  flex-direction: column;
  height: calc(100vh - 20px);
  max-height: calc(100vh - 20px);
}

.vt-modal__head{
  padding: 24px 34px 18px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 16px;
  flex: 0 0 auto;
  border-bottom: 1px solid #d9e1ea;
}

.vt-modal__title{
  flex:1 1 auto;
  min-width:0;
  text-align:left;
}

.vt-modal__titleTop{
  font-weight: 800;
  font-size: 28px;
  line-height: 1.15;
  color:#08364d;
}

.vt-modal__subtitle{
  margin-top: 10px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
  color:#5f6c7b;
}

.vt-modal__x{
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  border: 1px solid #dbe2ea;
  background:#fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  color:#12364d;
}
.vt-modal__x:hover{ background:#f3f6fb; }

.vt-modal__tabs{
  display:flex;
  align-items:center;
  gap: 42px;
  padding: 18px 34px 16px;
  border-bottom: 1px solid #d9e1ea;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: thin;
  flex: 0 0 auto;
}

.vt-modal__tabs::-webkit-scrollbar{
  height: 6px;
}

.vt-modal__tabs::-webkit-scrollbar-thumb{
  background: rgba(8,54,77,.18);
  border-radius: 999px;
}

.vt-tab{
  border: none;
  background: transparent;
  color:#586676;
  padding: 0;
  border-radius: 0;
  font-weight: 400;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.2;
  flex: 0 0 auto;
  white-space: nowrap;
  text-align: left;
}
.vt-tab.is-active{
  color:#495765;
  font-weight: 700;
}

.vt-modal__content{
  display:grid;
  grid-template-columns: 360px minmax(0, 1fr);
  flex: 1 1 auto;
  min-height: 0;
}

.vt-modal__left{
  background:#f7f7f8;
  padding: 28px 22px 22px 56px;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  min-height: 0;
  overflow: auto;
}

.vt-modal__imageWrap{
  width:100%;
  max-width:320px;
}

.vt-modal__image{
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
  border-radius:0;
}

.vt-modal__imagePlaceholder{
  width:100%;
  aspect-ratio: 1.25 / 1;
  background:#e9edf5;
  border-radius:8px;
}

.vt-modal__right{
  min-width:0;
  min-height:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:#f7f7f8;
}

.vt-modal__body{
  padding: 24px 34px 10px;
  overflow: auto;
  min-height: 0;
  flex: 1 1 auto;
}

.vt-tableTitle{
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
  color:#08364d;
  margin-bottom: 18px;
}

.vt-table{
  display:flex;
  flex-direction:column;
  text-align: left;
}

.vt-row{
  display:grid;
  grid-template-columns: 240px 140px minmax(0, 1fr) 72px;
  gap: 18px;
  align-items:center;
  padding: 22px 0;
  border-bottom: 1px solid #d9e1ea;
  background: transparent;
}

.vt-cell-word{
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color:#4a5968;
  word-break: break-word;
}

.vt-cell-transcription{
  font-weight: 400;
  font-size: 18px;
  line-height: 1.3;
  color:#596776;
  word-break: break-word;
}

.vt-cell-text{
  color:#5e6c7b;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.45;
  min-width:0;
}

.vt-cell-sub{
  margin-top: 6px;
  color:#7c8793;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.4;
}

.vt-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
}

.vt-icon-btn{
  width: 50px;
  height: 50px;
  border-radius: 999px;
  border: none;
  background:#eef1f7;
  cursor:pointer;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  flex: 0 0 auto;
}

.vt-icon-btn svg{
  width: 28px;
  height: 28px;
  fill:#4a55ff;
}

.vt-icon-btn:hover{
  background:#e7ebf5;
}

.vt-icon-btn.is-playing{
  background:#dde3f7;
}

.vt-modal__foot{
  padding: 20px 34px 22px;
  display:flex;
  justify-content:flex-end;
  flex: 0 0 auto;
  background:#f7f7f8;
}

.vt-btn{
  min-width: 162px;
  height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  border: none;
  background:#073c59;
  color:#fff;
  font-size: 16px;
  font-weight: 700;
  cursor:pointer;
}
.vt-btn:hover{ opacity:.95; }

@media (max-width: 1100px){
  .vt-modal__content{
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .vt-row{
    grid-template-columns: 200px 120px minmax(0, 1fr) 64px;
  }
}

@media (max-width: 860px){
  .vt-modal__dialog{
    width: min(100%, calc(100% - 10px));
    margin: 5px auto;
    height: calc(100vh - 10px);
    max-height: calc(100vh - 10px);
  }

  .vt-modal__head{
    padding: 18px 18px 14px;
  }

  .vt-modal__title{
    text-align:left;
  }

  .vt-modal__tabs{
    gap: 18px;
    padding: 14px 18px;
  }

  .vt-modal__content{
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .vt-modal__left{
    padding: 18px 18px 0;
    overflow: visible;
    flex: 0 0 auto;
  }

  .vt-modal__imageWrap{
    max-width: 280px;
    margin: 0 auto;
  }

  .vt-modal__body{
    padding: 18px;
  }

  .vt-modal__foot{
    padding: 18px;
  }

  .vt-row{
    grid-template-columns: 1fr;
    gap: 10px;
    align-items:start;
  }

  .vt-actions{
    justify-content:flex-start;
  }
}

@media (max-width: 640px) {
    .vt-modal__dialog {
        width: 100%;
        margin: 0px;
        height: calc(100vh - 10px);
        max-height: calc(100vh - 10px);
    }
}