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

body {
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    background-color: #fefefe;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.logo {
    height: 64px;
    width: auto;
    /* Apply color filter to change white to dark orange (#8B4513) */
    filter: brightness(0) saturate(100%) invert(27%) sepia(48%) saturate(1366%) hue-rotate(16deg) brightness(91%) contrast(89%);
}

.header-text {
    text-align: left;
}

h1 {
    font-size: 2.5em;
    color: #8B4513;
    margin-bottom: 5px;
    margin-top: 0;
}

.subtitle {
    color: #666;
    font-style: italic;
    font-size: 1.1em;
    margin: 0;
}

section {
    margin-bottom: 40px;
}

h2 {
    color: #8B4513;
    font-size: 1.5em;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

p {
    margin-bottom: 15px;
}

.note {
    background-color: #f9f9f9;
    padding: 15px;
    border-left: 4px solid #8B4513;
    font-style: italic;
    margin-bottom: 20px;
}

.player {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.track-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.current-track h3 {
    margin: 0;
    color: #8B4513;
}

#track-number {
    color: #666;
    font-size: 14px;
    font-weight: normal;
}

.current-track p {
    color: #666;
    margin-bottom: 15px;
}

.controls {
    text-align: center;
    margin-bottom: 20px;
}

.controls button {
    background: #8B4513;
    color: white;
    border: none;
    padding: 12px 16px;
    margin: 0 5px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.controls button:hover {
    background: #654321;
}

.controls button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.progress {
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #ddd;
    border-radius: 3px;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background-color: #8B4513;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s;
}

.time {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #666;
}

.album-gallery {
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
    margin-bottom: 30px;
    justify-content: center;
    overflow-x: auto;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 0 20px;
    box-sizing: border-box;
}

.album-thumbnail {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.album-thumbnail:hover {
    transform: translateY(-2px);
}

.album-thumbnail.unavailable img {
    opacity: 0.6;
    filter: grayscale(95%);
}

.album-thumbnail img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    display: block;
    border: 3px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.album-thumbnail:hover img {
    border-color: #8B4513;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.album-thumbnail.selected img {
    border-color: #8B4513;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.4);
}

.album-numeral {
    position: absolute;
    bottom: 2px;
    left: 2px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
}

.album-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
    margin-bottom: 5px;
}

.album-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.album-thumbnail:hover .album-tooltip {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .album-gallery {
        gap: 3px;
    }
    
    .album-thumbnail img {
        width: 50px;
        height: 50px;
    }
    
    .album-numeral {
        font-size: 10px;
        padding: 1px 4px;
    }
}

.current-album {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.album-display {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.album-art {
    flex-shrink: 0;
}

.album-art img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.placeholder {
    width: 120px;
    height: 120px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #8B4513;
    border-radius: 4px;
}

.album-details h3 {
    color: #8B4513;
    margin-bottom: 5px;
    font-size: 1.4em;
}

.album-details p {
    color: #666;
    margin-bottom: 15px;
}

.download {
    display: inline-block;
    padding: 8px 16px;
    background-color: #8B4513;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
}

.download:hover {
    background-color: #654321;
}

.unavailable {
    color: #999;
    font-style: italic;
    padding: 8px 16px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 0.9em;
}

.album-thumbnail.unavailable {
    background: none;
    padding: 0;
    color: inherit;
    font-style: normal;
}

.track-list h4 {
    color: #8B4513;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.track {
    padding: 10px 15px;
    margin-bottom: 5px;
    background-color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-left: 3px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.track:hover {
    background-color: #f0f0f0;
}

.track.selected {
    background-color: #e8e8e8;
    border-left-color: #8B4513;
}

.track.playing {
    background-color: #8B4513;
    color: white;
    border-left-color: #654321;
}

.track.unavailable {
    background-color: #f8f8f8;
    color: #999;
    cursor: not-allowed;
}

.track.unavailable:hover {
    background-color: #f8f8f8;
}

.track-title {
    flex: 1;
}

.track-duration {
    color: #666;
    font-size: 0.9em;
    margin-left: 15px;
}

.track.playing .track-duration {
    color: #ddd;
}

option.unavailable {
    color: #999;
    font-style: italic;
}

ul {
    list-style: none;
}

ul li {
    margin-bottom: 8px;
}

ul li:before {
    content: "• ";
    color: #8B4513;
    font-weight: bold;
}

a {
    color: #8B4513;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    color: #666;
    font-size: 0.9em;
}

@media (max-width: 600px) {
    body {
        padding: 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-text {
        text-align: center;
    }
    
    .logo {
        height: 48px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .player {
        padding: 15px;
    }
    
    .controls button {
        padding: 10px 14px;
        font-size: 14px;
    }
}