/* 公開打手陣容 */

.hitters-page {
  max-width: 80rem;
  margin-inline: auto;
  padding-bottom: 2.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hitters-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin: 0 auto 1.5rem;
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid var(--qe-border);
  border-radius: var(--qe-radius);
  background: rgba(17, 24, 39, 0.72);
  box-sizing: border-box;
  width: 100%;
}

.hitters-toolbar__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
@media (min-width: 768px) {
  .hitters-toolbar__top {
    grid-template-columns: minmax(0, 1fr) 12.5rem;
    align-items: stretch;
  }
}

.hitters-search {
  position: relative;
  width: 100%;
}
.hitters-search__icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  pointer-events: none;
  font-size: 0.9rem;
}
.hitters-search input {
  width: 100%;
  box-sizing: border-box;
  height: 2.75rem;
  padding: 0 2.5rem 0 2.55rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  color: var(--qe-text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.hitters-search input::-webkit-search-decoration,
.hitters-search input::-webkit-search-cancel-button,
.hitters-search input::-webkit-search-results-button,
.hitters-search input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.hitters-search input::placeholder {
  color: #6b7280;
  opacity: 1;
}
.hitters-search input:hover {
  border-color: rgba(255, 255, 255, 0.2);
}
.hitters-search input:focus {
  border-color: rgba(0, 212, 255, 0.55);
  background: rgba(0, 0, 0, 0.4);
}
.hitters-search__clear {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.85rem;
  height: 1.85rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  padding: 0;
}
.hitters-search__clear.is-visible { display: inline-flex; }
.hitters-search__clear:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hitters-sort { width: 100%; }
.hitters-sort__control { position: relative; height: 100%; }
.hitters-sort select {
  width: 100%;
  height: 2.75rem;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  padding: 0 2.2rem 0 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    rgba(0, 0, 0, 0.28)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239ca3af' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E")
    no-repeat right 0.85rem center;
  color: var(--qe-text);
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.hitters-sort select:hover {
  border-color: rgba(255, 255, 255, 0.2);
}
.hitters-sort select:focus {
  border-color: rgba(0, 212, 255, 0.55);
  background-color: rgba(0, 0, 0, 0.4);
}
.hitters-sort select option {
  background: #111827;
  color: #f8fafc;
}

.hitters-filters {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.hitters-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.hitters-filter-label {
  width: 100%;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--qe-muted);
  letter-spacing: 0;
  text-transform: none;
  margin: 0.15rem 0 0;
}
.hitters-filter-row .qe-chip {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
}

.hitters-meta {
  text-align: center;
  color: #9ca3af;
  font-size: 0.85rem;
  margin: 0 auto 1rem;
  min-height: 1.25rem;
  box-sizing: border-box;
  width: 100%;
}

.hitters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 280px));
  justify-content: center;
  align-items: start;
  gap: 1.15rem;
  width: 100%;
}

.hitters-card {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: var(--qe-radius);
  overflow: hidden;
  border: 1px solid var(--qe-border);
  background: #111;
  transition: transform 0.2s, border-color 0.2s;
}
.hitters-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 212, 255, 0.5);
}
.hitters-card__cover {
  display: block;
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
  overflow: hidden;
}
.hitters-card__cover--empty {
  background: #6b7280;
}
.hitters-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hitter-detail__cover {
  border-radius: var(--qe-radius);
  overflow: hidden;
  border: 1px solid var(--qe-border);
  background: #111;
  margin-bottom: 1.5rem;
}
.hitter-detail__cover img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.hitter-detail__cover--empty {
  aspect-ratio: 16 / 9;
  max-height: 420px;
  background: #6b7280;
}
.hitters-card__body {
  padding: 0.85rem 0.95rem 1rem;
}
.hitters-card__name {
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hitters-card__rank {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #041018;
  background: var(--qe-brand);
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
  margin-bottom: 0.45rem;
}
.hitters-card__bio {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
  margin: 0 0 0.45rem;
  color: #cbd5e1;
  font-size: 0.82rem;
  line-height: 1.45;
}
.hitters-card__bio--empty {
  color: #6b7280;
  font-style: italic;
}
.hitters-card__rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #fbbf24;
  font-size: 0.85rem;
  font-weight: 700;
}
.hitters-card__rating .muted {
  color: #6b7280;
  font-weight: 500;
}

.hitters-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #6b7280;
  padding: 3rem 1rem;
  border: 2px dashed #334155;
  border-radius: 12px;
}
.hitters-empty i {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.hitters-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin: 1.75rem auto 0.5rem;
  box-sizing: border-box;
  width: 100%;
}
.hitters-pager button {
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--qe-border);
  background: rgba(17, 24, 39, 0.9);
  color: #e5e7eb;
  cursor: pointer;
  font-size: 0.88rem;
}
.hitters-pager button:hover:not(:disabled) {
  border-color: rgba(0, 212, 255, 0.45);
  color: #fff;
}
.hitters-pager button.is-active {
  background: var(--qe-brand);
  border-color: var(--qe-brand);
  color: #041018;
  font-weight: 800;
}
.hitters-pager button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 詳情評價 */
.hitter-detail-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1rem;
  color: #fbbf24;
  font-weight: 700;
}
.hitter-detail-rating .label {
  color: #cbd5e1;
  font-weight: 600;
}
.hitter-detail-rating .muted { color: #9ca3af; font-weight: 500; }

.hitter-reviews { margin-top: 0.5rem; }
.hitter-review {
  border: 1px solid var(--qe-border);
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.75);
  padding: 0.9rem 1rem;
  margin: 0 0 0.75rem;
}
.hitter-review__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
}
.hitter-review__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  min-width: 0;
}
.hitter-review__boss {
  color: #e5e7eb;
  font-weight: 700;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hitter-review__stars { color: #fbbf24; font-weight: 700; }
.hitter-review__time { color: #6b7280; flex-shrink: 0; }
.hitter-review__text {
  margin: 0;
  color: #d1d5db;
  white-space: pre-wrap;
  line-height: 1.65;
  font-size: 0.95rem;
}
.hitter-review__text.is-empty {
  color: #6b7280;
  font-style: italic;
}
.hitter-reviews__empty {
  color: #6b7280;
  margin: 0;
}
