.tr-main {
    flex: 1;
    padding: 34px 18px 45px
}

.tr-container {
    max-width: 1200px;
    margin: auto
}

.tr-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px
}

.tr-heading {
    display: flex;
    align-items: center;
    gap: 20px
}

.tr-logo {
    width: 76px;
    height: 76px;
    object-fit: contain
}

.tr-hero h1 {
    font-size: clamp(22px, 3.2vw, 34px);
    line-height: 1.2;
    color: #203e2b;
    margin: 0
}

.tr-subtitle {
    font-size: 13px;
    color: #718072;
    margin: 9px 0 0
}

.tr-back {
    background: #fff;
    border: 1px solid #dfe8df;
    color: #345640;
    border-radius: 12px;
    padding: 12px 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap
}

.tr-back i {
    margin-right: 6px
}

.tr-tab.active {
    background: #e4f4e9;
    color: #176d3c
}

.tr-games {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px
}

th {
    text-align: left;
    background: #f4f8f5;
    font-size: 10px;
    letter-spacing: .5px;
    color: #758878
}

td,
th {
    padding: 15px;
    border-bottom: 1px solid #edf1ed
}

td {
    color: #354b3a
}

.tr-lives {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px
}

.tr-update {
    text-align: right;
    font-size: 11px;
    color: #839085;
    padding: 14px 4px
}

.tr-empty,
.tr-empty-inline {
    text-align: center;
    padding: 65px 20px;
    background: #fff;
    border: 1px solid #e0e9e1;
    border-radius: 18px;
    color: #738576
}

.tr-empty i {
    font-size: 35px;
    color: #6e9c7b
}

.tr-empty h2 {
    color: #34553d
}

@media(max-width:900px) {
    .tr-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .tr-lives {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:650px) {
    .tr-main {
        padding: 20px 11px 28px
    }

    .tr-hero {
        align-items: flex-start
    }

    .tr-heading {
        gap: 11px
    }

    .tr-logo {
        width: 52px;
        height: 52px
    }

    .tr-hero h1 {
        font-size: 21px
    }

    .tr-back {
        padding: 9px;
        font-size: 11px
    }

    .tr-summary {
        gap: 8px
    }

    .tr-summary-card {
        padding: 13px;
        gap: 7px
    }

    .tr-summary-card>strong {
        font-size: 18px
    }

    .tr-summary-card>span {
        font-size: 9px
    }

    .tr-clock>strong {
        font-size: 12px
    }

    .tr-tabs {
        padding: 10px;
        gap: 4px
    }

    .tr-tab {
        flex: 1;
        padding: 12px 6px;
        font-size: 11px
    }

    .tr-tab i {
        margin-right: 4px
    }

    .tr-view {
        padding: 14px
    }

    .tr-controls {
        align-items: stretch;
        flex-direction: column
    }

    .tr-controls select {
        width: 100%
    }

    .tr-games,
    .tr-lives {
        grid-template-columns: 1fr
    }

    .tr-score {
        font-size: 9px
    }

    .tr-update {
        text-align: center
    }
}

/* Tempo real v2: navegação por seções e aproveitamento integral da largura */
[hidden] {
    display: none !important
}

.tr-container {
    max-width: 1560px !important
}

.tp-home {
    text-align: center;
    padding: 20px 0 38px
}

.tp-home h2 {
    font-weight: 850;
    color: #fff
}

.tp-home>p {
    color: #b8c5d4
}

.tp-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    max-width: 1050px;
    margin: 28px auto
}

.tp-home-card {
    position: relative;
    min-height: 205px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 18px;
    background: linear-gradient(140deg, #102f49, #0b1728);
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s
}

.tp-home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px #0006
}

.tp-home-card>i:first-child {
    font-size: 32px
}

.tp-home-card strong {
    font-size: 22px;
    letter-spacing: .3px
}

.tp-home-card span {
    color: #d4e2ef
}

.tp-home-card .tp-arrow {
    position: absolute;
    right: 25px;
    bottom: 25px
}

.tp-games-card {
    background: linear-gradient(130deg, #0878c7, #083c73)
}

.tp-ranking-card {
    background: linear-gradient(130deg, #997015, #58401c)
}

.tp-lives-card {
    background: linear-gradient(130deg, #a83d52, #5c2038)
}

.tp-detail {
    width: 100%
}

.tp-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 8px 0 20px
}

.tp-toolbar>strong {
    font-size: 16px;
    color: #fff
}

.tp-toolbar-links {
    margin-left: auto;
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.tp-btn {
    background: #1c2938;
    border: 1px solid #405268;
    color: #fff;
    border-radius: 10px;
    padding: 11px 15px;
    font-weight: 700;
    cursor: pointer
}

.tp-btn:hover {
    background: #30465f
}

.tp-btn:disabled {
    opacity: .35;
    cursor: not-allowed
}

.tp-btn-ranking {
    background: #98711a;
    border-color: #ad842a
}

.tp-btn-games {
    background: #0d70a7;
    border-color: #1687c2
}

.tp-btn-lives {
    background: #8b314b;
    border-color: #a84160
}

.tp-btn-select {
    background: #048acb;
    border-color: #13a6e6
}

.tp-section {
    width: 100%
}

.tp-round-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    background: #142235;
    border: 1px solid #2c435d;
    padding: 20px;
    border-radius: 16px
}

.tp-round-head small {
    color: #93b1d0;
    font-weight: 700
}

.tp-round-head h2 {
    color: #fff;
    margin: 5px 0;
    font-size: clamp(19px, 2.5vw, 28px)
}

.tp-round-head p {
    color: #a9bacb;
    margin: 0
}

.tp-round-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 14px 0;
    color: #b9c9dc
}

.tp-clocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
    margin: 8px 0 16px
}

.tp-clock {
    background: linear-gradient(130deg, #0d3850, #12273c);
    border: 1px solid #1c779a;
    border-radius: 13px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px
}

.tp-clock div {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.tp-clock small {
    font-weight: 800;
    color: #c5e7fa
}

.tp-clock span {
    font-size: 12px;
    color: #95b8c9
}

.tp-clock strong {
    font-size: clamp(24px, 3vw, 39px);
    font-variant-numeric: tabular-nums;
    color: #fff
}

.tp-counter {
    color: #b3c5d6;
    font-size: 13px;
    margin: 12px 0
}

.tp-games {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 12px
}

.tp-game {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 18px #0002;
    color: #203046
}

.tp-game-top {
    background: #edf3f8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 15px;
    font-weight: 850;
    font-size: 13px
}

.tp-status {
    font-size: 11px;
    border-radius: 99px;
    padding: 5px 9px
}

.tp-status.done {
    background: #d6f5df;
    color: #16733b
}

.tp-status.pending {
    background: #dce9f9;
    color: #2866a3
}

.tp-game-teams {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 9px
}

.tp-versus {
    text-align: center;
    font-size: 11px;
    color: #93a3b5;
    font-weight: 850
}

.tp-wo {
    font-size: 12px;
    color: #a14a16;
    padding: 0 15px 12px
}

.tp-select-wrap {
    display: flex;
    flex-direction: column;
    color: #b9cadd;
    font-size: 11px;
    font-weight: 800;
    gap: 6px
}

.tp-select-wrap select {
    min-width: 190px;
    background: #eaf0f6;
    border: 0;
    border-radius: 9px;
    padding: 12px;
    color: #142a40
}

.tp-ranking-row,
.tp-life-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    background: #fff;
    color: #26374c;
    border-radius: 12px;
    margin-bottom: 8px
}

.tp-ranking-row strong,
.tp-life-row strong {
    flex: 1
}

.tp-position {
    min-width: 42px;
    font-weight: 900;
    color: #0b7ec0;
    font-size: 18px
}

.tp-points,
.tp-life-row small {
    color: #64748b;
    font-size: 12px
}

.tp-life-count {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border-radius: 11px;
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    background: #279b56
}

.tp-life-count.one {
    background: #df9b1e
}

.tp-life-count.zero {
    background: #c43e4d
}

.tp-muted {
    padding: 28px;
    text-align: center;
    background: #ffffff12;
    color: #d5e2f0;
    border-radius: 12px
}

.tp-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #000b;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px
}

.tp-modal-open {
    overflow: hidden
}

.tp-modal-box {
    width: min(100%, 510px);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border-radius: 13px;
    overflow: hidden;
    background: #f5f6f7;
    box-shadow: 0 24px 75px #0008
}

.tp-modal-header {
    background: #03a2e7;
    color: white;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    gap: 12px
}

.tp-modal-header h2 {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 850
}

.tp-modal-header p {
    margin: 0;
    font-size: 13px
}

.tp-close {
    background: white;
    color: #23384c;
    border: 0;
    border-radius: 6px;
    width: 34px;
    height: 34px;
    cursor: pointer
}

.tp-modal-content {
    overflow: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 7px
}

.tp-round-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 12px;
    padding: 18px 20px;
    border: 2px solid transparent;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    color: #33465d
}

.tp-round-option.selected {
    border-color: #03a2e7;
    background: #eaf8ff
}

.tp-round-option strong {
    display: block;
    font-size: 14px
}

.tp-round-option small {
    display: block;
    color: #97a6b7;
    margin-top: 6px
}

.tp-round-option>i {
    color: #21aa55;
    font-size: 22px
}

.tp-round-option.selected>i {
    color: #039bdc
}

@media(max-width:640px) {
    .tp-home-grid {
        grid-template-columns: 1fr
    }

    .tp-home-card {
        min-height: 145px
    }

    .tp-toolbar {
        align-items: stretch
    }

    .tp-toolbar-links {
        width: 100%;
        margin: 0
    }

    .tp-toolbar-links .tp-btn {
        flex: 1
    }

    .tp-round-head {
        padding: 15px
    }

    .tp-btn-select {
        width: 100%
    }

    .tp-games {
        grid-template-columns: 1fr
    }

    .tp-round-nav {
        gap: 8px
    }

    .tp-round-nav .tp-btn {
        padding: 10px
    }

    .tp-clock {
        flex-direction: column;
        text-align: center
    }

    .tp-points {
        display: none
    }
}

/* Tempo Real v3 — acabamento visual e leitura */
.tp-home h2 {
    color: #233d2d !important
}

.tp-home>p {
    color: #667a6d !important
}

.tp-toolbar>strong {
    color: #263d30 !important;
    font-size: 17px
}

.tp-btn-back {
    background: #fff;
    color: #355243;
    border: 1px solid #d8e5dc;
    box-shadow: none;
    border-radius: 12px
}

.tp-btn-back:hover {
    background: #f0f7f2;
    color: #1f603d
}

.tp-round-head {
    background: #f8fbf9;
    border: 1px solid #dce9df;
    box-shadow: 0 4px 18px #132c1c0c;
    padding: 17px 20px;
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(170px, auto) auto;
    gap: 18px
}

.tp-round-head small {
    color: #648073
}

.tp-round-head h2 {
    color: #243f31
}

.tp-round-head p {
    color: #75897b
}

.tp-round-title {
    min-width: 0
}

.tp-clocks {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    margin: 0;
    flex-wrap: wrap
}

.tp-clock {
    background: #fff;
    border: 1px solid #d8e6e0;
    border-radius: 12px;
    padding: 9px 12px;
    gap: 10px;
    box-shadow: none;
    min-width: 170px
}

.tp-clock small {
    color: #486a58;
    font-size: 10px
}

.tp-clock span {
    color: #788d80;
    font-size: 10px
}

.tp-clock strong {
    color: #1d6c4a;
    font-size: clamp(19px, 2vw, 27px)
}

.tp-btn-select {
    background: #eef8ff;
    color: #0879b5;
    border: 1px solid #b9dff4
}

.tp-btn-select:hover {
    background: #dff1fc;
    color: #086a9d
}

.tp-class-buttons {
    display: flex;
    gap: 9px;
    flex-wrap: wrap
}

.tp-class-btn {
    background: #fff;
    color: #45604d;
    border: 1px solid #d8e6dc
}

.tp-class-btn.active {
    background: #1d7d4d;
    color: #fff;
    border-color: #1d7d4d
}

.tp-ranking-info {
    flex: 1;
    min-width: 0
}

.tp-ranking-info>strong {
    display: block;
    color: #253c30
}

.tp-criteria {
    display: flex;
    gap: 6px 12px;
    flex-wrap: wrap;
    margin-top: 8px;
    color: #6d7d72;
    font-size: 11px
}

.tp-criteria b {
    color: #263d30
}

.tp-tiebreak {
    color: #b47719 !important
}

.tr-update {
    text-align: center !important;
    color: #61786b
}

.tr-update .fa-spin {
    color: #1d9156;
    margin-right: 6px
}

@media(max-width:960px) {
    .tp-round-head {
        grid-template-columns: 1fr 1fr
    }

    .tp-round-title {
        grid-column: 1
    }

    .tp-clocks {
        grid-column: 2;
        justify-content: flex-end
    }

    .tp-round-head>.tp-btn-select {
        grid-column: 1/-1
    }
}

@media(max-width:640px) {
    .tp-round-head {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        text-align: center
    }

    .tp-clocks {
        justify-content: center;
        width: 100%
    }

    .tp-clock {
        flex: 1;
        min-width: 0;
        flex-direction: row;
        text-align: left
    }

    .tp-clock strong {
        font-size: 21px
    }

    .tp-class-buttons {
        width: 100%
    }

    .tp-class-btn {
        flex: 1
    }

    .tp-ranking-row {
        align-items: flex-start
    }

    .tp-criteria {
        gap: 5px 9px
    }
}

/* Tempo Real v4: nomes legíveis, navegação coerente e faixas oficiais */
.tr-back:hover,
.tr-back:focus-visible {
    background: #f0f7f2 !important;
    color: #1f603d !important;
    border-color: #b8d8c4 !important;
    box-shadow: 0 4px 14px #1c60301a;
    transform: translateY(-1px)
}

.tp-btn-games:hover,
.tp-btn-games:focus-visible {
    background: #0b85c7 !important;
    border-color: #1687c2 !important;
    color: #fff !important
}

.tp-btn-ranking:hover,
.tp-btn-ranking:focus-visible {
    background: #b18a28 !important;
    border-color: #ad842a !important;
    color: #fff !important
}

.tp-btn-lives:hover,
.tp-btn-lives:focus-visible {
    background: #a84160 !important;
    border-color: #a84160 !important;
    color: #fff !important
}

.tp-class-btn:hover,
.tp-class-btn:focus-visible {
    background: #e5f3e9 !important;
    border-color: #8bc9a0 !important;
    color: #205d3b !important
}

.tp-class-btn.active:hover,
.tp-class-btn.active:focus-visible {
    background: #24955e !important;
    border-color: #24955e !important;
    color: #fff !important
}

.tp-ranking-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin: 4px 0 15px
}

.tp-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    border: 1px solid #e2e8e4;
    border-radius: 100px;
    padding: 8px 12px;
    color: #34483d;
    font-size: 11px;
    font-weight: 800
}

.tp-legend-item i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--faixa)
}

.tp-faixa-direto {
    --faixa: #e5a32c
}

.tp-faixa-principal {
    --faixa: #28a75a
}

.tp-faixa-repescagem {
    --faixa: #218bd0
}

.tp-faixa-eliminado {
    --faixa: #dc4654
}

.tp-ranking-row {
    border-left: 5px solid var(--faixa, #d9e2dd)
}

.tp-ranking-row .tp-position {
    color: var(--faixa, #0b7ec0)
}

@media(max-width:640px) {

    .tp-ranking-row,
    .tp-life-row {
        gap: 10px;
        padding: 12px
    }


}

/* Tempo Real v5 */
.tp-round-head {
    margin-bottom: 16px
}

#sec-jogos .tp-round-head {
    grid-template-columns: minmax(180px, 1fr) minmax(290px, 1.3fr) auto
}

.tp-round-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    justify-content: center
}

.tp-search {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    border: 1px solid #cdded5;
    border-radius: 10px;
    padding: 0 12px;
    color: #5d8270;
    min-height: 43px;
    flex: 1;
    min-width: 190px
}

.tp-search:focus-within {
    border-color: #1c995c;
    box-shadow: 0 0 0 3px #1c995c1c
}

.tp-search input {
    background: transparent;
    border: 0;
    outline: 0;
    min-width: 0;
    width: 100%;
    font: inherit;
    font-size: 13px;
    color: #263d30
}

.tp-search input::placeholder {
    color: #81948a
}

#sec-jogos .tp-clocks {
    justify-content: flex-end
}

#legendaClassificacao .tp-ranking-legend {
    margin: 2px 0 18px
}

.tp-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 13px
}

.tp-result-row {
    background: #fff;
    border: 1px solid #e0e9e1;
    border-radius: 15px;
    padding: 19px;
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0
}

.tp-result-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 85px;
    color: #46576a
}

.tp-result-place i {
    font-size: 25px
}

.tp-result-place strong {
    font-size: 24px
}

.tp-result-place small {
    font-size: 9px;
    font-weight: 800
}

.tp-champion {
    border-color: #e7c15b;
    background: #fffdf5
}

.tp-champion .tp-result-place {
    color: #a47a0d
}

.tp-runnerup {
    border-color: #c9d5df
}

.tp-runnerup .tp-result-place {
    color: #718096
}

.tp-result-card {
    background: linear-gradient(130deg, #b0801b, #705019)
}

.tp-btn-result {
    background: #9c771d;
    border-color: #b08a30
}

.tp-btn-result:hover {
    background: #b38c28 !important;
    color: #fff !important
}

@media(max-width:1050px) {
    #sec-jogos .tp-round-head {
        grid-template-columns: 1fr 1fr
    }

    #sec-jogos .tp-round-title {
        grid-column: 1
    }

    #sec-jogos .tp-round-tools {
        grid-column: 1/-1;
        grid-row: 2
    }

    #sec-jogos .tp-clocks {
        grid-column: 2;
        grid-row: 1
    }
}

@media(max-width:640px) {
    #sec-jogos .tp-round-head {
        display: flex;
        flex-direction: column
    }

    #sec-jogos .tp-round-tools {
        width: 100%;
        flex-direction: column
    }

    #sec-jogos .tp-clocks {
        width: 100%;
        justify-content: center
    }

    .tp-search {
        width: 100%;
        min-height: 44px
    }

    .tp-results {
        grid-template-columns: 1fr
    }
}

/* Tempo Real v6: identidade verde do Resultado */
.tp-result-card {
    background: linear-gradient(130deg, #169553, #08633d)
}

.tp-result-card:hover,
.tp-result-card:focus-visible {
    background: linear-gradient(130deg, #1bae63, #08784a);
    color: #fff
}

.tp-btn-result {
    background: #13894e;
    border-color: #169c59;
    color: #fff
}

.tp-btn-result:hover,
.tp-btn-result:focus-visible {
    background: #1ba864 !important;
    border-color: #1ba864 !important;
    color: #fff !important
}

/* Tempo Real v7 — destaque de pódio e cabeçalho centralizado no celular */
.tp-results {
    align-items: stretch
}

.tp-result-row {
    position: relative;
    isolation: isolate;
    transition: box-shadow .2s ease, transform .2s ease
}

.tp-champion {
    background: linear-gradient(120deg, #fff5cc 0%, #fffdf2 45%, #f8e2a0 100%);
    border: 2px solid #d5a22c;
    box-shadow: 0 8px 24px rgba(171, 121, 16, .22);
    padding: 23px 20px
}

.tp-champion::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 18%, rgba(255, 255, 255, .6) 45%, transparent 68%);
    opacity: .65;
    z-index: -1
}

.tp-champion .tp-result-place {
    color: #956309
}

.tp-champion .tp-result-place i {
    color: #bf8a08;
    font-size: 36px;
    filter: drop-shadow(0 2px 2px rgba(122, 83, 0, .2))
}

.tp-champion .tp-result-place strong {
    font-size: 30px;
    color: #865908
}

.tp-champion .tp-result-place small {
    color: #946608;
    letter-spacing: .7px
}

.tp-runnerup {
    background: linear-gradient(120deg, #edf1f5 0%, #fff 45%, #dce4eb 100%);
    border: 2px solid #aebdc9;
    box-shadow: 0 6px 18px rgba(90, 110, 130, .15);
    padding: 21px 20px
}

.tp-runnerup .tp-result-place {
    color: #687d90
}

.tp-runnerup .tp-result-place i {
    color: #8296a8;
    font-size: 30px;
    filter: drop-shadow(0 2px 2px rgba(65, 85, 100, .15))
}

.tp-runnerup .tp-result-place strong {
    font-size: 27px;
    color: #52677a
}

@media(max-width:650px) {
    .tr-hero {
        flex-direction: column;
        align-items: stretch;
        gap: 14px
    }

    .tr-heading {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        text-align: center;
        width: 100%
    }

    .tr-heading>div {
        text-align: center;
        width: 100%;
        min-width: 0
    }

    .tr-logo {
        width: 72px;
        height: 72px;
        flex-shrink: 0
    }

    .tr-kicker {
        text-align: center;
        margin: 0 0 9px
    }

    .tr-hero h1 {
        text-align: center;
        font-size: clamp(21px, 5.7vw, 27px);
        overflow-wrap: anywhere
    }

    .tr-subtitle {
        text-align: center;
        margin: 9px auto 0;
        max-width: 300px;
        line-height: 1.45
    }

    .tr-hero>.tr-back {
        align-self: center
    }

    .tp-result-row {
        gap: 12px;
        padding: 15px 12px
    }

    .tp-champion {
        padding: 19px 13px
    }

    .tp-runnerup {
        padding: 17px 13px
    }

    .tp-result-place {
        min-width: 72px
    }
}

/* Tempo Real v8 — ações do cabeçalho, títulos e status suaves dos jogos */
.tp-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    flex-wrap: wrap
}

.tp-hero-actions .tr-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    white-space: nowrap
}

.tp-hero-back {
    font: inherit;
    cursor: pointer
}

.tp-toolbar {
    justify-content: space-between
}

.tp-section-heading {
    font-size: clamp(21px, 2.6vw, 29px) !important;
    font-weight: 900;
    letter-spacing: .35px;
    line-height: 1.2
}

.tp-heading-jogos {
    color: #0d83bd !important
}

.tp-heading-classificacao {
    color: #bb8c1c !important
}

.tp-heading-vidas {
    color: #9e3457 !important
}

.tp-heading-resultado {
    color: #168a51 !important
}

.tp-game-open .tp-game-top {
    background: #eaf5fc;
    color: #27678b;
    border-bottom: 1px solid #d9edf9
}

.tp-game-finished .tp-game-top {
    background: #e9f7ee;
    color: #28774b;
    border-bottom: 1px solid #d6efdf
}

@media(max-width:650px) {
    .tp-hero-actions {
        justify-content: center;
        width: 100%
    }

    .tp-toolbar {
        justify-content: center;
        text-align: center
    }

    .tp-section-heading {
        width: 100%;
        text-align: center
    }

    .tp-toolbar-links {
        justify-content: center
    }
}

/* v9: navegação centralizada sem título duplicado */
.tp-toolbar {
    justify-content: center !important
}

.tp-toolbar-links {
    margin-left: 0 !important;
    justify-content: center;
    width: 100%
}

@media(max-width:650px) {
    .tr-hero {
        display: flex;
        flex-direction: column
    }

    .tp-hero-actions {
        order: -1;
        align-self: stretch;
        width: 100%;
        justify-content: center;
        margin-bottom: 4px
    }

    .tr-heading {
        order: 0
    }
}

/* Mensagens de conteúdo indisponível */

.tp-empty-message {
    display: block;
    width: 100%;
    max-width: none;
    margin: 25px 0;
    padding: 15px 10px;
    box-sizing: border-box;

    text-align: center;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    color: #253c30 !important;

    background: transparent !important;
    border: none !important;
    border-radius: 0;
    box-shadow: none !important;
}

/* Centralização em todas as seções */

#listaJogos:has(.tp-empty-message),
#listaClassificacao:has(.tp-empty-message),
#listaVidas:has(.tp-empty-message) {
    display: block !important;
    width: 100%;
}

/* Ajustes mobile */

@media (max-width: 650px) {
    .tp-empty-message {
        font-size: 16px;
        margin: 20px 0;
        padding: 12px 8px;
    }
}

/* Oculta os controles de rodadas quando não há opções de navegação. */
#sec-jogos .tp-round-nav[hidden],
#sec-jogos .tp-round-tools[hidden],
#sec-jogos .tp-search[hidden],
#sec-jogos #abrirRodadas[hidden] {
    display: none !important;
}

/* Nome da etapa abaixo do título principal */

.tr-event-etapa {
    margin-top: 5px;
    color: #526e5b;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

@media (max-width: 650px) {
    .tr-event-etapa {
        margin-top: 4px;
        font-size: 13px;
        text-align: center;
    }
}

/* Ajuste dos cronômetros no mobile */

@media (max-width: 650px) {

    .tp-clocks {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px;
        width: 100%;
    }

    .tp-clock {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 12px;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 12px 14px;
    }

    .tp-clock>div {
        flex: 1 1 auto;
        min-width: 0;
    }

    .tp-clock small {
        font-size: 11px;
        line-height: 1.3;
    }

    .tp-clock span {
        font-size: 10px;
    }

    .tp-clock>strong {
        flex: 0 0 auto;
        font-size: clamp(21px, 6vw, 29px);
        font-weight: 800;
        line-height: 1.2;
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }
}

/* ============================================================
   TRUCO GAÚCHO | TEMPO REAL DARK
   Carregado após entrada.css: sobrescreve apenas cores/superfícies.
   ============================================================ */
.tr-main {
    color: #f4f6f9
}

.tr-hero h1 {
    color: #fff
}

.tr-event-etapa,
.tr-subtitle {
    color: #b9c8d5
}

.tr-back {
    background: #343a40;
    border-color: #596673;
    color: #eef4fa
}

.tr-back:hover,
.tr-back:focus-visible {
    background: #45515d !important;
    border-color: #7a8997 !important;
    color: #fff !important
}

.tr-tab.active {
    background: #214e3c;
    color: #81e5a9
}

.tr-game,
.tp-game {
    background: #3b434b;
    border-color: #57616d;
    color: #f2f5f8;
    box-shadow: 0 5px 16px #0003
}

.tr-game-top,
.tp-game-top {
    background: #2c353e;
    border-color: #54606c;
    color: #d3e1ec
}

.tp-game-open .tp-game-top {
    background: #233e52;
    color: #91d6ff;
    border-color: #375d78
}

.tp-game-finished .tp-game-top {
    background: #234737;
    color: #9ee5ba;
    border-color: #386d51
}

.tr-empty,
.tr-empty-inline {
    background: #343a40;
    border-color: #56616b;
    color: #c2cdd6
}

.tr-empty h2 {
    color: #fff
}

.tr-update {
    color: #b5c4cf !important
}

.tp-empty-message {
    color: #e4edf4 !important
}

.tp-round-head {
    background: #303b46;
    border-color: #536372
}

.tp-clock {
    background: linear-gradient(130deg, #183b51, #23323f);
    border-color: #39799c
}

.tp-search {
    background: #303943;
    border-color: #586977
}

.tp-search input {
    color: #f3f7fa;
    background: transparent
}

.tp-search input::placeholder {
    color: #9daebc
}

.tp-ranking-row,
.tp-result-row,
.tp-result-card,
.tr-life {
    background: #3c444c;
    border-color: #586470;
    color: #f1f5f8
}

.tp-ranking-row .tp-position {
    color: #fff
}

.tp-result-place strong {
    color: #fff
}

.tp-result-place small {
    color: #c2cfda
}

.tp-class-btn {
    background: #303a43;
    border-color: #566574;
    color: #dfe9f1
}

.tp-class-btn:hover,
.tp-class-btn:focus-visible {
    background: #43535f !important;
    border-color: #7e9aae !important;
    color: #fff !important
}

.tp-class-btn.active {
    background: #23824f;
    color: #fff
}

.tp-class-btn.active:hover,
.tp-class-btn.active:focus-visible {
    background: #24955e !important;
    color: #fff !important
}

/* Ajustes de legibilidade e contraste - Tempo Real */
.tp-home h2 {
    color: #fff !important
}

.tp-home>p {
    color: #d2dce5 !important
}

.tr-back,
.tp-hero-back {
    background: #f8fafc !important;
    border: 1px solid #dbe5ee !important;
    color: #223449 !important;
    box-shadow: 0 3px 12px #0002
}

.tr-back:hover,
.tr-back:focus-visible,
.tp-hero-back:hover {
    background: #fff !important;
    border-color: #9dc7e8 !important;
    color: #0868a7 !important
}

.tp-btn-result {
    background: linear-gradient(135deg, #19a75d, #087a43) !important;
    border-color: #2dc577 !important;
    color: #fff !important
}

.tp-btn-result:hover,
.tp-btn-result:focus-visible {
    background: linear-gradient(135deg, #2ac879, #0b9553) !important;
    border-color: #60dfa0 !important;
    color: #fff !important
}

.tp-result-card {
    background: linear-gradient(135deg, #189c58, #086b40) !important;
    color: #fff !important
}

.tp-result-card:hover {
    background: linear-gradient(135deg, #24ba6c, #087e49) !important
}

.tp-round-head {
    background: #303943 !important;
    border: 1px solid #586c7c !important
}

.tp-round-head small {
    color: #a8d3e9 !important
}

.tp-round-head h2 {
    color: #f8fbff !important;
    text-shadow: none !important
}

.tp-round-head p {
    color: #b7cbdc !important
}

#nomeRodada,
#nomeClassificacao {
    color: #f7fbff !important
}

.tp-counter,
.tp-round-nav,
#posicaoRodada {
    color: #cddae5 !important
}

.tp-game {
    background: #303b46 !important;
    border: 1px solid #617181 !important;
    box-shadow: 0 7px 20px #0004 !important;
    color: #fff !important
}

.tp-game-top {
    background: #233c50 !important;
    color: #cce9ff !important;
    border-bottom: 1px solid #526a7e !important
}

.tp-game-finished .tp-game-top {
    background: #1e5542 !important;
    color: #a5f5ca !important;
    border-bottom-color: #3b8b69 !important
}

.tp-game-open .tp-game-top {
    background: #174b70 !important;
    color: #b4e4ff !important;
    border-bottom-color: #3986b3 !important
}

.tp-game-teams {
    background: #343f4a !important
}

.tp-game .tp-versus {
    color: #bed2e1 !important
}

.tp-game .tp-wo {
    color: #ffd18c !important
}

.tp-ranking-row,
.tp-life-row {
    background: #34414d !important;
    border: 1px solid #586b7b !important;
    color: #f4f8fc !important;
    box-shadow: 0 3px 12px #0002
}

.tp-ranking-row strong,
.tp-life-row strong,
.tp-ranking-info {
    color: #f2f7fc !important
}

.tp-ranking-row .tp-position {
    color: #69caff !important
}

.tp-points,
.tp-life-row small {
    color: #bdcddd !important
}

.tp-ranking-legend,
.tp-legend-item {
    color: #e6eff8 !important
}

.tp-legend-item {
    background: #34414d !important;
    border-color: #5a6b7b !important
}

.tp-class-btn {
    background: #303f4c !important;
    color: #eef5fc !important;
    border-color: #607385 !important
}

.tp-class-btn.active {
    background: #167bb4 !important;
    border-color: #2fa2e3 !important;
    color: #fff !important
}

.tp-select-wrap,
.tp-select-wrap select {
    color: #e7f2fb !important
}

.tp-select-wrap select {
    background: #303f4c !important;
    border: 1px solid #607385 !important
}

.tp-life-count {
    color: #fff !important
}

.tp-result-row {
    background: #34414d !important;
    border: 1px solid #607385 !important;
    color: #fff !important
}

.tp-result-place,
.tp-result-place strong {
    color: #fff !important
}

.tp-result-place small {
    color: #d0dfeb !important
}

.tp-modal-box {
    background: #343e48 !important;
    color: #f4f8fc !important
}

.tp-modal-content {
    background: #343e48 !important
}

.tp-round-option {
    background: #3d4b58 !important;
    color: #f2f8fc !important;
    border-color: #627687 !important
}

.tp-round-option:hover {
    background: #4b5d6d !important;
    color: #fff !important
}

.tr-update {
    color: #c4d5e3 !important
}

@media(max-width:650px) {
    .tp-games {
        grid-template-columns: minmax(0, 1fr) !important
    }

    .tp-game-teams {
        padding: 13px !important
    }

    .tp-round-head {
        padding: 16px !important
    }
}


/* RODAPÉ - SEM FAIXA DE FUNDO */
.rodape {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #aeb8c2 !important;
    padding: 16px 20px;
    text-align: center;
    line-height: 1.6;
}

/* ==========================================================
   TEMPO REAL - ACABAMENTO DARK CONSOLIDADO
   As cores das faixas vêm das variáveis CSS definidas no PHP.
   ========================================================== */

/* Relógios claros */
.tp-clocks .tp-clock {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 14px #0002 !important;
}

.tp-clocks .tp-clock strong {
    color: #172b41 !important;
    text-shadow: none !important;
}

.tp-clocks .tp-clock small {
    color: #243c53 !important;
}

.tp-clocks .tp-clock span {
    color: #51677b !important;
}


.tp-game {
    background: #303b46 !important;
    border: 1px solid #607588 !important;
    box-shadow: 0 7px 18px #0003 !important;
}

.tp-game-teams {
    background: #34414d !important;
    padding: 15px !important;
}

.tp-game .tp-versus {
    color: #d1e3f4 !important;
}

.tp-game .tp-wo {
    color: #ffd18c !important;
}

/* Classificação: variáveis --tp-cor-* fornecidas pelo PHP */
.tp-faixa-direto {
    --faixa: var(--tp-cor-direto, #e5a32c);
}

.tp-faixa-principal {
    --faixa: var(--tp-cor-principal, #28a75a);
}

.tp-faixa-repescagem {
    --faixa: var(--tp-cor-repescagem, #218bd0);
}

.tp-faixa-eliminado {
    --faixa: var(--tp-cor-eliminado, #dc4654);
}

.tp-ranking-row {
    background: #34414d !important;
    border: 1px solid #607385 !important;
    border-left: 5px solid var(--faixa, #8ca2b4) !important;
    color: #f2f7fc !important;
}

.tp-ranking-row .tp-position {
    color: var(--faixa, #d5e2ee) !important;
    font-weight: 900;
}

.tp-ranking-row .tp-criteria,
.tp-ranking-row .tp-criteria *,
.tp-ranking-row .tp-criteria b {
    color: var(--faixa, #d5e2ee) !important;
    font-weight: 800 !important;
}

.tp-ranking-row .tp-ranking-info {
    color: #f2f7fc !important;
}

.tp-ranking-legend .tp-legend-item {
    background: #34414d !important;
    border-color: #607385 !important;
    color: #f2f7fc !important;
}

.tp-ranking-legend .tp-legend-item i {
    background: var(--faixa, #8ca2b4) !important;
}

.tp-class-buttons .tp-class-btn,
.tp-class-buttons .tp-class-btn.active {
    background: #f8fafc !important;
    border: 1px solid #d7e3ed !important;
    color: #1c344a !important;
    box-shadow: 0 2px 8px #0002 !important;
}

.tp-class-buttons .tp-class-btn:hover,
.tp-class-buttons .tp-class-btn.active:hover {
    background: #e3f3ff !important;
    color: #096fa9 !important;
    border-color: #92c8eb !important;
}


.tp-life-row {
    background: #34414d !important;
    border: 1px solid #607385 !important;
    color: #f2f7fc !important;
}

.tp-life-row small {
    color: #c7d7e6 !important;
}

.tp-life-count {
    color: #fff !important;
    flex-shrink: 0;
}

/* Resultado: pódio integralmente dourado e prateado */
.tp-results .tp-result-row {
    background: #34414d !important;
    border: 1px solid #607385 !important;
    color: #f5f9fd !important;
}

.tp-results .tp-result-row.tp-champion {
    background: linear-gradient(130deg, #fff6cc 0%, #f4d16a 55%, #d9a72f 100%) !important;
    border: 2px solid #e5b83f !important;
    box-shadow: 0 8px 26px #b9871940 !important;
    color: #46320b !important;
}

.tp-results .tp-result-row.tp-runnerup {
    background: linear-gradient(130deg, #f8fafc 0%, #dce4eb 55%, #aebdca 100%) !important;
    border: 2px solid #b8c6d2 !important;
    box-shadow: 0 8px 24px #7891a52f !important;
    color: #263746 !important;
}

.tp-results .tp-champion .tp-result-place,
.tp-results .tp-champion .tp-result-place * {
    color: #805507 !important;
}

.tp-results .tp-runnerup .tp-result-place,
.tp-results .tp-runnerup .tp-result-place * {
    color: #526779 !important;
}

@media(max-width:650px) {
    .tp-games {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .tp-game-teams {
        padding: 13px !important;
    }

    .tp-ranking-row,
    .tp-life-row {
        gap: 10px;
        padding: 12px;
    }

    .tp-results {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* Todas as equipes com texto branco,
   independentemente do resultado */


/* Placar normal */


/* Apenas o placar do vencedor fica verde */


/* ============================================================
   JOGOS - RESTAURAR LAYOUT E PLACARES
   Sem modificar cores ou estilos internos do TimeFormatado().
   ============================================================ */
.tp-game .tp-team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 32px;
    min-width: 0;
}

.tp-game .tp-team>span {
    min-width: 0;
    flex: 1 1 auto;
    overflow-wrap: anywhere;
}

.tp-game .tp-team>strong {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 36px;
    padding: 3px 10px;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    border-radius: 8px;
    background: #f1f5f9 !important;
    color: #172b40 !important;
    border: 1px solid #d5e0ea !important;
}

.tp-game .tp-team.winner>strong {
    background: #d5fae2 !important;
    color: #08743d !important;
    border-color: #a6eac0 !important;
}


/* =====================================================
   RESULTADO FINAL - CAMPEÃO E VICE-CAMPEÃO
   Correção de contraste dos textos
   ===================================================== */

/* Campeão - dourado */
.tp-results .tp-result-row.tp-champion {
    background: linear-gradient(135deg,
            #FFF0B0 0%,
            #F6D46B 55%,
            #E6B83F 100%) !important;
    border: 2px solid #D5A52A !important;
    color: #493306 !important;
}

/* Vice-campeão - prateado */
.tp-results .tp-result-row.tp-runnerup {
    background: linear-gradient(135deg,
            #F4F7FA 0%,
            #DEE6ED 55%,
            #BFCBD6 100%) !important;
    border: 2px solid #A8B7C5 !important;
    color: #263849 !important;
}

/* Textos internos do campeão */
.tp-results .tp-result-row.tp-champion .tp-formatted-team,
.tp-results .tp-result-row.tp-champion .tp-formatted-team * {
    color: #493306 !important;
    text-shadow: none !important;
}

/* Textos internos do vice-campeão */
.tp-results .tp-result-row.tp-runnerup .tp-formatted-team,
.tp-results .tp-result-row.tp-runnerup .tp-formatted-team * {
    color: #263849 !important;
    text-shadow: none !important;
}

/* Garante contraste mesmo com cores inline do TimeFormatado */
.tp-results .tp-result-row.tp-champion [style*="color"],
.tp-results .tp-result-row.tp-champion [style*="color"] * {
    color: #493306 !important;
}

.tp-results .tp-result-row.tp-runnerup [style*="color"],
.tp-results .tp-result-row.tp-runnerup [style*="color"] * {
    color: #263849 !important;
}

/* Mantém ícones e posições em destaque */
.tp-results .tp-result-row.tp-champion .tp-result-place,
.tp-results .tp-result-row.tp-champion .tp-result-place * {
    color: #805507 !important;
}

.tp-results .tp-result-row.tp-runnerup .tp-result-place,
.tp-results .tp-result-row.tp-runnerup .tp-result-place * {
    color: #526779 !important;
}


/* =====================================================
   VIDAS - INDICADOR ALINHADO À DIREITA
   ===================================================== */

/* Card de vidas */
.tp-life-row {
    display: flex !important;
    align-items: center !important;
    width: 100%;
    gap: 12px;
}

/* Área das informações da equipe */
.tp-life-row .tp-life-team {
    flex: 1 1 0% !important;
    min-width: 0;
}

/* Indicador de vidas / eliminado */
.tp-life-row .tp-life-status {
    flex: 0 0 auto !important;
    margin-left: auto !important;
    text-align: right !important;
    white-space: nowrap;
}

/* Mantém o alinhamento no mobile */
@media (max-width: 576px) {
    .tp-life-row {
        gap: 8px;
    }

    .tp-life-row .tp-life-status {
        font-size: 11px;
    }
}


/* =====================================================
   TEMPO REAL - CARD DE CHAPÉU
   ===================================================== */

/* Mantém a mesma altura do cabeçalho das mesas */
.tp-game.tp-game-chapeu .tp-game-top {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* O card utiliza toda a altura disponível */
.tp-game.tp-game-chapeu {
    display: flex;
    flex-direction: column;
}

/* Centraliza a equipe no corpo do card */
.tp-game.tp-game-chapeu .tp-game-teams {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Centraliza o bloco da única equipe */
.tp-game.tp-game-chapeu .tp-team {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
}

/* Permite que o TimeFormatado ocupe o espaço central */
.tp-game.tp-game-chapeu .tp-team>span {
    width: 100%;
    text-align: center;
}


/* =====================================================
   TEMPO REAL - CHAPÉU COM CABEÇALHO AMARELO
   ===================================================== */

.tp-game.tp-game-chapeu .tp-game-top {
    background: #E5A91A !important;
    border-bottom: 1px solid #F5C84C !important;
    color: #302200 !important;
}

/* Ícone e título CHAPÉU */
.tp-game.tp-game-chapeu .tp-game-top span,
.tp-game.tp-game-chapeu .tp-game-top i {
    color: #302200 !important;
}


/* =====================================================
   ENTRADA - TEMPO REAL AO VIVO
   ===================================================== */

.acao.acao-tempo-real-ao-vivo {
    background: linear-gradient(135deg, #078FE3, #006CB8) !important;
    border-color: #36B5FF !important;
    color: #FFFFFF !important;
}

.acao.acao-tempo-real-ao-vivo:hover {
    background: linear-gradient(135deg, #0DA6FA, #087DCD) !important;
    border-color: #7CD5FF !important;
    color: #FFFFFF !important;
}

.acao.acao-tempo-real-ao-vivo>i,
.acao.acao-tempo-real-ao-vivo>strong,
.acao.acao-tempo-real-ao-vivo>small,
.acao.acao-tempo-real-ao-vivo .acao-indicador {
    color: #FFFFFF !important;
}

.acao-tempo-real-ao-vivo .status-ao-vivo {
    color: #FFFFFF !important;
    background: #D82338 !important;
    border: 1px solid #FF6677 !important;
    font-weight: 800;
}

.acao-tempo-real-ao-vivo .ponto-ao-vivo {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, .65);
    animation: entradaAoVivo 1.5s infinite;
}

@keyframes entradaAoVivo {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, .65);
        opacity: 1;
    }

    70% {
        box-shadow: 0 0 0 7px rgba(255, 255, 255, 0);
        opacity: .75;
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
        opacity: 1;
    }
}

/* =====================================================
   ENTRADA - TORNEIO FINALIZADO
   ===================================================== */

.acao.acao-tempo-real-finalizado {
    background: linear-gradient(135deg, #205C94, #173D69) !important;
    border-color: #417DAD !important;
    color: #FFFFFF !important;
}

.acao.acao-tempo-real-finalizado:hover {
    background: linear-gradient(135deg, #2B70AA, #205282) !important;
    border-color: #69A9DC !important;
    color: #FFFFFF !important;
}

.acao.acao-tempo-real-finalizado>i,
.acao.acao-tempo-real-finalizado>strong,
.acao.acao-tempo-real-finalizado>small,
.acao.acao-tempo-real-finalizado .acao-indicador {
    color: #FFFFFF !important;
}

.acao-tempo-real-finalizado .status-finalizado {
    background: #B82738 !important;
    border: 1px solid #EF6171 !important;
    color: #FFFFFF !important;
    font-weight: 800;
}

.acao-tempo-real-finalizado .status-finalizado i {
    color: #FFFFFF !important;
    margin-right: 5px;
}

/* Respeita usuários que desativam animações */
@media (prefers-reduced-motion: reduce) {
    .acao-tempo-real-ao-vivo .ponto-ao-vivo {
        animation: none;
    }
}

/* =========================================================
   BACKGROUND SOMENTE NO TOPO - TEMPO REAL
========================================================= */

/* Área principal sem background */
body .tr-main {
    background-image: none !important;
    background-color: #212529;

    padding-top: 0;
}

/* Container ocupa toda a largura */
body .tr-main>.tr-container {
    max-width: 100% !important;
    width: 100%;
}

/* Faixa superior com background */
body .tr-main .tr-hero {
    width: 100%;
    min-height: 130px;

    margin: 0;
    padding: 20px max(18px, calc((100% - 1460px) / 2));

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    background-color: #212529;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Conteúdo abaixo da faixa */
body .tr-main .tp-home,
body .tr-main .tp-detail,
body .tr-main .tr-empty,
body .tr-main .tr-update {
    max-width: 1460px;
    margin-left: auto;
    margin-right: auto;
}

/* Espaçamento dos botões e informações */
body .tr-main .tp-home,
body .tr-main .tp-detail {
    padding-top: 12px;
}

/* Mobile */
@media (max-width: 650px) {
    body .tr-main .tr-hero {
        min-height: 130px;
        padding: 18px 12px;
        gap: 12px;
    }
}

/* =========================================================
   TEMPO REAL - BACKGROUND DO TOPO EM TELA CHEIA
========================================================= */

/* Remove espaçamentos superiores */
body .tr-main {
    padding-top: 0 !important;
}

/* Faixa do topo ocupa toda a largura da tela */
body .tr-main .tr-hero {
    position: relative;

    width: 100vw !important;
    max-width: none !important;

    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    box-sizing: border-box;

    /* Mantém o conteúdo alinhado ao centro */
    padding: 20px max(18px, calc((100vw - 1340px) / 2));

    /* Background */
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

/* Evita rolagem horizontal */
html,
body {
    overflow-x: clip;
}

/* Mobile */
@media (max-width: 650px) {
    body .tr-main .tr-hero {
        padding: 18px 12px;
        background-position: center top !important;
    }
}

/* =========================================================
   FUNDO SÓLIDO - CONTEÚDO E RODAPÉ
========================================================= */

html,
body {
    background: #212529 !important;
}

body .tr-main {
    background: #212529 !important;
    min-height: calc(100vh - 72px);
}

body .tr-main>.tr-container {
    background: transparent !important;
}


/* =========================================================
   RODAPÉ NO FINAL DA TELA
========================================================= */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body .tr-main {
    flex: 1 0 auto;
    min-height: 0;
}


/* =========================================================
   SOMBRA INFERIOR - CABEÇALHO TEMPO REAL
========================================================= */

body .tr-main .tr-hero {
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.35),
        0 3px 6px rgba(0, 0, 0, 0.20);

    z-index: 2;
}

/* Espaçamento do card quando o Tempo Real estiver indisponível */
body .tr-main .tr-container>.tr-empty {
    margin-top: 25px !important;
}

@media (max-width: 650px) {
    body .tr-main .tr-container>.tr-empty {
        margin-top: 20px !important;
    }
}