
/* ========================================
   映画館の検索エリア
======================================== */

.movie-search {
    margin-top: 28px;
}

.movie-search[hidden],
#movie-search[hidden] {
    display: none !important;
}

#movie-product,
#movie-product-category,
#movie-store-search {
    display: block;
    width: 100%;
    min-height: 46px;
    margin-bottom: 12px;
    padding: 10px 14px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    color: #222;
    font-size: 16px;
}

/* ========================================
   地域ボタン
======================================== */

.movie-region-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.movie-region-buttons button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
    min-height: 46px;
    padding: 8px 10px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
    color: #222;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.movie-region-buttons button.selected {
    border-color: #C41E3A;
    background: #fff5f6;
}

/* 地域の店舗数 */
.movie-region-buttons [data-count] {
    display: inline-flex;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #C41E3A;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

/* ========================================
   都道府県ボタン
======================================== */

.movie-prefecture-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -6px 0 18px;
}

.movie-prefecture-buttons[hidden] {
    display: none !important;
}

.movie-prefecture-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    background: #fff;
    color: #444;
    font-size: 12px;
    cursor: pointer;
}

.movie-prefecture-button.selected {
    border-color: #C41E3A;
    background: #fff5f6;
    color: #C41E3A;
    font-weight: 700;
}

.movie-prefecture-button .reservation-store-count {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    font-size: 12px;
}

/* ========================================
   在庫状況フィルター
======================================== */

.movie-status-filter {
    margin: 12px 0;
}

.movie-status-filter select {
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 14px;
}

/* ========================================
   検索結果
======================================== */

.movie-stock-list {
    display: grid;
    gap: 12px;
}

.movie-stock-message {
    padding: 24px 12px;
    color: #777;
    font-size: 14px;
    text-align: center;
}

#movie-stock-results {
    text-align: center;
}

#movie-stock-results .movie-stock-message {
    text-align: center;
}

/* ========================================
   映画館カード
======================================== */

.movie-stock-card {
    padding: 14px;
    border: 1px solid #eee;
    border-radius: 14px;
    background: #fff;
}

.movie-stock-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.movie-stock-store-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.movie-stock-store-name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    overflow-wrap: anywhere;
    text-align: left;
}

.movie-stock-store-location {
    margin-top: 5px;
    color: #666;
    font-size: 12px;
    text-align: left;
}

/* 共有・お気に入り */
.movie-stock-card-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.movie-header-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #888;
    cursor: pointer;
}

.movie-header-share svg {
    width: 19px;
    height: 19px;
}

/* お気に入りの☆ */
.movie-stock-favorite {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #aaa;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.movie-stock-favorite.is-favorite {
    color: #C41E3A;
    font-size: 0;
}

.movie-stock-favorite.is-favorite::before {
    content: "★";
    font-size: 25px;
}

/* ========================================
   在庫情報
======================================== */

.movie-stock-items {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.movie-stock-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
}

.movie-stock-product {
    flex: 1;
    min-width: 0;
    text-align: left;
    overflow-wrap: anywhere;
}

/* ムビチケ・グッズのタグ */
.movie-stock-category {
    display: inline-flex;
    align-items: center;
    margin-bottom: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #fcecef;
    color: #C41E3A;
    font-size: 11px;
    font-weight: 700;
}

/* 作品名 */
.movie-stock-product-name {
    color: #333;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* メモ */
.movie-stock-memo {
    margin-top: 5px;
    color: #666;
    font-size: 11px;
    overflow-wrap: anywhere;
}

/* 登録ボタン */
.movie-stock-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: wrap;
    max-width: 100%;
    margin-top: 6px;
    box-sizing: border-box;
}

.movie-register-button {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    max-width: 100%;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid #F0D5DD;
    border-radius: 7px;
    background: #F9EDF0;
    color: #A52843;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: none;
    cursor: pointer;
    white-space: normal;
    overflow-wrap: anywhere;
}

.movie-register-button:active {
    background: #F1DCE2;
}

/* ========================================
   在庫状況
======================================== */

.movie-stock-status-area {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    max-width: 55%;
}

/* カプセル型ステータス */
.movie-stock-status {
    display: inline-block;
    max-width: 100%;
    padding: 5px 10px;
    border: none;
    border-radius: 999px;
    background: #f0f0f0;
    color: #555;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}

.movie-stock-status.status-available {
    background: #e6f5e9;
    color: #24783a;
}

.movie-stock-status.status-few {
    background: #fff3d6;
    color: #946500;
}

.movie-stock-status.status-soldout {
    background: #fde8e8;
    color: #b42323;
}

.movie-stock-status.status-nothing {
    background: #f0e8fa;
    color: #7541a0;
}

/* 更新日時 */
.movie-stock-status-area .movie-stock-updated {
    margin-top: 0;
    color: #888;
    font-size: 10px;
    text-align: right;
    white-space: nowrap;
}

/* ========================================
   未登録映画館
======================================== */

.movie-unregistered-section {
    margin-top: 28px;
}

.movie-unregistered-title {
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
    font-weight: 700;
}

.movie-unregistered-section .movie-stock-items {
    padding-top: 6px;
    padding-bottom: 6px;
}

.movie-unregistered-section .movie-stock-message {
    margin-top: 4px;
    margin-bottom: 4px;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1.5;
}

/* ========================================
   PC表示
======================================== */

@media (min-width: 600px) {
    .movie-region-buttons {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .movie-stock-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.movie-goods-group .movie-stock-item {
    border-top: none;
    border-bottom: none;
    padding: 4px 0;
}