@charset "utf-8";

/**
 * 会員側購入済みアルバム一覧CSS
 * 参考デザイン: /Users/reas_s.hashimoto/Downloads/有料送信/会員側/購入済みアルバム一覧.png
 */


/* アルバム一覧 */
.album-container {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 1200px;
    max-width: 1400px;
}

.album-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.album-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    background: white;
}

.album-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.album-thumbnail {
    width: 100%;
    height: 200px;
    background: #f5f5f5;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ローディング画像の初期設定 */
.album-thumbnail[data-file-name]:not([style*="cloudfront"]) {
    background-image: url('https://assets.angel-live.com/common/agent/img/loading.png') !important;
    background-size: 32px 32px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.album-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-info {
    padding: 15px;
}

.album-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.album-details {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

.album-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.media-counts {
    display: flex;
    gap: 8px;
    align-items: center;
}

.image-count,
.video-count {
    color: #666;
    font-weight: normal;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.image-count::before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url('https://assets.angel-live.com/paid_media/member/icon-image-border.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.video-count::before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url('https://assets.angel-live.com/paid_media/member/icon-video-fill.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.likes-count {
    color: #ff69b4;
    font-size: 12px;
}

.performer-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.performer-profile-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
}

.performer-profile-link:hover {
    text-decoration: none;
    color: #ff69b4;
}

.performer-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    vertical-align: middle;
}

.performer-name {
    font-size: 12px;
    color: #333;
    font-weight: normal;
    line-height: 20px;
    vertical-align: middle;
}

.album-count {
    color: #ff69b4;
    font-weight: bold;
    margin-bottom: 5px;
}

.purchase-date,
.expires-date {
    margin-bottom: 3px;
}

/* 空のメッセージ */
.empty-message {
    text-align: center;
    padding: 50px;
    color: #666;
    font-size: 16px;
}

/* ページネーション */
.paid-media-pager-container {
    text-align: center;
    margin-top: 30px;
}

.paid-media-pager {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.paid-media-pager-item {
    display: block;
}

.paid-media-pager-item a,
.paid-media-pager-item span {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    transition: background-color 0.2s;
}

.paid-media-pager-item a:hover {
    background-color: #f0f0f0;
}

.paid-media-pager-item.is_current span {
    background-color: #ff69b4;
    color: white;
    border-color: #ff69b4;
}

.paid-media-pager-item.is_disabled span {
    color: #ccc;
    background-color: #f9f9f9;
    border-color: #e0e0e0;
}

/* モーダル共通 */
.album-modal,
.media-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* アルバム詳細モーダル */
.album-modal-content {
    background: white;
    border-radius: 8px;
    max-width: 800px;
    max-height: 80vh;
    width: 90%;
    overflow: hidden;
}

.album-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.album-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
}

.album-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

/* メディアギャラリー（アルバム詳細ページ用） */
.media-gallery-container {
    margin-top: 30px;
}

.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

/* アルバム詳細ページでのメディアレイアウト調整 */
#member-album-detail .media-gallery {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    padding: 0;
}

#member-album-detail .media-thumbnail {
    aspect-ratio: 1 / 1;
    height: auto;
}

/* アルバム詳細ヘッダー */
.album-detail-header {
    margin-bottom: 30px;
    padding-bottom: 0;
    border-bottom: none;
}

.album-detail-title {
    font-size: 20px;
    color: #ff69b4;
    margin: 0 0 20px 0;
    padding: 0 0 0 15px;
    border-left: 4px solid #ff69b4;
    line-height: 1.4;
    font-weight: normal;
}

.performer-detail-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.performer-detail-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.performer-detail-name {
    font-size: 14px;
    color: #333;
    font-weight: normal;
}

.media-item {
    position: relative;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s;
}

.media-item:hover {
    transform: scale(1.05);
}

.media-thumbnail {
    position: relative;
    width: 100%;
    height: 120px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-type-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
    pointer-events: none;
}

.media-type-icon.image {
    background-image: url('https://assets.angel-live.com/paid_media/member/icon-image-border.png');
}

.media-type-icon.video {
    background-image: url('https://assets.angel-live.com/paid_media/member/icon-video-fill.png');
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 14px;
}

/* メディア詳細モーダル */
.media-modal-content {
    background: white;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    position: relative;
    overflow: hidden;
}

.media-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 10;
}

.media-display {
    text-align: center;
}

.media-display img,
.media-display video {
    max-width: 100%;
    max-height: 70vh;
}

.media-info {
    padding: 15px;
    background: #f8f9fa;
    font-size: 14px;
    color: #666;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .content {
        padding: 10px;
    }
    
    .primary-title {
        font-size: 24px;
    }
    
    .album-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .album-modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .media-gallery {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .media-thumbnail {
        height: 100px;
    }
    
    /* アルバム詳細ページのレスポンシブ */
    #member-album-detail .media-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}