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

body {
    font-family: Quicksand, Tahoma, Geneva, Verdana, sans-serif;
    background-image: url("https://bakaafk.s-ul.eu/NEl9mYzb");
    background-size: cover;
    background-attachment: fixed;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    background-image: url("https://bakaafk.s-ul.eu/NEl9mYzb");
    margin-bottom: 30px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}

.card.expert {
    border: 3px solid #F64861;
}

.card.master {
    border: 3px solid #9E45E2;
}

.card.basic {
    border: 3px solid #4CAF50;
}

.card.advanced {
    border: 3px solid #FFC107;
}

.card.remaster {
    border: 3px solid #9C27B0;
}

.card-header {
    padding: 15px;
    color: white;
    font-weight: bold;
    text-align: center;
    font-size: 1.1em;
}

.card.expert .card-header {
    background-color: #F64861;
}

.card.master .card-header {
    background-color: #9E45E2;
}

.card.basic .card-header {
    background-color: #4CAF50;
}

.card.advanced .card-header {
    background-color: #FFC107;
}

.card.remaster .card-header {
    background-color: #9C27B0;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f0f0f0;
}

.card-body {
    padding: 15px;
}

.card-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
    min-height: 1.2em;
    line-height: 1.2em;
}

.card-artist {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 12px;
    font-style: italic;
    min-height: 1.4em;
    line-height: 1.2em;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #666;
    font-size: 0.9em;
}

.info-value {
    font-weight: bold;
    color: #333;
}

.rating-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1.3em;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}

.rank-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1em;
}

.rank-SSS\+ {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}

.rank-SSS {
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    color: #000;
}

.rank-SS\+ {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    color: #000;
}

.rank-SS {
    background: linear-gradient(135deg, #D3D3D3, #B0B0B0);
    color: #000;
}

.rank-S\+ {
    background: linear-gradient(135deg, #CD7F32, #A0522D);
    color: #fff;
}

.rank-S {
    background: linear-gradient(135deg, #C19A6B, #8B7355);
    color: #fff;
}

.rank-AAA {
    background: linear-gradient(135deg, #FF1493, #C71585);
    color: #fff;
}

.rank-AA {
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    color: #fff;
}

.rank-A {
    background: linear-gradient(135deg, #87CEEB, #4682B4);
    color: #fff;
}

.loading {
    text-align: center;
    color: white;
    font-size: 1.5em;
    padding: 50px;
}

.error {
    background: #f44336;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px;
    text-align: center;
}

.stats-panel {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 30px;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.total-rating, .song-count {
    text-align: center;
}

.stat-label {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 8px;
    font-weight: 600;
}

.stat-value {
    font-size: 2.5em;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.filters {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 0 1 auto;
    min-width: 150px;
    max-width: 250px;
}

.filter-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.9em;
}

.filter-group select,
.filter-group input {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #667eea;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.range-inputs input {
    flex: 1;
}

.range-inputs span {
    color: #666;
    font-weight: bold;
}

.reset-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-left: auto;
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.reset-btn:active {
    transform: translateY(0);
}
