/* =========================================================
   NFL RESULTS PAGE
   ========================================================= */

.container-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  max-width: 1520px;
  margin: 0 auto;
  padding: 28px 0px;
  align-items: start;
}

.left {
  min-width: 0;
}

.right {
  min-width: 0;
}

.sm-results-page__section {
  margin-bottom: 26px;
}

/* =========================================================
   HERO
   ========================================================= */

.sm-results-hero {
  background: #ffffff;
  border: 1px solid #d7e0eb;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
  padding: 22px 24px;
  margin-bottom: 24px;
}

.sm-results-hero__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.sm-results-hero__kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef5fd;
  color: #2d5b92;
  border: 1px solid #cfe0f4;
  font-size: 0.88rem;
  font-weight: 700;
}

.sm-results-hero__updated {
  color: #70829b;
  font-size: 0.92rem;
}

.sm-results-hero__main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.sm-results-hero__title {
  margin: 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 3rem;
  line-height: 0.98;
  color: #13233a;
}

.sm-results-hero__summary {
  margin: 10px 0 0 0;
  color: #596b85;
  font-size: 1rem;
  line-height: 1.45;
}

.sm-results-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sm-results-stat {
  border: 1px solid #dce5ef;
  border-radius: 12px;
  background: #fbfdff;
  padding: 12px 14px;
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(34px, auto) auto;
  align-content: start;
}

.sm-results-stat__label {
  color: #70829b;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 6px 0;
}

.sm-results-stat__value {
  color: #13233a;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 1.75rem;
  line-height: 1.05;
}

/* =========================================================
   TITLES
   ========================================================= */

.sm-results-page__section-title,
.sm-results-sidepanel__title {
  margin: 0;
  font-family: var(--font-heading, "Oswald", Arial, sans-serif);
  font-size: 2rem;
  line-height: 1;
  color: #13233a;
}

/* =========================================================
   TEAM CELLS
   ========================================================= */

.sm-results-team {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #163f78;
  font-weight: 700;
}

.sm-results-team:hover .sm-results-team__name {
  text-decoration: underline;
}

.sm-results-team__name {
  color: #163f78;
}

.sm-results-team__helmet {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
}

.sm-results-team__helmet--dot {
  border-radius: 50%;
  border: 1px solid #d7e0eb;
  position: relative;
  overflow: hidden;
}

.sm-results-team__helmet--dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--helmet-main, #1f4c8f);
}

.sm-results-team__helmet--dot::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  right: 1px;
  bottom: 1px;
  border-radius: 50%;
  background: var(--helmet-accent, #ffffff);
  border: 1px solid rgba(255,255,255,0.5);
}

/* guessed colors */
.ravens { --helmet-main: #241773; --helmet-accent: #9e7c0c; }
.chiefs { --helmet-main: #e31837; --helmet-accent: #ffb81c; }
.bills { --helmet-main: #00338d; --helmet-accent: #c60c30; }
.bengals { --helmet-main: #fb4f14; --helmet-accent: #000000; }
.eagles { --helmet-main: #004c54; --helmet-accent: #a5acaf; }
.cowboys { --helmet-main: #003594; --helmet-accent: #869397; }
.niners { --helmet-main: #aa0000; --helmet-accent: #b3995d; }
.seahawks { --helmet-main: #002244; --helmet-accent: #69be28; }
.rams { --helmet-main: #003594; --helmet-accent: #ffd100; }
.lions { --helmet-main: #0076b6; --helmet-accent: #b0b7bc; }
.bears { --helmet-main: #0b162a; --helmet-accent: #c83803; }

/* =========================================================
   DELTAS
   ========================================================= */

.sm-table__delta--up {
  color: #1b653d;
  font-weight: 700;
}

.sm-table__delta--down {
  color: #a2332e;
  font-weight: 700;
}

.sm-table__delta--flat {
  color: #657891;
  font-weight: 700;
}

/* =========================================================
   RIGHT PANEL
   ========================================================= */

.sm-results-sidepanel {
  position: sticky;
  top: 20px;
}

.sm-results-sidepanel__card {
  background: #fff;
  border: 1px solid #d7e0eb;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
  padding: 18px;
}

.sm-results-sidepanel__title {
  margin-bottom: 18px;
}

.sm-results-sidepanel__group + .sm-results-sidepanel__group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e3eaf3;
}

.sm-results-sidepanel__label {
  margin-bottom: 12px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #70829b;
  font-weight: 800;
}

.sm-results-sidepanel__link {
  display: block;
  padding: 4px 0;
  margin: 0 0 10px 0;
  text-decoration: none;
  color: #163f78;
  font-weight: 700;
  line-height: 1.4;
}

.sm-results-sidepanel__link:hover {
  color: #102f59;
  text-decoration: underline;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1040px) {
  .container-grid {
    grid-template-columns: 1fr;
  }

  .sm-results-sidepanel {
    position: static;
  }
}

@media (max-width: 780px) {
  .container-grid {
    padding: 16px 0px;
  }

  .sm-results-hero {
    padding: 16px;
  }

  .sm-results-hero__main {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .sm-results-hero__title {
    font-size: 2.2rem;
  }

  .sm-results-page__section-title,
  .sm-results-sidepanel__title {
    font-size: 1.75rem;
  }

  .sm-results-team {
    gap: 10px;
  }
}