/*
Theme Name: Saximproviz Theme
Author: Andrey Lavi
Description: Самодельная тема для сайта Saximproviz.art
Version: 6.0
Text Domain: saximproviz
*/

@font-face {
    font-family: 'Raleway';
    src: url('fonts/Raleway-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Raleway';
    src: url('fonts/Raleway-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Raleway';
    src: url('fonts/Raleway-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Raleway';
    src: url('fonts/Raleway-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* =======================================================
   1. ОБЩИЕ СТИЛИ (ФОН, ШРИФТЫ, ЦВЕТА)
   ======================================================= */
* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: #151515; 
    color: #e8e8e8;
    line-height: 1.6; 
    font-size: 16px;
    overflow-x: hidden; 
}

a {
    color: #ffbb3d; 
    text-decoration: none;
    font-weight: bold; 
    transition: color 0.2s ease; 
}
a:hover { color: #ffffff; text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
    margin-top: 1em; 
    margin-bottom: 0.8em;
    line-height: 1.3;
}

/* ЧЕРЕДОВАНИЕ ЦВЕТОВ ЗАГОЛОВКОВ: H1-белый, H2-золотой, H3-белый, H4-золотой, H5-белый, H6-золотой */
h1, h3, h5 { color: #ffffff; }
h2, h4, h6 { color: #f5a623; }

/* =======================================================
   2. ШАПКА САЙТА
   ======================================================= */
.site-header {
    background: rgba(10, 10, 10, 0.85); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid #f5a623; 
    padding: 22px 0; 
    position: fixed; 
    top: 0; left: 0; width: 100%;
    z-index: 1000; 
}
body.admin-bar .site-header { top: 32px; }

.header-inner {
    max-width: 1360px; 
    margin: 0 auto;
    padding: 0; /* Вернули как было */
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

.header-left { display: flex; align-items: center; }
.site-title { color: #fff; font-size: 26px; font-weight: bold; margin: 0; transition: 0.2s; }
.site-title:hover { color: #f5a623; text-decoration: none; }

/* Обертка для меню и профиля (десктоп) */
.sax-header-nav-wrapper {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: space-between;
}

/* Кнопка бургер (по умолчанию скрыта) */
.sax-burger {
    display: none;
}

.site-nav { flex-grow: 1; text-align: center; }
.site-nav ul { display: flex; gap: 25px; list-style: none; margin: 0; padding: 0; justify-content: center; }
.site-nav li { margin: 0; padding: 0; }
.site-nav a { color: #ccc; font-size: 16px; padding: 6px 4px; display: inline-block; transition: 0.2s; }
.site-nav a:hover, .site-nav li.current-menu-item a { color: #f5a623; text-decoration: none; }

.header-right { display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #f5a623; }
.user-name { color: #e8e8e8; font-size: 15px; }

/* =======================================================
   3. ОСНОВНОЙ КОНТЕНТ
   ======================================================= */
.site-main {
    max-width: 1360px; 
    margin: 0 auto;
    padding: 110px 0 40px; /* Вернули как было */
    min-height: 60vh;
}

.entry {
    background: #1e1e1e;
    padding: 40px; 
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.entry p { margin-bottom: 1.2em; }

/* =======================================================
   4. ИНТЕГРАЦИЯ С ПЛАГИНОМ
   ======================================================= */
.sax-text { font-size: 16px; line-height: 1.8; color: #dcdcdc; }
.sax-content-blocks .sax-text p { margin-top: 0; margin-bottom: 4px; padding: 0;
    
}

/* Одиночная картинка */
.sax-image { height: 100%; display: flex; }
.sax-image img {
    width: 100%; height: 100%; max-height: 450px; object-fit: cover; display: block; border-radius: 6px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6); transition: transform 0.4s ease, box-shadow 0.4s ease; border: 1px solid #333;
}
.sax-image img:hover { transform: scale(1.03); box-shadow: 0 12px 35px rgba(245, 166, 35, 0.2); }

.sax-video { width: 100%; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 25px rgba(0,0,0,0.6); border: 1px solid #333; }
.sax-video iframe, .sax-video video { width: 100%; aspect-ratio: 16 / 9; display: block; border: none; }

.sax-audio audio { width: 100%; border-radius: 30px; outline: none; }

.sax-col-text {
    background: #1a1a1a; border-radius: 8px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); 
    padding: 25px; border: 1px solid #2a2a2a; transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.sax-col-text:hover { box-shadow: 0 6px 25px rgba(245, 166, 35, 0.15); transform: translateY(-2px); }
.sax-col-text .sax-text { margin: 0; }
.sax-col-text .sax-text p:last-child { margin-bottom: 0; }

.sax-block { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid rgba(245, 166, 35, 0.3); }
.sax-content-blocks .sax-block:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }

/* =======================================================
   4.1. БЛОК: БАННЕР (ШАПКА) - СТАТИКА И КАРУСЕЛЬ
   ======================================================= */
.sax-banners-wrap {
    width: 100vw; position: relative; left: 50%; right: 50%;
    margin-left: -50vw; margin-right: -50vw;
    margin-bottom: 40px; padding-bottom: 40px; 
}
.sax-banners-wrap::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%); width: 100%; max-width: 1360px;
    height: 1px; background: rgba(245, 166, 35, 0.3);
}
.sax-banners-wrap .sax-block { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.sax-col-banner { width: 100%; height: 400px; margin-top: -155px; position: relative; overflow: hidden; }
.sax-banner-slide-bg {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover; background-position: center; background-repeat: no-repeat; z-index: 1;
}
.sax-banner-inner {
    position: relative; z-index: 2; width: 100%; max-width: 1360px; 
    margin: 0 auto; padding: 204px 0 60px 0; /* Вернули как было */
    text-align: left; height: 100%;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.sax-banner-title {
    color: #ffffff; font-size: 48px; margin: 0 0 10px 0; line-height: 1.1; font-weight: bold;
    text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.95), 0px 0px 30px rgba(0, 0, 0, 0.9), 0px 0px 50px rgba(0, 0, 0, 0.8), 0px 0px 80px rgba(0, 0, 0, 0.6); 
}
.sax-banner-subtitle {
    color: #f5a623; font-size: 22px; margin: 0; font-weight: 500;
    text-shadow: 0px 3px 10px rgba(0, 0, 0, 0.95), 0px 0px 20px rgba(0, 0, 0, 0.9), 0px 0px 40px rgba(0, 0, 0, 0.7);
}
.sax-banner-swiper { width: 100%; height: 100%; }
.sax-banner-swiper .swiper-slide { position: relative; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.sax-banner-overlay { display: none !important; }

/* НОВЫЕ СТИЛИ ДЛЯ ГАЛЕРЕИ (КАРТИНКИ) */
.sax-gallery-carousel {
    width: 100%;
    height: 100%;
    max-height: 450px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    border: 1px solid #333;
}
.sax-gallery-swiper { width: 100%; height: 100%; }
.sax-gallery-swiper .swiper-slide { display: flex; justify-content: center; align-items: center; overflow: hidden; width: 100%; height: 100%; }
.sax-gallery-swiper .swiper-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =======================================================
   4.2. БЛОК: КНОПКИ (Широкие)
   ======================================================= */
.sax-col-buttons { width: 100%; padding: 20px 0; }
.sax-buttons-wrapper { display: flex; justify-content: space-between; align-items: stretch; width: 100%; gap: 20px; }
a.sax-btn {
    flex: 1; display: inline-flex; justify-content: center; align-items: center;
    background: linear-gradient(180deg, #ffbb3d 0%, #f5a623 100%);
    color: #111 !important; text-decoration: none !important;
    padding: 12px 20px; font-size: 16px; font-weight: bold; border-radius: 6px;
    border: 1px solid #d4891a; border-bottom: 3px solid #b87210; 
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 3px 6px rgba(245, 166, 35, 0.2);
    transition: all 0.2s ease; text-align: center; text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
}
a.sax-btn:hover {
    background: linear-gradient(180deg, #f5a623 0%, #d4891a 100%);
    color: #111 !important; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    transform: translateY(3px); border-bottom: 1px solid #b87210; 
}
.sax-buttons-wrapper .sax-btn-left:empty,
.sax-buttons-wrapper .sax-btn-center:empty,
.sax-buttons-wrapper .sax-btn-right:empty { display: none; }

/* =======================================================
   4.3. НОВЫЕ ЗАГОЛОВКИ СТРАНИЦ
   ======================================================= */
.sax-page-custom-header { margin-top: 0; margin-bottom: 40px; }
.sax-custom-h1 { color: #ffffff; font-size: 42px; margin: 0 0 15px 0; line-height: 1.2; font-weight: bold; letter-spacing: 0.5px; }
.sax-custom-divider { width: 100%; height: 1px; background: linear-gradient(90deg, rgba(245, 166, 35, 0.6) 0%, rgba(245, 166, 35, 0) 100%); margin-bottom: 20px; }
/* Убрали жесткий цвет, теперь H2 (над линией) берет золотой из глобальных правил, а H3 (под линией) — белый */
.sax-custom-h2 { font-size: 28px; margin: 0; font-weight: normal; }

/* =======================================================
   4.4. ДИНАМИЧЕСКИЙ БЛОК (СЕТКА) И ВИДЖЕТЫ
   ======================================================= */
.sax-col-dynamic { width: 100%; }
.sax-dynamic-title { font-size: 28px; margin-bottom: 25px; }

.sax-col-widget { width: 100%; }
.sax-widget-title { font-size: 22px; margin: 0 0 15px 0; font-weight: bold; }
.sax-embed-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    line-height: 0; /* Убираем лишние отступы у iframe */
    background: #1a1a1a;
    border: 1px solid rgba(245, 166, 35, 0.4); /* Оранжевая рамка, как у плеера */
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3); /* Легкая статичная оранжевая тень */
}
.sax-embed-container iframe {
    width: 100%;
    max-width: 100%;
    display: block;
    border: none;
    border-radius: 8px;
}

/* =======================================================
   4.5. НОВЫЙ КАСТОМНЫЙ АУДИО ПЛЕЕР (V5 - Умная бегущая строка)
   ======================================================= */
.sax-col-audio .player-card {
    background: linear-gradient(180deg, #222222 0%, #181818 100%);
    border-radius: 12px;
    border: 1px solid rgba(245, 166, 35, 0.3); 
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8), inset 0 2px 5px rgba(0, 0, 0, 0.6);
    width: 100%;
    padding: 25px;
    box-sizing: border-box;
    position: relative;
    transition: box-shadow 0.5s ease, border-color 0.5s ease;
}
.sax-col-audio .player-card.is-playing {
    border-color: rgba(245, 166, 35, 0.8); 
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8), inset 0 2px 5px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 166, 35, 0.3); 
    animation: pulse-glow 2s infinite alternate;
}
@keyframes pulse-glow {
    from { box-shadow: inset 0 0 40px rgba(0,0,0,0.8), inset 0 2px 5px rgba(0,0,0,0.6), 0 0 15px rgba(245, 166, 35, 0.1); border-color: rgba(245, 166, 35, 0.5); }
    to { box-shadow: inset 0 0 40px rgba(0,0,0,0.8), inset 0 2px 5px rgba(0,0,0,0.6), 0 0 35px rgba(245, 166, 35, 0.6); border-color: rgba(245, 166, 35, 1); }
}
.sax-col-audio .play-btn {
    width: 55px; height: 55px; border-radius: 50%;
    background: linear-gradient(180deg, #ffbb3d 0%, #f5a623 100%);
    border: 1px solid #d4891a; border-bottom: 4px solid #b87210;
    cursor: pointer; display: flex; justify-content: center; align-items: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5), 0 3px 6px rgba(245, 166, 35, 0.2);
    transition: all 0.1s ease; flex-shrink: 0; padding: 0;
}
.sax-col-audio .play-btn:active { transform: translateY(3px); border-bottom: 1px solid #b87210; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); }
.sax-col-audio .play-btn::after {
    content: ''; display: block; width: 0; height: 0;
    border-style: solid; border-width: 9px 0 9px 15px;
    border-color: transparent transparent transparent #111;
    margin-left: 5px; filter: drop-shadow(0 1px 1px rgba(255,255,255,0.3));
}
.sax-col-audio .play-btn.is-paused::after {
    border: none; width: 14px; height: 16px;
    border-left: 5px solid #111; border-right: 5px solid #111;
    background: transparent; margin-left: 0;
}
.sax-col-audio .single-player { display: flex; align-items: center; gap: 25px; }
.sax-col-audio .player-center { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }

/* ЦЕНТРИРУЕМ БЕГУЩУЮ СТРОКУ */
.sax-col-audio .track-title-wrapper {
    width: 100%; overflow: hidden; white-space: nowrap; margin-bottom: 8px;
    display: flex; align-items: center; justify-content: center;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}
.sax-col-audio .track-title { font-size: 16px; font-weight: 500; color: #e8e8e8; white-space: nowrap; display: inline-block; }
.sax-col-audio .track-title.is-scrolling { animation: marquee linear infinite; }
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
.sax-col-audio .progress-wrapper {
    width: 100%; height: 4px; background: #0a0a0a; border-radius: 2px; cursor: pointer;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.9), inset 0 -1px 1px rgba(255,255,255,0.05); position: relative;
}
.sax-col-audio .progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, #f5a623, #ffbb3d); border-radius: 2px; box-shadow: 0 0 8px rgba(245, 166, 35, 0.6); pointer-events: none; }
.sax-col-audio .time-display { font-size: 13px; color: #888; font-variant-numeric: tabular-nums; flex-shrink: 0; width: 90px; text-align: right; }
.sax-col-audio .volume-control { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.sax-col-audio .volume-icon { color: #888; font-size: 18px; cursor: pointer; }
.sax-col-audio .volume-slider { -webkit-appearance: none; width: 60px; height: 4px; background: #0a0a0a; border-radius: 2px; outline: none; box-shadow: inset 0 1px 2px rgba(0,0,0,0.8); }
.sax-col-audio .volume-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #f5a623; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.5); border: 1px solid #d4891a; }
.sax-col-audio .track-list { list-style: none; margin: 20px -25px -25px -25px; padding: 0; border-top: 1px solid rgba(245, 166, 35, 0.2); max-height: 300px; overflow-y: auto; }
.sax-col-audio .track-list::-webkit-scrollbar { width: 8px; }
.sax-col-audio .track-list::-webkit-scrollbar-track { background: #151515; }
.sax-col-audio .track-list::-webkit-scrollbar-thumb { background: #f5a623; border-radius: 4px; border: 2px solid #151515; }
.sax-col-audio .track-list::-webkit-scrollbar-thumb:hover { background: #ffbb3d; }
.sax-col-audio .track-item { display: flex; align-items: center; padding: 15px 25px; border-bottom: 1px solid #2a2a2a; cursor: pointer; transition: all 0.2s; }
.sax-col-audio .track-item:last-child { border-bottom: none; }
.sax-col-audio .track-item:hover { background: rgba(255, 255, 255, 0.02); box-shadow: inset 0 0 10px rgba(0,0,0,0.5); }
.sax-col-audio .track-item.active { background: rgba(245, 166, 35, 0.05); border-left: 3px solid #f5a623; padding-left: 22px; box-shadow: inset 0 0 15px rgba(245, 166, 35, 0.1); }
.sax-col-audio .track-num { width: 30px; color: #555; font-size: 14px; font-variant-numeric: tabular-nums; }
.sax-col-audio .track-item.active .track-num { color: #f5a623; }
.sax-col-audio .track-item-title { flex-grow: 1; color: #ccc; font-size: 15px; }
.sax-col-audio .track-item.active .track-item-title { color: #f5a623; font-weight: bold; }
.sax-col-audio .track-duration { color: #555; font-size: 13px; font-variant-numeric: tabular-nums; }
.sax-hidden-audio { display: none !important; }

/* =======================================================
   5. ПОДВАЛ САЙТА
   ======================================================= */
.site-footer { background: #0a0a0a; padding: 40px 0; text-align: center; color: #777; font-size: 14px; border-top: 1px solid #333; margin-top: 50px; }
.site-footer a { color: #f5a623; }

/* =======================================================
   6. АРХИВ ЗАМЕТОК И МУЗ-КАРТ
   ======================================================= */
.archive-title { font-size: 36px; margin-top: 0; margin-bottom: 10px; text-align: left; }
.archive-subtitle { text-align: left; font-size: 18px; font-weight: normal; color: #888; margin-top: 0; margin-bottom: 30px; }
.archive-entry { padding: 30px; margin-top: 0; }

.notes-archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-bottom: 20px; }

.note-card {
    background: #151515; border-radius: 8px; overflow: hidden; border: 1px solid #333; box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; height: 100%;
}
.note-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(245, 166, 35, 0.15); border-color: rgba(245, 166, 35, 0.5); }

.note-card-image { display: block; width: 100%; height: 180px; overflow: hidden; background: #111; border-bottom: 2px solid #f5a623; flex-shrink: 0; }
.note-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.note-card:hover .note-card-image img { transform: scale(1.05); }

.note-card-no-image { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 50px; opacity: 0.3; }

.note-card-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.note-card-title { font-size: 18px; margin: 0 0 10px 0; line-height: 1.4; }
.note-card-title a { color: #fff; }
.note-card-title a:hover { color: #f5a623; text-decoration: none; }

.note-card-excerpt { color: #a0a0a0; font-size: 14px; line-height: 1.5; margin-bottom: 15px; flex-grow: 1; }
.note-card-excerpt,
.note-card-excerpt p { display: -webkit-box; -webkit-line-clamp: 7; line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; margin: 0; padding: 0; }
.musiccards-grid .note-card-excerpt,
.musiccards-grid .note-card-excerpt p { -webkit-line-clamp: 5; line-clamp: 5; }

.note-card-readmore { display: inline-block; color: #f5a623; font-weight: bold; font-size: 14px; margin-top: auto; }
.note-card-readmore:hover { color: #ffbb3d; text-decoration: none; }

.notes-pagination { text-align: center; margin-top: 20px; }
.notes-pagination .page-numbers { display: inline-block; padding: 8px 15px; margin: 0 5px; background: #151515; border-radius: 5px; color: #fff; border: 1px solid #333; }
.notes-pagination .page-numbers.current, .notes-pagination .page-numbers:hover { background: #f5a623; color: #000; text-decoration: none; border-color: #f5a623; }

/* =======================================================
   7. БЛОК АВТОРА В ЗАМЕТКЕ (НИЗ)
   ======================================================= */
.sax-note-author {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(245, 166, 35, 0.3);
}

.sax-note-author-avatar-link {
    flex-shrink: 0;
    display: block;
}

.sax-note-author-avatar {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    border: 2px solid #f5a623;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.sax-note-author-avatar-link:hover .sax-note-author-avatar {
    transform: scale(1.05);
    border-color: #ffbb3d;
    box-shadow: 0 6px 15px rgba(245, 166, 35, 0.3);
}

.sax-note-author-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sax-note-author-label {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sax-note-author-name {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sax-note-author-name:hover {
    color: #f5a623;
    text-decoration: none;
}

.sax-note-author-link {
    font-size: 14px;
    color: #f5a623;
    text-decoration: none;
    font-weight: 500;
    margin-top: 2px;
}

.sax-note-author-link:hover {
    color: #ffbb3d;
    text-decoration: underline;
}

/* =======================================================
   7.1. ОДИНОЧНАЯ ЗАМЕТКА (НОВЫЙ ДИЗАЙН ШАПКИ)
   ======================================================= */
.sax-note-single {
    margin-bottom: 30px;
}

/* Шапка (Аватар + Баннер) */
.sax-note-header {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
    align-items: stretch;
}

/* КВАДРАТНАЯ АВАТАРКА С ТЕНЬЮ */
.sax-note-header-avatar {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    border: 1px solid #333;
}

.sax-note-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* БАННЕР С ТЕНЬЮ (высота выровнена с аватаркой) */
.sax-note-header-banner {
    flex-grow: 1;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    border: 1px solid #333;
}

.sax-note-header-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Заголовок и мета */
.sax-note-title-wrapper {
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(245, 166, 35, 0.6); /* Тонкая фирменная линия */
}

.sax-note-title {
    color: #ffffff;
    font-size: 34px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.sax-note-meta {
    font-size: 15px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sax-note-meta strong {
    color: #f5a623;
    font-weight: 600;
}

.sax-note-meta a {
    color: inherit;
    text-decoration: none;
}

.sax-note-meta a:hover {
    text-decoration: underline;
}

/* Тело заметки */
.sax-note-body {
    font-size: 18px;
    line-height: 1.7;
    color: #d1d1d1;
}

.sax-note-body p {
    margin-bottom: 20px;
}

/* =======================================================
   7.2. БАННЕР В МУЗ-КАРТЕ (ШИРОКИЙ)
   ======================================================= */
.sax-mc-banner {
    width: 100%;
    height: 200px; /* УМЕНЬШИЛИ ВЫСОТУ В 2 РАЗА */
    margin-top: -90px; /* ПОДТЯГИВАЕМ ВВЕРХ, ЧТОБЫ УБРАТЬ ДЫРКУ */
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
}

.sax-mc-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.sax-mc-banner:hover img {
    transform: scale(1.02);
}

/* =======================================================
   8. АДАПТИВ (ОБЩИЙ)
   ======================================================= */
@media (min-width: 1600px) {
    .site-main, .header-inner, .sax-banner-inner { max-width: 1500px; }
    .sax-banners-wrap::after { max-width: 1500px; } 
}

/* Добавляем отступы для узких экранов (планшеты) */
@media (max-width: 1400px) {
    .header-inner, .site-main, .sax-banner-inner {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 900px) {
    .site-main { padding-top: 110px; padding-bottom: 30px; }
    .entry { padding: 20px; }
}

/* =======================================================
   9. МОБИЛЬНАЯ ШАПКА (БУРГЕР) - ШТОРКА
   ======================================================= */
@media (max-width: 800px) {
    body.admin-bar .site-header { top: 46px; }
    
    .site-header { padding: 15px 0; }
    
    .header-inner { 
        flex-direction: row !important; 
        justify-content: space-between !important; 
        padding: 0 15px !important; 
        position: relative; 
    }
    .site-title { font-size: 22px; }
    
    /* Показываем бургер */
    .sax-burger { 
        display: flex; 
        flex-direction: column; 
        justify-content: space-between; 
        width: 30px; 
        height: 21px; 
        background: transparent; 
        border: none; 
        cursor: pointer; 
        padding: 0; 
        z-index: 1001; 
    }
    .sax-burger span { 
        display: block; 
        width: 100%; 
        height: 3px; 
        background-color: #f5a623; 
        border-radius: 3px; 
        transition: all 0.3s ease; 
    }
    .sax-burger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .sax-burger.is-open span:nth-child(2) { opacity: 0; }
    .sax-burger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* Выпадающее меню */
    .sax-header-nav-wrapper {
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px); 
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column; 
        padding: 20px 0; 
        gap: 20px; 
        border-bottom: 2px solid #f5a623;
        transform: translateY(-10px); 
        opacity: 0; 
        visibility: hidden; 
        transition: all 0.3s ease; 
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    .sax-header-nav-wrapper.is-open { 
        transform: translateY(0); 
        opacity: 1; 
        visibility: visible; 
    }
    
    .site-nav { width: 100%; }
    .site-nav ul { flex-direction: column; gap: 15px; width: 100%; }
    .site-nav a { font-size: 18px; padding: 10px 0; display: block; }
    .header-right { width: 100%; justify-content: center; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.1); }

    .site-main { padding-top: 90px; padding-left: 15px; padding-right: 15px; }
    .notes-archive-grid { grid-template-columns: 1fr; }

    /* Баннер на телефонах */
    .sax-banners-wrap { margin-bottom: 20px; padding-bottom: 20px; }
    .sax-col-banner { margin-top: -90px; height: 300px; }
    .sax-banner-inner { padding-top: 0; padding-bottom: 30px; padding-left: 15px; padding-right: 15px; }
    .sax-banner-title { font-size: 32px; }
    .sax-banner-subtitle { font-size: 18px; }

    /* Баннер Муз-карты на телефонах */
    .sax-mc-banner {
        height: 150px; /* УМЕНЬШИЛИ ВЫСОТУ ДЛЯ МОБИЛЬНЫХ */
        margin-top: -80px; /* ПОДТЯГИВАЕМ ВВЕРХ */
        margin-bottom: 20px;
        border-radius: 8px;
    }

    /* КНОПКИ НА ТЕЛЕФОНАХ */
    .sax-buttons-wrapper { flex-direction: column; gap: 15px; }
    a.sax-btn { width: 100%; flex: none; }

    /* Плеер на телефонах */
    .sax-col-audio .single-player { flex-wrap: wrap; gap: 15px; }
    .sax-col-audio .player-center { order: 3; width: 100%; flex: none; margin-top: 10px; }
    .sax-col-audio .time-display { order: 2; text-align: right; margin-left: auto; }
    .sax-col-audio .volume-control { order: 4; width: 100%; justify-content: flex-end; margin-top: 10px; }
    
    /* Заголовки страниц на телефонах */
    .sax-custom-h1 { font-size: 32px; }
    .sax-custom-h2 { font-size: 22px; }

    /* Блок автора на телефонах */
    .sax-note-author {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    /* Новый дизайн заметки на телефонах */
    .sax-note-header {
        flex-direction: column;
    }
    .sax-note-header-avatar {
        width: 100px;
        height: 100px;
    }
    .sax-note-header-banner {
        height: 100px;
    }
    .sax-note-title {
        font-size: 26px;
    }
    .sax-note-body {
        font-size: 16px;
    }
}

/* =======================================================
   БЛОК: ПОДЕЛИТЬСЯ (Соцсети) - Глобальные стили
   ======================================================= */
.sax-note-share-wrapper {
    margin-top: 40px; 
    border-top: 1px solid #333; 
    padding-top: 20px; 
    display: block;
}

.sax-col-share {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.sax-share-label {
    color: #888;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    margin-bottom: 5px;
}

@media (min-width: 600px) {
    .sax-share-label {
        width: auto;
        margin-bottom: 0;
    }
}

.sax-share-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sax-share-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1e1e1e;
    border: 1px solid #333;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    padding: 8px;
    box-sizing: border-box;
}

.sax-share-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Фирменная подсветка */
.sax-share-btn:hover {
    background: rgba(245, 166, 35, 0.1);
    border-color: #f5a623;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(245, 166, 35, 0.4);
}

.sax-share-btn:hover img {
    transform: scale(1.1);
}

/* Кнопка Скопировать */
.sax-share-btn.sax-copy-btn {
    width: auto;
    padding: 0 15px;
    border-radius: 22px;
    gap: 8px;
    font-size: 13px;
    color: #888;
    font-family: inherit;
    font-weight: bold;
}

.sax-share-btn.sax-copy-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.sax-share-btn.sax-copy-btn:hover {
    color: #f5a623;
}

/* =======================================================
   БЛОК: КАРТИНКА-ССЫЛКА (IMG-LINK)
   ======================================================= */
.sax-img-link-card {
    background: #1a1a1a; 
    border: 1px solid #333; 
    border-radius: 8px;
    overflow: hidden; 
    text-decoration: none; 
    display: flex; 
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); 
    height: 100%;
}

.sax-img-link-card:hover {
    transform: translateY(-4px); 
    border-color: rgba(245, 166, 35, 0.5);
    box-shadow: 0 6px 25px rgba(245, 166, 35, 0.15); 
    text-decoration: none;
}

.sax-img-link-img {
    width: 100%; 
    aspect-ratio: 16 / 9; 
    object-fit: cover; 
    display: block;
    border-bottom: 2px solid #333; 
    transition: transform 0.4s ease, border-color 0.3s ease;
}

.sax-img-link-card:hover .sax-img-link-img {
    transform: scale(1.03); 
    border-bottom-color: #f5a623;
}

.sax-img-link-content {
    padding: 16px; 
    flex-grow: 1; 
    display: flex; 
    align-items: center;
}

.sax-img-link-title {
    font-size: 18px; 
    font-weight: 600; 
    color: #ffffff; 
    margin: 0; 
    line-height: 1.3;
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden;
}

.sax-img-link-card:hover .sax-img-link-title { 
    color: #f5a623; 
}


/* =======================================================
   ЗАГОЛОВОК СЕКЦИИ (УНИВЕРСАЛЬНЫЙ)
   ======================================================= */
/* Убираем нижнюю линию у самого заголовка, чтобы он прилипал к блоку снизу */
.sax-block.sax-layout-title {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 15px !important; /* Небольшой отступ, чтобы не прилипало вплотную */
    margin-top: 40px !important;    /* Отделяем от предыдущего блока */
}

/* Если заголовок стоит самым первым на странице, убираем лишний отступ сверху */
.sax-content-blocks .sax-block.sax-layout-title:first-child {
    margin-top: 0 !important;
}

/* Внешний вид самого текста заголовка (как H2 — золотой) */
.sax-section-title {
    color: #f5a623;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    text-align: left;
}

/* Адаптив для мобильных */
@media (max-width: 800px) {
    .sax-section-title {
        font-size: 22px;
    }
    .sax-block.sax-layout-title {
        margin-top: 30px !important;
        margin-bottom: 10px !important;
    }
}