.mcp-post-wrapper {
    padding: 0 12px;
    max-width: 600px;
    margin: auto;
}

.mcp-post-card {
    margin-bottom: 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

/* FORCE 1:1 aspect ratio for ALL media (images + videos) */
.mcp-post-square {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #000;
    position: relative;
}

.mcp-post-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    pointer-events: none; /* Allow clicks to pass through to video */
}

.mcp-post-carousel iframe {
    pointer-events: auto !important; /* Re-enable for iframes */
}

.mcp-post-slide {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.15s ease;
}

.mcp-post-slide.is-active {
    display: block;
}

.mcp-post-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #000;
}

/* Video wrapper needs to fill the slide completely */
.mcp-post-slide .mcp-post-video-wrapper,
.mcp-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
    z-index: 1;
}

/* Video iframe container and iframe */
.mcp-video-iframe-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.mcp-video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border: none;
    z-index: 1;
    pointer-events: auto !important;
}

/* Speaker toggle removed - using Bunny's native controls only */

/* Ensure no scrollbars in video containers */
.mcp-post-slide--video,
.mcp-post-slide--video .mcp-post-video-wrapper,
.mcp-post-slide--video iframe {
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mcp-post-slide--video::-webkit-scrollbar,
.mcp-post-slide--video .mcp-post-video-wrapper::-webkit-scrollbar,
.mcp-post-slide--video iframe::-webkit-scrollbar {
    display: none;
}

/* Video wrapper and inner container */
.mcp-post-media-video,
.mcp-video-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Video thumbnail background */
.mcp-video-thumbnail,
.mcp-video-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #222;
    z-index: 1;
}

/* Custom play button */
.mcp-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 4px solid #fff;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.mcp-video-play-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Hide thumbnail and play button when video is playing */
.mcp-video-wrapper.video-playing .mcp-video-thumbnail,
.mcp-video-wrapper.video-playing .mcp-video-play-btn {
    display: none !important;
}

/* Show iframe when playing */
.mcp-video-wrapper.video-playing .mcp-video-iframe {
    display: block !important;
}

/* Video loader animation */
.mcp-video-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.mcp-video-wrapper.video-loaded .mcp-video-loader {
    opacity: 0;
    pointer-events: none;
}

.mcp-loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: mcp-spin 1s linear infinite;
}

@keyframes mcp-spin {
    to { transform: rotate(360deg); }
}

/* Carousel arrow navigation */
.mcp-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    pointer-events: auto;
}

.mcp-carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.mcp-carousel-arrow-prev {
    left: 10px;
}

.mcp-carousel-arrow-next {
    right: 10px;
}

/* Drag and drop styles */
.mcp-post-media-item {
    transition: opacity 0.2s ease;
}

.mcp-post-media-item.drag-over {
    border: 2px dashed #0066cc;
    opacity: 0.5;
}

.mcp-media-sortable {
    min-height: 100px;
}

/* Caption overlay inside square */
.mcp-caption-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 6px 8px;
    background: rgba(0,0,0,0.55);
    color: white;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    z-index: 20;
    pointer-events: none; /* Don't block video clicks */
}

/* Slide counter in top-right */
.mcp-slide-count {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.45);
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 12px;
    color: white;
    z-index: 30;
    pointer-events: none; /* Don't block video clicks */
}

/* Dot navigation */
.mcp-post-dots {
    text-align: center;
    margin-top: 6px;
    padding: 8px 0;
}

.mcp-post-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 4px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.mcp-post-dots span.active {
    background: #333;
}

.mcp-post-title {
    margin: 12px 20px 8px;
    font-size: 24px;
    margin-bottom: 8px;
}

.mcp-post-body {
    margin: 0 20px 20px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 8px;
}

.mcp-post-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    padding: 15px 20px;
    border-top: 1px solid #eee;
}

.mcp-post-actions button {
    cursor: pointer;
}

.mcp-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.mcp-icon-save {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3E%3Cpath d='M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z'/%3E%3C/svg%3E");
}

.mcp-icon-share {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3E%3Cpath d='M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92z'/%3E%3C/svg%3E");
}

.mcp-icon-edit {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E");
}

.mcp-icon-hide {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3E%3Cpath d='M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z'/%3E%3C/svg%3E");
}

.mcp-icon-delete {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d32f2f'%3E%3Cpath d='M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z'/%3E%3C/svg%3E");
}

.mcp-post-owner-actions {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0;
    opacity: 0.9;
    margin-left: auto;
}

.mcp-post-owner-actions .mcp-action-edit,
.mcp-post-owner-actions .mcp-action-hide,
.mcp-post-owner-actions .mcp-action-delete {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.mcp-post-owner-actions .mcp-action-edit:hover,
.mcp-post-owner-actions .mcp-action-hide:hover,
.mcp-post-owner-actions .mcp-action-delete:hover,
.mcp-post-owner-actions i:hover {
    opacity: 1;
}

.mcp-btn-add-post {
    display: inline-block;
    padding: 10px 20px;
    background: #0066cc;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.mcp-btn-add-post:hover {
    background: #0052a3;
}

/* ─────────────────────────────────────────────────────────────────────────
   mcp-post-single: typography + editorial column layout
   ───────────────────────────────────────────────────────────────────────── */

.mcp-post-single .mcp-container--narrow {
    width: 100%;
}

.mcp-post-single__title {
    font-size: clamp( 22px, 4vw, 32px );
    line-height: 1.25;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px 0;
}

.mcp-post-single__meta {
    font-size: 13px;
    color: #888;
    margin: 0 0 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.mcp-post-single__listing {
    display: inline;
}

.mcp-post-single__listing a {
    color: #1a56db;
    text-decoration: none;
}

.mcp-post-single__listing a:hover {
    text-decoration: underline;
}

.mcp-post-single__media,
.mcp-post-single__dek,
.mcp-post-single__body {
    width: 100%;
    max-width: 100%;
}

.mcp-post-single__dek {
    font-size: 17px;
    line-height: 1.6;
    color: #555;
    font-style: italic;
    margin: 0 0 20px 0;
}

.mcp-post-single .mcp-post-body {
    margin: 0 0 24px 0;
    font-size: 16px;
    line-height: 1.8;
    color: #2d2d2d;
    padding: 0;

    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
}

.mcp-post-single__figure {
    margin: 0 0 20px 0;
}

.mcp-post-media-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* ─────────────────────────────────────────────────────────────────────────
   mcp-post-single: publisher CTA panel (layout only — buttons from button.css)
   ───────────────────────────────────────────────────────────────────────── */

.mcp-post-single__publisher-cta {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px 28px;
    margin-top: 4px;
}

.mcp-post-single__publisher-cta-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.mcp-post-single__publisher-cta-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 18px 0;
    line-height: 1.25;
}

.mcp-post-single__cta-links {
    margin-top: 0;
}

@media ( max-width: 640px ) {
    .mcp-post-single__publisher-cta {
        padding: 18px 16px;
    }

    .mcp-post-single__cta-links {
        flex-direction: column;
        align-items: stretch;
    }

    .mcp-post-single__dek {
        font-size: 15px;
    }
}

.mcp-post-single__back-link {
    margin: 16px 0 24px 0;
    font-size: 14px;
}

.mcp-post-single__back-link a {
    color: #6b7280;
    text-decoration: none;
}

.mcp-post-single__back-link a:hover {
    color: #111827;
    text-decoration: underline;
}

