.live-stream-pip-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    background: #c81e1e;
    color: #ffffff;
    font-size: 1rem;
    font-family: Roboto, sans-serif, system-ui;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.live-stream-pip-trigger:hover {
    background: #a91818;
    border-radius: 24px;
}

.live-stream-pip-trigger:focus-visible {
    outline: 2px solid #c81e1e;
    outline-offset: 2px;
}

.live-stream-pip-trigger:active {
    background: #8f1414;
}

/* Poster variant — looks like a video player thumbnail instead of a button */
.live-stream-pip-trigger--poster {
    position: relative;
    display: block;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 16 / 9;
    padding: 0;
    background-color: var(--off-white);
    background-size: cover;
    background-position: center;
    border: 2px solid var(--color-main);
    border-radius: 6px;
    overflow: hidden;
    transition: border-radius 0.2s ease;
}

.live-stream-pip-trigger--poster::hover {
    border-radius: 24px;
}

.live-stream-pip-trigger--poster:hover {
    background-color: #fff;
}

/* Logo-poster variant — default when no explicit "poster" attribute is
   given: the site/city logo (light+dark), same markup + toggle classes as
   [szl_site_logo], centered over the same off-black backdrop. */
.live-stream-pip-trigger--logo-poster .site-logo-light,
.live-stream-pip-trigger--logo-poster .site-logo-dark {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    padding: 1rem;
    box-sizing: border-box;
}

.live-stream-pip-trigger--poster:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.live-stream-pip-trigger-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 4px;
    background: #c81e1e;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: Roboto, sans-serif, system-ui;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.live-stream-pip-trigger-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.live-stream-pip-trigger-play svg {
    width: 28px;
    height: 28px;
    margin-left: 3px;
}

.live-stream-pip-trigger--poster:hover .live-stream-pip-trigger-play {
    background: #c81e1e;
}

.live-stream-pip-trigger--poster:active .live-stream-pip-trigger-play {
    background: #8f1414;
}

@media (prefers-reduced-motion: no-preference) {
    .live-stream-pip-trigger--poster:hover .live-stream-pip-trigger-play {
        transform: translate(-50%, -50%) scale(1.08);
    }
}

.live-stream-pip {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 320px;
    max-width: calc(100vw - 32px);
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    z-index: 9999;
}

@media (prefers-reduced-motion: no-preference) {
    .live-stream-pip {
        animation: liveStreamPipIn 0.2s ease;
    }
}

@keyframes liveStreamPipIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.live-stream-pip[hidden] {
    display: none;
}

.live-stream-pip-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #18181b;
    color: #f5f5f5;
}

.live-stream-pip-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border-radius: 4px;
    background: #c81e1e;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: Roboto, sans-serif, system-ui;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-right: auto;
}

.live-stream-pip-header button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #f5f5f5;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.live-stream-pip-header button:hover {
    background: rgba(245, 245, 245, 0.15);
}

.live-stream-pip-header button:focus-visible {
    outline: 2px solid #f5f5f5;
    outline-offset: 1px;
}

.live-stream-pip-header button:active {
    background: rgba(245, 245, 245, 0.25);
}

.live-stream-pip video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

@media (max-width: 480px) {
    .live-stream-pip {
        width: calc(100vw - 24px);
        right: 12px;
        bottom: 12px;
    }
}

/* Stream picker — one button per livestream, only rendered when a city has
   more than one. The active stream is shown by fill + white outline + bold
   text, not by colour alone. */
.live-stream-pip-streams {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px;
    background: #18181b;
}

.live-stream-pip-streams[hidden] {
    display: none;
}

.live-stream-pip-stream {
    padding: 5px 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #27272a;
    color: #f5f5f5;
    font-size: 0.85rem;
    font-family: Roboto, sans-serif, system-ui;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.live-stream-pip-stream:hover {
    background: #3f3f46;
}

.live-stream-pip-stream:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.live-stream-pip-stream:active {
    background: #52525b;
}

.live-stream-pip-stream[aria-pressed="true"] {
    background: #c81e1e;
    border-color: #ffffff;
    font-weight: 700;
}

.live-stream-pip-stream[aria-pressed="true"]:hover {
    background: #a91818;
}

/* Homepage sidebar picker — sits above the poster trigger on the page
   background, so it uses the page text tokens instead of the dark player
   palette above. */
.szl-stream-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0.5rem;
}

.szl-stream-picker-btn {
    padding: 6px 14px;
    border: 1px solid var(--text-color-dates);
    border-radius: 6px;
    background: transparent;
    color: var(--text-color-comm);
    font-size: 0.9rem;
    font-family: Roboto, sans-serif, system-ui;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.szl-stream-picker-btn:hover {
    border-color: var(--text-color-comm);
}

.szl-stream-picker-btn:focus-visible {
    outline: 2px solid #c81e1e;
    outline-offset: 2px;
}

.szl-stream-picker-btn:active {
    background: var(--text-color-dates);
    color: var(--bg-color);
}

.szl-stream-picker-btn[aria-pressed="true"] {
    border-color: #c81e1e;
    background: #c81e1e;
    color: #ffffff;
    font-weight: 700;
}

.szl-stream-picker-btn[aria-pressed="true"]:hover {
    border-color: #a91818;
    background: #a91818;
}
