/* Only the new mobile launch button changes the ordinary quadrant. */
#section-cuadrante .ts-bracket-overview-launch { display: none; }
@media (max-width: 768px), (max-width: 1100px) and (max-height: 600px) and (orientation: landscape) and (hover: none) and (pointer: coarse) {
    /* Override the mobile banner sidebar only while the overview is active. */
    body[data-ts-section="vista-general"] #timeshot-app-wrapper #sidebarRight { display: none !important; }
    #section-cuadrante .ts-bracket-overview-launch { display: block; margin: 12px 0; }
    #section-cuadrante #btnVistaGeneral[href] {
        display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; width: 100%;
        padding: 10px 14px; border: 1px solid #5d9cec; border-radius: 9px;
        background: linear-gradient(90deg,#4a89dc,#5d9cec); color: white; text-decoration: none; font-size: 14px; font-weight: 800;
    }
    #section-cuadrante #btnVistaGeneral:not([href]) { display: none; }
    #section-cuadrante #btnVistaGeneral span:last-child { margin-left: auto; }
    #section-cuadrante #btnVistaGeneral span:first-child { margin-right: auto; }
}
/* The existing real TimeShot header stays mounted and fully functional. */
body[data-ts-section="vista-general"] { overflow: hidden !important; overflow-anchor: none; }
body[data-ts-section="vista-general"] :is(#sidebar,#sidebarRight,.main-header,.main-nav,.timeshot-site-footer,#timeshotPersistentAdsHost,#lightParticles) { display: none !important; }
body[data-ts-section="vista-general"] #timeshot-app-wrapper {
    display: flex !important; flex-direction: column; height: 100dvh !important; min-height: 0 !important; overflow: hidden !important; padding: 0 !important;
}
body[data-ts-section="vista-general"] #timeshotPersistentTopbar { flex: none; }
body[data-ts-section="vista-general"] #timeshot-app-wrapper .main-layout {
    display: flex !important; flex-direction: column; flex: 1; min-height: 0; margin: 0 !important; padding: 0 !important; gap: 0 !important; width: 100% !important; max-width: none !important;
}
body[data-ts-section="vista-general"] #timeshot-app-wrapper .main-content-wrapper {
    display: flex !important; flex-direction: column; flex: 1; min-height: 0; margin: 0 !important; padding: 0 !important; width: 100% !important; max-width: none !important;
}
#section-vista-general:not(.active) { display: none !important; }
#section-vista-general.active {
    display: flex !important; flex-direction: column; flex: 1; min-height: 0 !important; width: 100% !important;
    margin: 0 !important; padding: 12px !important; overflow: hidden !important; background: #020b16; color: #edf8ff; box-sizing: border-box;
}
#bracketOverviewRoot { display: flex; flex-direction: column; flex: 1; min-height: 0; width: 100%; }
#section-vista-general * { box-sizing: border-box; }
#section-vista-general button { cursor: pointer; font: inherit; }
#section-vista-general :is(a,button,[tabindex]):focus-visible { outline: 2px solid #5dcfeb; outline-offset: 3px; }
#section-vista-general [hidden] { display: none !important; }
#section-vista-general .ts-overview-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 8px; }
#section-vista-general .ts-overview-back { color: #9bb2c9; text-decoration: none; font-size: 11px; }
#section-vista-general .ts-overview-heading h1 { margin: 7px 0 0; font-size: 21px; line-height: 1.3; color: #edf8ff; }
#section-vista-general .ts-overview-count { margin-left: 9px; color: #b7cceb; font-size: 11px; font-weight: 600; }
#section-vista-general .ts-overview-state { color: #91e8c8; font-size: 10px; text-align: right; }
#section-vista-general .ts-overview-state[data-status="error"] { color: #f6bb42; }
#section-vista-general .ts-overview-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 8px; }
#section-vista-general .ts-overview-tools p { margin: 0; color: #91abc0; font-size: 11px; line-height: 1.6; }
#section-vista-general .ts-overview-zoom { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 5px; }
#section-vista-general .ts-overview-zoom button {
    min-width: 36px; min-height: 36px; padding: 3px 9px; border: 1px solid #2a4968; border-radius: 6px; background: #10283e; color: #cae8ff; font-size: 11px;
}
#section-vista-general .ts-overview-zoom :is([data-zoom="out"],[data-zoom="in"]) { font-size: 20px; }
#section-vista-general .ts-overview-zoom button:hover { background: #1b3f5d; border-color: #5881a2; }
#section-vista-general .ts-overview-zoom button:disabled { opacity: .35; cursor: default; }
#section-vista-general .ts-overview-zoom output { width: 40px; text-align: center; color: #9db6d0; font-size: 11px; font-variant-numeric: tabular-nums; }
#section-vista-general .ts-overview-views { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 8px 10px; }
#section-vista-general .ts-overview-views button {
    min-height: 36px; padding: 6px 12px; border: 1px solid #315171; border-radius: 7px; background: #10283e; color: #b7cceb; font-size: 11px;
}
#section-vista-general .ts-overview-views button[aria-pressed="true"] { background: #0c527b; color: white; border-color: #2381aa; }
#section-vista-general .ts-overview-tracking { display: grid; gap: 6px; margin-bottom: 10px; padding: 8px 12px; border: 1px solid #2381aa; border-radius: 8px; background: #08243b; }
#section-vista-general .ts-overview-tracking > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #9fc4d7; font-size: 11px; }
#section-vista-general .ts-overview-tracking > div > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#section-vista-general .ts-overview-tracking strong { color: #f6bb42; font-size: 12px; }
#section-vista-general .ts-overview-tracking small { color: #b7cceb; font-size: 10px; }
#section-vista-general [data-clear-player] { flex: none; width: 32px; height: 32px; border: 1px solid #315171; border-radius: 6px; background: #10283e; color: #dceaf4; font-size: 21px; }
#section-vista-general .ts-overview-tracking nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: thin; touch-action: pan-x; }
#section-vista-general .ts-overview-tracking nav button { flex: none; min-height: 32px; padding: 6px 10px; border: 1px solid #41638b; border-radius: 6px; background: #18385d; color: #deedff; font-size: 10px; white-space: nowrap; }
#section-vista-general .ts-overview-tracking nav button small { margin-left: 4px; color: #89adc6; font-size: 9px; }
#section-vista-general .ts-overview-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#section-vista-general .ts-overview-viewport {
    position: relative; flex: 1; min-height: 80px; width: 100%; overflow: auto; border: 1px solid #213959; border-radius: 8px; background: #0a1628;
    touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #42658c #0a1628; overflow-anchor: none; overscroll-behavior: contain;
}
#section-vista-general .ts-overview-viewport.is-dragging { cursor: grabbing; user-select: none; }
#section-vista-general .ts-overview-size { position: relative; min-height: 100%; overflow: clip; }
#section-vista-general .ts-overview-canvas { position: absolute; top: 0; width: 980px; transform-origin: 0 0; display: flow-root; }
#section-vista-general .ts-overview-sheet { width: 980px; padding: 9px 10px; border: 3px solid #213959; background: #0a1628; color: #edf8ff; font-family: "Open Sans",sans-serif; }
#section-vista-general .ts-overview-sheet-title { position: relative; display: flex; justify-content: center; align-items: center; min-height: 70px; padding: 8px 70px 12px; text-align: center; }
#section-vista-general .ts-overview-sheet-title img { position: absolute; left: 8px; top: 8px; width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
#section-vista-general .ts-overview-sheet-title h2 { margin: 0 0 6px; color: #edf8ff; font-size: 22px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
#section-vista-general .ts-overview-sheet-title p { margin: 0; color: #b7cceb; font-size: 11px; letter-spacing: 1px; }
#section-vista-general .ts-overview-round > header { position: relative; display: flex; justify-content: center; align-items: center; min-height: 32px; margin: 3px 0 5px; padding: 5px 175px; border: 1px solid #2a4972; border-radius: 6px; background: #0f1f3d; }
#section-vista-general .ts-overview-round h3 { margin: 0; color: #e8f0ff; font-size: 16px; line-height: 1.2; font-weight: 800; text-transform: uppercase; text-align: center; overflow-wrap: anywhere; }
#section-vista-general .ts-overview-round > header > span { position: absolute; right: 12px; color: #b7cceb; font-size: 10px; }
/* Defeat generic phone table/card rules only inside this new isolated section. */
#section-vista-general table.ts-overview-table { display: table !important; width: 100% !important; min-width: 0 !important; max-width: none !important; table-layout: fixed !important; border-collapse: separate !important; border-spacing: 0 3px !important; margin: 0 !important; padding: 0 !important; zoom: 1 !important; }
#section-vista-general .ts-overview-table colgroup { display: table-column-group !important; }
#section-vista-general .ts-overview-table col { display: table-column !important; }
#section-vista-general .ts-overview-table tbody { display: table-row-group !important; }
#section-vista-general .ts-overview-table col:nth-child(1) { width: 39px; }
#section-vista-general .ts-overview-table col:nth-child(2) { width: 96px; }
#section-vista-general .ts-overview-table col:nth-child(3) { width: 48px; }
#section-vista-general .ts-overview-table :is(col:nth-child(4),col:nth-child(8)) { width: 248px; }
#section-vista-general .ts-overview-table :is(col:nth-child(5),col:nth-child(7)) { width: 38px; }
#section-vista-general .ts-overview-table col:nth-child(6) { width: 22px; }
#section-vista-general .ts-overview-table col:nth-child(9) { width: 76px; }
#section-vista-general .ts-overview-table tr.ts-overview-row { display: table-row !important; height: 22px; padding: 0 !important; border: 0 !important; background: none !important; cursor: pointer; }
#section-vista-general .ts-overview-table .ts-overview-row td {
    display: table-cell !important; position: static !important; width: auto !important; min-width: 0 !important; max-width: none !important; height: 22px;
    padding: 1px 4px !important; margin: 0 !important; border: 0; border-top: 1px solid #2a4972; border-bottom: 1px solid #2a4972;
    background: #10284a; color: #edf8ff; font-size: 14px; line-height: 1; vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#section-vista-general .ts-overview-table .ts-overview-row:nth-child(even) td { background: #1c3c64; border-color: #42658c; }
#section-vista-general .ts-overview-table .ts-overview-row td:first-child { padding-left: 13px !important; border-left: 1px solid #2a4972; border-radius: 10px 0 0 10px; color: #b7cceb; font-size: 12px; }
#section-vista-general .ts-overview-table .ts-overview-row td:last-child { padding-right: 8px !important; border-right: 1px solid #2a4972; border-radius: 0 10px 10px 0; }
#section-vista-general .ts-overview-table .ts-overview-row:hover td { background: #24466c; }
#section-vista-general .ts-overview-table .ts-overview-row :is(td.ts-overview-hour,td.ts-overview-mesa) { color: #b9d6f6; font-size: 11px; font-weight: 700; }
#section-vista-general .ts-overview-table .ts-overview-row td.ts-overview-player { font-size: 15px; text-align: center; font-weight: 750; }
#section-vista-general .ts-overview-table .ts-overview-row td.is-loser { color: #9ca3af; }
#section-vista-general .ts-overview-tsid { display: block; min-width: 0; width: 100%; padding: 1px 4px; border: 0; border-radius: 3px; background: transparent; color: inherit; font: inherit; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#section-vista-general .ts-overview-tsid:hover { text-decoration: underline; text-underline-offset: 3px; }
#section-vista-general .ts-overview-placeholder { color: #9ca3af; font-size: 13px; font-style: italic; font-weight: 400; }
#section-vista-general .ts-overview-table .ts-overview-row td.ts-overview-score { color: #b7dfff; font-size: 17px; font-weight: 800; text-align: center; }
#section-vista-general .ts-overview-table .ts-overview-row td.is-winner { color: #f59e0b; }
#section-vista-general .ts-overview-table .ts-overview-row td.ts-overview-vs { color: #99ceff; font-size: 10px; text-align: center; }
#section-vista-general .ts-overview-table .ts-overview-row td.ts-overview-match-status { text-align: right; font-size: 9px; color: #b7cceb; }
#section-vista-general .ts-overview-table .ts-overview-row td.ts-overview-match-status.is-live { color: #91e8c8; }
#section-vista-general .ts-overview-table .ts-overview-row.is-player-trail td { border-top-color: #5dcfeb; border-bottom-color: #5dcfeb; background: #153852; }
#section-vista-general .ts-overview-table .ts-overview-row.is-player-trail td:first-child { border-left-color: #5dcfeb; box-shadow: inset 3px 0 #5dcfeb; }
#section-vista-general .ts-overview-table .ts-overview-row td.is-selected-player { background: #31516b; }
#section-vista-general .ts-overview-tsid.is-selected { color: #1d2331; background: #f6bb42; font-weight: 800; box-shadow: 0 0 0 1px #ffdf91; }
#section-vista-general .ts-overview-sheet > footer { display: block !important; padding: 13px 7px 4px; color: #abc9ef; font-size: 10px; letter-spacing: 1px; }
#section-vista-general .ts-overview-message { position: absolute; top: 20px; left: 12px; right: 12px; padding: 20px; color: #b7cceb; font-size: 13px; text-align: center; }
#section-vista-general .ts-overview-message button, #section-vista-general .ts-overview-loading button { display: inline-block; min-height: 44px; margin: 12px; padding: 8px 16px; border: 1px solid #2381aa; border-radius: 8px; background: #08243b; color: white; }
#section-vista-general .ts-overview-loading { padding: 30px 15px; color: #b7cceb; font-size: 14px; text-align: center; }
#section-vista-general .ts-overview-loading a { display: block; color: #5dcfeb; }
#section-vista-general .ts-overview-footer { display: flex; justify-content: space-between; gap: 10px; padding: 8px 6px 0; color: #66849f; font-size: 9px; }
#section-vista-general .ts-overview-dialog { width: min(390px,calc(100vw - 32px)); max-height: 85dvh; overflow: auto; padding: 24px; border: 1px solid #315b80; border-radius: 16px; background: #0d2037; color: #edf7ff; box-shadow: 0 22px 100px #0009; }
#section-vista-general .ts-overview-dialog::backdrop { background: #020914be; backdrop-filter: blur(4px); }
#section-vista-general .ts-overview-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #80c9f4; font-size: 11px; }
#section-vista-general .ts-overview-dialog [data-close-dialog] { width: 36px; height: 36px; border: 1px solid #315171; border-radius: 8px; background: #132e48; color: #b5d1e9; font-size: 23px; }
#section-vista-general .ts-overview-dialog h2 { margin: 14px 0 24px; color: #edf7ff; font-size: 18px; }
#section-vista-general .ts-overview-dialog-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; padding: 22px 0; border-block: 1px solid #244260; text-align: center; font-size: 14px; font-weight: 700; }
#section-vista-general .ts-overview-dialog-score strong { display: block; margin-bottom: 12px; font-size: 40px; color: #b2dfff; }
#section-vista-general .ts-overview-dialog-score > span { color: #5f809f; font-size: 11px; }
#section-vista-general .ts-overview-dialog > p { margin: 20px 0; color: #a0bad1; font-size: 11px; }
#section-vista-general .ts-overview-dialog > small { display: block; margin-top: 16px; color: #6c8ca7; font-size: 10px; line-height: 1.6; }
#section-vista-general .ts-overview-stream { color: #5dcfeb; font-size: 13px; }
@media (max-width: 600px) {
    #section-vista-general.active { padding: 10px 5px !important; }
    #section-vista-general .ts-overview-heading { padding: 0 5px; gap: 6px; }
    #section-vista-general .ts-overview-heading h1 { font-size: 18px; }
    #section-vista-general .ts-overview-count { font-size: 10px; margin-left: 5px; }
    #section-vista-general .ts-overview-state { font-size: 9px; max-width: 110px; }
    #section-vista-general .ts-overview-tools { flex-wrap: wrap; padding: 9px 5px; gap: 8px; }
    #section-vista-general .ts-overview-tools p { width: 100%; font-size: 10px; }
    #section-vista-general .ts-overview-zoom { margin-left: auto; gap: 4px; }
    #section-vista-general .ts-overview-zoom button { min-width: 36px; min-height: 38px; padding-inline: 8px; }
    #section-vista-general .ts-overview-tracking { padding: 6px 9px; }
    #section-vista-general .ts-overview-footer { font-size: 8px; }
    #section-vista-general .ts-overview-footer span:last-child { display: none; }
}
