/*
 * Plugin: MAA Kiji Format Plugin
 * Style: Video Card Format 1
 * Prefix: maa-kiji-format1-
 */

.maa-kiji-format1-post-thumbnail {
  width: 60%;      /* 横幅を親要素いっぱいに広げる */
  height: auto;       /* 高さは横幅に合わせて自動調整（画像の比率を保つ） */
  display: block;     /* 画像下の余分な余白をなくす */
  margin: 0 auto 1.5em; /* 中央揃えにし、画像の下に余白を設ける */
}

.maa-kiji-format1-video-post-card {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Hiragino Sans', 'Noto Sans CJK JP', 'Yu Gothic', Meiryo, sans-serif;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
    width: 100%;
    max-width: 800px;
    margin: 0 auto 40px !important;
    overflow: hidden;
    transition: box-shadow .3s ease;
    display: flex;
    flex-direction: column;
}
.maa-kiji-format1-video-post-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, .15);
}
.maa-kiji-format1-card-header {
    display: flex;
    align-items: center;
}
.maa-kiji-format1-thumbnail-wrapper {
    flex: 3 1 0%;
    aspect-ratio: 4 / 3;
    padding: 15px;
    box-sizing: border-box;
    display: flex;
}
.maa-kiji-format1-video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}
.maa-kiji-format1-title-wrapper {
    flex: 7 1 0%;
    padding: 20px;
    min-width: 0;
}
.maa-kiji-format1-video-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0;
}
.maa-kiji-format1-video-body {
    padding: 15px 25px 25px 25px;
    border-top: 1px solid #f0f0f0;
}
.maa-kiji-format1-actor-name {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
    font-weight: 500;
}
.maa-kiji-format1-actor-name::before {
    content: '出演: ';
    font-weight: normal;
    color: #888;
}
.maa-kiji-format1-video-description {
    font-size: 15px;
    color: #333;
    line-height: 1.7;
}
.maa-kiji-format1-watch-button {
    display: block;
    background: linear-gradient(45deg, #FF6B6B, #FF8E53);
    color: #ffffff;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    transition: transform .2s ease, box-shadow .3s ease;
    box-sizing: border-box;
    /* --- 変更箇所 --- */
    width: fit-content;      /* 幅をコンテンツに合わせる */
    margin: 25px auto 0;     /* 上25px, 左右autoで中央寄せ */
}
.maa-kiji-format1-watch-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 107, 107, .5);
}

/* Responsive styles for mobile */
@media (max-width: 480px) {
    .maa-kiji-format1-video-title {
        font-size: 18px;
    }
    .maa-kiji-format1-thumbnail-wrapper,
    .maa-kiji-format1-title-wrapper {
        padding: 10px;
    }
    .maa-kiji-format1-video-body {
        padding: 15px;
    }
    /* スマホではボタンの幅を100%に戻してタップしやすくする（任意） */
    .maa-kiji-format1-watch-button {
        width: 100%;
    }
}