/* Mobile Styles for Tournament View Page */
/* Breakpoint: max-width 768px */

@media (max-width: 768px) {
    /* Tables - full width, clean, no overlap */
    .tournament-view-section.tournament-standings .table-responsive {
        width: calc(100% + 32px) !important;
        max-width: 100vw !important;
        margin-left: -16px !important;
        margin-right: -16px !important;
        padding: 0 !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        float: none !important;
        clear: both !important;
    }

    .tournament-standings-table {
        width: max-content !important;
        min-width: 520px !important;
        border-collapse: collapse !important;
        font-size: 13px !important;
        background: #ffffff !important;
        border-radius: 8px !important;
        position: relative !important;
        float: none !important;
        table-layout: auto !important;
    }

    .tournament-standings-table th,
    .tournament-standings-table td {
        padding: 12px 10px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
        border: none !important;
        border-bottom: 1px solid var(--view-gray-100) !important;
        text-align: center !important;
        word-break: keep-all !important;
    }

    .tournament-standings-table th {
        background: var(--view-gray-50) !important;
        font-weight: 600 !important;
        font-size: 11px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
        color: var(--view-gray-600) !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 10 !important;
        white-space: nowrap !important;
        overflow-wrap: normal !important;
    }

    /* Team column - left align */
    .tournament-standings-table td.standings-cell--fixed:not(.standings-position),
    .tournament-standings-table th.standings-header--fixed:nth-child(2) {
        text-align: left !important;
    }

    .tournament-standings-table tbody tr:last-child td {
        border-bottom: none !important;
    }

    .tournament-standings-table tbody tr:hover td {
        background: var(--view-gray-50) !important;
    }

    .tournament-standings-table.standings-table--zones tr.standings-row--promotion:hover td,
    .tournament-standings-table.standings-table--zones tr.standings-row--promotion:hover td.standings-cell--fixed {
        background: rgba(34, 197, 94, 0.15) !important;
    }

    .tournament-standings-table.standings-table--zones tr.standings-row--relegation:hover td,
    .tournament-standings-table.standings-table--zones tr.standings-row--relegation:hover td.standings-cell--fixed {
        background: rgba(239, 68, 68, 0.15) !important;
    }

    /* Match Cards */
    .match-card {
        background: #ffffff !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 8px !important;
        padding: 12px !important;
        margin-bottom: 12px !important;
        width: 100% !important;
        position: relative !important;
        box-sizing: border-box !important;
    }

    .match-team {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-bottom: 8px !important;
        width: 100% !important;
    }

    .team-logo {
        width: 32px !important;
        height: 32px !important;
        border-radius: 6px !important;
        flex-shrink: 0 !important;
    }

    .team-name {
        flex: 1 !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    /* Mobile Tabs */
    .tournament-mobile-tabs {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        margin-bottom: 16px !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .tournament-tab-btn {
        flex: none !important;
        width: 100% !important;
        min-width: 100% !important;
        padding: 14px 16px !important;
        background: #ffffff !important;
        border: 2px solid #000000 !important;
        border-radius: 8px !important;
        color: #000000 !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        cursor: pointer;
        transition: all 0.2s ease;
        text-align: left !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
        box-sizing: border-box !important;
        outline: none !important;
        white-space: normal !important;
        overflow: visible !important;
        line-height: 1.3 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        position: relative !important;
    }

    .tournament-tab-btn i {
        font-size: 18px !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        width: 20px !important;
        text-align: center !important;
    }

    .tournament-tab-btn span {
        display: block !important;
        width: auto !important;
        flex: 1 !important;
        overflow: visible !important;
        text-overflow: unset !important;
        white-space: normal !important;
        line-height: 1.25 !important;
        text-align: left !important;
    }

    .tournament-tab-btn:hover {
        color: #000000 !important;
        background: #f8f9fa !important;
        border: 2px solid #000000 !important;
    }

    .tournament-tab-btn:focus {
        outline: none !important;
        border: 2px solid #000000 !important;
    }

    .tournament-tab-btn--active,
    .tournament-tab-btn--active:hover,
    .tournament-tab-btn--active:focus {
        background: #000000 !important;
        color: #ffffff !important;
        border: 2px solid #000000 !important;
        outline: none !important;
        position: relative !important;
        z-index: 1 !important;
    }

    /* Conteúdo de abas: mesma lógica que tournament-view.css (display:none padrão; ativo ou data-tournament-default-tab) */

    /* Tournament Sections */
    .tournament-view-section {
        background: #ffffff !important;
        border-radius: 12px !important;
        border: 1px solid #e5e7eb !important;
        padding: 16px !important;
        margin-bottom: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        position: relative !important;
        box-sizing: border-box !important;
    }

    .tournament-view-section header,
    .tournament-view-section .collapsible-header {
        margin-bottom: 16px !important;
        padding-bottom: 12px !important;
        border-bottom: 1px solid #e5e7eb !important;
        width: 100% !important;
        position: relative !important;
    }

    .tournament-view-section h2 {
        font-size: 18px !important;
        font-weight: 600 !important;
        color: #111827 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    /* Global Mobile Fixes */
    * {
        box-sizing: border-box !important;
    }

    /* Page Container */
    .tournament-view-page {
        padding: 0 12px 24px !important;
        gap: 16px !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden !important;
        position: relative !important;
    }

    /* Hero — redesign: não recolher ações; não limitar largura aos 280px */
    .tournament-hero {
        max-width: 100% !important;
        width: 100% !important;
        overflow: visible !important;
        position: relative !important;
        border-radius: 0 !important;
    }

    .tournament-hero__overlay {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .tournament-hero__titles h1 {
        text-align: center !important;
    }

    .tournament-hero__description {
        text-align: center !important;
        max-width: 100% !important;
    }

    .tournament-hero__actions-wrapper {
        width: 100% !important;
        max-width: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .tournament-hero__actions-toggle {
        display: none !important;
    }

    .tournament-hero__actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        border-top: none !important;
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }

    .tournament-hero__actions .action {
        width: 100% !important;
        max-width: none !important;
        justify-content: center !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .tournament-hero__actions .action-text {
        white-space: normal !important;
        text-align: center !important;
    }

    .tournament-hero__actions .action-icon {
        width: 16px !important;
        height: 16px !important;
        flex-shrink: 0 !important;
    }

    /* Tournament Sections */
    .tournament-view-section {
        padding: 14px 16px;
        border-radius: 10px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .tournament-view-section header h2,
    .tournament-view-section .collapsible-header h2 {
        font-size: 16px !important;
    }

    .tournament-view-section header h2.section-title,
    .tournament-view-section .collapsible-header h2.section-title {
        font-size: 18px !important;
    }

    /* Mobile collapse: checkbox + label (no JS) - 100% reliable on touch */
    .collapse-checkbox-mobile {
        position: absolute !important;
        opacity: 0 !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
    }

    .collapsible-section .collapse-checkbox-mobile ~ .collapsible-content {
        display: none !important;
    }

    .collapsible-section .collapse-checkbox-mobile:checked ~ .collapsible-content {
        display: grid !important;
    }

    .collapsible-section .collapse-checkbox-mobile:checked ~ .collapsible-header .collapse-toggle i {
        transform: rotate(180deg) !important;
    }

    /* Collapse toggle - top right of section, black background */
    .tournament-overview-content,
    .tournament-rules-content,
    .tournament-contacts-content {
        position: relative !important;
    }

    .tournament-overview-content .collapse-toggle,
    .tournament-rules-content .collapse-toggle,
    .tournament-contacts-content .collapse-toggle {
        position: absolute !important;
        top: 16px !important;
        right: 16px !important;
        margin: 0 !important;
    }

    .tournament-overview-content .collapsible-header h2,
    .tournament-rules-content .collapsible-header h2,
    .tournament-contacts-content .collapsible-header h2 {
        padding-right: 48px !important;
    }

    .collapsible-header,
    .collapse-toggle {
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
        cursor: pointer !important;
    }

    .collapse-toggle {
        background: #000000 !important;
        background-color: #000000 !important;
        border: 1px solid #000000 !important;
        color: #ffffff !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 32px !important;
        height: 32px !important;
    }

    .collapse-toggle i {
        color: #ffffff !important;
        font-weight: 900 !important;
        transition: transform 0.3s ease !important;
    }

    .collapse-toggle:hover {
        background: #1a1a1a !important;
        background-color: #1a1a1a !important;
        border-color: #1a1a1a !important;
        color: #ffffff !important;
    }

    .collapse-toggle:hover i {
        color: #ffffff !important;
        font-weight: 900 !important;
    }

    /* Overview, Rules and Contacts Content */
    .overview-content--grid,
    .rules-content--grid,
    .contacts-content--grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        display: grid !important;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;
        overflow: visible !important;
    }

    .overview-content:not(.overview-content--grid),
    .rules-content:not(.rules-content--grid),
    .contacts-content:not(.contacts-content--grid) {
        gap: 10px;
    }

    .overview-item--card,
    .rule-item--card,
    .contacts-item--card {
        padding: 14px 16px !important;
        gap: 12px !important;
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        float: none !important;
        clear: both !important;
        overflow: visible !important;
    }

    .overview-item__icon,
    .rule-item__icon,
    .contacts-item__icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0 !important;
    }

    .overview-item__icon i,
    .rule-item__icon i,
    .contacts-item__icon i {
        font-size: 18px;
    }

    .overview-item__content,
    .rule-item__content,
    .contacts-item__content {
        flex: 1 !important;
        min-width: 0 !important;
        overflow: visible !important;
    }

    .overview-item:not(.overview-item--card),
    .rule-item:not(.rule-item--card) {
        padding: 10px 0;
    }

    .overview-label,
    .rule-label,
    .contacts-label {
        font-size: 12px !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: normal !important;
    }

    .overview-value,
    .rule-value,
    .contacts-value {
        font-size: 13px !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: normal !important;
    }

    /* Contacts section - alignment, no overlap, full data display */
    .tournament-contacts-content,
    .tournament-contacts-content .collapsible-header,
    .tournament-contacts-content .collapsible-content {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    .tournament-contacts-content .collapsible-content {
        margin-top: 12px !important;
    }

    .contacts-item .admin-info__group-link,
    .contacts-item .admin-info__whatsapp-link {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
    }

    .contacts-item .admin-info__group-link .group-text,
    .contacts-item .admin-info__whatsapp-link .group-text,
    .contacts-item .admin-info__whatsapp-link .whatsapp-text {
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: normal !important;
    }

    /* Standings Table - full width, Pos column fixed, rest scrollable */
    .tournament-standings-section .table-responsive,
    .tournament-standings .table-responsive,
    .tournament-view-section.tournament-standings .table-responsive {
        width: calc(100% + 32px) !important;
        max-width: 100vw !important;
        margin-left: -16px !important;
        margin-right: -16px !important;
        padding: 0 !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        position: relative !important;
        float: none !important;
        clear: both !important;
        box-sizing: border-box !important;
    }

    .tournament-standings-table {
        font-size: 13px;
        min-width: 520px;
        border-collapse: collapse !important;
        width: max-content;
        table-layout: auto;
        display: table;
        float: none !important;
    }

    .tournament-standings-table th,
    .tournament-standings-table td {
        padding: 12px 10px;
        font-size: 13px;
        white-space: nowrap !important;
        border: none !important;
        border-bottom: 1px solid var(--view-gray-100) !important;
        text-align: center !important;
    }

    .tournament-standings-table th {
        font-size: 11px;
        padding: 10px 8px;
        background: var(--view-gray-50) !important;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--view-gray-600);
        white-space: nowrap !important;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
    }

    .tournament-standings-table {
        min-width: 860px !important;
        width: max-content !important;
    }

    /* Stat columns - min width so labels stay horizontal */
    .tournament-standings-table th:not(.standings-header--fixed):not(.last-5-header),
    .tournament-standings-table td:not(.standings-cell--fixed):not(:last-child) {
        min-width: 48px !important;
    }

    .tournament-standings-table th.last-5-header {
        min-width: 52px;
    }

    .tournament-standings-table th.last-5-header {
        font-size: 0 !important;
        position: relative;
        text-indent: -9999px;
        overflow: hidden;
        padding: 10px 8px !important;
    }

    .tournament-standings-table th.last-5-header::before {
        content: "Últ. 5";
        font-size: 10px !important;
        display: block;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        white-space: nowrap;
        text-indent: 0;
        width: 100%;
        text-align: center;
        line-height: 1;
    }

    /* Keep Pos and Time visible while the rest scrolls horizontally */
    .tournament-standings-table th.standings-header--fixed:first-child,
    .tournament-standings-table td.standings-cell--fixed.standings-position {
        position: -webkit-sticky !important;
        position: sticky !important;
        left: 0 !important;
        z-index: 25 !important;
        box-shadow: 2px 0 4px rgba(0, 0, 0, 0.06) !important;
    }

    .tournament-standings-table th.standings-header--fixed:first-child {
        background: var(--view-gray-50) !important;
        padding: 10px 8px !important;
    }

    .tournament-standings-table td.standings-cell--fixed.standings-position {
        background: #ffffff !important;
        padding: 12px 8px !important;
    }

    .tournament-standings-table th.standings-header--fixed:first-child {
        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
        box-sizing: border-box !important;
    }

    .tournament-standings-table td.standings-position {
        font-size: 16px;
        font-weight: 700;
        color: var(--view-gray-900);
        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
        box-sizing: border-box !important;
    }

    .tournament-standings-table th.standings-header--fixed:nth-child(2),
    .tournament-standings-table td.standings-cell--fixed:not(.standings-position) {
        position: -webkit-sticky !important;
        position: sticky !important;
        left: 48px !important;
        z-index: 24 !important;
        text-align: left !important;
        padding: 12px 10px !important;
        width: 220px !important;
        min-width: 220px !important;
        max-width: 220px !important;
        background: #ffffff !important;
        box-shadow: 2px 0 4px rgba(0, 0, 0, 0.06) !important;
    }

    .tournament-standings-table th.standings-header--fixed:nth-child(2) {
        background: var(--view-gray-50) !important;
    }

    .tournament-standings-table .standings-team {
        min-width: 0 !important;
    }

    .tournament-standings-table .standings-team__info {
        width: 100% !important;
        min-width: 0 !important;
    }

    .tournament-standings-table .standings-team .team-name,
    .tournament-standings-table .standings-team .team-player,
    .tournament-standings-table .standings-player-link {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        line-height: 1.25 !important;
    }

    .tournament-standings-table .standings-team .team-player {
        align-items: flex-start !important;
        flex-wrap: wrap !important;
    }

    .tournament-standings-table tbody tr:hover td.standings-cell--fixed:not(.standings-position) {
        background: var(--view-gray-50) !important;
    }

    /* Zone colors - Pos column inherits row background */
    /* Zone colors - Pos column */
    .tournament-standings-table.standings-table--zones tr.standings-row--promotion td.standings-cell--fixed.standings-position {
        background: rgba(34, 197, 94, 0.1) !important;
        z-index: 26 !important;
        border-left: 3px solid #22c55e !important;
    }

    .tournament-standings-table.standings-table--zones tr.standings-row--relegation td.standings-cell--fixed.standings-position {
        background: rgba(239, 68, 68, 0.1) !important;
        z-index: 26 !important;
        border-left: 3px solid #ef4444 !important;
    }

    .tournament-standings-table.standings-table--zones tr.standings-row--promotion td.standings-cell--fixed:not(.standings-position) {
        background: rgba(34, 197, 94, 0.1) !important;
    }

    .tournament-standings-table.standings-table--zones tr.standings-row--relegation td.standings-cell--fixed:not(.standings-position) {
        background: rgba(239, 68, 68, 0.1) !important;
    }

    .tournament-standings-table.standings-table--zones tr.standings-row--promotion td {
        background: rgba(34, 197, 94, 0.1) !important;
    }

    .tournament-standings-table.standings-table--zones tr.standings-row--relegation td {
        background: rgba(239, 68, 68, 0.1) !important;
    }

    .tournament-view-section.tournament-standings {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;
        overflow: visible !important;
    }

    .tournament-qualification-info,
    .standings-share {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;
        margin-top: 16px !important;
    }

    .table-responsive {
        position: relative;
        border-radius: 8px;
        overflow-x: auto;
        overflow-y: visible;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .tournament-standings-table {
        position: relative;
    }

    .tournament-standings-table th,
    .tournament-standings-table td {
        float: none !important;
    }

    .tournament-standings-table tbody tr,
    .tournament-standings-table thead tr {
        display: table-row !important;
        float: none !important;
    }

    .standings-team {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        min-width: 0;
        width: 100%;
    }

    .standings-team__logo {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    .standings-team__info {
        min-width: 0;
        flex: 1;
        overflow: visible !important;
    }

    .standings-team .team-name {
        font-size: 13px;
        font-weight: 700;
        color: var(--view-gray-900);
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        display: block;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .standings-team .team-player {
        font-size: 12px;
        color: var(--view-gray-600);
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-wrap: nowrap !important;
        margin-top: 2px;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .standings-team .team-player__icon {
        flex-shrink: 0 !important;
    }

    .last-matches {
        gap: 4px;
    }

    .match-result {
        width: 8px;
        height: 8px;
    }

    /* Rounds & Matches Section */
    .tournament-rounds__nav {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        align-items: center !important;
        padding: 12px 8px 14px !important;
        margin-bottom: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .tournament-rounds__indicator {
        grid-column: 1 / -1;
        order: 1;
        width: 100%;
        max-width: 100%;
    }

    .round-nav__btn {
        padding: 8px 10px !important;
        font-size: 11px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
        white-space: normal !important;
        text-align: center !important;
        display: inline-flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        background: #1f2937 !important;
        background-color: #1f2937 !important;
        color: #ffffff !important;
        border-color: #374151 !important;
    }

    .round-nav__btn .round-nav__text,
    .round-nav__btn .round-nav__icon,
    .round-nav__btn .round-nav__icon i {
        color: #ffffff !important;
        font-weight: 900 !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    .round-nav__btn:hover:not([disabled]) {
        background: #374151 !important;
        background-color: #374151 !important;
        color: #ffffff !important;
    }

    .round-nav__btn:hover:not([disabled]) .round-nav__text,
    .round-nav__btn:hover:not([disabled]) .round-nav__icon,
    .round-nav__btn:hover:not([disabled]) .round-nav__icon i {
        color: #ffffff !important;
        font-weight: 900 !important;
    }

    .round-nav__btn[disabled] {
        background: #4b5563 !important;
        background-color: #4b5563 !important;
        color: #e5e7eb !important;
    }

    .round-nav__btn[disabled] .round-nav__text,
    .round-nav__btn[disabled] .round-nav__icon,
    .round-nav__btn[disabled] .round-nav__icon i {
        color: #e5e7eb !important;
    }

    .round-nav__btn[data-round-prev] {
        order: 2;
    }

    .round-nav__btn[data-round-next] {
        order: 3;
    }

    .round-nav__icon {
        width: 14px;
        height: 14px;
        font-weight: 900 !important;
    }

    .round-nav__icon i {
        font-weight: 900 !important;
    }

    .round-nav__icon svg {
        width: 14px;
        height: 14px;
    }

    .round-nav__text {
        flex: 0 1 auto !important;
        min-width: 0 !important;
    }

    .tournament-rounds__indicator {
        display: flex;
        flex-direction: column;
        gap: 4px;
        font-size: 10px;
        padding: 6px 0;
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
        text-align: center;
        justify-content: center;
        align-items: center;
        white-space: nowrap;
    }

    .indicator-row {
        display: flex;
        align-items: center;
        gap: 6px;
        justify-content: center;
        width: 100%;
    }

    .tournament-rounds__indicator .indicator-turn,
    .tournament-rounds__indicator .indicator-round {
        font-size: 10px;
    }

    .tournament-rounds__indicator .indicator-status,
    .tournament-rounds__indicator .indicator-date {
        font-size: 9px;
    }

    /* Group Stage Mobile Improvements */
    .group-matches-section {
        margin-bottom: 24px;
        padding-bottom: 20px;
    }

    .group-title {
        font-size: 16px;
        margin-bottom: 12px;
        padding: 10px 12px;
    }

    .group-matches-wrapper {
        margin-bottom: 24px;
    }

    .group-stage-matches-container {
        gap: 20px;
    }

    .group-stage-locked-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    /* Turn Filter */
    .tournament-turns__filter {
        gap: 4px;
        margin-bottom: 8px;
        padding-bottom: 8px;
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
    }

    .turn-filter-btn {
        padding: 4px 8px;
        font-size: 10px;
        min-height: 26px;
        gap: 3px;
        flex: 1;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .turn-filter-icon {
        width: 11px;
        height: 11px;
    }

    /* Tournament Round - proper containment, no floating/overlap */
    .tournament-round {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        float: none !important;
        clear: both !important;
    }

    /* Knockout Phase Header - override inline, proper framing */
    .knockout-phase-header {
        text-align: center !important;
        margin-bottom: 16px !important;
        padding: 16px 12px !important;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        border-radius: 10px !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        float: none !important;
        clear: both !important;
    }

    .knockout-phase-header h3 {
        margin: 0 !important;
        color: #ffffff !important;
        font-size: 18px !important;
        font-weight: bold !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    .knockout-phase-header p {
        margin: 6px 0 0 0 !important;
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 13px !important;
    }

    /* Match pair - knockout ida/volta grouping */
    .match-pair {
        margin-bottom: 20px !important;
        padding: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        float: none !important;
        clear: both !important;
        border-radius: 8px !important;
        background: rgba(0, 0, 0, 0.02) !important;
        border: 1px solid rgba(0, 0, 0, 0.06) !important;
    }

    .match-pair:last-child {
        margin-bottom: 0 !important;
    }

    /* Match Display - escudos alinhados, nomes em linha única, layout harmônico */
    .tournament-match {
        padding: 14px 12px !important;
        gap: 10px 12px !important;
        border-radius: 8px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
        align-items: start !important;
        float: none !important;
        clear: both !important;
        margin-bottom: 12px !important;
        border: 1px solid #e5e7eb !important;
        background: #ffffff !important;
        position: relative !important;
    }

    .tournament-match:last-child {
        margin-bottom: 0 !important;
    }

    /* Match leg badge - own row */
    .match-leg-badge {
        grid-column: 1 / -1 !important;
        position: relative !important;
        top: auto !important;
        right: auto !important;
        margin-bottom: 4px !important;
        align-self: flex-start !important;
        justify-self: start !important;
        float: none !important;
        flex-shrink: 0 !important;
    }

    .match-leg-badge__text {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Match score wrapper */
    .match-score-wrapper {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        flex-shrink: 0 !important;
        position: relative !important;
        align-self: center !important;
    }

    .match-score-container {
        float: none !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        flex-wrap: nowrap !important;
        box-sizing: border-box !important;
    }

    /* Match team - layout horizontal: logo fixo + info. Escudos sempre alinhados pelo grid */
    .match-team {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        width: 100% !important;
        float: none !important;
        position: relative !important;
    }

    /* Away: logo à direita (espelhado) para simetria */
    .match-team--away {
        flex-direction: row-reverse !important;
        justify-content: flex-end !important;
    }

    .match-team--away .team-info {
        text-align: right !important;
    }

    /* Escudos - tamanho fixo, sempre alinhados */
    .team-logo {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        flex-shrink: 0 !important;
    }

    .team-logo__img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }

    .team-logo__placeholder {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        flex-shrink: 0 !important;
    }

    .team-info {
        flex: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important;
        text-align: left !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
    }

    /* Nomes e gamertags em linha única, com ellipsis quando necessário */
    .team-name {
        font-size: 13px !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
    }

    .team-player {
        font-size: 11px !important;
        margin-top: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
    }

    .team-player--current-user {
        background: var(--view-green-soft) !important;
        color: var(--view-green) !important;
        font-weight: 600 !important;
        padding: 2px 8px !important;
        border-radius: 4px !important;
        border: 1px solid rgba(11, 61, 46, 0.2) !important;
        display: inline-block !important;
        width: auto !important;
        max-width: 100% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .match-score-container {
        gap: 12px !important;
        padding: 0 8px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        align-self: center !important;
        flex: 0 0 auto !important;
        max-width: 100% !important;
        width: auto !important;
        min-width: 0 !important;
    }

    .match-score-box {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.2s ease !important;
        position: relative !important;
        flex-shrink: 0 !important;
        width: auto !important;
        height: auto !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .match-score-box:hover {
        /* Hover styles if needed */
    }

    .match-score-display {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        flex-shrink: 0 !important;
    }

    .score-input {
        background: #ffffff !important;
        border: 2px solid #000000 !important;
        border-radius: 12px !important;
        padding: 8px 6px !important;
        font-size: 16px !important;
        line-height: 1.2 !important;
        color: #000000 !important;
        transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
        box-sizing: border-box !important;
        width: 52px !important;
        min-width: 48px !important;
        max-width: 56px !important;
        height: 48px !important;
        min-height: 48px !important;
        max-height: 52px !important;
        text-align: center !important;
        appearance: textfield !important;
        -moz-appearance: textfield !important;
    }

    .score-input::placeholder {
        color: var(--view-gray-400) !important;
        opacity: 0.6 !important;
        font-weight: 500 !important;
    }

    .score-input:focus {
        outline: none !important;
    }

    .score-value {
        font-size: 18px !important;
    }

    /* Grupo / mata-mata: mesma grade 3 colunas — placar alinhado ao eixo dos times */
    .tournament-group-stage-matches .tournament-match .match-score-container,
    .tournament-knockout-matches .tournament-match .match-score-container {
        justify-self: center !important;
        align-self: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .match-report-form {
        grid-column: 1 / -1 !important;
        margin-top: 10px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        gap: 8px !important;
    }

    .match-save-btn {
        width: auto !important;
        min-width: 140px !important;
        max-width: 100% !important;
        padding: 10px 20px !important;
        font-size: 12px !important;
        background: #198754 !important;
        color: #ffffff !important;
        border: 1px solid #198754 !important;
        border-radius: 6px !important;
        font-weight: 600 !important;
        box-sizing: border-box !important;
    }

    .match-save-btn:hover {
        background: #157347 !important;
        border-color: #157347 !important;
    }

    .match-save-btn:disabled {
        background: #6c757d !important;
        border-color: #6c757d !important;
        opacity: 0.6 !important;
        cursor: not-allowed !important;
    }

    .match-save-status {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    /* Final Mobile Fixes - Prevent Floating Elements */
    .tournament-view-section,
    .match-card,
    .match-card *,
    .tournament-tab-content {
        position: relative !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .tournament-view-section {
        overflow-x: hidden !important;
    }

    /* Tournament rounds - allow visible overflow for headers/shadows and nav buttons */
    .tournament-rounds__viewer,
    .tournament-rounds__slides {
        overflow: visible !important;
    }


    .tournament-round,
    .knockout-phase-header,
    .match-pair,
    .tournament-match {
        overflow: visible !important;
    }

    /* Ensure all containers are properly contained */
    .tournament-content-wrapper,
    .tournament-tab-content,
    .match-list,
    .standings-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        position: relative !important;
        box-sizing: border-box !important;
    }

    /* Não alterar position:absolute em elementos que dependem disso (modals, dropdowns) */

    /* Ensure proper text wrapping */
    * {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }

    /* Hide tabs on desktop - only show on mobile */
    .tournament-mobile-tabs {
        display: flex !important;
    }

    /* Grid Layout */
    .tournament-view-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Match Actions Container */
    .match-actions-container {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        margin-top: 10px !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        position: relative !important;
        box-sizing: border-box !important;
    }

    .match-edit-btn {
        flex: none !important;
        min-width: 120px !important;
        max-width: 100% !important;
    }

    .match-save-btn {
        flex: none !important;
        min-width: 140px !important;
        max-width: 100% !important;
    }

    /* Highlight Cards */
    .highlight-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .highlight-card {
        padding: 10px 12px;
    }

    .highlight-icon {
        width: 32px;
        height: 32px;
    }

    .highlight-label {
        font-size: 10px;
    }

    .highlight-value {
        font-size: 16px;
    }

    /* Rules Cards */
    .rules-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .rule-card {
        padding: 10px 12px;
    }

    .rule-icon {
        width: 32px;
        height: 32px;
    }

    .rule-label {
        font-size: 10px;
    }

    .rule-value {
        font-size: 12px;
    }

    /* Pending Tournament Info: 1 column layout (mobile) */
    .tournament-pending-info {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Tournament Pending Info - Header adjustments */
    .tournament-pending-info .tournament-view-section header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .tournament-pending-info .tournament-view-section header h2 {
        width: 100%;
        font-size: 16px;
    }

    .tournament-pending-info .tournament-view-section header .action-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 14px;
        white-space: nowrap;
    }

    /* Team List Mobile — exceto roster unificado (.tv-roster-list), que usa tournament-roster-lists.css */
    .team-list:not(.tv-roster-list) li {
        padding: 12px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .team-list:not(.tv-roster-list) li .team-logo {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    .team-list:not(.tv-roster-list) li .team-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 4px;
        box-sizing: border-box;
    }

    .team-list:not(.tv-roster-list) li .team-info {
        flex: 1;
        min-width: 120px;
    }

    .team-list:not(.tv-roster-list) li .team-name {
        font-size: 14px;
    }

    .team-list:not(.tv-roster-list) li .team-country {
        font-size: 12px;
    }

    .team-list:not(.tv-roster-list) li .remove-team-btn {
        width: 36px !important;
        height: 36px !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
        background: #ffffff !important;
        border: 1px solid #000000 !important;
        color: #ef4444 !important;
    }

    .team-list:not(.tv-roster-list) li .remove-team-btn:hover {
        background: #ffffff !important;
        border-color: #000000 !important;
        color: #dc2626 !important;
        transform: scale(1.05) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    }

    /*
     * Remover participante na lista: não usar estilo “branco/preto” da team-list;
     * fluxo no grid (pending-info.phtml + reforço abaixo).
     */
    /* Remove (X) roster: estilo em tournament-roster-lists + bloco tv-roster mobile abaixo */
    .pending-participants-list .participant-actions .remove-team-btn:not(.action-btn--remove),
    .pending-participants-list .participant-actions button[data-action="remove-participant"]:not(.action-btn--remove) {
        width: 36px !important;
        height: 36px !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
        background: #ffffff !important;
        border: 1px solid #000000 !important;
        color: #ef4444 !important;
        border-radius: 6px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        z-index: 1 !important;
        box-sizing: border-box !important;
        font-size: 14px !important;
        box-shadow: none !important;
    }

    .pending-participants-list .participant-actions .remove-team-btn:not(.action-btn--remove):hover,
    .pending-participants-list .participant-actions button[data-action="remove-participant"]:not(.action-btn--remove):hover {
        background: #ffffff !important;
        border-color: #000000 !important;
        color: #dc2626 !important;
        transform: scale(1.05) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    }

    /* FORÇAR ÍCONE X APARECER - MOBILE */
    .fa-close:before, .fa-multiply:before, .fa-remove:before, .fa-times:before, .fa-xmark:before {
        content: "\f00d" !important;
        font-family: "Font Awesome 6 Free" !important;
        font-weight: 900 !important;
        display: inline-block !important;
        visibility: visible !important;
    }

    /* Tournament Team Assignment Mobile */
    .tournament-team-assignment {
        padding: 16px;
        border-radius: 10px;
    }

    .tournament-team-assignment header h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .tournament-team-assignment header h2 i {
        font-size: 20px;
    }

    .assignment-actions {
        padding: 16px;
        border-radius: 12px;
    }

    .assignment-actions p {
        font-size: 13px;
        margin-bottom: 14px;
        text-align: left;
    }

    .assignment-actions .action-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .assignment-actions .action {
        width: 100%;
        justify-content: center;
        padding: 14px 18px;
        font-size: 13px;
        min-height: 48px;
    }

    .assignment-actions .action i {
        font-size: 14px;
    }

    /* Manter gradientes fortes no mobile (reafirma sobre regras genéricas .action) */
    .assignment-actions .live-draw-btn {
        background: linear-gradient(135deg, var(--assign-live-from, #d97706) 0%, var(--assign-live-to, #b45309) 100%) !important;
        color: #fffbeb !important;
    }

    .assignment-actions .action.secondary:not(.live-draw-btn) {
        background: linear-gradient(135deg, var(--assign-manual-from, #1e40af) 0%, var(--assign-manual-to, #1d4ed8) 100%) !important;
        color: #eff6ff !important;
    }

    .assignment-actions .action.primary.disabled {
        background: var(--view-gray-200, #e5e7eb);
        color: var(--view-gray-500);
        cursor: not-allowed;
        opacity: 0.65;
    }

    .draw-readiness-status {
        padding: 12px;
        margin-bottom: 12px;
    }

    .draw-readiness-status .status-message {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .draw-readiness-status .status-message i {
        font-size: 14px;
    }

    .readiness-checklist {
        gap: 6px;
    }

    .readiness-checklist li {
        font-size: 13px;
    }

    .readiness-checklist li i {
        font-size: 14px;
    }


    /* Participants List Mobile - Responsivo, sem corte nem sobreposição */
    .tournament-view-section.tournament-participants {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        box-sizing: border-box !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .tournament-view-section.tournament-participants .participants-list {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        list-style: none !important;
    }

    /*
     * Participantes inscritos (pending-info): layout = tv-roster (grid) em tournament-roster-lists.css.
     * Regras flex/nowrap antigas foram removidas — conflitavam com .tv-roster-item (display: grid).
     */

    /* Outras listas .participants-list sem .pending-participants-list (fallback legado) */
    .participants-list:not(.pending-participants-list) li,
    .participants-list:not(.pending-participants-list) li.participant-item {
        padding: 12px !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 10px !important;
        border: 1px solid var(--view-gray-200) !important;
        background: #ffffff !important;
    }


    /* ============================================
       TOURNAMENT STATISTICS - Mobile: escudos alinhados, nomes em linha única
       ============================================ */
    .tournament-view-section.tournament-statistics {
        overflow: visible !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .statistics-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    .statistic-card {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        padding: 16px !important;
        box-sizing: border-box !important;
    }

    .statistic-card__header {
        flex-wrap: nowrap !important;
        gap: 12px !important;
        overflow: hidden !important;
    }

    .statistic-card__title,
    .statistic-card__subtitle {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .statistic-card__list {
        overflow: visible !important;
        width: 100% !important;
    }

    /* Statistic item - layout fixo: rank | logo | avatar | info | value. Escudos alinhados */
    .statistic-item {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        flex-wrap: nowrap !important;
        box-sizing: border-box !important;
    }

    .statistic-item__rank {
        flex-shrink: 0 !important;
        min-width: 24px !important;
    }

    .statistic-item__team {
        flex: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        flex-wrap: nowrap !important;
    }

    /* Escudos e avatares - tamanhos fixos para alinhamento */
    .statistic-item__logo {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        flex-shrink: 0 !important;
    }

    .statistic-item__logo img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }

    .statistic-item__player-avatar {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
        flex-shrink: 0 !important;
    }

    .statistic-item__player-avatar img,
    .statistic-item__player-avatar .statistic-avatar,
    .statistic-item__player-avatar .avatar-placeholder {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .statistic-item__info {
        flex: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    /* Nomes e gamertags em linha única */
    .statistic-item__name {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
    }

    .statistic-player-link {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
    }

    .statistic-item__value {
        flex-shrink: 0 !important;
        min-width: 40px !important;
        text-align: right !important;
    }

    .statistic-view-more-btn span {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

@media (max-width: 768px) {
    .tournament-view-page {
        padding-left: 12px !important;
        padding-right: 12px !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .tournament-content-wrapper,
    .tournament-view-grid,
    .tournament-tab-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .tournament-view-grid {
        margin-left: 0 !important;
        margin-right: 0 !important;
        gap: 16px !important;
    }

    .tournament-view-section,
    .tournament-view-section.tournament-standings,
    .tournament-view-section.tournament-rounds,
    .tournament-view-section.tournament-statistics {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .tournament-view-section .table-responsive,
    .tournament-standings-section .table-responsive,
    .tournament-standings .table-responsive,
    .tournament-view-section.tournament-standings .table-responsive {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
    }

    .tournament-view-section .statistics-container,
    .tournament-view-section .statistic-card,
    .tournament-view-section .statistic-card__list,
    .tournament-view-section .statistic-item,
    .tournament-view-section .statistic-item__team,
    .tournament-view-section .statistic-item__info,
    .tournament-view-section .tournament-rounds__viewer,
    .tournament-view-section .tournament-rounds__slides,
    .tournament-view-section .tournament-round,
    .tournament-view-section .tournament-match {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .tournament-view-page .tournament-view-grid,
    .tournament-view-page .tournament-view-section,
    .tournament-view-page .group-matches-wrapper,
    .tournament-view-page .match-pair,
    .tournament-view-page .tournament-match,
    .tournament-view-page .tournament-statistics,
    .tournament-view-page .statistics-grid {
        overflow: visible !important;
    }

    .tournament-view-page .match-team {
        overflow: visible !important;
        align-items: flex-start !important;
    }

    .tournament-view-page .match-team--away {
        align-items: flex-end !important;
    }

    .tournament-view-page .match-team .team-info,
    .tournament-view-page .match-team .team-name,
    .tournament-view-page .match-team .team-player,
    .tournament-view-page .match-team .team-player a,
    .tournament-view-page .team-player-link,
    .tournament-view-page .standings-team__info,
    .tournament-view-page .standings-team .team-name,
    .tournament-view-page .standings-team .team-player,
    .tournament-view-page .standings-player-link {
        min-width: 0 !important;
        max-width: 100% !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }

    .tournament-view-page .match-team .team-player,
    .tournament-view-page .standings-team .team-player {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
    }

    .tournament-view-page .match-team--away .team-info {
        align-items: flex-end !important;
    }

    .tournament-view-page .team-player--current-user {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    .tournament-view-page .group-title {
        white-space: normal !important;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .tournament-view-page {
        padding: 0 6px 20px;
        gap: 10px;
    }

    .tournament-view-page {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .knockout-phase-header h3 {
        font-size: 16px !important;
    }

    .knockout-phase-header p {
        font-size: 12px !important;
    }

    .match-pair {
        padding: 10px !important;
    }

    .tournament-match {
        padding: 12px 10px !important;
        gap: 8px !important;
    }

    .tournament-view-section {
        padding: 12px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .tournament-view-section.tournament-standings .table-responsive {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .tournament-standings-table th,
    .tournament-standings-table td {
        padding: 10px 8px;
        font-size: 12px;
    }

    .tournament-standings-table th {
        font-size: 10px;
        padding: 8px 6px;
    }

    .tournament-standings-table td.standings-position {
        font-size: 15px;
    }

    .standings-team__logo {
        width: 40px;
        height: 40px;
    }

    .standings-team .team-name {
        font-size: 12px;
    }

    .standings-team .team-player {
        font-size: 11px;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-wrap: nowrap !important;
    }

    .match-team {
        gap: 8px !important;
    }

    .team-logo {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }

    .team-logo__img,
    .team-logo__placeholder {
        width: 44px !important;
        height: 44px !important;
    }

    .team-name {
        font-size: 12px !important;
    }

    .team-player {
        font-size: 10px !important;
    }

    .match-score-container {
        flex-wrap: nowrap !important;
        flex-direction: row !important;
    }

    /* Statistics - 480px */
    .statistic-item__logo {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
    }

    .statistic-item__name,
    .statistic-player-link {
        font-size: 12px !important;
    }

    .score-input,
    .score-value {
        font-size: 14px;
    }

    .round-nav__btn {
        padding: 8px 8px !important;
        font-size: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
        white-space: normal !important;
        background: #1f2937 !important;
        background-color: #1f2937 !important;
        color: #ffffff !important;
    }

    .round-nav__btn .round-nav__text,
    .round-nav__btn .round-nav__icon,
    .round-nav__btn .round-nav__icon i {
        color: #ffffff !important;
        font-weight: 900 !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    .round-nav__btn[disabled] .round-nav__text,
    .round-nav__btn[disabled] .round-nav__icon,
    .round-nav__btn[disabled] .round-nav__icon i {
        color: #d1d5db !important;
    }

    .tournament-rounds__indicator {
        font-size: 9px;
        padding: 4px 0;
    }



    .turn-filter-btn {
        padding: 3px 6px;
        font-size: 9px;
        min-height: 24px;
    }

    /* Export Image Button Mobile */
    .standings-share,
    .podium-share,
    .podium-statistics-share,
    .rounds-share {
        margin-top: 20px;
        margin-bottom: 0;
        padding: 0 8px;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .export-image-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
    }

    .export-image-icon {
        width: 18px;
        height: 18px;
    }

    /* Podium Mobile Styles */
    .tournament-podium {
        padding: 24px 16px;
    }

    .podium-title {
        font-size: 24px;
    }

    .podium-title i {
        font-size: 28px;
    }

    .podium-subtitle {
        font-size: 16px;
    }

    .podium-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 0;
        margin-bottom: 0;
    }

    .podium-cards-row {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    /*
     * Pódio mobile: uma linha, duas colunas — troféu (esq.) | .podium-item__details (dir.).
     */
    .podium-item,
    .podium-position,
    .podium-images,
    .podium-team-logo-mobile,
    .podium-player-avatar-mobile,
    .podium-info,
    .podium-trophies {
        float: none !important;
        clear: both !important;
    }

    /* Segunda coluna: grid — linha 1 avatar; linha 2 posição | vazio | escudo; linha 3 textos + V-E-D */
    .podium-item__details {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        column-gap: 8px;
        row-gap: 8px;
        align-items: center;
        justify-items: center;
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .podium-item {
        padding: 12px 12px 12px 10px !important;
        padding-top: 12px !important;
        margin-bottom: 0 !important;
        min-width: 0;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        border-radius: 10px !important;
        border: 1px solid var(--view-gray-200);
        background: #ffffff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        display: grid !important;
        grid-template-columns: minmax(108px, 36%) minmax(0, 1fr);
        grid-template-rows: auto;
        column-gap: 12px;
        row-gap: 0;
        align-items: center;
        overflow: visible !important;
    }

    /* Ordem dos cards: 1º, 2º, 3º */
    .podium-item--gold {
        order: 1 !important;
        border-left: 3px solid #fbbf24;
    }

    .podium-item--silver {
        order: 2 !important;
        border-left: 3px solid #94a3b8;
    }

    .podium-item--bronze {
        order: 3 !important;
        border-left: 3px solid #cd7f32;
    }

    .podium-item__details .podium-images {
        grid-column: 1 / -1;
        grid-row: 1;
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        gap: 0;
        width: 100%;
        min-width: 0;
        position: static;
        z-index: 1;
        margin: 0;
        padding: 0 0 2px 0;
    }

    .podium-images .podium-team-logo,
    .podium-images .podium-player-avatar {
        display: none !important;
    }

    .podium-item__details .podium-position {
        grid-column: 1;
        grid-row: 2;
        justify-self: center;
        align-self: center;
        position: static !important;
        top: auto !important;
        left: auto !important;
        margin: 0 !important;
    }

    .podium-position-number {
        width: 32px !important;
        height: 32px !important;
        font-size: 13px !important;
    }

    .podium-item--gold .podium-position-number {
        width: 36px !important;
        height: 36px !important;
        font-size: 15px !important;
    }

    .podium-item .podium-player-avatar-mobile {
        display: flex !important;
        width: 64px !important;
        height: 64px !important;
        min-width: 64px;
        margin: 0 !important;
        border-radius: 50%;
        overflow: hidden;
        border: 2px solid var(--view-gray-200);
        align-items: center;
        justify-content: center;
        background: var(--view-gray-100);
        flex-shrink: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .podium-item--gold .podium-player-avatar-mobile {
        width: 72px !important;
        height: 72px !important;
        min-width: 72px;
        border-color: #fbbf24;
        box-shadow: 0 3px 10px rgba(251, 191, 36, 0.22);
    }

    .podium-item--silver .podium-player-avatar-mobile {
        border-color: #94a3b8;
    }

    .podium-item--bronze .podium-player-avatar-mobile {
        border-color: #cd7f32;
    }

    .podium-player-avatar-mobile img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .podium-player-avatar-mobile .podium-player-placeholder,
    .podium-player-avatar-mobile .avatar-placeholder {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--view-gray-100);
        color: var(--view-gray-400);
        font-size: 20px;
    }

    .podium-player-avatar-mobile .podium-player-placeholder i,
    .podium-player-avatar-mobile .avatar-placeholder i {
        margin: 0;
        padding: 0;
        line-height: 1;
    }

    .podium-item--gold .podium-player-avatar-mobile .podium-player-placeholder,
    .podium-item--gold .podium-player-avatar-mobile .avatar-placeholder {
        font-size: 22px;
    }

    .podium-item__details .podium-team-logo-mobile {
        grid-column: 3;
        grid-row: 2;
        justify-self: center;
        align-self: center;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        min-width: 36px;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid var(--view-gray-200);
        margin: 0 !important;
        background: var(--view-gray-50);
        flex-shrink: 0;
        box-sizing: border-box;
        opacity: 0.95;
    }

    .podium-item--gold .podium-item__details .podium-team-logo-mobile {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .podium-team-logo-mobile img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 4px;
        box-sizing: border-box;
    }

    .podium-item__details .podium-info {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-self: stretch;
        width: 100%;
        flex: initial !important;
        min-width: 0 !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        overflow: visible !important;
        text-align: center;
        padding-top: 2px;
    }

    .podium-item__details .podium-info h3 {
        font-size: 14px;
        font-weight: 700;
        margin: 0 0 3px 0;
        line-height: 1.35;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        word-break: break-word;
        max-width: 100%;
    }

    .podium-item__details .podium-team {
        font-size: 12px;
        color: var(--view-gray-500);
        margin: 0 0 6px 0;
        line-height: 1.35;
        white-space: normal !important;
        overflow: visible !important;
        word-break: break-word;
        max-width: 100%;
        font-weight: 500;
    }

    .podium-item__details .podium-stats {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
        margin: 0;
        margin-top: 2px;
        padding: 8px 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        background: var(--view-gray-50);
        border: 1px solid var(--view-gray-200);
        border-radius: 8px;
    }

    .podium-stats .podium-points,
    .podium-stats .podium-titles {
        font-size: 12px;
        font-weight: 600;
        color: var(--view-gray-700);
    }

    /* Coluna esquerda: troféu(s), uma única célula do grid */
    .podium-item > .podium-trophies {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
        justify-self: stretch;
        margin: 0 !important;
        padding: 10px 6px !important;
        box-sizing: border-box;
        min-width: 0;
        width: 100%;
        max-width: 100%;
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: center;
        justify-content: center;
        gap: 6px !important;
        background: var(--view-gray-50);
        border-radius: 8px;
        border: 1px solid var(--view-gray-100);
    }

    .podium-trophies--empty {
        min-height: 112px;
    }

    .podium-item .podium-trophy-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 6px 4px !important;
        box-sizing: border-box;
        text-align: center;
        background: transparent !important;
    }

    .podium-item .podium-trophy-item--has-image {
        padding: 0 !important;
    }

    .podium-item .podium-trophy-image {
        width: 88px !important;
        height: 88px !important;
        max-width: 100% !important;
        object-fit: contain !important;
        display: block;
        background: transparent;
    }

    .podium-item--gold .podium-trophy-image {
        width: 100px !important;
        height: 100px !important;
    }

    .podium-item .podium-trophy-placeholder {
        width: 72px !important;
        height: 72px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 28px !important;
    }

    /* Nome do troféu oculto no bloco do card (ver tournament-view.css — alt na img) */

    .podium-trophy-placeholder-large {
        padding: 10px 6px !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        color: var(--view-gray-400);
        text-align: center;
        box-sizing: border-box;
        width: 100%;
    }

    .podium-trophy-placeholder-large i {
        font-size: 36px !important;
    }

    .podium-item > * {
        float: none !important;
    }

    .podium-player-placeholder {
        font-size: 18px !important;
    }

    .podium-item--gold .podium-player-placeholder {
        font-size: 20px !important;
    }

    .podium-item__label {
        font-size: 18px;
    }

    .podium-item--champion .podium-item__label {
        font-size: 20px;
    }

    .podium-item__team-name {
        font-size: 16px;
    }

    .podium-item--champion .podium-item__team-name {
        font-size: 18px;
    }

    .podium-item__stats {
        flex-wrap: wrap;
        gap: 12px;
    }

    .podium-item__details .podium-ved {
        font-size: 12px !important;
        gap: 5px;
    }

    .podium-item__details .podium-ved .ved-dot {
        width: 7px;
        height: 7px;
    }

    .podium-item__details .podium-ved .ved-value {
        font-size: 12px !important;
    }

    .podium-stat-ved .ved-dot {
        width: 8px;
        height: 8px;
    }

    .stat-highlight-ved {
        font-size: 11px !important;
        padding: 4px 8px;
        margin-top: 6px;
    }

    .stat-highlight-ved .ved-dot {
        width: 6px;
        height: 6px;
    }

    .stat-highlight-ved .ved-value {
        font-size: 11px !important;
        min-width: 10px;
    }

    /* Podium Statistics Mobile */
    .podium-statistics {
        margin-top: 32px;
        padding-top: 24px;
    }

    .podium-statistics-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .podium-stat-card {
        padding: 20px;
    }

    .podium-stat-row {
        grid-template-columns: 1fr;
    }

    /* Tournament Statistics Highlights Mobile */
    .tournament-stats-highlights {
        margin-top: 32px;
        padding-top: 24px;
    }

    .stats-highlights-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .stats-highlights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-highlights-section {
        gap: 10px;
    }

    .stats-section-title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .stats-highlights-cards {
        gap: 10px;
    }

    .stat-highlight-card {
        padding: 14px;
    }

    .stat-highlight-value {
        font-size: 22px;
    }

    .stat-highlight-team-logo {
        width: 32px;
        height: 32px;
    }

    .stat-highlight-player-name {
        font-size: 13px;
    }

    .stat-highlight-team-name {
        font-size: 11px;
    }

    .stat-highlight-main {
        gap: 12px;
    }

    .stat-highlight-player-avatar {
        width: 60px;
        height: 60px;
    }

    /* Rankings Mobile */
    .ranking-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        gap: 12px;
    }

    .ranking-item__icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .ranking-item__info {
        width: 100%;
    }

    .ranking-item__name {
        font-size: 16px;
    }

    .ranking-item__description {
        font-size: 13px;
    }

    .ranking-item__action {
        width: 100%;
    }

    .ranking-item__link {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    /* Manual Assignment Modal Mobile */
    .modal-content--large {
        max-width: 95% !important;
        width: 95% !important;
        margin: 20px auto;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .modal-header {
        padding: 16px 20px;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .modal-header h3 {
        font-size: 16px;
        word-wrap: break-word;
        overflow: hidden;
        max-width: 100%;
    }

    .modal-body {
        padding: 20px;
        max-height: calc(100vh - 180px);
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden !important;
        overflow-y: auto;
    }

    .manual-assignment-info {
        margin-bottom: 20px;
        font-size: 13px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .manual-assignment-list {
        max-height: 400px;
        padding: 2px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .manual-assignment-table {
        gap: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .manual-assignment-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
        border-radius: 8px;
        margin-bottom: 0;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .manual-assignment-participant {
        flex: 0 0 auto;
        min-width: 0;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 8px;
        padding-bottom: 4px;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .participant-icon {
        font-size: 16px;
        width: 18px;
        flex-shrink: 0;
    }

    .participant-name-display {
        font-size: 14px;
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        font-weight: 600;
        color: var(--view-gray-700);
        margin-bottom: 0;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .team-select-assign {
        padding-left: 14px !important;
        padding-right: 32px !important;
        background-size: 14px 14px !important;
        background-position: right 10px center !important;
        background-repeat: no-repeat !important;
    }

    .manual-assignment-select-wrapper {
        flex: 1;
        width: 100% !important;
        max-width: 100% !important;
        flex-direction: row;
        gap: 10px;
        align-items: center;
        margin-top: 0;
        box-sizing: border-box !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .manual-assignment-select,
    .team-select-assign {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 12px 14px;
        min-height: 44px;
        font-size: 14px;
        box-sizing: border-box !important;
    }

    .unassign-team-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        max-width: 36px;
        align-self: flex-end;
        border: 2px solid var(--view-gray-400);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .unassign-team-btn:hover {
        border-width: 2px;
        border-color: #ef4444;
        box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
    }

    .modal-footer {
        padding: 16px 20px;
        flex-direction: column-reverse;
        gap: 10px;
    }

    .modal-footer .action {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 14px;
    }

    .manual-assignment-errors {
        margin-bottom: 16px;
    }

    .error-message-box {
        padding: 12px;
        gap: 10px;
    }

    .error-message-box i {
        font-size: 18px;
    }

    /* Teams and Players Grid Mobile */
    .teams-players-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .teams-players-grid .tournament-view-section {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .teams-players-grid .tournament-view-section header {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

}

@media (max-width: 768px) {
    .tournament-rounds .tournament-match {
        grid-template-columns: minmax(104px, 1fr) auto minmax(104px, 1fr) !important;
        gap: 10px !important;
        align-items: start !important;
    }

    .tournament-rounds .match-team,
    .tournament-rounds .match-team--away {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        text-align: center !important;
    }

    .tournament-rounds .match-team .team-info,
    .tournament-rounds .match-team--away .team-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        min-width: 0 !important;
        text-align: center !important;
        overflow: visible !important;
    }

    .tournament-rounds .match-team .team-name,
    .tournament-rounds .match-team .team-player,
    .tournament-rounds .match-team .team-player a {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        text-align: center !important;
        white-space: nowrap !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        text-overflow: clip !important;
        overflow: visible !important;
    }

    .tournament-rounds .match-team .team-name {
        font-size: 12px !important;
        line-height: 1.25 !important;
    }

    .tournament-rounds .match-team .team-player,
    .tournament-rounds .match-team .team-player a {
        font-size: 10px !important;
        line-height: 1.2 !important;
        justify-content: center !important;
    }

    .tournament-rounds .match-score-container {
        gap: 12px !important;
        padding: 0 8px !important;
    }
}

@media (max-width: 480px) {
    .tournament-rounds .tournament-match {
        grid-template-columns: minmax(96px, 1fr) auto minmax(96px, 1fr) !important;
        gap: 8px !important;
    }

    .tournament-rounds .match-team .team-name {
        font-size: 11px !important;
    }

    .tournament-rounds .match-team .team-player,
    .tournament-rounds .match-team .team-player a {
        font-size: 9px !important;
    }
}

@media (max-width: 768px) {
    .tournament-rounds .tournament-match,
    .tournament-round .tournament-match {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        justify-content: center !important;
        gap: 12px 10px !important;
        padding: 14px 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .tournament-rounds .tournament-match .match-leg-badge,
    .tournament-round .tournament-match .match-leg-badge {
        width: 100% !important;
        order: 0 !important;
        margin-bottom: 4px !important;
        position: relative !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        align-self: flex-start !important;
        justify-self: flex-start !important;
    }

    .tournament-rounds .tournament-match .match-team,
    .tournament-round .tournament-match .match-team {
        display: flex !important;
        flex: 1 1 0 !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        min-width: 0 !important;
        max-width: none !important;
        width: auto !important;
        overflow: hidden !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    .tournament-rounds .tournament-match .match-team--away,
    .tournament-round .tournament-match .match-team--away {
        flex-direction: column !important;
        justify-content: flex-start !important;
    }

    .tournament-rounds .tournament-match .match-team--home,
    .tournament-round .tournament-match .match-team--home {
        order: 1 !important;
    }

    .tournament-rounds .tournament-match .match-team--away,
    .tournament-round .tournament-match .match-team--away {
        order: 3 !important;
    }

    .tournament-rounds .tournament-match .team-logo,
    .tournament-round .tournament-match .team-logo {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        margin: 0 auto !important;
        flex-shrink: 0 !important;
    }

    .tournament-rounds .tournament-match .team-info,
    .tournament-round .tournament-match .team-info,
    .tournament-rounds .tournament-match .match-team--away .team-info,
    .tournament-round .tournament-match .match-team--away .team-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 4px !important;
        width: 100% !important;
        min-width: 0 !important;
        text-align: center !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .tournament-rounds .tournament-match .team-name,
    .tournament-round .tournament-match .team-name {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        text-align: center !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        hyphens: none !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .tournament-rounds .tournament-match .team-player,
    .tournament-round .tournament-match .team-player,
    .tournament-rounds .tournament-match .team-player-link,
    .tournament-round .tournament-match .team-player-link {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        font-size: 10px !important;
        line-height: 1.3 !important;
        color: #666666 !important;
        text-align: center !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        hyphens: none !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        text-decoration: none !important;
    }

    /* Centro do placar: largura conforme conteúdo (AJAX / knockout usam wrapper ou só o container). */
    .tournament-rounds .tournament-match .match-score-wrapper,
    .tournament-round .tournament-match .match-score-wrapper,
    .tournament-rounds .tournament-match > .match-score-container,
    .tournament-round .tournament-match > .match-score-container {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        order: 2 !important;
        align-self: center !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    .tournament-rounds .tournament-match .match-score-wrapper .match-score-container,
    .tournament-round .tournament-match .match-score-wrapper .match-score-container {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        padding: 0 !important;
        margin: 0 !important;
        width: auto !important;
        max-width: 100% !important;
        flex: 0 0 auto !important;
        box-sizing: border-box !important;
    }

    .tournament-rounds .tournament-match .match-score-container,
    .tournament-round .tournament-match .match-score-container {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        padding: 0 4px !important;
        margin: 0 auto !important;
        width: auto !important;
        max-width: 100% !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    .tournament-rounds .tournament-match .match-score-box,
    .tournament-round .tournament-match .match-score-box {
        flex-shrink: 0 !important;
        width: auto !important;
        height: auto !important;
        min-width: 0 !important;
    }

    .tournament-rounds .tournament-match .match-score-display-mode,
    .tournament-round .tournament-match .match-score-display-mode {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        flex-wrap: nowrap !important;
        width: auto !important;
        max-width: 100% !important;
    }

    .tournament-rounds .tournament-match .match-score-display,
    .tournament-round .tournament-match .match-score-display {
        width: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
        height: 40px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .tournament-rounds .tournament-match .match-score-separator,
    .tournament-round .tournament-match .match-score-separator {
        flex: 0 0 auto !important;
        line-height: 1 !important;
        font-size: 16px !important;
    }

    .tournament-rounds .tournament-match > .match-report-form,
    .tournament-round .tournament-match > .match-report-form {
        order: 4 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 10px !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .tournament-rounds .tournament-match .match-team,
    .tournament-round .tournament-match .match-team {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        max-width: none !important;
        width: auto !important;
    }

    .tournament-rounds .tournament-match .match-score-wrapper,
    .tournament-round .tournament-match .match-score-wrapper,
    .tournament-rounds .tournament-match > .match-score-container,
    .tournament-round .tournament-match > .match-score-container {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0 !important;
    }

    .tournament-rounds .tournament-match,
    .tournament-round .tournament-match {
        gap: 10px 6px !important;
        padding: 12px 10px !important;
    }

    .tournament-rounds .tournament-match .team-name,
    .tournament-round .tournament-match .team-name {
        font-size: 11px !important;
    }

    .tournament-rounds .tournament-match .team-player,
    .tournament-round .tournament-match .team-player,
    .tournament-rounds .tournament-match .team-player-link,
    .tournament-round .tournament-match .team-player-link {
        font-size: 9px !important;
    }

    /**
     * Roster cards (tv-roster): equipes + jogadores — mobile
     * Linha 1: mídia + texto; linha 2 (se houver): ações em largura total.
     * Textos em fluxo natural (word-wrap), sem nowrap/ellipsis legado.
     */
    .teams-players-grid .tv-roster-item,
    .tournament-teams-and-players .tv-roster-item {
        --tv-roster-media-size: 48px;
        --tv-roster-min-height: 72px;
        --tv-roster-pad-y: 14px;
        --tv-roster-pad-x: 16px;
    }

    .tournament-teams-and-players .teams-players-list.tv-roster-list > .tv-roster-item.team-player-item {
        --tv-player-avatar-size: 28px;
        --tv-team-name-gamertag-gap: 6px;
        --tv-players-roster-gap: 6px;
        column-gap: 12px;
    }

    .tournament-teams-and-players .teams-players-list .team-name.tv-roster-title {
        font-size: 1.0625rem;
    }

    .tournament-teams-and-players .teams-players-list .team-player-row__gamertag {
        font-size: 0.9375rem;
    }

    .tournament-teams-and-players .team-player-row {
        gap: 8px;
    }

    .tournament-teams-and-players .team-player-row__avatar.participant-logo--placeholder i {
        font-size: 14px !important;
    }

    .teams-players-grid .tv-roster-item.tv-roster-item--with-aside,
    .tournament-teams-and-players .tv-roster-item.tv-roster-item--with-aside {
        grid-template-columns: var(--tv-roster-media-size) minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        align-items: start !important;
    }

    .teams-players-grid .tv-roster-item.tv-roster-item--with-aside .tv-roster-item__media,
    .tournament-teams-and-players .tv-roster-item.tv-roster-item--with-aside .tv-roster-item__media {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    .teams-players-grid .tv-roster-item.tv-roster-item--with-aside .tv-roster-item__body,
    .tournament-teams-and-players .tv-roster-item.tv-roster-item--with-aside .tv-roster-item__body {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    .teams-players-grid .tv-roster-item.tv-roster-item--with-aside .tv-roster-item__aside,
    .tournament-teams-and-players .tv-roster-item.tv-roster-item--with-aside .tv-roster-item__aside {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        align-items: stretch !important;
        width: 100% !important;
        padding-top: 6px !important;
    }

    .teams-players-grid .tv-roster-item__aside .participant-actions,
    .tournament-teams-and-players .tv-roster-item__aside .participant-actions {
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        width: 100% !important;
        gap: 8px !important;
    }

    .teams-players-grid .tv-roster-item__aside .participant-actions .action-btn,
    .tournament-teams-and-players .tv-roster-item__aside .participant-actions .action-btn {
        width: 100% !important;
        justify-content: center !important;
        min-height: 42px !important;
        white-space: normal !important;
    }

    /* Remover time/jogador (.action-btn--remove): largura total, altura fixa, fundo branco / borda preta / ícone vermelho */
    .teams-players-grid .tv-roster-item__aside .action-btn--remove.remove-team-btn,
    .tournament-teams-and-players .tv-roster-item__aside .action-btn--remove.remove-team-btn {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 48px !important;
        min-height: 48px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        align-self: stretch !important;
        background: #ffffff !important;
        border: 1px solid #000000 !important;
        color: #dc3545 !important;
    }

    .teams-players-grid .tv-roster-item__aside .action-btn--remove.remove-team-btn i,
    .tournament-teams-and-players .tv-roster-item__aside .action-btn--remove.remove-team-btn i {
        color: #dc3545 !important;
    }

    .teams-players-grid .tv-roster-item .participant-name,
    .teams-players-grid .tv-roster-item .participant-name .participant-profile-link,
    .teams-players-grid .tv-roster-item .participant-team,
    .teams-players-grid .tv-roster-item .team-name.tv-roster-title,
    .teams-players-grid .tv-roster-item .team-country.tv-roster-subtitle,
    .teams-players-grid .tv-roster-item .team-players.tv-roster-subtitle,
    .tournament-teams-and-players .tv-roster-item .team-name.tv-roster-title,
    .tournament-teams-and-players .team-player-row__gamertag,
    .tournament-teams-and-players .team-player-row__gamertag .participant-profile-link {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        hyphens: none !important;
        max-width: 100% !important;
    }

    .teams-players-grid .tv-roster-item .participant-name .participant-profile-link {
        display: inline !important;
        vertical-align: baseline !important;
    }

    .teams-players-grid .tv-roster-item .participant-logo--placeholder i {
        font-size: 16px !important;
    }

    .tournament-teams-and-players .team-player-row__avatar.participant-logo--placeholder i {
        font-size: 16px !important;
    }

    .teams-players-grid ul.team-list.tv-roster-list > li.tv-roster-item {
        flex-wrap: unset !important;
        row-gap: 0 !important;
    }
}

@media (max-width: 992px) {
    .teams-players-grid .tournament-view-section.tournament-participants {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .teams-players-grid .tournament-view-section.tournament-selected-teams,
    .teams-players-grid .tournament-view-section.tournament-participants {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .teams-players-grid .participants-list:not(.pending-participants-list) li .participant-actions {
        flex-basis: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        justify-content: flex-end !important;
        order: 10 !important;
    }
}

.tournament-contacts-content + .tournament-view-section {
    margin-top: 10px !important;
}

