::-webkit-scrollbar {
    display: none;
}

html {
    background-color: #080808 !important; /* Подложка под слои */
    height: 100%;
}

/* === КОРНЕВАЯ СТРУКТУРА === */
body {
    scrollbar-width: none;
    font-family: 'Doto', 'DotGothic16', sans-serif;
    color: white;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    background-color: transparent;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overscroll-behavior: none;
}

a, button {
    -webkit-tap-highlight-color: transparent;
}

/* === ФОНОВЫЕ СЛОИ === */
.background-layer {
    position: fixed;
    top: -20vh;
    left: 0;
    right: 0;
    bottom: -20vh;
    width: 100%;
    height: 140vh;
    z-index: 0;
    pointer-events: none;
}

/* === СТЕКЛЯННЫЕ ПАНЕЛИ (Шапка, Контейнер, Футер) === */
/* ВНИМАНИЕ: Я УБРАЛ ОТСЮДА .release-detail-wrapper */
.header-wrapper, .container, .footer {
    position: relative;
    z-index: 1;
    background: rgba(30, 30, 30, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 15px;
    padding: 10px;
    box-sizing: border-box;
    width: 100%; 
}

.header-wrapper, .footer {
    flex: 0 0 auto;
}

/* === ШАПКА === */
.header-wrapper {
    display: flex;
    align-items: center;
    position: sticky;
    top: 20px;
    z-index: 1000;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 60px; width: auto; filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.212)); transition: filter 0.3s ease, transform 0.3s ease; }
.logo a:hover img { filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.308)) drop-shadow(0 0 16px rgba(255, 255, 255, 0.205)); transform: scale(1.03); }

.navigation { flex: 1; display: flex; align-items: center; justify-content: center; }
.navigation-text { width: 100%; }
.navigation-textass { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }

.hamburger, .mobile-only, .mobile-title { display: none; }

.navigation-text-color {
    position: relative;
    overflow: hidden;
    display: block;
    padding: 15px 30px;
    color: #e0e0e0;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    transition: all 0.3s ease;
}
.navigation-text-color:hover { filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.308)) drop-shadow(0 0 25px rgba(255, 255, 255, 0.5)); transform: scale(1.03); }

/* === ОСНОВНОЙ КОНТЕЙНЕР === */
.container {
    justify-content: center;
    align-items: flex-start;
    padding: 20px 20px;
    width: 100%;
}

/* СЕТКА РЕЛИЗОВ */
.releases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    width: 100%;
}

/* КАРТОЧКА РЕЛИЗА (Ссылка) */
.release-card {
    background: rgba(10, 10, 10, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    display: grid !important;
    grid-template-rows: max-content 1fr !important;
    text-decoration: none;
    color: inherit;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease, background 0.3s ease;
}

.release-card.visible { 
    opacity: 1; 
    transform: translateY(0); 
}

.release-card.visible:hover { 
    background: rgba(20, 20, 20, 0.7); 
    z-index: 10; 
}

.release-image {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    display: block !important;
}

.release-card:hover .release-image { 
    transform: translateY(-8px); 
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.8); 
}

.release-title { font-size: 18px; font-weight: 500; color: #ffffff; padding-bottom: 10px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); letter-spacing: 0.5px; line-height: 1.3; }


/* ==========================================================================
   СТИЛИ ДЛЯ ДЕТАЛЬНОЙ СТРАНИЦЫ (Например: /releases/12-Morphine/index.html)
   ========================================================================== */

.back-btn {
    background: transparent;
    color: #fff;
    border: none;
    font-family: 'Doto', 'DotGothic16', sans-serif;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 30px 0;
    padding: 0;
    transition: transform 0.3s ease, color 0.3s ease;
    text-decoration: none;
}
.back-btn:hover { color: #b0b0b0; transform: translateX(-5px); }

/* === ОСНОВНОЙ КОНТЕЙНЕР ДЕТАЛЕЙ (Убиваем коробку-в-коробке навсегда) === */
.release-detail-wrapper {
    display: flex !important;
    gap: 60px !important;
    width: 100% !important;
    max-width: 100% !important;
    
    /* Жестко отключаем фон, рамки и блюр, чтобы работал только родительский .container */
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    
    box-sizing: border-box;
}

/* ЛЕВАЯ КОЛОНКА */
.rd-left { 
    flex: 1; 
    max-width: 500px; /* Фиксируем обложку, чтобы она не раздувалась */
    display: flex; 
    flex-direction: column; 
    position: relative;
    z-index: 10;
}
.rd-cover { 
    width: 100%; 
    max-width: 500px; 
    aspect-ratio: 1/1; 
    object-fit: cover; 
    border-radius: 12px; 
    box-shadow: 0 15px 30px rgba(0,0,0,0.6); 
    margin-bottom: 25px; 
    display: block !important; 
}
.rd-title { font-size: 28px; font-weight: 700; color: #ffffff; margin: 0 0 25px 0; text-shadow: 0 2px 5px rgba(0,0,0,0.5); line-height: 1.3; }
.artist-link-btn { display: flex; justify-content: center; align-items: center; background: rgba(255, 255, 255, 0.05); color: #ffffff; text-decoration: none; padding: 18px; border-radius: 12px; font-size: 16px; font-weight: 700; text-transform: uppercase; border: 1px solid rgba(255, 255, 255, 0.15); transition: all 0.3s ease; text-align: center; }
.artist-link-btn:hover { background: #ffffff; color: #080808; transform: scale(1.02); box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3); }

/* ПРАВАЯ КОЛОНКА */
.rd-right { 
    flex: 1;
    width: 100%;
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start;
    gap: 20px; 
}

/* Контейнер обложки */
.cover-slider-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 25px auto;
    border-radius: 12px;
    overflow: hidden;
    /* margin-bottom: 25px; Заменяет отступ от самой обложки */
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
}

/* Сама обложка в слайдере */
.cover-slider-container .rd-cover {
    margin: 0 !important;
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    box-shadow: none;
    border-radius: 0;
    transition: opacity 0.3s ease;
}

/* Кнопки перелистывания */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Doto', 'DotGothic16', sans-serif !important;
    opacity: 0; /* Скрыты по умолчанию */
}

.resume-auto-btn {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 10, 0.7);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 18px;
    border-radius: 20px;
    font-family: 'Doto', 'DotGothic16', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(8px);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.resume-auto-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.cover-slider-container.is-paused:hover .resume-auto-btn {
    opacity: 1;
    pointer-events: auto;
}

/* Показываем кнопки только при наведении на картинку */
.cover-slider-container:hover .slider-btn {
    opacity: 1;
}

.slider-btn:hover { 
    background: rgba(255, 255, 255, 0.2); 
    transform: translateY(-50%) scale(1.1); 
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* СПИСОК ТРЕКОВ */
.lp-tracklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px; 
    
    /* Убираем черный фон, рамку и внутренние отступы */
    background: transparent;
    border: none;
    padding: 0;
}

.lp-track {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.lp-track:hover { 
    background: rgba(255, 255, 255, 0.05); 
}

.lp-tracklist.all-tracks-active .lp-track {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.lp-tracklist.all-tracks-active .track-title {
    color: #fff;
    font-weight: 700;
}

/* Название трека */
.track-title {
    font-size: 18px;
    font-weight: 500;
    color: #ccc; /* Базовый серый цвет */
    transition: all 0.4s ease;
}

/* Иконки соцсетей у треков */
.track-icons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.track-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.track-icons img {
    height: 22px;
    width: auto;
    display: block;
}

/* МАГИЯ: АКТИВНЫЙ ТРЕК СО СВЕЧЕНИЕМ */
.lp-track.active-glow {
    /* Цвет передается из JS через свойство color, а дальше мы используем currentColor */
    background: rgba(255, 255, 255, 0.08);
    /* transform: scale(1.02); Слегка увеличивается */
    border: 1px solid currentColor; /* Рамка красится в цвет трека */
    box-shadow: 0 0 15px currentColor; /* Неоновое свечение */
}

.lp-track.active-glow .track-title {
    color: #fff; /* Сам текст становится белым */
    font-weight: 700;
    /* text-shadow: 0 0 8px currentColor; Текст слегка подсвечивается */
}

/* === СЕРВИСЫ В 2 СТОЛБИКА === */
.rd-services-list { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px; 
}

.service-rect { 
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 12px; 
    height: 60px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 12px; 
    box-sizing: border-box; 
    text-decoration: none; 
    transition: all 0.3s ease; 
}

.service-rect img { 
    width: auto;
    max-width: 90%; 
    object-fit: contain; 
    transition: transform 0.3s ease; 
}

.service-rect:hover { 
    background: rgba(255, 255, 255, 0.15); 
    transform: translateY(-4px); 
    border-color: rgba(255, 255, 255, 0.3); 
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1); 
}

.service-rect:hover img { 
    transform: scale(1.08); 
}

.service-rect img[src*="Spotify"] { height: 44px; }
.service-rect img[src*="Apple"] { height: 35px; }
.service-rect img[src*="deezer"] { height: 38px; }
.service-rect img[src*="Amazon_logo"] { height: 30px; }
.service-rect img[src*="Amazon_Music"] { height: 36px; }
.service-rect img[src*="Tidal"] { 
    height: 28px;
    filter: invert(1);
}
.service-rect img[src*="bandcamp"] { height: 30px; }
.service-rect img[src*="yt_logo"] { height: 66px; }
.service-rect img[src*="SoundCloud"] { height: 56px; }
.service-rect img[src*="YouTubeMusic"] { height: 50px; } 
.service-rect img[src*="Beatport"] { 
    height: 40px;
}
.service-rect img[src*="7Digital"] { 
    height: 40px;
    filter: brightness(0) invert(1);
} 
.service-rect img[src*="Beatport"] { 
    height: 40px;
}
.service-rect img[src*="QBZ"] { 
    height: 40px;
    filter: invert(1);
}
.service-rect img[src*="NetEase"] { 
    height: 40px;
}
.service-rect img[src*="melon"] { 
    height: 32px;
}
.service-rect img[src*="LINE_MUSIC"] { 
    height: 40px;
}
.service-rect img[src*="TikTok"] { 
    height: 80px;
}
.service-rect img[src*="instagram"] { 
    height: 54px;
    transform: translate(0, 5%);
}

.free-text {
    transform: translate(35%, -12%);
    margin-top: -8px;
    color: #fff; 
    font-family: 'Doto', sans-serif;
    font-size: 10px; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}


/* Спецкнопка Telegram */
.service-tg { grid-column: span 2; justify-content: center; gap: 12px; background: rgba(41, 169, 234, 0.1); border-color: rgba(41, 169, 234, 0.3); }
.service-tg:hover { background: rgba(41, 169, 234, 0.2); border-color: rgba(41, 169, 234, 0.6); }
.service-tg img { height: 36px; }
.tg-text { color: #fff; font-family: 'Doto', 'DotGothic16', sans-serif; font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* === МАГИЯ АНИМАЦИИ МЕЖДУ СТРАНИЦАМИ (View Transitions API) === */
@view-transition { navigation: auto; }

/* Настраиваем плавность полета обложек (добавляй сюда новые по мере создания) */
::view-transition-old(cover-morphine), ::view-transition-new(cover-morphine),
::view-transition-old(cover-vibe), ::view-transition-new(cover-vibe),
::view-transition-old(cover-boom), ::view-transition-new(cover-boom) {
    animation-duration: 0.6s;
    animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Выезжание текста и виджетов после загрузки новой страницы */
.rd-anim-elem { opacity: 0; transform: translateY(30px); animation: slideUpFade 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.rd-title { animation-delay: 0.1s; }
.artist-link-btn { 
    animation-delay: 0.2s; 
    margin-bottom: 15px;
}
.rd-right { animation-delay: 0.3s; }

@keyframes slideUpFade { to { opacity: 1; transform: translateY(0); } }
.page-fade-in { animation: pageEnter 0.4s ease forwards; }
@keyframes pageEnter { from { opacity: 0; } to { opacity: 1; } }


/* ==========================================================================
   ФУТЕР И АДАПТИВНОСТЬ
   ========================================================================== */
.footerlink { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; width: 100%; gap: 20px; }
.footerinfo { display: flex; flex-direction: row; gap: 40px; text-align: left; }
.footer-block { display: flex; flex-direction: column; }
.footertext { font-size: 20px; color: rgb(255, 255, 255); text-transform: uppercase; margin-bottom: 8px; }
.footericongrup { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.iconsatings { width: 22px; transition: transform 0.2s ease; }
.iconsatings:hover { transform: scale(1.2); }
.footerxtane { align-self: center; transition: transform 0.2s ease; }
.footerxtane:hover { transform: scale(1.03); }

.load-more-btn {
    width: 100%;
    margin: 40px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #e0e0e0;
    font-family: 'Doto', 'DotGothic16', sans-serif;
    font-size: 22px;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.chevron {
    display: inline-block;
    transform: rotate(90deg); /* Изначально смотрит ВНИЗ */
    transition: transform 0.4s ease;
}

.load-more-btn.active .chevron {
    transform: rotate(-90deg); /* При клике поворачивается ВВЕРХ */
}

/* === ПЛАВНОЕ РАСКРЫТИЕ СТАРЫХ РЕЛИЗОВ === */
.hidden-wrapper {
    display: grid;
    grid-template-rows: 0fr; /* Изначально высота 0 */
    transition: grid-template-rows 0.8s ease-in-out;
}

.hidden-wrapper.show {
    grid-template-rows: 1fr; /* Плавное раскрытие */
}

.hidden-inner {
    overflow: hidden;
}

.lp-card {
    box-shadow: inset 0 0 30px var(--lp-color) !important;
}

.lp-card.visible:hover {
    box-shadow: inset 0 0 50px var(--lp-color), 0 0 20px var(--lp-color) !important;
    z-index: 10;
}

/* === КОНТЕЙНЕР ДЛЯ LP АЛЬБОМА === */
.lp-image-container {
    position: relative;
    width: 100% !important;
    height: 0 !important; 
    padding-bottom: 100% !important; 
    margin-bottom: 15px;
    flex: 0 0 auto !important;
    display: block !important;
}

.lp-image-container .release-image {
    margin-bottom: 0 !important;
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important; 
    z-index: 5; /* Натягиваем поверх синглов */
}

/* === АНИМАЦИЯ ВЫЕЗЖАЮЩИХ СИНГЛОВ === */
.sub-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important; 
    border-radius: 8px;
    object-fit: cover !important;
    z-index: 1;
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* При наведении на карту, синглы разъезжаются веером из-за спины LP */
.release-card:hover .sub-left {
    transform: translate(-10%, -6%) rotate(-10deg) scale(0.8);
    opacity: 1;
}

.release-card:hover .sub-right {
    transform: translate(10%, -6%) rotate(10deg) scale(0.8);
    opacity: 1;
}

.release-card:hover .sub-top {
    transform: translate(0, -20%) rotate(0deg) scale(0.8);
    opacity: 1;
}

::view-transition-old(cover-beyond), ::view-transition-new(cover-beyond) {
    animation-duration: 0.6s;
    animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
}

/* === АДАПТИВНОСТЬ ДЛЯ IPAD И ПЛАНШЕТОВ (Вмещаем 4 колонки) === */
@media (min-width: 768px) and (max-width: 1250px) {
    .releases-grid {
        /* Уменьшаем минимальную ширину карточки, чтобы браузер уместил 4 штуки в ряд */
        grid-template-columns: repeat(4, 1fr);
        gap: 15px; /* Чуть уменьшаем отступы между карточками, чтобы точно хватило места */
    }
    
    /* Слегка уменьшаем текст под обложкой на планшетах, чтобы он гармонично смотрелся */
    .release-title {
        font-size: 15px;
    }
}

/* АДАПТИВНОСТЬ (Телефоны и планшеты) */
@media (max-width: 1024px) {
    body { position: relative; top: auto; left: auto; right: auto; bottom: auto; height: auto; overflow: auto; min-height: 100vh; }
    .header-wrapper { position: fixed; top: 20px; left: 20px; width: calc(100% - 40px); z-index: 1000; }
    .logo { order: 1; }
    .mobile-title { display: block; position: absolute; left: 50%; top: 40px; transform: translate(-50%, -50%); font-size: 30px; font-weight: 900; text-transform: uppercase; color: white; letter-spacing: 2px; z-index: 5; }
    
    .hamburger { display: flex; order: 3; flex-direction: column; justify-content: space-between; width: 30px; height: 21px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 10; }
    .hamburger span { width: 100%; height: 3px; background-color: white; border-radius: 10px; transition: all 0.3s linear; }
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -8px); }

    .navigation-text-item { order: 4; width: 100%; opacity: 0; max-height: 0; overflow: hidden; margin-top: 0; transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out, margin-top 0.3s ease-in-out; will-change: opacity, max-height; backface-visibility: hidden; transform: translateZ(0); }
    .navigation-text-color { text-align: center; display: block; }
    .navigation-textass { gap: 0; }
    .navigation-textass.menu-open .navigation-text-item { opacity: 0.99; max-height: 100px; margin-top: 10px; }

    .container { flex: none; min-height: 50vh; margin-top: 100px; justify-content: center; align-items: flex-start; padding: 20px 10px; }
    
    /* Адаптивность для детальной страницы */
    .release-detail-wrapper { flex-direction: column !important; padding: 0 !important; gap: 30px !important; }
    .rd-left { max-width: 100%; }
    .rd-cover { margin: 0 auto 25px auto; }
    .rd-title { text-align: center; font-size: 24px; }
    .rd-right { display: flex; }
    .rd-services-list { grid-template-columns: 1fr; }
    .service-tg { grid-column: span 1; }

    .footerlink { flex-direction: column; justify-content: center; text-align: center; }
    .footerinfo { flex-direction: column; gap: 20px; align-items: center; }
    .footer-block { align-items: center; }
    .footerxtane { margin-top: 10px; }
}