/* =========================================
   СТРАНИЦА КОНКУРСОВ — НЕОНОВЫЙ СТИЛЬ
   ========================================= */

.euro-page {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== ЗАГОЛОВОК ===== */
.euro-header {
    text-align: center;
    margin-bottom: 32px;
}

.euro-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    margin: 0 0 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.euro-subtitle {
    font-size: clamp(14px, 1.5vw, 17px);
    color: var(--text-secondary);
    margin: 0;
}

/* ===== ТАБЫ ===== */
.euro-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.euro-tab {
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    /* OPTIMIZED: Заменяем 'all' на конкретные свойства */
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--accent-purple);
    color: var(--text-secondary);
    background: var(--bg-tab);
    /* OPTIMIZED: Убираем backdrop-filter. На табах он не нужен, достаточно плотного цвета в var(--bg-tab) */
}

.euro-tab:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--bg-hover);
    /* OPTIMIZED: Уменьшаем радиус свечения с 25px до 10px */
    box-shadow: 0 0 10px var(--accent-glow);
}

.euro-tab.active {
    color: #ffffff;
    background: var(--bg-tab-active);
    background-size: 200% 200%;
    animation: tabGlow 4s ease infinite;
    border-color: transparent;
    /* OPTIMIZED: Уменьшаем радиус свечения с 30px до 12px */
    box-shadow: 0 0 12px var(--accent-glow);
}

@keyframes tabGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===== СЕТКА КАРТОЧЕК ===== */
.euro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

/* ===== КАРТОЧКА ===== */
.euro-card {
    position: relative;
    background: var(--bg-card);
    /* OPTIMIZED: УБИРАЕМ backdrop-filter. Это критично для сетки из множества карточек! */
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    display: block;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.euro-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    /* OPTIMIZED: Двойная тень с радиусами 50px и 40px — это смерть для GPU. 
       Уменьшаем до 15px и 12px. Визуально почти то же самое. */
    box-shadow: 0 10px 15px var(--shadow-card), 0 0 12px var(--accent-glow);
}

/* Неоновая рамка */
.card-glow {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-cyan), var(--accent-purple), var(--accent-pink));
    background-size: 300% 300%;
    animation: glowShift 6s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
}

@keyframes glowShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Изображение */
.card-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
    background: #ffffff;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.euro-card:hover .card-image img {
    transform: scale(1.08);
}

/* Информация */
.card-info {
    padding: 20px;
}

.card-year {
    font-family: 'Rajdhani', sans-serif;
    font-size: 32px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    line-height: 1;
    text-align: center; 
}


/* =========================================
   МОБИЛЬНАЯ ВЕРСИЯ: НОВЫЙ ФОРМАТ
   ========================================= */

/* Скрываем мобильную версию на десктопе */
.mobile-card-content {
    display: none;
}

@media (max-width: 768px) {
    /* Отключаем эффекты для производительности */
    .euro-card,
    .euro-tab {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .euro-tab.active,
    .card-glow {
        animation: none !important;
    }

    /* Скрываем десктопные элементы */
    .card-glow,
    .card-image,
    .card-info {
        display: none !important;
    }

    /* Показываем мобильную версию */
    .mobile-card-content {
        display: flex !important;
        width: 100%;
    }

    /* Сетка → вертикальный список */
    .euro-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    /* Карточка в новом стиле */
    .euro-card {
        display: flex;
        align-items: stretch;
        background: var(--bg-card, #ffffff);
        border-radius: 16px;
        overflow: hidden;
        border: none;
        box-shadow:
            0 1px 3px rgba(0, 0, 0, 0.04),
            0 4px 12px rgba(0, 0, 0, 0.06);
        transform: none !important;
        min-height: 110px;
        padding: 0;
    }

    .euro-card:hover {
        transform: none !important;
        box-shadow:
            0 2px 6px rgba(0, 0, 0, 0.06),
            0 6px 16px rgba(0, 0, 0, 0.08);
    }

    .euro-card:active {
        transform: scale(0.98) !important;
    }

    /* Левая колонка с годом */
    .card__year-col {
        position: relative;
        width: 20%;
        min-width: 80px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 16px 8px;
        background: var(--bg-hover, #fafafa);
        border-right: 1px solid var(--border-color, #eee);
        flex-shrink: 0;
    }

    /* Цветная вертикальная полоса */
    .card__year-col::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: var(--accent-purple, #a855f7);
        border-radius: 0 3px 3px 0;
    }

    .card__year {
        font-family: 'Rajdhani', sans-serif;
        font-size: 32px;
        font-weight: 800;
        line-height: 1;
        color: var(--text-primary, #1a1a2e);
        letter-spacing: -1px;
        text-align: center;
    }

    .card__year span {
        display: block;
        font-size: 32px;
    }

    /* Правая колонка с информацией */
    .card__info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 16px 18px 16px 14px;
        gap: 4px;
        min-width: 0;
    }

    .card__artist {
        font-family: 'Rajdhani', sans-serif;
        font-size: 22px;
        font-weight: 700;
        line-height: 1.25;
        color: var(--accent-cyan);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .card__song {
        font-size: 15px;
        font-weight: 400;
        color: var(--text-secondary, #6b6b80);
        font-style: italic;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
	
	.card__host {
		font-size: 10px;
        font-weight: 400;
        color: var(--text-secondary, #6b6b80);
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
	}
}

/* Адаптив для узких экранов */
@media (max-width: 480px) {
    .card__year {
        font-size: 26px;
    }
    .card__year span {
        font-size: 26px;
    }
    .card__artist {
        font-size: 18px;
    }
    .card__info {
        padding: 12px 12px 12px 10px;
    }
	    .euro-tabs {
        flex-direction: column;
        gap: 8px;
    }

    .euro-tab {
        width: 100%;
        padding: 12px 20px;
        text-align: center;
        box-sizing: border-box;
        box-shadow: none;
    }

    .euro-tab:hover,
    .euro-tab.active {
        box-shadow: 0 0 8px var(--accent-glow);
    }
}