﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, #1a0a00 0%, #0d0500 100%);
    color: #fff2e6;
}
/* ШАПКА САЙТА */
.header {
    background: linear-gradient(135deg, #1a0a00 0%, #0d0500 100%);
    border-bottom: 3px solid #ff8c00;
    padding: 20px 30px;
    text-align: center;
}

.header-banner {
    max-width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
}

/* Если хочешь, чтобы шапка была над всем, а меню слева — оставляем как есть */
/* Если хочешь, чтобы шапка была над левым меню и контентом — добавил выше */

/* Левое меню */
.main-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #2a1a0a 0%, #1a0f05 100%);
    border-right: 2px solid #ff8c00;
    padding: 20px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

    .sidebar .menu-item {
        margin-bottom: 5px;
    }

        .sidebar .menu-item > a,
        .sidebar .menu-toggle {
            display: block;
            padding: 12px 20px;
            color: #ffcc80;
            text-decoration: none;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s;
            border-left: 3px solid transparent;
        }

            .sidebar .menu-item > a:hover,
            .sidebar .menu-toggle:hover {
                background: rgba(255, 140, 0, 0.2);
                border-left-color: #ff8c00;
                color: #ffb347;
            }
/* Профиль внизу левого меню */
.profile-section {
    text-align: center;
    padding: 20px 15px;
    border-top: 1px solid #ff8c00;
    margin-top: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ff8c00;
    margin-bottom: 10px;
}

.profile-name {
    font-size: 16px;
    font-weight: bold;
    color: #ffcc80;
    margin-bottom: 5px;
}

.profile-domain {
    font-size: 11px;
    color: #aa8a55;
    word-break: break-all;
}

.submenu {
    display: none;
    margin-left: 20px;
}

    .submenu a {
        display: block;
        padding: 8px 20px;
        color: #ccaa77;
        text-decoration: none;
        font-size: 14px;
        transition: all 0.2s;
    }

        .submenu a:hover {
            color: #ffaa44;
            padding-left: 25px;
        }

/* Контент */
.content {
    flex: 1;
    padding: 30px;
}

/* Вкладки HOT / Новые / Старые */
.video-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid #ff8c00;
    padding-bottom: 10px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: #ccaa77;
    padding: 10px 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 30px;
}

    .tab-btn:hover {
        color: #ffcc80;
        background: rgba(255, 140, 0, 0.1);
    }

    .tab-btn.active {
        background: #ff8c00;
        color: #1a0a00;
    }

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }

/* Сетка видео */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.video-card {
    background: linear-gradient(145deg, #2a1a0a, #1f1206);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #ff8c00;
}

    .video-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(255, 140, 0, 0.3);
    }

    .video-card a {
        text-decoration: none;
        color: inherit;
    }

.video-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #ff8c00, #ff5500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    object-fit: cover;
}

.video-title {
    padding: 12px 12px 5px;
    font-weight: bold;
    font-size: 16px;
}

.video-date {
    padding: 0 12px 12px;
    font-size: 12px;
    color: #ffaa66;
}

/* Музыка */
.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.music-card {
    background: #2a1a0a;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    border: 1px solid #ff8c00;
    transition: all 0.2s;
}

    .music-card:hover {
        transform: scale(1.02);
        box-shadow: 0 5px 15px rgba(255, 140, 0, 0.2);
    }

.cover {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #ff8c00, #ff5500);
    border-radius: 12px;
    margin: 0 auto 10px;
}

.play-btn {
    background: #ff8c00;
    border: none;
    color: #1a0a00;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s;
}

    .play-btn:hover {
        background: #ffaa44;
        transform: scale(1.05);
    }

#audio-player {
    margin-top: 30px;
    width: 100%;
    border-radius: 30px;
    background: #2a1a0a;
}

/* Подарки */
.gifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.gift-card {
    background: #2a1a0a;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #ff8c00;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

    .gift-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(255, 140, 0, 0.2);
    }

.gift-banner {
    background: linear-gradient(135deg, #ff8c00, #ff5500);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Убираем фиксированную высоту */
}

    .gift-banner img {
        width: 100%;
        height: auto;
        display: block;
    }

.gift-title {
    font-size: 18px;
    font-weight: bold;
    padding: 12px 12px 5px;
}

.gift-desc {
    padding: 0 12px;
    color: #ccaa77;
    font-size: 14px;
}

.gift-link {
    display: block;
    margin: 12px;
    padding: 8px;
    background: #ff8c00;
    color: #1a0a00;
    text-align: center;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.2s;
    margin-top: auto;
}

    .gift-link:hover {
        background: #ffaa44;
    }

/* Скролл */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #1a0f05;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #ff8c00;
    border-radius: 3px;
}

/* Картинки в подарках */
.gift-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Обложки музыки */
.cover {
    background-size: cover;
    background-position: center;
}

/* Правая колонка с баннерами */
.rightbar {
    width: 300px;
    background: linear-gradient(180deg, #1a0f05 0%, #0d0500 100%);
    border-left: 1px solid #ff8c00;
    padding: 20px 15px;
    position: sticky;
    top: 0;
    height: 100vh;
    /* Убираем overflow-y: auto */
}

.rightbar-section {
    margin-bottom: 30px;
}

.rightbar-title {
    color: #ff8c00;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ff8c00;
    display: inline-block;
}

.rightbar-banner {
    background: #2a1a0a;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #ff8c00;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .rightbar-banner:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(255, 140, 0, 0.2);
    }

    .rightbar-banner img {
        width: 100%;
        height: auto;
        display: block;
    }

.rightbar-banner-content {
    padding: 12px;
    text-align: center;
}

.rightbar-banner-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}

.rightbar-banner-desc {
    font-size: 12px;
    color: #ccaa77;
    margin-bottom: 10px;
}

.rightbar-banner-link {
    display: inline-block;
    background: #ff8c00;
    color: #1a0a00;
    padding: 6px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s;
}

    .rightbar-banner-link:hover {
        background: #ffaa44;
        transform: scale(1.02);
    }

/* Адаптив для правой колонки */
@media (max-width: 1024px) {
    .rightbar {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .rightbar {
        width: 100%;
        height: auto;
        position: relative;
        border-left: none;
        border-top: 1px solid #ff8c00;
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

    .rightbar-section {
        width: calc(50% - 15px);
        min-width: 200px;
    }
}

/* Адаптив */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .content {
        padding: 20px;
    }
}

/* Фикс для длинного описания под видео */
.video-player-container {
    overflow-x: hidden;
}

    .video-player-container p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        max-width: 100%;
        line-height: 1.5;
        margin-bottom: 20px;
    }

/* Чтобы текст не залезал под правую колонку */
@media (min-width: 769px) {
    .video-player-container p {
        max-width: calc(100% - 0px);
        overflow: hidden;
    }
}