:root {
  --header-height: 70px;
  --tc-bg: #f4f7fb;
  --tc-card: #ffffff;
  --tc-text: #172033;
  --tc-muted: #6b7280;
  --tc-accent: #f97316;
  --tc-accent-2: #fb923c;
  --tc-border: rgba(15, 23, 42, 0.08);
  --tc-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  --tc-radius: 22px;
}

body {
  margin: 0;
  padding-top: var(--header-height);
  background: linear-gradient(180deg, #fff9f5 0%, var(--tc-bg) 260px);
  color: var(--tc-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#main-content {
  min-height: 100vh;
}

@media (max-width: 991.98px) {
  :root {
    --header-height: 64px;
  }
}

@media (max-width: 575.98px) {
  :root {
    --header-height: 60px;
  }
}


.tc-public-page {
  padding: 24px;
  max-width: 1440px;
  margin: 0 auto;
}

.tc-public-hero {
  background:
    radial-gradient(circle at top right, rgba(251, 146, 60, 0.34), transparent 32%),
    linear-gradient(135deg, #111827, #1f2937 55%, #0f172a);
  color: #fff;
  border-radius: 30px;
  padding: 28px;
  box-shadow: var(--tc-shadow);
  margin-bottom: 22px;
}

.tc-public-hero__content {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.tc-public-eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tc-public-hero h1 {
  margin: 0 0 8px;
  font-size: 2.2rem;
  font-weight: 800;
}

.tc-public-hero p {
  margin: 0;
  color: rgba(255,255,255,.84);
  max-width: 760px;
}

.tc-public-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tc-public-stat {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}

.tc-public-stat small {
  display: block;
  color: rgba(255,255,255,.72);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 8px;
}

.tc-public-stat strong {
  font-size: 1.9rem;
  font-weight: 800;
}

.tc-public-tabs {
  display: inline-flex;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--tc-border);
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  margin-bottom: 20px;
}

.tc-public-tabs button {
  border: 0;
  background: transparent;
  color: var(--tc-muted);
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
}

.tc-public-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--tc-accent), var(--tc-accent-2));
}

.tc-public-state,
.tc-picker {
  min-height: 340px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  background: rgba(255,255,255,0.7);
  border: 1px dashed rgba(15, 23, 42, 0.14);
  border-radius: 24px;
  color: var(--tc-muted);
}

.tc-public-state i {
  font-size: 3rem;
  color: var(--tc-accent);
  margin-bottom: 12px;
}

.tc-panel {
  display: grid;
  gap: 18px;
}

.tc-overview-grid,
.tc-results-grid,
.tc-draws-grid,
.tc-picker-grid {
  display: grid;
  gap: 18px;
}

.tc-overview-grid,
.tc-results-grid,
.tc-picker-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.tc-draws-grid {
  grid-template-columns: 1fr;
}

.tc-card {
  background: var(--tc-card);
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius);
  box-shadow: var(--tc-shadow);
  overflow: hidden;
}

.tc-card-head {
  padding: 20px 22px 12px;
  border-bottom: 1px solid var(--tc-border);
}

.tc-card-head h3,
.tc-card-head h4 {
  margin: 0;
  font-weight: 800;
}

.tc-card-head p {
  margin: 8px 0 0;
  color: var(--tc-muted);
}

.tc-card-body {
  padding: 22px;
}

.tc-meta-list {
  display: grid;
  gap: 12px;
}

.tc-meta-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding-bottom: 12px;
}

.tc-meta-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.tc-meta-item span:first-child {
  color: var(--tc-muted);
}

.tc-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
}

.tc-result-badge.completed {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.tc-result-badge.in_progress {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.tc-result-badge.draft {
  background: rgba(107, 114, 128, 0.14);
  color: #4b5563;
}

.tc-podium {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.tc-podium-item {
  border: 1px solid var(--tc-border);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}

.tc-podium-item small {
  display: block;
  color: var(--tc-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}

.tc-rounds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.tc-round {
  border: 1px solid var(--tc-border);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, #fff, #fffaf6);
}

.tc-round h5 {
  margin: 0 0 12px;
  font-weight: 800;
}

.tc-match {
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  margin-bottom: 10px;
}

.tc-match:last-child {
  margin-bottom: 0;
}

.tc-match-team {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: .95rem;
}

.tc-match-team strong {
  font-weight: 700;
}

.tc-match-team.winner strong {
  color: var(--tc-accent);
}

.tc-picker-grid {
  width: 100%;
  padding: 24px;
}

.tc-picker-card {
  text-align: left;
  background: #fff;
  border: 1px solid var(--tc-border);
  border-radius: 18px;
  box-shadow: var(--tc-shadow);
  padding: 20px;
}

.tc-picker-card h4 {
  margin: 0 0 10px;
  font-weight: 800;
}

.tc-picker-card p {
  color: var(--tc-muted);
  margin-bottom: 12px;
}

@media (max-width: 992px) {
  .tc-public-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .tc-public-page {
    padding: 16px;
  }

  .tc-public-hero__content {
    flex-direction: column;
  }

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

  .tc-podium {
    grid-template-columns: 1fr;
  }
}