/* =========================================================
   ЭХО ЛЮБВИ — ФИНАЛЬНЫЙ СТИЛЬ (СВЕТЛАЯ + ЗИМНЯЯ ТЕМА)
   ========================================================= */

/* ---------- 0. Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #f8f9fa;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-image 0.5s ease, color 0.3s ease;
}

a { text-decoration: none; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- 1. Переменные (Светлая тема) ---------- */
:root {
    --bg-image:    url('https://vmfile.com/upload/918/329570157.jpg');
    
    --accent:      #ff4d6d;
    --accent-dark: #d6336c;
    --gold:        #d4af37;
    --emerald:     #10b981;
    --text:        #2c2c2c;
    --text-light:  #ffffff;
    --glass-bg:    rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-sm:   0 2px 8px rgba(0,0,0,0.05);
    --shadow-md:   0 8px 24px rgba(0,0,0,0.1);
    --radius:      16px;
    
    /* Админские переменные (остаются темными) */
    --adm-bg:            #0f0b14;
    --adm-bg-2:          #16101e;
    --adm-bg-3:          #1a1424;
    --adm-border:        #2a1a35;
    --adm-text:          #e5e5e5;
    --adm-text-dim:      #888;
}

/* ---------- 2. Переменные (Зимняя тема) ---------- */
[data-theme="winter"] {
    --bg-image:    url('https://vmfile.com/upload/918/2612713171.jpg');
    
    --accent:      #0ea5e9; /* Морозный голубой */
    --accent-dark: #0284c7;
    --gold:        #8b5cf6; /* Фиолетовый авроры */
    --emerald:     #14b8a6; /* Бирюзовый лед */
    --text:        #0f172a;
    --text-light:  #ffffff;
    --glass-bg:    rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.6);
    --shadow-sm:   0 2px 8px rgba(14, 165, 233, 0.1);
    --shadow-md:   0 8px 24px rgba(14, 165, 233, 0.15);
}

/* Зимние акценты для специфических элементов */
[data-theme="winter"] .logo-heart { color: #38bdf8; filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6)); }
[data-theme="winter"] .logo-text {
    background: linear-gradient(90deg, #38bdf8, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
[data-theme="winter"] .nav-link.active { background: linear-gradient(135deg, #0ea5e9, #8b5cf6); box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4); }
[data-theme="winter"] .hero-title {
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    /* Обязательно дублируем обрезку, чтобы не было прямоугольника */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
[data-theme="winter"] .play-btn { background: linear-gradient(135deg, #0ea5e9, #8b5cf6); box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4); }
[data-theme="winter"] .order-btn { background: #0ea5e9; color: #fff; }
[data-theme="winter"] .order-btn:hover { background: #0284c7; }
[data-theme="winter"] .share-main-btn { background: linear-gradient(135deg, #0ea5e9, #8b5cf6); }
[data-theme="winter"] .dj-avatar { border-color: #8b5cf6; background: rgba(14, 165, 233, 0.1); }
[data-theme="winter"] .dj-avatar i { color: #0ea5e9; }
[data-theme="winter"] .now-playing-label { background: rgba(14, 165, 233, 0.1); color: #0ea5e9; }
[data-theme="winter"] .np-label { background: rgba(14, 165, 233, 0.1); color: #0ea5e9; }
[data-theme="winter"] .np-eq span { background: #0ea5e9; }
[data-theme="winter"] .he-time { color: #0ea5e9; }
[data-theme="winter"] .he-icon { background: rgba(14, 165, 233, 0.08); color: #0ea5e9; }
[data-theme="winter"] .presenter-nickname { color: #0ea5e9; }
[data-theme="winter"] .presenter-avatar { background: rgba(14, 165, 233, 0.1); border-color: #8b5cf6; }
[data-theme="winter"] .presenter-avatar i { color: #0ea5e9; }
[data-theme="winter"] .favorite-label { color: #0ea5e9; }
[data-theme="winter"] .favorite-link { color: #8b5cf6; }
[data-theme="winter"] .mini-play { background: #0ea5e9; }
[data-theme="winter"] .news-card-title a:hover { color: #0ea5e9; }
[data-theme="winter"] .news-card-link { color: #0ea5e9; }
[data-theme="winter"] .news-back { color: #0ea5e9; }
[data-theme="winter"] .toast-notification { background: #14b8a6; box-shadow: 0 10px 30px rgba(20, 184, 166, 0.4); }


/* ---------- 3. Контейнер и Шапка ---------- */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
}
[data-theme="winter"] .site-header { background: rgba(240, 249, 255, 0.85); }

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- ЛОГОТИП --- */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1;
    text-decoration: none;
}

.logo-heart {
    font-size: 26px;
    color: var(--accent);
    animation: heartbeat 1.8s infinite ease-in-out;
    filter: drop-shadow(0 0 4px rgba(255, 77, 109, 0.4));
}

.logo-text {
    background: linear-gradient(90deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
}

/* --- МЕНЮ --- */
.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 16px;
    color: #4a3b42;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}
[data-theme="winter"] .nav-link { color: #1e293b; }

.nav-link:hover {
    background: rgba(255, 77, 109, 0.12);
    color: var(--accent);
    transform: translateY(-2px);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--accent), #ff7b54);
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- ТЕМА --- */
.theme-toggle {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--glass-border);
    color: var(--text);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-sm);
}
.theme-toggle:hover { transform: scale(1.1) rotate(15deg); border-color: var(--accent); color: var(--accent); }
[data-theme="winter"] .theme-toggle { background: rgba(255, 255, 255, 0.7); color: #0ea5e9; }
[data-theme="winter"] .theme-toggle:hover { color: #8b5cf6; border-color: #8b5cf6; }

/* --- ШАРИНГ --- */
.share-buttons-header { position: relative; }

.share-main-btn {
    background: linear-gradient(135deg, var(--accent), #ff4757);
    color: white;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-main-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.5);
}

.share-dropdown {
    position: absolute;
    top: 58px;
    right: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    padding: 8px;
    min-width: 230px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.share-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0); }

.share-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    font-size: 15px;
    font-family: inherit;
    font-weight: 500;
}

.share-item:hover { background: #fdf2f4; color: var(--accent); }
.share-item i { font-size: 20px; width: 24px; text-align: center; }
.share-item.vk i { color: #0077FF; }
.share-item.telegram i { color: #229ED9; }
.share-item.whatsapp i { color: #25D366; }
.share-item.copy i { color: var(--gold); }

.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--emerald);
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 9999;
    pointer-events: none;
}
.toast-notification.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ---------- 4. Основной контент ---------- */
.site-main { flex: 1; padding: 40px 0; }

.page-head {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(1px);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

.page-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.2;
}
[data-theme="winter"] .page-title { color: #0f172a; }

.page-subtitle { font-size: 1.1rem; color: #666; font-weight: 500; }
[data-theme="winter"] .page-subtitle { color: #334155; }

.empty-note {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 40px;
    background: var(--glass-bg);
    border-radius: var(--radius);
    border: 1px dashed var(--glass-border);
}

.content-blocks { margin-top: 40px; }

/* ===== ГЛАВНАЯ (home.php) ===== */
.hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 50px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(1px);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    
    /* Градиент */
    background: linear-gradient(135deg, var(--accent), var(--gold));
    
    /* Жесткая фиксация градиента по тексту (для всех браузеров) */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    
    /* Делает блок по ширине текста, а не на весь экран */
    display: inline-block; 
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.hero-tagline { font-size: 1.3rem; color: #555; font-weight: 500; letter-spacing: 0.5px; }
[data-theme="winter"] .hero-tagline { color: #334155; }

.player-section { margin-bottom: 40px; }
.player-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(1px);
    border-radius: 30px;
    padding: 40px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
}

.player-info { text-align: center; }
.dj-avatar {
    width: 180px; 
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin: 0 auto 20px;
    background: rgba(255, 77, 109, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.dj-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dj-avatar i { font-size: 60px; color: var(--accent); }

.now-playing-label {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 77, 109, 0.1);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.current-track {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.2;
}
[data-theme="winter"] .current-track { color: #0f172a; }

.dj-name { font-size: 1.1rem; color: #666; margin-bottom: 15px; }
[data-theme="winter"] .dj-name { color: #334155; }

.listeners { font-size: 0.95rem; color: #888; display: flex; align-items: center; justify-content: center; gap: 6px; }

.player-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.play-btn {
    width: 70px; height: 70px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--accent), #ff7b54);
    color: white;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 77, 109, 0.4);
    transition: transform 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.play-btn:hover { transform: scale(1.08); }
.play-btn:active { transform: scale(0.95); }

.volume-control {
    display: flex; align-items: center; gap: 10px;
    background: rgba(0,0,0,0.05);
    padding: 8px 16px; 
    border-radius: 30px;
}
.volume-control i { color: #666; font-size: 14px; }
#volumeSlider { width: 100px; accent-color: var(--accent); cursor: pointer; }

.order-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px;
    background: #1a1a1a; color: white;
    border-radius: 30px; font-weight: 600;
    font-size: 0.95rem;
}
.order-btn:hover { background: #333; transform: translateY(-2px); }

.schedule-wrapper {
    background: var(--glass-bg);
    backdrop-filter: blur(1px);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.schedule-header {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: rgba(255,255,255,0.5);
}
[data-theme="winter"] .schedule-header { background: rgba(255, 255, 255, 0.4); }
.schedule-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem; color: #1a1a1a;
    display: flex; align-items: center; gap: 10px;
}
[data-theme="winter"] .schedule-header h2 { color: #0f172a; }
.schedule-iframe { width: 100%; height: 600px; border: none; display: block; }

/* ===== НОВОСТИ (news.php) ===== */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; margin-top: 30px; }
.news-card {
    background: var(--glass-bg);
    backdrop-filter: blur(1px);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.news-card-cover { display: block; overflow: hidden; }
.news-card-cover img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.5s ease; }
.news-card:hover .news-card-cover img { transform: scale(1.05); }
.news-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.news-date { font-size: 0.85rem; color: #888; margin-bottom: 8px; font-weight: 500; }
.news-card-title { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 700; color: #1a1a1a; margin-bottom: 12px; line-height: 1.3; }
[data-theme="winter"] .news-card-title { color: #0f172a; }
.news-card-title a { color: inherit; text-decoration: none; }
.news-card-title a:hover { color: var(--accent); }
.news-card-excerpt { font-size: 0.95rem; color: #555; margin-bottom: 20px; flex: 1; line-height: 1.6; }
[data-theme="winter"] .news-card-excerpt { color: #334155; }
.news-card-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.news-card-link:hover { gap: 10px; color: var(--accent-dark); }

.news-article {
    background: var(--glass-bg);
    backdrop-filter: blur(1px);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}
.news-back { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 0.95rem; margin-bottom: 30px; text-decoration: none; }
.news-back:hover { color: var(--accent-dark); gap: 8px; }
.news-article > .news-title { font-family: 'Cormorant Garamond', serif; font-size: 2.8rem; font-weight: 700; color: #1a1a1a; margin-bottom: 15px; line-height: 1.2; }
[data-theme="winter"] .news-article > .news-title { color: #0f172a; }
.news-meta { font-size: 0.95rem; color: #888; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid rgba(0,0,0,0.05); display: flex; align-items: center; gap: 8px; }
.news-cover { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius); margin-bottom: 30px; box-shadow: var(--shadow-sm); }
.news-content { font-size: 1.1rem; line-height: 1.8; color: #333; }
[data-theme="winter"] .news-content { color: #1e293b; }
.news-content p { margin-bottom: 20px; }
.news-content img { border-radius: 12px; margin: 20px 0; max-width: 100%; }
.news-content video, .news-content audio { width: 100%; border-radius: 12px; margin: 20px 0; }

/* ===== ИСТОРИЯ ЭФИРА (history.php + radio.js) ===== */
/* =========================================================
   БЛОК "СЕЙЧАС В ЭФИРЕ" (Страница истории)
   ========================================================= */

.now-playing-card {
    background: var(--glass-bg); /* Эффект стекла */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 24px 30px;
    margin-bottom: 30px;
    max-width: 900px; /* Ширина как у таймлайна ниже */
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: background 0.3s ease, border-color 0.3s ease;
}

/* Зимняя тема для этой карточки */
[data-theme="winter"] .now-playing-card {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Лейбл "Сейчас в эфире" */
.np-label {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 14px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
[data-theme="winter"] .np-label {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
}

/* Гибкий контейнер для эквалайзера и текста */
.np-body {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Анимированный эквалайзер */
.np-eq {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 32px;
    flex-shrink: 0;
}
.np-eq span {
    width: 5px;
    background: var(--accent);
    border-radius: 3px;
    animation: eq-bounce 1s infinite ease-in-out alternate;
}
[data-theme="winter"] .np-eq span {
    background: #0ea5e9;
}

/* Разные задержки для эффекта "волны" */
.np-eq span:nth-child(1) { height: 40%; animation-delay: 0s; }
.np-eq span:nth-child(2) { height: 70%; animation-delay: 0.2s; }
.np-eq span:nth-child(3) { height: 100%; animation-delay: 0.4s; }
.np-eq span:nth-child(4) { height: 60%; animation-delay: 0.1s; }
.np-eq span:nth-child(5) { height: 80%; animation-delay: 0.3s; }

@keyframes eq-bounce {
    0% { height: 20%; opacity: 0.6; }
    100% { height: 100%; opacity: 1; }
}

/* Текстовая информация */
.np-info {
    flex: 1;
    min-width: 0;
}

/* Название трека */
#npTrack, .np-track {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Имя ведущего и слушатели */
.np-meta {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
[data-theme="winter"] .np-meta {
    color: #475569;
}

.np-meta i {
    color: var(--gold);
    font-size: 0.9em;
}
[data-theme="winter"] .np-meta i {
    color: #8b5cf6;
}

.np-dot {
    color: var(--border);
    margin: 0 2px;
}

/* Адаптив для мобильных (чтобы не сжималось в точку) */
@media (max-width: 600px) {
    .now-playing-card {
        padding: 20px;
    }
    .np-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    #npTrack, .np-track {
        font-size: 1.3rem;
        white-space: normal; /* Разрешаем перенос длинных названий на телефоне */
    }
}

.history-timeline { background: var(--glass-bg); backdrop-filter: blur(1px); border-radius: var(--radius); border: 1px solid var(--glass-border); padding: 30px; max-width: 900px; margin: 0 auto; }
.timeline-loading, .history-empty { text-align: center; padding: 40px; color: #888; font-style: italic; }
.history-entry { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid rgba(0,0,0,0.05); align-items: center; }
.history-entry:last-child { border-bottom: none; }
.he-left { display: flex; flex-direction: column; align-items: center; min-width: 80px; }
.he-time { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 700; color: var(--accent); line-height: 1; }
.he-duration { font-size: 0.75rem; color: #aaa; margin-top: 4px; background: rgba(0,0,0,0.05); padding: 2px 6px; border-radius: 10px; }
.he-main { flex: 1; min-width: 0; }
.he-track { font-size: 1.1rem; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; word-break: break-word; }
[data-theme="winter"] .he-track { color: #0f172a; }
.he-dj { font-size: 0.9rem; color: #888; display: flex; align-items: center; gap: 6px; }
.he-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 77, 109, 0.08); display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }

/* ===== ВЕДУЩИЕ (presenters.php) ===== */
.presenters-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; margin-bottom: 40px; }
.presenter-card { background: var(--glass-bg); backdrop-filter: blur(1px); border-radius: var(--radius); border: 1px solid var(--glass-border); padding: 30px; display: flex; flex-direction: column; gap: 24px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.presenter-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.presenter-header { display: flex; align-items: center; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.presenter-avatar { width: 80px; height: 80px; border-radius: 50%; background: rgba(255, 77, 109, 0.1); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; border: 2px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.presenter-avatar img { width: 100%; height: 100%; object-fit: cover; }
.presenter-avatar i { font-size: 32px; color: var(--accent); }
.presenter-titles { flex: 1; min-width: 0; }
.presenter-nickname { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 700; color: var(--accent); margin-bottom: 4px; line-height: 1.2; }
.presenter-name { font-size: 1rem; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
[data-theme="winter"] .presenter-name { color: #0f172a; }
.presenter-position { font-size: 0.85rem; color: #888; font-weight: 500; }
.presenter-info { display: flex; flex-direction: column; gap: 12px; }
.presenter-row { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: #555; }
[data-theme="winter"] .presenter-row { color: #334155; }
.presenter-row i { width: 18px; color: var(--accent); text-align: center; font-size: 0.9rem; }
.presenter-favorite { background: rgba(255, 77, 109, 0.04); border-radius: 12px; padding: 20px; border: 1px solid rgba(255, 77, 109, 0.1); }
[data-theme="winter"] .presenter-favorite { background: rgba(14, 165, 233, 0.04); border-color: rgba(14, 165, 233, 0.1); }
.favorite-label { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.favorite-title { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 600; color: #1a1a1a; margin-bottom: 12px; }
[data-theme="winter"] .favorite-title { color: #0f172a; }
.favorite-audio { width: 100%; height: 40px; border-radius: 20px; margin-bottom: 12px; }
.favorite-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--gold); font-weight: 600; }
.favorite-link:hover { color: #b8962e; gap: 8px; }

/* ===== БЛОКИ CMS ===== */
.blocks-list { max-width: 900px; margin: 0 auto; }
.block-heading { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; font-weight: 700; color: #1a1a1a; margin: 40px 0 20px; text-align: center; }
[data-theme="winter"] .block-heading { color: #0f172a; }
.block-text { font-size: 1.1rem; line-height: 1.8; color: #333; margin-bottom: 30px; background: var(--glass-bg); backdrop-filter: blur(1px); padding: 30px; border-radius: var(--radius); border: 1px solid var(--glass-border); }
[data-theme="winter"] .block-text { color: #1e293b; }
.block-image img { width: 100%; border-radius: var(--radius); margin: 30px 0; box-shadow: var(--shadow-sm); }
.block-quote { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-style: italic; color: var(--accent-dark); text-align: center; padding: 40px; margin: 40px 0; background: rgba(255, 77, 109, 0.05); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }
.block-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); margin: 40px 0; opacity: 0.3; }
.block-button { text-align: center; margin: 30px 0; }
.block-button a { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; background: linear-gradient(135deg, var(--accent), #ff7b54); color: white; border-radius: 30px; font-weight: 600; font-size: 1.05rem; box-shadow: 0 6px 20px rgba(255, 77, 109, 0.3); }
.block-button a:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255, 77, 109, 0.4); }

/* ===== Подвал ===== */
.site-footer { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(1px); border-top: 1px solid var(--glass-border); padding: 30px 0; margin-top: auto; }
[data-theme="winter"] .site-footer { background: rgba(240, 249, 255, 0.9); }
.footer-container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-title { font-weight: 700; font-size: 1.1rem; color: #1a1a1a; }
[data-theme="winter"] .footer-title { color: #0f172a; }
.footer-tagline { font-size: 0.9rem; color: #666; }
.footer-player { display: flex; align-items: center; gap: 15px; background: rgba(0,0,0,0.05); padding: 10px 20px; border-radius: 30px; }
.mini-play { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--accent); color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.mini-track { font-weight: 600; font-size: 0.9rem; color: #1a1a1a; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-theme="winter"] .mini-track { color: #0f172a; }
.mini-dj { font-size: 0.8rem; color: #666; }
.footer-copy { text-align: right; font-size: 0.85rem; color: #888; line-height: 1.5; }
.footer-copy a { color: var(--accent); font-weight: 500; }
.footer-copy a:hover { text-decoration: underline; }

/* ===== АДМИН-ПАНЕЛЬ ===== */
.adm-login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; background: radial-gradient(circle at 50% 25%, rgba(255, 77, 109, 0.16), transparent 55%), radial-gradient(circle at 50% 75%, rgba(214, 51, 108, 0.16), transparent 55%), var(--adm-bg); }
.adm-login { width: 100%; max-width: 380px; background: var(--adm-bg-2); border: 1px solid var(--adm-border); border-radius: var(--radius); box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55); padding: 44px 38px 38px; display: flex; flex-direction: column; gap: 14px; }
.adm-login h1 { font-family: 'Cormorant Garamond', serif; font-size: 1.85rem; font-weight: 700; letter-spacing: 4px; color: var(--accent); text-align: center; }
.adm-login p { text-align: center; color: var(--adm-text-dim); font-size: 0.9rem; margin-bottom: 8px; }
.adm-login input { padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--adm-border); background: var(--adm-bg-3); color: #fff; font-family: inherit; font-size: 0.95rem; transition: border-color .2s; }
.adm-login input:focus { outline: none; border-color: var(--accent); }
.adm-login button { padding: 13px; margin-top: 6px; border: none; border-radius: var(--radius); background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; font-family: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: filter .2s, transform .1s; }
.adm-login button:hover { filter: brightness(1.08); }
.adm-login button:active { transform: translateY(1px); }
.adm-error { background: #2a1420; border: 1px solid #4a1520; color: #ff8fa0; padding: 10px 14px; border-radius: var(--radius); font-size: 0.88rem; text-align: center; }
.adm-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100vh; }
.adm-side { background: #120c18; border-right: 1px solid #1e1527; padding: 24px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.adm-brand { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 700; letter-spacing: 3px; color: var(--accent); padding: 0 12px 20px; border-bottom: 1px solid #1e1527; margin-bottom: 12px; }
.adm-side a { color: #c9c4d0; padding: 10px 14px; border-radius: var(--radius); display: flex; align-items: center; gap: 12px; font-size: 0.92rem; font-weight: 500; transition: background .15s, color .15s; }
.adm-side a:hover { background: var(--adm-bg-3); color: #fff; }
.adm-side a i { width: 16px; text-align: center; opacity: 0.8; flex-shrink: 0; }
.adm-side a.active { background: rgba(255, 77, 109, 0.12); color: #ffa5b3; }
.adm-side a.active i { color: var(--accent); opacity: 1; }
.adm-side a[href="logout.php"] { margin-top: auto; color: #ff6b6b; }
.adm-side a[href="logout.php"]:hover { background: rgba(255, 107, 107, 0.08); color: #ff8f8f; }
.adm-main { padding: 34px 44px 60px; min-width: 0; overflow-x: hidden; }
.adm-main > h1 { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 700; letter-spacing: 1.5px; color: #fff; margin-bottom: 28px; }
.adm-main > h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 700; letter-spacing: 1px; color: #fff; margin: 28px 0 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius); border: 1px solid var(--adm-border); background: var(--adm-bg-3); color: var(--adm-text); font-family: inherit; font-size: 0.9rem; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s, filter .15s; }
.btn:hover { background: #221a30; color: #fff; }
.btn i { font-size: 0.9em; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); border: none; color: #fff; box-shadow: 0 4px 14px rgba(255, 77, 109, 0.3); }
.btn-primary:hover { filter: brightness(1.08); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 0.83rem; gap: 6px; }
.btn-danger { background: #2a1420; border-color: #4a1520; color: #ff8fa0; }
.btn-danger:hover { background: #3a1a2a; color: #ffb0bd; border-color: #6a1f2d; }
.adm-table { width: 100%; border-collapse: collapse; background: var(--adm-bg-2); border: 1px solid var(--adm-border); border-radius: var(--radius); overflow: hidden; margin-top: 22px; font-size: 0.92rem; }
.adm-table th, .adm-table td { padding: 15px 20px; text-align: left; border-bottom: 1px solid #1e1527; vertical-align: middle; }
.adm-table th { background: var(--adm-bg-3); color: var(--adm-text-dim); font-size: 0.78rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.adm-table tr:last-child td { border-bottom: none; }
.adm-table tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
.adm-form { display: flex; flex-direction: column; gap: 18px; max-width: 720px; background: var(--adm-bg-2); border: 1px solid var(--adm-border); border-radius: var(--radius); padding: 28px; }
.adm-form > label, .field-group > label { display: flex; flex-direction: column; gap: 7px; color: #aaa; font-size: 0.88rem; font-weight: 500; }
.adm-form input, .adm-form select, .adm-form textarea, .field-group input, .field-group select, .field-group textarea { width: 100%; padding: 11px 14px; border-radius: var(--radius); border: 1px solid var(--adm-border); background: var(--adm-bg); color: #fff; font-family: inherit; font-size: 0.92rem; transition: border-color .2s, background .2s; }
.adm-form input:focus, .adm-form select:focus, .adm-form textarea:focus, .field-group input:focus, .field-group select:focus, .field-group textarea:focus { outline: none; border-color: var(--accent); background: #120b18; }
.adm-form textarea, .field-group textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.field-group { display: flex; flex-direction: column; gap: 14px; padding: 18px; background: var(--adm-bg-3); border: 1px solid #221a30; border-radius: var(--radius); }
.blocks-edit-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.block-edit-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px 20px; background: var(--adm-bg-2); border: 1px solid #1e1527; border-radius: var(--radius); transition: border-color .15s, background .15s; }
.block-edit-row:hover { border-color: var(--adm-border); background: #181122; }
.block-badge { display: inline-block; background: #2a1a35; color: #ffa5b3; padding: 5px 12px; border-radius: 7px; font-size: 0.76rem; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block-preview { color: #aaa; font-size: 0.9rem; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block-actions { display: flex; gap: 6px; align-items: center; }
.block-actions a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 6px; color: #888; font-size: 0.95rem; transition: color .15s, background .15s; }
.block-actions a:hover { color: var(--accent); background: rgba(255, 77, 109, 0.08); }
.adm-alert { background: #163020; border: 1px solid #1e4a30; color: #6fdc9a; padding: 13px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.92rem; }
.adm-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.text-muted { color: var(--adm-text-dim); }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.adm-form-section { display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--adm-bg-3); border: 1px solid #221a30; border-radius: var(--radius); }
.adm-form-section-title { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 700; color: #ffa5b3; letter-spacing: 1px; margin-bottom: 4px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 77, 109, 0.15); }
.presenter-preview { display: flex; align-items: center; gap: 12px; }
.presenter-preview img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); box-shadow: 0 0 18px rgba(255, 77, 109, 0.35); }
.adm-avatar-mini { display: inline-flex; width: 42px; height: 42px; border-radius: 50%; background: var(--adm-bg-3); align-items: center; justify-content: center; color: var(--accent); border: 2px solid var(--accent); overflow: hidden; flex-shrink: 0; }
.adm-avatar-mini img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 10. Адаптив ---------- */
@media (max-width: 1100px) {
    .adm-main { padding: 30px 28px 50px; }
    .block-edit-row { grid-template-columns: 130px minmax(0, 1fr) auto; }
}
@media (max-width: 900px) {
    .header-container { flex-wrap: wrap; justify-content: center; }
    .header-actions { order: 3; width: 100%; display: flex; justify-content: center; margin-top: 10px; gap: 16px; }
    .main-nav { order: 2; width: 100%; justify-content: center; flex-wrap: wrap; }
    .hero-title { font-size: 3rem; }
    .player-card { padding: 30px 20px; }
    .dj-avatar { width: 140px; height: 140px; }
    .current-track { font-size: 1.6rem; }
    .footer-container { flex-direction: column; text-align: center; }
    .footer-copy { text-align: center; }
    .presenters-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
    .page-title { font-size: 2.4rem; }
    .now-playing-card { padding: 20px; }
    .np-body { flex-direction: column; align-items: flex-start; gap: 12px; }
    .adm-shell { grid-template-columns: 1fr; }
    .adm-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid #1e1527; padding: 14px; gap: 6px; }
    .adm-brand { width: 100%; padding: 0 12px 12px; margin-bottom: 6px; }
    .adm-side a { padding: 8px 12px; font-size: 0.85rem; }
    .adm-side a[href="logout.php"] { margin-top: 0; margin-left: auto; }
    .adm-main { padding: 24px 20px 50px; }
    .block-edit-row { grid-template-columns: 1fr; gap: 10px; padding: 14px 16px; }
    .block-actions { justify-content: flex-start; }
    .adm-table { font-size: 0.85rem; display: block; overflow-x: auto; white-space: nowrap; }
    .adm-form { padding: 22px; }
}
@media (max-width: 600px) {
    .nav-link { padding: 8px 16px; font-size: 14px; }
    .hero-title { font-size: 2.4rem; }
    .player-controls { flex-direction: column; gap: 15px; }
    .order-btn { width: 100%; justify-content: center; }
    .schedule-iframe { height: 450px; }
    .news-grid { grid-template-columns: 1fr; }
    .presenters-grid { grid-template-columns: 1fr; }
    .news-article { padding: 24px; }
    .news-article > .news-title { font-size: 2rem; }
    .news-cover { height: 250px; }
    .history-entry { flex-direction: column; align-items: flex-start; gap: 10px; }
    .he-left { flex-direction: row; gap: 10px; align-items: center; }
    .he-icon { display: none; }
    .presenter-header { flex-direction: column; text-align: center; }
    .presenter-avatar { margin: 0 auto; }
    .adm-login { padding: 30px 22px; }
    .adm-login h1 { font-size: 1.4rem; letter-spacing: 2px; }
    .adm-main { padding: 20px 14px 40px; }
    .btn { padding: 8px 14px; font-size: 0.85rem; }
    .adm-form { padding: 18px; gap: 14px; }
    .field-group { padding: 14px; }
    .adm-form-section { padding: 16px; gap: 12px; }
}

@media print {
    .adm-side, .btn, .block-actions, .site-header, .site-footer, .share-buttons-header, .theme-toggle { display: none !important; }
    body { background: #fff; color: #000; }
    .adm-shell { display: block; }
    .adm-main { padding: 0; }
    .adm-table th, .adm-table td { border-color: #ccc; color: #000; background: #fff !important; }
}
/* =========================================================
   ПАРТНЁРЫ — универсальный вид для баннеров любых размеров
   ========================================================= */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin: 30px 0 50px;
}

.partner-card {
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 77, 109, 0.4);
}

/* Зона для баннера */
.partner-banner {
    width: 100%;
    /* Минимальная высота, чтобы маленькие баннеры (88x31) не болтались в пустоте,
       а большие — не выпирали за пределы карточки */
    min-height: 100px; 
    display: flex;
    align-items: center;
    justify-content: center;
    /* Убрали серый фон, теперь пустое место вокруг маленьких баннеров 
       будет прозрачным и не будет выглядеть как "серая коробка" */
    background: transparent; 
    margin-bottom: 12px;
}

.partner-banner img {
    /* Картинка не будет искажаться и всегда влезет целиком */
    max-width: 100%;
    max-height: 100px; /* Ограничиваем высоту */
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform .3s ease;
    
    /* Добавляем легкую тень, чтобы баннеры выделялись на стеклянном фоне */
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}

.partner-card:hover .partner-banner img {
    transform: scale(1.05);
}

.partner-banner-placeholder {
    color: var(--accent);
    font-size: 2rem;
    opacity: 0.4;
}

.partner-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    line-height: 1.3;
    word-wrap: break-word;
    margin-top: auto; /* Прижимает название к низу, если баннер маленький */
}

html[data-theme="winter"] .partner-name { color: #1e2a3a; }

@media (max-width: 560px) {
    .partners-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
    .partner-banner { min-height: 80px; }
    .partner-banner img { max-height: 80px; }
    .partner-name { font-size: 1rem; }
}