/* Переменные CSS для легкой замены шрифтов */
:root {
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', 'Geist', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --color-header-bg: #272727;

  /* Light theme colors */
  --bg-color: #000;
  --text-color: #070707e1;
  --header-bg: #fbfbfb;
  --header-text: #0000a0;
  --section-bg: rgba(218, 218, 218, 0.308);
  --track-overlay: rgba(0, 0, 0, 0.5);
  --track-text-bg: rgba(255, 255, 255, 0.5);
  --button-bg: #e6e6e6;
  --button-color: #000;
  --active-bg: linear-gradient(#0000a0, #000060);
  --active-color: #fff;
}

/* Dark theme - Traditional darkening approach */
[data-theme="dark"] {
  --bg-color: #0f0f0f; /* Very dark almost black background */
  --text-color: #e8e8e8; /* Light gray text for good contrast */
  --secondary-text: #b0b0b0; /* Medium gray for secondary text */
  --muted-color: #808080; /* Gray for muted elements */
  --header-bg: #1a1a1a; /* Dark gray header background */
  --header-text: #ffffff; /* Pure white text */
  --section-bg: rgba(25, 25, 25, 0.95); /* Very dark sections, almost opaque */
  --track-overlay: rgba(0, 0, 0, 0.7); /* Darker overlays */
  --track-text-bg: rgba(40, 40, 40, 0.9); /* Dark backgrounds for text */
  --button-bg: #2a2a2a; /* Medium dark button backgrounds */
  --button-color: #e8e8e8; /* Light text on dark buttons */
  --active-bg: linear-gradient(#404040, #202020); /* Dark gray gradient */
  --active-color: #ffffff; /* White text on active */
  --border-color: #404040; /* Dark borders */
}

/* Основные стили */
body {
  font-family: var(--font-body);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  position: relative;
}

/* Apply background colors based on theme and language */
body:has(:lang(en)) {
  background: var(--bg-color);
}

body:has(:lang(ru)) {
  background: var(--bg-color);
}



/* Dark theme overrides */
[data-theme="dark"] {
  background: var(--bg-color) !important;
}

/* Контейнер для шейдера */
#shader-canvas {
    position: fixed; /* Фиксируем на весь экран */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Помещаем за всем контентом */
}

/* Основной контент поверх шейдера */
.content {
  position: relative;
  z-index: 1; /* "Поднимает" контент над фоном */
  padding: 20px;
  border-radius: 8px;
  margin: 20px; /* Отступы от краев окна */
}

.header {
  text-align: center;
  margin: 20px;
  background: var(--header-bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  mix-blend-mode: normal;
  color: var(--header-text) !important;
}

/* Позиционирование текста */
.header h1,
.header p {
  margin: 0;
  color: var(--header-text) !important;
}

.header h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 6px;
  font-family: var(--font-heading);
  color: var(--header-text) !important;
}

.header p {
  font-size: 1.05rem;
  margin-top: 6px;
  font-weight: 500;
  color: var(--header-text) !important;
}

/* Стиль для заголовков списков (h2) — цвет фона header */
.section h2 {
  color: var(--color-header-bg);
  font-family: var(--font-heading);
  font-weight: 700;
  text-shadow:
    -1px -1px 0 rgba(0,0,0,0.35),
    1px -1px 0 rgba(0,0,0,0.35),
    -1px 1px 0 rgba(0,0,0,0.35),
    1px 1px 0 rgba(0,0,0,0.35);
}

/* Стили для языкового переключателя */
.lang-switcher {
  position: absolute;
  top: 15px;
  right: 25px; /* Сделал отступ поменьше */
  display: flex;
  gap: 8px;
  z-index: 3;
}

/* Стили для переключателя тем */
.theme-switcher {
  position: absolute;
  top: 15px;
  left: 25px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

/* Animated theme toggle button */
.theme-toggle {
  position: relative;
  width: 40px;
  height: 20px;
  background: #e6e6e6;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.theme-toggle[data-theme="dark"] {
  background: #2d2d30;
}

.theme-toggle:hover {
  transform: scale(1.05);
}

.theme-toggle:focus {
  box-shadow: 0 0 0 3px rgba(77, 144, 254, 0.5);
}

/* The slider circle */
.theme-toggle::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.theme-toggle[data-theme="dark"]::before {
  transform: translateX(20px);
  background: #e8eaed;
}

/* Sun and moon icons */
.theme-toggle::after {
  content: '☀';
  position: absolute;
  top: 50%;
  left: 2px;
  transform: translateY(-50%);
  font-size: 12px;
  color: #ffd700;
  opacity: 1;
  transition: all 0.3s ease;
}

.theme-toggle[data-theme="dark"]::after {
  content: '🌙';
  left: auto;
  right: 2px;
  color: #e8eaed;
  transform: translateY(-50%);
}

/* Theme label styling */
.theme-label {
  color: var(--header-text);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 8px;
  user-select: none;
}

/* Dark theme overrides for specific elements */
[data-theme="dark"] .content-grid {
    background: rgba(25, 25, 25, 0.95);
    border: 2px solid rgba(64, 64, 64, 0.8);
}

[data-theme="dark"] .music-column,
[data-theme="dark"] .video-column {
  background-color: rgba(25, 25, 25, 0.95) !important;
  border: 2px solid rgba(64, 64, 64, 0.8) !important;
  backdrop-filter: blur(10px);
}

[data-theme="dark"] .about-column {
  background-color: rgba(45, 45, 45, 0.95) !important; /* Slightly lighter for dark theme about section */
  border: 2px solid rgba(64, 64, 64, 0.8) !important;
  backdrop-filter: blur(10px);
}

[data-theme="dark"] .genre-filters {
  background: rgba(25, 25, 25, 0.9);
  border: 2px solid rgba(64, 64, 64, 0.8);
}

[data-theme="dark"] .genre-filters button {
  background: rgba(40, 40, 40, 0.95);
  border: 1px solid rgba(64, 64, 64, 0.8);
  color: #e8e8e8;
}

[data-theme="dark"] .genre-filters button.active-filter {
  background: rgba(64, 64, 64, 0.9);
  border: 2px solid rgba(100, 100, 100, 0.8);
}

[data-theme="dark"] .video-project,
[data-theme="dark"] .video-item,
[data-theme="dark"] .project-block {
  background: rgba(25, 25, 25, 0.95) !important;
  border-color: rgba(64, 64, 64, 0.8) !important;
}

[data-theme="dark"] .video-info,
[data-theme="dark"] .video-caption {
  background: rgba(40, 40, 40, 0.95) !important;
  color: #e8e8e8 !important;
}

[data-theme="dark"] .video-title,
[data-theme="dark"] .project-title,
[data-theme="dark"] .project-description,
[data-theme="dark"] .video-description {
  color: #e8e8e8 !important;
}

[data-theme="dark"] .about-text .about-short {
  background: rgba(40, 40, 40, 0.95) !important;
  color: #ffffff !important;
  border-left-color: rgba(64, 64, 64, 0.8) !important;
}

[data-theme="dark"] .about-text p {
  color: #ffffff !important;
}

[data-theme="dark"] .about-photos {
  background: rgba(25, 25, 25, 0.95) !important;
  border-color: rgba(64, 64, 64, 0.8) !important;
}

[data-theme="dark"] .section h2 {
  color: #ffffff !important;
  text-shadow: none !important;
}

/* Стили для фильтров жанров */
.genre-filters {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.genre-filters button {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  padding: 12px 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: transform 0.12s ease;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  writing-mode: horizontal-tb;
  text-orientation: upright;
}

.genre-filters button:hover {
  transform: scale(1.05);
}

.genre-filters button.active-filter {
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.lang-switcher img {
  width: 35px;
  height: auto;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
  border-radius: 3px;
}

.lang-switcher img:hover {
  opacity: 1;
}

.lang-switcher img:active {
  transform: scale(0.95);
}

/* Стили для двухколоночной сетки */

.content-grid {
    text-align: center;
    background: rgba(255, 255, 255, 0.13);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
}
button {
  margin: 10px;
  transition: transform 0.12s ease;
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: 700;
  border: 2px outset #666;
  border-radius: 0;
  cursor: pointer;
  background: #e6e6e6; /* solid Web1 base */
  color: #000;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.18);
  position: relative;
  overflow: visible;
}

button:hover {
  transform: scale(1.03);
}

button:active {
  transform: translateY(1px);
  border-style: inset;
  box-shadow: none;
}

/* Вид для клавиатурного фокуса (a11y) */
button:focus {
  outline: 3px solid #4d90fe;
  outline-offset: 2px;
}

/* Активное/выделенное состояние — синий Web1 вид */
button.active {
  background: linear-gradient(#0000a0, #000060);
  color: #fff;
  border: 2px inset #ffffff;
  box-shadow: inset 1px 1px 0 rgba(0,0,0,0.45), inset -1px -1px 0 rgba(255,255,255,0.06);
}

.section {
    animation: slideInFade 0.6s ease-out forwards;
    opacity: 0;
    display: block;
}

.section[style*="display: none"] {
    animation: none;
    opacity: 0;
}

/* Animation for АУДИО section */
#audio {
    animation-delay: 0s;
}

/* Animation for ВИДЕО section */
#video {
    animation-delay: 0.2s;
}

/* Animation for О СЕБЕ section */
#about {
    animation-delay: 0.3s;
}

@keyframes slideInFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.music-column {
  padding: 15px;
  /* ИСПРАВЛЕНА НЕПРОЗРАЧНОСТЬ ФОНА */
  background-color: rgba(218, 218, 218, 0.308); /* tan, 60% opacity */
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: rgba(0, 0, 0, .2) 0 4px 56px;
  border-radius: 12px;
  max-width: 85%; /* 85% ширины как запрошено */
  margin: 0; /* выравнивание по левому краю, без центрирования */
}

.video-column {
  padding: 15px;
  /* ИСПРАВЛЕНА НЕПРОЗРАЧНОСТЬ ФОНА */
  background-color: rgba(218, 218, 218, 0.308); /* tan, 60% opacity */
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: rgba(0, 0, 0, .2) 0 4px 56px;
  border-radius: 12px;
  max-width: 100%; /* расширили в 2 раза для лучшей видимости проекта с 5 видео */
  margin: 0 auto; /* центрирование */
}

/* Стили для блока с треком */
.track-item {
  margin-bottom: 30px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  color: white;
}



/* Каждый половинчатый трек */
.track-item-half {
  flex: 1; /* занимает 50% ширины */
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  color: white;
}

/* Стили для двойного блока треков */
.double-track-block {
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.double-track-description {
  background: rgba(0, 0, 0, 0.7);
  padding: 0 15px 15px 15px;
  text-align: center;
  color: white;
  font-weight: 500;
}

.double-track-description .track-description {
  margin: 0;
  font-size: 1.1rem;
}

.double-track-items {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.1);
}

/* Стили для тройного блока треков */
.triple-track-block {
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  background-image: url('assets/img/placeholder14.png');
  background-size: cover;
  background-position: center;
}

.triple-track-description {
  background: rgba(0, 0, 0, 0.7);
  padding: 0 15px 15px 15px;
  text-align: center;
  color: white;
  font-weight: 500;
}

.triple-track-description .track-description {
  margin: 0;
  font-size: 1.1rem;
}

.triple-track-items {
  background: rgba(0, 0, 0, 0.5);
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.half-width {
  flex: 1;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  color: white;
}

/* Класс для растяжения картинки полностью */
.track-fullcover {
  background-size: calc(100% + 180px) !important;
  background-position: center !important;
}

.track-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 8px;
}

/* Уникальные стили текста для треков */
/* Фон отделяет текст от изображения */
.track-item .track-overlay p,
.track-item .track-overlay span {
    background: rgba(255, 255, 255, 0.5); /* более непрозрачный (серый) фон */
    padding: 3px 6px; /* симметричные отступы - уменьшенная высота */
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 8px;
}

/* Стиль названий треков */
.track-item .track-title {
    font-family: 'Courier New', 'Consolas', 'Liberation Mono', monospace; /* технический шрифт */
    font-weight: 900;
    font-size: 1.1em; /* +10% от базового размера */
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.6); /* ещё более непрозрачный (серый) */
    padding: 3px 6px; /* симметричные отступы */
    border-radius: 3px;
}

/* Стиль описаний треков */
.track-item .track-description {
    font-family: 'Inter', 'Helvetica Neue', sans-serif; /* гуманистический шрифт */
    font-style: normal;
    font-weight: 400;
    font-size: 0.95em;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.35); /* более непрозрачный (серый) */
    padding: 3px 6px; /* симметричные отступы - одинаковые с названиями */
    border-radius: 3px;
    max-width: fit-content;
}

.track-item .play-btn, .track-item .time {
    color: white;
}

/* Стили для аудиоплеера */
.audio-player {
  width: 100%;
  margin: 15px 0;
}



.controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.play-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 5px 10px;
}

.progress-container {
  flex-grow: 1;
}

.progress, .volume {
  width: 100%;
  height: 5px;
  cursor: pointer;
}

.volume {
  width: 80px;
}

.time {
  font-size: 12px;
  color: #666;
  min-width: 80px;
  text-align: center;
}


/* Оформление контактов и футера */
.footer {
    text-align: center;
    margin-top: 40px;
}

.contacts {
  max-width: 600px;
  margin: auto;
  text-align: center;
  margin-bottom: 20px;
}

.contact-plaque {
  background: var(--header-bg);
  color: var(--header-text);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  max-width: 300px;
  margin: auto;
}

.copyright p {
  font-size: 0.85em;
  color: #aaa;
  margin: 5px 0;
}

.home-btn {
  color: #fff;
  background-color: #ffc107;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.2s ease-in-out;
  display: inline-block; /* Для правильного отображения */
  margin-top: 10px;
}

.home-btn:hover {
  background-color: #febd0b;
}

/* Стили для видео секции */
.video-project {
  background: rgba(255, 255, 255, 0.98);
  border: 3px solid #272727;
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Стили для ульяраширного видео (21:9) */
.ultra-wide-video {
  position: relative;
  width: 100%;
  max-width: 100%; /* Занимаем всю доступную ширину */
  margin: 0 auto;
}

.ultra-wide-video iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9; /* Современное свойство для соотношения 21:9 */
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Fallback для браузеров без поддержки aspect-ratio */
@supports not (aspect-ratio: 21 / 9) {
  .ultra-wide-video iframe {
    height: calc(100vw * 9 / 21); /* 42.857% от ширины */
    max-height: calc(100vh * 0.8); /* Ограничение по высоте экрана */
  }
}

.featured-video {
  margin-bottom: 25px;
  text-align: center;
}

.featured-video iframe {
  width: 100%;
  max-width: 800px;
  height: 450px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.video-item.small {
  text-align: center;
}

.video-item.small iframe {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.video-item.small iframe:hover {
  transform: scale(1.05);
}

/* Стили для одиночного видео */
.single-video {
  text-align: center;
  margin-bottom: 25px;
}

.single-video iframe {
  width: 100%;
  max-width: 800px;
  height: 450px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.videos-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.video-item {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Стили для iframe видео */
.video-item iframe,
.video-embed-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}

/* Контейнер для YouTube responsive embed (16:9) */
.video-embed-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 соотношение сторон */
  height: 0;
  overflow: hidden;
  background: #000;
}

.video-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Информация под видео */
.video-info {
  padding: 20px;
  background: rgba(255, 255, 255, 0.98);
}

.video-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: #272727;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.video-description {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* Стили для блока проекта с 5 видео */
.project-block {
  background: rgba(255, 255, 255, 0.98);
  border: 3px solid #272727;
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  max-width: 150%; /* в 1.5 раза шире обычных блоков */
  margin-left: auto;
  margin-right: auto;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: #272727;
  margin: 0 0 12px 0;
  text-align: center;
  text-shadow: -1px -1px 0 rgba(0,0,0,0.1);
}

.project-description {
  font-size: 1.1rem;
  color: #666;
  text-align: center;
  margin: 0 0 25px 0;
  line-height: 1.5;
}

/* Титульное видео - большое */
.featured-video {
  margin-bottom: 25px;
  text-align: center;
}

.featured-video .video-embed-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

/* Сетка из 4 видео */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.grid-video {
  text-align: center;
}

.grid-video .video-embed-container {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.grid-video .video-embed-container:hover {
  transform: scale(1.05);
}

/* Подписи к видео */
.video-caption {
  margin-top: 10px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 6px;
}

.video-caption h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}

/* Адаптивность для блока проекта */
@media screen and (max-width: 1200px) {
  .project-block {
    max-width: 100%; /* теперь занимает всю ширину секции видео */
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media screen and (max-width: 768px) {
  .project-block {
    max-width: 100%;
    padding: 20px;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .project-title {
    font-size: 1.5rem;
  }
}

/* Адаптивность для видео секции */
@media screen and (max-width: 1200px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .featured-video iframe {
    height: 350px;
  }
}

@media screen and (max-width: 768px) {
  .video-project {
    padding: 20px;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .featured-video iframe {
    height: 250px;
  }

  .video-item.small iframe {
    height: 180px;
  }
}

/* Стили для секции О СЕБЕ */
.about-column {
  padding: 15px;
  /* Ширина как у самой широкой рамки страницы АУДИО */
  background-color: rgba(245, 245, 245, 0.95); /* Light gray, almost white but slightly off-white */
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: rgba(0, 0, 0, .2) 0 4px 56px;
  border-radius: 12px;
  /* Центрирование и максимальная ширина */
  max-width: 100%;
  margin: 0 auto;
}

.about-content {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.about-text {
  /* Текст на 60% ширины страницы */
  width: 60%;
  line-height: 1.7;
  color: #333;
}

.about-text p {
  margin-bottom: 20px;
  text-align: justify;
}

.about-text .about-short {
  font-size: 1.1rem;
  margin-bottom: 25px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  border-left: 4px solid #272727;
}



.about-photos {
  /* Оставшееся место для фотографий */
  flex: 1;
  min-height: 400px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  border: 2px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-style: italic;
}

.about-photos::before {
  content: "Фотографии будут добавлены здесь";
  text-align: center;
}

/* Адаптивность для секции О СЕБЕ */
@media screen and (max-width: 1200px) {
  .about-content {
    flex-direction: column;
  }

  .about-text {
    width: 100%;
  }

  .about-photos {
    min-height: 300px;
  }
}

@media screen and (max-width: 768px) {
  .about-column {
    padding: 20px;
  }

  .about-content {
    gap: 20px;
  }

  .about-text .about-short {
    font-size: 1rem;
    padding: 12px;
  }
}

/* Адаптивность */
@media screen and (max-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr;
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }
   .content {
       margin: 10px;
       padding: 15px;
   }
   .lang-switcher {
       position: static;
       justify-content: center;
       margin-bottom: 20px;
   }
   .header {
       margin: 20px 0;
   }

   /* Шире рамки для секций аудио и видео на мобильных */
   .music-column, .video-column {
     max-width: 100% !important; /* Расширяем до полной ширины */
     margin-left: 10px;
     margin-right: 10px;
   }

   /* Изменяем layout для мобильных - текст под картинкой */
   .track-item {
     width: 100%;
     margin: 0 auto;
     max-height: none; /* Убираем ограничение высоты */
     display: flex;
     flex-direction: column;
     overflow: visible;
   }

   .track-item .track-overlay {
     position: static;
     margin-top: -30px; /* Перекрываем низ картинки */
     padding: 10px;
     background-color: rgba(0, 0, 0, 0.85); /* более плотный фон */
     border-radius: 8px;
     margin-bottom: 15px;
   }

   .track-item .audio-player {
     margin: 8px 0; /* Уменьшить margin */
   }

   .track-item .track-description {
     font-size: 0.8075em; /* Уменьшить шрифт описаний на 15% */
   }

   /* Увеличиваем отступы между треками на мобильных для лучшего вида */
   .track-item, .double-track-block {
     margin-bottom: 20px;
   }

  /* Уменьшаем video-project блоки на 30% по горизонтали на мобильных */
  .video-project {
    width: 70%; /* Уменьшение на 30% */
    margin-left: auto;
    margin-right: auto;
    float: none; /* Отменяем возможное обтекание */
  }

  /* Мобильная версия фильтров жанров */
  .genre-filters {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    margin-top: 20px;
    right: auto;
    top: auto;
    transform: none;
  }

  .genre-filters button {
    margin: 0;
    transform: scale(0.7); /* уменьшение на 30% */
    transform-origin: center;
  }
}
