body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont;
    background: var(--bg);
    color: var(--text);
    transition: background 0.25s, color 0.25s;
}

header {
    background: var(--card);
    padding: 14px 16px 16px;
    border-bottom: 1px solid var(--border);
}


h2 {
    margin: 0 0 10px;
}

/* Hide horizontal scrollbar but keep scrolling */
.horizontal-scroll {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap; /* 🔑 THIS is critical */
    gap: 10px;
    margin-bottom: 12px; /* 🔑 space below pills */

    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .horizontal-scroll::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }

.sheet {
    padding: 9px 16px;
    border-radius: 20px;
    white-space: nowrap;
    cursor: pointer;
    background: var(--border);
    color: var(--text);
    transition: background 0.2s, color 0.2s;
    flex: 0 0 auto; /* 🔑 prevents vertical stacking */
    width: auto;
}

    .sheet.active {
        background: var(--accent);
        color: var(--bg);
    }


.filters {
    display: flex;
    gap: 10px;
}



/* Cards */
.card {
    background: var(--card);
    margin: 12px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.15s ease;
}

    .card:active {
        transform: scale(0.98);
    }

.card-header {
    display: flex;
    justify-content: space-between;
    padding: 14px;
}

    .card-header h3 {
        margin: 0;
        font-size: 16px;
    }

.meta {
    font-size: 12px;
    color: #666;
}

.preview {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    display: none;
    transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
    border-top: 1px solid var(--border);
}

    .preview.open {
        max-height: 500px; /* enough for iframe */
        opacity: 1;
        transform: translateY(0);
        display: block;
    }

    .preview iframe {
        width: 100%;
        height: 177px;
        border: none;
        background: #ffffff;
    }

.links {
    padding: 8px 12px;
}

    .links a {
        margin-right: 10px;
        font-size: 14px;
        color: #007bff;
        text-decoration: none;
    }

.pill {
    padding: 10px 14px;
    border-radius: 20px;
    border: none;
    background: var(--border);
    color: var(--text);
}

    .pill.active {
        background: var(--accent);
        color: var(--bg);
    }

select {
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.tags {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.tag {
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 14px;
    background: var(--border);
    color: var(--muted);
}

    .tag.new {
        background: #ff3b3b;
        color: #fff;
    }


@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

.title-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.song-icon {
    font-size: 20px;
    line-height: 1;
    margin-top: 2px;
    color: #555;
}

:root {
    --bg: #f4f4f4;
    --card: #ffffff;
    --text: #111;
    --muted: #666;
    --accent: #000;
    --border: #ddd;
}

body.dark {
    --bg: #0f1115;
    --card: #1a1d23;
    --text: #f2f2f2;
    --muted: #aaa;
    --accent: #fff;
    --border: #2a2f3a;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px; /* space below title */
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text);
}

.play-indicator {
    font-size: 18px;
    cursor: pointer;
    user-select: none;
}

.card.playing {
    outline: 2px solid #4caf50;
    background: rgba(76, 175, 80, 0.06);
}
.site-footer {
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted, #777);
    border-top: 1px solid rgba(0,0,0,0.1);
}

    .site-footer a {
        color: inherit;
        text-decoration: none;
        margin: 0 0.4rem;
    }

        .site-footer a:hover {
            text-decoration: underline;
        }

.footer-links {
    margin-bottom: 0.5rem;
}
.welcome {
    padding: 40px 16px;
    text-align: center;
    color: var(--text);
}

    .welcome h1 {
        margin: 0 0 10px;
    }

    .welcome p {
        margin: 0;
        color: var(--muted);
    }
#list {
    visibility: hidden;
}
.no-preview {
    padding: 16px;
    text-align: center;
    color: #999;
    font-style: italic;
}
