/* X Pinned Post Cache スタイル */

.xppc-pinned-post-wrapper {
    /*background-color: #fff;*/
    padding: 10px 30px;
    text-align: left;
}

.xppc-post-text {
    line-height: 1.6;
    color: #000;
    /*white-space: pre-wrap;*/ /* CSSで改行とスペースを保持 */
}

.xppc-post-meta {
    margin-top: 20px;
    font-size: 14px;
    text-align: right;
}

.xppc-post-meta a {
    color: #666;
    text-decoration: none;
}

/* 管理者向けのバックエンドエラー通知 */
.xppc-error-notice {
    color: #666;
    padding: 10px;
    margin: 5px 0 15px;
}

/* --- プロフィールヘッダー用のスタイル --- */
.xppc-header {
    margin-bottom: 20px;
}

.xppc-profile-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.xppc-profile-link:hover .xppc-display-name {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.xppc-profile-link:hover,
.xppc-profile-link:active,
.xppc-profile-link:focus,
.xppc-profile-link:visited{
    color: #000;
}

.xppc-profile-icon {
    border-radius: 50%;
    margin-right: 10px !important;
    width: 48px !important;
    height: 48px !important;
}

.xppc-author-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.xppc-display-name {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.4em;
}

.xppc-username {
    font-size: 13px;
    color: #536471;
}

/* --- 投稿メディア用のスタイル（複数・動画対応版） --- */
.xppc-media-wrapper {
    margin-top: 12px;
    display: grid;
    gap: 2px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #cfd9de;
}
.xppc-media-count-1 { grid-template-columns: 1fr; }
.xppc-media-count-2 { grid-template-columns: 1fr 1fr; }
.xppc-media-count-3 { grid-template-columns: 1fr 1fr; }
.xppc-media-count-4 { grid-template-columns: 1fr 1fr; }

.xppc-media-item {
    position: relative;
    padding-bottom: 56.25%; /* 16:9比率 */
    height: 0;
}
.xppc-media-count-3 .xppc-media-item:first-child {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    padding-bottom: 113.5%;
}
.xppc-media-count-4 .xppc-media-item {
    padding-bottom: 100%;
}


.xppc-media-item img,
.xppc-media-item video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100%;
    object-fit: cover;
}

/* --- 引用ポスト用のスタイル --- */
.xppc-quoted-post {
    margin-top: 12px;
    border: 1px solid #cfd9de;
    border-radius: 12px;
    padding: 12px;
}
.xppc-quoted-link {
    text-decoration: none;
    color: inherit;
}
.xppc-quoted-link:hover {
    background-color: #f5f8fa;
}

.xppc-quoted-header {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}
.xppc-quoted-icon {
    border-radius: 50%;
    margin-right: 5px;
}
.xppc-quoted-display-name {
    font-size: 15px;
    font-weight: bold;
    color: #14171a;
}
.xppc-quoted-username,
.xppc-quoted-date {
    font-size: 14px;
    color: #536471;
    margin-left: 5px;
}

.xppc-quoted-text {
    font-size: 15px;
    line-height: 1.5;
}