@keyframes timeshotMobileBannerScrollV2 {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 6px)); }
}

@media (max-width: 768px), (hover: none) and (pointer: coarse) and (max-width: 1100px) {
    #timeshot-app-wrapper .main-nav {
        position: sticky !important;
        top: 0 !important;
        z-index: 10000 !important;
        padding: 8px 8px 6px !important;
        background: rgba(8, 15, 30, 0.94) !important;
        backdrop-filter: blur(16px);
    }

    #timeshot-app-wrapper .nav-container {
        width: 100% !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px !important;
        box-sizing: border-box;
    }

    #timeshot-app-wrapper .nav-search-wrapper {
        order: 20 !important;
        flex: 1 0 100% !important;
        min-width: 0 !important;
    }

    #timeshot-app-wrapper .nav-search-input {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
        font-size: 16px !important;
    }

    #timeshot-app-wrapper .main-layout {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 20px 12px 40px !important;
        box-sizing: border-box !important;
    }

    #timeshot-app-wrapper #sidebar {
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        padding: 8px 0 !important;
        box-sizing: border-box !important;
        order: 0 !important;
    }

    #timeshot-app-wrapper #sidebar .sidebar-nav {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
    }

    #timeshot-app-wrapper #sidebarRight {
        display: flex !important;
        position: static !important;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        max-height: none !important;
        margin: 20px 0 0 !important;
        padding: 10px !important;
        box-sizing: border-box !important;
        order: 2 !important;
    }

    #timeshot-app-wrapper .main-content-wrapper {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        order: 1 !important;
    }

    #timeshot-app-wrapper #sidebarRight .sidebar-right-banners {
        width: 100% !important;
        height: auto !important;
        flex: none !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    #timeshot-app-wrapper #sidebarRight .sidebar-right-scroll {
        display: flex !important;
        flex-direction: row !important;
        width: max-content !important;
        height: auto !important;
        gap: 12px !important;
        overflow: visible !important;
    }

    #timeshot-app-wrapper #sidebarRight .sidebar-right-scroll.scrolling {
        animation: none !important;
        transform: none !important;
    }

    #timeshot-app-wrapper #sidebarRight .sidebar-right-banner {
        width: min(44vw, 172px) !important;
        flex: 0 0 min(44vw, 172px) !important;
        scroll-snap-align: start;
    }

    #timeshot-app-wrapper #section-cuadrante,
    #timeshot-app-wrapper #cuadranteContainer,
    #timeshot-app-wrapper #section-cuadrante .cuescore-table-container {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    #timeshot-app-wrapper #section-cuadrante .cuescore-table-container {
        padding: 8px !important;
    }

    #timeshot-app-wrapper #section-cuadrante table.cuescore-list,
    #timeshot-app-wrapper #section-cuadrante table.cuescore-list tbody {
        display: grid !important;
        width: 100% !important;
        min-width: 0 !important;
        gap: 10px !important;
    }

    #timeshot-app-wrapper #section-cuadrante table.cuescore-list tr.round-separator,
    #timeshot-app-wrapper #section-cuadrante table.cuescore-list tr.round-header {
        display: flex !important;
        width: 100% !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: wrap !important;
        box-sizing: border-box !important;
    }

    #timeshot-app-wrapper #section-cuadrante table.cuescore-list tr.round-separator td,
    #timeshot-app-wrapper #section-cuadrante table.cuescore-list tr.round-header th {
        display: block !important;
        width: auto !important;
        padding: 8px !important;
    }

    #timeshot-app-wrapper #section-cuadrante table.cuescore-list tr.round-header th:last-child {
        display: block !important;
        width: 100% !important;
    }

    #timeshot-app-wrapper #section-cuadrante table.cuescore-list tr.match-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(132px, auto) !important;
        grid-template-areas:
            'number number'
            'table table'
            'playerA scoreA'
            'playerB scoreB' !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 8px !important;
        gap: 4px !important;
        border: 1px solid rgba(255,255,255,0.14) !important;
        border-radius: 10px !important;
        background: rgba(15,31,61,0.82) !important;
        box-sizing: border-box !important;
    }

    #timeshot-app-wrapper #section-cuadrante table.cuescore-list tr.match-row > td {
        display: flex !important;
        width: auto !important;
        min-width: 0 !important;
        padding: 4px !important;
        border: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    #timeshot-app-wrapper #section-cuadrante tr.match-row > .match-no {
        grid-area: number !important;
        justify-content: flex-start !important;
    }

    #timeshot-app-wrapper #section-cuadrante tr.match-row > .player-a {
        grid-area: playerA !important;
        justify-content: flex-start !important;
    }

    #timeshot-app-wrapper #section-cuadrante tr.match-row > .score:nth-of-type(3) {
        grid-area: scoreA !important;
    }

    #timeshot-app-wrapper #section-cuadrante tr.match-row > .separator {
        display: none !important;
    }

    #timeshot-app-wrapper #section-cuadrante tr.match-row > .score:nth-of-type(5) {
        grid-area: scoreB !important;
    }

    #timeshot-app-wrapper #section-cuadrante tr.match-row > .player-b {
        grid-area: playerB !important;
        justify-content: flex-start !important;
        text-align: left !important;
    }

    #timeshot-app-wrapper #section-cuadrante tr.match-row > .match-mesa {
        grid-area: table !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
        text-align: left !important;
    }

    #timeshot-app-wrapper #section-cuadrante .player-wrapper,
    #timeshot-app-wrapper #section-cuadrante .player-wrapper.right-align {
        width: 100% !important;
        min-width: 0 !important;
        justify-content: flex-start !important;
    }

    #timeshot-app-wrapper #section-cuadrante .player-wrapper .name {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        font-size: 12px !important;
    }

    #timeshot-app-wrapper #section-cuadrante .score-btn,
    #timeshot-app-wrapper #section-cuadrante .action-btn,
    #timeshot-app-wrapper #section-cuadrante .match-options-btn,
    #timeshot-app-wrapper #section-cuadrante .view-comment-btn {
        min-height: 44px !important;
    }

    #timeshot-app-wrapper .main-header {
        padding: 20px 12px 6px !important;
    }

    #timeshot-app-wrapper .main-title {
        max-width: 100%;
        font-size: clamp(1.7rem, 9vw, 2.45rem) !important;
        letter-spacing: 1.5px !important;
        overflow-wrap: anywhere;
    }

    #timeshot-app-wrapper .main-nav {
        padding: 8px 8px 6px !important;
    }

    #timeshot-app-wrapper .nav-container {
        border-radius: 14px !important;
    }

    #timeshot-app-wrapper .nav-btn {
        min-height: 44px;
        padding: 8px 12px !important;
        font-size: .78rem !important;
        letter-spacing: .7px !important;
    }

    #timeshot-app-wrapper .notifications-button {
        min-width: 44px;
    }

    #timeshot-app-wrapper .main-layout {
        gap: 16px;
    }

    #timeshot-app-wrapper #sidebar {
        border-radius: 14px !important;
    }

    #timeshot-app-wrapper #sidebar:not(:has(.sidebar-item:not([style*="display: none"]), .multireto-sidebar-actions[style*="display: flex"], #sidebarTorneoAdmin[style*="display: flex"])) {
        display: none !important;
    }

    #timeshot-app-wrapper #sidebar .sidebar-nav {
        scrollbar-width: none;
    }

    #timeshot-app-wrapper #sidebar .sidebar-nav::-webkit-scrollbar {
        display: none;
    }

    #timeshot-app-wrapper #sidebar .sidebar-item {
        min-height: 44px;
        flex: 0 0 auto;
        width: auto !important;
        padding: 10px 13px !important;
    }

    #timeshot-app-wrapper #sidebarRight {
        margin-top: 4px !important;
        border-radius: 14px !important;
    }

    #timeshot-app-wrapper #sidebarRight .sidebar-right-title {
        margin-bottom: 8px;
        padding: 2px 0 7px;
    }

    #timeshot-app-wrapper #section-inicio > .welcome-card {
        display: grid !important;
        grid-template-columns: 64px minmax(0, 1fr) 64px;
        gap: 10px !important;
        padding: 18px 14px !important;
        text-align: center !important;
    }

    #timeshot-app-wrapper #section-inicio > .welcome-card img {
        width: 64px !important;
        height: 64px !important;
        max-width: none !important;
    }

    #timeshot-app-wrapper #section-inicio > .welcome-card h2 {
        font-size: 1.1rem;
        line-height: 1.2;
    }

    #timeshot-app-wrapper #section-inicio > .welcome-card p {
        margin-top: 5px !important;
        font-size: .78rem;
        line-height: 1.4;
    }

    #timeshot-app-wrapper .content-section,
    #timeshot-app-wrapper .welcome-card,
    #timeshot-app-wrapper .profile-card,
    #timeshot-app-wrapper .crear-torneo-card,
    #timeshot-app-wrapper .torneo-detail-card,
    #timeshot-app-wrapper .admin-panel-card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    #timeshot-app-wrapper .welcome-card,
    #timeshot-app-wrapper .profile-card,
    #timeshot-app-wrapper .crear-torneo-card,
    #timeshot-app-wrapper .admin-panel-card {
        padding: 20px 16px !important;
        border-radius: 14px !important;
    }

    #timeshot-app-wrapper .inicio-filtros {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px !important;
        padding: 12px !important;
    }

    #timeshot-app-wrapper .inicio-filtro-group,
    #timeshot-app-wrapper .inicio-filtro-group.inicio-filtro-date {
        min-width: 0 !important;
        width: 100%;
    }

    #timeshot-app-wrapper .inicio-filtro-group select,
    #timeshot-app-wrapper .inicio-filtro-group input,
    #timeshot-app-wrapper .inicio-filtro-clear {
        width: 100%;
        min-width: 0;
        min-height: 42px;
        box-sizing: border-box;
    }

    #timeshot-app-wrapper .torneos-grid,
    #timeshot-app-wrapper .apps-grid,
    #timeshot-app-wrapper .participants-grid,
    #timeshot-app-wrapper .search-results-grid,
    #timeshot-app-wrapper .admin-menu-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px !important;
    }

    #timeshot-app-wrapper .torneo-card,
    #timeshot-app-wrapper .participant-card,
    #timeshot-app-wrapper .app-card {
        border-radius: 14px !important;
    }

    #timeshot-app-wrapper .torneo-detail-actions {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
        padding: 14px !important;
    }

    #timeshot-app-wrapper .torneo-detail-actions button,
    #timeshot-app-wrapper .torneo-detail-view-bracket-btn,
    #timeshot-app-wrapper .torneo-participants-btn,
    #timeshot-app-wrapper .torneo-detail-actions a {
        width: 100% !important;
        min-height: 44px !important;
        box-sizing: border-box;
        white-space: normal !important;
        text-align: center;
    }

    #timeshot-app-wrapper .participants-header > div {
        align-items: flex-start !important;
    }

    #timeshot-app-wrapper .participant-card {
        min-height: 76px;
        padding: 10px 12px !important;
    }

    #timeshot-app-wrapper .participant-avatar-wrapper,
    #timeshot-app-wrapper .participant-avatar {
        width: 52px !important;
        height: 52px !important;
    }

    #timeshot-app-wrapper #section-cuadrante .profile-back-btn {
        margin-bottom: 10px;
    }

    #timeshot-app-wrapper #section-cuadrante .cuadrante-header {
        padding: 16px 12px !important;
        border-radius: 14px !important;
    }

    #timeshot-app-wrapper #section-cuadrante .cuadrante-header h2 {
        font-size: 1.2rem !important;
        line-height: 1.25;
    }

    #timeshot-app-wrapper #section-cuadrante .cuadrante-info {
        gap: 10px !important;
        font-size: .88rem !important;
    }

    #timeshot-app-wrapper #section-cuadrante .cuadrante-info > div {
        width: 100%;
        gap: 8px !important;
    }

    #timeshot-app-wrapper #section-cuadrante .cuescore-table-container {
        border-radius: 14px !important;
        box-shadow: 0 8px 24px rgba(0,0,0,.28) !important;
    }

    #timeshot-app-wrapper #section-cuadrante table.cuescore-list,
    #timeshot-app-wrapper #section-cuadrante table.cuescore-list tbody {
        gap: 8px !important;
    }

    #timeshot-app-wrapper #section-cuadrante table.cuescore-list tr.round-header {
        scroll-margin-top: 120px;
        margin-top: 8px;
        border-radius: 9px;
        background: linear-gradient(135deg, rgba(37,99,235,.3), rgba(14,116,144,.18));
        border: 1px solid rgba(96,165,250,.24);
        backdrop-filter: blur(14px);
    }

    #timeshot-app-wrapper #section-cuadrante table.cuescore-list tr.round-header th > div {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px;
    }

    #timeshot-app-wrapper #section-cuadrante table.cuescore-list tr.round-header th > div > div {
        flex: 0 1 auto !important;
        text-align: center !important;
    }

    #timeshot-app-wrapper #section-cuadrante table.cuescore-list tr.round-header th > div > div:nth-child(2) > div {
        flex-wrap: wrap !important;
        white-space: normal !important;
    }

    #timeshot-app-wrapper #section-cuadrante table.cuescore-list tr.round-header th > div > div:last-child {
        display: none;
    }

    #timeshot-app-wrapper #section-cuadrante table.cuescore-list .round-title,
    #timeshot-app-wrapper #section-cuadrante table.cuescore-list .round-race {
        font-size: .84rem !important;
        white-space: normal !important;
    }

    #timeshot-app-wrapper #section-cuadrante table.cuescore-list tr.match-row {
        min-height: 0 !important;
        border-color: rgba(96,165,250,.18) !important;
        background: linear-gradient(145deg, rgba(19,42,76,.96), rgba(10,26,52,.96)) !important;
    }

    #timeshot-app-wrapper #section-cuadrante table.cuescore-list tr.match-row > td {
        min-height: 36px !important;
    }

    #timeshot-app-wrapper #section-cuadrante table.cuescore-list tr.match-row > .separator {
        display: none !important;
    }

    #timeshot-app-wrapper #section-cuadrante tr.match-row > .match-no,
    #timeshot-app-wrapper #section-cuadrante tr.match-row > .match-mesa {
        min-height: 32px !important;
        color: #8ea6c5 !important;
        font-size: .72rem !important;
    }

    #timeshot-app-wrapper #section-cuadrante tr.match-row > .match-no > div {
        width: 100%;
        justify-content: flex-start !important;
    }

    #timeshot-app-wrapper #section-cuadrante tr.match-row > .player-a,
    #timeshot-app-wrapper #section-cuadrante tr.match-row > .player-b {
        min-height: 40px !important;
    }

    #timeshot-app-wrapper #section-cuadrante .player-wrapper img {
        width: 24px !important;
        height: 24px !important;
        margin-left: 0 !important;
        margin-right: 7px !important;
        flex: 0 0 24px;
    }

    #timeshot-app-wrapper #section-cuadrante .player-wrapper .name {
        color: #dbeafe !important;
        font-weight: 700 !important;
    }

    #timeshot-app-wrapper #section-cuadrante .player-wrapper.right-align img {
        order: -2;
    }

    #timeshot-app-wrapper #section-cuadrante .player-wrapper.right-align .participant-flag,
    #timeshot-app-wrapper #section-cuadrante .player-wrapper.right-align img[src*="flag"] {
        order: -1;
    }

    #timeshot-app-wrapper #section-cuadrante .score-box {
        width: 36px !important;
        min-width: 36px !important;
        height: 44px !important;
        line-height: 44px !important;
    }

    #timeshot-app-wrapper #section-cuadrante .score-btn {
        width: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 0 !important;
    }

    #timeshot-app-wrapper .tournament-conclusion-container {
        padding: 18px 10px !important;
        overflow: hidden !important;
    }

    #timeshot-app-wrapper .podium-wrapper {
        gap: 6px !important;
        height: auto !important;
        min-height: 250px !important;
        padding-top: 18px !important;
    }

    #timeshot-app-wrapper .podium-step {
        min-width: 0 !important;
        width: 31% !important;
    }

    #timeshot-app-wrapper .podium-player-name {
        max-width: 100%;
        white-space: normal !important;
        overflow-wrap: anywhere;
        font-size: .72rem !important;
    }

    #timeshot-app-wrapper .stats-kpi-grid,
    #timeshot-app-wrapper .admin-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    #timeshot-app-wrapper .stats-kpi-card {
        min-width: 0;
        padding: 14px 8px !important;
    }

    #timeshot-app-wrapper .stats-kpi-value {
        font-size: 1.5rem !important;
    }

    #timeshot-app-wrapper .admin-banner-item-actions,
    #timeshot-app-wrapper .admin-usuario-actions,
    #timeshot-app-wrapper .confirm-modal-actions,
    #timeshot-app-wrapper .schedule-modal-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 8px !important;
    }

    #timeshot-app-wrapper .admin-banner-item-actions button,
    #timeshot-app-wrapper .admin-usuario-actions button,
    #timeshot-app-wrapper .confirm-modal-actions button,
    #timeshot-app-wrapper .schedule-modal-actions button {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 42px;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    #timeshot-app-wrapper .multireto-shell {
        padding: 18px 12px !important;
        border-radius: 14px !important;
    }

    #timeshot-app-wrapper .multireto-heading h2,
    #timeshot-app-wrapper .multireto-matches-heading h2 {
        font-size: 1.55rem !important;
    }

    #timeshot-app-wrapper .multireto-player-row {
        gap: 8px;
    }

    #timeshot-app-wrapper .multireto-player-identity > strong {
        font-size: .88rem;
    }

    #timeshot-app-wrapper .multireto-score-control {
        gap: 3px;
    }

    #timeshot-app-wrapper .multireto-score-control button {
        width: 34px;
        height: 34px;
    }

    #timeshot-app-wrapper .auth-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
    }

    #timeshot-app-wrapper .auth-tab {
        min-width: 0;
        min-height: 44px;
        padding: 10px 5px !important;
        font-size: .8rem !important;
        line-height: 1.25;
    }

    #streamingOverlayModal .streaming-overlay-link-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    }

    #streamingOverlayModal .streaming-overlay-link-row > strong,
    #streamingOverlayModal .streaming-overlay-link-row > input {
        grid-column: 1 / -1;
    }

    #streamingOverlayModal .streaming-overlay-link-row > button {
        width: 100% !important;
        white-space: normal !important;
    }

    body .modal-overlay {
        z-index: 1000001 !important;
        padding: 8px !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
    }

    body .modal-overlay .modal-box {
        width: min(100%, 720px) !important;
        max-width: 100% !important;
        max-height: calc(100dvh - 16px) !important;
        margin: auto !important;
        padding: 20px 16px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
    }

    body .modal-overlay input,
    body .modal-overlay select,
    body .modal-overlay textarea,
    #timeshot-app-wrapper input,
    #timeshot-app-wrapper select,
    #timeshot-app-wrapper textarea {
        max-width: 100% !important;
        box-sizing: border-box !important;
        font-size: 16px;
    }

    #timeshot-app-wrapper .content-section {
        max-width: 100% !important;
        overflow-wrap: anywhere;
    }

    #timeshot-app-wrapper .content-section > *,
    #timeshot-app-wrapper .form-row > *,
    #timeshot-app-wrapper .form-group {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    #timeshot-app-wrapper .form-row {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    #timeshot-app-wrapper .content-section table:not(.cuescore-list) {
        max-width: 100%;
    }

    #timeshot-app-wrapper .table-container,
    #timeshot-app-wrapper .admin-table-container,
    #timeshot-app-wrapper .ranking-table-container,
    #timeshot-app-wrapper .historial-table-container {
        width: 100%;
        max-width: 100%;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    #timeshot-app-wrapper button,
    #timeshot-app-wrapper [role="button"],
    body .modal-overlay button {
        max-width: 100%;
        box-sizing: border-box;
    }

    #timeshot-app-wrapper #section-cuadrante,
    #timeshot-app-wrapper #cuadranteContainer {
        overflow: visible !important;
    }

    #timeshot-app-wrapper #section-cuadrante .cuescore-table-container {
        overflow: visible !important;
    }

    #timeshot-app-wrapper #section-cuadrante .score {
        gap: 4px !important;
        overflow: visible !important;
    }

    #timeshot-app-wrapper #section-cuadrante .match-options-btn,
    #timeshot-app-wrapper #section-cuadrante .view-comment-btn,
    #timeshot-app-wrapper #section-cuadrante .match-no a {
        min-width: 44px !important;
        min-height: 44px !important;
    }

    #timeshot-app-wrapper #section-cuadrante .match-options-menu {
        right: auto !important;
        left: 0 !important;
        width: min(260px, calc(100vw - 48px)) !important;
        max-width: calc(100vw - 48px) !important;
        z-index: 10020 !important;
    }

    #streamingOverlayModal .modal-box {
        width: calc(100% - 16px) !important;
    }

    #streamingOverlayModal #streamingOverlayLayoutControls,
    #streamingOverlayModal #streamingOverlayLayoutControls > div,
    #streamingOverlayModal .streaming-overlay-sponsor-panel {
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    #streamingOverlayModal #streamingOverlayPreview {
        width: 100% !important;
        max-width: 100% !important;
    }

    #streamingOverlayModal #streamingOverlayLayoutControls > div:has(#overlayTopDesignUpload),
    #streamingOverlayModal #streamingOverlayLayoutControls > div:has(#overlayBottomDesignUpload) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    #streamingOverlayModal #streamingOverlayLayoutControls button {
        min-height: 44px !important;
        white-space: normal !important;
    }
}

@media (max-width: 480px) {
    #timeshot-app-wrapper #section-inicio > .welcome-card {
        grid-template-columns: 48px minmax(0, 1fr) 48px;
    }

    #timeshot-app-wrapper #section-inicio > .welcome-card img {
        width: 48px !important;
        height: 48px !important;
    }

    #timeshot-app-wrapper .inicio-filtros,
    #timeshot-app-wrapper .stats-kpi-grid,
    #timeshot-app-wrapper .admin-stats-grid,
    #timeshot-app-wrapper .admin-banner-item-actions,
    #timeshot-app-wrapper .admin-usuario-actions,
    #timeshot-app-wrapper .confirm-modal-actions,
    #timeshot-app-wrapper .schedule-modal-actions {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    #streamingOverlayModal .streaming-overlay-link-row,
    #streamingOverlayModal #streamingOverlayLayoutControls > div:has(#overlayTopDesignUpload),
    #streamingOverlayModal #streamingOverlayLayoutControls > div:has(#overlayBottomDesignUpload) {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

@media (max-height: 700px) {
    body .modal-overlay {
        align-items: flex-start !important;
    }
}

@media (max-width: 768px) {
    #timeshot-app-wrapper #section-crear-torneo.is-circuit-test-workspace {
        width: calc(100vw - 48px) !important;
        max-width: calc(100vw - 48px) !important;
        min-width: 0 !important;
        margin-right: 12px !important;
        margin-left: 12px !important;
        overflow: hidden !important;
    }

    #timeshot-app-wrapper #section-crear-torneo.is-circuit-test-workspace .crear-torneo-card,
    #timeshot-app-wrapper #section-crear-torneo.is-circuit-test-workspace .circuit-test-workspace-layout {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    #timeshot-app-wrapper #section-crear-torneo.is-circuit-test-workspace input,
    #timeshot-app-wrapper #section-crear-torneo.is-circuit-test-workspace select,
    #timeshot-app-wrapper #section-crear-torneo.is-circuit-test-workspace textarea {
        font-size: 16px !important;
    }

    #timeshot-app-wrapper #section-participantes {
        width: calc(100vw - 48px) !important;
        max-width: calc(100vw - 48px) !important;
        min-width: 0 !important;
        margin-right: 12px !important;
        margin-left: 12px !important;
        overflow: hidden !important;
    }

    #timeshot-app-wrapper #section-participantes .participants-modern-shell {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    #timeshot-app-wrapper .participants-modern-head h1 {
        font-size: 1.3rem !important;
        line-height: 1.25 !important;
    }

    #timeshot-app-wrapper #section-participantes .participant-card {
        grid-template-columns: 36px 54px minmax(0, 1fr) !important;
        min-height: 0 !important;
        padding: 12px !important;
    }

    #timeshot-app-wrapper #section-participantes .participant-modern-payment {
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 1fr) 98px auto;
        width: 100%;
        align-items: center;
        justify-items: start;
        padding-top: 9px;
        border-top: 1px solid #17324c;
    }

    #timeshot-app-wrapper #section-detalle-torneo {
        width: calc(100vw - 48px) !important;
        max-width: calc(100vw - 48px) !important;
        min-width: 0 !important;
        margin-right: 12px !important;
        margin-left: 12px !important;
        overflow: hidden !important;
    }

    #timeshot-app-wrapper #section-detalle-torneo #torneoDetailCard,
    #timeshot-app-wrapper #section-detalle-torneo .circuit-detail-shell {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    #timeshot-app-wrapper #section-detalle-torneo .tournament-modern-shell {
        width: calc(100vw - 72px) !important;
        max-width: calc(100vw - 72px) !important;
        min-width: 0 !important;
    }

    #timeshot-app-wrapper .tournament-modern-actions {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    #timeshot-app-wrapper .tournament-modern-top h1 {
        font-size: 1.35rem !important;
        line-height: 1.25 !important;
    }

    #timeshot-app-wrapper .tournament-modern-actions button {
        min-height: 48px !important;
        font-size: .88rem !important;
    }

    #timeshot-app-wrapper .tournament-modern-hero h2 {
        font-size: 1.6rem !important;
        line-height: 1.25 !important;
    }

    #timeshot-app-wrapper .tournament-modern-hero p {
        font-size: .95rem !important;
    }

    #timeshot-app-wrapper .tournament-modern-facts b,
    #timeshot-app-wrapper .tournament-modern-summary > div {
        font-size: .85rem !important;
    }

    #timeshot-app-wrapper .tournament-modern-players span b,
    #timeshot-app-wrapper .tournament-modern-players button {
        font-size: .82rem !important;
    }

    #timeshot-app-wrapper .circuit-detail-top h1 {
        font-size: 1.5rem !important;
        line-height: 1.25 !important;
        white-space: normal !important;
    }

    #timeshot-app-wrapper .circuit-detail-actions {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
    }

    #timeshot-app-wrapper .circuit-detail-actions button {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 44px !important;
        height: auto !important;
        padding: 8px !important;
        white-space: normal !important;
    }

    #timeshot-app-wrapper .circuit-detail-hero > div {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    #timeshot-app-wrapper .circuit-detail-hero h2,
    #timeshot-app-wrapper .circuit-detail-hero p {
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    #timeshot-app-wrapper .circuit-detail-hero h2 {
        font-size: 1.8rem !important;
    }

    #timeshot-app-wrapper .circuit-detail-hero p {
        font-size: 1rem !important;
    }

    #timeshot-app-wrapper .circuit-detail-test-copy > strong {
        font-size: 1rem !important;
    }

    #timeshot-app-wrapper .circuit-detail-progress-copy {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 4px !important;
    }

    #timeshot-app-wrapper .circuit-detail-test {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    #timeshot-app-wrapper .circuit-detail-test-image {
        display: block !important;
        height: 130px !important;
        min-height: 0 !important;
    }

    #timeshot-app-wrapper .circuit-detail-test-copy {
        padding: 12px !important;
    }

    #timeshot-app-wrapper .circuit-detail-test-copy > strong {
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    #timeshot-app-wrapper .circuit-detail-test-copy > em {
        flex-wrap: wrap !important;
    }

    #timeshot-app-wrapper #section-detalle-torneo .circuit-detail-hero,
    #timeshot-app-wrapper #section-detalle-torneo .tournament-modern-hero {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    #timeshot-app-wrapper #section-detalle-torneo .circuit-detail-cover,
    #timeshot-app-wrapper #section-detalle-torneo .tournament-modern-cover {
        display: block !important;
        width: 100% !important;
        height: 160px !important;
        box-sizing: border-box !important;
    }

    #timeshot-app-wrapper #section-detalle-torneo .circuit-detail-cover img,
    #timeshot-app-wrapper #section-detalle-torneo .tournament-modern-cover img {
        display: block !important;
        object-fit: contain !important;
    }

    #timeshot-app-wrapper #section-detalle-torneo .circuit-detail-ranking {
        overflow-x: auto !important;
    }

    #timeshot-app-wrapper #section-detalle-torneo .circuit-detail-ranking article {
        min-width: 270px !important;
        grid-template-columns: 30px 32px minmax(0, 1fr) 58px !important;
        gap: 6px !important;
    }

    #timeshot-app-wrapper #section-detalle-torneo .circuit-detail-ranking article > b {
        width: 28px !important;
        height: 28px !important;
    }

    #timeshot-app-wrapper #section-detalle-torneo .circuit-detail-ranking img {
        width: 32px !important;
        height: 32px !important;
    }

    #timeshot-app-wrapper #section-detalle-torneo .circuit-detail-ranking span small {
        white-space: nowrap !important;
    }

    #timeshot-app-wrapper #section-cuadrante {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        min-width: 0 !important;
        margin-right: 12px !important;
        margin-left: 12px !important;
        overflow: hidden !important;
    }

    #timeshot-app-wrapper #section-cuadrante #cuadranteHeader,
    #timeshot-app-wrapper #section-cuadrante #cuadranteContainer,
    #timeshot-app-wrapper #section-cuadrante #streamsContainer {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    #timeshot-app-wrapper #section-cuadrante .cuadrante-header {
        padding: 0 !important;
    }

    #timeshot-app-wrapper #section-cuadrante .cuadrante-hero-main {
        grid-template-columns: 48px minmax(0, 1fr) !important;
        padding: 17px 14px !important;
    }

    #timeshot-app-wrapper #section-cuadrante .cuadrante-event-identity {
        width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
    }

    #timeshot-app-wrapper #section-cuadrante .cuadrante-event-identity h2 {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        font-size: .95rem !important;
    }

    #timeshot-app-wrapper #section-cuadrante .cuadrante-meta {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        padding: 0 !important;
    }

    #timeshot-app-wrapper #section-cuadrante .cuadrante-meta span {
        min-width: 0 !important;
        padding: 10px 12px !important;
        overflow-wrap: anywhere !important;
    }

    #timeshot-app-wrapper #section-cuadrante .match-columns {
        display: none !important;
    }

    #timeshot-app-wrapper #section-cuadrante table.cuescore-list colgroup {
        display: none !important;
    }

    #timeshot-app-wrapper #section-cuadrante .match-identity {
        flex-wrap: nowrap !important;
    }

    #timeshot-app-wrapper #section-cuadrante table.cuescore-list .col-match {
        width: 225px !important;
    }

    #timeshot-app-wrapper #section-cuadrante .match-status {
        order: 1;
    }

    #timeshot-app-wrapper #section-cuadrante .match-event-slots {
        order: 2;
    }

    #timeshot-app-wrapper #section-cuadrante .match-number {
        order: 3;
        margin-left: auto;
    }

    #timeshot-app-wrapper #section-cuadrante .match-status {
        display: none !important;
    }
}

@media (max-width: 768px), (hover: none) and (pointer: coarse) and (max-width: 1100px) {
    /* Mantener el cuadrante en filas horizontales, desplazable sin alterar sus controles. */
    #timeshot-app-wrapper #section-cuadrante .cuescore-table-container {
        overflow-x: auto !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y !important;
    }

    #timeshot-app-wrapper #section-cuadrante table.cuescore-list {
        display: table !important;
        width: 1260px !important;
        min-width: 1260px !important;
        table-layout: fixed;
    }

    #timeshot-app-wrapper #section-cuadrante table.cuescore-list tbody {
        display: table-row-group !important;
        width: auto !important;
        min-width: 0 !important;
    }

    #timeshot-app-wrapper #section-cuadrante table.cuescore-list colgroup {
        display: table-column-group !important;
    }

    #timeshot-app-wrapper #section-cuadrante table.cuescore-list tr.round-header,
    #timeshot-app-wrapper #section-cuadrante table.cuescore-list tr.round-separator,
    #timeshot-app-wrapper #section-cuadrante table.cuescore-list tr.match-row,
    #timeshot-app-wrapper #section-cuadrante table.cuescore-list tr.match-columns {
        display: table-row !important;
        width: auto !important;
    }

    #timeshot-app-wrapper #section-cuadrante table.cuescore-list tr.round-header th,
    #timeshot-app-wrapper #section-cuadrante table.cuescore-list tr.match-columns th {
        display: table-cell !important;
    }

    #timeshot-app-wrapper #section-cuadrante table.cuescore-list tr.round-separator td,
    #timeshot-app-wrapper #section-cuadrante table.cuescore-list tr.match-row > td {
        display: table-cell !important;
        width: auto !important;
        vertical-align: middle;
    }

    #timeshot-app-wrapper #section-cuadrante table.cuescore-list tr.match-row > .separator {
        display: table-cell !important;
    }

    #timeshot-app-wrapper #section-cuadrante table.cuescore-list tr.match-row > .match-no > div {
        width: auto;
    }

    #timeshot-app-wrapper #section-cuadrante table.cuescore-list .player-wrapper,
    #timeshot-app-wrapper #section-cuadrante table.cuescore-list .player-wrapper.right-align {
        width: auto !important;
    }
}
