:root {
  --bg: #050509;
  --bg-elevated: #050509;
  --bg-card: #050509;
  --bg-soft: #050509;

  --border-subtle: rgba(148, 163, 184, 0.22);

  /* Accent is now neutral, subtle – not green/blue */
  --accent: #e5e7eb;
  --accent-soft: rgba(249, 250, 251, 0.06);
  --accent-strong: #facc15;

  --text-main: #f9fafb;
  --text-soft: #9ca3af;
  --text-faint: #6b7280;

  --danger: #f97373;

  --radius-xl: 18px;
  --radius-2xl: 22px;

  --shadow-soft: 0 26px 60px rgba(0, 0, 0, 0.9);
  --shadow-subtle: 0 18px 40px rgba(0, 0, 0, 0.85);
  --blur: 20px;

  --nav-height: 64px;
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.2s ease-out;
}

/* Layout reset */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top, #111827 0, #020203 45%, #000 100%);
}

body {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.page {
  max-width: 1120px;
  width: 100%;
  min-height: 100vh;
  padding: 18px 16px 28px;
}

/* Topbar */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.98),
    rgba(15, 23, 42, 0.86)
  );
  border: 1px solid rgba(75, 85, 99, 0.55);
  box-shadow: var(--shadow-soft);
  margin-bottom: 18px;
  backdrop-filter: blur(14px);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 0%, #f9fafb, #9ca3af 55%, #111827 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.brand-inner {
  font-weight: 800;
  color: #020617;
  letter-spacing: 0.03em;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-soft);
}

/* Navbar */

.nav {
  display: flex;
  gap: 6px;
  background: rgba(15, 23, 42, 0.98);
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
}

.nav-link {
  border: none;
  background: transparent;
  color: var(--text-soft);
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform 0.09s ease-out;
}

.nav-link.active {
  background: radial-gradient(circle at 0% 0%, #f9fafb, #e5e7eb 40%, #d1d5db 100%);
  color: #020617;
  font-weight: 600;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.75);
}

.nav-link:hover:not(.active) {
  background: rgba(31, 41, 55, 0.9);
  color: #e5e7eb;
}

/* Main Layout */

.main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Sections */

.section {
  display: none;
}

.section.active {
  display: block;
}

/* Cards */

.card,
.hero-card,
.info-card {
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(circle at top left, rgba(148, 163, 184, 0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(55, 65, 81, 0.25), transparent 60%),
    rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(55, 65, 81, 0.85);
  box-shadow: var(--shadow-subtle);
  padding: 18px 18px 16px;
  position: relative;
  overflow: hidden;
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(230px, 1.5fr);
  gap: 20px;
}

.hero-main {
  padding-right: 12px;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-card {
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: radial-gradient(circle at top left, rgba(24, 24, 27, 0.9), #020617);
}

.side-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 4px;
  letter-spacing: 0.09em;
}

.side-value {
  font-size: 16px;
  font-weight: 600;
}

.side-note {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-faint);
}

/* Hero */

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid rgba(75, 85, 99, 0.9);
  background: rgba(15, 23, 42, 0.98);
  color: var(--text-soft);
}

.pill-main {
  border-color: rgba(229, 231, 235, 0.9);
  background: radial-gradient(circle at 0% 0%, #f3f4f6, #e5e7eb 42%, #111827 100%);
  color: #020617;
}

.pill-sub {
  border-color: rgba(148, 163, 184, 0.9);
  background: radial-gradient(circle at 0% 0%, rgba(156, 163, 175, 0.3), rgba(15, 23, 42, 0.96));
  color: #e5e7eb;
}

.hero-title {
  font-size: 26px;
  letter-spacing: 0.03em;
  margin: 0 0 8px;
}

.hero-text {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Buttons */

.btn-primary,
.btn-ghost,
.btn-primary-small,
.btn-ghost-small {
  border-radius: 999px;
  border: none;
  padding: 7px 14px;
  font-size: 12px;
  cursor: pointer;
  transition:
    transform 0.08s ease-out,
    box-shadow 0.16s ease-out,
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: linear-gradient(135deg, #f9fafb, #e5e7eb);
  color: #020617;
  font-weight: 600;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.75);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(75, 85, 99, 0.9);
  color: var(--text-main);
}

.btn-ghost:hover {
  background: rgba(31, 41, 55, 0.95);
  border-color: rgba(156, 163, 175, 1);
}

.btn-primary-small {
  background: rgba(249, 250, 251, 0.06);
  border: 1px solid rgba(229, 231, 235, 0.6);
  color: #e5e7eb;
  font-size: 11px;
  padding: 4px 10px;
}

.btn-ghost-small {
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(75, 85, 99, 0.9);
  color: var(--text-soft);
  font-size: 11px;
  padding: 4px 9px;
}

/* Section titles */

.section-title {
  margin: 0 0 4px;
  font-size: 16px;
}

.section-subtitle {
  margin: 0;
  font-size: 12px;
  color: var(--text-soft);
}

/* Info card */

.info-card .info-text {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 4px;
}

.info-list {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 12px;
  color: var(--text-soft);
}

/* Standings table */

.standings table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.standings th,
.standings td {
  padding: 6px 6px;
}

.standings thead th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  border-bottom: 1px solid rgba(75, 85, 99, 0.9);
}

.standings tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.96);
}

.standings tbody tr:nth-child(odd) {
  background: rgba(17, 24, 39, 0.98);
}

.standings tbody tr:hover {
  background: radial-gradient(circle at left, rgba(31, 41, 55, 0.95), rgba(15, 23, 42, 1));
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

/* Ranking badge */

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(75, 85, 99, 0.9);
  color: var(--text-soft);
}

.rank-1 {
  background: radial-gradient(circle at 0% 0%, #facc15, #eab308 55%, #92400e 100%);
  color: #1f2937;
  border-color: #facc15;
}

.rank-2 {
  background: radial-gradient(circle at 0% 0%, #e5e7eb, #d1d5db 50%, #9ca3af 100%);
  color: #111827;
  border-color: #e5e7eb;
}

.rank-3 {
  background: radial-gradient(circle at 0% 0%, #fed7aa, #fdba74 50%, #ea580c 100%);
  color: #451a03;
  border-color: #fed7aa;
}

/* Team cell */

.team-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.team-logo {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: radial-gradient(circle at 0% 0%, #d1d5db, #6b7280 60%, #020617 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #020617;
  border: 1px solid rgba(229, 231, 235, 0.85);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.8);
}

/* Fixtures */

.fixtures {
  font-size: 12px;
  color: var(--text-main);
}

/* Teams grid */

.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.team-card {
  border-radius: 18px;
  padding: 10px 10px 8px;
  background: radial-gradient(circle at top, rgba(24, 24, 27, 0.95), #020617);
  border: 1px solid rgba(63, 63, 70, 0.95);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.9);
}

.team-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.team-card-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-card-logo {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: radial-gradient(circle at 0% 0%, #e5e7eb, #9ca3af 55%, #020617 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(209, 213, 219, 0.9);
  color: #020617;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85);
}

.team-card-name {
  font-size: 13px;
  font-weight: 600;
}

.team-card-meta {
  font-size: 11px;
  color: var(--text-soft);
}

.team-card-footer {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-faint);
}

/* Admin */

.admin-panel {
  margin-top: 10px;
}

.admin-row {
  display: grid;
  grid-template-columns: 2fr repeat(5, 0.6fr);
  gap: 4px;
  margin-bottom: 4px;
}

.admin-row-label {
  font-size: 12px;
  display: flex;
  align-items: center;
}

.admin-input {
  width: 100%;
  padding: 5px 7px;
  border-radius: 10px;
  border: 1px solid rgba(75, 85, 99, 0.9);
  background: rgba(15, 23, 42, 0.98);
  color: var(--text-main);
  font-size: 11px;
}

.admin-input:focus {
  outline: none;
  border-color: rgba(209, 213, 219, 1);
  box-shadow: 0 0 0 1px rgba(209, 213, 219, 0.6);
}

.admin-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.label-soft {
  text-align: center;
}

/* Card header */

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

/* Footer – bottom center watermark */

.footer {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: rgba(148, 163, 184, 0.75);
  background: rgba(3, 7, 18, 0.85);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  backdrop-filter: blur(6px);
  z-index: 999;
  user-select: none;
  pointer-events: none;
}

/* Server logo image */

.brand-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  object-fit: cover;
  display: block;
}

/* Team logos as imgs */

img.team-logo,
img.team-card-logo {
  object-fit: cover;
  border-radius: 9999px;
}

/* Responsive */

@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav {
    align-self: stretch;
    justify-content: space-between;
  }
}
/* MATCH LIVES LIST */

.lives-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.lives-block {
  margin-top: 4px;
  margin-bottom: 10px;
}

.lives-heading {
  font-size: 13px;
  font-weight: 600;
  color: #e5e7eb;
  margin: 4px 0 4px;
}

.live-item {
  border-radius: 14px;
  padding: 7px 10px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(75, 85, 99, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.live-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.live-title {
  font-size: 13px;
  font-weight: 600;
}

.live-meta {
  font-size: 11px;
  color: #9ca3af;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.live-link {
  font-size: 11px;
  text-decoration: none;
  color: #e5e7eb;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(229, 231, 235, 0.7);
  background: rgba(15, 23, 42, 0.98);
  white-space: nowrap;
}

.live-link:hover {
  background: #e5e7eb;
  color: #020617;
}
