.match-tabs,
.module-tabs {
  grid-template-columns: repeat(7, minmax(110px, 1fr));
}

.hazxawka-embed {
  width: 100%;
  margin-top: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0 0 14px 14px;
  background: #07080f;
}

.hazxawka-embed iframe {
  display: block;
  width: 100%;
  min-height: 900px;
  border: 0;
  background: #07080f;
}

.reading-embed iframe { min-height: 1200px; }

.full-report {
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(5, 14, 17, 0.92);
}

.full-report summary {
  padding: 15px 17px;
  color: #789191;
  font-size: 0.74rem;
  font-weight: 850;
  cursor: pointer;
}

.full-report[open] summary { color: var(--mint, var(--lime)); }

.technical-report-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  color: #819799;
  font-size: 0.66rem;
}

.technical-report-head strong { color: #d8e9e7; }

.full-report pre {
  max-height: 72vh;
  overflow: auto;
  margin: 0;
  padding: 18px;
  border-top: 1px solid var(--line);
  color: #bed0ce;
  background: #03090c;
  font: 500 0.72rem/1.62 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.candidate-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-bottom: 12px;
}

.market-highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}

.market-highlight {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  min-height: 132px;
  padding: 15px;
  border: 1px solid rgba(30, 214, 176, 0.2);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(11, 30, 31, 0.95), rgba(4, 14, 17, 0.96));
}

.market-highlight div { display: flex; flex-direction: column; gap: 4px; }
.market-highlight small { color: #55daba; font-size: 0.56rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.market-highlight strong { color: #f3fbfa; font-size: 0.78rem; }
.market-highlight span { color: #90a8a7; font-size: 0.66rem; }
.market-highlight b { color: var(--mint, var(--lime)); font: 900 1.28rem ui-monospace, monospace; }
.market-highlight p { grid-column: 1 / -1; margin: auto 0 0; color: #718989; font-size: 0.61rem; line-height: 1.45; }

.candidate-summary article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #071216;
}

.candidate-summary small {
  display: block;
  color: #6f898b;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
}

.candidate-summary strong {
  display: block;
  margin-top: 5px;
  font: 850 1.3rem ui-monospace, monospace;
}

.candidate-table input {
  width: 76px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #fff;
  background: #030a0d;
  font: 700 0.7rem ui-monospace, monospace;
}

.candidate-table .positive,
.tier-backed { color: var(--mint, var(--lime)); }
.tier-ev { color: #65d8ff; }
.candidate-table .negative,
.tier-discarded { color: #ef7777; }
.candidate-table .warn,
.tier-exploratory { color: var(--warn); }
.candidate-reason { max-width: 380px; color: #859b9c; line-height: 1.45; }
.combo-card { padding: 15px 17px; border-bottom: 1px solid var(--line); }
.combo-card:last-child { border-bottom: 0; }
.combo-card h4 { margin: 0 0 6px; font-size: 0.78rem; }
.combo-card p { margin: 0; color: var(--muted); font-size: 0.68rem; }
.mesa-empty,
.mesa-placeholder { padding: 28px 18px; color: var(--muted); text-align: center; }
.mesa-empty strong,
.mesa-placeholder b { display: block; margin-bottom: 7px; color: #fff; }
.report-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.report-meta span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: #819799; font-size: 0.6rem; }

/* Jugadores: vista completa de HAZXAWKA convertida a datos públicos. */
.player-teams { display: grid; gap: 20px; }
.player-team,
.player-market { overflow: hidden; border: 1px solid #0b5c4d; border-radius: 14px; background: #071311; }
.player-team > summary,
.player-market > summary { list-style: none; cursor: pointer; }
.player-team > summary::-webkit-details-marker,
.player-market > summary::-webkit-details-marker { display: none; }
.player-team > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; padding: 12px 22px; }
.player-team > summary strong { display: block; color: #f1fbf8; font-size: 1.22rem; font-weight: 900; }
.player-team > summary small { display: block; margin-top: 3px; color: #7fb8aa; font-size: 0.72rem; }
.player-chevron { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border: 1px solid #176457; border-radius: 8px; color: var(--mint); transition: transform 0.18s ease; }
.player-chevron::before { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; content: ""; transform: rotate(45deg) translate(-1px, -1px); }
.player-team[open] > summary .player-chevron,
.player-market[open] > summary .player-chevron { transform: rotate(180deg); }
.player-market-list { display: grid; gap: 10px; padding: 0 16px 16px; }
.player-market { border-color: #153d37; border-radius: 11px; background: #091916; }
.player-market:hover { border-color: #16836c; }
.player-market > summary { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(210px, 1fr) auto auto; align-items: center; gap: 18px; min-height: 72px; padding: 12px 16px; }
.player-market-name { display: flex; align-items: center; gap: 12px; color: #f2fbf8; font-size: 0.84rem; font-weight: 900; letter-spacing: 0.04em; }
.player-market-name i { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border: 1px solid #176457; border-radius: 9px; color: #fff; background: #0c2924; font-style: normal; font-size: 1rem; }
.player-market-context { color: #83b3a8; font-size: 0.68rem; line-height: 1.45; }
.player-leader { text-align: right; color: #d9fff6; font-size: 0.72rem; font-weight: 850; }
.player-leader small { display: block; margin-top: 2px; color: #76a99d; font-size: 0.68rem; font-weight: 600; }
.player-market-body { padding: 12px 14px 16px; border-top: 1px solid #153d37; }
.player-table-scroll { overflow-x: auto; }
.player-table { width: 100%; min-width: 900px; border-collapse: collapse; }
.player-table th { padding: 10px; border-bottom: 1px solid #205048; color: #63d9bd; text-align: left; font-size: 0.61rem; letter-spacing: 0.1em; }
.player-table th:nth-child(2),
.player-table th:nth-child(3),
.player-table th:nth-child(4),
.player-table td:nth-child(2),
.player-table td:nth-child(3),
.player-table td:nth-child(4) { text-align: center; }
.player-table td { padding: 12px 10px; border-bottom: 1px solid #112e29; color: #c2ddd7; vertical-align: top; font-size: 0.7rem; }
.player-table tr:last-child td { border-bottom: 0; }
.player-name { color: #f5fffc !important; font-weight: 900; white-space: nowrap; }
.player-role { display: inline-flex; padding: 5px 8px; border: 1px solid #176457; border-radius: 999px; color: #a9dfd2; font-size: 0.62rem; font-weight: 850; white-space: nowrap; }
.player-role.high { border-color: #0a9c78; color: #2fffc4; }
.player-role.low { border-color: #9b7200; color: #ffd34e; }
.player-lines { display: flex; gap: 7px; flex-wrap: wrap; }
.player-line { display: grid; min-width: 142px; gap: 3px; padding: 8px 9px; border: 1px solid #205048; border-radius: 8px; color: #effbf8; background: #071512; }
.player-line strong { font-size: 0.68rem; }
.player-line small { color: #70ad9f; font-size: 0.59rem; }
.player-line.strong { border-color: #0baa7e; color: #2fffc4; background: #06251e; }
.player-line.medium { border-color: #8c6d06; color: #ffd44d; background: #211c08; }
.player-line.invalid { border-color: #936700; color: #ffd34e; background: #211805; }
.player-line.invalid small { color: #f0bd32; }
.module-view:has(.player-teams) { padding-top: 18px; }

@media (max-width: 700px) {
  .match-tabs,
  .module-tabs { grid-template-columns: repeat(7, minmax(110px, 1fr)); }
  .candidate-summary { grid-template-columns: repeat(2, 1fr); }
  .market-highlight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 11px; }
  .market-highlight { min-height: 118px; padding: 12px; }
  .technical-report-head { flex-direction: column; gap: 5px; }
  .candidate-table { min-width: 780px; }
  .full-report pre { font-size: 0.65rem; }
  .hazxawka-embed { margin-inline: -5px; width: calc(100% + 10px); }
  .player-market > summary { grid-template-columns: 1fr auto; }
  .player-market-context { grid-column: 1 / -1; grid-row: 2; }
  .player-leader { grid-column: 1; grid-row: 3; text-align: left; }
  .player-market > summary > .player-chevron { grid-column: 2; grid-row: 1 / 4; }
  .player-team > summary { padding-inline: 16px; }
  .player-market-list { padding-inline: 9px; }
  .player-market-body { padding-inline: 8px; }
}
