/* Discography Styles */
/* 共通のページタイトルスタイルは /common/css/style.css の .page-title を使用してください */

.disc-filter {
    text-align: right;
    margin-top: 30px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}
.disc-filter label {
    font-family: 'Quicksand', sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    color: #666;
}
.disc-filter select {
    padding: 8px 30px 8px 15px;
    font-family: 'Quicksand', sans-serif;
    font-size: 13px;
    border: none;
    background: #333;
    color: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.disc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
    margin-bottom: 60px;
}

.disc-item {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    padding: 10px;
}
.disc-item:hover {
    transform: translateY(-5px);
}
.disc-item:hover .disc-image img {
    opacity: 0.85;
}
.disc-item:hover .disc-arrow {
    transform: translateX(5px);
}

.disc-image {
    position: relative;
    width: 100%;
    height: 300px;
    background: #fff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.disc-image img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    transition: opacity 0.3s ease;
    border: 1px solid #707070;
    box-sizing: border-box;
}
.disc-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
    color: #999;
    font-size: 14px;
}

.disc-arrow {
    display: inline-block;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}
.disc-arrow svg {
    width: 30px;
    height: 10px;
}

.disc-subtitle {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.disc-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.disc-empty {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}
.disc-empty h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 10px;
}

/* Discography Detail Styles */
.disc-detail-header {
    text-align: center;
    margin: 0px 0 40px;
}
.disc-detail-header .disc-subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 0px;
    letter-spacing: 1px;
}
.category-badge {
    display: inline-block;
    padding: 4px 12px;
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
}
.disc-detail-header h1 {
    font-family: 'Quicksand', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #333;
    letter-spacing: 2px;
    line-height: 1.3;
}

.disc-detail-content {
    display: flex;
    gap: 50px;
    margin-bottom: 20px;
}

.disc-detail-left {
    flex: 0 0 45%;
    max-width: 500px;
}

.disc-detail-right {
    flex: 1;
    min-width: 0;
}

.disc-detail-image {
    position: relative;
    width: 100%;
    background: #f5f5f5;
}
.disc-detail-image img {
    width: 100%;
    height: auto;
    display: block;
    border: 2px solid #000;
}
.disc-detail-image-placeholder {
    width: 100%;
    padding-bottom: 100%;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
    position: relative;
}
.disc-detail-image-placeholder span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 画像ナビゲーション（将来的に複数画像対応用） */
.disc-image-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}
.disc-image-nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s;
}
.disc-image-nav-dot.active {
    background: #333;
}

.disc-release-info {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    display: flex;
    align-items: baseline;
    gap: 2em;
    border-bottom: 1px solid #e0e0e0;
}

.disc-tracklist {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}
.disc-tracklist-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.disc-body {
    line-height: 1.8;
    font-size: 14px;
    color: #333;
    text-align: left;
}
.disc-body p {
    font-size: 14px;
    line-height: 1.8;
}
.disc-body a {
    color: #0066cc;
    text-decoration: underline;
}
.disc-body a:hover {
    text-decoration: none;
}
.disc-body strong {
    font-weight: 600;
}
.disc-body ul, .disc-body ol {
    margin: 1em 0;
    padding-left: 1.5em;
}
.disc-body li {
    margin-bottom: 0.5em;
    font-size: 14px;
    line-height: 1.6;
}

.disc-price {
    font-size: 14px;
    color: #333;
}

.disc-back-link {
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: left;
}
.disc-back-link-top {
    margin-top: 15px;
    margin-bottom: 0;
}
.disc-back-link-top a {
    font-size: 12px;
    padding: 8px 18px;
    gap: 6px;
}
.disc-back-link-top .back-arrow {
    width: 16px;
    height: 8px;
}
.disc-back-link-top .back-arrow::after {
    width: 5px;
    height: 5px;
}
.disc-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    padding: 5px 12px;
    border: 1px solid #333;
    border-radius: 5px;
    transition: all 0.3s;
}
.disc-back-link a:hover {
    background: #333;
    color: #fff;
}

.back-arrow {
    display: inline-block;
    width: 20px;
    height: 10px;
    position: relative;
}
.back-arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 0;
    border-top: 1px solid currentColor;
}
.back-arrow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 1px;
    width: 6px;
    height: 6px;
    border-left: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-43%) rotate(45deg);
}

/* ==================== */
/* Discography Modal    */
/* ==================== */
.disc-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.disc-modal-overlay.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 1;
}

.disc-modal {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 860px;
    margin: 60px auto;
    padding: 50px 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: disc-modal-slideIn 0.35s ease;
}
@keyframes disc-modal-slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.disc-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.2s;
    z-index: 1;
}
.disc-modal-close:hover {
    color: #333;
}

.disc-modal-body {
    min-height: 200px;
}

/* モーダル内の詳細ヘッダーの上マージン調整 */
.disc-modal-body .disc-detail-header {
    margin-top: 0;
}

/* ローディングスピナー */
.disc-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}
.disc-modal-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e0e0e0;
    border-top-color: #333;
    border-radius: 50%;
    animation: disc-modal-spin 0.7s linear infinite;
}
@keyframes disc-modal-spin {
    to {
        transform: rotate(360deg);
    }
}

/* モーダル最下部の閉じるボタン */
.disc-modal-close-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}
.disc-modal-close-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    color: #333;
    background: none;
    border: 1px solid #333;
    border-radius: 5px;
    padding: 8px 30px;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}
.disc-modal-close-btn:hover {
    background: #333;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .disc-filter {
        justify-content: center;
        text-align: center;
        margin-bottom: 20px;
    }
    .disc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 15px;
    }
    .disc-title {
        font-size: 13px;
    }
    .disc-subtitle {
        font-size: 11px;
    }
    .disc-detail-content {
        flex-direction: column;
        gap: 30px;
    }
    .disc-detail-left {
        flex: none;
        max-width: 100%;
    }
    .disc-detail-header h1 {
        font-size: 24px;
    }
    .disc-detail-header {
        margin: 0.5rem 0 25px;
    }
    /* モーダルSP対応 */
    .disc-modal {
        width: 95%;
        margin: 20px auto;
        padding: 40px 20px 30px;
    }
    .disc-modal-close {
        top: 8px;
        right: 8px;
        font-size: 40px;
        padding: 8px 14px;
    }

    .disc-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        width: 94%;
        margin: 0 auto 60px;
    }
    .disc-image {
        height: auto;
        aspect-ratio: 1 / 1;
    }
}

