:root {
    --bg-dark-color: #000;
    --text-dark-color: #fff;
    --text-dark-subtext-color: #8a8a8a; 
    --text-highlight: #7f81f3;
    --seperator: rgba(218, 107, 203, 0.5);

    /* hidden light theme */
    --bg-light-color: #fff;
    
}

* {
    font-family: Pretendard, apple-system, system-ui, "Helvetica", "Arial", sans-serif;
}

.nav {
    margin-top: 2rem;
    display: flex;
    flex: 1 1 0%;
    justify-content: flex-end;
    gap: 10px;
}

body {
    margin: 0;
    padding: 0 1rem 0rem 1rem;
    min-height: 100vh;
    color: var(--text-dark-color);
    background-color: var(--bg-dark-color);
}

.main {
    display: flex;
    width: 100%;
    min-height: 100vh;
    align-items: center;
    flex-direction: column;
}

.main div, footer {
    flex: 1;
    width: 100%;
    max-width: 75ch;
}

.main footer {
    height: 100%;
    display: flex;
    flex: 1;
    align-items: flex-end;
    justify-content: center;
    color: var(--text-dark-subtext-color)
}

a, .text-highlight {
    color: var(--text-highlight);
    text-decoration: none;
}

.text-normal {
    color: var(--text-dark-color);
}

a:hover {
    text-decoration: underline;
}

ul {
    padding: 1rem;
}

/* Spotify now-playing widget */
.spotify-widget {
    width: 100%;
    max-width: 520px;
    box-sizing: border-box;
    margin: 2rem 0;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.16);
    background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
    box-shadow: 0 10px 35px rgba(0,0,0,.22);
}
.spotify-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b8b8b8;
    font: 700 11px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: .12em;
    padding-bottom: 11px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.spotify-mark { color: #1ed760; font-size: 18px; }
.spotify-live { margin-left: auto; color: #1ed760; font-size: 10px; letter-spacing: .08em; }
.spotify-live span { display: inline-block; width: 6px; height: 6px; margin: 0 5px 1px 0; border-radius: 50%; background: #1ed760; }
.spotify-content { display: flex; gap: 14px; align-items: center; padding: 14px 0 10px; min-width: 0; }
.spotify-cover {
    width: 104px; height: 104px; flex: 0 0 104px; display: grid; place-items: center;
    background: #171717; color: #1ed760; font-size: 38px; overflow: hidden;
    background-size: cover; background-position: center;
}
.spotify-cover img { width: 100%; height: 100%; object-fit: cover; }
.spotify-details { min-width: 0; flex: 1; }
.spotify-label { color: #777; font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .1em; margin: 0 0 6px; }
.spotify-track { color: #fff; font-size: 15px; font-weight: 700; margin: 0 0 4px; overflow-wrap: anywhere; }
.spotify-artist { color: #a0a0a0; font-size: 12px; margin: 0 0 12px; }
.spotify-progress-track { height: 3px; background: #383838; overflow: hidden; }
.spotify-progress-track span { display: block; height: 100%; width: 0; background: #1ed760; transition: width .4s linear; }
.spotify-times { display: flex; justify-content: space-between; color: #777; font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; margin-top: 5px; }
.spotify-state { color: #1ed760; font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; margin: 8px 0 0; }
.spotify-empty { color: #999; font-size: 13px; padding: 18px 0; }
.spotify-open { font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; }
@media (max-width: 420px) {
    .spotify-cover { width: 80px; height: 80px; flex-basis: 80px; }
    .spotify-content { gap: 10px; }
}

/* Keep the artwork column fixed despite the site's general .main div rule. */
.spotify-widget .spotify-cover {
    width: 104px;
    max-width: 104px;
    min-width: 104px;
    flex: 0 0 104px;
}
.spotify-widget .spotify-details {
    width: auto;
    max-width: none;
    flex: 1 1 auto;
}
@media (max-width: 420px) {
    .spotify-widget .spotify-cover {
        width: 80px;
        max-width: 80px;
        min-width: 80px;
        flex-basis: 80px;
    }
}
