/* Video catalog + app page. Do not load on title/player/admin-only screens.
 * See docs/SITE_CSS.md.
 */

.video-hero {
    padding: 28px;
    margin-bottom: 24px;
    background:
        radial-gradient(circle at top right, rgba(76, 175, 80, 0.18), transparent 28%),
        linear-gradient(180deg, #1b1f28, #151922);
}


.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}


.video-catalog-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
}


#catalog-results.is-loading {
    opacity: 0.58;
    pointer-events: none;
    transition: opacity 0.15s ease;
}


.video-card {
    overflow: hidden;
    border-radius: 18px;
    background: #171b22;
    border: 1px solid #2a313d;
    min-width: 0;
}


.video-catalog-grid .video-card {
    display: flex;
    flex-direction: column;
}


.video-catalog-poster-shell {
    position: relative;
    overflow: hidden;
}


.video-catalog-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 42px 16px 18px;
    background: linear-gradient(180deg, rgba(4, 8, 14, 0) 0%, rgba(4, 8, 14, 0.88) 72%, rgba(4, 8, 14, 0.98) 100%);
    text-align: center;
}


.video-catalog-title {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}


.video-catalog-count {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(8, 14, 24, 0.76);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}


.video-catalog-grid .video-card-body {
    padding: 14px 16px 16px;
}


.video-card-head h2 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.3;
}


.video-play-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.34));
    color: #fff;
    font-size: 54px;
    display: grid;
    place-items: center;
    cursor: pointer;
}


.video-progress-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    gap: 10px;
    align-items: center;
}


@media (max-width: 900px) {

    .video-catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


@media (max-width: 680px) {

    .video-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


.video-catalog-layout {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}


.video-catalog-sidebar-shell {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 18px;
}


.catalog-kind-card {
    padding: 10px;
    border-radius: 18px;
    border: 1px solid #2b3340;
    background:
        radial-gradient(circle at top right, rgba(76, 175, 80, 0.18), transparent 28%),
        linear-gradient(180deg, #1b1f28, #151922);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}


.catalog-kind-card .video-catalog-kind-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(42px, auto);
    align-content: start;
    width: 100%;
    max-width: none;
    overflow: visible;
}


.catalog-kind-card .video-catalog-kind-tab {
    flex: unset;
    min-width: 0;
    width: auto;
    min-height: 42px;
}


.video-catalog-controls {
    display: none;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}


.video-catalog-sidebar {
    display: grid;
    gap: 18px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid #2b3340;
    background:
        radial-gradient(circle at top right, rgba(76, 175, 80, 0.18), transparent 28%),
        linear-gradient(180deg, #1b1f28, #151922);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}


.catalog-sidebar-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: #171b22;
    border: 1px solid #2f3642;
    color: #d7dde8;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}


.video-catalog-sidebar-head,
.video-catalog-hero-head,
.video-catalog-toolbar,
.video-catalog-meta {
    justify-content: space-between;
}


.video-catalog-sidebar-body {
    display: grid;
    gap: 0;
    border: 1px solid #283244;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(10, 16, 25, 0.92), rgba(8, 13, 21, 0.86));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    overflow: hidden;
}


.catalog-filter-group {
    display: grid;
    gap: 10px;
    padding: 12px 14px 14px;
    border-bottom: 1px solid rgba(40, 50, 68, 0.9);
}


.catalog-filter-group:last-child {
    border-bottom: 0;
}


.catalog-filter-group-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    color: #dce8ff;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.18s ease;
}


.catalog-filter-group-head:hover {
    color: #f2f7ff;
}


.catalog-filter-group.is-open .catalog-filter-group-head strong {
    color: #f2f7ff;
}


.catalog-filter-group-meta {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: #8fd5ff;
}


.catalog-filter-group-arrow {
    display: inline-flex;
    transition: transform 0.18s ease;
}


.catalog-filter-group.is-open .catalog-filter-group-arrow {
    transform: rotate(180deg);
}


.catalog-filter-group-body {
    display: grid;
    gap: 12px;
}


.catalog-filter-group-body[hidden] {
    display: none !important;
}


.catalog-filter-search input,
.video-catalog-search input,
.video-catalog-sort select {
    width: 100%;
    border-radius: 14px;
    border: 1px solid #314058;
    background: #0f141c;
    color: #f7fbff;
    padding: 12px 14px;
}


.catalog-filter-values {
    display: grid;
    gap: 8px;
    max-height: 260px;
    overflow: auto;
    padding-right: 6px;
}


.catalog-filter-option {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(63, 87, 122, 0.72);
    background: linear-gradient(180deg, rgba(17, 27, 41, 0.96), rgba(10, 18, 29, 0.94));
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}


.catalog-filter-option:hover {
    transform: translateY(-1px);
    border-color: rgba(125, 180, 255, 0.82);
    box-shadow: 0 10px 18px rgba(5, 10, 18, 0.24);
}


.catalog-filter-option.is-selected {
    border-color: #79c66d;
    background: linear-gradient(180deg, rgba(27, 55, 38, 0.94), rgba(18, 41, 28, 0.92));
    box-shadow: 0 12px 24px rgba(14, 32, 18, 0.28);
}


.catalog-filter-option input {
    width: 16px;
    height: 16px;
    accent-color: #8fd5ff;
}


.catalog-filter-option-copy {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    width: 100%;
}


.catalog-filter-option-copy strong {
    color: #8fd5ff;
}


.video-catalog-sidebar-actions {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}


.catalog-online-card {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(92, 124, 164, 0.42);
    background:
        radial-gradient(circle at top right, rgba(96, 164, 255, 0.12), transparent 55%),
        linear-gradient(180deg, rgba(11, 18, 28, 0.98), rgba(8, 13, 21, 0.95));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}


.catalog-online-card-copy {
    display: grid;
    gap: 8px;
}


.catalog-online-card-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(96, 164, 255, 0.12);
    border: 1px solid rgba(120, 182, 255, 0.24);
    color: #b8dcff;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.catalog-online-card-value {
    display: flex;
    align-items: center;
    gap: 10px;
}


.catalog-online-card-value strong {
    color: #f4fbf2;
    font-size: 30px;
    line-height: 1;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}


.catalog-online-card-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6fe38d;
    box-shadow: 0 0 0 0 rgba(111, 227, 141, 0.55);
    animation: catalog-online-pulse 2.2s ease-out infinite;
}


@keyframes catalog-online-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(111, 227, 141, 0.55);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(111, 227, 141, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(111, 227, 141, 0);
    }
}


.catalog-online-card p {
    margin: 0;
    color: #9fb2c8;
    font-size: 14px;
    line-height: 1.4;
}


.catalog-app-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(69, 109, 70, 0.46);
    background:
        radial-gradient(circle at top left, rgba(126, 201, 109, 0.16), transparent 52%),
        linear-gradient(180deg, rgba(11, 18, 28, 0.98), rgba(8, 13, 21, 0.95));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}


.catalog-app-card-standalone {
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}


.catalog-app-card-copy {
    display: grid;
    gap: 8px;
}


.catalog-app-card-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(118, 196, 99, 0.14);
    border: 1px solid rgba(140, 215, 121, 0.24);
    color: #baf3ac;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.catalog-app-card h2 {
    margin: 0;
    color: #f4fbf2;
    font-size: 20px;
    line-height: 1.25;
}


.catalog-app-card p {
    margin: 0;
    color: #c8d5e8;
    line-height: 1.55;
}


.catalog-app-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


.catalog-app-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(92, 124, 164, 0.45);
    background: rgba(12, 19, 29, 0.72);
    color: #dce8ff;
    font-size: 13px;
}


.catalog-app-card-actions {
    display: grid;
    gap: 10px;
}


.catalog-app-card-actions .video-btn {
    justify-content: center;
}


body.site-shell .catalog-app-card-actions a.video-btn-primary {
    background: linear-gradient(135deg, #b8eb9f, #7ec85e);
    color: #0a1208;
    box-shadow: 0 10px 22px rgba(20, 48, 24, 0.28);
}


body.site-shell .catalog-app-card-actions a.video-btn-primary:hover {
    background: linear-gradient(135deg, #c8f5b0, #8ed66a);
    color: #0a1208;
}


.catalog-app-changelog {
    display: grid;
    gap: 10px;
}


.catalog-app-changelog summary {
    list-style: none;
}


.catalog-app-changelog summary::-webkit-details-marker {
    display: none;
}


.catalog-app-changelog-body {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(92, 124, 164, 0.35);
    background: rgba(8, 13, 21, 0.72);
    color: #c8d5e8;
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-wrap;
}


.catalog-app-card-note {
    font-size: 13px;
    color: #9fb2c8;
}


.video-catalog-main {
    min-width: 0;
    display: grid;
    gap: 18px;
}


.video-catalog-hero {
    display: grid;
    gap: 14px;
    padding: 18px 20px;
}


.video-catalog-kind-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-rows: minmax(38px, auto);
    align-content: start;
    flex: 0 1 auto;
    align-items: stretch;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    padding: 4px;
    border-radius: 14px;
    border: 1px solid rgba(47, 54, 66, 0.95);
    background: rgba(8, 13, 21, 0.72);
    overflow: visible;
    scrollbar-width: none;
}


.video-catalog-kind-tabs::-webkit-scrollbar {
    display: none;
}


.video-catalog-kind-tabs[hidden] {
    display: none !important;
}


.video-catalog-kind-tab {
    appearance: none;
    flex: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 38px;
    padding: 8px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #cbd5e1;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}


.video-catalog-kind-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}


.video-catalog-kind-tab.is-active {
    background: linear-gradient(135deg, #90d060, #4CAF50);
    color: #0f141a;
}


.video-catalog-kind-tab.is-active:hover {
    color: #0f141a;
    background: linear-gradient(135deg, #9ed86c, #5bb85f);
}


.video-catalog-toolbar {
    align-items: end;
}


.video-catalog-heading {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}


.video-catalog-search,
.video-catalog-sort {
    display: grid;
    gap: 8px;
    min-width: 220px;
    flex: 1 1 280px;
    color: #95a6c6;
    font-size: 13px;
    align-self: end;
}


.video-catalog-toolbar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(132px, 1fr));
    gap: 10px;
    align-items: end;
    align-self: end;
}


.video-catalog-toolbar-actions .video-btn {
    width: 100%;
    min-width: 132px;
}


.video-catalog-mobile-filter-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    flex-shrink: 0;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(47, 54, 66, 0.95);
    background: rgba(8, 13, 21, 0.72);
    color: #e7f1ff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    appearance: none;
    box-sizing: border-box;
}


.video-catalog-mobile-filter-btn:hover,
.video-catalog-mobile-filter-btn:focus-visible {
    border-color: rgba(152, 216, 117, 0.55);
    color: #fff;
}


.video-catalog-mobile-filter-btn.is-active {
    border-color: rgba(152, 216, 117, 0.72);
    background: rgba(27, 55, 38, 0.88);
    color: #f4fbf2;
}


.video-catalog-mobile-filter-count {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(152, 216, 117, 0.18);
    color: #98d875;
    font-size: 12px;
    font-weight: 800;
}


.video-catalog-mobile-filter-count:not([hidden]) {
    display: inline-flex;
}


.video-selected-filter-chip,
.video-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #33516e;
    background: rgba(15, 25, 38, 0.9);
    color: #e6f2ff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}


.video-selected-filter-chip span {
    color: #9ddf7d;
}


.video-catalog-grid-rich {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}


.video-history-strip {
    margin: 0 0 18px;
    padding: 14px 16px 16px;
    border: 1px solid #283244;
    border-radius: 18px;
    background: rgba(12, 18, 28, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}


.video-history-strip-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}


.video-history-strip-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #edf3ff;
}


.video-history-strip-count {
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 14, 24, 0.72);
    color: #b7c7e0;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}


.video-history-strip-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}


.video-history-strip-row::-webkit-scrollbar {
    height: 8px;
}


.video-history-strip-row::-webkit-scrollbar-thumb {
    background: rgba(141, 168, 214, 0.28);
    border-radius: 999px;
}


.video-history-card {
    flex: 0 0 128px;
    width: 128px;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(139, 176, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.16s ease, transform 0.16s ease;
}


.video-history-card:hover {
    border-color: rgba(141, 223, 160, 0.42);
    transform: translateY(-2px);
}


.video-history-poster-shell {
    position: relative;
    overflow: hidden;
}


.video-history-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    display: block;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.04);
}


.video-history-poster-fallback {
    display: grid;
    place-items: center;
    color: #91a4c0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}


.video-history-episode {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    max-width: calc(100% - 16px);
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 14, 24, 0.78);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    backdrop-filter: blur(8px);
}


.video-history-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 28px 8px 10px;
    background: linear-gradient(180deg, rgba(4, 8, 14, 0) 0%, rgba(4, 8, 14, 0.9) 70%, rgba(4, 8, 14, 0.98) 100%);
    text-align: center;
}


.video-history-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}


@media (max-width: 720px) {
    .video-history-card {
        flex-basis: 108px;
        width: 108px;
    }


    .video-history-strip {
        padding: 12px;
    }
}


.video-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #283244;
    border-radius: 16px;
    background: rgba(12, 18, 28, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}


.video-pagination-summary {
    display: grid;
    gap: 3px;
    min-width: 180px;
    color: #dce8ff;
    line-height: 1.35;
}


.video-pagination-summary strong {
    font-size: 14px;
}


.video-pagination-summary span {
    color: #91a4c0;
    font-size: 12px;
}


.video-pagination-controls,
.video-pagination-pages {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}


.video-pagination-controls {
    justify-content: flex-end;
}


.video-pagination-btn,
.video-pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 13px;
    box-sizing: border-box;
    border: 1px solid #344459;
    border-radius: 12px;
    background: rgba(11, 17, 26, 0.92);
    color: #e7f1ff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}


.video-pagination-page {
    padding: 0 10px;
}


.video-pagination-btn:hover,
.video-pagination-page:hover {
    border-color: #7fb2e8;
    background: #162338;
    transform: translateY(-1px);
}


.video-pagination-page.is-current {
    border-color: transparent;
    background: #98d875;
    color: #101820;
    box-shadow: 0 10px 22px rgba(75, 148, 88, 0.22);
}


.video-pagination-btn.is-disabled {
    color: #64738a;
    cursor: not-allowed;
    opacity: 0.62;
    pointer-events: none;
}


.video-pagination-gap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 40px;
    color: #8090aa;
}


.video-card-facts,
.video-card-filters {
    margin-top: 12px;
}


.catalog-sidebar-backdrop {
    display: none;
}


.video-catalog-sidebar-close {
    display: none;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    font-size: 22px;
    line-height: 1;
}


body.catalog-filters-open {
    overflow: hidden;
}


@media (max-width: 1180px) {
    .video-catalog-grid-rich {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


@media (max-width: 980px) {
    .video-catalog-layout {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        grid-template-columns: 1fr;
    }


    .video-catalog-sidebar-shell {
        display: contents;
    }


    .video-catalog-main {
        order: 1;
    }


    .catalog-online-card {
        order: 2;
    }


    .catalog-app-card-standalone {
        order: 3;
    }


    .video-catalog-hero {
        min-width: 0;
    }


    .catalog-kind-card {
        display: none;
    }


    .video-catalog-controls {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 4px;
        padding: 4px;
        border-radius: 14px;
        border: 1px solid rgba(47, 54, 66, 0.95);
        background: rgba(8, 13, 21, 0.72);
    }


    .video-catalog-kind-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: minmax(38px, auto);
        flex: 1 1 0%;
        min-width: 0;
        width: auto;
        max-width: none;
        padding: 0;
        border: 0;
        background: transparent;
        overflow: visible;
    }


    .video-catalog-kind-tab {
        min-width: 0;
        padding: 8px 12px;
        font-size: 13px;
    }


    .video-catalog-mobile-filter-btn {
        display: inline-flex;
        flex: 0 0 auto;
        min-width: max-content;
        min-height: 38px;
        padding: 0 12px;
        border: 0;
        border-radius: 10px;
        background: transparent;
    }


    .catalog-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 120;
        background: rgba(4, 8, 14, 0.62);
        backdrop-filter: blur(2px);
    }


    .catalog-sidebar-backdrop:not([hidden]) {
        display: block;
    }


    .video-catalog-sidebar-close {
        display: inline-flex;
    }


    .video-catalog-sidebar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        z-index: 130;
        max-height: min(85vh, 720px);
        transform: translateY(110%);
        transition: transform 0.28s ease;
        pointer-events: none;
        overflow: auto;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }


    .video-catalog-sidebar.is-open {
        transform: translateY(0);
        pointer-events: auto;
    }


    .video-catalog-grid-rich {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 640px) {

    .video-catalog-grid-rich {
        grid-template-columns: 1fr;
    }


    .video-pagination {
        align-items: stretch;
        flex-direction: column;
    }


    .video-pagination-summary,
    .video-pagination-controls {
        width: 100%;
    }


    .video-pagination-controls {
        justify-content: space-between;
    }


    .video-pagination-pages {
        flex: 1 1 auto;
        justify-content: center;
    }


    .video-catalog-toolbar-actions {
        width: 100%;
        grid-template-columns: 1fr;
    }


    .video-catalog-toolbar-actions .video-btn {
        width: 100%;
        justify-content: center;
    }


    .video-catalog-mobile-filter-btn {
        min-width: 0;
        padding: 0 12px;
    }


    .video-catalog-hero {
        padding: 14px;
    }
}


.mobile-app-page {
    display: grid;
    gap: 16px;
}


.mobile-app-back {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: #9fb2c8;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.18s ease;
}


.mobile-app-back:hover {
    color: #dce8ff;
}


.mobile-app-hero {
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(69, 109, 70, 0.42);
    background:
        radial-gradient(circle at 85% 40%, rgba(88, 148, 255, 0.12), transparent 42%),
        radial-gradient(circle at top left, rgba(126, 201, 109, 0.14), transparent 46%),
        linear-gradient(180deg, #1b1f28, #151922);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}


.mobile-app-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 46%);
    gap: 20px;
    align-items: center;
    padding: 24px 24px 24px 28px;
}


.mobile-app-hero-inner {
    display: grid;
    gap: 16px;
    min-width: 0;
}


.mobile-app-preview {
    position: relative;
    margin: 0;
    min-width: 0;
}


.mobile-app-preview::before {
    content: "";
    position: absolute;
    inset: 12% 8% 8%;
    border-radius: 24px;
    background: radial-gradient(circle, rgba(110, 170, 255, 0.22), transparent 72%);
    filter: blur(18px);
    pointer-events: none;
}


.mobile-app-preview img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid rgba(125, 180, 255, 0.22);
    box-shadow:
        0 22px 44px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}


.mobile-app-heading {
    margin: 0;
    color: #fff;
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}


.mobile-app-lead {
    margin: 0;
    color: #b7c5da;
    font-size: 15px;
    line-height: 1.65;
}


.mobile-app-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}


.mobile-app-download {
    width: fit-content;
    min-width: 200px;
    padding: 0 24px;
}


body.site-shell .mobile-app-page a.mobile-app-download.video-btn-primary {
    background: linear-gradient(135deg, #b8eb9f, #7ec85e);
    color: #0a1208;
}


body.site-shell .mobile-app-page a.mobile-app-download.video-btn-primary:hover {
    background: linear-gradient(135deg, #c8f5b0, #8ed66a);
    color: #0a1208;
}


.mobile-app-unavailable {
    margin: 0;
    color: #9fb2c8;
    font-size: 14px;
    line-height: 1.6;
}


.mobile-app-section {
    display: grid;
    gap: 16px;
    padding: 24px;
    border-radius: 18px;
    border: 1px solid #283244;
    background: linear-gradient(180deg, #171c25, #10151d);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}


.mobile-app-section-title {
    margin: 0;
    color: #eff4ff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
}


.mobile-app-section-text {
    margin: 0;
    color: #b7c5da;
    font-size: 15px;
    line-height: 1.65;
}


.mobile-app-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}


.mobile-app-feature {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(40, 50, 68, 0.85);
    background: rgba(8, 13, 21, 0.55);
}


.mobile-app-feature h3 {
    margin: 0;
    color: #f4fbf2;
    font-size: 15px;
    font-weight: 700;
}


.mobile-app-feature p {
    margin: 0;
    color: #9fb2c8;
    font-size: 14px;
    line-height: 1.55;
}


.mobile-app-changelog-title {
    margin: 0;
    color: #baf3ac;
    font-size: 14px;
    font-weight: 700;
}


.mobile-app-changelog-body {
    margin: 0;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(40, 50, 68, 0.7);
    background: rgba(6, 10, 16, 0.72);
    color: #c8d5e8;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
}


@media (max-width: 900px) {
    .mobile-app-features {
        grid-template-columns: 1fr;
    }


    .mobile-app-hero-layout {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 16px;
    }


    .mobile-app-preview {
        order: -1;
    }


    .mobile-app-section {
        padding: 20px;
    }


    .mobile-app-download {
        width: 100%;
    }
}
