* {
    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;
}

#logo {
    margin: 0;
    padding: 0;
    width: 100%;
    height: auto;
    mix-blend-mode: color-dodge;
    border:0;
}

#logo_artist {
    margin: 0;
    padding: 0;
    width: 30%;
    height: auto;
    mix-blend-mode: color-dodge;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.header-artist {
    text-align: center;
    margin-bottom: 10px;
    color: white;
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Papaya', Arial, sans-serif;
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.genre-header {
    margin-top: 20px;
    text-align: center;
}

.genre-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: white;
    font-family: 'Papaya', Arial, sans-serif;
}

.back-to-main {
    display: inline-block;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.back-to-main:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.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;
}

.big-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-rank-with-avatar {
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: normal;
    justify-content: right;
    margin-right: 15px;
    flex-shrink: 0;
}

.artist-rank-with-avatar .rank-number {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.6rem;
    align-items: center;
    justify-content: center;
    display: flex;
    position: relative;
    top: -3px;
    right: -5px;
}

.big-artist-rank-with-avatar {
    color: white;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    display: flex;
    align-items: normal;
    justify-content: right;
    margin-right: 15px;
    flex-shrink: 0;
}

.big-artist-rank-with-avatar .rank-number {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 67px;
    height: 67px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.6rem;
    align-items: center;
    justify-content: center;
    display: flex;
    position: relative;
    top: -3px;
    right: -5px;
}

.big-artist-info {
    margin-left: 15px;

}

.big-artist-info h1 {
    font-size: 3rem;
    padding-bottom: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: rgb(0, 90, 143);
    font-family: 'Papaya', Arial, sans-serif;
}

.artist-info h3 a {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: #333;
    text-decoration: none;
    line-height: 1em;
}

.big-artist-info .artist-label {
    font-size: 1.2rem;
    font-weight: 500;
}


h4.statistics-title {
    font-weight: normal; 
    opacity: 0.8;
    padding-bottom: 10px;
}

.artist-stats-graphs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px; 
    margin: 30px 0;
}

.big-listeners {
    color: #4CAF50 !important;
}
.big-likes {
    color: #E91E63 !important;
}
.big-tracks {
    color: #667eea !important;
}

.artist-label {
    background: #8ecf17;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.artist-genres {
    padding-top: 6px;
    font-size: 0.7rem;
}

.big-artist-info .artist-genres {
    padding-top: 13px;
    font-size: 1.2rem;
}

.artist-genres a {
    text-decoration: none;
    background: #88bddb;
    color: white;
    padding: 0 5px 3px 5px;
    border-radius: 6px;
}

.artist-genres a:hover {
    background: #667eea;
}

.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;
}

.big-artist-info .artist-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding-top: 13px;
    margin-bottom: 5px;
}

.big-artist-info .stat {
 background: #ecf1f5;
} 

.big-artist-info .stat-value {
    font-size: 1.5rem;
}

.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;
    line-height: 15pt;
}

.track-major {
    background: #30bf97;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.playlist-player {
    display: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 7px;
    margin-left: -13px !important;
}

.playlist-player.show {
    max-height: 420px;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.playlist-player.hide {
    max-height: 0;
    padding: 0;
    margin: 0;
}

.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;
    margin-bottom: 10px;
    margin-top: -6px;
}

.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;
}

@font-face {
    font-family: 'Papaya';
    src: url('/static/Papaya.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }



    .genre-header h1 {
        font-size: 1.8rem;
    }

    /* Шрифт Papaya уже применен глобально для заголовков */


    .back-to-main {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .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;
    }
}

/* Стили для страницы артиста */
.artist-page {
    max-width: 1200px;
    margin: 0 auto;
}

.artist-page .artist-card {
    margin-bottom: 30px;
}

.artist-page .artist-description {
    margin-bottom: 12px;
    color: #736d7f;
    margin-top: 12px;
    font-size: 1.1em;
}

.artist-page .social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    font-size: 1.5rem;
    margin-right: 10px;
    color: rgb(71, 101, 126);
    margin-bottom: 14px;
}

.artist-page .social-link:hover {
    color: rgba(202, 14, 14, 1);
    transform: translateY(-2px);
}

.artist-page .similar-artists {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    color: white;
}

.artist-page .similar-artists h3 {
    font-size: 1.5rem;
    color: #333;
    line-height: 100%;
}

.artist-page .similar-artists .artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.comments-section {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
}

.comment-form {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.rating-stars {
    display: flex;
    gap: 5px;
    margin: 10px 0;
}

.star {
    font-size: 1.5rem;
    cursor: pointer;
    color: #ccc;
    transition: color 0.2s;
}

.star.active {
    color: #ffd700;
}

.comment-input {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    resize: vertical;
    margin: 10px 0;
}

.comment-input::placeholder {
    color: #ccc;
}

.comment-item {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: bold;
    color: #667eea;
}

.comment-date {
    font-size: 0.9rem;
    color: #ccc;
}

.comment-rating {
    color: #ffd700;
    margin: 5px 0;
}

.comment-text {
    line-height: 1.5;
    margin-top: 10px;
}

.edit-comment-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.page-link {
    padding: 10px 15px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.page-link:hover,
.page-link.active {
    background: #667eea;
}

.telegram-login {
    background: #0088cc;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.telegram-login:hover {
    background: #0077b3;
}

.message {
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid #f44336;
}

@media (max-width: 1060px) {
    .big-artist-rank-with-avatar {
        width: 300px;
        height: 300px;
    }
}
/* Адаптивность для страницы артиста */
@media (max-width: 768px) {
    .artist-page .similar-artists .artists-grid {
        grid-template-columns: 1fr;
    }

    .big-artist-rank-with-avatar {
        width: 200px;
        height: 200px;
    }

    .big-artist-rank-with-avatar .rank-number {
        width: 37px;
        height: 37px;
        font-size: 0.8rem;
    }

    .big-artist-info h1 {
        font-size: 1.5rem;
    }
    .big-artist-info .artist-stats {
        grid-template-columns: repeat(1, 1fr);
    }
    .artist-stats-graphs {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .big-artist-header {
        flex-direction: column;
        align-items: normal;
    }

    #logo_artist {
        width: 100%;
        height: auto;
    }
}

/* Стили для графиков */
.artist-stats-graphs {
    margin-top: 20px;
}

.chart-container {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 5px;
}

.chart-wrapper {
    position: relative;
    height: 200px;
    width: 100%;
    overflow: hidden;
}

.chart-wrapper canvas {
    max-width: 100% !important;
    height: auto !important;
}

/* Мобильные стили для графиков */
@media (max-width: 768px) {
    .artist-stats-graphs {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .chart-container {
        width: 100%;
        margin-bottom: 20px;
        padding: 15px;
    }
    
    .chart-wrapper {
        height: 180px;
        min-height: 180px;
    }
    
    .chart-wrapper canvas {
        max-width: 100% !important;
        height: 100% !important;
    }
}

@media (max-width: 480px) {
    .chart-container {
        padding: 10px;
    }
    
    .chart-wrapper {
        height: 160px;
        min-height: 160px;
    }
    
    .statistics-title {
        font-size: 1rem;
        margin-bottom: 10px;
    }
}