/* --- ОБЩИЕ СТИЛИ И ПЕРЕМЕННЫЕ --- */
:root {
    --bg-color: #050505;
    --card-bg: #0f0f13;
    --text-main: #ffffff;
    --text-sec: #a0a0a0;
    --accent: #d48fff;
    --border: rgba(255, 255, 255, 0.05);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; -webkit-font-smoothing: antialiased; }
body {
    background-color: var(--bg-color);
    color: var(--text-main);
    padding-bottom: 90px;
}

/* === БОКОВАЯ ПАНЕЛЬ ЛЕВАЯ === */
.side-panel {
    position: fixed;
    left: -350px;
    top: 10%;
    width: 350px;
    height: 50vh;
    background: linear-gradient(180deg, #131313, #050505);
    border-right: 1px solid #d48fff;
    z-index: 101;
    transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.panel-trigger {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 80px;
    background: #d48fff;
    border-radius: 0 10px 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: -5px 0 15px rgba(82, 8, 88, 0.3);
    transition: background 0.3s;
}
.panel-trigger:hover { background: #00a3cc; }
.panel-trigger::after { content: "\2192"; font-size: 24px; color: #0f0f1a; }
.side-panel.open { left: 0; }
.side-panel.open .panel-trigger::after { content: "\2190"; }
.panel-content {
    text-align: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.side-panel.open .panel-content {
    opacity: 1;
    transition-delay: 0.3s;
}
@media (max-width: 768px) {
    .side-panel { width: 100%; left: -100%; top: 0; height: 100vh; }
    .panel-trigger { display: none; }
}
.with-sidebar { margin-left: 0px; }

/* === HEADER & NAVIGATION === */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-color);
    z-index: 100;
}
.logo {
    font-size: 36px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 0 10px rgba(212, 143, 255, 0.8);
}
.nav-menu { list-style: none; display: flex; gap: 40px; }
.nav-link {
    text-decoration: none;
    color: var(--text-sec);
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}
.nav-link:hover { color: var(--accent); text-shadow: 0 0 10px rgba(255,255,255,0.5); }
.buy-btn {
    background-color: var(--accent);
    color: #1a0f2a;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(212,143,255,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
}
.buy-btn:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(212,143,255,0.6); }

/* === MAIN LAYOUT === */
main { max-width: 1500px; margin: 40px auto; padding: 0 20px; }
h1 { font-size: 48px; text-transform: uppercase; letter-spacing: 3px; margin-bottom: 30px; text-align: center; }

/* === HERO SECTION (для index.html) === */
.hero {
    padding: 120px 20px;
    text-align: center;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-content { max-width: 700px; margin: 0 auto 40px; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.8rem, 5vw, 4.5rem); line-height: 1.1; margin-bottom: 20px; }
.hero p { color: var(--text-sec); font-size: 20px; max-width: 700px; margin: 0 auto 40px; }
.hero .buy-btn {
    background: var(--accent);
    color: #1a0f2a;
    padding: 14px 50px;
    font-size: 16px;
    border-radius: 6px;
}

/* === HERO BANNER === */
.hero-banner-right {
    position: absolute;
    top: 50%; right: 0px;
    transform: translateY(-50%);
    width: 320px; aspect-ratio: 1 / 1;
    background-color: #111; border-radius: 12px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    z-index: 1;
}
.banner-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.hero-banner-right:hover .banner-img { transform: scale(1.05); }
@media (max-width: 1200px) and (min-width: 901px) { .hero-banner-right { width: 260px; right: 10px; } }

/* === FEATURES SECTION === */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 80px 20px;
}
.feature-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(212, 143, 255, 0.05);
    border-color: var(--accent);
}
.feature-icon { font-size: 50px; margin-bottom: 20px; }
.feature-title { margin: 0 0 15px; font-size: 22px; text-transform: uppercase; }
.feature-desc { color: var(--text-sec); font-size: 15px; line-height: 1.6; }

/* === CATALOG FILTERS === */
.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto; margin-right: auto;
    align-items: flex-end;
}
.filters-row > * { flex: 1 1 120px; }
.view-toggle { flex: 0 0 auto; display: flex; gap: 6px; }
@media (max-width: 768px) { .filters-row { flex-direction: column; } }

.search-input, .filter-input {
    background: rgba(255,255,255,0.03);
    border: 2px solid var(--border);
    padding: 10px;
    color: #fff;
    outline: none;
    border-radius: 10px;
    width: 100%;
    font-size: 13px;
}
.search-input:focus, .filter-input:focus { border-color: var(--accent); }

.view-btn {
    background: var(--card-bg); border: 1px solid var(--border);
    color: var(--text-sec); padding: 8px 14px; border-radius: 6px;
    cursor: pointer; transition: all 0.3s; font-size: 13px;
}
.view-btn.active { color: var(--accent); border-color: var(--accent); background: rgba(212, 143, 255, 0.1); }

/* ========================================================== */
/* ================= СЕТКА (ОСНОВНОЙ ВИД) =================== */
/* ========================================================== */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    transition: all 0.3s ease;
}
@media (min-width: 1600px) { .catalog-grid { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1200px) and (max-width: 1599px) { .catalog-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) and (max-width: 1199px) { .catalog-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .catalog-grid { grid-template-columns: 1fr; } }

.beat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    height: 100%;
}
.beat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(136, 18, 255, 0.2);
}
.beat-cover {
    width: 100%; height: 0; padding-top: 100%; position: relative; overflow: hidden; background: #000;
}
.beat-cover img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
}
.beat-card:hover .beat-cover img { transform: scale(1.05); }

/* --- СТРУКТУРА КОНТЕНТА ДЛЯ СЕТКИ (grid-content) --- */
.beat-card-content.grid-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between; /* РАВНОМЕРНО РАСПРЕДЕЛЯЕТ ВЕРХ, ЦЕНУ И НИЗ, ЧТОБЫ ЦЕНА БЫЛА НА 1 ВЫСОТЕ */
}

.grid-content .beat-title {
    margin: 12px 16px 4px;
    font-size: 18px; font-weight: 600; color: #fff;
}
.grid-content .beat-author {
    margin: 0 16px 2px; font-size: 13px; color: #888;
}
.grid-content .beat-meta {
    margin: 0 16px 6px; font-size: 12px; color: #666;
}
.grid-content .beat-tags {
    display: flex; flex-wrap: wrap; gap: 6px; margin: 0 16px 8px;
}
.grid-content .tag-badge {
    background: rgba(255, 255, 255, 0.06); color: #aaa;
    padding: 4px 10px; border-radius: 20px; font-size: 11px;
    cursor: pointer; user-select: none; transition: all 0.2s;
}
.grid-content .tag-badge:hover, 
.grid-content .tag-badge.active { color: #fff; background: var(--accent); }

.grid-content .beat-price-row {
    display: flex; justify-content: space-between; align-items: center;
    margin: 0 16px 12px;
}
.grid-content .beat-price { color: var(--accent); font-weight: bold; font-size: 18px; }
.grid-content .buy-now-btn {
    background: transparent; border: 1px solid var(--accent); color: var(--accent);
    padding: 8px 20px; font-size: 13px; font-weight: bold; text-transform: uppercase;
    cursor: pointer; border-radius: 4px; transition: all 0.3s;
}
.grid-content .buy-now-btn:hover { background: var(--accent); color: #000; }

.grid-content .beat-actions {
    display: flex; flex-direction: column; gap: 6px;
    margin: 0 16px 16px;
}
.grid-content .beat-actions .preview-btn, 
.grid-content .beat-actions .download-btn {
    margin: 0; padding: 8px 0; width: 100%; display: block; text-align: center; box-sizing: border-box;
}
.grid-content .preview-btn, .grid-content .download-btn { font-size: 12px; font-weight: bold; cursor: pointer; border-radius: 4px; transition: all 0.3s; }
.grid-content .preview-btn { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.grid-content .preview-btn:hover { background: var(--accent); color: #000; }
.grid-content .download-btn { background: transparent; border: 1px solid #888; color: #ccc; }
.grid-content .download-btn:hover { background: #888; color: #000; }


/* ========================================================== */
/* ================= СПИСОК (ЛИСТОВОЙ ВИД) ================== */
/* ========================================================== */
.catalog-grid.list-view { grid-template-columns: 1fr !important; padding: 10px; gap: 12px; }
.catalog-grid.list-view .beat-card {
    flex-direction: row !important;
    align-items: stretch;
    padding: 12px 16px;
    gap: 16px;
    border-radius: 10px;
    height: auto;
}
.catalog-grid.list-view .beat-cover {
    width: 80px; height: 80px; padding-top: 0; flex-shrink: 0; border-radius: 6px; align-self: center;
}

/* --- СТРУКТУРА КОНТЕНТА ДЛЯ СПИСКА (list-content) --- */
.beat-card-content.list-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

/* ВЕРХНЯЯ СТРОКА СПИСКА */
.list-content .list-top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
}
.list-content .list-top-row .beat-title {
    margin: 0; font-size: 16px; font-weight: 700; color: #fff;
}
.list-content .list-top-row .beat-author {
    margin: 0; font-size: 13px; color: #888;
}
.list-content .list-top-row .beat-meta {
    margin: 0; font-size: 13px; color: #888;
}
.list-content .list-top-row .beat-tags {
    display: flex; flex-wrap: wrap; gap: 4px; margin: 0;
}
.list-content .list-top-row .tag-badge {
    background: rgba(255, 255, 255, 0.06); color: #aaa;
    padding: 2px 8px; border-radius: 12px; font-size: 10px;
    cursor: pointer; user-select: none; transition: all 0.2s;
}
.list-content .list-top-row .tag-badge:hover,
.list-content .list-top-row .tag-badge.active { color: #fff; background: var(--accent); }

/* НИЖНЯЯ СТРОКА СПИСКА (ИСПРАВЛЕННЫЕ СТИЛИ КНОПОК) */
.list-content .list-bottom-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

/* Кнопка Прослушать и Купить (фиолетовая рамка) */
.list-content .list-bottom-row .preview-btn,
.list-content .list-bottom-row .buy-now-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 4px 12px; font-size: 12px; border-radius: 4px;
    cursor: pointer; transition: all 0.3s; display: inline-block;
}
.list-content .list-bottom-row .preview-btn:hover,
.list-content .list-bottom-row .buy-now-btn:hover {
    background: var(--accent);
    color: #000;
}

/* Кнопка Скачать (серая рамка) */
.list-content .list-bottom-row .download-btn {
    background: transparent;
    border: 1px solid #888;
    color: #ccc;
    padding: 4px 12px; font-size: 12px; border-radius: 4px;
    cursor: pointer; transition: all 0.3s; display: inline-block;
}
.list-content .list-bottom-row .download-btn:hover {
    background: #888;
    color: #000;
}

.list-content .list-bottom-row .beat-price {
    font-size: 16px; font-weight: bold; color: var(--accent); margin-left: 4px;
}


/* === MODAL WINDOW === */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.9);
    display: none; justify-content: center; align-items: center; z-index: 1000; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
    background: #111115; padding: 40px; border-radius: 16px; max-width: 500px; width: 100%; text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}
.modal h2 { font-size: 28px; margin-bottom: 30px; text-transform: uppercase; }
.contact-list { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
    display: flex; align-items: center; gap: 14px; padding: 14px;
    background: rgba(255,255,255,0.04); border-radius: 10px;
}
.contact-icon { font-size: 20px; min-width: 24px; }
.contact-text { font-size: 16px; color: #fff; }
.close-modal {
    margin-top: 30px; background: transparent;
    border: 1px solid var(--accent); color: var(--accent); padding: 12px 30px;
    font-size: 14px; cursor: pointer; border-radius: 6px; transition: all 0.3s;
}
.close-modal:hover { background: var(--accent); color: #000; }

/* === GLOBAL PLAYER === */
.global-player {
    position: fixed;
    bottom: 0; left: 0; width: 100%; height: 90px;
    background: #0a0a0e; border-top: 1px solid var(--border);
    display: flex; align-items: center; padding: 0 20px; z-index: 500;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}
.player-visualizer {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0; opacity: 0.3; overflow: hidden;
}
#visualizer { width: 100%; height: 100%; display: block; }
.player-left, .player-center, .player-right { z-index: 1; }
.player-left { display: flex; align-items: center; gap: 15px; min-width: 200px; }
.prev-btn, .next-btn {
    width: 36px; height: 36px; border-radius: 50%; border: none; background: transparent; color: #aaa; font-size: 20px; cursor: pointer;
}
.prev-btn:hover, .next-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.play-btn-big {
    width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--accent); background: transparent; color: var(--accent); font-size: 16px; cursor: pointer;
}
.play-btn-big:hover { background: var(--accent); color: #1a0f2a; transform: scale(1.05); }
.play-btn-big.playing { background: #8812ff; border-color: #8812ff; color: #fff; }
.track-artwork {
    width: 60px; height: 60px; flex: 0 0 60px; border-radius: 8px; overflow: hidden; cursor: pointer; flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.track-artwork img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.track-artwork:hover img { transform: scale(1.05); }
.player-center { flex: 1; margin: 0 30px; min-width: 0; }
.current-title { font-size: 16px; font-weight: 600; color: #fff; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.current-author { font-size: 13px; color: var(--text-sec); }
.progress-row { width: 100%; margin-top: 8px; }
#global-progress {
    width: 100%; height: 6px; -webkit-appearance: none; background: #444; border-radius: 3px; outline: none;
}
#global-progress::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; cursor: pointer; margin-top: -6px;
    box-shadow: 0 0 0 2px rgba(138, 75, 255, 0.3); transition: transform .1s ease, box-shadow .2s ease;
}
#global-progress::-webkit-slider-thumb:hover { transform: scale(1.1); box-shadow: 0 0 0 3px rgba(138, 75, 255, 0.5); }
#global-progress::-webkit-slider-runnable-track {
    background: linear-gradient(to right, #8a4bff 0%, #8a4bff var(--fill-percent, 0%), #444 var(--fill-percent, 0%), #444 100%);
    height: 6px; border-radius: 3px;
}
.player-right { display: flex; align-items: center; gap: 20px; z-index: 1; }
.time-display { font-size: 11px; color: var(--text-sec); min-width: 70px; text-align: right; }
.volume-container { display: flex; align-items: center; gap: 8px; min-width: 120px; }
#volume-icon { font-size: 18px; color: #aaa; cursor: pointer; user-select: none; }
#volume-bar { width: 80px; height: 4px; -webkit-appearance: none; background: #333; border-radius: 2px; outline: none; }
#volume-bar::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; cursor: pointer; margin-top: -5px;
    box-shadow: 0 0 0 2px rgba(138, 75, 255, 0.3); transition: transform .1s ease, box-shadow .2s ease;
}
#volume-bar::-webkit-slider-thumb:hover { transform: scale(1.15); box-shadow: 0 0 0 3px rgba(138, 75, 255, 0.5); }

/* === AD BANNER (ПК) === */
.right-ad-container {
    position: fixed;
    right: -360px; /* Чуть сдвинули, чтобы не вылазил */
    top: 50%; width: 360px; height: auto;
    transform: translateY(-50%); z-index: 102;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 12px 0 0 12px; overflow: hidden;
    box-shadow: -10px 0 25px rgba(0, 0, 0, 0.4);
    background-color: var(--card-bg); border-left: 1px solid var(--accent);
    display: block; /* Жёстко включаем отображение на ПК */
}
.right-ad-container.open { right: 0; }
.right-ad-container.closed { display: none; }
.right-ad-image { display: block; width: 100%; height: auto; object-fit: cover; cursor: pointer; transition: transform 0.3s ease; }
.right-ad-image:hover { transform: scale(1.02); }
.ad-close-btn {
    position: absolute; top: 8px; right: 8px; width: 30px; height: 30px;
    background: rgba(15, 15, 26, 0.9); color: #ffffff;
    border: 2px solid var(--text-sec); border-radius: 50%; font-size: 20px; font-weight: bold;
    cursor: pointer; z-index: 5; display: flex; align-items: center; justify-content: center;
}
.ad-close-btn:hover { background: var(--accent); color: #0f0f1a; transform: scale(1.1); border-color: #fff; }
@media (max-width: 1200px) { .right-ad-container { display: none; } }

/* === FOOTER === */
footer { background-color: #050505; padding: 60px 20px 40px; color: #ccc; margin-top: 80px; }
.footer-top-border { height: 1px; background: linear-gradient(90deg, transparent, #9B59B6, transparent); margin-bottom: 40px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
.brand-logo { font-size: 28px; font-weight: 900; text-transform: uppercase; letter-spacing: 2px; color: #fff; }
.social-links { display: flex; gap: 12px; margin-top: 12px; }
.social-btn {
    width: 36px; height: 36px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1); border-radius: 4px;
    display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; font-size: 14px; transition: all 0.3s;
}
.social-btn:hover { background: #9B59B6; border-color: #9B59B6; transform: translateY(-2px); }
.footer-col-nav h4, .footer-col-contact h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #9B59B6; margin-bottom: 20px; }
.nav-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.nav-links a { color: #ccc; text-decoration: none; font-size: 14px; transition: color 0.3s; }
.nav-links a:hover { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.4); }
.footer-bottom {
    margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05);
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px;
    font-size: 14px; color: #888;
}
@media (max-width: 900px) {
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .footer-col-nav, .footer-col-contact { text-align: center; }
    .footer-bottom { flex-direction: column; gap: 5px; }
}

/* === SPINNER === */
.spinner {
    display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%; border-top-color: #fff; animation: spin 1s ease-in-out infinite;
    margin-right: 8px; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========================================= */
/* МОБИЛЬНАЯ АДАПТАЦИЯ (СМАРТФОНЫ)           */
/* ========================================= */
@media (max-width: 768px) {
    header { padding: 10px 15px; flex-wrap: wrap; gap: 10px; }
    .logo { font-size: 28px; }
    .nav-menu { gap: 15px; flex-wrap: wrap; justify-content: center; }
    .nav-link { font-size: 14px; }
    .buy-btn { padding: 8px 20px; font-size: 14px; }

    .filters-row { flex-direction: column; align-items: stretch; gap: 8px; }
    .filters-row > * { flex: 1 1 100%; width: 100%; }
    .view-toggle { justify-content: flex-end; margin-top: 4px; }

    /* --- Мобильная СЕТКА --- */
    .catalog-grid { grid-template-columns: 1fr; padding: 10px; gap: 16px; }
    .beat-card { margin: 0; height: 100%; }
    .grid-content .beat-title { margin: 10px 12px 4px; font-size: 16px; }
    .grid-content .beat-author,
    .grid-content .beat-meta,
    .grid-content .beat-tags,
    .grid-content .beat-price-row,
    .grid-content .beat-actions {
        margin-left: 12px; margin-right: 12px;
    }
    .grid-content .beat-actions { padding-bottom: 12px; }
    .grid-content .buy-now-btn { padding: 8px 16px; font-size: 12px; }
    .grid-content .beat-actions .preview-btn, 
    .grid-content .beat-actions .download-btn { padding: 6px 0; font-size: 12px; }

    /* --- Мобильный СПИСОК --- */
    .catalog-grid.list-view .beat-card { padding: 10px; gap: 10px; align-items: flex-start; }
    .catalog-grid.list-view .beat-cover { width: 60px; height: 60px; }
    .list-content .list-top-row { gap: 4px 8px; }
    .list-content .list-top-row .beat-title { font-size: 14px; font-weight: 700; width: 100%; white-space: normal; }
    .list-content .list-top-row .beat-author, .list-content .list-top-row .beat-meta { font-size: 12px; }
    .list-content .list-top-row .beat-tags { gap: 4px; margin-top: 4px; width: 100%; }
    .list-content .list-top-row .tag-badge { font-size: 10px; padding: 2px 6px; }
    .list-content .list-bottom-row { gap: 6px; margin-top: 8px; flex-wrap: wrap; justify-content: flex-start; }
    .list-content .list-bottom-row .preview-btn, .list-content .list-bottom-row .download-btn, .list-content .list-bottom-row .buy-now-btn { padding: 4px 10px; font-size: 11px; }
    .list-content .list-bottom-row .beat-price { font-size: 14px; margin-left: 0; }

        /* ========================================= */
    /* ГЛОБАЛЬНЫЙ ПЛЕЕР (Мобильная адаптация)    */
    /* ========================================= */
    .global-player {
        height: auto;
        min-height: 85px;
        padding: 6px 10px;
        display: flex;
        flex-wrap: wrap; /* Позволяет переставлять элементы по высоте */
        justify-content: center;
        align-items: center;
        gap: 2px;
    }

    /* 1. Арт (Картинка) — сверху по центру */
    .global-player > .track-artwork {
        display: block !important;
        width: 50px !important;
        height: 50px !important;
        flex: 0 0 50px !important;
        order: 1;
        margin: 0 auto !important;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    }
    .track-artwork img { width: 100%; height: 100%; object-fit: cover; }

    /* 2. Инфо и Прогресс — под артом, на всю ширину */
    .global-player > .player-center {
        order: 2;
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        flex: 1 1 100%; /* Заставляет блок занять 100% ширины */
        margin: 0 !important;
        padding: 0 !important;
        gap: 2px;
    }
    .current-title {
        font-size: 13px;
        text-align: center;
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 0 10px;
        box-sizing: border-box;
        margin: 0 !important;
    }
    .current-author { display: none !important; }
    
    /* Полоса прогресса растягивается на 100% ширины экрана */
    .progress-row {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
    }
    #global-progress { width: 100% !important; height: 4px; }

    /* 3. Кнопки управления — в самом низу */
    .global-player > .player-left {
        order: 3;
        display: flex !important;
        justify-content: center;
        align-items: center;
        flex: 1 1 100%; /* Занимает всю ширину */
        gap: 25px;
        padding-top: 4px;
        border-top: 1px solid rgba(255,255,255,0.05);
    }
    .play-btn-big { width: 36px; height: 36px; font-size: 14px; }
    .prev-btn, .next-btn { width: 30px; height: 30px; font-size: 16px; }

    /* 4. Скрываем правую часть (громкость) */
    .global-player .player-right { display: none !important; }

    /* ========================================= */
    /* БАННЕР В КАТАЛОГЕ (встраиваем в поток)   */
    /* ========================================= */
    .right-ad-container {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 8px;
        border-left: none;
        border-top: 1px solid var(--accent);
        margin: 10px 0 20px; /* Отступ от фильтров */
        box-shadow: 0 4px 15px rgba(0,0,0,0.5);
        display: block;
        overflow: hidden;
        background: #0f0f13;
    }
    .right-ad-image {
        width: 100%;
        height: auto;
        object-fit: contain; /* Убираем обрезание */
        display: block;
    }
    .ad-close-btn {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 30px;
        height: 30px;
        z-index: 10;
        background: rgba(0, 0, 0, 0.85);
        border: 1px solid #fff;
        color: #fff;
        border-radius: 50%;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

@media (max-width: 768px) {
    /* ========================================= */
    /* БАННЕР НА ГЛАВНОЙ (под слоганом/кнопкой) */
    /* ========================================= */
    .hero-banner-right {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
        width: 200px !important;  /* Оптимальный размер для мобилок */
        height: 200px !important;
        margin: 25px auto 0;      /* Отступ сверху и центрирование */
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.6);
        display: block !important;
        overflow: hidden;
        background: #111;
    }
    .hero-banner-right .banner-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }
    .hero-banner-right:hover .banner-img { transform: scale(1.05); }
}
}