* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
    color: #333;
    font-size: 16px;
    line-height: 1.5;
}

h1 {
    text-align: center;
    color: #8b0000;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

/* Search */
.search-box {
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.search-box input:focus {
    border-color: #2e7d32;
}

.no-results {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

/* Navigation */
nav {
    background: #2e7d32;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
}

nav a:hover {
    background: rgba(255,255,255,0.2);
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #1976d2;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* Song */
.song {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.song-title {
    color: #2e7d32;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #2e7d32;
    padding-bottom: 10px;
}

.chords-toggle {
    background: #1976d2;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 10px;
}

.chords-toggle:hover {
    background: #1565c0;
}

.chords {
    display: none;
    background: #fff3e0;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    border-left: 4px solid #ff9800;
}

.chords.open {
    display: block;
}

.lyrics {
    column-count: 3;
    column-gap: 30px;
    column-rule: 1px solid #ddd;
}

.verse {
    break-inside: avoid;
    margin-bottom: 1em;
}

.verse p {
    margin: 0;
    line-height: 1.6;
}

.refrain {
    font-style: italic;
    color: #555;
}

@media (max-width: 1000px) {
    .lyrics {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    body {
        padding: 10px;
        font-size: 18px;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    nav {
        padding: 10px;
    }

    nav ul {
        flex-direction: column;
        gap: 8px;
    }

    nav li {
        width: 100%;
    }

    nav a {
        padding: 12px;
        font-size: 1rem;
        display: block;
        text-align: center;
        background: rgba(255,255,255,0.1);
        border-radius: 4px;
    }

    .song {
        padding: 15px;
        margin-bottom: 20px;
    }

    .song-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .lyrics {
        column-count: 1;
    }

    .verse {
        margin-bottom: 1.2em;
    }

    .verse p {
        line-height: 1.8;
        font-size: 1.1rem;
    }

    .chords-toggle {
        width: 100%;
        padding: 12px 16px;
        font-size: 1rem;
    }

    .chords {
        font-size: 0.85rem;
        padding: 12px;
        overflow-x: auto;
    }

    .back-link {
        font-size: 1rem;
        padding: 8px 0;
        display: block;
    }
}
