/* =========================
   Base
   ========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    background: #050814;
    color: #f4f4f6;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================
   Layout
   ========================= */

.page {
    padding: 16px 16px 40px;
}



.page-inner {
    max-width: 1320px;
    margin: 0 auto;
}

/* =========================
   Site header
   ========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: radial-gradient(circle at 0 0, #111827 0, #020617 55%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.site-header-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Logo */

.site-logo {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.03em;
    text-transform: lowercase;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #e5e7eb;
    white-space: nowrap;
}

/* Nav */

.site-nav {
    display: flex;
    gap: 10px;
    margin-left: 16px;
    align-items: center;
    font-size: 13px;
}

.site-nav-link {
    padding: 6px 10px;
    border-radius: 999px;
    background: transparent;
    color: #e5e7eb;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.site-nav-link:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(55, 65, 81, 0.9);
}

.site-nav-link.is-active {
    background: linear-gradient(135deg, #f97316, #facc15);
    color: #111827;
    border-color: transparent;
}

/* Favorites badge */

.favorites_badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    padding: 0 5px;
    margin-left: 6px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.9);
    color: #f97316;
}

/* Search */

.site-header-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-header-search input[type="text"] {
    width: 220px;
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    background: #020617;
    color: #e5e7eb;
    outline: none;
    font-size: 13px;
}

.site-header-search input[type="text"]::placeholder {
    color: #6b7280;
}

.site-header-search button {
    border-radius: 999px;
    border: none;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    color: #f9fafb;
}

/* Burger (mobile) */

.site-nav-toggle {
    display: none;
    width: 34px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    background: rgba(15, 23, 42, 0.9);
    padding: 0;
    margin-left: 4px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.site-nav-toggle span,
.site-nav-toggle span::before,
.site-nav-toggle span::after {
    display: block;
    width: 18px;
    height: 2px;
    background: #e5e7eb;
    border-radius: 999px;
    position: relative;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.site-nav-toggle span::before,
.site-nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
}

.site-nav-toggle span::before {
    top: -5px;
}

.site-nav-toggle span::after {
    top: 5px;
}

.site-nav-toggle.is-open span {
    transform: rotate(45deg);
}

.site-nav-toggle.is-open span::before {
    transform: rotate(-90deg);
    top: 0;
}

.site-nav-toggle.is-open span::after {
    opacity: 0;
}

/* =========================
   Page header (H1 + подзаголовок)
   ========================= */

.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.page-header-main {
    max-width: 720px;
}

.page-title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.page-subtitle {
    margin: 0;
    font-size: 14px;
    color: #9ca3af;
}

/* =========================
   Video grid
   ========================= */

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

/* Card */

.video-card {
    background: #0b1020;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.video-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.video-card__thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: radial-gradient(circle at 20% 0, #1f2937 0, #030712 45%);
}

.video-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.video-card__thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 55%);
    opacity: 0.85;
    pointer-events: none;
}

.video-card__duration {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 999px;
    background: rgba(3, 7, 18, 0.86);
    color: #e5e7eb;
    z-index: 2;
}

/* Favorite */

.video-card__favorite {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.9);
    color: #f97316;
    cursor: pointer;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card__favorite::before {
    content: "★";
    font-size: 14px;
    opacity: 0.75;
}

.video-card__favorite.is-active {
    background: radial-gradient(circle at 30% 0, #f97316, #b91c1c);
    box-shadow: 0 0 12px rgba(248, 113, 113, 0.35);
}

.video-card__favorite.is-active::before {
    opacity: 1;
}

.video-card__favorite:hover {
    transform: scale(1.05);
}

/* Title */

.video-card__title {
    margin: 10px 10px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #f9fafb;
    max-height: 3.2em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Hover */

.video-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(148, 163, 184, 0.08);
    background: radial-gradient(circle at 10% -10%, #1f2937 0, #020617 60%);
}

.video-card:hover .video-card__img {
    transform: scale(1.05);
    opacity: 0.95;
}

/* =========================
   Empty state / foot text
   ========================= */

.empty-state {
    padding: 32px 20px;
    text-align: center;
    border-radius: 14px;
    background: radial-gradient(circle at 0 0, rgba(148, 163, 184, 0.18), transparent 65%),
                #020617;
    color: #e5e7eb;
    margin-bottom: 24px;
}

.empty-state p {
    margin: 0;
}

.page-footer-text {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(55, 65, 81, 0.7);
    font-size: 13px;
    color: #9ca3af;
}

/* Link block (под шапкой) */

.link-block {
    max-width: 1320px;
    margin: 4px auto 0;
    padding: 0 16px 0;
    font-size: 12px;
    color: #9ca3af;
}


.link-block a {
    color: #9ca3af;
}

.link-block a:hover {
    color: #e5e7eb;
}

/* =========================
   Pagination
   ========================= */

.pagination-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.pagination-wrap ul,
.pagination-wrap nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-wrap a,
.pagination-wrap span {
    display: inline-block;
    margin: 0 4px;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 999px;
    background: #020617;
    color: #e5e7eb;
    border: 1px solid rgba(55, 65, 81, 0.8);
    cursor: pointer;
}

.pagination-wrap a:hover {
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    border-color: transparent;
}

.pagination-wrap .active,
.pagination-wrap .current {
    background: linear-gradient(135deg, #f97316, #facc15);
    color: #111827;
    border-color: transparent;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 960px) {
    .page {
        padding-top: 72px;
    }

    .site-header-inner {
        padding: 8px 12px;
        flex-wrap: wrap;
        align-items: center;
    }

    .site-header-search {
        order: 3;
        width: 100%;
        margin-left: 0;
        margin-top: 6px;
    }

    .site-header-search input[type="text"] {
        width: 100%;
    }

    .site-nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        padding: 8px 12px 10px;
        background: rgba(3, 7, 18, 0.98);
        border-bottom: 1px solid rgba(15, 23, 42, 0.95);
        transform-origin: top;
        transform: scaleY(0.8);
        opacity: 0;
        pointer-events: none;
        flex-wrap: wrap;
        gap: 6px;
    }

    .site-nav.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: scaleY(1);
    }

    .site-nav-link {
        padding: 5px 9px;
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    .page-inner {
        max-width: 100%;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
}

/* =========================
   Legacy helpers (чтоб не ломать другие страницы)
   ========================= */

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}

.col-xl,
.col-lg-3,
.col-md-3,
.col-sm-4,
.col-xs-6 {
    padding: 8px;
}

.thumbnail {
    background: #0b1020;
    border-radius: 12px;
    overflow: hidden;
}

.thumbnail-img {
    width: 100%;
    height: auto;
    display: block;
}

.time-video {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.8);
    color: #e5e7eb;
}

.hd {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #4ade80);
    color: #022c22;
}

/* =========================
   Footer
   ========================= */

.site-footer {
    margin-top: 40px;
    padding: 40px 16px 60px;
    background: #020617;
    border-top: 1px solid rgba(15, 23, 42, 0.9);
    color: #9ca3af;
}

.site-footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    text-align: center;
}

.site-footer-text p {
    margin: 0 0 18px;
    font-size: 15px;
    color: #f3f4f6;
}

.site-footer-links {
    margin-bottom: 18px;
    font-size: 14px;
}

.site-footer-links a {
    display: inline-block;
    margin: 0 8px;
    color: #f97316;
}

.site-footer-links a:hover {
    color: #fb923c;
}

.site-footer-legal {
    font-size: 12px;
    line-height: 1.6;
    opacity: .85;
}

/* =========================
   Pagination FIX (horizontal)
   ========================= */

.pagination-wrap {
    display: flex;
    justify-content: center;
    margin: 32px 0;
}

.pagination-wrap ul {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.pagination-wrap li {
    display: flex;
}

.pagination-wrap a,
.pagination-wrap span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 50%;
    background: #020617;
    color: #e5e7eb;
    border: 1px solid rgba(55, 65, 81, 0.8);
    font-size: 14px;
    cursor: pointer;
}

.pagination-wrap span {
    pointer-events: none;
}

.pagination-wrap a:hover {
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    border-color: transparent;
}

.pagination-wrap .current {
    background: linear-gradient(135deg, #f97316, #facc15);
    border-color: transparent;
    color: #111827;
    font-weight: bold;
}

.page-prev,
.page-next {
    font-size: 18px;
}

.site-header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-logo {
    margin-right: 16px;
}

/* важно — пушим бургер вправо */
.site-nav-toggle {
    margin-left: auto !important;
}

@media (max-width: 960px) {
    .site-nav {
        order: 3;
        width: 100%;
    }

    .site-header-search {
        order: 2;
        width: 100%;
    }

    .site-nav-toggle {
        order: 1;
        margin-left: auto !important;
    }
}

/* Фикс большого разрыва над заголовком */
.page {
    margin-top: 0 !important;
    padding-top: 20px !important;
}

.container-fluid {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.link-block {
    margin-bottom: 10px !important;
}

/* ===== Мобильный режим: крупные карточки, меньше воздуха ===== */
@media (max-width: 640px) {

    .site-header-inner {
        padding: 6px 10px;
        gap: 8px;
    }

    .site-header-search {
        margin-top: 4px;
    }

    .page {
        padding-top: 16px !important;
        padding-bottom: 24px;
    }

    .page-header {
        margin-bottom: 12px;
    }

    .page-title {
        font-size: 22px;
        margin-bottom: 6px;
    }

    .page-subtitle {
        font-size: 13px;
    }

    /* одна карточка в ряд — станет намного крупнее */
    .video-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .video-card {
        border-radius: 12px;
    }

    .video-card__thumb {
        height: 0;
        padding-bottom: 56.25%; /* 16:9 */
    }

    .video-card__img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .video-card__title {
        font-size: 14px;
        margin: 8px 10px 10px;
    }

    .pagination-wrap {
        margin: 18px 0 24px;
    }

    .pagination-wrap ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    .pagination-wrap a,
    .pagination-wrap span {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

/* =========================
   Video page
   ========================= */

.video-page {
    padding-top: 28px;
}

.video-page-main {
    margin: 0 0 32px;
}


.video-page-player {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
}

.video-page-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-page-title {
    margin: 16px 0 8px;
    font-size: 24px;
    font-weight: 700;
}

.video-page-desc {
    margin: 0 0 12px;
    font-size: 14px;
    color: #e5e7eb;
}

.video-page-meta {
    list-style: none;
    padding: 0;
    margin: 4px 0 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 13px;
    color: #9ca3af;
}

.video-page-meta li {
    position: relative;
}

.video-page-meta li::after {
    content: "" !important;
    margin: 0 !important;
}


.video-page-meta li:last-child::after {
    content: "";
}


/* избранное */

.video-page-fav {
    margin-bottom: 16px;
}

.video-page-fav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    padding: 6px 12px;
    background: #020617;
    color: #e5e7eb;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.video-page-fav-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(148, 163, 184, 0.9);
}

.video-page-fav-btn.is-active {
    background: linear-gradient(135deg, #f97316, #b91c1c);
    border-color: transparent;
    color: #111827;
}

.video-page-fav-icon {
    font-size: 15px;
}

/* категории / теги */

.video-page-meta-blocks {
    font-size: 13px;
}

.video-page-meta-block {
    margin-bottom: 10px;
}

.video-page-meta-label {
    font-weight: 600;
    margin-bottom: 4px;
    color: #e5e7eb;
}

.video-page-meta-links a {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 4px 8px;
    border-radius: 999px;
    background: #020617;
    border: 1px solid rgba(55, 65, 81, 0.9);
    font-size: 12px;
    color: #e5e7eb;
}

.video-page-meta-links a:hover {
    border-color: rgba(129, 140, 248, 0.9);
}

/* блоки под плеером */

.video-section {
    margin-top: 32px;
    margin-bottom: 16px;
}

.video-section-title {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 600;
}

/* сейчас смотрят */

.video-queries-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}

.video-query-item {
    color: #e5e7eb;
}

.video-query-item:hover {
    color: #f97316;
}

/* адаптив */

@media (max-width: 960px) {
    .video-page-main {
        margin-bottom: 24px;
    }

    .video-page-title {
        font-size: 20px;
    }
}

/* Десктоп: плеер по левому краю, как сетка */
@media (min-width: 1024px) {
    .video-page-main {
        max-width: none;
        margin: 0 0 32px;  /* убираем auto по бокам */
    }
}

/* Видео-страница: фикс отступа сверху */
.page-inner.video-page {
    padding-top: 8px !important;   /* вместо огромной ямы */
}

.video-page-main {
    margin-top: 0 !important;
}

/* Иконки для меты */
.video-page-meta li {
    position: relative;
    padding-left: 20px;
}

/* Иконка календаря */
.video-page-meta li:nth-child(1)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 14px;
    height: 14px;
    background: url('data:image/svg+xml;utf8,<svg fill="%239ca3af" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 2v2H5a2 2 0 00-2 2v2h18V6a2 2 0 00-2-2h-2V2h-2v2H9V2H7zm13 10H4v8a2 2 0 002 2h12a2 2 0 002-2v-8z"/></svg>')
        no-repeat center/contain;
    opacity: .8;
}

/* Иконка времени */
.video-page-meta li:nth-child(2)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 14px;
    height: 14px;
    background: url('data:image/svg+xml;utf8,<svg fill="%239ca3af" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 1a11 11 0 110 22 11 11 0 010-22zm1 6h-2v6l5 3 .9-1.6-3.9-2.4V7z"/></svg>')
        no-repeat center/contain;
    opacity: .8;
}

/* Иконка просмотров */
.video-page-meta li:nth-child(3)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml;utf8,<svg fill="%239ca3af" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 5c-7 0-11 7-11 7s4 7 11 7 11-7 11-7-4-7-11-7zm0 12a5 5 0 110-10 5 5 0 010 10zm0-8a3 3 0 100 6 3 3 0 000-6z"/></svg>')
        no-repeat center/contain;
    opacity: .8;
}

/* Видео-страница: убираем яму над заголовком */
.page.video-page {
    padding: 8px 16px 32px !important;  /* было 16px сверху, делаем ещё меньше */
}

/* h1 на видео — почти без верхнего отступа */
.page.video-page .video-page-title {
    margin: 6px 0 10px !important;
}

.video-page-bottom {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 24px;
}

/* =========================
   Categories page
   ========================= */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.category-card {
    background: #020617;
    border-radius: 14px;
    border: 1px solid rgba(31, 41, 55, 0.9);
    overflow: hidden;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.category-card__link {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
}

.category-card__name {
    font-size: 14px;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 4px;
}

.category-card__count {
    font-size: 12px;
    color: #9ca3af;
}

.category-card:hover {
    transform: translateY(-2px);
    border-color: rgba(129, 140, 248, 0.9);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.7);
}

/* мобила: по 2 в ряд */
@media (max-width: 640px) {
    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .category-card__name {
        font-size: 13px;
    }
}

/* =========================
   Tags page
   ========================= */

.tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.tag-card {
    background: #020617;
    border-radius: 999px;
    border: 1px solid rgba(31, 41, 55, 0.9);
    overflow: hidden;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.tag-card__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
}

.tag-card__name {
    font-size: 13px;
    font-weight: 500;
    color: #e5e7eb;
}

.tag-card__count {
    font-size: 11px;
    color: #9ca3af;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
}

.tag-card:hover {
    transform: translateY(-1px);
    border-color: rgba(129, 140, 248, 0.9);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.7);
}

/* мобила: по 2–3 в ряд */
@media (max-width: 640px) {
    .tags-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .tag-card__name {
        font-size: 12px;
    }
}

.video-card__favorite {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 8px;
    top: 8px;
    z-index: 5;
    border: 1px solid rgba(255,255,255,0.25);
    cursor: pointer;
    transition: all .15s ease;
}

.video-card__favorite::before {
    content: "★";
    font-size: 14px;
    color: #ffffff80; /* полупрозрачная (не активная) */
}

/* --- активная звезда --- */
.video-card__favorite.is-active {
    background: #fbbf24;
    border-color: #f59e0b;
}

.video-card__favorite.is-active::before {
    color: #111; /* тёмный контрастный */
}

/* наведённая */
.video-card__favorite:hover {
    background: rgba(255,255,255,0.25);
}

.video-queries-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

/* Пилюли-запросы, визуально как теги */
.video-query-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 13px;
    color: #e5e7eb;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.9);
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.video-query-pill:hover {
    background: rgba(30, 64, 175, 0.9);
    border-color: rgba(129, 140, 248, 0.9);
    color: #fff;
}

/* Контейнер тегов "Сейчас смотрят" */
.video-section.video-queries .video-queries-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

/* Ссылки как теги, обнуляем всё старое */
.video-section.video-queries .video-queries-list .video-query-pill {
    display: inline-flex;
    align-items: center;
    width: auto;          /* перебиваем width:100% */
    padding: 6px 14px;
    font-size: 13px;
    line-height: 1;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.4);
    background: rgba(255,255,255,0.05);
    color: #e5e7eb;
    text-decoration: none;
    white-space: nowrap;
    transition: .15s ease;
}

.video-section.video-queries .video-queries-list .video-query-pill:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.35);
    color: #fff;
}
