/* =========================================================
   ОСНОВНЫЕ ЭЛЕМЕНТЫ
   ========================================================= */

.card-body {
    display: block;
}

.container-fluid {
    margin-bottom: 15px;
}

/* =========================================================
   NAVBAR
   ========================================================= */

.navbar-custom {
    background: #f5f5f5;
    color: #000;
}

.navbar-custom > .container {
    display: flex;
    align-items: center;
}

.navbar-custom .navbar-brand {
    color: #000;
    display: flex;
    align-items: center;
    white-space: nowrap;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1;
}

.navbar-custom .navbar-brand img {
    display: block;
    flex-shrink: 0;
}

.navbar-custom .navbar-brand > span {
    display: flex;
    align-items: center;
    line-height: 1;
}

.navbar-custom .nav-link,
.navbar-custom .navbar-text {
    color: #000;
}

.navbar-custom .nav-link {
    display: flex;
    align-items: center;
}

.navbar-custom .nav-link:hover {
    color: #0876b9;
}

/* =========================================================
   СЛОГАН
   ========================================================= */

.navbar-slogan {
    flex: 1;
    margin-left: 25px;
    margin-right: 25px;
    color: #555;
    font-size: 14px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    line-height: 1.2;
}

/* =========================================================
   ПРАВОЕ МЕНЮ НА ПК
   ========================================================= */

.navbar-custom .desktop-user-menu {
    display: flex;
    align-items: center;
    margin-top: 0;
    margin-bottom: 0;
}

.navbar-custom .desktop-user-menu .nav-item {
    display: flex;
    align-items: center;
}

.navbar-custom .desktop-user-menu .nav-link {
    display: flex;
    align-items: center;
    margin: 0;
}

.navbar-custom .desktop-user-menu .btn {
    margin-top: 0;
    margin-bottom: 0;
}

/* =========================================================
   КНОПКА ВЫХОДА
   ========================================================= */

.navbar-custom .btn-outline-light {
    color: #000;
    border-color: #000;
}

.navbar-custom .btn-outline-light:hover {
    color: #000;
    background-color: #fff;
    border-color: #43e6f8;
}

/* =========================================================
   КНОПКА МОБИЛЬНОГО МЕНЮ
   ========================================================= */

.navbar-custom .navbar-toggler {
    width: 46px;
    height: 42px;
    padding: 0;
    border: 2px solid #18c8d8 !important;
    border-radius: 8px;
    background: #f5f5f5 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
}

.navbar-custom .navbar-toggler-icon {
    background-image: none !important;
    width: 24px;
    height: 18px;
    position: relative;
    border-top: 3px solid #16c4d8;
    border-bottom: 3px solid #16c4d8;
}

.navbar-custom .navbar-toggler-icon::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 5px;
    height: 3px;
    background: #0876b9;
    border-radius: 2px;
}

/* =========================================================
   МОБИЛЬНОЕ МЕНЮ
   ========================================================= */

.mobile-quick-actions {
    display: none;
}

.mobile-user,
.mobile-logout {
    display: none;
}

.quick-actions {
    display: block;
}

/* Иконки Bootstrap в мобильном меню */

.mobile-quick-actions .package-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    height: 32px;
    margin-right: 10px;
    padding: 0;
    line-height: 1;
    font-size: 18px;
    text-align: center;
    flex-shrink: 0;
}

/* =========================================================
   АДАПТИВНОСТЬ NAVBAR
   ========================================================= */

@media (max-width: 991.98px) {

    .navbar-custom > .container {
        flex-wrap: wrap;
    }

    .navbar-slogan {
        display: none;
    }

    .mobile-quick-actions {
        display: block;
        width: 100%;
        margin: 2px 0 0;
        padding-left: 0;
        list-style: none;
    }

    .mobile-quick-actions .nav-item {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .mobile-quick-actions .nav-link {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 42px;
        margin: 0;
        padding: 7px 0;
        line-height: 1.2;
        color: #000;
    }

    .mobile-quick-actions .nav-link:hover {
        color: #0876b9;
    }

    .mobile-quick-actions .mobile-menu-text {
        display: block;
        flex: 1;
        margin: 0;
        padding: 0;
        line-height: 1.2;
    }

    .mobile-user {
        display: block;
        margin-top: 8px !important;
        padding-top: 4px !important;
        border-top: 1px solid #ddd;
    }

    .mobile-user .nav-link {
        min-height: 42px;
    }

    .mobile-logout {
        display: block;
        padding-top: 6px !important;
        padding-bottom: 8px !important;
    }

    .mobile-logout .btn {
        margin-top: 0;
    }

    .desktop-user-menu {
        display: none !important;
    }

    .quick-actions {
        display: none;
    }

    .container.mt-4 {
        margin-top: 0 !important;
    }
}

/* =========================================================
   СПИСОК СПОСОБОВ ОПЛАТЫ
   ========================================================= */

.payment-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 100%;
}

.payment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    transition: 0.2s;
}

.payment-item:hover {
    border-color: #0d6efd;
    background: #f8faff;
}

.payment-item.selected {
    border-color: #0d6efd;
    background: #f5f9ff;
}

/* Галочка выбора */

.payment-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transition: 0.2s;
}

.payment-item.selected .payment-check {
    opacity: 1;
}

/* Кнопки суммы */

.amount-btn {
    min-width: 90px;
    font-weight: 600;
}

/* Поле суммы */

#amount {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
}

/* =========================================================
   FOOTER
   ========================================================= */

footer.footer {
    text-align: center;
    background: #f5f5f5;
}

footer.footer p {
    margin-bottom: 0;
}

footer.footer a {
    text-decoration: none;
}

footer.footer a:hover {
    text-decoration: underline;
}

/* =========================================================
   КНОПКИ СКАЧИВАНИЯ ПЛЕЙЛИСТА
   ========================================================= */

.playlist-download-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* =========================================================
   СПИСОК КАНАЛОВ
   ========================================================= */

.channel-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.channel-category {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.channel-category-header {
    width: 100%;
    border: 0;
    background: #f8f9fa;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    color: #212529;
    transition: background-color 0.2s ease;
}

.channel-category-header:hover {
    background: #eef3f8;
}

.channel-category-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.channel-category-icon {
    font-size: 18px;
}

.channel-category-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.channel-count {
    min-width: 28px;
    padding: 2px 7px;
    border-radius: 20px;
    background: #0d6efd;
    color: #fff;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
}

.channel-arrow {
    font-size: 11px;
    color: #6c757d;
    transition: transform 0.2s ease;
}

.channel-category-content {
    display: none;
    padding: 10px 12px;
    border-top: 1px solid #dee2e6;
}

.channel-category.open .channel-category-content {
    display: block;
}

.channel-category.open .channel-arrow {
    transform: rotate(90deg);
}

.channel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
}

.channel-item {
    padding: 8px 10px;
    border-radius: 6px;
    background: #f8f9fa;
    font-size: 14px;
}

.channel-item:hover {
    background: #eef3f8;
}

@media (max-width: 575.98px) {

    .channel-category-header {
        padding: 11px 12px;
        font-size: 15px;
    }

    .channel-grid {
        grid-template-columns: 1fr;
    }

    .channel-item {
        padding: 7px 9px;
        font-size: 14px;
    }
}

/* =========================================================
   ИНФОРМАЦИЯ О ПАКЕТЕ
   ========================================================= */

.package-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

/* =========================================================
   БЛОГ
   ========================================================= */

.blog-post-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.blog-post-card {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-post-card:hover {
    border-color: #c8d4e0;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.blog-post-image {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: cover;
}

.blog-post-content {
    padding: 18px;
}

.blog-post-date {
    color: #6c757d;
    font-size: 13px;
}

.blog-post-title {
    margin-top: 5px;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 600;
}

.blog-post-title a {
    color: #212529;
    text-decoration: none;
}

.blog-post-title a:hover {
    color: #0d6efd;
}

.blog-post-excerpt {
    color: #555;
    line-height: 1.6;
}

/* =========================================================
   СТРАНИЦА ПОСТА
   ========================================================= */

.blog-detail-image {
    display: block;
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.blog-detail-title {
    margin-bottom: 20px;
    font-size: 32px;
    font-weight: 600;
}

.blog-detail-excerpt {
    margin-bottom: 25px;
    padding: 14px 16px;
    border-left: 4px solid #0d6efd;
    background: #f8f9fa;
    color: #555;
    font-size: 17px;
    line-height: 1.6;
}

.blog-detail-content {
    font-size: 16px;
    line-height: 1.8;
}

.blog-detail-content p {
    margin-bottom: 16px;
}

/* =========================================================
   YOUTUBE
   ========================================================= */

.blog-video-wrapper {
    position: relative;
    width: 100%;
    margin-top: 30px;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.blog-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ БЛОГА И ОПЛАТЫ
   ========================================================= */

@media (max-width: 575.98px) {

    .payment-list {
        max-width: 100%;
        gap: 6px;
    }

    .payment-item {
        min-height: 48px;
        padding: 8px 12px;
        font-size: 15px;
    }

    .payment-check {
        width: 22px;
        height: 22px;
        font-size: 13px;
    }

    .blog-post-content {
        padding: 14px;
    }

    .blog-post-title {
        font-size: 21px;
    }

    .blog-detail-title {
        font-size: 25px;
    }

    .blog-detail-content {
        font-size: 15px;
        line-height: 1.7;
    }

    .blog-post-image {
        max-height: 220px;
    }
}
/* Скрываем кнопку мобильного меню на компьютерах */
.navbar-custom .navbar-toggler {
    display: none !important;
}

/* Показываем кнопку только на мобильных устройствах и планшетах */
@media (max-width: 991.98px) {
    .navbar-custom .navbar-toggler {
        display: flex !important;
    }
}

