@import url("./style-20260718-qiju-seo-layout-v2.css");

/* The upstream responsive sheet clips recommendation rails after a fixed
   number of cards. SQL-paginated catalogue pages must expose every row. */
.xiazai-qiju-site-theme .module-list.qiju-paginated-list > .module-items > .module-item {
  display: block !important;
}

.xiazai-qiju-site-theme .qiju-detail-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.xiazai-qiju-site-theme .qiju-detail-hero-facts span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
}

.xiazai-qiju-site-theme .qiju-detail-hero-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.xiazai-qiju-site-theme .qiju-detail-hero-people,
.xiazai-qiju-site-theme .qiju-play-people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin-top: 16px;
}

.xiazai-qiju-site-theme .qiju-detail-hero-people > div,
.xiazai-qiju-site-theme .qiju-play-people > div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  background: rgba(255, 255, 255, .045);
}

.xiazai-qiju-site-theme .qiju-detail-hero-people span,
.xiazai-qiju-site-theme .qiju-play-people span {
  color: rgba(255, 255, 255, .5);
  font-size: 13px;
  font-weight: 500;
}

.xiazai-qiju-site-theme .qiju-detail-hero-people strong,
.xiazai-qiju-site-theme .qiju-play-people strong {
  min-width: 0;
  color: rgba(255, 255, 255, .86);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .xiazai-qiju-site-theme .qiju-detail-hero-summary {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .xiazai-qiju-site-theme .qiju-detail-hero-people,
  .xiazai-qiju-site-theme .qiju-play-people {
    grid-template-columns: 1fr;
  }

  .xiazai-qiju-site-theme .qiju-detail-hero-people > div,
  .xiazai-qiju-site-theme .qiju-play-people > div {
    grid-template-columns: 44px minmax(0, 1fr);
  }
}

/* 2026-07-30: restore a readable vertical failure UI after source flex resets. */
.xiazai-qiju-site-theme .qiju-player-screen [data-player-error="true"] {
  --qiju-player-error-icon-size: 48px;
  align-items: center !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  height: 100% !important;
  justify-content: center !important;
  margin: 0 !important;
  max-height: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  min-width: 0 !important;
  overflow: hidden;
  padding: 12px !important;
  text-align: center;
  width: 100% !important;
}

.xiazai-qiju-site-theme .qiju-player-screen [data-player-error="true"] > svg {
  display: block !important;
  flex: 0 0 var(--qiju-player-error-icon-size) !important;
  height: var(--qiju-player-error-icon-size) !important;
  max-height: var(--qiju-player-error-icon-size) !important;
  max-width: var(--qiju-player-error-icon-size) !important;
  min-height: var(--qiju-player-error-icon-size) !important;
  min-width: var(--qiju-player-error-icon-size) !important;
  width: var(--qiju-player-error-icon-size) !important;
}

.xiazai-qiju-site-theme .qiju-player-screen [data-player-error="true"] > p {
  flex: 0 1 auto !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.xiazai-qiju-site-theme .qiju-player-screen [data-player-error="true"] > button {
  align-items: center !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  flex-direction: row !important;
  font-size: 14px !important;
  gap: 8px !important;
  justify-content: center !important;
  line-height: 1.25 !important;
  max-width: 100%;
  min-height: 38px;
  padding: 8px 18px !important;
  white-space: nowrap;
  width: auto !important;
}

.xiazai-qiju-site-theme .qiju-player-screen [data-player-error="true"] > button > svg {
  flex: 0 0 16px !important;
  height: 16px !important;
  max-height: 16px !important;
  max-width: 16px !important;
  min-height: 16px !important;
  min-width: 16px !important;
  width: 16px !important;
}
