.shared-tuner-player {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: min(960px, 170vh);
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    overflow: hidden;
    background: #000;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .32);
    color: #fff;
}

.shared-tuner-player video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.shared-tuner-player video.is-fill {
    object-fit: cover;
}

.shared-tuner-player__controls {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    padding: clamp(10px, 2vw, 18px);
    background: linear-gradient(180deg, rgba(0,0,0,.74), transparent 30%, transparent 66%, rgba(0,0,0,.84));
    transition: opacity .25s ease, visibility .25s ease;
}

.shared-tuner-player__controls.is-idle {
    opacity: 0;
    visibility: hidden;
}

.shared-tuner-player__controls-top,
.shared-tuner-player__controls-bottom,
.shared-tuner-player__group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shared-tuner-player__controls-top,
.shared-tuner-player__controls-bottom {
    justify-content: space-between;
}

.shared-tuner-player__title {
    min-width: 0;
    overflow: hidden;
    font-size: clamp(12px, 1.5vw, 16px);
    font-weight: 700;
    text-overflow: ellipsis;
    text-shadow: 0 1px 5px #000;
    white-space: nowrap;
}

.shared-tuner-player__badge {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 4px;
    background: #d71920;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.shared-tuner-player__badge[hidden],
.shared-tuner-player__pip[hidden] {
    display: none !important;
}

.shared-tuner-player__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 7px;
    background: rgba(25,31,40,.78);
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.shared-tuner-player__button:hover,
.shared-tuner-player__button:focus-visible {
    background: rgba(75,88,105,.92);
}

.shared-tuner-player__button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.shared-tuner-player__volume {
    width: 72px;
    accent-color: #e50914;
}

.shared-tuner-player__status,
.shared-tuner-player__offline {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    text-align: center;
    text-shadow: 0 1px 4px #000;
}

.shared-tuner-player__status {
    max-width: 80%;
    color: #fff;
    font-size: 13px;
}

.shared-tuner-player__offline {
    box-sizing: border-box;
    width: min(76%, 420px);
    max-width: calc(100% - 32px);
    padding: 16px 22px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 10px;
    background: rgba(0,0,0,.76);
    color: #ff4545;
    font-size: clamp(15px, 2.2vw, 19px);
    font-weight: 800;
}

.shared-tuner-player__offline[hidden] {
    display: none !important;
}

.shared-tuner-player.is-mini {
    position: fixed;
    z-index: 99999;
    right: 16px;
    bottom: 16px;
    width: min(320px, calc(100vw - 24px));
    max-width: none;
    aspect-ratio: 16 / 9;
    border: 2px solid rgba(255,255,255,.3);
    cursor: grab;
}

.shared-tuner-player:fullscreen {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    aspect-ratio: auto;
}

.shared-tuner-news-shell,
.shared-tuner-slideshow {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.shared-tuner-news-shell {
    max-height: 0;
    opacity: 0;
    transform: translateY(-12px);
    visibility: hidden;
    transition: max-height .45s ease, opacity .35s ease, transform .45s ease, visibility 0s linear .45s;
}

.shared-tuner-news-shell.is-visible {
    max-height: 100px;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition: max-height .45s ease, opacity .35s ease, transform .45s ease, visibility 0s;
}

.shared-tuner-news-frame {
    display: block;
    width: 100%;
    height: 88px;
    margin: 0;
    border: 0;
}

.shared-tuner-slideshow iframe,
.shared-tuner-slideshow img {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
    margin: 0;
    border: 0;
}

.shared-tuner-slideshow iframe {
    min-height: 220px;
    height: clamp(220px, 56.25vw, 720px);
}

.shared-tuner-slideshow img {
    height: auto;
    object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
    .shared-tuner-player__controls,
    .shared-tuner-news-shell {
        transition: none;
    }
}
