/* Local SVG icons, crawler thumbnails, and inline video playback. */
.sg-local-icon,
.sgvc-page .sg-local-icon,
body[data-sgcv-controller="Broadcast"][data-sgcv-action="Video"] .sg-local-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
}

.sg-local-icon.is-filled {
    fill: currentColor;
    stroke: none;
}

.sg-local-icon.is-spinner {
    animation: sgLocalIconSpin 900ms linear infinite;
}

@keyframes sgLocalIconSpin {
    to { transform: rotate(360deg); }
}

/* Hide only unreplaced crawler ligature spans. Keep the rule inside the
   crawler component so Users/CommonVisitors shell Material Symbols are never
   suppressed by this playback stylesheet. */
.sgvc-page span.material-symbols-rounded {
    font-family: inherit !important;
    font-size: 0 !important;
    letter-spacing: 0 !important;
    line-height: 0 !important;
}

.sgvc-card-visual {
    position: relative;
    min-height: 0;
    aspect-ratio: 16 / 9;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--sgvc-surface-low), var(--sgvc-surface-container));
}

.sgvc-card-visual.is-playable {
    cursor: pointer;
}

.sgvc-card-visual.is-playable:focus-visible {
    outline: 4px solid var(--sgvc-primary);
    outline-offset: -4px;
}

.sgvc-card-thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
    background: var(--sgvc-surface-container);
    transition: transform 220ms ease, filter 220ms ease;
}

.sgvc-card:hover .sgvc-card-thumbnail,
.sgvc-card-visual.is-playable:hover .sgvc-card-thumbnail {
    transform: scale(1.025);
    filter: saturate(1.04) contrast(1.02);
}

.sgvc-card-media-shade {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    min-height: 72px;
    padding: 28px 15px 13px;
    color: #fff;
    background: linear-gradient(to top, rgba(15, 12, 22, .84), rgba(15, 12, 22, 0));
    pointer-events: none;
}

.sgvc-card-provider-mark {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 999px;
    background: rgba(29, 27, 32, .64);
    color: #fff;
    font-size: 11px;
    font-weight: 760;
    letter-spacing: .02em;
    backdrop-filter: blur(8px);
}

.sgvc-card-video-badge {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 50%;
    background: rgba(103, 80, 164, .96);
    color: #fff;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .27);
}

.sgvc-card-video-badge .sg-local-icon {
    width: 27px;
    height: 27px;
    fill: currentColor;
    stroke: none;
}

.sgvc-card-media-note {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 20px 16px;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--sgvc-surface-low);
    color: var(--sgvc-on-surface-variant);
    font-size: 11px;
    line-height: 1.45;
}

.sgvc-card-media-note .sg-local-icon {
    color: var(--sgvc-primary);
}

.sgvc-card-actions a,
.sgvc-card-actions button,
.sgvc-status-card a,
.sgvc-filled-button,
.sgvc-tonal-button {
    gap: 8px;
}

.sgvc-card-actions .sg-local-icon,
.sgvc-status-card .sg-local-icon,
.sgvc-filled-button .sg-local-icon,
.sgvc-tonal-button .sg-local-icon {
    width: 19px;
    height: 19px;
}

.sgvc-card-actions .sgvc-play-button {
    background: #b3261e;
    color: #fff;
}

.sgvc-playback-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: currentColor;
    vertical-align: middle;
}

.sgvc-guard-panel .sg-local-icon,
.sgvc-status-card > .sg-local-icon {
    width: 26px;
    height: 26px;
}

.sgvc-search-field > .sg-local-icon {
    width: 23px;
    height: 23px;
    color: var(--sgvc-on-surface-variant);
}

.sgvc-search-field button .sg-local-icon {
    width: 20px;
    height: 20px;
}

.sgvc-state > .sg-local-icon,
.sgvc-policy > .sg-local-icon {
    width: 42px;
    height: 42px;
}

body.sgvc-player-open {
    overflow: hidden;
}

.sgvc-player-modal[hidden] {
    display: none !important;
}

.sgvc-player-modal {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(12, 10, 16, .82);
    backdrop-filter: blur(8px);
}

.sgvc-player-dialog {
    width: min(1120px, 96vw);
    max-height: 94vh;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 24px;
    background: #17131d;
    color: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}

.sgvc-player-header,
.sgvc-player-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
}

.sgvc-player-header h2 {
    margin: 0;
    overflow: hidden;
    font-size: clamp(18px, 2.2vw, 25px);
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sgvc-player-close {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
    font-size: 31px;
    line-height: 1;
}

.sgvc-player-close:hover {
    background: rgba(255, 255, 255, .22);
}

.sgvc-player-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.sgvc-player-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.sgvc-player-footer {
    justify-content: flex-end;
}

.sgvc-player-external {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: #fff;
    color: #211b24 !important;
    font-weight: 720;
    text-decoration: none !important;
}

@media (max-width: 560px) {
    .sgvc-card-thumbnail {
        min-height: 170px;
    }

    .sgvc-player-modal {
        padding: 0;
    }

    .sgvc-player-dialog {
        width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }

    .sgvc-player-header h2 {
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sgvc-card-thumbnail,
    .sg-local-icon.is-spinner {
        animation: none !important;
        transition: none !important;
    }
}
