* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0a;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    color: #e5e5e5;
    min-height: 100vh;
    padding-bottom: 90px;
    line-height: 1.5;
}

/* ========= ШАПКА ========= */
header {
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.3px;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.8;
}

.user-menu {
    display: flex;
    align-items: center;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 48px;
    padding: 6px 6px 6px 18px;
    transition: all 0.2s;
}

.search-box:focus-within {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.search-box input {
    background: transparent;
    border: none;
    color: #fff;
    width: 260px;
    padding: 8px 0;
    font-size: 0.9rem;
    outline: none;
}

.search-box input::placeholder {
    color: #555;
}

.search-box button {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 40px;
    font-size: 1rem;
    transition: color 0.2s;
}

.search-box button:hover {
    color: #fff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 32px;
}

.hit-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hit-item {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    gap: 16px;
}

.hit-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.hit-number {
    color: #4a4a4a;
    font-size: 0.9rem;
    font-weight: 500;
    width: 32px;
    font-feature-settings: "tnum";
}

.hit-info {
    flex: 1;
}

.hit-title {
    font-weight: 500;
    font-size: 1rem;
    color: #fff;
    letter-spacing: -0.2px;
}

.hit-artist {
    font-size: 0.8rem;
    color: #777;
    margin-top: 2px;
}

.hit-duration {
    color: #4a4a4a;
    font-size: 0.8rem;
    font-feature-settings: "tnum";
}

.track-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.2s;
}

.track-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.track-cover {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    background: #1a1a1a;
}

.track-info {
    flex: 1;
}

.track-title {
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.track-title span:first-child {
    color: #fff;
}

.track-artist {
    font-size: 0.75rem;
    color: #777;
    margin-top: 4px;
}

.track-actions {
    display: flex;
    gap: 12px;
}

.play-button, .download-btn {
    background: transparent;
    border: none;
    color: #aaa;
    cursor: pointer;
    padding: 8px;
    border-radius: 40px;
    transition: all 0.15s;
    font-size: 0.9rem;
}

.play-button:hover, .download-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.warning-badge {
    font-size: 0.65rem;
    color: #888;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 20px;
}

.pagination {
    margin-top: 32px;
}

.pagination ul {
    display: flex;
    justify-content: center;
    gap: 6px;
    list-style: none;
    flex-wrap: wrap;
}

.page-item {
    display: inline-block;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #aaa;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.15s;
    cursor: pointer;
}

.page-link:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.page-item.active .page-link {
    background: #fff;
    border-color: #fff;
    color: #000;
}

.page-item.disabled .page-link {
    opacity: 0.3;
    cursor: not-allowed;
}

.audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(8, 8, 8, 0.96);
    backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px 32px;
    display: none;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    gap: 24px;
}

.audio-player.show {
    display: flex;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 220px;
}

.player-cover {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    background-size: cover;
}

.player-text {
    overflow: hidden;
}

.player-text .title {
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.player-text .artist {
    font-size: 0.7rem;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-controls {
    flex: 1;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.controls-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.control-btn {
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.15s;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.play-pause {
    background: #fff;
    color: #000;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
}

.play-pause:hover {
    background: #eee;
    color: #000;
    transform: scale(1.02);
}

.progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
}

.progress {
    width: 0%;
    height: 100%;
    background: #fff;
    transition: width 0.05s linear;
}

.player-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #555;
    font-feature-settings: "tnum";
}

.player-extra {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 100px;
    justify-content: flex-end;
}

.footer-links {
    text-align: center;
    padding: 24px 0 16px;
    font-size: 0.7rem;
}

.footer-links a {
    color: #444;
    text-decoration: none;
    transition: color 0.2s;
    margin: 0 8px;
}

.footer-links a:hover {
    color: #888;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 14px;
        padding: 14px 20px;
    }
    
    .search-box input {
        width: 180px;
    }
    
    .container {
        padding: 16px 20px;
    }
    
    .hit-item {
        padding: 12px 14px;
        gap: 10px;
    }
    
    .hit-number {
        width: 28px;
        font-size: 0.8rem;
    }
    
    .audio-player {
        flex-direction: column;
        padding: 12px 20px;
        gap: 12px;
    }
    
    .player-info, .player-controls, .player-extra {
        width: 100%;
        justify-content: center;
    }
    
    .player-info {
        justify-content: flex-start;
    }
    
    .controls-buttons {
        gap: 16px;
    }
    
    .track-card {
        flex-wrap: wrap;
    }
    
    .track-actions {
        width: 100%;
        justify-content: flex-start;
        margin-top: 8px;
    }
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.stats-badge {
    position: fixed;
    bottom: 12px;
    right: 12px;
    font-size: 0.6rem;
    color: #2a2a2a;
    background: rgba(0,0,0,0.4);
    padding: 4px 8px;
    border-radius: 20px;
    z-index: 1001;
    pointer-events: none;
    font-family: monospace;
}