﻿.worldbar {
    --wb-duration: 70s;
    width: 100%;
    margin: 0 0 0.75rem 0;
    padding: 0.35rem 0.8rem;
    background: #111;
    color: #f2f2f2;
    border-bottom: 1px solid rgba(255,255,255,.10);
    box-sizing: border-box;
}

.worldbar__viewport {
    overflow: hidden;
}

.worldbar__track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: wb-marquee var(--wb-duration) linear infinite;
}

.worldbar__group {
    display: flex;
    gap: 0.6rem;
    padding-right: 0.6rem;
}

@keyframes wb-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


/* --- Cards --- */
.wb-card {
    min-width: 200px;
    padding: 0.55rem 0.7rem;
    border-radius: 0.45rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
}

.wb-top {
    font-size: 0.70rem;
    color: #bdbdbd;
    font-weight: 800;
    letter-spacing: .4px;
    margin-bottom: 0.35rem;
}

/* --- In-progress / final game grid --- */
.wb-game-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.75rem;
    row-gap: 0.35rem;
    align-items: center;
}

.wb-team {
    text-align: center;
}

.wb-score {
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.05;
}

.wb-abbr {
    font-size: 1.00rem;
    font-weight: 700;
    letter-spacing: .35px;
}

.wb-record {
    font-size: 0.78rem;
    color: #cfcfcf;
    min-height: 1.0em;
}

.wb-status {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.9rem;
    color: #dedede;
    opacity: 0.95;
    min-height: 1.1em;
}

/* --- Scheduled layout --- */
.wb-sched-time {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 900;
    margin-top: 0.05rem;
}

.wb-sched-date {
    text-align: center;
    font-size: 0.85rem;
    color: #d6d6d6;
    margin-top: 0.1rem;
    margin-bottom: 0.25rem;
}

.wb-sched-teams {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 0.75rem;
    margin-top: 0.1rem;
}

/* --- Quote layout --- */
.wb-name {
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: .2px;
}

.wb-price {
    margin-top: 0.15rem;
    font-size: 1.1rem;
    font-weight: 800;
}

.wb-change {
    margin-top: 0.2rem;
    font-size: 0.95rem;
    font-weight: 900;
}

.wb-up {
    color: #39d98a;
}

.wb-down {
    color: #ff5c5c;
}

.wb-empty {
    padding: 0.25rem 0.5rem;
    color: #cfcfcf;
    font-weight: 700;
}

.wb-raw-text {
    font-size: 0.9rem;
    color: #e6e6e6;
    white-space: nowrap;
}

.worldbar.worldbar--error {
    background: #2a1b1b;
    border-color: rgba(255, 140, 140, 0.35);
}

/* Center ALL numeric columns and make links full-width + centered */
#new-activity table th:not(:first-child),
#new-activity table td:not(:first-child) {
    text-align: center !important;
}

    #new-activity table td:not(:first-child) a {
        display: block; /* make link fill the cell */
        width: 100%;
        text-align: center; /* center the link text */
    }
