/* Floating Twitch live player */
.twitch-floating-player {
    position: fixed;
    left: 16px;
    bottom: 16px;
    width: 320px;
    max-width: calc(100vw - 24px);
    z-index: 10040;
    background: #0e0e10;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    color: #efeff1;
    font-family: inherit;
    user-select: none;
    -webkit-user-select: none;
}

.twitch-floating-player[hidden],
.twitch-floating-player-restore[hidden] {
    display: none !important;
}

.twitch-floating-player.is-dragging {
    opacity: 0.92;
    cursor: grabbing;
}

.twitch-floating-player.is-fullscreen {
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    border-radius: 0;
    border: 0;
    box-shadow: none;
}

.twitch-floating-player__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 36px;
    padding: 0 8px 0 10px;
    background: #18181b;
    cursor: grab;
    touch-action: none;
}

.twitch-floating-player.is-dragging .twitch-floating-player__header {
    cursor: grabbing;
}

.twitch-floating-player.is-fullscreen .twitch-floating-player__header {
    cursor: default;
}

.twitch-floating-player__title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #efeff1;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    text-transform: uppercase;
}

.twitch-floating-player__title:hover,
.twitch-floating-player__title:focus {
    color: #fff;
    text-decoration: none;
}

.twitch-floating-player__icon {
    display: block;
    flex: 0 0 auto;
}

.twitch-floating-player__actions {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
}

.twitch-floating-player__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #efeff1;
    line-height: 1;
    cursor: pointer;
}

.twitch-floating-player__btn:hover,
.twitch-floating-player__btn:focus {
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

.twitch-floating-player__btn-icon {
    font-size: 16px;
    line-height: 1;
    font-weight: 600;
}

.twitch-floating-player__body {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}

.twitch-floating-player.is-fullscreen .twitch-floating-player__body {
    padding-top: 0;
    height: calc(100% - 36px);
}

.twitch-floating-player__iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.twitch-floating-player-restore {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 10040;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: #9147ff;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
    cursor: pointer;
}

.twitch-floating-player-restore:hover,
.twitch-floating-player-restore:focus {
    background: #772ce8;
    outline: none;
}

@media (max-width: 480px) {
    .twitch-floating-player {
        width: 260px;
        left: 8px;
        bottom: 8px;
    }

    .twitch-floating-player-restore {
        left: 8px;
        bottom: 8px;
    }
}
