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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a1a;
    min-height: 100vh;
    padding: 1rem;
}

.container {
/*             max-width: 1200px; */
/*             margin: 0 auto; */
}

[x-cloak] { display: none !important; }

header {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

h1 {
    font-size: 1.75rem;
    color: #e0e0e0;
    margin-bottom: 0.25rem;
}

.bg-gray-100 {
    background-color: #333333
}

.back-link {
    display: inline-block;
    margin-bottom: 0.5rem;
    color: #aaa;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.controls {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.sort-buttons {
    display: flex;
    gap: 0.5rem;
}

.sort-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #00f8ff;
    background: #1a1a1a;
    color: #00f8ff;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.sort-btn:hover {
    background: #333;
}

.sort-btn.active {
    background: #00f8ff;
    color: #1a1a1a;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #444;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: #1a1a1a;
    color: #e0e0e0;
}

.search-box input:focus {
    outline: none;
    border-color: #00f8ff;
}

.stats {
    color: #aaa;
    font-size: 0.9rem;
}

.song-list {
    background: #2a2a2a;
    border-radius: 15px;
/*             padding: 1.5rem; */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.song-header {
    display: grid;
    grid-template-columns: 4rem 3fr 2fr;
    gap: 1rem;
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    color: #ff00e0;
    border-bottom: 2px solid #ff00e0;
    margin-bottom: 0.5rem;
}

.song-item {
    display: grid;
    grid-template-columns: 4rem 3fr 2fr;
    gap: 1rem;
    padding: 0.5rem 1.5rem;
    border-bottom: 1px solid #444;
    transition: all 0.2s ease;
    cursor: pointer;
    align-items: center;
}

.song-number {
    font-size: 1rem;
    font-weight: 700;
    color: #ff00e0;
    text-align: left;
}

.song-item:last-child {
    border-bottom: none;
}

/*         .song-item:hover { */
/*             background: #f8f9ff; */
/*         } */

.song-title {
    font-size: 1rem;
    font-weight: 600;
    color: #e0e0e0;
}

.song-artist {
    color: #00f8ff;
    font-size: 0.95rem;
    font-weight: 500;
}

.no-results {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    color: #aaa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.no-results h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }

    .song-header,
    .song-item {
        grid-template-columns: 3rem 2fr 2fr;
        padding: 0.5rem 0.5rem;
/*                 gap: 0.5rem; */
    }

    .song-header span {
        font-size: 1rem;
    }

    .song-number {
        font-size: 0.85rem;
    }

    .song-title,
    .song-artist {
        font-size: 0.85rem;
    }
}

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #1a1a1a;
    padding-top: 1rem;
}

.sticky-controls {
    position: sticky;
    top: 4rem;
    z-index: 99;
    background: #1a1a1a;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: #2a2a2a;
    border: 2px solid #00f8ff;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 248, 255, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid #ff00e0;
}

.modal-header h2 {
    color: #e0e0e0;
    font-size: 1.5rem;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: #ff00e0;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #00f8ff;
}

.modal-body {
    padding: 1.5rem;
}

.modal-artist {
    color: #00f8ff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.modal-number {
    color: #ff00e0;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.modal-info {
    color: #aaa;
    font-style: italic;
    margin-top: 2rem;
}