.tchp-player {
    position: relative;
    display: block;
    width: 100%;
    max-width: 800px;
    margin: 12px auto 18px auto;
    overflow: hidden;
    line-height: 0;
    background: #000;
    border-radius: 10px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
    aspect-ratio: 16 / 9;
}

.tchp-player-poster {
    position: absolute;
    inset: 0;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center center;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    cursor: pointer;
    background: #000;
}

.tchp-player-play,
.tchp-player-archive .tchp-player-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 74px;
    height: 54px;
    border: 0 !important;
    border-radius: 16px;
    background: linear-gradient(135deg, #ff2b2b, #ff6a00) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    z-index: 5;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
    text-decoration: none !important;
}

.tchp-player-play:hover,
.tchp-player:hover .tchp-player-play {
    transform: translate(-50%, -50%) scale(1.06);
    filter: brightness(1.08);
}

.tchp-player-play-icon {
    display: block;
    width: 0;
    height: 0;
    font-size: 0;
    line-height: 0;
    margin-left: 5px;
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    border-left: 20px solid #fff;
}

.tchp-player-label {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 4;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.68);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    pointer-events: none;
}

.tchp-player-message {
    position: absolute;
    left: 0;
    right: 0;
    top: 12px;
    z-index: 6;
    text-align: center;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.tchp-player-loading .tchp-player-poster {
    opacity: 0.78;
}

.tchp-preview-holder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
    color: #fff;
    overflow: hidden;
    line-height: normal;
}

.tchp-preview-holder iframe,
.tchp-preview-holder video,
.tchp-preview-holder object,
.tchp-preview-holder embed {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    background: #000;
}

.tchp-preview-holder .k2s-preview,
.tchp-preview-holder .fileboom-preview,
.tchp-preview-holder [class*="preview"] {
    max-width: 100% !important;
}

.tchp-preview-link {
    position: absolute !important;
    left: -99999px !important;
    top: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.tchp-preview-fallback {
    display: none !important;
}

.tchp-preview-holder.has-error .tchp-preview-fallback {
    display: inline-block !important;
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 10;
    padding: 8px 14px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff !important;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.2;
}

.tchp-download-wrap {
    text-align: center;
    margin: 12px auto 22px auto !important;
}

.tchp-download-btn,
.entry-content .tchp-download-btn,
.post-content .tchp-download-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #ff3b30, #ff8a00) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(255, 90, 0, 0.24);
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.tchp-download-btn::before {
    content: "⬇";
    font-size: 15px;
    line-height: 1;
}

.tchp-download-btn:hover,
.entry-content .tchp-download-btn:hover,
.post-content .tchp-download-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 14px 30px rgba(255, 90, 0, 0.34);
    color: #fff !important;
}

.tchp-player-archive {
    text-decoration: none !important;
    color: inherit !important;
}

.tchp-player-archive .tchp-player-label {
    bottom: 14px;
    left: 14px;
    text-transform: none;
    font-size: 13px;
}

@media (max-width: 768px) {
    .tchp-player {
        max-width: 100%;
        border-radius: 8px;
    }

    .tchp-player-play,
    .tchp-player-archive .tchp-player-play {
        width: 64px;
        height: 48px;
        border-radius: 14px;
    }

    .tchp-player-play-icon {
        border-top-width: 11px;
        border-bottom-width: 11px;
        border-left-width: 18px;
    }

    .tchp-player-label {
        font-size: 12px;
        padding: 8px 12px;
    }
}
