/* "Live | S16 PTR" toggle left of the language menu (partials/live-ptr-toggle.php, switch nav_live_ptr).
   Loaded only while a preview DB is set. Live = green like the running season, PTR = red like the S16 menu. */

.live-ptr {
    display: inline-flex;
    align-items: stretch;
    flex: none;
    border: 1px solid var(--border, #2a2a35);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    min-height: 32px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
}

.live-ptr__opt {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 0.65rem;
    color: var(--text-dimmed, #7a7870);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.15s, background 0.15s;
}
.live-ptr__opt + .live-ptr__opt {
    border-left: 1px solid var(--border, #2a2a35);
}
.live-ptr__opt:hover {
    color: var(--text-primary, #e0ddd5);
    background: rgba(255, 255, 255, 0.04);
}
.live-ptr__opt:focus-visible {
    outline: 2px solid #d40b06;
    outline-offset: -2px;
}

.live-ptr__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.6;
}

.live-ptr__opt--live.is-active {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}
.live-ptr__opt--live.is-active .live-ptr__dot {
    opacity: 1;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.8);
}

.live-ptr__kind {
    margin-left: 0.15rem;
}
.live-ptr__opt--ptr {
    color: rgba(255, 120, 120, 0.85);
}
.live-ptr__opt--ptr:hover {
    color: #ff9a9a;
    background: rgba(255, 107, 107, 0.08);
}
.live-ptr__opt--ptr.is-active {
    color: #fff;
    background: #a50905;
    text-shadow: 0 0 8px rgba(255, 107, 107, 0.45);
}

/* compact header just above the hamburger cutoff: "S16" without the word */
@media (max-width: 1280px) and (min-width: 1121px) {
    .live-ptr__opt { padding: 0 0.5rem; }
    .live-ptr__opt--live .live-ptr__dot { display: none; }
}

/* hamburger menu: own row, full width, bigger touch targets */
@media (max-width: 1120px) {
    .header__actions .live-ptr {
        flex: 1 1 100%;
        min-height: 40px;
        font-size: 0.85rem;
    }
    .header__actions .live-ptr__opt {
        flex: 1 1 50%;
        justify-content: center;
        padding: 0.65rem 0.75rem;
    }
}
