/* --- Global Box Sizing Reset --- */
* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* --- Global Reset & Base Styles --- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- Splash Screen (No changes needed) --- */
#splash-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.8s ease-in-out;
}

#splash-curtain.revealed {
    transform: translateY(-100vh);
    pointer-events: none;
}

.splash-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    max-width: 80%;
}

.splash-logo-image {
    width: 100%;
    height: auto;
    opacity: 0.9;
}

.splash-message {
    position: absolute;
    bottom: 10vh;
    text-align: center;
    color: #fff;
    font-size: 1.2em;
    opacity: 0.8;
}

.splash-arrow {
    font-size: 2em;
    margin-top: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* --- Sidebar Navigation (Fixed) --- */
.sidebar-nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 200px;
    background-color: #1a1a1a;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-right: 1px solid #333;
    z-index: 900;
}

.sidebar-nav a {
    color: #b3b3b3;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 500;
    padding: 10px 0;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.sidebar-nav a:hover {
    color: #fff;
    border-left: 3px solid #4A90E2;
    padding-left: 10px;
}

.sidebar-nav .cta-link {
    background: linear-gradient(135deg, #4A90E2, #5B9EEC);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: auto;
    border: none;
    font-size: 1em;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: all 0.2s ease;
}

.sidebar-nav .cta-link:hover {
    background: linear-gradient(135deg, #5B9EEC, #4A90E2);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.6);
}

/* --- Main Content Container (Adjusted for fixed sidebar) --- */
.main-content {
    margin-left: 200px;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    height: 100vh;
    transition: background 0.8s ease-in-out;
}

/* --- Site Header --- */
.site-header {
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    padding: 20px 0;
}

.site-logo {
    width: 200px;
}

.tagline {
    font-size: 1.1em;
    color: #ccc;
    text-align: right;
    line-height: 1.4;
    max-width: 250px;
}

/* --- Content Cards (The scrollable sections) --- */
.content-card {
    scroll-snap-align: start;
    min-height: 100vh;
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.player-content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Main content blocks inside cards --- */
.player, .artist-info, .vinyl-buy {
    background-color: #1e1e1e;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.5);
    color: #b3b3b3;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Player Sizing and Layout --- */
.player {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 20px;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.album-art-container {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

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

.player-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 15px;
}

.track-info-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#albumTitle {
    font-size: 1.5em;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.artistName {
    font-size: 0.9em;
    color: #b3b3b3;
    margin: 0;
}

.player-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.player-controls-box {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.control-btn {
    background-color: transparent;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.play-pause {
    font-size: 1.8em;
    width: 45px;
    height: 45px;
}

/* --- Progress Bar Container --- */
.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

#progressBar {
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    height: 8px; /* thicker track */
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    flex: 1;
    background: #535353;
}

#progressBar::-webkit-slider-runnable-track {
    background: #535353;
    border-radius: 4px;
}

#progressBar::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #4A90E2;
    margin-top: -4px;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    transition: background 0.2s ease-in-out, transform 0.1s ease;
}

#progressBar::-moz-range-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #4A90E2;
    cursor: pointer;
}

.time-display {
    font-size: 0.8em;
    color: #b3b3b3;
    flex-shrink: 0;
}

.loading-indicator-main {
    text-align: center;
    font-size: 1.2em;
    margin-top: 15px;
    display: none; /* Hide by default, will be shown by JS */
}

/* --- Artist Info Card --- */
.artist-info {
    flex: 1 1 auto;
    width: 90%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.artist-photo {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
}

/* --- Vinyl Card --- */
.vinyl-buy {
    flex: 1 1 auto;
    width: 90%;
    max-width: 1000px;
    text-align: left;
}

.vinyl-buy h3, .vinyl-buy p {
    text-align: left;
}

.vinyl-buy ul {
    text-align: left;
    list-style-type: disc;
    padding-left: 20px;
}

.vinyl-buy ul li:before {
    content: none;
}

.vinyl-buy .buy-button {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    .main-content {
        margin-left: 0;
    }
    .sidebar-nav {
        display: none;
    }
    .site-header {
        position: static;
        padding: 20px;
    }
    .player {
        flex-direction: column;
        align-items: center;
    }
    .player-info {
        align-items: center;
        text-align: center;
    }
    .artist-photo {
        width: 150px;
        height: 150px;
    }
}
