/* ==========================================================
   DJ SETLIMIT — общие стили внутренних страниц
   (резюме, проекты, контакты). Подключается ПОСЛЕ css/styles.css
   Оформление повторяет главную: большие градиентные заголовки,
   чередующиеся светлые/белые секции, скруглённые карточки.
   Палитра: оранжевый #FCA311, розовый #e21e80, тёмно-синий #14213D
   ========================================================== */

:root {
    --dj-orange: #FCA311;
    --dj-pink: #e21e80;
    --dj-navy: #14213D;
    --dj-grad: linear-gradient(135deg, #FCA311 0%, #e21e80 100%);
}

/* ---------- Шапка страницы (как на главной) ---------- */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 4rem;
    background:
        radial-gradient(ellipse 60% 80% at 50% 0%, rgba(252, 163, 17, 0.16), transparent 70%),
        radial-gradient(circle at 88% 30%, rgba(226, 30, 128, 0.10), transparent 45%),
        radial-gradient(circle at 10% 70%, rgba(30, 48, 243, 0.06), transparent 40%);
}
.page-hero .badge { letter-spacing: .12em; padding: .6em 1.2em; }
.page-hero h1 { font-weight: 800; letter-spacing: -0.01em; }
.page-hero .lead-sub { max-width: 40rem; margin: 1.25rem auto 0; }

/* ---------- Секции ---------- */
.dj-section { padding: 5rem 0; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-weight: 800; margin-bottom: .75rem; }
.section-title p { color: #6c757d; font-size: 1.15rem; font-weight: 300; margin: 0 auto; max-width: 40rem; }

/* ---------- Карточки ---------- */
.dj-card {
    position: relative;
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 6px 24px rgba(20, 33, 61, 0.07);
    height: 100%;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}
.dj-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--dj-grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}
.dj-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(20, 33, 61, 0.13); }
.dj-card:hover::before { transform: scaleX(1); }
.dj-card h5, .dj-card h4 { font-weight: 700; color: var(--dj-navy); }

.icon-bubble {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: var(--dj-grad);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.1rem;
    box-shadow: 0 8px 20px rgba(226, 30, 128, 0.25);
}

/* ---------- Появление при прокрутке ---------- */
.js .fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.js .fade-in.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ---------- Нижний призыв (тёмная полоса) ---------- */
.cta-band {
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
    color: #fff;
    background: linear-gradient(135deg, #14213D 0%, #4a1a5c 60%, #b3196a 120%);
}
.cta-band::after {
    content: '';
    position: absolute;
    width: 28rem; height: 28rem;
    right: -8rem; top: -10rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(252, 163, 17, 0.35), transparent 65%);
    pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { font-weight: 800; }
.cta-band p { color: rgba(255, 255, 255, 0.8); }

/* ==========================================================
   РЕЗЮМЕ
   ========================================================== */
.about-text p { font-size: 1.15rem; color: #6c757d; margin-bottom: 1.1rem; }
.about-text .about-lead { font-size: 1.5rem; font-weight: 300; color: var(--dj-navy); }

.stat-tile {
    text-align: center;
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.75rem 1rem;
    box-shadow: 0 6px 24px rgba(20, 33, 61, 0.07);
    height: 100%;
}
.stat-number { font-size: 3.5rem; font-weight: 800; line-height: 1; margin-bottom: .5rem; }
.stat-label { color: #6c757d; font-size: .95rem; }

.artist-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.1rem 1rem 1.1rem 1.25rem;
    font-weight: 700;
    color: var(--dj-navy);
    height: 100%;
    display: flex;
    align-items: center;
    gap: .75rem;
    box-shadow: 0 4px 16px rgba(20, 33, 61, 0.06);
    border-left: 4px solid var(--dj-orange);
    transition: all .3s ease;
}
.artist-card i { color: var(--dj-pink); }
.artist-card:hover { transform: translateY(-4px); border-left-color: var(--dj-pink); box-shadow: 0 12px 28px rgba(20, 33, 61, 0.12); }

.service-tag {
    display: inline-block;
    margin: .35rem;
    padding: .7rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    color: var(--dj-navy);
    background: #fff;
    border: 2px solid transparent;
    background-image: linear-gradient(#fff, #fff), var(--dj-grad);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: all .3s ease;
}
.service-tag:hover {
    background-image: var(--dj-grad), var(--dj-grad);
    color: #fff;
    transform: translateY(-3px);
}

.skill-item {
    display: flex;
    align-items: center;
    gap: .9rem;
    background: #fff;
    border-radius: 1rem;
    padding: 1.1rem 1.25rem;
    height: 100%;
    font-weight: 600;
    color: var(--dj-navy);
    box-shadow: 0 4px 16px rgba(20, 33, 61, 0.06);
}
.skill-item i {
    width: 2.5rem; height: 2.5rem;
    border-radius: .75rem;
    background: var(--dj-grad);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.check-line { display: flex; align-items: flex-start; gap: .75rem; font-size: 1.1rem; font-weight: 600; color: var(--dj-navy); }
.check-line i { color: #198754; margin-top: .3rem; }

/* ==========================================================
   ПРОЕКТЫ
   ========================================================== */
.photo-swiper {
    width: 100%;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(20, 33, 61, 0.18);
}
.photo-swiper .swiper-slide img {
    width: 100%;
    height: 520px;
    max-height: 70vh;
    object-fit: cover;
    display: block;
}
.photo-swiper .swiper-button-next,
.photo-swiper .swiper-button-prev {
    background: rgba(20, 33, 61, 0.7);
    color: #fff;
    width: 46px; height: 46px;
    border-radius: 50%;
    transition: all .3s ease;
}
.photo-swiper .swiper-button-next:after,
.photo-swiper .swiper-button-prev:after { font-size: 18px; font-weight: bold; }
.photo-swiper .swiper-button-next:hover,
.photo-swiper .swiper-button-prev:hover { background: var(--dj-pink); }
.photo-swiper .swiper-pagination-bullet { background: #fff; opacity: .6; width: 12px; height: 12px; }
.photo-swiper .swiper-pagination-bullet-active { background: var(--dj-orange); opacity: 1; }

/* Плеер */
.audio-player-container {
    background: linear-gradient(135deg, #14213D 0%, #1d1a3a 55%, #2a1738 100%);
    border-radius: 1.5rem;
    padding: 2rem;
    color: #fff;
    box-shadow: 0 24px 50px rgba(20, 33, 61, 0.35);
    position: relative;
    overflow: hidden;
}
.audio-player-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--dj-grad);
}
.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.player-title {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--dj-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.player-status {
    background: rgba(252, 163, 17, 0.15);
    color: #ffc15a;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: .9rem;
    font-weight: 600;
    border: 1px solid rgba(252, 163, 17, 0.35);
}

.track-cover-container { position: relative; width: 200px; height: 200px; margin: 0 auto 1.75rem; }
.track-cover-fallback {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: var(--dj-grad);
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem; color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 0 14px rgba(0, 0, 0, 0.12);
    animation: rotateAlbum 20s linear infinite;
    animation-play-state: paused;
}
.track-cover-fallback.active { animation-play-state: running; }
@keyframes rotateAlbum { to { transform: rotate(360deg); } }

.track-info { text-align: center; margin-bottom: 1.25rem; }
.track-name { font-size: 1.7rem; font-weight: 800; margin-bottom: 5px; color: #fff; }
.track-artist { font-size: 1.1rem; color: rgba(255, 255, 255, 0.75); margin-bottom: 5px; }
.track-album { font-size: .95rem; color: rgba(255, 255, 255, 0.5); font-style: italic; margin: 0; }

.visualizer { height: 60px; margin: 1.25rem 0; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.visualizer-bar {
    width: 4px; height: 10px;
    background: linear-gradient(to top, var(--dj-orange), var(--dj-pink));
    border-radius: 2px;
    opacity: .35;
    transition: height .2s ease, opacity .2s ease;
}

.progress-container { margin: 1.5rem 0; }
.progress-time { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: .9rem; color: rgba(255, 255, 255, 0.7); }
.player-bar { height: 8px; background: rgba(255, 255, 255, 0.12); border-radius: 4px; cursor: pointer; position: relative; }
.player-bar-fill { height: 100%; width: 0; background: var(--dj-grad); border-radius: 4px; position: relative; }
.player-bar-fill::after {
    content: '';
    position: absolute;
    right: -7px; top: 50%;
    transform: translateY(-50%);
    width: 14px; height: 14px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(252, 163, 17, 0.8);
}

.player-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 1.5rem 0; }
.control-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
    transition: all .3s ease;
    cursor: pointer;
}
.control-btn:hover { border-color: var(--dj-orange); transform: scale(1.1); }
.control-btn.active { background: var(--dj-orange); border-color: var(--dj-orange); color: var(--dj-navy); }
.play-btn { width: 70px; height: 70px; font-size: 1.6rem; background: var(--dj-grad); border: none; }
.play-btn:hover { box-shadow: 0 0 30px rgba(226, 30, 128, 0.6); }

.volume-container { display: flex; align-items: center; gap: 10px; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.volume-icon { color: rgba(255, 255, 255, 0.7); font-size: 1.2rem; }
.volume-bar { flex: 1; height: 6px; background: rgba(255, 255, 255, 0.12); border-radius: 3px; cursor: pointer; }
.volume-level { height: 100%; width: 80%; background: var(--dj-grad); border-radius: 3px; }

.track-list { margin-top: 1.75rem; }
.track-item { display: flex; align-items: center; padding: 15px; background: rgba(255, 255, 255, 0.06); border-radius: 10px; margin-bottom: 10px; transition: all .3s ease; cursor: pointer; }
.track-item:hover { background: rgba(252, 163, 17, 0.18); transform: translateX(5px); }
.track-item.active { background: rgba(252, 163, 17, 0.25); border-left: 4px solid var(--dj-orange); }
.track-number { width: 30px; text-align: center; color: rgba(255, 255, 255, 0.5); font-weight: 600; }
.track-item-info { flex: 1; margin-left: 15px; min-width: 0; }
.track-item-name { color: #fff; font-weight: 500; }
.track-item-artist { color: rgba(255, 255, 255, 0.6); font-size: .9rem; }
.track-play-icon { margin-left: 15px; color: rgba(255, 255, 255, 0.7); }

/* Платформы */
.platform-icon { font-size: 3.5rem; line-height: 1; margin-bottom: 1rem; }

/* Материалы */
.btn-resource {
    background: var(--dj-grad);
    color: #fff;
    border: none;
    padding: .7rem 1.6rem;
    border-radius: 50px;
    font-weight: 700;
    transition: all .3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: .75rem;
    text-decoration: none;
}
.btn-resource:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(226, 30, 128, 0.35); }

@media (max-width: 768px) {
    .track-cover-container { width: 150px; height: 150px; }
    .player-controls { gap: 10px; }
    .control-btn { width: 44px; height: 44px; }
    .play-btn { width: 60px; height: 60px; }
}
@media (max-width: 576px) {
    .dj-section { padding: 3.5rem 0; }
    .audio-player-container { padding: 1.25rem; }
    .track-name { font-size: 1.35rem; }
    .photo-swiper .swiper-slide img { height: 300px; }
    .page-hero { padding: 3rem 0 2.5rem; }
}

/* ==========================================================
   КОНТАКТЫ
   ========================================================== */
.contact-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--dj-grad);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 2rem;
    transition: transform .3s ease;
}
.dj-card:hover .contact-icon { transform: scale(1.08) rotate(5deg); }
.contact-icon.pulse { animation: pulse 2s infinite; }
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(252, 163, 17, 0.6); }
    70%  { box-shadow: 0 0 0 16px rgba(252, 163, 17, 0); }
    100% { box-shadow: 0 0 0 0 rgba(252, 163, 17, 0); }
}
.contact-link {
    color: var(--dj-navy);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    display: block;
    margin-top: .5rem;
    word-break: break-all;
    transition: color .3s ease;
}
.contact-link:hover { color: var(--dj-pink); }
.contact-desc { color: #6c757d; font-size: .95rem; margin-top: .5rem; min-height: 2.8rem; }

.social-grid, .music-grid { display: grid; gap: 20px; }
.social-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.music-grid  { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.social-item, .music-item {
    position: relative; /* нужно для бейджа NEW */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 6px 24px rgba(20, 33, 61, 0.07);
    text-decoration: none;
    color: var(--dj-navy);
    transition: all .3s ease;
}
.social-item:hover, .music-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(20, 33, 61, 0.13);
    color: var(--dj-navy);
}
.social-icon, .music-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.9rem;
    margin-bottom: 1rem;
    color: #fff;
}
.social-name, .music-name { font-weight: 700; text-align: center; }

.instagram    { background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D); }
.telegram     { background: #0088cc; }
.tiktok       { background: #000; }
.vk           { background: #4C75A3; }
.whatsapp     { background: #25D366; }
.youtube      { background: #FF0000; }
.promodj      { background: linear-gradient(135deg, #FF6B6B, #FF8E53); }
.soundcloud   { background: #FF7700; }
.yandex-music { background: #FF0000; }

.new-release {
    position: absolute;
    top: -10px; right: -10px;
    background: var(--dj-pink);
    color: #fff;
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem;
    font-weight: bold;
    z-index: 2;
    animation: bounce 2s infinite;
}
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 768px) { .social-grid, .music-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .social-grid, .music-grid { grid-template-columns: 1fr; } }

/* ==========================================================
   ВЕРТИКАЛЬНЫЕ ВИДЕО (Reels, формат 9:16)
   ========================================================== */
.reels { max-width: 320px; margin: 0 auto; }
.reels-phone {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 2rem;
    overflow: hidden;
    background: #000;
    border: 6px solid var(--dj-navy);
    box-shadow: 0 0 0 2px rgba(252, 163, 17, 0.55), 0 24px 50px rgba(20, 33, 61, 0.3);
}
.reels-viewport {
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior: contain;
}
.reels-viewport::-webkit-scrollbar { display: none; }
.reel {
    position: relative;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #000;
}
.reel video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}
.reel-pause {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(.8);
    width: 72px; height: 72px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.6rem;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all .25s ease;
}
.reel.is-paused .reel-pause { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.reel-sound {
    position: absolute;
    right: 12px; bottom: 22px;
    width: 42px; height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    z-index: 3;
    transition: background .2s ease;
}
.reel-sound:hover { background: var(--dj-pink); }
.reel-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, 0.25); z-index: 2; }
.reel-progress > div { height: 100%; width: 0; background: var(--dj-grad); }
.reel-error {
    height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .75rem;
    padding: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    background: linear-gradient(160deg, #14213D, #2a1738);
}
.reel-error i { font-size: 2.2rem; color: var(--dj-orange); }
.reel-error small { opacity: .6; word-break: break-all; }

.reels-counter {
    position: absolute;
    top: 12px; left: 12px;
    z-index: 3;
    padding: 3px 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
}
.reels-nav { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); z-index: 3; display: flex; flex-direction: column; gap: 10px; }
.reels-nav-btn {
    width: 38px; height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s ease;
}
.reels-nav-btn:hover { background: var(--dj-orange); color: var(--dj-navy); }
.reels-hint { text-align: center; color: #6c757d; font-size: .9rem; margin: 1rem 0 0; }

@media (min-width: 992px) { .photo-swiper .swiper-slide img { height: 560px; max-height: none; } }

/* ==========================================================
   РЕЛИЗЫ
   Обложка слева плавно растворяется в тёмный фон, справа плеер.
   Цвет фона задан переменной --release-bg (должен совпадать у секции и у маски).
   ========================================================== */
.releases {
    --release-bg: #26272a;
    background: var(--release-bg);
    color: #fff;
    padding: 5rem 0 0;
}
.releases .section-title p { color: rgba(255, 255, 255, 0.65); }

.release-item {
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}
.release-item + .release-item { border-top: 1px solid rgba(255, 255, 255, 0.08); }

/* Фото: занимает левую часть и растворяется вправо в цвет фона */
.release-bg {
    position: absolute;
    top: 0; left: 0;
    width: 68%;
    height: 100%;
    object-fit: cover;
    object-position: left 18%;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 35%, transparent 100%);
            mask-image: linear-gradient(90deg, #000 0%, #000 35%, transparent 100%);
    pointer-events: none;
    user-select: none;
}
/* Лёгкое затемнение снизу и сверху, чтобы края не «резались» */
.release-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--release-bg) 0%, transparent 14%, transparent 86%, var(--release-bg) 100%);
    pointer-events: none;
}
.release-inner { position: relative; z-index: 2; width: 100%; }

.release-meta {
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--dj-orange);
    margin-bottom: .5rem;
}
.release-title {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1;
    margin-bottom: .75rem;
    color: #fff;
}
.release-artist { color: rgba(255, 255, 255, 0.7); font-size: 1.05rem; margin-bottom: 1.5rem; }
.release-player {
    border-radius: 1rem;
    overflow: hidden;
    background: #0b0b0b;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}
.release-player iframe { display: block; width: 100%; border: 0; }

@media (max-width: 991.98px) {
    .release-item { display: block; padding: 0 0 3rem; min-height: 0; }
    .release-bg {
        position: relative;
        display: block;
        width: 100%;
        height: 360px;
        object-position: center 30%;
        -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
                mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
    }
    .release-item::after { display: none; }
    .release-inner { margin-top: -5rem; }
}
