/* Revista BossEdge — índice y artículos post-jornada */

.page-recap {
  min-height: 100vh;
}

.recap-main {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem max(clamp(1rem, 4vw, 2.75rem), env(safe-area-inset-right, 0px))
    max(2rem, env(safe-area-inset-bottom, 0px))
    max(clamp(1rem, 4vw, 2.75rem), env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* —— Banner owner —— */

.recap-owner-banner {
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(232, 196, 104, 0.35);
  background: rgba(232, 196, 104, 0.08);
  color: var(--accent, #e8c468);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
}

/* —— Masthead índice —— */

.recap-masthead {
  padding: 0.65rem 0 0.35rem;
  border-bottom: 1px solid var(--stroke);
}

.recap-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent, #e8c468);
}

.recap-index-title,
.recap-article-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display), Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 4.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.recap-index-lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 52rem;
}

.recap-index-day {
  margin: 0.65rem 0 0;
}

.recap-day-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

/* —— Secciones deporte / liga —— */

.recap-index-body {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.recap-sport-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.recap-sport-heading {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--stroke);
}

.recap-sport-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.recap-league-block {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.recap-league-featured .recap-league-head {
  border-bottom-color: rgba(232, 196, 104, 0.4);
}

.recap-league-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--stroke);
}

.recap-league-heading {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
}

.recap-league-code {
  margin-left: 0.3rem;
  font-size: 0.78rem;
  font-weight: 500;
}

.recap-league-badge {
  flex-shrink: 0;
  font-size: 0.68rem;
}

/* —— Grid de tarjetas índice —— */

.recap-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 0.65rem;
}

.recap-card {
  padding: 0;
  overflow: hidden;
  transition:
    border-color 160ms var(--ease-out),
    transform 160ms var(--ease-out),
    box-shadow 160ms var(--ease-out);
}

.recap-card-has-media .recap-card-hit {
  padding-top: 0;
}

.recap-card-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.recap-card-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recap-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(9, 11, 15, 0.75) 100%);
  pointer-events: none;
}

.recap-card-has-media .recap-card-top,
.recap-card-has-media .recap-card-title,
.recap-card-has-media .recap-card-teaser,
.recap-card-has-media .recap-card-foot {
  padding-left: 0.95rem;
  padding-right: 0.95rem;
}

.recap-card-has-media .recap-card-top {
  margin-top: -1.6rem;
  position: relative;
  z-index: 1;
}

.recap-card-has-media .recap-card-foot {
  padding-bottom: 0.9rem;
}

.recap-card:hover {
  border-color: rgba(232, 196, 104, 0.35);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm), 0 6px 20px rgba(0, 0, 0, 0.18);
}

.recap-card-hit {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  height: 100%;
  padding: 0.85rem 0.95rem 0.9rem;
  color: inherit;
  text-decoration: none;
}

.recap-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.recap-card-jornada {
  font-size: 0.65rem;
}

.recap-card-rate {
  flex-shrink: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent, #e8c468);
  letter-spacing: -0.02em;
}

.recap-card-title {
  margin: 0;
  font-family: var(--font-display), Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.28;
  font-weight: 700;
}

.recap-card-teaser {
  margin: 0;
  flex: 1;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recap-card-foot {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.15rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--stroke);
}

.recap-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.recap-card-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent, #e8c468);
}

.stat-chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid var(--stroke);
}

.stat-chip-accent {
  color: var(--accent, #e8c468);
  border-color: rgba(232, 196, 104, 0.28);
  background: rgba(232, 196, 104, 0.08);
}

.stat-chip-won {
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.25);
  background: rgba(52, 211, 153, 0.08);
}

.stat-chip-lost {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.25);
  background: rgba(248, 113, 113, 0.08);
}

/* —— Artículo —— */

.recap-back {
  margin: 0;
}

.recap-back-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.recap-back-link:hover {
  color: var(--accent, #e8c468);
}

.recap-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

@media (min-width: 960px) {
  .recap-article-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
    gap: 0.85rem;
  }
}

.recap-article {
  padding: clamp(1rem, 3vw, 1.35rem);
  overflow: hidden;
}

.recap-hero {
  margin: -1rem -1rem 0.85rem;
  position: relative;
}

@media (min-width: 560px) {
  .recap-hero {
    margin: -1.35rem -1.35rem 0.85rem;
  }
}

.recap-hero img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

.recap-hero-credit {
  margin: 0;
  padding: 0.35rem 0.85rem 0;
  font-size: 0.72rem;
}

.recap-article-subtitle {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
}

.recap-lead {
  margin: 0.85rem 0 0.75rem;
  font-size: 1.05rem;
  line-height: 1.58;
  font-family: Georgia, "Times New Roman", serif;
}

.recap-stats-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.02);
}

.recap-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-align: center;
}

.recap-stat-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent, #e8c468);
  line-height: 1.15;
}

.recap-stat-label {
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.25;
}

.recap-section {
  margin-top: 1.1rem;
}

.recap-section-title {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.recap-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 0.55rem;
}

.recap-highlight {
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.recap-highlight-has-media .recap-highlight-badge,
.recap-highlight-has-media h3,
.recap-highlight-has-media p {
  margin-left: 0.85rem;
  margin-right: 0.85rem;
}

.recap-highlight-has-media .recap-highlight-badge {
  margin-top: 0.65rem;
}

.recap-highlight-has-media p {
  margin-bottom: 0.75rem;
}

.recap-highlight-visual {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.recap-highlight-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recap-highlight-hit {
  border-left: 3px solid #3ecf8e;
}

.recap-highlight-miss {
  border-left: 3px solid #f07178;
}

.recap-highlight-badge {
  display: inline-block;
  margin-bottom: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.recap-highlight h3 {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  line-height: 1.3;
}

.recap-highlight p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
}

.recap-stories {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.recap-story {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--stroke);
}

.recap-story:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.recap-story-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.2rem;
}

.recap-story-crests {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.recap-story-crests img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.recap-story-head-text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
  flex: 1;
  min-width: min(100%, 12rem);
}

.recap-story-head-text h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
}

.recap-story-head h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
}

.recap-story-pick {
  margin: 0 0 0.2rem;
  font-size: 0.8rem;
}

.recap-story-body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text, #e8eaed);
}

/* —— Compartir (sidebar) —— */

.recap-share {
  padding: 0.9rem 1rem;
}

.recap-share-title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.recap-share-hint {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  line-height: 1.4;
}

.recap-share-channels-label {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted, #9aa0a6);
}

.recap-share-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.recap-share-channel-full {
  grid-column: 1 / -1;
}

.recap-share-tip {
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.78rem;
  line-height: 1.45;
}

.recap-share-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.recap-share-actions-top {
  margin-bottom: 0.55rem;
}

.recap-share .btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.recap-og-preview {
  margin: 0 0 0.65rem;
}

.recap-og-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--stroke);
}

.recap-og-preview figcaption {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  line-height: 1.35;
}

@media (min-width: 960px) {
  .recap-share {
    position: sticky;
    top: 0.75rem;
  }
}

/* —— Pie artículo —— */

.recap-article-foot {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--stroke);
}

.recap-disclaimer {
  font-size: 0.8rem;
  line-height: 1.45;
  margin-bottom: 0.65rem !important;
}

.recap-foot-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* —— Promo índice —— */

.recap-promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232, 196, 104, 0.22);
  background: linear-gradient(
    135deg,
    rgba(232, 196, 104, 0.07) 0%,
    rgba(255, 255, 255, 0.02) 55%
  );
}

.recap-promo-copy h3 {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
}

.recap-promo-copy p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
  max-width: 36rem;
}

.recap-promo-cta {
  flex-shrink: 0;
  white-space: nowrap;
}

/* —— Vacío —— */

.recap-empty {
  padding: 1.1rem 1.15rem;
}

.recap-empty h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.outcome-neutral {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

/* —— Responsive —— */

@media (max-width: 560px) {
  .recap-stats-band {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 0.55rem 0.65rem;
  }

  .recap-stat {
    text-align: left;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .recap-promo {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .recap-promo-cta {
    width: 100%;
    text-align: center;
  }

  .recap-card-rate {
    font-size: 0.95rem;
  }
}

@media (min-width: 720px) {
  .recap-feed {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  }
}
