/* RT Live Scores — ESPN Ticker Style v2.0 */

/* Outer container — full width dark bar */
.rtls-ticker {
    background: #0b0b0b;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
    position: relative;
    height: 56px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border-bottom: 1px solid #222;
    box-sizing: border-box;
}

/* Scrolling wrapper */
.rtls-scroll {
    display: flex;
    width: max-content;
    animation: rtls-slide 60s linear infinite;
    height: 100%;
}

.rtls-scroll:hover {
    animation-play-state: paused;
}

@keyframes rtls-slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Each track (original + clone for seamless loop) */
.rtls-track {
    display: flex;
    align-items: stretch;
    height: 56px;
    flex-shrink: 0;
}

/* League separator */
.rtls-sep {
    display: flex;
    align-items: center;
    padding: 0 14px;
    height: 56px;
    border-right: 1px solid #222;
    flex-shrink: 0;
}

.rtls-sep span {
    font-size: 10px;
    font-weight: 800;
    color: #A2755A;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Individual game */
.rtls-g {
    display: flex;
    align-items: center;
    height: 56px;
    border-right: 1px solid #222;
    padding: 0 4px 0 0;
    flex-shrink: 0;
}

/* Time / status column */
.rtls-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    min-width: 70px;
    height: 100%;
    border-right: 1px solid #1a1a1a;
    gap: 1px;
}

.rtls-clk {
    font-size: 10px;
    font-weight: 700;
    color: #ccc;
    white-space: nowrap;
    line-height: 1.2;
    text-align: center;
}

.rtls-tv {
    font-size: 8px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Live game styling */
.rtls-g.rtls-live .rtls-clk {
    color: #ff3333;
}

.rtls-g.rtls-live .rtls-time::before {
    content: '';
    width: 5px;
    height: 5px;
    background: #ff3333;
    border-radius: 50%;
    margin-bottom: 2px;
    animation: rtls-blink 1s step-start infinite;
}

@keyframes rtls-blink { 50% { opacity: 0; } }

/* Team row — away stacked on top of home */
.rtls-tm {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 8px;
    height: 28px;
    white-space: nowrap;
}

/* Stack the two team rows vertically */
.rtls-g {
    flex-wrap: wrap;
    align-content: center;
}

/* Force time to be full height, teams to stack */
.rtls-time {
    flex-shrink: 0;
}

/* Actually let me restructure - games need teams stacked */
.rtls-g {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: 1fr 1fr;
    height: 56px;
    align-items: center;
}

.rtls-time {
    grid-row: 1 / 3;
    grid-column: 1;
}

.rtls-tm:nth-child(2) {
    grid-row: 1;
    grid-column: 2;
}

.rtls-tm:nth-child(3) {
    grid-row: 2;
    grid-column: 2;
    border-top: 1px solid #1a1a1a;
}

/* Team elements */
.rtls-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.rtls-ab {
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    min-width: 30px;
}

.rtls-rc {
    font-size: 9px;
    color: #666;
    font-weight: 600;
}

.rtls-sc {
    font-size: 13px;
    font-weight: 900;
    color: #fff;
    min-width: 20px;
    text-align: right;
    margin-left: auto;
    padding-left: 8px;
}

/* Losing team dim */
.rtls-dim .rtls-ab,
.rtls-dim .rtls-sc {
    color: #666;
}

/* Shop cart icon */
.rtls-cart {
    font-size: 11px;
    text-decoration: none !important;
    margin-left: 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.rtls-cart:hover {
    opacity: 1;
}

/* No games */
.rtls-nogames {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #555;
    font-size: 12px;
    font-weight: 600;
    padding: 0 20px;
    white-space: nowrap;
}

/* Speed adjustment via JS */
.rtls-scroll[data-speed] {
    animation-duration: var(--rtls-dur, 60s);
}
