:root {
  --bg-deep: #071327;
  --bg-mid: #12315a;
  --card: rgba(10, 25, 45, 0.86);
  --line: rgba(135, 178, 255, 0.24);
  --text: #edf4ff;
  --muted: #acc2dd;
  --accent: #f4b63b;
  --accent-2: #6da8ff;
  --danger: #ff6f61;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: radial-gradient(circle at 12% 18%, #1f4f8a 0%, transparent 38%),
    radial-gradient(circle at 85% 0%, #3c2a70 0%, transparent 36%),
    linear-gradient(160deg, var(--bg-deep), var(--bg-mid) 60%, #123863 100%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

main,
.section,
.hero-content,
.site-footer {
  overflow-wrap: anywhere;
}

.page-glow {
  position: fixed;
  inset: -25% -20% auto;
  height: 60vh;
  pointer-events: none;
  background: radial-gradient(circle, rgba(109, 168, 255, 0.2), transparent 68%);
  filter: blur(18px);
  z-index: -1;
}

.site-header,
main,
.site-footer {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.9rem clamp(10px, 2.8vw, 20px) 0.7rem;
  background: linear-gradient(180deg, rgba(4, 15, 32, 0.96), rgba(4, 15, 32, 0.85));
  backdrop-filter: blur(7px);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.team-logo {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(109, 168, 255, 0.2);
}

.kicker {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.72rem;
}

#brandName,
.brand-title,
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
  font-weight: 400;
}

#brandName,
.brand-title {
  font-size: 2rem;
  line-height: 1;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(8, 22, 41, 0.92);
  color: var(--text);
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.primary-nav a {
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(135, 178, 255, 0.2);
  background: rgba(8, 24, 45, 0.66);
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  font-size: 0.8rem;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.primary-nav a:hover {
  border-color: var(--accent-2);
  transform: translateY(-1px);
}

.primary-nav a.is-active {
  color: #0f1f38;
  border-color: #f8cd72;
  background: linear-gradient(90deg, #9cc9ff, #f8cd72);
  font-weight: 700;
}

.primary-nav .nav-npl-btn {
  color: #0f1f38;
  background: linear-gradient(90deg, #f4b63b, #f8cd72);
  border-color: #f4b63b;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.primary-nav .nav-npl-btn:hover {
  background: linear-gradient(90deg, #f8cd72, #f4b63b);
  border-color: #f8cd72;
  transform: translateY(-1px);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.quick-links a {
  text-decoration: none;
  color: var(--text);
  padding: 0.34rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.73rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.quick-links a:hover {
  transform: translateY(-1px);
  border-color: var(--accent-2);
}

main {
  padding: 0 clamp(10px, 2.8vw, 20px) 3rem;
}

.page-hero {
  margin-top: 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem;
  background: linear-gradient(145deg, rgba(10, 31, 58, 0.9), rgba(13, 39, 70, 0.82));
}

.page-hero h1 {
  margin: 0.2rem 0 0.35rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.page-hero p:last-child {
  margin: 0;
  color: #dbe8ff;
}

.hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 0.6rem;
  min-height: 40vh;
  display: flex;
  align-items: flex-end;
  background-color: #1c3560;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 8, 20, 0.1), rgba(2, 10, 24, 0.72));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 1.25rem 1.2rem;
  width: min(760px, 100%);
}

#heroTitle {
  font-size: clamp(2.1rem, 5.5vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0.25rem 0 0.4rem;
}

#heroSubtitle {
  margin: 0;
  color: #dce9ff;
  font-size: 0.98rem;
  max-width: 60ch;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.hero-meta span {
  border: 1px solid rgba(255, 255, 255, 0.34);
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  color: #eff5ff;
}

.hub-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.hub-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(135, 178, 255, 0.24);
  border-radius: var(--radius-md);
  padding: 0.8rem;
  background: linear-gradient(145deg, rgba(9, 35, 24, 0.88), rgba(17, 54, 37, 0.8));
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hub-card:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 182, 59, 0.48);
}

.hub-card h3 {
  margin: 0;
  font-size: 1.3rem;
}

.hub-card p {
  margin: 0.35rem 0 0;
  color: #d6e5ff;
  font-size: 0.8rem;
}

.stats-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.stat-card {
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(6, 34, 23, 0.9), rgba(13, 48, 33, 0.9));
}

.stat-card .label {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.stat-card .value {
  margin: 0.2rem 0 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  font-size: 1.8rem;
}

.section {
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  padding: 1rem;
  backdrop-filter: blur(8px);
}

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

.section-head h2,
.section-head h3 {
  font-size: 2rem;
}

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

.honours-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem;
}

.honour-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  background: linear-gradient(140deg, rgba(8, 40, 26, 0.9), rgba(18, 54, 37, 0.88));
}

.honour-card .title {
  margin: 0;
  font-weight: 800;
  font-size: 0.95rem;
}

.honour-card .tag {
  display: inline-flex;
  margin-top: 0.5rem;
  border-radius: 999px;
  font-size: 0.78rem;
  padding: 0.22rem 0.55rem;
  color: #0f1f38;
  background: var(--accent);
  font-weight: 700;
}

.season-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.season-panel {
  border: 1px solid rgba(135, 178, 255, 0.24);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  background: rgba(8, 32, 21, 0.7);
}

.season-title {
  font-size: 1.45rem;
}

.countdown-card {
  margin-top: 0.65rem;
  border: 1px solid rgba(244, 182, 59, 0.4);
  border-radius: 14px;
  padding: 0.72rem;
  background: linear-gradient(145deg, rgba(22, 58, 40, 0.85), rgba(8, 32, 21, 0.88));
}

.countdown-label {
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.countdown-match {
  margin: 0.2rem 0 0;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
}

.countdown-meta {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.countdown-grid {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.countdown-grid div {
  text-align: center;
  border-radius: 12px;
  border: 1px solid rgba(135, 178, 255, 0.24);
  background: rgba(9, 35, 23, 0.85);
  padding: 0.42rem 0.3rem;
}

.countdown-grid span {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.05em;
  font-size: 1.65rem;
  line-height: 1;
}

.countdown-grid small {
  color: var(--muted);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.countdown-status {
  min-height: 1.1rem;
  margin: 0.48rem 0 0;
  color: #e7efff;
  font-size: 0.76rem;
}

.leaderboard-grid {
  margin-top: 0.65rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.rank-card {
  border: 1px solid rgba(135, 178, 255, 0.2);
  border-radius: 12px;
  padding: 0.55rem;
  background: rgba(10, 36, 24, 0.72);
}

.rank-card h5 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
}

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.32rem;
}

.rank-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.35rem;
  border-radius: 8px;
  background: rgba(13, 40, 27, 0.75);
}

.rank-pos {
  font-weight: 800;
  color: var(--accent);
}

.rank-name {
  font-size: 0.8rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-val {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.controls {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

input,
select {
  border: 1px solid var(--line);
  background: rgba(7, 29, 19, 0.9);
  color: var(--text);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  font: inherit;
}

input {
  min-width: 240px;
  flex: 1;
}

.players-grid {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.8rem;
  align-items: start;
}

.player-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(7, 27, 18, 0.88);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.player-card:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 182, 59, 0.48);
}

.player-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #112849;
}

.player-body {
  padding: 0.7rem;
}

.player-top {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
}

.player-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.player-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--accent);
  height: fit-content;
}

.player-meta {
  margin-top: 0.45rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}

.player-meta div {
  background: rgba(14, 44, 29, 0.7);
  border-radius: 10px;
  padding: 0.34rem;
  text-align: center;
}

.player-meta .n {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.25rem;
  line-height: 1;
}

.player-meta .l {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.player-detail {
  margin: 0.45rem 0 0;
  color: #dbe8ff;
  font-size: 0.74rem;
}

.player-actions {
  margin-top: 0.55rem;
}

.load-more-wrap {
  margin-top: 0.85rem;
  display: flex;
  justify-content: center;
}

.load-more-btn {
  min-width: 220px;
}

.stats-btn {
  border: 1px solid rgba(244, 182, 59, 0.55);
  background: linear-gradient(140deg, rgba(244, 182, 59, 0.2), rgba(109, 168, 255, 0.2));
  color: #f8ffd9;
  border-radius: 999px;
  padding: 0.28rem 0.68rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.stats-btn:hover {
  border-color: var(--accent);
}

.table-wrap {
  margin-top: 0.95rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-wrap h3,
.table-wrap h4 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.simple-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.simple-table th,
.simple-table td {
  padding: 0.58rem;
  text-align: left;
  border-bottom: 1px solid rgba(135, 178, 255, 0.12);
  font-size: 0.82rem;
  vertical-align: top;
  word-break: break-word;
}

.simple-table thead th {
  color: #0f1f38;
  background: linear-gradient(90deg, #95c6ff, #ffd676);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.68rem;
}

.simple-table tr:last-child td {
  border-bottom: none;
}

.compact-table th,
.compact-table td {
  padding: 0.44rem;
  font-size: 0.75rem;
}

.table-wrap.compact {
  margin-top: 0.8rem;
}

.mini-title {
  margin: 0 0 0.4rem;
  color: #e1ebff;
  font-size: 1.05rem;
}

.simple-table tr.is-next td {
  background: rgba(244, 182, 59, 0.12);
}

.fixture-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.fixture-status.next {
  color: #0e213f;
  background: #f8c965;
}

.fixture-status.upcoming {
  color: #dfebff;
  border: 1px solid rgba(135, 178, 255, 0.4);
}

.fixture-status.completed {
  color: #0f1f38;
  background: rgba(178, 194, 224, 0.86);
}

.fixture-status.match-day {
  color: #fff4eb;
  background: #ca5f35;
}

.ops-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.ops-grid.single {
  grid-template-columns: 1fr;
}

.ops-card {
  border: 1px solid rgba(135, 178, 255, 0.24);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  background: rgba(9, 33, 22, 0.72);
}

.ops-subtext {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.ops-actions {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ops-btn {
  border: 1px solid rgba(109, 168, 255, 0.55);
  background: linear-gradient(140deg, rgba(109, 168, 255, 0.22), rgba(29, 119, 242, 0.22));
  color: var(--text);
  border-radius: 999px;
  padding: 0.34rem 0.72rem;
  font-size: 0.77rem;
  font-weight: 700;
  cursor: pointer;
}

.ops-btn:hover {
  border-color: #9ff0c8;
}

.ops-status {
  min-height: 1.1rem;
  margin: 0.55rem 0 0;
  font-size: 0.75rem;
  color: #dce8ff;
}

.instagram-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.insta-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(10, 25, 45, 0.86);
}

.insta-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.insta-body {
  padding: 0.65rem;
}

.insta-date {
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
}

.insta-caption {
  margin: 0.35rem 0 0;
  color: #ebf2ff;
  font-size: 0.8rem;
}

.insta-meta {
  margin-top: 0.45rem;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.72rem;
}

.site-footer {
  padding: 1rem clamp(10px, 2.8vw, 20px) 2.3rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  padding: 0.7rem;
  font-size: 0.86rem;
}

body.modal-open {
  overflow: hidden;
}

.player-stats-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
}

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

.player-stats-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 8, 6, 0.75);
  backdrop-filter: blur(2px);
  cursor: pointer;
}

.player-stats-dialog {
  position: relative;
  width: min(1080px, 94vw);
  max-height: 88vh;
  margin: 4vh auto 0;
  background: linear-gradient(180deg, rgba(6, 30, 20, 0.98), rgba(11, 39, 27, 0.98));
  border: 1px solid rgba(135, 178, 255, 0.28);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.player-stats-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(135, 178, 255, 0.2);
  background: rgba(14, 46, 30, 0.65);
}

.player-stats-head h3 {
  font-size: 1.9rem;
}

.player-stats-close {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  font-size: 1.4rem;
  line-height: 1;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
}

.player-stats-content {
  padding: 0.9rem 1rem 1.2rem;
  overflow: auto;
}

.stats-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
}

.stats-summary .item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem;
  background: rgba(15, 45, 30, 0.7);
}

.stats-summary .item .label {
  margin: 0;
  font-size: 0.67rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stats-summary .item .value {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
}

.club-stats-list {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.75rem;
}

.club-stats-item {
  border: 1px solid rgba(135, 178, 255, 0.22);
  border-radius: 14px;
  background: rgba(10, 33, 22, 0.7);
  padding: 0.6rem;
}

.club-stats-item summary {
  cursor: pointer;
  font-weight: 700;
  color: #f7ffd1;
}

.club-stats-grid {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.club-stats-grid h5 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.stats-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.stats-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
}

.stats-table th,
.stats-table td {
  padding: 0.45rem 0.55rem;
  font-size: 0.74rem;
  border-bottom: 1px solid rgba(135, 178, 255, 0.15);
  white-space: nowrap;
}

.stats-table thead th {
  color: #0f1f38;
  background: linear-gradient(90deg, #9fc4ff, #f6d98d);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.64rem;
}

.stats-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    row-gap: 0.55rem;
    align-items: start;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .primary-nav {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    border: 1px solid rgba(135, 178, 255, 0.25);
    border-radius: 14px;
    padding: 0.4rem;
    background: rgba(7, 28, 18, 0.93);
  }

  .primary-nav.open {
    display: flex;
  }

  .primary-nav a {
    width: 100%;
    text-align: left;
    border-radius: 10px;
    padding: 0.48rem 0.62rem;
  }

  .quick-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .season-grid,
  .ops-grid,
  .leaderboard-grid,
  .hub-grid {
    grid-template-columns: 1fr;
  }

  .stats-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    padding-top: 0.75rem;
  }

  .section {
    padding: 0.78rem;
  }

  .rank-item {
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 0.35rem;
  }

  .hero {
    min-height: 46vh;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(1, 8, 20, 0.02), rgba(2, 10, 24, 0.84));
  }

  .hero-content {
    padding: 0.85rem 0.8rem;
  }

  #heroTitle {
    font-size: clamp(1.7rem, 9vw, 2.4rem);
  }

  #heroSubtitle {
    font-size: 0.83rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-meta span {
    font-size: 0.7rem;
    padding: 0.24rem 0.48rem;
  }

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

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  input,
  select {
    width: 100%;
    min-width: 100%;
  }

  .players-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .player-card img {
    aspect-ratio: 1 / 1;
  }

  .player-body {
    padding: 0.46rem;
  }

  .player-top {
    align-items: flex-start;
  }

  .player-name {
    font-size: 0.75rem;
    line-height: 1.2;
  }

  .player-detail {
    font-size: 0.62rem;
    margin-top: 0.28rem;
    line-height: 1.25;
  }

  .player-meta .n {
    font-size: 0.86rem;
  }

  .player-meta .l {
    font-size: 0.56rem;
  }

  .player-meta {
    gap: 0.22rem;
    margin-top: 0.32rem;
  }

  .player-meta div {
    border-radius: 8px;
    padding: 0.22rem;
  }

  .player-badge {
    font-size: 0.58rem;
    padding: 0.08rem 0.28rem;
  }

  .player-actions {
    margin-top: 0.38rem;
  }

  .stats-btn {
    font-size: 0.64rem;
    padding: 0.2rem 0.44rem;
  }

  .ops-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ops-btn {
    width: 100%;
    text-align: center;
  }

  .player-stats-dialog {
    width: 96vw;
  }

  .stats-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .simple-table {
    min-width: 560px;
  }
}
