* {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
}

body {
 font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
 background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
 min-height: 100vh;
 color: #333;
}

.container {
 max-width: 1200px;
 margin: 0 auto;
 padding: 20px;
}

.header {
 text-align: center;
 margin-bottom: 40px;
 color: white;
}

.header h1 {
 font-size: 3rem;
 margin-bottom: 10px;
 text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
 font-size: 1.2rem;
 opacity: 0.9;
}

.stats-bar {
 background: rgba(255,255,255,0.1);
 backdrop-filter: blur(10px);
 border-radius: 15px;
 padding: 20px;
 margin-bottom: 30px;
 display: flex;
 justify-content: space-around;
 flex-wrap: wrap;
 gap: 20px;
}

.stat-item {
 text-align: center;
 color: white;
}

.stat-number {
 font-size: 2rem;
 font-weight: bold;
 display: block;
}

.bigstat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    color: white;
    opacity: 0.7;
}

.stat-label {
 font-size: 0.9rem;
 opacity: 0.8;
 color: white;
 opacity: 0.7;
}

.artists-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
 gap: 25px;
 margin-bottom: 40px;
}

.artist-card {
 background: rgba(255,255,255,0.95);
 border-radius: 20px;
 padding: 20px;
 overflow: hidden;
 opacity: 0.95;
}

.artist-card:hover {
    transform: translateY(-3px);
    opacity: 1;
    border: 2px dotted #6973da;
    padding: 18px;
}

.artist-header {
 display: flex;
 align-items: center;
 margin-bottom: 5px;
}

.artist-rank {
 background: linear-gradient(135deg, #667eea, #764ba2);
 color: white;
 width: 50px;
 height: 50px;
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 font-weight: bold;
 font-size: 1.2rem;
 margin-right: 15px;
 flex-shrink: 0;
}

.artist-info h3 a {
 font-size: 1.4rem;
 margin-bottom: 5px;
 color: #333;
 text-decoration: none;
 line-height: 1em;
}

.artist-label {
    background: #8ecf17;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.artist-genres {
 color: #666;
 font-size: 0.9rem;
}

.artist-stats {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 15px;
 margin-bottom: 5px;
}

.stat {
 background: #f8f9fa;
 padding: 12px;
 border-radius: 10px;
 text-align: center;
}

.stat-value {
 font-size: 1.1rem;
 font-weight: bold;
 color: #667eea;
 display: block;
}

.stat-label {
 font-size: 0.8rem;
 color: #666;
 margin-top: 2px;
}

.tracks-section {
 margin-top: 20px;
}

.tracks-section h4 {
 color: #333;
 margin-bottom: 10px;
 font-size: 1.1rem;
}

.track-item {
 background: #f8f9fa;
 padding-top: 5px;
 padding-bottom: 5px;
 border-radius: 7px;
 margin-bottom: 8px;
 display: flex;
 align-items: center;
 margin-left: -5px;
 margin-right: -5px;
 padding-left: 5px;
 padding-right: 5px;
}
.track-item:hover {
    background: #d8f2f5;
}

.track-item:last-child {
 margin-bottom: 0;
}

.track-icon {
 color: #667eea;
 margin-right: 10px;
 font-size: 0.9rem;
}

.track-title {
 flex: 1;
 font-weight: 500;
 color: #333;
 text-decoration: none;
 overflow: hidden;
 border-radius: 7px;
}

.track-major {
 background: #30bf97;
 color: white;
 padding: 2px 8px;
 border-radius: 12px;
 font-size: 0.7rem;
 font-weight: 500;
}

.track-player {
    display: none;
    margin: 0;
    padding: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 7px;
    width: 100%;
    height: 67px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out, margin 0.3s ease-in-out;
}

.track-player.show {
    max-height: 67px;
    padding: 0;
    margin: 0;
}

.track-player.hide {
    max-height: 0;
    padding: 0;
    margin: 0;
}

.listeners-change {
 display: inline-flex;
 align-items: center;
 padding: 4px 8px;
 border-radius: 12px;
 font-size: 0.8rem;
 font-weight: 500;
}

.listeners-change i {
    margin-right: 2px;
}

.listeners-change.positive {
 background: #d4edda;
 color: #155724;
}

.listeners-change.negative {
 background: #f8d7da;
 color: #721c24;
}

.last-release {
 background: #e3f2fd;
 padding: 12px;
 border-radius: 10px;
}

.last-release h5 {
 color: #1976d2;
 margin-bottom: 5px;
 font-size: 0.9rem;
}

.last-release p {
 color: #666;
 font-size: 0.8rem;
}

.footer {
 text-align: center;
 color: white;
 margin-top: 40px;
 opacity: 0.8;
}

.footer a {
    color: white;
}

@media (max-width: 768px) {
 .header h1 {
     font-size: 2rem;
 }
 
 .artists-grid {
     grid-template-columns: 1fr;
 }
 
 .stats-bar {
     flex-direction: column;
     gap: 15px;
 }
}

.loading {
 text-align: center;
 color: white;
 font-size: 1.2rem;
 padding: 40px;
}

.error {
 background: rgba(255,255,255,0.9);
 color: #721c24;
 padding: 20px;
 border-radius: 10px;
 text-align: center;
 margin: 20px 0;
}

/* Стили для пагинации */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.page-link {
    background: rgba(255,255,255,0.9);
    color: #667eea;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.page-link:hover {
    background: #667eea;
    color: white;
}

.page-numbers {
    display: flex;
    gap: 5px;
    align-items: center;
}

.page-number {
    background: rgba(255,255,255,0.9);
    color: #667eea;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.page-number:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.page-number.active {
    background: #667eea;
    color: white;
    border-color: #5a6fd8;
}

.page-dots {
    color: white;
    font-weight: bold;
    padding: 0 5px;
}

/* Адаптивность для пагинации */
@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .page-numbers {
        order: 2;
    }
    
    .page-link {
        order: 1;
    }
}