/* Base Styles */
:root {
    --bg-color: #0d0d0d;
    --text-color: #ffffff;
    --accent-color: #ff0000; /* Assuming a red accent fits the band vibe */
    --hover-overlay: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
    padding: 40px 20px;
    text-align: center;
}

.logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
    /* filter: invert(1); Removed as per user change */
}

/* Main Content */
.main-content {
    padding: 0 10% 80px; /* Significantly increased side padding for wider whitespace */
    max-width: 1200px; /* Reduced max-width to condense content */
    margin: 0 auto;
}

.artist-photo-container {
    width: 100%;
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
}

.artist-photo {
    width: 100%;
    /* max-width: 1000px; Removed to match grid width */
    height: auto;
    object-fit: contain;
    display: block;
}

/* Grid Layout (Desktop Default) */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Changed to 3 columns */
    gap: 60px 40px; /* Increased gap */
    /* padding: 0 40px; Removed to match artist photo width (controlled by main-content padding) */
}

.disc-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.disc-item {
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    cursor: pointer;
}

/* Apply hover effect when hovering the link wrapper */
.disc-item-link:hover .disc-item {
    transform: translateY(-5px);
}

.image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    background-color: #222;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.disc-item-link:hover .image-wrapper img {
    transform: scale(1.05);
}

.info {
    text-align: left;
}

.title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
}

.type {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Detail Page Styles */
.back-link-container {
    margin-bottom: 40px;
}

.back-link {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #fff;
}

.detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.detail-image-wrapper {
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

.detail-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.detail-info {
    padding-top: 20px;
}

.detail-type {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.1em;
}

.detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.2;
}

.detail-tracklist h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.detail-tracklist ol {
    list-style-position: inside;
    padding-left: 0;
    color: #ccc;
    margin-bottom: 40px;
}

.detail-tracklist li {
    margin-bottom: 10px;
    border-bottom: 1px solid #222;
    padding-bottom: 10px;
}

.detail-description {
    line-height: 1.8;
    color: #bbb;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    font-size: 0.8rem;
    color: #666;
    border-top: 1px solid #222;
    margin-top: 40px;
}

/* Media Queries (At the bottom as requested) */

/* Tablet (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
        padding: 0; /* Reset extra padding on smaller screens */
    }
    
    .main-content {
        padding: 0 30px 60px;
    }

    .detail-container {
        gap: 40px;
    }
    
    .detail-title {
        font-size: 2rem;
    }
}

/* Mobile Large / Small Tablet (max-width: 768px) */
@media screen and (max-width: 768px) {
    .header {
        padding: 30px 20px;
    }
    
    .logo {
        max-width: 200px;
    }

    /* Index Adjustments */
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }
    
    .main-content {
        padding: 0 20px 60px;
    }
    
    .title {
        font-size: 1rem;
    }

    /* Detail Page Adjustments */
    .detail-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .detail-title {
        font-size: 1.75rem;
    }
}
