:root {
  /* Book-cover theme: yellow + navy + red */
  --primary: #173b8f; /* navy */
  --secondary: #d61f2c; /* red */
  --primary-rgb: 23, 59, 143;
  --secondary-rgb: 214, 31, 44;

  --bg0: #f7e34b; /* bright yellow */
  --bg1: #f2d62b; /* deep yellow */

  /* Light surfaces + dark text */
  --card: rgba(255, 255, 255, 0.58);
  --card2: rgba(255, 255, 255, 0.72);
  --stroke: rgba(13, 22, 45, 0.14);
  --stroke2: rgba(13, 22, 45, 0.20);
  --text: rgba(13, 22, 45, 0.92);
  --muted: rgba(13, 22, 45, 0.68);
  --muted2: rgba(13, 22, 45, 0.52);

  --shadow: 0 18px 60px rgba(13, 22, 45, 0.18);
  --shadow2: 0 10px 30px rgba(13, 22, 45, 0.14);
  --radius: 18px;
  --radius2: 14px;
  --accent: var(--primary);
  --accent2: var(--secondary);
  --danger: #ef4444;
  --good: #22c55e;
}

* { box-sizing: border-box; }
/* Remove all explicit font weights (normalize typography) */
*, *::before, *::after { font-weight: 400 !important; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 22px;
  letter-spacing: 0.25px;
  line-height: 1.4;
  color: var(--text);
  background:
    /* subtle dot pattern like the cover */
    radial-gradient(circle at 1px 1px, rgba(13, 22, 45, 0.06) 1px, transparent 0) 0 0 / 18px 18px,
    radial-gradient(900px 520px at 70% 20%, rgba(var(--primary-rgb), 0.14), transparent 60%),
    radial-gradient(1100px 700px at 25% 70%, rgba(var(--secondary-rgb), 0.10), transparent 62%),
    linear-gradient(135deg, var(--bg0), var(--bg1));
  overflow-x: hidden;
}

.wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 22px 18px 26px;
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 22px;
  /* More opaque so content doesn't visually bleed behind the sticky header */
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  /* Ensure dropdown menus render above the main content (backdrop-filter creates a stacking context). */
  position: sticky;
  top: 18px;
  z-index: 200;
  overflow: visible;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}
.brand-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background:
    radial-gradient(14px 14px at 28% 32%, rgba(255,255,255,0.95), rgba(255,255,255,0) 60%),
    linear-gradient(135deg, rgba(var(--secondary-rgb), 0.95), rgba(var(--primary-rgb), 0.95));
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(var(--secondary-rgb), 0.18);
}
.brand-badge span {
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 16px;
  color: #0b1020;
  background: rgba(255,255,255,0.85);
  padding: 3px 7px;
  border-radius: 999px;
}
.brand .brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand .brand-name strong { font-size: 18px; letter-spacing: 0.3px; }
.brand .brand-name span { font-size: 14px; letter-spacing: 0.15px; color: var(--muted2); }

.tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--stroke);
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.4px;
  transition: 160ms ease;
}
.tab:hover { color: var(--text); background: rgba(255,255,255,0.38); }
.tab.active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.16), rgba(var(--secondary-rgb), 0.12));
  border: 1px solid var(--stroke2);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.10);
}
.tab .dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(13, 22, 45, 0.22);
}
.tab.active .dot { background: rgba(var(--secondary-rgb), 0.80); }

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 240px;
}
.link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.4px;
  padding: 10px 10px;
  border-radius: 12px;
  transition: 160ms ease;
}
.link:hover { color: var(--text); background: rgba(255,255,255,0.38); }
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.42);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 160ms ease;
}
.icon-btn:hover { transform: translateY(-1px); background: rgba(255,255,255,0.55); }
.user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.42);
  color: var(--text);
  font: inherit;
  line-height: 1;
}
.user-menu { position: relative; }
.user.user { cursor: pointer; border: 1px solid var(--stroke); }
.user:focus-visible {
  outline: none;
  border-color: rgba(var(--primary-rgb), 0.55);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.14);
}
.caret {
  width: 22px;
  height: 22px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--stroke);
  transition: 160ms ease;
}
.user-menu[data-open="true"] .caret { transform: rotate(180deg); color: var(--text); }
.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 180px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.98);
  box-shadow: 0 18px 40px rgba(0,0,0,0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 50;
  transform-origin: top right;
  animation: userDropdownIn 140ms ease-out;
}
.user-dropdown[hidden] { display: none !important; }
.user-dropdown::before {
  content: "";
  position: absolute;
  right: 14px;
  top: -6px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: rgba(255,255,255,0.92);
  border-left: 1px solid var(--stroke);
  border-top: 1px solid var(--stroke);
}
.user-item {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  color: var(--text) !important;
  text-decoration: none !important;
}
.user-item:hover { background: rgba(0,0,0,0.06); }
.user span { font-weight: 700; font-size: 16px; letter-spacing: 0.2px; color: var(--text); }
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background:
    radial-gradient(14px 14px at 30% 30%, rgba(255,255,255,0.9), rgba(255,255,255,0) 60%),
    linear-gradient(135deg, rgba(255, 205, 86, 0.95), rgba(239, 68, 68, 0.85));
  box-shadow: 0 10px 28px rgba(239, 68, 68, 0.20);
  border: 1px solid rgba(255,255,255,0.16);
}

@keyframes userDropdownIn {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Main layout */
.grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr) 380px;
  gap: 18px;
  margin-top: 18px;
}

/* If a page omits the right sidebar, let the center expand automatically */
.grid.grid--no-right {
  grid-template-columns: 340px minmax(0, 1fr);
}
.grid.grid--full {
  grid-template-columns: minmax(0, 1fr);
}
@supports selector(:has(*)) {
  .grid:not(:has(.right)) {
    grid-template-columns: 340px minmax(0, 1fr);
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 10px;
}
.card-title {
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  letter-spacing: 0.35px;
}
.chev {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.42);
  display: grid;
  place-items: center;
  color: var(--muted);
}

/* Channel list */
.channels { padding: 0 12px 12px; }
.channel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  min-height: 64px;
  border-radius: 14px;
  cursor: pointer;
  transition: 160ms ease;
  border: 1px solid transparent;
}
.channel:hover {
  background: rgba(255,255,255,0.45);
  border-color: var(--stroke);
}
.channel.active {
  background: linear-gradient(135deg, rgba(var(--primary-rgb),0.14), rgba(var(--secondary-rgb),0.10));
  border-color: var(--stroke2);
}
.ch-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.badge {
  /* width: 44px;
  height: 44px; */
  flex: 0 0 auto;
  border-radius: 999px;
  /* border: 1px solid var(--stroke); */
  background: rgba(255,255,255,0.55);
  display: grid;
  place-items: center;
}
.badge svg { width: 22px !important; height: 22px !important; display: block; opacity: 0.95; }
.ch-right { min-width: 64px; display: flex; justify-content: flex-end; }
.ch-name { display: flex; flex-direction: column; min-width: 0; }
.ch-name strong { font-size: 18px; letter-spacing: 0.35px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-name span { font-size: 14px; letter-spacing: 0.15px; color: var(--muted2); }
.live {
  font-size: 13px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(var(--secondary-rgb), 0.14);
  border: 1px solid rgba(var(--secondary-rgb), 0.30);
  color: var(--text);
  letter-spacing: 0.4px;
}

/* Bulletin story */
.bullet { padding: 0 16px 18px; }
.logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.42);
  border: 1px solid var(--stroke);
}
.logo {
  height: 62px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.62);
  display: grid;
  place-items: center;
  color: rgba(13, 22, 45, 0.86);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  padding: 0 10px;
}
.logo.red { background: rgba(var(--secondary-rgb),0.12); border-color: rgba(var(--secondary-rgb),0.22); }
.logo.blue { background: rgba(var(--primary-rgb),0.12); border-color: rgba(var(--primary-rgb),0.22); }
.logo.gray { background: rgba(255,255,255,0.62); }
.logo.black { background: rgba(13, 22, 45, 0.10); }

.kick {
  margin-top: 12px;
  height: 140px;
  border-radius: 18px;
  background:
    radial-gradient(80px 80px at 82% 26%, rgba(var(--primary-rgb),0.14), transparent 62%),
    radial-gradient(120px 120px at 18% 78%, rgba(var(--secondary-rgb),0.10), transparent 62%),
    linear-gradient(135deg, rgba(255,255,255,0.65), rgba(255,255,255,0.45));
  border: 1px solid var(--stroke);
  position: relative;
  overflow: hidden;
}
.kick:before {
  content: "";
  position: absolute;
  left: -30px;
  bottom: -40px;
  width: 200px;
  height: 200px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.40), transparent 60%);
  filter: blur(1px);
  opacity: 0.9;
}
.kick svg {
  position: absolute;
  right: -10px;
  bottom: -6px;
  width: 170px;
  height: 170px;
  opacity: 0.95;
}
.kick .trail {
  position: absolute;
  left: -20px;
  bottom: 24px;
  width: 220px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(var(--primary-rgb),0.0), rgba(var(--primary-rgb),0.38), rgba(var(--secondary-rgb),0.0));
  transform: rotate(-12deg);
}

/* Center */
.center {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero {
  padding: 18px;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(900px 360px at 20% 10%, rgba(var(--primary-rgb),0.14), transparent 62%),
    radial-gradient(700px 320px at 70% 25%, rgba(var(--secondary-rgb),0.10), transparent 62%),
    linear-gradient(135deg, rgba(255,255,255,0.65), rgba(255,255,255,0.45));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}
.hero .h-title {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.2px;
  margin: 2px 0 10px;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--muted);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 14px;
}
.meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.42);
  border: 1px solid var(--stroke);
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 900;
  color: rgba(255,255,255,0.96);
  background: linear-gradient(135deg, rgba(var(--secondary-rgb),0.95), rgba(244,63,94,0.85));
  box-shadow: 0 14px 36px rgba(var(--secondary-rgb),0.18);
}
.cta:active { transform: translateY(1px); }

.hero .player {
  position: absolute;
  right: 8px;
  bottom: -8px;
  width: 300px;
  height: 150px;
  opacity: 0.95;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.35));
  pointer-events: none;
}
.hero .ball {
  position: absolute;
  right: 180px;
  top: 26px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.32), rgba(255,255,255,0.06) 55%, transparent 56%);
  opacity: 0.9;
  pointer-events: none;
}

/* Standing table */
.standing {
  padding: 14px;
}
.standing .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.standing .header .title {
  font-weight: 900;
  letter-spacing: 0.2px;
}
.table {
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.45);
  overflow: hidden;
}
.t-row, .t-head {
  display: grid;
  grid-template-columns: 1.6fr 0.55fr repeat(5, 0.45fr);
  gap: 12px;
  align-items: center;
  padding: 14px 14px;
}
.t-head {
  font-size: 16px;
  font-weight: 800;
  color: var(--muted2);
  background: rgba(255,255,255,0.55);
}
.t-row {
  font-size: 18px;
  color: var(--text);
  border-top: 1px solid rgba(13, 22, 45, 0.08);
  line-height: 1.25;
}
.t-row:hover { background: rgba(255,255,255,0.55); }
.team {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.team .crest {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.62);
  display: grid;
  place-items: center;
  font-size: 14px;
  letter-spacing: 0.1px;
}
.team .name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
  line-height: 1.2;
}
.num { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.pts { color: var(--text); font-weight: 900; }

/* Right column */
.right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.widget {
  padding: 14px;
}
.widget .w-title {
  font-weight: 900;
  letter-spacing: 0.2px;
  margin-bottom: 4px;
}
.widget .w-sub {
  font-size: 18px;
  letter-spacing: 0.15px;
  color: var(--muted2);
  margin-bottom: 12px;
}

.match {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.vs-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.42);
  padding: 16px;
}
.club {
  display: flex;
  align-items: center;
  gap: 12px;
}
.club.right { justify-content: flex-end; }
.club .logoMark {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.62);
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: 0.4px;
}
.club span { font-weight: 800; color: var(--text); font-size: 16px; letter-spacing: 0.2px; }
.vs {
  font-weight: 900;
  letter-spacing: 0.6px;
  color: var(--muted2);
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.62);
}
.details {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.62);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}
.details:hover { background: rgba(255,255,255,0.72); }

/* Small utilities for admin CRUD forms */
.color-row {
  display: grid;
  grid-template-columns: 1fr 56px;
  gap: 10px;
  align-items: center;
}
.color-pick {
  width: 56px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.62);
  cursor: pointer;
}
.color-pick::-webkit-color-swatch-wrapper { padding: 10px; }
.color-pick::-webkit-color-swatch { border: 0; border-radius: 10px; }

/* Password show/hide toggle */
.pw-wrap { position: relative; }
.pw-input { padding-right: 54px; }
.pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.55);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.pw-toggle:hover { background: rgba(255,255,255,0.70); }
.pw-toggle svg { width: 18px; height: 18px; opacity: 0.9; }

.watch {
  display: grid;
  gap: 10px;
}
.watch .time {
  font-size: 28px;
  font-weight: 1000;
  letter-spacing: 0.2px;
}
.bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  align-items: end;
  padding: 10px 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.42);
}
.bar-col {
  display: grid;
  grid-template-rows: 72px auto;
  gap: 8px;
  justify-items: center;
}
.bar {
  width: 8px;
  border-radius: 999px;
  background: rgba(13, 22, 45, 0.18);
  position: relative;
  overflow: hidden;
}
.bar > i {
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(13, 22, 45, 0.65), rgba(13, 22, 45, 0.20));
  height: 45%;
}
.bar.active {
  background: rgba(var(--primary-rgb),0.16);
}
.bar.active > i {
  background: linear-gradient(180deg, rgba(var(--primary-rgb),0.95), rgba(var(--secondary-rgb),0.60));
  box-shadow: 0 10px 20px rgba(var(--primary-rgb),0.14);
}
.dow { font-size: 14px; letter-spacing: 0.15px; color: var(--muted2); font-weight: 800; }

.news {
  display: grid;
  gap: 10px;
}
.news-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.42);
}
.thumb {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background:
    radial-gradient(24px 24px at 25% 25%, rgba(255,255,255,0.24), transparent 60%),
    linear-gradient(135deg, rgba(var(--primary-rgb),0.22), rgba(var(--secondary-rgb),0.18));
}
.news-item:nth-child(2) .thumb {
  background:
    radial-gradient(24px 24px at 25% 25%, rgba(255,255,255,0.24), transparent 60%),
    linear-gradient(135deg, rgba(34,197,94,0.18), rgba(var(--primary-rgb),0.18));
}
.news-item:nth-child(3) .thumb {
  background:
    radial-gradient(24px 24px at 25% 25%, rgba(255,255,255,0.24), transparent 60%),
    linear-gradient(135deg, rgba(239,68,68,0.18), rgba(var(--secondary-rgb),0.18));
}
.news-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 3px;
}
.news-meta {
  font-size: 14px;
  letter-spacing: 0.15px;
  color: var(--muted2);
  font-weight: 700;
}

/* Franchises (grid cards) */
.fr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  padding: 12px 14px 14px;
}
.fr-card {
  border-radius: 18px;
  border: 1px solid var(--stroke);
  overflow: hidden;
  box-shadow: var(--shadow2);
  background: var(--s);
}

/* Players cards: big avatar that overlaps the card top edge */
.fr-card.player-card {
  position: relative;
  overflow: visible; /* allow avatar to cross top border */
  background: #fff;
  padding-top: 58px; /* space for avatar overlap */
  margin-bottom: 130px;
}
.fr-card.player-card .player-avatars {
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(calc(-50% - 10px)); /* move a bit left */
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
}
.fr-card.player-card .player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fr-card.player-card .player-avatar {
  width: 150px;
  height: 150px;
  border-radius: 34px;
  overflow: hidden;
  background: transparent; /* no background behind photo */
}
.fr-card.player-card .player-jersey {
  display: flex;
  align-items: center;
  justify-content: center;
}
.fr-card.player-card .player-card-body {
  margin-top: -40px;
  text-align: center;
  padding: 0 10px;
}
.fr-top {
  height: 200px;
  display: grid;
  place-items: center;
  background-color: var(--p); 
  overflow: hidden;
  border-bottom-right-radius: 125px;
  border-bottom-left-radius: 125px;
}
.fr-logo {
  width: 130px;
  height: 130px;
  border-radius: 18px;
  border: 0;
  background: transparent;
  object-fit: contain;
  padding: 0;
  filter: drop-shadow(0 18px 26px rgba(0,0,0,0.35));
  z-index: 1;
}
.fr-logo.ph {
  display: grid;
  place-items: center;
  font-weight: 900;
  color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.16);
}
.fr-body {
  padding: 12px 14px 14px;
  background: var(--s);
  color: rgba(255,255,255,0.92);
  text-align: center;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fr-name {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.2px;
  line-height: 1.2;
}
.fr-meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.fr-pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.12);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.4px;
}
.fr-swatch {
  width: 16px;
  height: 16px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}

/* Keep numbers tight even with global letter spacing */
.num { letter-spacing: 0; }

/* Icons */
.ico { width: 16px; height: 16px; opacity: 0.88; }

/* Responsive */
@media (max-width: 1120px) {
  .grid { grid-template-columns: 320px 1fr; }
  .right { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 860px) {
  .topbar { flex-wrap: wrap; }
  .brand, .top-actions { min-width: unset; }
  .grid { grid-template-columns: 1fr; }
  .right { grid-template-columns: 1fr; }
  .hero .player { display: none; }
}

/* Auth (Login) */
.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.auth {
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  padding: 18px 0 30px;
}
.auth-card {
  width: min(520px, 100%);
  padding: 18px;
}
.auth-head {
  padding: 6px 6px 14px;
}
.auth-title {
  font-size: 28px;
  letter-spacing: 0.2px;
  color: var(--text);
}
.auth-sub {
  margin-top: 6px;
  font-size: 16px;
  color: var(--muted2);
}
.auth-form {
  display: grid;
  gap: 12px;
}
.field {
  display: grid;
  gap: 8px;
}
.label {
  font-size: 22px;
  color: var(--muted);
  letter-spacing: 0.2px;
}
.input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.62);
  color: var(--text);
  outline: none;
}
.input::placeholder { color: rgba(13, 22, 45, 0.42); }
.input:focus {
  border-color: rgba(var(--primary-rgb), 0.55);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.14);
}
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.check input { accent-color: var(--primary); }
.auth-link {
  padding: 8px 10px;
  font-size: 14px;
}
.auth-error {
  display: none;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(var(--secondary-rgb), 0.28);
  background: rgba(var(--secondary-rgb), 0.12);
  color: var(--text);
  font-size: 14px;
}
.auth-btn {
  width: 100%;
  height: 46px;
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  font-size: 16px;
  color: rgba(255,255,255,0.96);
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.95), rgba(var(--secondary-rgb), 0.88));
  box-shadow: 0 14px 36px rgba(var(--primary-rgb),0.14);
}
.auth-btn:active { transform: translateY(1px); }
.auth-foot {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted2);
}
.muted { color: var(--muted2); }

/* Numerology preview under form fields: reserve space so layout doesn't jump */
.num-preview {
  font-size: 14px; 
  min-height: 22px;   
  visibility: hidden;
}
.num-preview.is-visible {
  visibility: visible;
}

/* Time-of-birth wheel (9 blocks, each 2h40m) */
.time-wheel {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.55);
}
.time-wheel svg {
  width: 120px;
  height: 120px;
  display: block;
}
.time-wheel__slice {
  fill: rgba(255,255,255,0.40);
  stroke: var(--stroke2);
  stroke-width: 1;
}
.time-wheel__slice.is-active {
  fill: rgba(245, 158, 11, 0.92);
  stroke: rgba(245, 158, 11, 1);
}
.time-wheel__num {
  font-size: 12px;
  fill: var(--text);
  opacity: 0.92;
  letter-spacing: 0;
}
.time-wheel__tick {
  font-size: 8px;
  fill: var(--muted2);
  opacity: 0.95;
  letter-spacing: 0;
}
.time-wheel__center {
  fill: rgba(13, 22, 45, 0.24);
}
.time-wheel__caption {
  font-size: 12px;
  color: var(--muted2);
  letter-spacing: 0;
  line-height: 1.1;
  text-align: center;
}


