/* Good/Badボタンコンテナ */
.youtuber-rating-vote-buttons {
    margin-top: 10px;
    margin-bottom: 20px;
    display: flex; /* ボタンを横並びにする */
    gap: 10px;    /* ボタン間のスペース */
    align-items: center; /* 垂直方向中央揃え */
}

/* Good/Badボタン共通スタイル */
.youtuber-rating-vote-button {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px; /* テキストとカウントの間のスペース */
}

.youtuber-rating-vote-button:hover {
    background-color: #e0e0e0;
}

.youtuber-rating-vote-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #e9e9e9;
}

/* Goodボタンの色 */
.youtuber-rating-vote-button[data-vote-type="good"] {
    color: #4CAF50; /* 緑色 */
    border-color: #4CAF50;
}
.youtuber-rating-vote-button[data-vote-type="good"]:hover {
    background-color: #e8f5e9;
}

/* Badボタンの色 */
.youtuber-rating-vote-button[data-vote-type="bad"] {
    color: #F44336; /* 赤色 */
    border-color: #F44336;
}
.youtuber-rating-vote-button[data-vote-type="bad"]:hover {
    background-color: #ffebee;
}

/* カウント表示のスタイル */
.youtuber-rating-good-count,
.youtuber-rating-bad-count {
    font-weight: bold;
    margin-left: 5px; /* ボタンテキストとのスペース */
}

/* 評価コメント全体のスタイル (既存のsingle-youtuber.phpのスタイルと合わせて調整してください) */
.youtuber-single-rating {
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #fff;
    border-radius: 5px;
}

.youtuber-ratings-list {
    margin-top: 20px;
}

/* YouTubeサムネイルのスタイル */
.youtuber-thumbnail {
    text-align: center; /* 画像を中央に配置する場合 */
    margin-bottom: 20px; /* 画像の下に余白を追加 */
}

.youtuber-thumbnail img {
    /* サイズを直接指定するプロパティは削除 */
    height: auto;    /* アスペクト比は維持 */
    display: block;  /* 中央寄せを適用するため */
    margin-left: auto; /* 中央寄せ */
    margin-right: auto; /* 中央寄せ */
    border: 1px solid #eee; /* 枠線を追加する場合 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 影を追加する場合 */
}

/* モバイル対応（必要に応じて） */
/* 大きな画像が画面からはみ出るのを防ぐため、最低限のmax-widthは残すことが多いです */
@media (max-width: 100%) { /* 画面幅が画像サイズより小さい場合 */
    .youtuber-thumbnail img {
        max-width: 100%; /* 親要素の幅に合わせて最大幅を設定 */
    }
}