.player-block {
    width: 805px;
    height: 454px;
    border-radius: 15px;
    background: #0C0C0E;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.player-mobile-launch-btn {
    display: none;
    width: auto;
    min-width: 98px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(12, 12, 16, 0.86);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.02em;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.player-mobile-launch-actions {
    display: none;
    width: fit-content;
}

.player-mobile-library-btn {
    display: none;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(12, 12, 16, 0.86);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 21px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.player-ad-panel {
    margin-top: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.player-ad-card {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    color: #fff;
    text-decoration: none;
}

.player-ad-card.no-link {
    cursor: default;
}

.player-ad-image {
    width: 140px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
}

.player-ad-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.player-ad-label {
    font-size: 12px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.6);
}

.player-ad-title {
    font-size: 14px;
    font-weight: 900;
    color: #fff;
    line-height: 1.3;
    margin-top: 4px;
}

.player-ad-embed {
    width: 100%;
    min-height: 90px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(12, 12, 14, 0.7);
}

.player-ad-embed iframe {
    width: 100% !important;
    max-width: 100%;
    border: none;
}

body.has-custom-site-background .player-block,
body.has-custom-site-background .player-ad-panel {
    background: rgba(12, 12, 14, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.player-surface {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
    position: relative;
}

.player-surface.player-idle {
    cursor: none;
}

.player-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
    background: #000;
}

.player-video.active {
    display: block;
}

.player-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    z-index: 1;
}

.player-placeholder-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.48;
}

.player-mobile-watch-btn {
    display: none;
    position: relative;
    z-index: 2;
    min-width: 126px;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(12, 12, 16, 0.82);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.02em;
    cursor: pointer;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

@media (max-width: 768px) {
    .player-mobile-launch-actions {
        display: flex;
        width: 100%;
        max-width: 100%;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 0 auto 10px;
    }

    .player-mobile-launch-btn {
        display: inline-flex;
        margin: 0;
    }

    .player-mobile-library-btn {
        display: inline-flex;
    }

    .player-mobile-watch-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    body.mobile-player-open {
        overflow: hidden;
    }

    .player-block {
        display: none;
    }

    .player-block.is-mobile-player-open {
        display: block !important;
        position: fixed;
        inset: 0;
        width: 100vw !important;
        height: 100dvh !important;
        border-radius: 0;
        z-index: 1400;
        background: #000;
    }

    .player-block.is-mobile-player-open .player-surface {
        height: 100%;
        border-radius: 0;
    }

    .player-block.is-mobile-player-open .player-placeholder,
    .player-block.is-mobile-player-open .player-video {
        height: 100%;
    }
}
