/* home.css */
@font-face {
  font-family: "BbrBannerCondensed";
  src: url("/assets/fonts/futura-condensada-negrito.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.bbr-home-surface {
  padding-top: 20px;
}

.bbr-block-caption {
  margin: 0;
  color: var(--bbr-text-soft);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.bbr-search-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 40px;
  margin: 0;
  padding-inline: 18px;
  border-radius: 999px;
  background: var(--bbr-surface-raised);
}

.bbr-search-bar:focus-within {
  outline: 1px solid var(--bbr-accent);
  outline-offset: 2px;
}

.bbr-search-submit {
  display: flex;
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bbr-text);
  cursor: pointer;
}

.bbr-search-submit:focus-visible {
  outline: 2px solid var(--bbr-yellow);
  outline-offset: 2px;
}

.bbr-search-field {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--bbr-text);
  font-family: var(--bbr-font-ui);
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
}

.bbr-search-field::placeholder {
  color: var(--bbr-text);
  opacity: 1;
}

.bbr-offer-section {
  margin-top: var(--bbr-space-16);
}

.bbr-offer-rail,
.bbr-sport-rail {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.bbr-offer-rail::-webkit-scrollbar,
.bbr-sport-rail::-webkit-scrollbar {
  display: none;
}

.bbr-offer-rail:focus-visible,
.bbr-sport-rail:focus-visible {
  outline: 2px solid var(--bbr-accent);
  outline-offset: 4px;
  border-radius: 12px;
}

.bbr-offer-list {
  display: flex;
  gap: 10px;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bbr-offer-entry {
  flex: 0 0 auto;
  width: min(374px, calc(100vw - 64px));
}

.bbr-offer-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 600 / 282;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bbr-text);
  text-align: left;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  container-type: inline-size;
}

.bbr-offer-card:focus-visible {
  outline: 2px solid var(--bbr-yellow);
  outline-offset: -3px;
  border-radius: 12px;
}

.bbr-offer-image {
  display: block;
  width: 100%;
  height: auto;
}

.bbr-offer-copy {
  position: absolute;
  top: 55%;
  left: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  max-width: 56%;
  transform: translateY(-50%);
  font-family: "BbrBannerCondensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  pointer-events: none;
}

.bbr-offer-kicker {
  color: var(--bbr-accent);
  font-size: clamp(12px, 3.74cqi, 14px);
  line-height: 1;
}

.bbr-offer-title {
  font-size: clamp(18px, 5.88cqi, 22px);
  line-height: 0.98;
}

.bbr-offer-highlight {
  color: var(--bbr-accent);
  font-size: clamp(13px, 4.28cqi, 16px);
  line-height: 1.05;
}

.bbr-sport-section {
  margin-top: var(--bbr-space-16);
}

.bbr-sport-list {
  display: flex;
  gap: 5px;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bbr-sport-entry {
  flex: 0 0 auto;
}

.bbr-sport-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 77px;
  height: 66px;
  padding: 7px 5px;
  border: 1px solid #2c2c2c;
  border-radius: 10px;
  background: var(--bbr-surface);
  color: var(--bbr-text);
  font-family: var(--bbr-font-ui);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.bbr-sport-card:hover {
  border-color: #4a4a4a;
  background: var(--bbr-surface-raised);
}

.bbr-sport-card:focus-visible {
  outline: 2px solid var(--bbr-yellow);
  outline-offset: -3px;
}

.bbr-sport-image {
  display: block;
  flex: 0 0 28px;
  width: 32px;
  height: 28px;
  object-fit: contain;
}

.bbr-sport-label {
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
  white-space: nowrap;
}

.bbr-futures {
  margin-top: var(--bbr-space-16);
  margin-bottom: var(--bbr-space-24);
}

.bbr-futures-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bbr-space-16);
  padding: 0 0 12px;
}

.bbr-block-description {
  margin: 5px 0 12px;
  color: var(--bbr-text-muted);
  font-size: 12px;
  line-height: 18px;
}

.bbr-futures-heading .bbr-block-description {
  margin-bottom: 0;
}

.bbr-futures-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--bbr-space-8);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bbr-futures-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  align-items: stretch;
  gap: var(--bbr-space-8);
  min-height: 68px;
  padding: 6px;
  border: 1px solid var(--bbr-border);
  border-radius: 8px;
  background: var(--bbr-surface);
}

.bbr-futures-team {
  display: flex;
  align-items: center;
  gap: var(--bbr-space-8);
  min-width: 0;
  padding: 2px 4px;
}

.bbr-futures-kit {
  flex: 0 0 24px;
  width: 24px;
  height: 28px;
  object-fit: contain;
}

.bbr-futures-team-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.bbr-futures-team-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
}

.bbr-futures-country {
  color: var(--bbr-text-muted);
  font-size: 11px;
  line-height: 15px;
}

.bbr-futures-price {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: #2b2b2b;
  color: var(--bbr-yellow);
  font-family: var(--bbr-font-ui);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 18px;
  cursor: pointer;
}

.bbr-futures-price:hover {
  background: #363636;
}

.bbr-futures-price:focus-visible {
  outline: 2px solid var(--bbr-yellow);
  outline-offset: -3px;
}

.bbr-slot-section {
  margin-top: var(--bbr-space-24);
  margin-bottom: var(--bbr-space-32);
}

.bbr-slot-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: var(--bbr-space-8);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bbr-slot-entry {
  min-width: 0;
}

.bbr-slot-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: 1px solid #383838;
  border-radius: 12px;
  background: var(--bbr-surface);
  color: var(--bbr-text);
  cursor: pointer;
}

.bbr-slot-card:hover {
  border-color: var(--bbr-accent);
}

.bbr-slot-card:focus-visible {
  outline: 2px solid var(--bbr-yellow);
  outline-offset: 2px;
}

.bbr-slot-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1000px) {
  .bbr-slot-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .bbr-futures-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .bbr-slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bbr-futures-heading {
    flex-wrap: wrap;
    gap: 10px;
    padding-inline: 0;
  }

  .bbr-futures-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .bbr-futures-price {
    min-height: 36px;
  }
}

/* Editorial content spacing on the home page. */
.bbr-home-content {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--bbr-border);
}

@media (max-width: 600px) {
  .bbr-home-content { margin-top: 28px; padding-top: 28px; }
}
