/**
 * Complete public UI shell — top navigation, drawer, main, footer, modals.
 * Replaces sidebar-first layout. Load after theme-v2.css.
 * Fonts: inherit site tokens only (Inter via --font-sans).
 */

.ui-nova {
    --shell-font: var(--font-sans);
    --shell-display: var(--font-sans);
    --shell-bg: #070b14;
    --shell-surface: rgba(15, 23, 42, 0.65);
    --shell-border: rgba(148, 163, 184, 0.14);
    --shell-text: #f1f5f9;
    --shell-muted: #94a3b8;
    --shell-accent: var(--accent-color, #f43f5e);
    --shell-accent-soft: color-mix(in srgb, var(--shell-accent) 35%, transparent);
    --shell-header-h: auto;
    --shell-header-row1: 64px;
    /* Editorial inset: subtle side rhythm (not edge-to-edge); scales with viewport, caps on ultrawide */
    --shell-pad-x: clamp(15px, 3.5vw, 48px);
    --shell-radius: 14px;
}

.ui-nova,
.ui-nova body {
    font-family: var(--shell-font);
}

.ui-nova body {
    margin: 0;
    min-height: 100vh;
    background: var(--shell-bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(244, 63, 94, 0.09), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(99, 102, 241, 0.07), transparent),
        radial-gradient(ellipse 50% 35% at 0% 80%, rgba(14, 165, 233, 0.06), transparent);
    color: var(--shell-text);
    display: flex;
    flex-direction: column;
}

/* Kill legacy sidebar layout */
.ui-nova .sidebar,
.ui-nova .mobile-header,
.ui-nova .overlay,
.ui-nova .main-content {
    display: none !important;
}

/* ——— Header (desi bold streaming shell) ——— */
.shell-header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: var(--shell-header-row1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 10, 0.88);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.shell-header--desi {
    background: var(--header-surface, rgba(10, 10, 10, 0.92));
    border-bottom: 1px solid var(--header-border-glow, rgba(255, 255, 255, 0.1));
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45), inset 0 -1px 0 rgba(185, 28, 28, 0.12);
}

.shell-header__stack {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.shell-header__inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: max(var(--shell-pad-x), env(safe-area-inset-left, 0px));
    padding-right: max(var(--shell-pad-x), env(safe-area-inset-right, 0px));
    min-height: var(--shell-header-row1);
    height: var(--shell-header-row1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-sizing: border-box;
}

.shell-header__sub {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0;
    padding-bottom: 0.65rem;
    padding-left: max(var(--shell-pad-x), env(safe-area-inset-left, 0px));
    padding-right: max(var(--shell-pad-x), env(safe-area-inset-right, 0px));
    box-sizing: border-box;
    background: var(--header-sub-bg, transparent);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.shell-header__pills {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.shell-header__pills .category-pills,
.shell-header__pills-inner.category-pills {
    margin-bottom: 0;
    padding-bottom: 2px;
}

.shell-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.5px;
    font-family: var(--shell-font);
    flex-shrink: 0;
    transition: text-shadow 0.25s ease, filter 0.2s ease;
}

.shell-brand:hover {
    text-shadow: 0 0 12px var(--shell-accent-soft);
}

.shell-brand i {
    color: var(--shell-accent);
    font-size: 1.2rem;
}

.shell-brand__accent {
    color: var(--shell-accent);
}

.shell-header--desi .shell-brand__accent {
    color: var(--brand-gold, #f59e0b);
}

.shell-nav-toggle {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, #2a1515, #120808);
    color: #ffffff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(245, 158, 11, 0.08);
}

@media (min-width: 993px) {
    .shell-nav-toggle {
        display: none;
    }
}

/* Primary links: desktop = always visible tabs; mobile = drawer only */
.shell-nav {
    display: none;
    align-items: center;
    gap: 0.2rem;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 0.35rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 993px) {
    .shell-nav {
        display: flex;
    }
}

.shell-nav::-webkit-scrollbar {
    height: 4px;
}

.shell-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

.shell-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #c4b5b5;
    text-decoration: none;
    font-family: var(--shell-font);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.shell-nav a:hover {
    color: #fff7ed;
    background: rgba(185, 28, 28, 0.18);
    border-color: rgba(245, 158, 11, 0.15);
}

.shell-nav a.active {
    color: var(--nav-pill-active-text, #fde68a);
    background: var(--nav-pill-active-bg, rgba(245, 158, 11, 0.14));
    border: 1px solid var(--nav-pill-active-border, rgba(245, 158, 11, 0.45));
    box-shadow: var(--nav-pill-active-shadow, 0 0 18px rgba(245, 158, 11, 0.18));
}

.shell-nav a i {
    font-size: 0.85rem;
    opacity: 0.9;
}

.shell-hot-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.25rem;
    padding: 0.1rem 0.35rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 4px;
    background: var(--hot-badge-bg, linear-gradient(135deg, #b91c1c, #7f1d1d));
    color: var(--hot-badge-text, #fff7ed);
    line-height: 1;
    vertical-align: middle;
}

.shell-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Header row: show search icon only on small screens; theme stays beside it */
.shell-mobile-only {
    display: none !important;
}

@media (max-width: 992px) {
    .shell-mobile-only {
        display: inline-flex !important;
    }
}

.shell-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.6), -2px -2px 6px rgba(255, 255, 255, 0.08);
    transition: box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.shell-icon-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.shell-icon-btn:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.shell-icon-btn:active {
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.5), inset -2px -2px 4px rgba(255, 255, 255, 0.05);
    transform: translateY(2px);
}

/* Desktop search — fills space between logo and actions */
.shell-search-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: min(440px, 46vw);
    margin-left: 0.75rem;
}

.shell-search-wrap .search-icon {
    left: 15px;
    color: #a0a0a0;
    opacity: 1;
}

.shell-search-wrap .search-input {
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px 12px 44px;
    border-radius: 12px;
    font-family: var(--shell-font);
    font-size: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.shell-search-wrap .search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--shell-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--shell-accent) 12%, transparent);
}

.shell-search-wrap .search-input::placeholder {
    color: #a0a0a0;
}

@media (max-width: 992px) {
    .shell-brand {
        flex: 1;
        justify-content: center;
        min-width: 0;
    }

    .shell-search-wrap {
        display: none;
    }
}

/* ——— Drawer (mobile — ~half-width glass panel from left; no Admin in nav) ——— */
.shell-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.38);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    z-index: 200;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shell-drawer-overlay.is-open {
    display: block;
    opacity: 1;
}

.shell-drawer.shell-drawer--pro {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: max(14rem, min(50vw, 20rem));
    height: 100%;
    min-height: 100dvh;
    z-index: 210;
    transform: translateX(-100%);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: max(0.55rem, env(safe-area-inset-top, 0px)) max(0.75rem, env(safe-area-inset-right, 0px))
        max(0.85rem, env(safe-area-inset-bottom, 0px)) max(0.85rem, env(safe-area-inset-left, 0px));
    border: none;
    border-radius: 0 18px 18px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(22px) saturate(1.35);
    -webkit-backdrop-filter: blur(22px) saturate(1.35);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        10px 0 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.shell-drawer.shell-drawer--pro::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 85% 50% at 50% -5%, rgba(99, 102, 241, 0.07), transparent 58%),
        radial-gradient(ellipse 55% 35% at 100% 100%, rgba(245, 158, 11, 0.04), transparent 50%);
    z-index: 0;
}

.shell-drawer.shell-drawer--pro > * {
    position: relative;
    z-index: 1;
}

.shell-drawer.shell-drawer--pro.is-open {
    transform: translateX(0);
}

.shell-drawer--pro .shell-drawer__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    max-width: none;
    margin: 0 0 0.65rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.shell-drawer__head-main {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.shell-drawer__eyebrow {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(203, 213, 225, 0.75);
    font-family: var(--shell-font);
}

.shell-drawer__title {
    font-weight: 700;
    font-family: var(--shell-font);
    font-size: 1.2rem;
    color: #f8fafc;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.shell-drawer--pro .shell-drawer__close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.2);
    color: #e2e8f0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
}

.shell-drawer--pro .shell-drawer__close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
}

.shell-drawer--pro .shell-drawer__close:active {
    transform: scale(0.94);
}

.shell-drawer--pro .shell-drawer__nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.1rem 0 0.35rem;
}

.shell-drawer--pro .shell-drawer__nav a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #e2e8f0;
    text-decoration: none;
    font-family: var(--shell-font);
    font-weight: 600;
    font-size: 0.84rem;
    padding: 0.52rem 0.65rem;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.shell-drawer--pro .shell-drawer__nav a:active {
    transform: scale(0.99);
}

.shell-drawer--pro .shell-drawer__nav a i {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

.shell-drawer--pro .shell-drawer__nav a:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.shell-drawer--pro .shell-drawer__nav a.active {
    color: #fffbeb;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.28);
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.08);
}

.shell-drawer--pro .shell-drawer__nav a.active i {
    background: rgba(185, 28, 28, 0.28);
    border-color: rgba(245, 158, 11, 0.2);
    color: #fef3c7;
}

.shell-drawer .search-container {
    margin: 1rem 0 0;
}

/* ——— Category chips (legacy row if used outside header) ——— */
.shell-chips {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-top: 0.85rem;
    padding-bottom: 0.5rem;
    padding-left: max(var(--shell-pad-x), env(safe-area-inset-left, 0px));
    padding-right: max(var(--shell-pad-x), env(safe-area-inset-right, 0px));
    box-sizing: border-box;
}

.shell-chips .category-pills {
    margin-bottom: 0;
}

.shell-header__pills .pill,
.shell-chips .pill {
    background: rgba(185, 28, 28, 0.12);
    border-color: rgba(245, 158, 11, 0.22);
    font-weight: 600;
}

.shell-header__pills .pill:hover,
.shell-header__pills .pill.active,
.shell-chips .pill:hover,
.shell-chips .pill.active {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    border-color: rgba(245, 158, 11, 0.45);
    color: #fffbeb;
    box-shadow: 0 4px 16px rgba(185, 28, 28, 0.35);
}

/* ——— Main ——— */
.shell-main {
    flex: 1;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-top: clamp(0.75rem, 2vw, 1.25rem);
    padding-bottom: 3rem;
    padding-left: max(var(--shell-pad-x), env(safe-area-inset-left, 0px));
    padding-right: max(var(--shell-pad-x), env(safe-area-inset-right, 0px));
    box-sizing: border-box;
}

/* ——— Footer ——— */
.shell-footer {
    margin-top: auto;
    border-top: 1px solid var(--shell-border);
    background: linear-gradient(180deg, rgba(7, 11, 20, 0.5) 0%, #03050a 100%);
    padding-top: clamp(2.5rem, 5vw, 4rem);
    padding-bottom: 1.5rem;
    padding-left: max(var(--shell-pad-x), env(safe-area-inset-left, 0px));
    padding-right: max(var(--shell-pad-x), env(safe-area-inset-right, 0px));
}

.shell-footer__grid {
    width: 100%;
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
}

.shell-footer__brand p {
    color: var(--shell-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0.75rem 0 0;
    max-width: 28rem;
}

.shell-footer h4 {
    font-family: var(--shell-display);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--shell-muted);
    margin: 0 0 1rem;
}

.shell-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shell-footer li {
    margin-bottom: 0.65rem;
}

.shell-footer a {
    color: var(--shell-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.shell-footer a:hover {
    color: var(--shell-accent);
}

.shell-footer__bottom {
    width: 100%;
    max-width: none;
    margin: 2rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--shell-border);
    text-align: center;
    font-size: 0.8rem;
    color: var(--shell-muted);
}

@media (max-width: 768px) {
    .shell-footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .shell-footer__brand p {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile bottom bar */
.shell-bottom-nav {
    display: none;
    position: fixed;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 420px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(16px);
    border: 1px solid var(--shell-border);
    border-radius: 999px;
    padding: 10px 18px;
    z-index: 90;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.shell-bottom-nav a,
.shell-bottom-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    color: var(--shell-muted);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 12px;
    transition: color 0.2s, background 0.2s;
}

.shell-bottom-nav i {
    font-size: 1.1rem;
}

.shell-bottom-nav a.active,
.shell-bottom-nav button:hover {
    color: var(--shell-text);
}

.shell-bottom-nav a.active i {
    color: var(--shell-accent);
}

@media (max-width: 992px) {
    .shell-bottom-nav {
        display: flex;
    }
    .shell-footer {
        padding-bottom: 5.5rem;
    }
    .shell-main {
        padding-bottom: 5rem;
    }
}

/* ——— Modals (footer) ——— */
.shell-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.shell-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.shell-modal {
    background: #0f172a;
    border: 1px solid var(--shell-border);
    border-radius: var(--shell-radius);
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    transform: scale(0.94);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.shell-modal-overlay.active .shell-modal {
    transform: scale(1);
}

.shell-modal__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--shell-border);
}

.shell-modal__head h3 {
    margin: 0;
    font-family: var(--shell-display);
    font-size: 1.1rem;
}

.shell-modal__head button {
    background: none;
    border: none;
    color: var(--shell-muted);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 4px;
}

.shell-modal__body {
    padding: 1.25rem;
    overflow-y: auto;
}

.share-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.share-icon:hover {
    transform: translateY(-3px);
}

/* Legacy modals (footer markup) */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal-overlay.active {
    display: flex !important;
    opacity: 1 !important;
}

.modal-content {
    background: #0f172a;
    border: 1px solid var(--shell-border);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border-radius: var(--shell-radius);
    overflow: hidden;
    transform: scale(0.94);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--shell-border);
    background: rgba(255, 255, 255, 0.02);
}

.modal-header h3 {
    margin: 0;
    font-family: var(--shell-display);
    font-size: 1.05rem;
    color: var(--shell-text);
}

.modal-header button {
    background: none;
    border: none;
    color: var(--shell-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
}

.modal-body {
    padding: 1.25rem;
    overflow-y: auto;
    color: #cbd5e1;
}

/* ——— Video page ——— */
.ui-video .breadcrumb {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid var(--shell-border);
    border-radius: var(--shell-radius);
    padding: 0.85rem 1.15rem;
    margin-bottom: 1.25rem;
}

.ui-video .video-main-block {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--shell-border);
    border-radius: calc(var(--shell-radius) + 4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.ui-video .video-title {
    font-family: var(--shell-display);
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    letter-spacing: -0.02em;
}

.ui-video .video-title::after {
    background: linear-gradient(90deg, var(--shell-accent), transparent);
}

.ui-video .glass-card {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid var(--shell-border);
    border-radius: var(--shell-radius);
}

.ui-video .action-btn.primary {
    background: linear-gradient(135deg, var(--shell-accent), #6366f1);
    border-color: transparent;
}

/* ——— Lists / series grid ——— */
.ui-lists .az-filter {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--shell-border);
    border-radius: var(--shell-radius);
}

.ui-lists .series-card {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid var(--shell-border);
    border-radius: var(--shell-radius);
}

.ui-lists .series-card:hover {
    border-color: color-mix(in srgb, var(--shell-accent) 55%, var(--shell-border));
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

/* ——— Static / empty pages ——— */
.shell-empty {
    text-align: center;
    padding: clamp(3rem, 10vw, 6rem) 1.25rem;
}

.shell-empty__code {
    font-family: var(--shell-display);
    font-size: clamp(3rem, 12vw, 5rem);
    font-weight: 800;
    color: var(--shell-accent);
    margin: 0;
    line-height: 1;
}

.shell-empty h2 {
    font-family: var(--shell-display);
    margin: 1rem 0 0.5rem;
}

.shell-empty p {
    color: var(--shell-muted);
    max-width: 420px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}


/* Contact / static hero cards */
.shell-contact {
    max-width: 560px;
    margin: 0 auto;
    padding: 2rem 0 3rem;
    text-align: center;
}

.shell-contact h1 {
    font-family: var(--shell-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin: 0 0 1.5rem;
    color: var(--shell-text);
}

.shell-contact__card {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid var(--shell-border);
    border-radius: calc(var(--shell-radius) + 4px);
    padding: 2.5rem 1.75rem;
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.shell-contact__icon {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--shell-accent) 18%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--shell-accent);
    font-size: 1.75rem;
}

.shell-contact__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.9rem 1.75rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(135deg, var(--shell-accent), #6366f1);
    color: #fff;
    box-shadow: 0 12px 40px color-mix(in srgb, var(--shell-accent) 35%, transparent);
}
.prose-panel {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 0;
    line-height: 1.75;
    color: #cbd5e1;
}

.prose-panel h1 {
    font-family: var(--shell-display);
    font-size: 2rem;
    color: var(--shell-text);
    margin-top: 0;
}

.prose-panel a {
    color: var(--shell-accent);
}

/* Mobile search — bottom sheet + scrim (replaces full-screen black “page”) */
.search-overlay.search-overlay--sheet {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background: transparent;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
}

.search-overlay.search-overlay--sheet.active {
    display: flex !important;
    pointer-events: auto;
}

.search-overlay--sheet .search-overlay__scrim {
    position: absolute;
    inset: 0;
    z-index: 0;
    border: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.search-overlay--sheet .search-overlay__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    max-height: min(90vh, 720px);
    box-sizing: border-box;
    border-radius: 22px 22px 0 0;
    border: 1px solid var(--header-border-glow, rgba(245, 158, 11, 0.24));
    border-bottom: none;
    background: var(
        --header-surface,
        linear-gradient(180deg, rgba(52, 14, 16, 0.98) 0%, rgba(12, 8, 14, 0.99) 100%)
    );
    box-shadow: 0 -28px 70px rgba(0, 0, 0, 0.55);
    padding: 8px 14px 14px;
    padding-bottom: max(14px, env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}

.search-overlay--sheet .search-overlay__panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(ellipse 85% 55% at 100% 0%, rgba(185, 28, 28, 0.18), transparent 52%);
    z-index: 0;
}

.search-overlay--sheet .search-overlay__panel > * {
    position: relative;
    z-index: 1;
}

.search-overlay__handle {
    width: 40px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    margin: 4px auto 2px;
    flex-shrink: 0;
}

.search-overlay--sheet .search-overlay__toolbar.search-box-wrapper,
.search-overlay--sheet .search-box-wrapper.search-overlay__toolbar {
    display: flex;
    gap: 8px;
    margin: 0;
    flex-shrink: 0;
    align-items: stretch;
}

.search-overlay--sheet .search-box-wrapper input {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.38);
    color: #fff;
    font-size: 16px;
    font-family: var(--shell-font);
    box-sizing: border-box;
}

.search-overlay--sheet .search-box-wrapper input:focus {
    outline: none;
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.2);
}

.search-overlay--sheet .search-box-wrapper input::placeholder {
    color: rgba(250, 250, 250, 0.45);
}

.search-overlay--sheet .search-overlay__icon-btn {
    width: 48px;
    min-width: 48px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(145deg, rgba(185, 28, 28, 0.75), rgba(127, 29, 29, 0.85));
    color: #fffbeb;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: filter 0.15s ease, transform 0.12s ease;
}

.search-overlay--sheet .search-overlay__icon-btn:active {
    transform: scale(0.96);
}

.search-overlay--sheet .search-overlay__icon-btn--close {
    background: rgba(0, 0, 0, 0.45);
    color: #fecaca;
    border-color: rgba(255, 255, 255, 0.1);
}

.search-overlay--sheet .search-overlay__results.mobile-search-results {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 50vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin: 0;
    background: transparent;
}

.search-overlay--sheet .mobile-search-results .search-result-item {
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 8px;
}

.search-overlay--sheet .mobile-search-results .search-result-item:hover {
    background: rgba(185, 28, 28, 0.22);
    border-color: rgba(245, 158, 11, 0.2);
}
