.snaf-favorite-action { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; flex-wrap: wrap; }
.snaf-favorite-button { border: 1px solid #b45309; border-radius: 999px; background: #fff7ed; color: #9a3412; padding: 8px 14px; font-weight: 700; cursor: pointer; }
.snaf-favorite-button.is-saved { border-color: #0f766e; background: #f0fdfa; color: #115e59; }
.snaf-favorite-button:disabled { opacity: .65; cursor: wait; }
.snaf-favorite-list-link { display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; color: #0f766e; text-decoration: none; padding: 6px 14px; border: 1px solid #cbd5e1; border-radius: 999px; background: #ffffff; transition: all .15s ease; }
.snaf-favorite-list-link:hover { background: #f0fdfa; border-color: #0f766e; color: #0f766e; text-decoration: none; }
.snaf-favorite-status { color: #64748b; font-size: .86em; }
.snaf-favorites { margin: 24px 0; }
.snaf-favorites__header { display: flex; align-items: start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.snaf-favorites__header h2 { margin: 0 0 6px; }
.snaf-favorites__header p { margin: 0; color: #475569; }
.snaf-favorites__mix-link, .snaf-favorite-mix__next { display: inline-block; border-radius: 7px; padding: 8px 12px; background: #0f766e; color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.snaf-favorites__mix-locked { color: #64748b; font-size: .9em; }
.snaf-favorites__empty { padding: 18px; border: 1px dashed #cbd5e1; border-radius: 8px; color: #475569; }
.snaf-favorites__limit-note { margin: 14px 0 0; color: #92400e; font-size: .9em; }
.snaf-favorites__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.snaf-favorite-card { border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; background: #fff; }
.snaf-favorite-card a { display: block; color: #1e293b; text-decoration: none; font-weight: 700; }
.snaf-favorite-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.snaf-favorite-card span { display: block; padding: 8px; font-size: .9em; line-height: 1.4; }
.snaf-favorite-mix, .snaf-mix-box { display: flex; flex-direction: column; align-items: center; margin: 0 auto 20px; padding: 16px; border: 2px solid #99f6e4; border-radius: 12px; background: #f0fdfa; text-align: center; box-sizing: border-box; max-width: min(100%, 600px); width: 100%; }
.snaf-favorite-mix__label, .snaf-mix-box__label { margin: 0 0 12px; font-weight: 700; color: #0f766e; font-size: 1.05em; }

/* 画像ステージ：高さ固定・アスペクト比保護 (object-fit: contain) */
.snaf-mix-box__stage { position: relative; width: 100%; height: min(48vh, 420px); min-height: 260px; background: #0f172a; border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.snaf-mix-box__image-link { display: flex !important; align-items: center; justify-content: center; width: 100% !important; height: 100% !important; text-decoration: none; box-sizing: border-box; }
.snaf-mix-box__stage img, .snaf-mix-box__image-link img { width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important; object-fit: contain !important; margin: 0 !important; display: block !important; }
.snaf-mix-box__flash { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #ffffff; opacity: 0; pointer-events: none; transition: opacity 0.2s ease-out; z-index: 10; }
.snaf-mix-box__flash.is-active { opacity: 1; transition: opacity 0.04s ease-in; }

/* 投稿タイトル領域：高さ固定 */
.snaf-mix-box__info { margin: 8px 0 12px; min-height: 2.8em; display: flex; align-items: center; justify-content: center; width: 100%; }
.snaf-mix-box__title-link { text-decoration: none; color: inherit; display: block; max-width: 100%; }
.snaf-favorite-mix strong, .snaf-mix-box__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; color: #134e4a; font-size: 0.98em; margin: 0; }

/* 最下部フッターボタン：連打しても位置が完全に静止 */
.snaf-mix-box__footer { width: 100%; text-align: center; margin-top: auto; padding-top: 4px; }
.snaf-favorite-mix__next, .snaf-mix-box__next-footer { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 22px; background: #0f766e; color: #ffffff !important; font-weight: 700; font-size: 0.95em; border-radius: 999px; text-decoration: none; border: none; cursor: pointer; box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25); transition: background-color 0.15s ease, transform 0.1s ease; white-space: nowrap; }
.snaf-favorite-mix__next:hover, .snaf-mix-box__next-footer:hover { background: #0d9488; color: #ffffff !important; text-decoration: none; transform: translateY(-1px); }
.snaf-favorite-mix__next:active, .snaf-mix-box__next-footer:active { transform: translateY(1px); }

@media (max-width: 600px) { .snaf-favorites__header { display: block; } .snaf-favorites__header > :last-child { display: inline-block; margin-top: 12px; } .snaf-favorites__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* マイページ用お気に入り要約カード */
.snaf-mypage-favorite-summary h2 { margin: 0 0 8px; }
.snaf-mypage-favorite-summary p { margin: 0 0 12px; color: #475569; }
.snaf-mypage-favorite-action-wrap { margin: 0; }

/* お気に入りペジネーション */
.snaf-favorites-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 20px 0 12px; flex-wrap: wrap; }
.snaf-favorites-pagination__page { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: #334155; font-weight: 700; text-decoration: none; }
.snaf-favorites-pagination__page.is-current { border-color: #0f766e; background: #0f766e; color: #fff; }
.snaf-favorites-pagination__locked { display: inline-flex; align-items: center; padding: 0 10px; height: 36px; color: #94a3b8; font-size: .88em; border: 1px dashed #cbd5e1; border-radius: 6px; }

/* 専用ページ関連のアクション */
.snaf-favorites-actions { margin-top: 24px; padding-top: 16px; border-top: 1px solid #e2e8f0; }
.snaf-favorites-actions a { color: #0f766e; font-weight: 700; text-decoration: none; }

/* ==========================================================
 * 4. マルチMIX（縦10枚 & ギャラリー）共通スタイル
 * ==========================================================
 */
.snaf-mix-multi-container {
    position: relative;
    margin: 28px auto;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-sizing: border-box;
    max-width: 100%;
}

.snaf-mix-multi-container.is-locked {
    background: #fef2f2;
    border-color: #fecaca;
}

.snaf-mix-header__title {
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0f766e;
    color: #0f172a;
    font-size: 1.25em;
    font-weight: 700;
}

/* フィルタ操作パネル */
.snaf-mix-filter-panel {
    margin-bottom: 16px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

.snaf-mix-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.snaf-mix-filter-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
}

.snaf-mix-filter-label {
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
}

.snaf-mix-filter-select {
    padding: 6px 10px;
    font-size: 0.9em;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #f8fafc;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.snaf-mix-filter-select:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.2);
}

/* アクションボタン領域 */
.snaf-mix-action-area {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

.snaf-mix-action-top {
    margin-top: 14px;
    margin-bottom: 20px;
}

.snaf-mix-action-bottom {
    margin-top: 20px;
    margin-bottom: 8px;
}

.snaf-mix-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    font-size: 1.05em;
    font-weight: 700;
    color: #ffffff !important;
    background: #0f766e;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.3);
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.snaf-mix-btn:hover:not(:disabled) {
    background: #0d9488;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 118, 110, 0.4);
}

.snaf-mix-btn:active:not(:disabled) {
    transform: translateY(1px);
}

.snaf-mix-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

/* ギャラリーミックス専用ボタンスタイル（ピンク系アクセント） */
.snaf-mix-gallery-container .snaf-mix-btn {
    background: #EF79AB;
    box-shadow: 0 4px 14px rgba(239, 121, 171, 0.35);
}

.snaf-mix-gallery-container .snaf-mix-btn:hover:not(:disabled) {
    background: #e85d97;
    box-shadow: 0 6px 18px rgba(239, 121, 171, 0.45);
}


/* 初期プレースホルダー & メッセージ */
.snaf-mix-stage {
    position: relative;
    min-height: 120px;
}

.snaf-mix-placeholder,
.snaf-mix-empty-message {
    padding: 30px 20px;
    text-align: center;
    background: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.95em;
}

.snaf-noscript-notice,
.snaf-mix-noscript-notice {
    padding: 10px 14px;
    margin-bottom: 12px;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    color: #b45309;
    border-radius: 6px;
    font-size: 0.9em;
}

/* ステージ全体のフラッシュ演出 */
.snaf-mix-stage-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease-out;
    z-index: 100;
    border-radius: 8px;
}

.snaf-mix-stage-flash.is-active {
    opacity: 0.85;
    transition: opacity 0.04s ease-in;
}

/* ==========================================================
 * 5. ランダムMIX・縦12枚表示スタイル
 * ==========================================================
 */
.snaf-mix-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.snaf-mix-vertical-gallery-wrap {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 2px dashed #cbd5e1;
}

.snaf-mix-vertical-gallery__header {
    margin-bottom: 16px;
    text-align: center;
}

.snaf-mix-vertical-gallery__title {
    display: inline-block;
    padding: 4px 16px;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.92em;
    font-weight: 700;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.snaf-mix-action-vertical-bottom {
    margin-top: 32px;
    margin-bottom: 16px;
    text-align: center;
}

.snaf-mix-vertical-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.snaf-mix-vertical-item__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.snaf-mix-vertical-item__number {
    display: inline-block;
    padding: 2px 8px;
    background: #0f766e;
    color: #ffffff;
    font-size: 0.82em;
    font-weight: 700;
    border-radius: 4px;
}

.snaf-mix-vertical-item__title-link {
    color: #1e293b;
    text-decoration: none;
    font-size: 0.98em;
    line-height: 1.4;
}

.snaf-mix-vertical-item__title-link:hover {
    color: #0f766e;
    text-decoration: underline;
}

.snaf-mix-vertical-item__image-wrap {
    width: 100%;
    text-align: center;
    background: #ffffff;
}

.snaf-mix-vertical-item__image-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.snaf-mix-vertical-item__image-wrap img,
.snaf-mix-vertical-item__image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

/* ==========================================================
 * 6. ランダムMIX・ギャラリー表示スタイル (digest流用・拡張)
 * ==========================================================
 */
.snaf-mix-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-evenly;
    padding: 16px;
    background: #ffffff;
    border-radius: 8px;
}


.snaf-mix-gallery-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 140px;
}

.snaf-mix-gallery-cell a.a-wrap {
    display: block;
    width: 140px;
    height: 140px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.snaf-mix-gallery-cell a.a-wrap:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.snaf-mix-gallery-cell img.digest {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
}

.snaf-mix-gallery-cell__meta {
    margin-top: 6px;
    width: 100%;
    text-align: center;
}

.snaf-mix-gallery-cell__link {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.78em;
    line-height: 1.3;
    color: #475569;
    text-decoration: none;
}

.snaf-mix-gallery-cell__link:hover {
    color: #0f766e;
    text-decoration: underline;
}

/* ナビゲーションバー */
.snaf-mix-nav-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding: 10px 14px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

.snaf-mix-nav-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.snaf-mix-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.snaf-mix-nav-btn:hover {
    color: #0f766e;
    border-color: #0f766e;
    background: #f0fdfa;
    text-decoration: none;
}

.snaf-mix-nav-btn.is-active {
    color: #ffffff;
    background: #0f766e;
    border-color: #0f766e;
}

.snaf-mix-nav-btn.is-locked {
    opacity: 0.65;
    background: #e2e8f0;
    color: #64748b;
    border-color: #cbd5e1;
    cursor: not-allowed;
}

.snaf-mix-nav-switch-link {
    font-size: 13px;
    font-weight: 700;
    color: #4f46e5;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(79, 70, 229, 0.08);
}

.snaf-mix-nav-switch-link:hover {
    color: #3730a3;
    text-decoration: underline;
}

/* ロックアイコン（既存 image-restriction.css の黄金グラデーションベースのサイズ調整版） */
.snaf-mix-lock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 11px;
    line-height: 1;
    color: #ffffff;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    margin-right: 3px;
    vertical-align: middle;
}

/* ロックされたフィルタアイテム */
.snaf-mix-filter-item.is-locked-item {
    opacity: 0.7;
}

.snaf-mix-filter-item select:disabled {
    background-color: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

/* チェックボックストグル */
.snaf-mix-filter-item-toggles {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.snaf-mix-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    user-select: none;
}

.snaf-mix-checkbox-label input[type="checkbox"] {
    cursor: pointer;
}

.snaf-mix-checkbox-label.is-locked-toggle {
    opacity: 0.6;
    cursor: not-allowed;
}

.snaf-mix-checkbox-label.is-locked-toggle input[type="checkbox"] {
    cursor: not-allowed;
}

/* スマホ表示対応 */
@media screen and (max-width: 768px) {
    .snaf-mix-filter-row {
        gap: 8px;
    }

    .snaf-mix-filter-item {
        width: 100%;
        justify-content: space-between;
    }

    .snaf-mix-filter-select {
        max-width: 65%;
    }

    .snaf-mix-filter-item-toggles {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
        padding-top: 6px;
        border-top: 1px dashed #e2e8f0;
    }

    .snaf-mix-nav-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .snaf-mix-nav-switch {
        text-align: right;
        margin-top: 4px;
    }

    .snaf-mix-gallery-cell,
    .snaf-mix-gallery-cell a.a-wrap {
        width: 96px;
        height: 96px;
    }
    
    .snaf-mix-gallery-cell {
        height: auto;
    }

    .snaf-mix-gallery-grid {
        gap: 8px;
        padding: 10px;
    }

    .snaf-mix-vertical-list {
        gap: 48px;
    }

    .snaf-mix-vertical-gallery-wrap {
        margin-top: 36px;
    }
}


