
/* Appearance */

/* Appearance */

:root {
    color-scheme: light dark;

    --background: #ffffff;
    --foreground: #000000;
    --secondary: #666666;
    --separator: #e5e5e5;
    --placeholder: #f2f2f2;
    --button-background: #FA243C;
    --button-foreground: #ffffff;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #000000;
        --foreground: #ffffff;
        --secondary: #a0a0a0;
        --separator: #262626;
        --placeholder: #1c1c1c;
        --button-background: #FA243C;
        --button-foreground: #ffffff;
    }
}
/* Base */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--background);
    color: var(--foreground);
    font-family: -apple-system, BlinkMacSystemFont,
        "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button {
    font-family: inherit;
    cursor: pointer;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: auto;
    padding: 0 20px calc(40px + var(--amazon-music-height) + env(safe-area-inset-bottom, 0px));
}

/* Masthead */

.masthead {
    text-align: center;
    padding: 40px 0 32px;
}

.masthead h1 {
    margin: 0;
}

.masthead-logo {
    display: block;
    width: 300px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.masthead p {
    margin: 8px 0 0;
    font-size: 16px;
    color: var(--secondary);
}

/* Daily song list */

.day-section {
    padding: 18px 0;
    border-bottom: 1px solid var(--separator);
}

.day-label {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
}

.song-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.song-artwork {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 0;
    background: var(--placeholder);
}

.song-info {
    flex: 1;
    min-width: 0;
}

.song-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.song-artist {
    margin: 0;
    font-size: 14px;
    color: var(--secondary);
}

.listen-button {
    flex-shrink: 0;
    border: none;
    border-radius: 20px;
    background: var(--button-background);
    color: var(--button-foreground);
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
}

/* Unreleased songs */

.artwork-placeholder {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: var(--placeholder);
    border-radius: 0;
}

.coming-soon {
    font-size: 15px;
    color: var(--secondary);
}

/* Music platform modal */

.listen-modal {
    width: calc(100% - 40px);
    max-width: 400px;
    padding: 24px;
    border: 1px solid var(--separator);
    border-radius: 16px;
    background: var(--background);
    color: var(--foreground);
}

.listen-modal::backdrop {
    background: rgba(0, 0, 0, 0.6);
}

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

.modal-header h2 {
    margin: 0;
    font-size: 22px;
}

#close-modal {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--placeholder);
    color: var(--foreground);
    font-size: 22px;
}

.platform-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid var(--separator);
    color: var(--foreground);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.platform-link:last-child {
    border-bottom: none;
}



.platform-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.platform-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}


#close-modal:focus {
    outline: none;
}

#close-modal:focus-visible {
    outline: 2px solid var(--foreground);
    outline-offset: 3px;
}