.opta-explorer { color: #234c6d; font-size: 14px; }
.opta-explore-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 20px; }
.opta-explore-heading small { color: #8295a6; font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.opta-explore-heading h2 { margin: 3px 0 0; font-size: 28px; color: #153f62; }
.opta-season-tag { border: 1px solid #d6e2ec; border-radius: 5px; background: #f5f8fb; padding: 7px 12px; font-size: 12px; font-weight: 700; }
.opta-explore-filters { display: grid; grid-template-columns: .85fr 1.35fr 1.5fr .7fr; gap: 14px; padding: 18px; border: 1px solid #dce5ed; border-radius: 7px; background: #f6f8fb; }
.opta-explore-deeper { margin-top: 22px; }
.opta-explore-deeper > summary { cursor: pointer; color: #345f80; font-size: 14px; font-weight: 650; padding: 6px 0 14px; }
.opta-explore-deeper .opta-seccion-bar { margin-bottom: 16px; }
.opta-detail-title { font-size: 17px; font-weight: 650; margin: 0 0 14px; color: #234c6d; }
.opta-minute-threshold { min-height: 38px; padding: 4px 0; }
.opta-minute-threshold strong { display: block; font-size: 16px; }
.opta-minute-threshold small { color: #8093a3; font-size: 10px; }
.opta-dimension-actions { display: flex; gap: 6px; min-width: 0; align-items: center; }
.opta-distribution-button { flex: 0 0 32px; height: 31px; border: 1px solid #d6e2eb; border-radius: 4px; color: #315f82; background: #f4f8fb; cursor: pointer; font-size: 18px; }
.opta-distribution-button:hover, .opta-distribution-button:focus-visible { background: #dcebf6; }
.opta-explore-deeper details > summary { cursor: pointer; font-size: 19px; color: #234c6d; padding: 12px 0; }
.opta-explore-filter { min-width: 0; }
.opta-explore-filter label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 700; }
.opta-explore-filter > input { width: 100%; height: 38px; box-sizing: border-box; padding: 8px 10px; border: 1px solid #ccd9e4; border-radius: 4px; background: white; color: #234c6d; }
.opta-explore-filter .Select { width: 100%; font-size: 13px; }
.opta-sample { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 20px; font-size: 12px; }
.opta-sample span { color: #718396; }
.opta-explorer .opta-seccion-bar { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.opta-explorer .opta-sec-btn { padding: 9px 13px; border: 1px solid #d6e1ea; border-radius: 5px; background: #fff; color: #385d7b; font-size: 12px; cursor: pointer; }
.opta-explorer .opta-sec-btn.active { background: #174e7a; color: #fff; border-color: #174e7a; }
.opta-explore-help { margin: 10px 0 16px; color: #708497; font-size: 12px; }
.opta-explore-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.opta-explore-card { min-width: 0; overflow: hidden; border: 1px solid #dce5ed; border-radius: 8px; background: white; }
.opta-chart-heading { position: relative; display: flex; align-items: center; justify-content: center; min-height: 58px; padding: 12px 18px; border-bottom: 1px solid #e1e8ef; background: #f7f9fb; text-align: center; }
.opta-chart-heading h3 { margin: 0; font-size: 23px; color: #174e7a; }
.opta-chart-heading span { position: absolute; right: 18px; font-size: 10px; color: #7b8c9c; }
.opta-chart-heading small { display: block; color: #7e94a5; font-size: 9px; font-weight: 700; letter-spacing: .08em; margin-bottom: 3px; }
.opta-explore-card--produccion { border-top: 3px solid #245d89; }
.opta-explore-card--contextualizado { border-top: 3px solid #4c7e8a; }
.opta-color-key { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 0 20px; color: #798b9a; font-size: 10px; }
.opta-color-key i { width: 130px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, rgb(223,59,67),rgb(242,155,71) 35%,rgb(234,219,53) 50%,rgb(155,212,102) 70%,rgb(31,152,80)); }
.opta-dimensions { border: 1px solid #dce5ed; border-radius: 7px; padding: 18px 22px; background: white; }
.opta-dimensions-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.opta-dimensions-heading h3 { margin: 0; font-size: 21px; }
.opta-dimensions-heading > span { color: #8293a2; font-size: 11px; }
.opta-dimension-row { display: grid; grid-template-columns: minmax(0,1.2fr) repeat(2,minmax(0,1fr)); gap: 24px; align-items: center; padding: 9px 0; border-bottom: 1px solid #eef2f5; }
.opta-dimension-row:last-child { border-bottom: 0; }
.opta-dimension-name { font-size: 13px; font-weight: 600; }
.opta-dimension-labels { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: #8293a2; }
.opta-dimension-value { position: relative; isolation: isolate; overflow: hidden; width: 100%; min-height: 31px; border: 0; border-radius: 4px; padding: 5px 10px; background: #f0f4f7; text-align: right; color: #183344; cursor: pointer; }
.opta-dimension-fill { position: absolute; z-index: -1; left: 0; top: 0; bottom: 0; opacity: .7; }
.opta-dimension-value:hover, .opta-dimension-value:focus-visible { outline: 2px solid #356b95; }
@media(max-width: 700px) { .opta-dimension-row { grid-template-columns: minmax(0,1.4fr) repeat(2,minmax(0,1fr)); gap: 10px; } .opta-dimensions { padding: 12px; } .opta-dimensions-heading { align-items: start; flex-direction: column; } }
.opta-metric-list { padding: 0 16px 16px; }
.opta-metric-row { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 15px; min-height: 39px; padding: 9px 10px; text-align: left; border: 0; border-bottom: 1px solid #e5ebf0; background: white; color: #305776; font-size: 13px; cursor: pointer; }
.opta-metric-row:hover, .opta-metric-row:focus-visible { background: #edf4fa; }
.opta-metric-row strong { color: #164e7b; font-variant-numeric: tabular-nums; }
.opta-category-ranking { padding: 0 18px 18px; }
.opta-category-ranking h4 { margin: 6px 0 10px; font-size: 17px; }
.opta-category-player { display: grid; grid-template-columns: 30px 1fr 45px; align-items: center; padding: 8px; gap: 10px; border-bottom: 1px solid #e5ebf0; font-size: 13px; }
.opta-category-player small { display: block; color: #778d9f; font-size: 11px; }
.opta-category-player.is-target { background: #e4f1fb; border-radius: 4px; }
.opta-metric-overlay { position: fixed; top: 18px; bottom: 18px; right: 18px; width: min(570px, 46vw); z-index: 3000; padding: 0; }
.opta-metric-dialog { width: 100%; overflow: auto; padding: 24px; border: 1px solid #cbdce9; border-radius: 12px; background: white; box-shadow: -10px 12px 45px #102d4b26; }
.opta-modal-close { display: block; margin-left: auto; padding: 7px 12px; border: 1px solid #d3dfe9; border-radius: 4px; background: #f6f8fa; color: #315b7c; cursor: pointer; }
.opta-metric-dialog h3 { font-size: 25px; margin: 8px 0; }
.opta-metric-dialog h4 { font-size: 18px; }
.opta-metric-dialog p { color: #7b8c9c; font-size: 12px; }
.opta-metric-dialog table { width: 100%; border-collapse: collapse; font-size: 13px; }
.opta-metric-dialog th, .opta-metric-dialog td { text-align: left; padding: 9px; border-bottom: 1px solid #e1e8ef; }
.opta-metric-dialog th { background: #f4f7fa; }
.opta-metric-dialog .is-target { background: #e4f1fb; font-weight: 700; }
@media(max-width: 1050px) { .opta-explore-filters { grid-template-columns: repeat(2,minmax(0,1fr)); } .opta-explore-grid { grid-template-columns: 1fr; } }
@media(max-width: 600px) { .opta-explore-filters { grid-template-columns: 1fr; } .opta-metric-overlay { right: 8px; top: 8px; bottom: 8px; width: calc(100vw - 16px); } .opta-metric-dialog { padding: 12px; } }
.opta-global-stage { border: 1px solid #dce5ed; border-radius: 10px; background: white; overflow: hidden; }
.opta-stage-heading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 20px 13px; background: #123f63; text-align: center; }
.opta-stage-heading h2 { margin: 0; color: white; font-size: 23px; letter-spacing: .01em; }
.opta-stage-heading small { color: #bad5e8; font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.opta-global-stage .opta-explore-grid { gap: 0; }
.opta-global-stage .opta-explore-card { border: 0; border-radius: 0; }
.opta-global-stage .opta-explore-card + .opta-explore-card { border-left: 1px solid #edf2f6; }
.opta-card-distribution { margin: 0 18px 18px; border: 1px solid #e0e8ef; border-radius: 8px; overflow: hidden; background: #f8fafc; }
.opta-distribution-title { padding: 10px 14px 0; color: #627c91; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.opta-card-distribution .opta-univariate { border-bottom: 0; }
.opta-area-selector-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.opta-area-selector-heading h3 { margin: 0; color: #173f60; font-size: 20px; }
.opta-area-selector-heading span { color: #7890a3; font-size: 11px; }
.opta-detail-stage { margin-top: 16px; }
.opta-percentage-control { display: flex; align-items: center; height: 38px; border: 1px solid #ccd9e4; border-radius: 5px; background: white; padding-right: 12px; }
.opta-percentage-control input { width: 100%; min-width: 0; border: 0; background: transparent; padding: 7px 10px; color: #234c6d; font-size: 15px; font-weight: 650; }
.opta-minute-threshold { padding-top: 0; }
.opta-distribution-button { flex: 0 0 auto; padding: 0 10px; font-size: 11px; font-weight: 600; border-radius: 5px; }
.opta-comparison-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; background: #f2f7fb; border-radius: 8px; padding: 16px; margin-top: 18px; }
.opta-comparison-summary small { display: block; font-size: 10px; letter-spacing: .06em; color: #718a9e; }
.opta-comparison-summary strong { display: block; margin-top: 4px; font-size: 22px; color: #174e7a; }

.opta-area-link { border: 0; background: transparent; text-align: left; color: #234c6d; padding: 8px 0; cursor: pointer; }
.opta-area-link:hover { color: #0876bb; }
.opta-inline-metric { margin-top: 20px; border: 1px solid #d9e5ee; border-radius: 10px; background: white; padding: 22px; }
.opta-inline-metric-body { width: 100%; }
.opta-inline-metric h3 { font-size: 24px; color: #173f60; }
.opta-inline-metric p { font-size: 12px; color: #7890a3; }
.opta-univariate { border-bottom: 1px solid #edf2f6; }
@media(max-width: 700px) {
  .opta-chart-heading span { position: static; margin-left: 10px; }
  .opta-area-selector-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
}
/* Reserve chart geometry while Plotly replaces data or recalculates its width. */
.opta-explorer .opta-radar-graph { display:block; position:relative; width:100%; height:490px; min-width:0; flex:none; }
.opta-explorer .opta-explore-card { position:relative; isolation:isolate; }
.opta-explorer .opta-explore-grid { align-items:start; }
.opta-explorer .opta-card-distribution { position:relative; clear:both; }
.opta-explorer #opta-results { min-width:0; }
.opta-refresh-message:not(:empty) { margin:12px 0; padding:12px 16px; border:1px solid #e4cf9c; border-radius:6px; background:#fff9ec; color:#755526; font-size:13px; }
/* Data coverage belongs to the selected season, never an implicit fallback. */
.opta-explorer .opta-coverage-notice { padding:12px 16px; margin:0 0 14px; border:1px solid #dfd5b7; border-left:3px solid #b79245; background:#fcfaf3; border-radius:5px; color:#655b3c; font-size:13px; line-height:1.5; }
