/* お気に入りボタン */
.favorite-btn {
    display: inline-block;
    background: #fff;
    color: #e83e8c;
    border: 2px solid #e83e8c;
    font-weight: bold;
    padding: 10px 18px;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.favorite-btn:hover {
    background: #fce4ec;
}
.favorite-btn.favorited {
    background: #e83e8c;
    color: #fff;
}

/* 個別記事のお気に入りコンテナ */
.single-favorite-container {
    text-align: center;
    margin: 20px 0;
}

/* ハブ記事のsmart-link-box内ボタンを横並び（2×2グリッド）にする */
.smart-link-box {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
}
.smart-link-box a,
.smart-link-box button {
    flex: 0 1 auto !important;
    width: auto !important;
    display: inline-block !important;
    padding: 10px 14px !important;
    font-size: 12px !important;
    border-radius: 25px !important;
    box-sizing: border-box !important;
}
@media(max-width: 480px) {
    .smart-link-box a,
    .smart-link-box button {
        flex: 1 1 calc(50% - 6px) !important;
        min-width: 0 !important;
        text-align: center !important;
        padding: 10px 8px !important;
        font-size: 11px !important;
    }
}

/* お気に入り一覧グリッド */
.favorites-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}
.favorite-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: calc(33.333% - 14px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
@media(max-width: 768px) {
    .favorite-card {
        width: calc(50% - 10px);
    }
}
@media(max-width: 480px) {
    .favorite-card {
        width: 100%;
    }
}
.favorite-card.is-unlimited {
    border: 2px solid #007bff;
}

.unlimited-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #007bff;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-bottom-right-radius: 8px;
    z-index: 2;
}

.fav-thumb {
    width: 100%;
    height: 180px;
    background: #f5f5f5;
    overflow: hidden;
}
.fav-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
}

.fav-title {
    padding: 12px;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;
    flex-grow: 1;
}

.fav-actions {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    border-top: 1px solid #eee;
    background: #fafafa;
}
.fav-view-btn {
    background: #28a745;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
}
.fav-view-btn:hover {
    background: #218838;
}
.fav-remove-btn {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}
.fav-remove-btn:hover {
    background: #c82333;
}

/* 見放題プロモバナー */
.unlimited-promo-banner {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.unlimited-promo-banner h3 {
    margin: 0 0 10px 0;
    color: #fff;
}
.unlimited-promo-banner p {
    margin: 0 0 15px 0;
    font-size: 14px;
}
.promo-btn {
    font-size: 16px !important;
    padding: 15px 30px !important;
}

.fav-go-list-link {
    display: inline-block;
    margin-left: 10px;
    font-size: 13px;
    color: #007bff;
    text-decoration: underline;
    font-weight: bold;
    vertical-align: middle;
}
.fav-go-list-link:hover {
    color: #0056b3;
}

.fav-aff-btn {
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    color: #fff !important;
}
.fav-unlimited {
    background: #007bff;
}
.fav-unlimited:hover {
    background: #0056b3;
}
.fav-single {
    background: #ff6600;
}
.fav-single:hover {
    background: #cc5200;
}
.promo-btn-massive {
    display: inline-block;
    background: #ffc107;
    color: #000 !important;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    font-size: 18px;
    margin-top: 10px;
    transition: all 0.2s;
}
.promo-btn-massive:hover {
    background: #e0a800;
    transform: scale(1.05);
}
