.bangumi-tabs {
  margin-bottom: 15px;
  margin-top: 15px;
  display: flex;
  justify-content: center;
  background-color: #fff9f5d9;
  padding: 5px 5px;
  border-radius: 8px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
 }

.bangumi-tab {
  padding: 10px 20px;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  border: none;
  background-color: transparent;
  color: #000;
  margin: 5px;
  border-radius: 8px;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
  font-weight: bold;
}

a.bangumi-tab {
  text-decoration: none;
}

.bangumi-active {
  background-color: #fafafa;
  color: #005080;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-weight: bold;
}

.bangumi-tab:hover {
  background-color: #87A1C7;
}

.bangumi-item {
  position: relative;
  clear: both;
  padding: 15px;
  margin: 15px;
  height: fit-content;
  background-color: #fff9f5d9;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  transform: translateZ(0);
  transition: transform 0.3s, box-shadow 0.3s;
}

[data-theme="dark"] .bangumi-item {
  background-color: #48484842;
}

[data-theme="dark"] .bangumi-tabs {
  background-color: #48484842;
}

@media screen and (max-width: 600px) {
  .bangumi-item {
    width: 95%;
  }
}

.bangumi-block {
  min-height: 180px;
}

.bangumi-picture {
  display: flex !important;
  justify-content: center;
  align-items: center;
  padding-left: 20px;
  width: 130px;
  height: auto;
}

.bangumi-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

.bangumi-info {
  padding-left: 150px;
  margin-top: 10px;
}

.bangumi-title {
  font-size: 1.2rem;
}

.bangumi-title a {
  line-height: 1;
  text-decoration: none;
}

.bangumi-meta {
  font-size:13px;
  padding-right:10px;
  height:45px
}

.bangumi-comments {
  font-size: 0.92rem;
  margin-top:12px
}

.bangumi-comments>p {
  word-break: break-all;
  text-overflow: ellipsis;
  overflow: hidden;

  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.bangumi-pagination {
  margin-top: 15px;
  text-align: center;
  margin-bottom: 10px;
}

.bangumi-button {
  padding: 5px;
  font-weight: bold;
}

.bangumi-hide {
  display: none;
}

.bangumi-show {
  display: block;
}

.bangumi-info-items {
  font-size: 0.92rem;
  color: #005080;
  padding-top: 10px;
  line-height: 1;
  float: left;
  width: 100%;
}

.bangumi-item:hover {
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

.bangumi-info-item {
  display: inline-block;
  width: 13%;
  border-right: 1px solid #005080;
  text-align: center;
  height: 34px;
}

.bangumi-info-label {
  display: block;
  line-height: 12px;
}

.bangumi-info-item em {
  display: block;
  padding-top: 6px;
  line-height: 17px;
  font-style: normal;
  font-weight: 700;
}

.bangumi-info-total {
  padding-top: 11px;
  display: block;
  line-height: 12px;
  font-weight: bold;
}

.bangumi-info-item-score {
  border-right: 1px solid #0000;
  width: 50px;
}

.bangumi-info-label-em {
  color: rgba(0, 0, 0, 0);
  opacity: 0;
  visibility: hidden;
  line-height: 6px !important;
  padding: 0 !important;
}

@media (max-width:650px) {

  .bangumi-coin,
  .bangumi-type {
    display: none;
  }

  .bangumi-info-item {
    width: 16%;
  }
}

@media (max-width:590px) {

  .bangumi-danmaku,
  .bangumi-wish {
    display: none;
  }

  .bangumi-info-item {
    width: 19%;
  }
}

@media (max-width:520px) {

  .bangumi-play,
  .bangumi-doing {
    display: none;
  }

  .bangumi-info-item {
    width: 24%;
  }
}

@media (max-width:480px) {

  .bangumi-follow,
  .bangumi-collect {
    display: none;
  }

  .bangumi-info-item {
    width: 30%;
  }
}

@media (max-width:400px) {
  .bangumi-area {
    display: none;
  }

  .bangumi-info-item {
    width: 45%;
  }
}

.bangumi-my-comments {
  padding: 3px;
  margin-left: 5px;
}

.bangumi-starstop {
  background: transparent url(https://cdn.jsdelivr.net/npm/[email protected]/lib/img/rate_star_2x.png);
  height: 10px;
  background-size: 10px 19.5px;
  background-position: 100% 100%;
  background-repeat: repeat-x;
  width: 50px;
  display: inline-block;
  float: none;
}

.bangumi-starlight {
  background: transparent url(https://cdn.jsdelivr.net/npm/[email protected]/lib/img/rate_star_2x.png);
  height: 10px;
  background-size: 10px 19.5px;
  background-position: 100% 100%;
  background-repeat: repeat-x;
  display: block;
  width: 100%;
  background-position: 0 0;
}

.bangumi-starlight.stars1 {
  width: 5px;
}

.bangumi-starlight.stars2 {
  width: 10px;
}

.bangumi-starlight.stars3 {
  width: 15px;
}

.bangumi-starlight.stars4 {
  width: 20px;
}

.bangumi-starlight.stars5 {
  width: 25px;
}

.bangumi-starlight.stars6 {
  width: 30px;
}

.bangumi-starlight.stars7 {
  width: 35px;
}

.bangumi-starlight.stars8 {
  width: 40px;
}

.bangumi-starlight.stars9 {
  width: 45px;
}

.bangumi-starlight.stars10 {
  width: 50px;
}

/* 修改 .bangumi-summary 段落的样式，增加左右内边距 */
.bangumi-summary p.has-bangumi-progress {
  padding-right: 10px; /* 增加右边距，使其离边框远一些 */
}

.bangumi-tabs .bangumi-tab.bangumi-active {
    color: #fff !important;
}

.bangumi-picture img {
    border-radius: 8px !important;
    overflow: hidden; /* 确保图片不会超出圆角边界 */
}
