:root {
  color-scheme: light;
  --ink: #101723;
  --muted: #737b89;
  --line: #e7e9ee;
  --card: #ffffff;
  --red: #bf1e2e;
  --gold: #c79a4b;
  --blue: #1e5cff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f3f5f8;
  color: var(--ink);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.team-shell {
  width: min(100%, 960px);
  margin: 0 auto;
  padding-bottom: 34px;
}

.team-nav {
  position: sticky;
  top: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.team-nav img {
  width: 132px;
}

.team-nav a {
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.team-nav a:last-child {
  text-align: right;
}

.club-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  min-height: 430px;
  padding: 56px 18px 22px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(14, 21, 34, 0.92), rgba(45, 20, 27, 0.82)),
    url("./assets/hengdu/hengdu-banner.jpg") center / cover;
}

.eyebrow,
.section-head span {
  color: #ffb4be;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.club-copy h1 {
  margin: 14px 0 12px;
  font-size: clamp(58px, 16vw, 110px);
  line-height: 0.92;
  letter-spacing: 0;
}

.club-copy p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.65;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero-tags span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 900;
}

.score-board {
  align-self: end;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.score-board span,
.score-board em {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-style: normal;
  font-weight: 800;
}

.score-board strong {
  display: block;
  margin: 8px 0;
  font-size: 74px;
  line-height: 0.95;
}

.score-board p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
}

.watch-tip,
.section-head,
.rating-board,
.stats-panel,
.fan-zone {
  margin: 14px 16px 0;
}

.watch-tip {
  padding: 14px 16px;
  border: 1px solid rgba(191, 30, 46, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff1f2, #fff7ed);
  box-shadow: 0 12px 28px rgba(191, 30, 46, 0.08);
}

.watch-tip strong,
.watch-tip span {
  display: block;
}

.watch-tip strong {
  color: var(--red);
  font-size: 18px;
  font-weight: 900;
}

.watch-tip span {
  margin-top: 6px;
  color: #7f1d1d;
  font-size: 13px;
  line-height: 1.55;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.section-head h2 {
  margin: 4px 0 0;
  font-size: 28px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.rating-board {
  display: grid;
  gap: 10px;
}

.rating-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(16, 23, 35, 0.08);
}

.rating-avatar {
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 50%;
  background: #eef2f7;
}

.rating-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rating-main {
  min-width: 0;
}

.rating-main strong {
  display: block;
  font-size: 17px;
}

.rating-main span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.rating-score {
  min-width: 82px;
  text-align: right;
}

.rating-score span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.rating-score strong {
  display: block;
  color: var(--red);
  font-size: 20px;
  line-height: 1;
  white-space: nowrap;
}

.rating-score em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.discussion-window {
  grid-column: 2 / 4;
  padding: 10px;
  border: 1px solid #ffe2e5;
  border-radius: 8px;
  background: #fff8f8;
}

.rating-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 10px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.rating-meta span:last-child {
  color: var(--red);
}

.rating-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.rating-actions button {
  display: grid;
  gap: 1px;
  place-items: center;
  min-height: 34px;
  border: 1px solid #ffd4d8;
  border-radius: 8px;
  color: var(--red);
  background: #fff5f6;
  font-size: 13px;
  font-weight: 900;
}

.rating-actions button.is-picked {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.player-card {
  position: relative;
  min-height: 248px;
  overflow: hidden;
  padding: 12px;
  border-radius: 8px;
  color: #fff;
  text-align: left;
  background: linear-gradient(155deg, #101723, #263142);
  box-shadow: 0 18px 38px rgba(16, 23, 35, 0.16);
}

.player-card.captain {
  background: linear-gradient(155deg, #bf1e2e, #101723);
}

.player-card img,
.avatar-initial {
  display: block;
  width: 100%;
  height: 132px;
  border-radius: 8px;
  object-fit: cover;
  object-position: top;
  background: rgba(255, 255, 255, 0.12);
}

.player-card img {
  filter: saturate(1.08) contrast(1.04);
}

.avatar-initial {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 58px;
  font-weight: 900;
}

.player-card span {
  display: inline-flex;
  margin-top: 12px;
  padding: 5px 8px;
  border-radius: 8px;
  color: #101723;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.player-card strong {
  display: block;
  margin-top: 10px;
  font-size: 22px;
}

.player-card em {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.player-card.has-no-video {
  color: var(--ink);
  background: #fff;
}

.player-card.has-no-video span {
  color: #fff;
  background: #94a3b8;
}

.player-card.has-no-video em {
  color: var(--muted);
}

.highlight-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.highlight-card {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(16, 23, 35, 0.1);
  cursor: pointer;
}

.highlight-card div:last-child {
  padding: 14px;
}

.highlight-card strong {
  display: block;
  font-size: 18px;
}

.highlight-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.thumb {
  position: relative;
  display: grid;
  height: 150px;
  place-items: center;
  color: #fff;
  background: #111827;
}

.thumb::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
}

.thumb span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 900;
}

.video-thumb {
  overflow: hidden;
  background: #111827;
}

.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.06);
}

.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 23, 35, 0.1), rgba(16, 23, 35, 0.5));
}

.court-red { background: linear-gradient(135deg, #bf1e2e, #111827); }
.court-blue { background: linear-gradient(135deg, #1e5cff, #111827); }
.court-gold { background: linear-gradient(135deg, #c79a4b, #111827); }

.stats-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stats-panel div,
.fan-zone {
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(16, 23, 35, 0.08);
}

.stats-panel span,
.stats-panel em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.stats-panel strong {
  display: block;
  margin: 8px 0;
  color: var(--red);
  font-size: 42px;
  line-height: 1;
}

.fan-zone h2 {
  margin: 0 0 12px;
}

.fan-zone p {
  margin: 10px 0 0;
  padding: 12px;
  border-radius: 8px;
  color: #334155;
  background: #f8fafc;
  line-height: 1.6;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
}

.video-modal[hidden] {
  display: none;
}

.modal-card {
  width: min(100%, 760px);
  max-height: min(92vh, 860px);
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.modal-close {
  float: right;
  margin: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #fff;
  background: #111827;
  font-weight: 900;
}

.video-stage {
  clear: both;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 58vh;
  color: #fff;
  background:
    linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, 0.18) 50%, transparent 51%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 0 14%, transparent 15%),
    linear-gradient(135deg, #111827, #bf1e2e);
}

.modal-copy {
  padding: 18px;
}

.modal-copy span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.modal-copy h2 {
  margin: 8px 0;
}

.modal-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.clip-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 18px 18px;
}

.clip-list button {
  flex: 0 0 auto;
  min-width: 78px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #f8fafc;
  font-size: 12px;
  font-weight: 900;
}

.clip-list button.is-active {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}

@media (max-width: 760px) {
  .club-hero {
    grid-template-columns: 1fr;
  }

  .score-board {
    align-self: auto;
  }

  .stats-panel {
    grid-template-columns: 1fr;
  }

  .player-card {
    min-height: auto;
  }

  .player-card img,
  .avatar-initial {
    height: 190px;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 6px;
  }

  .rating-card {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    padding: 11px;
  }

  .rating-avatar {
    width: 52px;
    height: 52px;
  }

  .rating-actions {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .discussion-window {
    grid-column: 1 / 4;
  }

  .modal-card {
    max-height: 90vh;
    overflow-y: auto;
  }
}
