.fox-hantu-card {
    position: relative;
    display: grid;
    gap: 10px;
    grid-template-columns: 40px 1fr 1fr 1fr;
    align-items: center;
    background: #fff;
    border: 1px solid #e9e9ea;
    border-radius: 12px;
    padding: 10px;
    margin: 15px 0;
    border-left: 3px solid #5989cf;
}

  .fox-hantu-card-index span {
    display: flex;
    text-align: center;
    color: #5989cf;
    background: #fff;
    justify-content: center;
    align-items: center;
    align-content: center;
}

  .fox-hantu-pinyin {
    color: #777;
    margin-top: 4px;
    font-style: italic;
  }

  .fox-hantu-tag {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
  }

  .fox-hantu-edit-btn {
    margin-left: auto;
    cursor: pointer;
    opacity: 0.9;
  }

  .fox-hantu-edit-btn svg {
    width: 28px;
    height: 28px;
    color: #c30e0e;
  }


.fox-hantu-vidu span {
    position: absolute;
    top: -15px;
    background: #fff;
    padding: 2px 10px;
    font-weight: bold;
    color: #41a577;
}
.fox-hantu-vidu {
    padding: 15px 10px 10px 10px;
    border: 2px dashed #41a577;
    border-radius: 10px;
    position: relative;
    margin: 20px 0px;
}

/* Hiển thị nhiều ô HanziWriter cạnh nhau trong khung hình */
.hantu-box-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    text-align: center;
}

.hantu-box-hinh {
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
}
.hantu-char {
    border: 3px solid #dfdfdf;
    border-radius: 10px;
    margin-bottom: 10px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.hantu-char svg {
    position: relative;
    z-index: 1;
}

/* Đường kẻ dấu cộng ở giữa ô chữ */
.hantu-char::before,
.hantu-char::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #e0e0e0;
    pointer-events: none;
}

/* Đường kẻ dọc */
.hantu-char::before {
    width: 1px;
    height: 100%;
}

/* Đường kẻ ngang */
.hantu-char::after {
    width: 100%;
    height: 1px;
}

div#character-target-div {
    border: 2px solid #ccc;
    border-radius: 10px;
    margin: auto;
}

.hantu-box-nut {
    width: 200px;
    display: flex;
    gap: 10px;
    align-content: center;
    justify-content: center;
    align-items: center;
    margin: auto;
}

.hantu-box-nut button {
    height: 50px;
    width: 50px;
    border-radius: 100%;
    color: #cc1111;
    background: none;
    border: 2px solid #cc1111;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    align-content: center;
}
.hantu-box-nut button:hover{
    background: #ff5d96;
    color: #fff;
}

.hantu-box-nut button svg{
  width:25px;
  height:25px;
}

/* Nút 1 và 3 nhỏ hơn */
.hantu-box-nut button:first-child,
.hantu-box-nut button:last-child {
    height: 40px;
    width: 40px;
}

.hantu-box-nut button:first-child svg,
.hantu-box-nut button:last-child svg {
  width:20px;
  height:20px;
}
.foxhan-view {
  text-align: center;
  margin-top: 10px;
}
.foxhan-view span{
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid #ccc;
  color:#777;
  border-radius: 5px;
  font-size: 14px;
}

.fox-hantu-luyen-img {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
}

.fox-hantu-luyen-img img{
    width: 100%;
    max-width: 500px;
}