/* ==== Wrapper ==== */
.btts-wrap { max-width: 880px; margin: 24px auto; }

/* ==== Card ==== */
.btts-wrapper {
  margin: 28px auto;
  padding: 12px;
  background: #1f1f1f;
  border-radius: 12px;
  color: #eee;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

/* extra spacing between consecutive fixtures in the same list */
.btts-wrap .btts-wrapper + .btts-wrapper { margin-top: 40px; }

/* Block Title (optional) */
.btts-block-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #f1f1f1;
  text-align: center;
  margin: 0 0 10px;
}

/* Match Title */
.btts-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f7f7f7;
  text-align: center;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btts-title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
}
.btts-title a:hover { border-bottom-color: rgba(255,255,255,.35); }

.btts-logo {
  height: 24px;
  width: auto;
  object-fit: contain;
}
@media (min-width: 769px) { .btts-logo { height: 28px; } }

/* Date */
.btts-date {
  font-size: 0.9rem;
  color: #bbb;
  text-align: center;
  margin-bottom: 10px;
}

/* ==== Highlighted BTTS Pick ==== */
.btts-pick {
  position: relative;
  padding: 12px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid #2a2a2a;
  box-shadow: inset 0 0 0 9999px rgba(0,0,0,0.0);
  margin: 10px auto 14px;
  max-width: 540px;
}
.btts-pick::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 12px 0 0 12px;
  background: #8e8e8e; /* default muted */
}
.btts-pick.is-yes::before { background: #16a34a; } /* green accent */
.btts-pick.is-no::before  { background: #ef4444; } /* red accent */

.btts-pick-title {
  font-size: 0.9rem;      /* armonizado */
  font-weight: 700;
  color: #e9e9e9;
  letter-spacing: .02em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.btts-pick-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.btts-pick-text {
  font-size: 1.05rem;     /* armonizado */
  font-weight: 700;
  color: #f1f1f1;
}
.btts-pick-pct {
  font-size: 1.25rem;     /* armonizado */
  font-weight: 800;
  line-height: 1;
  color: #f7f7f7;
}

.btts-meter {
  margin-top: 10px;
  height: 8px;
  background: #242424;
  border: 1px solid #2f2f2f;
  border-radius: 8px;
  overflow: hidden;
}
.btts-meter > span {
  display: block;
  height: 100%;
  width: 0%;
  background: #8e8e8e;
  transition: width .3s ease;
}
.btts-pick.is-yes .btts-meter > span { background: #16a34a; }
.btts-pick.is-no  .btts-meter > span { background: #ef4444; }

/* ==== Accordion ==== */
.btts-accordion { max-width: 760px; margin: 10px auto 0; }

.btts-acc-toggle {
  width: 100%;
  background: #2a2a2a;
  color: #f2f2f2;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s ease;
}
.btts-acc-toggle:hover { background: #323232; }
.btts-acc-toggle[aria-expanded="true"] .btts-acc-icon { transform: rotate(45deg); }
.btts-acc-icon { display: inline-block; transition: transform .2s ease; font-weight: 800; }

.btts-acc-panel {
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 12px;
  margin-top: 8px;
}

/* Section titles (H3) — barras gris ratón */
.btts-acc-title {
  font-size: 1rem;
  font-weight: 700;
  color: #eaeaea;
  margin: 6px 0 8px;
  line-height: 1.25;
  display: block;
}
.btts-acc-title.is-h2h,
.btts-acc-title.is-teams {
  border-left: 3px solid #8e8e8e; /* gris ratón */
  padding-left: 8px;
}

/* Más separación entre secciones (sobre todo 1 → 2) */
.btts-acc-group { margin-bottom: 22px; }
.btts-acc-group--spaced {
  margin-top: 36px;               /* más separación aún */
  padding-top: 18px;
  border-top: 1px solid #2a2a2a;  /* línea divisoria tenue */
}

/* Subtitles (H4) — no bold; team line */
.btts-acc-subtitle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.96rem;
  font-weight: 400;              /* <- sin negrita */
  color: #f1f1f1;
  margin: 6px 0 4px;
  line-height: 1.25;
}
.btts-acc-subtitle .btts-team {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Larger team logo for section 2 team line */
.btts-acc-subtitle.is-teamline .btts-logo { height: 26px; }
@media (min-width: 769px) {
  .btts-acc-subtitle.is-teamline .btts-logo { height: 28px; }
}

/* Inline KPI text next to team name */
.btts-team-kpi {
  font-weight: 600;
  font-size: 0.92rem;
  color: #cfd3d7;
}

/* Meta row: (btn first) + rank */
.btts-acc-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #cfd3d7;
  margin: 0 0 8px;
  flex-wrap: wrap;
}

/* Minimal action button (less rounded) */
.btts-btn {
  appearance: none;
  border: 1px solid #3a3a3a;
  background: #262626;
  color: #e8e8e8;
  padding: 4px 10px;
  border-radius: 8px;            /* menos redondo */
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btts-btn:hover {
  background: #2f2f2f;
  border-color: #4a4a4a;
  color: #ffffff;
}

/* Two columns */
.btts-acc-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
@media (max-width: 520px) {
  .btts-acc-two { grid-template-columns: 1fr; }
}

/* Columns */
.btts-acc-col {
  background: #222;
  border: 1px solid #2d2d2d;
  border-radius: 10px;
  padding: 10px;
}

/* Rank badge shows "Rank N" */
.btts-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  background: #2f2f2f;
  color: #eaeaea;
  border: 1px solid #3a3a3a;
}
.btts-badge.is-good {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.35);
}
.btts-badge.is-mid {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border-color: rgba(234, 179, 8, 0.35);
}
.btts-badge.is-bad {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.35);
}

/* ==== Lists of matches ==== */
.btts-acc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.btts-acc-list li {
  margin: 4px 0;
  padding: 6px 8px;
  border-radius: 6px;
  background: #262626;
  font-size: 0.92rem;
  line-height: 1.35;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  color: #eaeaea;
}
.btts-acc-list li::before {
  content: "•";
  color: #16a34a;
  font-weight: bold;
  margin-right: 6px;
}

/* Responsive */
@media (max-width: 520px) {
  .btts-pick-pct { font-size: 1.15rem; } /* ligera reducción en móviles */
  .btts-pick-text { font-size: 1.0rem; }
}
@media (max-width: 640px) {
  .btts-accordion { max-width: 100%; }
}
