/* VoicePa 声と返信 / Remix 派生作品。既存VPPミキサーと左右対称のサムネイル操作。 */
.custom-thumbnail-container .voicepa-derivative-trigger {
    position: absolute;
    top: 9px;
    left: 9px;
    z-index: 9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 36px;
    margin: 0;
    padding: 0;
    color: #fff;
    background: rgba(19, 24, 35, .76);
    border: 0;
    border-radius: 11px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .24);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.custom-thumbnail-container .voicepa-derivative-trigger:hover {
    background: rgba(27, 34, 48, .9);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
}

.custom-thumbnail-container .voicepa-derivative-trigger:active {
    transform: translateY(0);
}

.custom-thumbnail-container .voicepa-derivative-trigger:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .95);
    outline-offset: 2px;
}

.voicepa-derivative-trigger__icon {
    display: block;
    width: 22px;
    height: 22px;
}

.voicepa-derivative-trigger__count {
    position: absolute;
    top: -5px;
    right: -5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    box-sizing: border-box;
    color: #fff;
    background: #f95277;
    border: 2px solid rgba(255, 255, 255, .96);
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
    font: 800 10px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}

.voicepa-derivative-panel {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.voicepa-derivative-grid.bonus-posts-grid {
    gap: 2px !important;
    align-items: start;
    margin: 0;
}

.voicepa-derivative-grid .voicepa-derivative-card.post2.excerpt-frontmaintop2 {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: none !important;
    height: auto !important;
    margin: 0 !important;
    overflow: hidden;
    box-sizing: border-box;
}

.voicepa-derivative-card__media.featured-thumbnail-frontmaintop {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1;
    overflow: hidden !important;
    background: #151821;
    box-sizing: border-box;
}

.voicepa-derivative-card__thumbnail-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.voicepa-derivative-card__media .featured-thumbnail-frontmaintop-img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    object-fit: cover !important;
}

.voicepa-derivative-card__overlay.overlay-info {
    box-sizing: border-box;
    pointer-events: auto;
}

.voicepa-derivative-card__overlay .post-info {
    min-width: 0;
}

.voicepa-derivative-card__overlay .title-frontmain03,
.voicepa-derivative-card__overlay .title-frontmain03 a {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.voicepa-derivative-card__author-line {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    min-width: 0;
    text-align: right;
}

.voicepa-derivative-card__author-line .theauthor {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.voicepa-derivative-card__author-line .theauthor a {
    position: static;
    color: #fff;
}

.voicepa-derivative-card__author-icon {
    flex: 0 0 13px;
    display: block;
    width: 13px;
    height: 13px;
    object-fit: contain;
}

.voicepa-derivative-card__author-line .post-views {
    flex: 0 0 auto;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.voicepa-derivative-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 82px;
    padding: 16px;
    box-sizing: border-box;
    color: #667085;
    background: rgba(255, 255, 255, .72);
    border: 1px dashed rgba(71, 84, 103, .22);
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.voicepa-derivative-empty__icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    color: #7c86a0;
}

.voicepa-derivative-truncated-note {
    margin: 10px 0 0;
    color: #667085;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 360px) {
    .custom-thumbnail-container .voicepa-derivative-trigger {
        top: 8px;
        left: 8px;
    }

    .voicepa-derivative-panel {
        padding: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .custom-thumbnail-container .voicepa-derivative-trigger {
        transition: none;
    }
}
