:root {
  --ink: #07111f;
  --muted: #56677c;
  --line: rgba(255, 255, 255, 0.76);
  --glass: rgba(255, 255, 255, 0.86);
  --glass-strong: rgba(255, 255, 255, 0.94);
  --green: #087a3d;
  --green-2: #16a34a;
  --green-3: #4ade80;
  --gold: #facc15;
  --blue: #2563eb;
  --danger: #be123c;
  --danger-soft: #ffe4e6;
  --warn: #92400e;
  --warn-soft: #fef3c7;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --shadow: 0 22px 70px rgba(15, 23, 42, 0.12);
  --shadow-hover: 0 34px 90px rgba(15, 23, 42, 0.20);
  --shadow-dark: 0 36px 110px rgba(2, 6, 23, 0.30);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
*, *::before, *::after { font-family: Arial, sans-serif !important; }
html, body, button, input, textarea, select { font-family: Arial, sans-serif !important; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #eaf3ec;
  overflow-x: hidden;
}
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.field-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.18;
  background: url("assets/football-field.svg") center/cover no-repeat;
}
.field-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 10%, rgba(220, 252, 231, 0.98), transparent 34%),
    radial-gradient(circle at 85% 20%, rgba(250, 204, 21, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.97), rgba(236, 253, 245, 0.93));
}
.page-shell { position: relative; z-index: 1; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.70);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(20px);
}
.header-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: white;
  font-size: 28px;
  background: linear-gradient(145deg, #047857, #07111f 72%);
  box-shadow: 0 16px 42px rgba(6, 78, 59, 0.27);
}
.brand h1 {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: -0.035em;
}
.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
}
.nav {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.nav-btn {
  border: 0;
  border-radius: 18px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.82);
  color: #334155;
  font-weight: 900;
  white-space: nowrap;
  transition: 0.18s ease;
}
.nav-btn:hover { background: white; transform: translateY(-1px); }
.nav-btn.active {
  color: white;
  background: linear-gradient(135deg, #052e16, #07111f);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.18);
}

.app {
  max-width: 1220px;
  margin: 0 auto;
  padding: 28px 16px 54px;
  outline: none;
}
.stack { display: grid; gap: 24px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--glass);
  backdrop-filter: blur(18px);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card.solid { background: var(--glass-strong); }

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 46px;
  background: #07111f;
  color: white;
  box-shadow: var(--shadow-dark);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-bg, url("assets/stadium-hero.svg")) center/cover no-repeat;
  opacity: 0.72;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 10%, rgba(74, 222, 128, 0.24), transparent 30%),
    linear-gradient(270deg, #07111f 0%, rgba(7,17,31,.93) 43%, rgba(6,78,59,.74) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.14fr 0.86fr;
  gap: 32px;
  padding: clamp(30px, 5vw, 58px);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.13);
  color: #dcfce7;
  font-weight: 900;
  font-size: 14px;
}
.hero h2 {
  margin: 14px 0 0;
  font-size: clamp(38px, 7vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}
.hero p {
  max-width: 760px;
  color: #dce8f6;
  font-size: 18px;
  line-height: 1.85;
  font-weight: 800;
}
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn {
  border: 0;
  border-radius: 18px;
  padding: 12px 18px;
  font-weight: 900;
  background: #07111f;
  color: white;
  box-shadow: 0 10px 25px rgba(2, 6, 23, 0.14);
  transition: 0.16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.light { background: white; color: #07111f; }
.btn.green { background: var(--green-3); color: #052e16; }
.btn.gold { background: var(--gold); color: #161003; }
.btn.soft { background: #f1f5f9; color: #0f172a; box-shadow: none; }
.btn.danger { background: var(--danger-soft); color: var(--danger); box-shadow: none; }
.btn.success { background: #16a34a; color: white; box-shadow: none; }
.btn.small { padding: 9px 12px; border-radius: 14px; font-size: 13px; }
.btn:disabled { background: #94a3b8; color: white; transform: none; }

.hero-side {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 32px;
  background: rgba(255,255,255,.09);
  padding: 20px;
  backdrop-filter: blur(18px);
  display: grid;
  gap: 14px;
}
.metric {
  border-radius: 26px;
  padding: 18px;
  background: rgba(255,255,255,.11);
}
.metric.green { background: #4ade80; color: #052e16; }
.metric.gold { background: #facc15; color: #1c1504; }
.metric small { color: inherit; opacity: .85; font-weight: 900; }
.metric b { display: block; margin-top: 8px; font-size: 46px; line-height: 1; }

.stat { display: flex; justify-content: space-between; gap: 16px; }
.stat .icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, #047857, #07111f);
  font-size: 23px;
}
.stat h3 { margin: 0; color: var(--muted); font-size: 14px; font-weight: 900; }
.stat b { display: block; margin-top: 8px; font-size: 36px; }
.stat p { margin: 4px 0 0; color: var(--muted); font-size: 13px; font-weight: 800; }

.section-title { margin: 0; font-size: 32px; font-weight: 900; letter-spacing: -0.04em; }
.section-subtitle { margin: 8px 0 0; color: var(--muted); font-weight: 800; line-height: 1.65; }
.rule {
  display: flex;
  gap: 12px;
  border-radius: 22px;
  background: rgba(248,250,252,.92);
  padding: 14px;
}
.rule-number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--green);
  color: white;
  font-weight: 900;
}
.rule p { margin: 0; color: #334155; font-weight: 800; line-height: 1.6; }

.showcase-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border-radius: 34px;
  background: #0f172a;
  box-shadow: var(--shadow);
}
.showcase-card img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.showcase-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(2,6,23,.78), transparent); }
.showcase-card h3 { position: absolute; z-index: 1; bottom: 22px; right: 22px; margin: 0; color: white; font-size: 26px; font-weight: 900; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: min(100%, 330px);
}
.search-wrap span { position: absolute; right: 14px; color: #64748b; }
.search-wrap input {
  width: 100%;
  border: 1px solid rgba(148,163,184,.35);
  border-radius: 18px;
  padding: 13px 46px 13px 16px;
  text-align: right;
  background: rgba(248,250,252,.92);
  color: var(--ink);
  font-weight: 900;
  outline: none;
}
.search-wrap input:focus { border-color: var(--green-2); background: white; }

.team-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 34px;
  background: white;
  box-shadow: var(--shadow);
  transition: .2s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.team-card-button { all: unset; display: block; width: 100%; cursor: pointer; }
.team-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #dbeafe; }
.team-cover img { width: 100%; height: 100%; object-fit: cover; transition: .7s ease; }
.team-card:hover .team-cover img { transform: scale(1.055); }
.team-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(2,6,23,.85), rgba(2,6,23,.08)); }
.team-cover-text { position: absolute; inset-inline: 0; bottom: 0; z-index: 1; padding: 20px; color: white; }
.team-cover-text small { color: #bbf7d0; font-weight: 900; }
.team-cover-text h3 { margin: 4px 0 12px; font-size: 27px; font-weight: 900; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255,255,255,.16);
  color: white;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}
.status-approved { background: #dcfce7; color: #14532d; }
.status-pending { background: #fef3c7; color: #92400e; }
.team-body { padding: 18px; }
.team-body p { margin: 0; min-height: 72px; color: #475569; line-height: 1.65; font-weight: 800; }
.team-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #eef2f7; color: #0f172a; font-size: 14px; font-weight: 900; }

.detail-cover { position: relative; overflow: hidden; border-radius: 40px 40px 0 0; min-height: 310px; background: #0f172a; }
.detail-cover img { width: 100%; height: 100%; min-height: 310px; object-fit: cover; }
.detail-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(2,6,23,.86), rgba(2,6,23,.10)); }
.detail-cover-content { position: absolute; z-index: 1; inset-inline: 0; bottom: 0; color: white; padding: 30px; }
.detail-cover-content small { color: #bbf7d0; font-weight: 900; }
.detail-cover-content h2 { margin: 8px 0 14px; font-size: clamp(36px, 6vw, 58px); letter-spacing: -0.05em; }
.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; padding: 28px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 40px 40px; background: rgba(255,255,255,.92); box-shadow: var(--shadow); }
.detail-layout h3 { margin: 0 0 12px; font-size: 24px; font-weight: 900; }
.detail-layout p { color: #475569; line-height: 1.78; font-weight: 800; }
.player-card { border: 1px solid #edf2f7; border-radius: 26px; background: white; padding: 14px; box-shadow: 0 8px 30px rgba(15,23,42,.06); }
.player-row { display: flex; gap: 14px; }
.player-row img { width: 96px; height: 96px; border-radius: 24px; object-fit: cover; background: #dbeafe; }
.player-card h4 { margin: 12px 0 5px; font-size: 21px; font-weight: 900; }
.player-card p { margin: 0; color: #475569; font-size: 14px; line-height: 1.62; font-weight: 800; }

.form-card { max-width: 900px; margin-inline: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #172033; font-size: 14px; font-weight: 900; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid rgba(148,163,184,.34);
  border-radius: 18px;
  background: rgba(248,250,252,.94);
  color: var(--ink);
  padding: 14px 15px;
  text-align: right;
  font-weight: 900;
  outline: none;
}
.field textarea { min-height: 124px; resize: vertical; line-height: 1.65; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green-2); background: white; }
.help { margin: 6px 0 0; color: var(--muted); font-size: 12px; font-weight: 800; line-height: 1.55; }
.consent { display: flex; align-items: flex-start; gap: 10px; border-radius: 18px; background: #ecfdf5; color: #14532d; padding: 14px; font-weight: 900; line-height: 1.55; }
.photo-box { border: 1px dashed rgba(100,116,139,.45); border-radius: 24px; background: rgba(248,250,252,.92); padding: 16px; }
.photo-box h4 { margin: 0 0 4px; font-size: 16px; font-weight: 900; }
.preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.preview-grid img, .preview-single { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 18px; background: #e2e8f0; }

.admin-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 20px; }
.login-card { max-width: 460px; margin-inline: auto; }
.data-table-wrap { overflow-x: auto; border: 1px solid #e9eef5; border-radius: 22px; }
table { width: 100%; border-collapse: collapse; min-width: 740px; background: white; }
th, td { padding: 13px 14px; border-bottom: 1px solid #eef2f7; text-align: right; }
th { color: #64748b; font-size: 13px; font-weight: 900; background: #f8fafc; }
td { font-weight: 800; color: #334155; }
.copy-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 18px; background: white; }
.copy-row small { display: block; color: #64748b; direction: ltr; text-align: left; overflow-wrap: anywhere; font-weight: 800; }
.notice { border: 1px solid rgba(250,204,21,.45); border-radius: 24px; background: #fffbeb; color: #713f12; padding: 16px; font-weight: 800; line-height: 1.65; }
.backend-pill { display: inline-flex; border-radius: 999px; padding: 7px 11px; background: #e0f2fe; color: #075985; font-size: 12px; font-weight: 900; }
.backend-pill.local { background: #fef3c7; color: #92400e; }

.empty { grid-column: 1 / -1; border: 1px dashed #cbd5e1; border-radius: 28px; background: rgba(255,255,255,.74); padding: 32px; text-align: center; }
.empty .emoji { font-size: 34px; }
.empty h3 { margin: 10px 0 4px; font-size: 21px; font-weight: 900; }
.empty p { margin: 0; color: #64748b; font-weight: 800; }
.toast { position: fixed; z-index: 50; left: 18px; bottom: 18px; max-width: min(520px, calc(100vw - 36px)); border-radius: 22px; background: #07111f; color: white; padding: 14px 18px; box-shadow: var(--shadow-dark); font-weight: 900; }
[hidden] { display: none !important; }

@media (max-width: 900px) {
  .hero-inner, .detail-layout, .admin-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search-wrap { min-width: 100%; }
}
@media (max-width: 640px) {
  .header-inner, .app { padding-inline: 12px; }
  .brand-icon { width: 48px; height: 48px; border-radius: 18px; }
  .brand h1 { font-size: 20px; }
  .brand p { font-size: 12px; }
  .nav-btn { padding: 10px 13px; border-radius: 15px; }
  .hero { border-radius: 30px; }
  .hero-inner { padding: 24px; }
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .card { border-radius: 26px; padding: 18px; }
  .team-cover-text h3 { font-size: 23px; }
  .player-row { align-items: flex-start; }
  .player-row img { width: 82px; height: 82px; }
  .copy-row { flex-direction: column; align-items: stretch; }
}


.js-health {
  max-width: 1240px;
  margin: 22px auto 0;
  padding: 14px 18px;
  border-radius: 18px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  font-weight: 900;
  box-shadow: 0 12px 32px rgba(15,23,42,.08);
}
.js-health.ok { background:#ecfdf5; color:#065f46; border-color:#bbf7d0; }
.static-fallback { margin-top: 24px; }
.static-fallback .card { background: rgba(255,255,255,.92); }


/* v7 polish */
.js-health { display: none !important; }
.brand-logo {
  width: 118px;
  height: 58px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255,255,255,.68);
  padding: 5px 8px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}
.brand { gap: 18px; }
.brand h1 { letter-spacing: -0.025em; }
.brand p { display: none !important; }
.hero .backend-pill, .backend-pill.local { display: none !important; }
.static-fallback .metric:first-child { display: none; }
@media (max-width: 640px) {
  .brand-logo { width: 96px; height: 48px; border-radius: 14px; }
  .brand { align-items: center; gap: 12px; }
}


/* v8 homepage editor */
.admin-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.editor-block {
  border: 1px solid rgba(148,163,184,.24);
  border-radius: 28px;
  background: rgba(248,250,252,.74);
  padding: 18px;
  display: grid;
  gap: 16px;
}
.editor-block h4 {
  margin: 0;
  font-size: 21px;
  font-weight: 900;
  color: var(--ink);
}
.editor-block h5 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 900;
  color: var(--green);
}
.form-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.homepage-editor .field input[type="color"] {
  height: 50px;
  padding: 6px;
}
.editor-small-cards {
  align-items: stretch;
}
.mini-admin-card {
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  padding: 14px;
  display: grid;
  gap: 12px;
}
.preview-grid.one {
  grid-template-columns: 1fr;
}
.preview-grid.one img {
  max-height: 170px;
}
.brand-logo {
  width: 104px;
  height: 54px;
}
@media (max-width: 900px) {
  .admin-home-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .form-grid.compact { grid-template-columns: 1fr; }
  .brand-logo { width: 88px; height: 46px; }
}

/* v10 team color pages + player-card template */
.team-color-field input[type="color"] {
  height: 54px;
  padding: 6px;
  border-radius: 18px;
  background: #fff;
}
.team-color-pill,
.team-theme-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 10px 25px rgba(2,6,23,.16);
}
.color-swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  margin-inline-end: 8px;
  vertical-align: middle;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 0 0 1px rgba(15,23,42,.16);
}
.team-detail-page {
  border-radius: 42px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, var(--team-glow), transparent 34%),
    radial-gradient(circle at 85% 8%, rgba(255,255,255,.22), transparent 30%),
    linear-gradient(135deg, var(--team-deep) 0%, var(--team-dark) 36%, var(--team-color) 72%, var(--team-mist) 100%);
  box-shadow: var(--shadow-dark);
  border: 1px solid rgba(255,255,255,.42);
}
.premium-team-cover {
  border-radius: 42px 42px 0 0;
  min-height: 390px;
  background: var(--team-dark);
}
.premium-team-cover::after {
  background:
    linear-gradient(to left, rgba(2,6,23,.88), rgba(2,6,23,.45), rgba(2,6,23,.12)),
    linear-gradient(to top, rgba(2,6,23,.82), transparent 65%);
}
.premium-team-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(255,255,255,.18) 50%, transparent 50.2%),
    radial-gradient(circle at 50% 50%, transparent 0 118px, rgba(255,255,255,.14) 120px, transparent 123px);
  opacity: .36;
}
.premium-team-cover .detail-cover-content { z-index: 2; max-width: 920px; }
.team-detail-description {
  max-width: 760px;
  color: rgba(255,255,255,.88) !important;
  font-size: 17px;
  line-height: 1.8;
  font-weight: 850;
  margin: 0 0 18px;
}
.team-photos-strip-card,
.team-content-card,
.team-gallery-card {
  margin: 22px;
  padding: 24px;
  border-radius: 32px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.62);
  box-shadow: 0 16px 44px rgba(15,23,42,.08);
}
.team-photos-strip-card h3,
.team-content-card h3,
.team-gallery-card h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 950;
  color: var(--ink);
}
.team-photos-strip-card p,
.team-content-card p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 850;
}
.player-photo-strip {
  margin-top: 18px;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 5px 3px 14px;
  scroll-snap-type: x proximity;
}
.strip-player {
  flex: 0 0 auto;
  width: 112px;
  text-align: center;
  scroll-snap-align: start;
}
.strip-player img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  margin: 0 auto;
  border-radius: 28px;
  border: 4px solid white;
  box-shadow: 0 12px 30px rgba(15,23,42,.18), 0 0 0 3px var(--team-color);
  background: #e2e8f0;
}
.strip-player span {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-content-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.team-count-chip {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--team-text);
  background: var(--team-color);
  font-weight: 950;
  box-shadow: 0 12px 30px rgba(15,23,42,.14);
}
.player-cards-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 22px;
  align-items: stretch;
}
.player-trading-card {
  min-width: 0;
}
.trading-card-frame {
  position: relative;
  min-height: 560px;
  border-radius: 0;
  background:
    linear-gradient(135deg, var(--team-color) 0 8px, transparent 8px),
    linear-gradient(225deg, var(--team-color) 0 8px, transparent 8px),
    #050505;
  padding: 18px;
  color: #07111f;
  box-shadow: 0 22px 55px rgba(15,23,42,.22);
  overflow: hidden;
}
.trading-card-frame::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 5px solid #fff;
  pointer-events: none;
  z-index: 1;
}
.trading-card-frame::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 3px solid var(--team-color);
  pointer-events: none;
  z-index: 1;
}
.trading-card-top {
  position: relative;
  z-index: 2;
  height: 34px;
  margin: 0 auto 12px;
  max-width: 220px;
  text-align: center;
  background: var(--team-color);
  color: var(--team-text);
  display: grid;
  place-items: center;
  line-height: 1;
  letter-spacing: .18em;
  font-size: 10px;
  font-weight: 950;
}
.trading-card-top b {
  letter-spacing: normal;
  font-size: 12px;
  max-width: 190px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.trading-photo-zone {
  position: relative;
  z-index: 2;
  height: 265px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 70%, rgba(255,255,255,.16), transparent 38%),
    linear-gradient(180deg, #101010, #000);
  border: 4px solid #fff;
  border-bottom: 0;
}
.trading-photo-zone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.04) saturate(1.05);
}
.trading-main-name {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  background: #fff;
  border: 4px solid #050505;
  border-top: 0;
  color: #050505;
  font-weight: 950;
  font-size: 21px;
  text-transform: uppercase;
}
.trading-main-name span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.trading-main-name b {
  font-size: 22px;
}
.trading-position {
  position: relative;
  z-index: 2;
  margin: 0 64px 12px 18px;
  min-height: 34px;
  display: grid;
  place-items: center;
  background: var(--team-color);
  color: var(--team-text);
  font-weight: 950;
  letter-spacing: .16em;
  font-size: 12px;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}
.trading-info-box {
  position: relative;
  z-index: 2;
  background: #fff;
  border: 4px solid #050505;
  padding: 12px;
  min-height: 155px;
}
.trading-info-title {
  margin: -1px auto 9px;
  width: 70%;
  padding: 6px;
  text-align: center;
  background: var(--team-color);
  color: var(--team-text);
  font-size: 12px;
  letter-spacing: .14em;
  font-weight: 950;
}
.trading-info-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 8px;
  margin-bottom: 8px;
  font-size: 12px;
  align-items: center;
}
.trading-info-grid small {
  background: var(--team-color);
  color: var(--team-text);
  padding: 3px 6px;
  text-align: center;
  font-weight: 950;
}
.trading-info-grid strong {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 900;
}
.trading-info-box p {
  color: #111827;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.team-gallery-card .preview-grid.large {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.team-gallery-card .preview-grid.large img {
  aspect-ratio: 4 / 3;
}

@media (max-width: 1050px) {
  .player-cards-wall { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
}
@media (max-width: 720px) {
  .premium-team-cover { min-height: 360px; }
  .team-content-head { align-items: flex-start; flex-direction: column; }
  .team-photos-strip-card,
  .team-content-card,
  .team-gallery-card { margin: 14px; padding: 18px; border-radius: 26px; }
  .player-cards-wall { grid-template-columns: 1fr; }
  .trading-card-frame { min-height: 530px; }
  .team-gallery-card .preview-grid.large { grid-template-columns: repeat(2, minmax(0,1fr)); }
}


/* v11 refinements: strict Arial + cleaner player cards + team-color gradient page */
.trading-card-top { letter-spacing: normal; padding-inline: 10px; }
.trading-card-top b { font-family: Arial, sans-serif !important; font-size: 13px; font-weight: 950; }
.team-detail-page, .team-detail-page * { font-family: Arial, sans-serif !important; }
