/* 2026-11-20：赛事地图、人物主页入口、非全屏适配 */

/* 赛事地图图片 */
.event-map-preview {
  position: relative;
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid #2b2e37;
  border-radius: 3px;
  background: #0b0c10;
}
.event-map-preview img {
  display: block;
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}
.event-map-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  pointer-events: none;
}
.event-map-caption .mono {
  color: #d5b477;
  font-size: 8px;
  letter-spacing: 0.14em;
}
.event-map-caption b {
  color: #fff;
  font-size: 20px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}
.event-map-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, rgba(4, 5, 8, 0.78) 100%);
}

/* 服主 / 俱乐部成员主页入口 */
.owner-profile-link,
.member-profile-link {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin-top: 12px !important;
  color: #d5b477 !important;
  font-size: 10px !important;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(213, 180, 119, 0.35);
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.owner-profile-link:hover,
.member-profile-link:hover {
  color: #fff3c6 !important;
  border-bottom-color: #fff3c6;
}
.member-card {
  display: flex;
  flex-direction: column;
}
.member-card .member-info {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.member-card .member-profile-link {
  margin-top: auto !important;
  align-self: flex-start;
}

/* 赛事编排：队伍配置编辑 */
.lineup-config {
  margin: 14px 0 16px;
  border: 1px solid #2b2e37;
  background: rgba(12, 13, 18, 0.72);
  padding: 10px 12px;
}
.lineup-config summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}
.lineup-config summary::-webkit-details-marker {
  display: none;
}
.lineup-config summary b {
  color: #fff;
  font-size: 13px;
}
.lineup-config summary .mono {
  color: #ff2fae;
  font-size: 9px;
  letter-spacing: 0.1em;
}
.lineup-config summary i {
  color: #8b8f9a;
  font-style: normal;
  font-size: 11px;
}
.lineup-config-rows {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.lineup-config-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 92px minmax(0, 1.6fr) 28px;
  gap: 8px;
  align-items: center;
}
.lineup-config-row .select {
  height: 34px;
  font-size: 12px;
}
.lineup-config-remove {
  width: 26px;
  height: 26px;
  border: 1px solid #3a3e49;
  background: transparent;
  color: #ff7b72;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.lineup-config-remove:hover {
  border-color: #ff7b72;
  background: rgba(255, 123, 114, 0.1);
}
.lineup-config-row .input {
  height: 34px;
  font-size: 12px;
}
.lineup-config-actions {
  margin-top: 10px;
}
.lineup-config-empty {
  margin: 14px 0 16px;
  padding: 12px 14px;
  border: 1px dashed #3a3e49;
  color: #9da2ad;
  font-size: 12px;
}

/* 赛事编辑：额外队伍动态行 */
.extra-troop-rows {
  display: grid;
  gap: 10px;
}
.extra-troop-row {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #2b2e37;
  background: rgba(10, 11, 15, 0.6);
}
.extra-troop-main,
.extra-troop-perm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 8px;
  align-items: center;
}
.extra-troop-main {
  grid-template-columns: minmax(0, 1fr) 120px 26px;
}
.extra-troop-perm {
  grid-template-columns: 1fr 1fr;
}
.extra-troop-row .input {
  font-size: 12px;
}
.extra-troop-row textarea.input {
  min-height: 56px;
  resize: vertical;
}
.extra-troop-actions {
  margin-top: 10px;
}

/* 后台玩家批量选择 */
.player-select {
  width: 15px;
  height: 15px;
  accent-color: #ff2fae;
  cursor: pointer;
}

/* 赛事编排：每名玩家的队伍配置（兵种） */
.lineup-role {
  width: 100%;
  height: 26px;
  margin-top: 6px;
  padding: 0 7px;
  font-size: 10px;
  background: rgba(10, 11, 15, 0.85);
  border-color: #30333d;
  color: #cfd2da;
}

/* ---------------- 非全屏 / 小窗口适配 ---------------- */
@media (max-width: 1180px) {
  /* V16 的桌面双栏规则在 1180 后覆盖了旧断点，导致标题被公示栏裁切 */
  .club-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 26px !important;
    align-items: start !important;
  }
  .club-hero-grid .club-hero-copy h1 {
    font-size: clamp(64px, 9.6vw, 110px) !important;
  }
  .home-bulletin {
    max-height: none !important;
  }
}

/* 非全屏时避免逐字开场在部分窗口宽度下停在中途，直接显示完整标题 */
@media (max-width: 1279px) {
  .club-hero h1 .tch {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
  }
  .cs-load {
    display: none !important;
  }
}

@media (max-width: 1280px) {
  .grid.grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .stat-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .pf-hero {
    gap: 18px !important;
  }
  .rk-podium {
    gap: 12px !important;
  }
  .page-head.pf-head h1,
  .page-head.srv-head h1,
  .page-head.team-head h1,
  .page-head.ev-head h1,
  .page-head.ev-detail-head h1 {
    font-size: clamp(34px, 4.2vw, 54px) !important;
  }
}

@media (max-width: 1024px) {
  .faction-grid,
  .board-grid {
    grid-template-columns: 1fr !important;
  }
  .stat-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .event-map-preview img {
    max-height: 280px;
  }
  .assign-layout {
    gap: 12px !important;
  }
  .member-card .member-bio {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 760px) {
  .grid.grid-3,
  .grid.grid-2 {
    grid-template-columns: 1fr !important;
  }
  .stat-tiles {
    grid-template-columns: 1fr 1fr !important;
  }
  .event-map-preview {
    margin: 12px 0;
  }
  .event-map-caption b {
    font-size: 16px;
  }
}
