/* clobo_linkify.css — 投稿本文 URL 자동リンク + YouTube 埋め込み + OGP カード スタイル */

.clobo-autolink {
    color: #02AED5;
    text-decoration: underline;
    word-break: break-all;
}
.clobo-autolink:hover { text-decoration: underline; opacity: 0.85; }

/* YouTube embed (16:9 responsive). 親コンテナの横幅いっぱい. */
.clobo-yt-embed {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 8px 0;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}
.clobo-yt-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* OGP card. 親コンテナの横幅いっぱい. */
.clobo-og-card {
    display: flex;
    align-items: stretch;
    margin: 8px 0;
    width: 100%;
    max-width: 100%;
    border: 1px solid #e0e3e2;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: box-shadow .15s, transform .15s;
}
.clobo-og-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}
.clobo-og-card-img {
    flex: 0 0 120px;
    background-size: cover;
    background-position: center;
    background-color: #f5f7f7;
    min-height: 100px;
}
.clobo-og-card-body {
    flex: 1;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
}
.clobo-og-card-site {
    font-size: 11px;
    color: #888;
    text-transform: lowercase;
}
.clobo-og-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.clobo-og-card-desc {
    font-size: 12px;
    color: #5a6160;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 480px) {
    .clobo-og-card-img { flex-basis: 96px; }
    .clobo-og-card-title { font-size: 13px; }
    .clobo-og-card-desc { font-size: 11px; -webkit-line-clamp: 1; }
}
