:root {
  --primary: #76080f;
  --ink: #202020;
  --muted: #666;
  --page: #f5f5f5;
  --white: #fff;
  --line: #e4e4e4;
  --status-draft: #4a90e2;
  --status-in-progress: #43a047;
  --status-paused: #ffa726;
  --status-canceled: #e57373;
  --status-finished: #5c6bc0;
  --shell: min(1120px, calc(100vw - 48px));
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--page); }
img { display: block; max-width: 100%; }

.site-header {
  min-height: 82px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--primary) 72%, black), var(--primary));
  color: var(--white);
}
.header-inner, .footer-inner { width: var(--shell); margin: 0 auto; }
.header-inner { display: flex; min-height: 82px; align-items: center; }
.brand { display: flex; min-width: 0; align-items: center; gap: 14px; }
.brand strong { overflow: hidden; font-size: 1.15rem; text-overflow: ellipsis; white-space: nowrap; }
.brand-logo {
  display: grid;
  width: 48px;
  height: 56px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.logo-fallback { font-size: 1rem; font-weight: 900; }

.hero {
  position: relative;
  min-height: 370px;
  overflow: hidden;
  background: color-mix(in srgb, var(--primary) 60%, black);
  color: var(--white);
}
.hero-cover, .hero-overlay { position: absolute; inset: 0; }
.hero-cover img, .cover-fallback { width: 100%; height: 100%; object-fit: cover; }
.cover-fallback {
  background: color-mix(in srgb, var(--primary) 82%, black);
}
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0,0,0,.74), rgba(0,0,0,.18) 72%),
    linear-gradient(0deg, rgba(0,0,0,.62), transparent 65%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  width: var(--shell);
  min-height: 370px;
  margin: 0 auto;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: end;
  gap: 34px;
  padding: 48px 0 46px;
}
.hero-logo {
  display: flex;
  width: 250px;
  height: 250px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid var(--white);
  border-radius: 14px;
  background: color-mix(in srgb, var(--primary) 82%, black);
  box-shadow: 0 18px 40px rgba(0,0,0,.32);
}
.hero-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 11px;
}
.hero-logo .logo-fallback { font-size: 3.5rem; }
.hero-copy { padding-bottom: 3px; }
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5vw, 3.55rem);
  font-weight: 760;
  letter-spacing: -.045em;
  line-height: 1.05;
  text-wrap: balance;
}
.hero-line { margin: 10px 0 0; font-size: clamp(1rem, 1.8vw, 1.18rem); }

.content-shell { display: grid; width: var(--shell); margin: 0 auto; gap: 26px; padding: 34px 0 38px; }
.panel {
  padding: 25px 28px 30px;
  border: 1px solid rgba(0,0,0,.03);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(20,20,20,.07);
}
.panel h2 { margin: 0; color: var(--primary); font-size: 1.65rem; letter-spacing: -.025em; }
.title-rule { display: block; width: 54px; height: 2px; margin: 12px 0 17px; background: var(--primary); }
.about-panel p { max-width: 990px; margin: 0; font-size: .96rem; line-height: 1.7; white-space: pre-line; }

.championships-panel { padding-bottom: 20px; }
.championships-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.trophy-icon { width: 31px; height: 31px; flex: 0 0 auto; fill: var(--primary); }
.championships-heading h2 { font-size: 1.9rem; }
.championship-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.championship-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dadada;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  grid-template-rows: 145px minmax(92px, auto) 40px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
a.championship-card:hover { transform: translateY(-3px); box-shadow: 0 13px 28px rgba(25,25,25,.12); }
a.championship-card:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, white); outline-offset: 3px; }
.card-media { overflow: hidden; background: color-mix(in srgb, var(--primary) 82%, black); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
a.championship-card:hover .card-media img { transform: scale(1.025); }
.card-content { display: grid; align-content: start; gap: 13px; padding: 14px 13px 12px; }
.card-content h3 { margin: 0; color: var(--primary); font-size: 1.05rem; line-height: 1.2; }
.card-information { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-sport { overflow: hidden; font-size: .72rem; font-weight: 650; letter-spacing: .035em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.card-status { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; background: var(--status-draft); color: var(--white); font-size: .68rem; white-space: nowrap; }
.card-status[data-status="em-preparacao"] { background: var(--status-draft); }
.card-status[data-status="em-andamento"] { background: var(--status-in-progress); }
.card-status[data-status="pausado"] { background: var(--status-paused); }
.card-status[data-status="cancelado"] { background: var(--status-canceled); }
.card-status[data-status="encerrado"] { background: var(--status-finished); }
.card-status::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.card-action { display: grid; place-items: center; border-top: 1px solid var(--line); color: var(--primary); font-size: .72rem; font-weight: 750; }
.card-skeleton { height: 278px; border-radius: 10px; background: linear-gradient(100deg, #e5e5e5 30%, #f4f4f4 50%, #e5e5e5 70%); background-size: 220% 100%; animation: shimmer 1.35s infinite; }
@keyframes shimmer { to { background-position-x: -220%; } }
.championship-state { margin: 22px 0 0; color: var(--muted); text-align: center; }
.championship-state:empty { display: none; }
.championship-state.is-error { color: #a32525; }
.load-more { display: block; margin: 22px auto 0; padding: 10px 19px; border: 1px solid var(--primary); border-radius: 7px; background: var(--white); color: var(--primary); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.load-more[hidden] { display: none; }

.site-footer { background: linear-gradient(120deg, color-mix(in srgb, var(--primary) 72%, black), var(--primary)); color: var(--white); }
.footer-inner { display: flex; min-height: 100px; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand .brand-logo { width: 45px; height: 52px; }
.footer-brand > span:last-child { display: grid; gap: 3px; }
.footer-brand strong { font-size: .9rem; }
.footer-brand small { color: rgba(255,255,255,.8); font-size: .7rem; }
.site-footer p { margin: 0; font-size: .7rem; }

@media (max-width: 820px) {
  :root { --shell: min(100% - 32px, 680px); }
  .hero-inner { grid-template-columns: 170px minmax(0, 1fr); gap: 24px; }
  .hero-logo { width: 170px; height: 170px; }
  .championship-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .site-header, .header-inner { min-height: 70px; }
  .brand-logo { width: 40px; height: 46px; }
  .hero-inner { min-height: 470px; grid-template-columns: 1fr; align-content: end; gap: 22px; padding: 42px 0; }
  .hero-logo { width: 118px; height: 118px; }
  .hero h1 { margin-bottom: 15px; font-size: 2.35rem; }
  .hero-line { font-size: .94rem; }
  .content-shell { padding: 20px 0 24px; gap: 18px; }
  .panel { padding: 22px 18px 24px; }
  .championship-grid { grid-template-columns: 1fr; }
  .championship-card { grid-template-rows: 170px minmax(92px, auto) 42px; }
  .footer-inner { min-height: 130px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .championship-card, .card-media img { transition: none; }
  .card-skeleton { animation: none; }
}
