/*
 * ADHUB — "Boudoir Noir": тъмна editorial тема за premium бельо бранд.
 * Палитра: почти чисто черен фон + наситен кармин/вино (не пастелно розово),
 * топъл ivory текст. Типография: Fraunces (display, italic drama) + Newsreader
 * (body, литературен serif) + Archivo (labels/UI, широко трасирани версали).
 * Editorial layout език: асиметрия, overlap, tilt, grain текстура, placeholder
 * рамки за снимки с caption спецификация (размер + описание на кадъра).
 */

:root {
    --ah-black: #0a0407;
    --ah-void: #050203;
    --ah-bg: #0a0407;
    --ah-bg-elevated: #120810;
    --ah-surface: #170a10;
    --ah-surface-2: #21101a;
    --ah-border: rgba(243, 233, 230, .10);
    --ah-border-strong: rgba(243, 233, 230, .22);
    --ah-text: #f3e9e6;
    --ah-text-muted: #b39a9c;
    --ah-text-faint: #6e5860;

    --ah-crimson: #a3122f;
    --ah-crimson-bright: #e0234c;
    --ah-crimson-deep: #430a19;
    --ah-blush: #e7b7bc;
    --ah-gold: #b68a4e;
    --ah-danger: #d9724a;

    --ah-radius-sm: 2px;
    --ah-radius: 4px;
    --ah-radius-lg: 2px;
    --ah-radius-pill: 999px;
    --ah-shadow: 0 50px 90px -30px rgba(0, 0, 0, .85);
    --ah-shadow-sm: 0 10px 30px -12px rgba(0, 0, 0, .7);

    --ah-font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
    --ah-font-body: "Newsreader", "Iowan Old Style", Georgia, serif;
    --ah-font-label: "Archivo", -apple-system, "Segoe UI", sans-serif;
    --ah-container: 1360px;
}

/* ---------- База ---------- */

html { background: var(--ah-black); }

body {
    background: var(--ah-black);
    color: var(--ah-text);
    font-family: var(--ah-font-body);
    font-size: 1.05rem;
    line-height: 1.6;
    letter-spacing: .003em;
    position: relative;
}

/* Editorial grain overlay — фина зърнеста текстура върху целия сайт,
   за да не изглежда фонът плоско/дигитално. Fixed + pointer-events:none,
   не пречи на interaction. */
.ah-grain {
    position: fixed;
    inset: 0;
    z-index: 4000;
    pointer-events: none;
    opacity: .05;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4, .ah-display {
    font-family: var(--ah-font-display);
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1.05;
    color: var(--ah-text);
}
em, .ah-italic { font-family: var(--ah-font-display); font-style: italic; font-weight: 500; }

a { color: var(--ah-crimson-bright); text-decoration: none; }
a:hover { color: var(--ah-blush); }

::selection { background: var(--ah-crimson); color: var(--ah-text); }

.ah-container {
    width: 100%;
    max-width: var(--ah-container);
    margin-inline: auto;
    padding-inline: 1.25rem;
    position: relative;
}
@media (min-width: 992px) { .ah-container { padding-inline: 2.5rem; } }

.ah-section { padding-block: clamp(3rem, 7vw, 7rem); }
.ah-section-tight { padding-block: clamp(2rem, 4vw, 3.5rem); }

.ah-divider {
    height: 1px;
    background: linear-gradient(90deg, var(--ah-crimson) 0%, transparent 75%);
    opacity: .6;
    border: none;
    margin: 0;
}

.ah-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--ah-font-label);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--ah-crimson-bright);
}
.ah-eyebrow::before {
    content: "";
    width: 1.7rem;
    height: 1px;
    background: var(--ah-crimson-bright);
    display: inline-block;
}
.ah-eyebrow-light { color: var(--ah-blush); }
.ah-eyebrow-light::before { background: var(--ah-blush); }

.ah-text-muted { color: var(--ah-text-muted) !important; }
.ah-label { font-family: var(--ah-font-label); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Бутони ---------- */

.ah-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .85rem 1.9rem;
    font-family: var(--ah-font-label);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-radius: var(--ah-radius-pill);
    border: 1px solid transparent;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
    white-space: nowrap;
}
.ah-btn:hover { transform: translateY(-2px); }

.ah-btn-gold {
    background: linear-gradient(135deg, var(--ah-crimson-bright), var(--ah-crimson) 65%, var(--ah-crimson-deep));
    color: #fbebee;
    box-shadow: 0 14px 34px -12px rgba(163, 18, 47, .65);
}
.ah-btn-gold:hover { color: #fff; box-shadow: 0 18px 40px -10px rgba(224, 35, 76, .8); }

.ah-btn-outline {
    background: transparent;
    color: var(--ah-text);
    border-color: var(--ah-border-strong);
}
.ah-btn-outline:hover { color: var(--ah-blush); border-color: var(--ah-crimson-bright); }

.ah-btn-ghost {
    background: transparent;
    color: var(--ah-text-muted);
    border-color: transparent;
    padding-inline: .4rem;
}
.ah-btn-ghost:hover { color: var(--ah-blush); }

/* ---------- Marquee ticker ---------- */

.ah-ticker {
    background: var(--ah-crimson-deep);
    border-bottom: 1px solid var(--ah-border);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    flex-shrink: 0;
}
.ah-ticker-track {
    display: inline-flex;
    align-items: center;
    animation: ah-scroll 90s linear infinite;
    will-change: transform;
}
.ah-ticker:hover .ah-ticker-track { animation-play-state: paused; }
.ah-ticker-item {
    font-family: var(--ah-font-label);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--ah-blush);
    padding: .55rem 1.4rem;
    display: inline-flex;
    align-items: center;
    gap: 1.4rem;
}
a.ah-ticker-item { text-decoration: none; }
a.ah-ticker-item:hover { color: #fff; }
.ah-ticker-item::after { content: "◆"; font-size: .5rem; color: var(--ah-crimson-bright); }
@keyframes ah-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .ah-ticker-track { animation: none; }
}

/* ---------- Navbar ---------- */

.ah-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(10, 4, 7, .88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--ah-border);
    flex-shrink: 0;
}

.ah-brand {
    font-family: var(--ah-font-display);
    font-weight: 700;
    font-style: italic;
    font-size: 1.5rem;
    letter-spacing: .04em;
    color: var(--ah-text) !important;
}
.ah-brand .ah-brand-dot { color: var(--ah-crimson-bright); font-style: normal; }

.ah-nav-link {
    font-family: var(--ah-font-label);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ah-text-muted) !important;
    padding: .5rem .9rem !important;
    position: relative;
}
.ah-nav-link:hover { color: var(--ah-text) !important; }
.ah-nav-link.active { color: var(--ah-blush) !important; }
.ah-nav-link.active::after {
    content: "";
    position: absolute;
    left: .9rem;
    right: .9rem;
    bottom: .05rem;
    height: 2px;
    background: var(--ah-crimson-bright);
}

.ah-navbar .dropdown-menu {
    background: var(--ah-surface);
    border: 1px solid var(--ah-border);
    border-radius: var(--ah-radius);
}
.ah-navbar .dropdown-item {
    color: var(--ah-text-muted);
    font-size: .82rem;
    letter-spacing: .03em;
}
.ah-navbar .dropdown-item:hover,
.ah-navbar .dropdown-item.active {
    background: var(--ah-surface-2);
    color: var(--ah-blush);
}

/* ---------- Hero: асиметричен split + overlap ---------- */

.ah-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--ah-border);
    background:
        radial-gradient(ellipse 70% 60% at 85% -10%, rgba(163, 18, 47, .22), transparent 60%),
        radial-gradient(ellipse 55% 45% at 0% 105%, rgba(163, 18, 47, .12), transparent 60%),
        var(--ah-black);
}

.ah-hero-split {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    padding-block: clamp(3rem, 7vw, 6rem);
}
@media (max-width: 991.98px) {
    .ah-hero-split { grid-template-columns: 1fr; }
}

.ah-hero-title {
    font-size: clamp(2.6rem, 5.6vw, 5rem);
    line-height: .98;
}
.ah-hero-title .ah-italic { color: var(--ah-crimson-bright); }

.ah-hero-lede {
    font-size: 1.12rem;
    color: var(--ah-text-muted);
    max-width: 34rem;
    font-family: var(--ah-font-body);
}

.ah-hero-visual {
    position: relative;
    padding-top: 1rem;
    padding-right: 1.5rem;
}
.ah-hero-visual .ah-frame-portrait {
    width: 100%;
    aspect-ratio: 4 / 5;
}
.ah-hero-visual .ah-frame-float {
    position: absolute;
    width: 46%;
    aspect-ratio: 3 / 4;
    left: -2.5rem;
    bottom: -2.5rem;
    box-shadow: var(--ah-shadow);
    z-index: 2;
}
@media (max-width: 575.98px) {
    .ah-hero-visual { padding-right: 0; }
    .ah-hero-visual .ah-frame-float { left: -.75rem; bottom: -1.5rem; width: 42%; }
}

/* ---------- Image placeholder frame ---------- */

.ah-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--ah-radius);
    border: 1px solid var(--ah-border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}
.ah-frame::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px dashed rgba(243, 233, 230, .22);
    pointer-events: none;
    z-index: 1;
}
.ah-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(200deg, transparent 35%, rgba(0, 0, 0, .6) 100%);
    z-index: 1;
}
/* Истинска снимка: без placeholder-декорацията (пунктирана рамка + тъмен
   градиент), която иначе "замъглява" всеки кадър. Остава само лек скрим
   най-долу, за да се чете duration badge-ът. */
.ah-frame-has-img::before { display: none; }
.ah-frame-has-img::after {
    background: linear-gradient(to top, rgba(0, 0, 0, .35) 0, transparent 28%);
}
.ah-frame-img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ah-frame-img-hover {
    opacity: 0;
    transition: opacity .3s ease;
}
.ah-frame:hover .ah-frame-img-hover {
    opacity: 1;
}
/* Снимка с URL, но още се зарежда/не е мъртва -> иконката е скрита; при мъртва
   снимка (adhubFrameFallback е сложил .ah-frame-dead) остава тонът + иконка. */
.ah-frame-has-img .ah-frame-mark { display: none; }
.ah-frame-dead .ah-frame-mark { display: block; font-size: 2.4rem; color: rgba(243, 233, 230, .35); }

.ah-frame-square   { aspect-ratio: 1 / 1; }
.ah-frame-portrait { aspect-ratio: 4 / 5; }
.ah-frame-tall      { aspect-ratio: 2 / 3; }
.ah-frame-wide      { aspect-ratio: 16 / 9; }
.ah-frame-card       { aspect-ratio: 3 / 4; }

.ah-frame-tilt-l { transform: rotate(-1.6deg); }
.ah-frame-tilt-r { transform: rotate(1.8deg); }

.ah-frame-mark {
    position: relative;
    z-index: 1;
    font-size: 1.7rem;
    color: rgba(243, 233, 230, .3);
}

.ah-frame-spec {
    position: absolute;
    z-index: 2;
    left: .65rem;
    right: .65rem;
    bottom: .65rem;
    background: rgba(5, 2, 3, .72);
    backdrop-filter: blur(3px);
    border: 1px solid var(--ah-border);
    border-radius: var(--ah-radius-sm);
    padding: .55rem .7rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
    line-height: 1.3;
}
.ah-frame-spec-tag {
    font-family: var(--ah-font-label);
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ah-crimson-bright);
}
.ah-frame-spec-desc {
    font-family: var(--ah-font-label);
    font-size: .68rem;
    color: var(--ah-text);
}
.ah-frame-spec-dims {
    font-family: var(--ah-font-label);
    font-size: .62rem;
    color: var(--ah-text-faint);
    letter-spacing: .04em;
}

.ah-frame-badge {
    position: absolute;
    z-index: 2;
    top: .65rem;
    right: .65rem;
    background: rgba(5, 2, 3, .65);
    border: 1px solid var(--ah-border);
    border-radius: var(--ah-radius-pill);
    padding: .2rem .65rem;
    font-family: var(--ah-font-label);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .05em;
    color: var(--ah-text);
    backdrop-filter: blur(3px);
}

.ah-tone-1 { background: linear-gradient(150deg, #200d13, #3a0f1c 55%, #7a1530); }
.ah-tone-2 { background: linear-gradient(150deg, #180a12, #2c0e1e 55%, #5c1029); }
.ah-tone-3 { background: linear-gradient(150deg, #140a0d, #2a1015 55%, #641a2b); }
.ah-tone-4 { background: linear-gradient(150deg, #1c0b0f, #331020 55%, #8a1c3a); }
.ah-tone-5 { background: linear-gradient(150deg, #190a10, #2e0f1c 55%, #6e1330); }
.ah-tone-6 { background: linear-gradient(150deg, #150a0e, #280d19 55%, #591127); }

/* ---------- Stats ---------- */

.ah-stat {
    background: var(--ah-surface);
    border: 1px solid var(--ah-border);
    border-radius: var(--ah-radius);
    padding: 1.1rem 1.3rem;
}
.ah-stat-value {
    font-family: var(--ah-font-display);
    font-size: 1.7rem;
    font-style: italic;
    color: var(--ah-blush);
}
.ah-stat-label {
    font-family: var(--ah-font-label);
    font-size: .66rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ah-text-muted);
}

/* ---------- Grid / Cards ---------- */

.ah-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.4rem;
}
.ah-grid-cards { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.ah-grid-tight { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1.1rem; }
.ah-grid-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.6rem; }

/* Bento асиметричен grid — 1 голяма + няколко малки клетки */
.ah-bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.4rem;
}
.ah-bento .ah-bento-lg { grid-column: span 3; grid-row: span 2; }
.ah-bento .ah-bento-sm { grid-column: span 3; }
@media (min-width: 768px) {
    .ah-bento .ah-bento-lg { grid-column: span 3; }
    .ah-bento .ah-bento-sm { grid-column: span 3; }
}
@media (max-width: 767.98px) {
    .ah-bento { grid-template-columns: 1fr; }
    .ah-bento .ah-bento-lg, .ah-bento .ah-bento-sm { grid-column: span 1; }
}

.ah-card {
    background: var(--ah-surface);
    border: 1px solid var(--ah-border);
    border-radius: var(--ah-radius);
    overflow: hidden;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
}
.ah-card:hover {
    border-color: var(--ah-crimson);
    transform: translateY(-4px);
    box-shadow: var(--ah-shadow-sm);
}

.ah-card-body { padding: 1.15rem 1.25rem 1.4rem; }

.ah-cat-tile {
    position: relative;
    display: block;
    border-radius: var(--ah-radius);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.ah-cat-tile:hover { transform: translateY(-3px); box-shadow: var(--ah-shadow-sm); }
.ah-cat-tile .ah-frame { border: 0; border-radius: 0; }
.ah-cat-tile .ah-frame::after { background: linear-gradient(to top, rgba(0, 0, 0, .75) 0, transparent 55%); }
.ah-cat-tile-label {
    position: absolute;
    left: .7rem;
    bottom: .55rem;
    right: .7rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}
.ah-cat-tile-name { font-weight: 700; font-size: 1rem; color: #fff; }
.ah-cat-tile-count { font-size: .78rem; color: rgba(255, 255, 255, .78); }
.ah-card-body-sm { padding: .6rem .75rem .8rem; }
.ah-card-title-sm {
    font-size: .92rem;
    line-height: 1.25;
    margin-bottom: .35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ah-card-meta {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    font-size: .75rem;
    color: var(--ah-text-muted, rgba(243, 233, 230, .6));
}
.ah-eyebrow-sm {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .68rem;
    color: var(--ah-crimson);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ah-card-title {
    font-family: var(--ah-font-display);
    font-style: italic;
    font-size: 1.15rem;
    margin-bottom: .3rem;
}

/* ---------- Legacy thumb (запазено за неразгърнати варианти) ---------- */
.ah-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(243, 233, 230, .5);
    overflow: hidden;
}
.ah-thumb-sq { aspect-ratio: 1 / 1; }
.ah-thumb-portrait { aspect-ratio: 3 / 4; }
.ah-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .55) 100%);
}
.ah-thumb-icon { position: relative; z-index: 1; font-size: 2.1rem; opacity: .85; }
.ah-thumb-icon.small { font-size: 1.4rem; }
.ah-thumb-1 { background: linear-gradient(135deg, #200d13, #3a0f1c 55%, #7a1530); }
.ah-thumb-2 { background: linear-gradient(135deg, #180a12, #2c0e1e 55%, #5c1029); }
.ah-thumb-3 { background: linear-gradient(135deg, #140a0d, #2a1015 55%, #641a2b); }
.ah-thumb-4 { background: linear-gradient(135deg, #1c0b0f, #331020 55%, #8a1c3a); }
.ah-thumb-5 { background: linear-gradient(135deg, #190a10, #2e0f1c 55%, #6e1330); }
.ah-thumb-6 { background: linear-gradient(135deg, #150a0e, #280d19 55%, #591127); }
.ah-thumb-meta {
    position: absolute;
    z-index: 1;
    left: .7rem;
    bottom: .6rem;
    right: .7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .03em;
    color: var(--ah-text);
}
.ah-thumb-badge {
    background: rgba(10, 4, 7, .65);
    border: 1px solid var(--ah-border);
    border-radius: 999px;
    padding: .15rem .55rem;
    backdrop-filter: blur(4px);
}

/* Заключено (пред-логин teaser) съдържание */
.ah-locked { position: relative; }
.ah-locked .ah-thumb, .ah-locked .ah-frame { filter: blur(4px) saturate(.6) brightness(.55); }
.ah-lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    z-index: 3;
    background: rgba(10, 4, 7, .3);
    color: var(--ah-blush);
    text-align: center;
    padding: 1rem;
}
.ah-lock-overlay i { font-size: 1.5rem; }
.ah-lock-overlay span {
    font-family: var(--ah-font-label);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ah-text-muted);
}

/* ---------- Tags / pills ---------- */

.ah-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .38rem .9rem;
    border-radius: 999px;
    border: 1px solid var(--ah-border);
    background: var(--ah-surface);
    color: var(--ah-text-muted);
    font-family: var(--ah-font-label);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.ah-pill:hover, .ah-pill.active {
    border-color: var(--ah-crimson-bright);
    color: var(--ah-blush);
    background: var(--ah-surface-2);
}

/* ---------- Avatar ---------- */

.ah-avatar {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ah-font-display);
    font-style: italic;
    font-weight: 600;
    color: var(--ah-blush);
    border: 1px solid var(--ah-border-strong);
    box-shadow: 0 0 0 4px rgba(163, 18, 47, .1);
}

/* ---------- Player ---------- */

.ah-player {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--ah-radius);
    border: 1px solid var(--ah-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .75rem;
    overflow: hidden;
    background: radial-gradient(ellipse 80% 80% at 50% 30%, rgba(163, 18, 47, .2), transparent 70%), var(--ah-surface);
}
.ah-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.ah-player-play {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(163, 18, 47, .16);
    border: 1px solid var(--ah-border-strong);
    color: var(--ah-blush);
    font-size: 1.7rem;
}

/* ---------- Manifesto / pull-quote band ---------- */

.ah-manifesto {
    position: relative;
    background: linear-gradient(160deg, var(--ah-crimson-deep) 0%, var(--ah-black) 65%);
    border-top: 1px solid var(--ah-border);
    border-bottom: 1px solid var(--ah-border);
    text-align: center;
    overflow: hidden;
}
.ah-manifesto::before {
    content: "“";
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--ah-font-display);
    font-size: 14rem;
    color: rgba(243, 233, 230, .04);
    line-height: 1;
    pointer-events: none;
}
.ah-manifesto-quote {
    font-family: var(--ah-font-display);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.6rem, 3.6vw, 2.9rem);
    line-height: 1.25;
    max-width: 46rem;
    margin-inline: auto;
    position: relative;
}
.ah-manifesto-quote .ah-italic { color: var(--ah-crimson-bright); font-style: normal; font-weight: 700; }

/* ---------- Форми ---------- */

.ah-input {
    background: var(--ah-bg-elevated) !important;
    border: 1px solid var(--ah-border) !important;
    color: var(--ah-text) !important;
}
.ah-input:focus {
    border-color: var(--ah-crimson-bright) !important;
    box-shadow: 0 0 0 .2rem rgba(163, 18, 47, .2) !important;
}
.ah-input::placeholder { color: var(--ah-text-faint); }

/* ---------- Footer ---------- */

.ah-footer {
    position: relative;
    background: var(--ah-bg-elevated);
    border-top: 1px solid var(--ah-border);
    color: var(--ah-text-muted);
}
.ah-footer a { color: var(--ah-text-muted); }
.ah-footer a:hover { color: var(--ah-blush); }
.ah-footer-social {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    border: 1px solid var(--ah-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ah-text-muted);
}
.ah-footer-social:hover { border-color: var(--ah-crimson-bright); color: var(--ah-blush); }
.ah-footer-brand {
    font-family: var(--ah-font-display);
    font-style: italic;
    font-size: 1.9rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 575.98px) {
    .ah-hero-title { font-size: clamp(2.1rem, 10vw, 2.7rem); }
    .ah-section { padding-block: 2.25rem; }
    .ah-manifesto-quote { font-size: 1.5rem; }
}


/* ---------- Search (header) ---------- */
.ah-search {
    position: relative;
    flex: 1 1 220px;
    max-width: 22rem;
}
@media (max-width: 991.98px) { .ah-search { flex-basis: 100%; max-width: none; } }
.ah-search .bi-search {
    position: absolute;
    left: .9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ah-text-muted);
    pointer-events: none;
}
.ah-search input {
    width: 100%;
    padding: .5rem 1rem .5rem 2.4rem;
    border-radius: 999px;
    border: 1px solid var(--ah-border-strong);
    background: rgba(255, 255, 255, .05);
    color: var(--ah-text);
    font-size: .9rem;
    outline: none;
    transition: border-color .15s ease, background .15s ease;
}
.ah-search input::placeholder { color: var(--ah-text-muted); }
.ah-search input:focus { border-color: var(--ah-crimson); background: rgba(255, 255, 255, .09); }

/* ---------- /videos: лява колона + резултати ---------- */
.ah-browse {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}
@media (max-width: 991.98px) { .ah-browse { grid-template-columns: 1fr; gap: 1rem; } }
.ah-browse-head { margin-bottom: 1.1rem; }
.ah-grid-browse { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.ah-side-block { margin-bottom: 1.5rem; }
.ah-side-title {
    cursor: pointer;
    list-style: none;
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--ah-crimson);
    margin-bottom: .6rem;
}
.ah-side-title::-webkit-details-marker { display: none; }
.ah-side-list { list-style: none; margin: 0; padding: 0; }
.ah-side-list a {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    padding: .3rem .6rem;
    border-radius: .4rem;
    color: var(--ah-text);
    text-decoration: none;
    font-size: .9rem;
}
.ah-side-list a small { color: var(--ah-text-muted); }
.ah-side-list a:hover { background: rgba(255, 255, 255, .06); }
.ah-side-list a.active { background: var(--ah-crimson); color: #fff; }
.ah-side-list a.active small { color: rgba(255, 255, 255, .8); }
.ah-side-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.ah-side-tags .ah-pill { font-size: .72rem; padding: .25rem .6rem; }
.ah-side-more { color: var(--ah-text-muted) !important; font-size: .8rem !important; }
.ah-side-tags .ah-side-more { padding: .25rem .2rem; text-decoration: none; }


/* ---------- Home hero: колаж от истински видео кадри ---------- */
.ah-hero-mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .9rem;
}
.ah-hero-tile { display: block; }
.ah-hero-tile .ah-frame { transition: transform .2s ease, box-shadow .2s ease; }
.ah-hero-tile:hover .ah-frame { transform: translateY(-3px); box-shadow: var(--ah-shadow-sm); }
