/* ============================================================
   BFLIX Theme Stylesheet
   01. Tokens & Reset
   02. Typography & Page Frame
   03. Skip Link / Notice / Drawer
   04. Topbar (header)
   05. Index (intro / prose / trending / genrehub / pillars / faq)
   06. Home (hero / quality / recommended / rails)
   07. Cards (.bf-card)
   08. Rails (.bf-rail)
   09. Lists & Filters (.bf-listhead / .bf-filters / .bf-grid)
   10. Detail page (.bf-dv)
   11. Player (.bf-pl)
   12. Episodes (.bf-eps)
   13. Trailer Modal
   14. Misc pages (404 / search / request / share / breadcrumbs)
   15. Footer
   16. Telegram popup / Banner / Helpers
   17. Responsive breakpoints
   ============================================================ */

/* 01 ---------------------------- Tokens & Reset */
:root {
    --bf-bg:        #181d2c;
    --bf-bg-2:      #131726;
    --bf-bg-3:      #0d1020;
    --bf-card:      #1f2336;
    --bf-card-2:    #262a3d;
    --bf-line:      rgba(255,255,255,0.08);
    --bf-line-2:    rgba(255,255,255,0.14);

    --bf-ink:       #e9ebf3;
    --bf-ink-2:     #b6bbcd;
    --bf-ink-3:     #7d83a3;
    --bf-mute:      #5a6181;

    --bf-accent:    #ec3964;
    --bf-accent-h:  #ff4775;
    --bf-accent-d:  #c92353;
    --bf-amber:     #f5b03d;
    --bf-mint:      #5dd9a8;

    --bf-radius-s:  4px;
    --bf-radius:    8px;
    --bf-radius-l:  14px;
    --bf-radius-xl: 22px;

    --bf-shadow:    0 8px 24px rgba(0,0,0,0.35);
    --bf-shadow-l:  0 18px 50px rgba(0,0,0,0.5);

    --bf-font-display: 'Bebas Neue', 'Inter', system-ui, sans-serif;
    --bf-font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --bf-wrap-max: 1280px;
    --bf-wrap-pad: 22px;

    --bf-h-topbar: 64px;
}

*,*::before,*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bf-bg);
    color: var(--bf-ink);
    font-family: var(--bf-font-body);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; }

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease;
}

a:hover { color: var(--bf-accent-h); }

::selection { background: var(--bf-accent); color: #fff; }

/* 02 ---------------------------- Typography & Page Frame */
h1, h2, h3, h4 {
    font-family: var(--bf-font-display);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.1;
}

h1 { font-size: clamp(28px, 5vw, 46px); letter-spacing: 0.04em; }
h2 { font-size: clamp(22px, 3vw, 30px); letter-spacing: 0.05em; }
h3 { font-size: 20px; letter-spacing: 0.04em; }

.bf-wrap {
    max-width: var(--bf-wrap-max);
    margin: 0 auto;
    padding: 0 var(--bf-wrap-pad);
    width: 100%;
}

.bf-main { display: block; min-height: calc(100vh - 200px); padding-top: var(--bf-h-topbar); }

.bf-page-index .bf-main,
.bf-page-home .bf-main,
.bf-page-detail .bf-main,
.bf-page-list .bf-main,
.bf-page-category .bf-main,
.bf-page-country .bf-main,
.bf-page-person .bf-main { padding-top: 0; }

.bf-section-h {
    font-size: clamp(22px, 2.4vw, 28px);
    margin: 0 0 4px;
}

.bf-section-sub {
    color: var(--bf-ink-2);
    margin: 0 0 22px;
    font-size: 14px;
}

/* 03 ---------------------------- Skip / Notice / Drawer */
.bf-skip {
    position: absolute; left: -9999px; top: 0;
    padding: 10px 18px;
    background: var(--bf-accent); color: #fff;
    border-radius: var(--bf-radius);
    z-index: 9999;
}
.bf-skip:focus { left: 12px; top: 12px; }

.bf-notice {
    background: linear-gradient(90deg, rgba(236,57,100,0.18), rgba(236,57,100,0.06));
    border-bottom: 1px solid rgba(236,57,100,0.25);
    color: #fff;
    font-size: 13px;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.25s ease;
}
.bf-notice[hidden] { display: none; }
.bf-notice-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; padding: 9px 0;
}
.bf-notice-msg { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.bf-notice-msg svg { color: var(--bf-accent); flex-shrink: 0; }
.bf-notice-cta {
    background: transparent; border: 1px solid rgba(255,255,255,0.4);
    color: #fff; padding: 4px 12px; border-radius: 999px; cursor: pointer;
    font-size: 12px; font-weight: 600; text-decoration: none;
    transition: all 0.18s ease;
}
.bf-notice-cta:hover { background: var(--bf-accent); border-color: var(--bf-accent); color: #fff; }
.bf-notice-x {
    background: transparent; border: 0; color: rgba(255,255,255,0.7);
    padding: 4px; cursor: pointer; line-height: 0;
}
.bf-notice-x:hover { color: #fff; }

.bf-notice-modal { border: 0; padding: 0; background: transparent; max-width: 520px; width: 100%; }
.bf-notice-modal::backdrop { background: rgba(8,10,18,0.74); backdrop-filter: blur(6px); }
.bf-notice-modal-card {
    background: var(--bf-card); color: var(--bf-ink);
    border-radius: var(--bf-radius-l); padding: 22px;
    box-shadow: var(--bf-shadow-l);
}
.bf-notice-modal-card header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
.bf-notice-modal-x {
    background: transparent; border: 0; color: var(--bf-ink-2);
    font-size: 22px; line-height: 1; cursor: pointer;
}
.bf-notice-modal-link {
    display: inline-block; margin-top: 14px;
    color: var(--bf-accent); font-weight: 600;
}

/* Mobile drawer */
.bf-drawer {
    position: fixed; inset: 0;
    pointer-events: none; z-index: 9000;
}
.bf-drawer.bf-on { pointer-events: auto; }
.bf-drawer-scrim {
    position: absolute; inset: 0;
    background: rgba(8,10,18,0.55);
    opacity: 0; transition: opacity 0.25s ease;
    z-index: 1;
}
.bf-drawer.bf-on .bf-drawer-scrim { opacity: 1; }
.bf-drawer-inner {
    position: absolute; top: 0; right: 0;
    width: min(320px, 88vw); height: 100%;
    background: var(--bf-bg-2);
    border-left: 1px solid var(--bf-line);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    padding: 22px 22px 30px;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0,0,0,0.4);
    z-index: 2;
}
.bf-drawer.bf-on .bf-drawer-inner { transform: translateX(0); }
.bf-drawer-close {
    background: transparent; border: 0; color: var(--bf-ink-2);
    margin-bottom: 14px; cursor: pointer; padding: 4px;
}
.bf-drawer-search {
    display: flex; align-items: center; gap: 8px;
    background: var(--bf-card); border-radius: 999px;
    padding: 10px 14px; margin-bottom: 18px;
    border: 1px solid var(--bf-line);
}
.bf-drawer-search svg { color: var(--bf-ink-3); flex-shrink: 0; }
.bf-drawer-search input {
    background: transparent; border: 0; color: var(--bf-ink);
    flex: 1; outline: none; font-size: 14px;
}
.bf-drawer-nav { display: flex; flex-direction: column; gap: 2px; }
.bf-drawer-nav a {
    padding: 12px 14px; border-radius: var(--bf-radius);
    color: var(--bf-ink); font-weight: 500;
}
.bf-drawer-nav a:hover { background: var(--bf-card); color: #fff; }


/* 04 ---------------------------- Topbar */
.bf-topbar {
    position: absolute; top: 0; left: 0; right: 0;
    z-index: 800;
    background: transparent;
    height: var(--bf-h-topbar);
    display: flex; align-items: center;
}
.bf-page-index .bf-topbar,
.bf-page-home  .bf-topbar {
    background: transparent;
    border-bottom: 0;
}
.bf-topbar-row {
    display: flex; align-items: center;
    width: 100%;
    justify-content: center;
    position: relative;
}
.bf-mark {
    position: absolute; left: var(--bf-wrap-pad);
    display: inline-flex; align-items: center;
    gap: 8px; flex-shrink: 0;
}
.bf-mark img { height: 34px; width: auto; }

.bf-topnav { flex: none; }
.bf-topnav ul {
    display: flex; align-items: center; gap: 6px;
    list-style: none; margin: 0; padding: 0;
}
.bf-topnav a {
    display: inline-block; padding: 8px 14px;
    color: #fff; font-size: 14px;
    font-weight: 600; letter-spacing: 0.02em;
    border-radius: var(--bf-radius);
    text-shadow: 0 1px 6px rgba(0,0,0,0.65), 0 0 14px rgba(0,0,0,0.45);
    transition: color 0.18s ease, background 0.18s ease;
}
.bf-topnav a:hover { color: var(--bf-accent-h); background: rgba(255,255,255,0.08); }

.bf-topbar-act {
    position: absolute; right: var(--bf-wrap-pad);
    display: flex; align-items: center; gap: 6px;
    flex-shrink: 0;
}
.bf-icobtn {
    width: 38px; height: 38px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(4px);
    transition: background 0.18s ease, color 0.18s ease;
}
.bf-icobtn:hover { background: var(--bf-accent); color: #fff; }
.bf-icobtn--user {
    background: rgba(0,0,0,0.45);
    color: #fff;
}

.bf-randombtn {
    display: inline-flex; align-items: center; gap: 6px;
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 13px; font-weight: 600;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 6px rgba(0,0,0,0.65);
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.bf-randombtn:hover {
    background: var(--bf-accent);
    color: #fff;
    transform: translateY(-1px);
}
.bf-randombtn svg { color: currentColor; flex-shrink: 0; }

.bf-burger {
    display: none;
    flex-direction: column; gap: 4px;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(4px);
    border: 0; padding: 9px;
    border-radius: 50%;
    width: 38px; height: 38px;
    align-items: center; justify-content: center;
    cursor: pointer;
}
.bf-burger span {
    display: block; width: 18px; height: 2px;
    background: #fff; border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* 05 ---------------------------- Index page */
.bf-page-index { background: var(--bf-bg-3); }

.bf-intro {
    position: relative;
    min-height: clamp(420px, 70vh, 620px);
    overflow: hidden;
    background: var(--bf-bg-3);
    margin-top: calc(-1 * var(--bf-h-topbar));
    padding-top: var(--bf-h-topbar);
    isolation: isolate;
}
.bf-intro::before {
    content: '';
    position: absolute; inset: 0;
    background: var(--bf-intro-bg) center / cover no-repeat;
    z-index: 0;
}
.bf-intro-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(13,16,32,0.25) 0%, rgba(13,16,32,0.55) 70%, var(--bf-bg-3) 100%);
    z-index: 1;
}
.bf-intro-inner {
    position: relative; z-index: 2;
    text-align: center;
    padding: clamp(60px, 10vh, 120px) var(--bf-wrap-pad) 80px;
    display: flex; flex-direction: column; align-items: center;
    gap: 14px;
}

.bf-intro-title {
    font-family: var(--bf-font-body);
    font-weight: 700;
    font-size: clamp(28px, 4.4vw, 44px);
    letter-spacing: -0.01em;
    line-height: 1.18;
    margin: 0;
    text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.bf-intro-sub {
    color: rgba(255,255,255,0.78);
    font-size: clamp(14px, 1.4vw, 16px);
    margin: 0 0 14px;
    max-width: 620px;
}

.bf-intro-search {
    display: flex; align-items: center;
    background: #fff;
    border: 0;
    border-radius: var(--bf-radius);
    width: min(680px, 100%);
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.3);
}
.bf-intro-search-filter {
    display: none;
}
.bf-intro-search input {
    flex: 1; min-width: 0;
    background: transparent; border: 0;
    color: #222; font-size: 15px;
    padding: 14px 20px; outline: none;
}
.bf-intro-search input::placeholder { color: #888; }
.bf-intro-search-go {
    background: var(--bf-accent); border: 0;
    color: #fff;
    padding: 14px 22px; cursor: pointer; line-height: 0;
    transition: background 0.15s ease;
    flex-shrink: 0;
}
.bf-intro-search-go:hover { background: var(--bf-accent-h); }

.bf-intro-cta {
    display: inline-flex; align-items: center; gap: 0;
    background: linear-gradient(135deg, var(--bf-accent) 0%, var(--bf-accent-d) 100%);
    color: #fff; font-weight: 700; font-size: 14px;
    letter-spacing: 0.04em;
    padding: 0 26px 0 14px;
    height: 48px;
    border-radius: 999px;
    box-shadow:
        0 8px 24px rgba(236,57,100,0.4),
        0 0 0 0 rgba(236,57,100,0);
    margin-top: 4px;
    position: relative;
    overflow: hidden;
    animation: bf-cta-breathe 2.6s ease-in-out infinite;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.25s ease;
}
.bf-intro-cta::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-20deg);
    animation: bf-cta-sheen 3.2s ease-in-out infinite;
    pointer-events: none;
}
@keyframes bf-cta-breathe {
    0%, 100% { box-shadow: 0 8px 24px rgba(236,57,100,0.4), 0 0 0 0 rgba(236,57,100,0.4); }
    50%      { box-shadow: 0 8px 24px rgba(236,57,100,0.4), 0 0 0 14px rgba(236,57,100,0); }
}
@keyframes bf-cta-sheen {
    0%       { left: -60%; }
    60%, 100%{ left: 120%; }
}
.bf-intro-cta-ico {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #fff;
    color: var(--bf-accent);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-right: 12px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.bf-intro-cta-ico svg { transform: translateX(1px); }
.bf-intro-cta-text {
    font-family: var(--bf-font-body);
    font-weight: 700;
    color: #fff;
    transition: transform 0.25s ease;
}
.bf-intro-cta-arrow {
    display: inline-flex; align-items: center;
    width: 0; opacity: 0;
    overflow: hidden;
    margin-left: 0;
    transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.25s ease,
                margin-left 0.3s ease;
}
.bf-intro-cta:hover {
    transform: translateY(-2px) scale(1.04);
    color: #fff;
    animation: none;
    box-shadow: 0 14px 36px rgba(236,57,100,0.6);
}
.bf-intro-cta:hover .bf-intro-cta-ico {
    transform: rotate(-12deg) scale(1.08);
}
.bf-intro-cta:hover .bf-intro-cta-arrow {
    width: 18px; opacity: 1; margin-left: 8px;
}
.bf-intro-cta:active {
    transform: translateY(0) scale(1);
}

.bf-intro-quick {
    display: flex; flex-wrap: wrap; gap: 18px;
    list-style: none; margin: 18px 0 0; padding: 0;
    justify-content: center;
}
.bf-intro-quick a {
    color: rgba(255,255,255,0.65); font-size: 13px;
    font-weight: 500; letter-spacing: 0.02em;
}
.bf-intro-quick a:hover { color: #fff; }

.bf-prose {
    background: var(--bf-bg-3);
    padding: 60px 0;
}
.bf-prose-card {
    max-width: 760px; margin: 0 auto;
    color: var(--bf-ink-2);
    font-size: 14.5px; line-height: 1.85;
}
.bf-prose-card p { margin: 0 0 16px; }
.bf-prose-card p:first-child { color: var(--bf-ink); }

.bf-trending {
    background: var(--bf-bg-2);
    padding: 50px 0;
}
.bf-trending-list {
    list-style: none; margin: 24px 0 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 28px;
}
.bf-trending-list li {
    display: flex; align-items: center; gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--bf-line);
}
.bf-trending-num {
    font-family: var(--bf-font-display);
    font-size: 20px;
    color: var(--bf-accent);
    width: 28px; flex-shrink: 0;
    letter-spacing: 0;
}
.bf-trending-link {
    display: inline-flex; align-items: center; gap: 10px;
    flex: 1; min-width: 0;
    color: var(--bf-ink); font-weight: 500;
}
.bf-trending-link:hover { color: var(--bf-accent-h); }
.bf-trending-title {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    flex: 1;
}
.bf-trending-tag {
    font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
    color: var(--bf-ink-3); flex-shrink: 0;
    padding: 2px 6px; border: 1px solid var(--bf-line-2);
    border-radius: 3px;
}
.bf-trending-rating {
    color: var(--bf-amber); font-size: 12px; font-weight: 600;
    flex-shrink: 0;
}

.bf-genrehub {
    background: var(--bf-bg-3);
    padding: 50px 0;
}
.bf-genrehub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 22px;
}
.bf-genrehub-card {
    display: flex; flex-direction: column; gap: 4px;
    padding: 18px 20px;
    background: var(--bf-card);
    border: 1px solid var(--bf-line);
    border-radius: var(--bf-radius);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.bf-genrehub-card:hover {
    transform: translateY(-2px);
    border-color: var(--bf-accent);
    background: var(--bf-card-2);
    color: #fff;
}
.bf-genrehub-name {
    font-family: var(--bf-font-display);
    font-size: 18px;
    letter-spacing: 0.04em;
    color: #fff;
}
.bf-genrehub-count {
    font-size: 12px; color: var(--bf-ink-3);
}

.bf-pillars {
    background: var(--bf-bg-2);
    padding: 50px 0;
}
.bf-pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 22px;
}
.bf-pillar {
    background: var(--bf-card);
    border: 1px solid var(--bf-line);
    border-radius: var(--bf-radius-l);
    padding: 22px;
    position: relative; overflow: hidden;
}
.bf-pillar-num {
    font-family: var(--bf-font-display);
    font-size: 56px; line-height: 1;
    color: var(--bf-accent);
    opacity: 0.18;
    position: absolute; top: 8px; right: 14px;
}
.bf-pillar h3 {
    font-family: var(--bf-font-body);
    font-size: 16px; font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: 0;
}
.bf-pillar p {
    margin: 0; font-size: 13.5px;
    color: var(--bf-ink-2); line-height: 1.65;
}

.bf-faq {
    background: var(--bf-bg-3);
    padding: 50px 0 80px;
}
.bf-faq-list {
    margin-top: 22px;
    display: flex; flex-direction: column; gap: 8px;
    max-width: 800px; margin-left: auto; margin-right: auto;
}
.bf-faq-item {
    background: var(--bf-card);
    border: 1px solid var(--bf-line);
    border-radius: var(--bf-radius);
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.bf-faq-item[open] { border-color: var(--bf-accent); }
.bf-faq-item summary {
    cursor: pointer; user-select: none;
    padding: 14px 18px; padding-right: 40px;
    font-weight: 600; color: var(--bf-ink);
    list-style: none;
    position: relative;
    transition: color 0.18s ease;
}
.bf-faq-item summary::-webkit-details-marker { display: none; }
.bf-faq-item summary::after {
    content: '+';
    position: absolute; right: 16px; top: 50%;
    transform: translateY(-50%);
    font-size: 22px; line-height: 1;
    color: var(--bf-accent); font-weight: 300;
    transition: transform 0.2s ease;
}
.bf-faq-item[open] summary::after { content: '−'; }
.bf-faq-item summary:hover { color: #fff; }
.bf-faq-item p {
    margin: 0; padding: 0 18px 16px;
    color: var(--bf-ink-2); font-size: 14px;
}

/* 06 ---------------------------- Home page */
.bf-page-home { background: var(--bf-bg-3); }

.bf-hero {
    position: relative;
    background: var(--bf-bg-3);
    margin-top: calc(-1 * var(--bf-h-topbar));
    padding-top: var(--bf-h-topbar);
    overflow: hidden;
}
.bf-hero-stage {
    position: relative;
    min-height: clamp(560px, 88vh, 820px);
}
.bf-hero-slide {
    position: absolute; inset: 0;
    opacity: 0; pointer-events: none;
    transition: opacity 0.6s ease;
    display: flex; align-items: center;
    padding-bottom: 0;
}
.bf-hero-slide.bf-cur {
    opacity: 1; pointer-events: auto;
}
.bf-hero-bg {
    position: absolute; inset: 0;
    z-index: 0;
}
.bf-hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 18%;
    animation: bf-hero-pan 18s ease-out both;
}
.bf-hero-slide.bf-cur .bf-hero-bg img {
    animation: bf-hero-zoom 14s ease-out both;
}
@keyframes bf-hero-zoom {
    from { transform: scale(1.04); }
    to   { transform: scale(1.12); }
}
@keyframes bf-hero-pan {
    from { transform: scale(1); }
    to   { transform: scale(1.04); }
}
.bf-hero-fade {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(13,16,32,0.0) 55%, rgba(13,16,32,0.65) 88%, var(--bf-bg-3) 100%),
        linear-gradient(90deg, rgba(13,16,32,0.85) 0%, rgba(13,16,32,0.45) 38%, transparent 65%);
}
.bf-hero-body {
    position: relative; z-index: 1;
    width: 100%;
    max-width: var(--bf-wrap-max);
    margin: 0 auto;
    padding-top: 80px;
    opacity: 0;
    transform: translateY(20px);
    animation: bf-hero-rise 0.7s 0.15s ease-out forwards;
}
.bf-hero-slide:not(.bf-cur) .bf-hero-body { animation: none; }
@keyframes bf-hero-rise {
    to { opacity: 1; transform: translateY(0); }
}
.bf-hero-title {
    font-family: var(--bf-font-body);
    font-weight: 700;
    font-size: clamp(28px, 3.6vw, 40px);
    letter-spacing: -0.005em;
    margin: 0 0 14px;
    max-width: 720px;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0,0,0,0.6);
    line-height: 1.15;
}
.bf-hero-meta {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 18px;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.78);
    font-size: 13px;
    font-weight: 500;
}
.bf-hero-imdb {
    display: inline-flex; align-items: center;
    background: #f5c518;
    color: #000;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.04em;
    padding: 3px 7px;
    border-radius: 3px;
    line-height: 1.2;
}
.bf-hero-quality {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 3px;
    line-height: 1.2;
}
.bf-hero-meta-bit {
    color: rgba(255,255,255,0.78);
    font-size: 13px;
    background: transparent;
    padding: 0;
    border-radius: 0;
}
.bf-hero-acts { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.bf-hero-act {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.bf-hero-act--play {
    background: var(--bf-accent); color: #fff;
    box-shadow: 0 6px 18px rgba(236,57,100,0.35);
    border: 0;
}
.bf-hero-act--play:hover {
    background: var(--bf-accent-h); color: #fff;
    transform: translateY(-1px);
}
.bf-hero-act--info {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.85);
    padding: 8px 22px;
}
.bf-hero-act--info:hover {
    background: #fff;
    color: #0d1020;
}
.bf-hero-act-plus {
    font-size: 16px;
    line-height: 0;
    font-weight: 400;
    margin-right: 2px;
}

.bf-hero-rail-wrap {
    position: absolute;
    right: var(--bf-wrap-pad);
    bottom: 38px;
    z-index: 2;
    max-width: 60%;
    pointer-events: none;
    opacity: 0;
    transform: translateY(28px);
    animation: bf-hero-rail-slide 0.7s 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes bf-hero-rail-slide {
    to { opacity: 1; transform: translateY(0); }
}
.bf-hero-rail {
    display: flex; gap: 8px;
    overflow-x: auto;
    padding: 6px 4px 12px;
    scrollbar-width: none;
    pointer-events: auto;
    justify-content: flex-end;
}
.bf-hero-rail::-webkit-scrollbar { display: none; }
.bf-hero-thumb {
    flex-shrink: 0;
    width: 70px; height: 105px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: var(--bf-radius);
    overflow: hidden; cursor: pointer; padding: 0;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.25s ease,
                box-shadow 0.32s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(40px) scale(0.92);
    animation: bf-thumb-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.bf-hero-thumb:nth-child(1) { animation-delay: 0.55s; }
.bf-hero-thumb:nth-child(2) { animation-delay: 0.65s; }
.bf-hero-thumb:nth-child(3) { animation-delay: 0.75s; }
.bf-hero-thumb:nth-child(4) { animation-delay: 0.85s; }
.bf-hero-thumb:nth-child(5) { animation-delay: 0.95s; }
.bf-hero-thumb:nth-child(6) { animation-delay: 1.05s; }
.bf-hero-thumb:nth-child(7) { animation-delay: 1.15s; }
.bf-hero-thumb:nth-child(8) { animation-delay: 1.25s; }
@keyframes bf-thumb-rise {
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.bf-hero-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.bf-hero-thumb:hover {
    transform: translateY(-8px) scale(1.06);
    border-color: rgba(255,255,255,0.6);
    box-shadow: 0 14px 28px rgba(0,0,0,0.6);
    z-index: 3;
}
.bf-hero-thumb:hover img { transform: scale(1.08); }
.bf-hero-thumb.bf-cur {
    border-color: var(--bf-accent);
    transform: translateY(-10px) scale(1.08);
    box-shadow: 0 16px 32px rgba(236,57,100,0.45);
}
.bf-hero-thumb.bf-cur::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 2px var(--bf-accent);
    border-radius: var(--bf-radius);
    pointer-events: none;
}

.bf-recq,
.bf-quality { display: none; }

.bf-recommended {
    background: var(--bf-bg-3);
    padding: 40px 0 50px;
}
.bf-rec-tabs {
    display: flex; align-items: stretch;
    gap: 12px;
    margin: 0 auto 30px;
    justify-content: center;
    flex-wrap: wrap;
}
.bf-rec-tab {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 10px;
    min-width: 180px;
    padding: 14px 28px;
    background: var(--bf-card);
    border: 0;
    border-radius: 999px;
    color: var(--bf-ink-2);
    font-family: inherit;
    font-size: 15px; font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all 0.2s ease;
}
.bf-rec-tab:hover {
    background: var(--bf-card-2);
    color: #fff;
    transform: translateY(-1px);
}
.bf-rec-tab.bf-on {
    background: var(--bf-accent);
    color: #fff;
    box-shadow: 0 8px 22px rgba(236,57,100,0.4);
}
.bf-rec-tab.bf-on:hover {
    background: var(--bf-accent-h);
    color: #fff;
}
.bf-rec-tab-ico {
    display: inline-flex; align-items: center;
    line-height: 0;
}
[data-bf-rec-pane] { display: grid; }
.bf-shown-off { display: none !important; }

.bf-rail-section {
    background: var(--bf-bg-3);
    padding: 30px 0 22px;
}
.bf-rail-section + .bf-rail-section { padding-top: 14px; }
.bf-rail-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; gap: 14px;
}
.bf-rail-h {
    margin: 0;
    font-family: var(--bf-font-display);
    font-size: clamp(20px, 2.4vw, 26px);
    letter-spacing: 0.04em;
    color: #fff;
}
.bf-rail-all {
    color: var(--bf-accent);
    font-size: 12px; font-weight: 600;
    flex-shrink: 0;
}
.bf-rail-all:hover { color: var(--bf-accent-h); }

/* 07 ---------------------------- Cards */
.bf-card {
    position: relative;
    background: transparent;
}
.bf-card-link {
    display: block;
    color: inherit;
}
.bf-card-figure {
    position: relative;
    margin: 0 0 8px;
    border-radius: var(--bf-radius);
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: var(--bf-card);
    box-shadow: var(--bf-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.bf-card:hover .bf-card-figure {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.55);
}
.bf-card-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.bf-card:hover .bf-card-img { transform: scale(1.04); }

.bf-card-pill {
    position: absolute;
    font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
    padding: 3px 7px;
    border-radius: 3px;
    line-height: 1.2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.bf-card-pill--quality {
    top: 8px; right: 8px;
    background: var(--bf-mint); color: #0d1020;
}
.bf-card-pill--episode {
    top: 8px; left: 8px;
    background: var(--bf-accent); color: #fff;
}
.bf-card-pill--rating {
    bottom: 8px; left: 8px;
    background: rgba(0,0,0,0.7); color: var(--bf-amber);
    display: inline-flex; align-items: center; gap: 3px;
    backdrop-filter: blur(4px);
}

.bf-card-veil {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.7));
    opacity: 0;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.22s ease;
}
.bf-card:hover .bf-card-veil { opacity: 1; }
.bf-card-play {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--bf-accent);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(236,57,100,0.5);
    transform: scale(0.85);
    transition: transform 0.22s ease;
}
.bf-card:hover .bf-card-play { transform: scale(1); }

.bf-card-cap { padding: 0 2px; }
.bf-card-title {
    font-family: var(--bf-font-body);
    font-size: 14px; font-weight: 600;
    color: var(--bf-ink); margin: 0 0 4px;
    line-height: 1.35;
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    letter-spacing: 0;
    transition: color 0.18s ease;
}
.bf-card:hover .bf-card-title { color: var(--bf-accent); }
.bf-card-meta {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    font-size: 11.5px;
    color: var(--bf-ink-3);
}
.bf-card-meta-sep { color: var(--bf-mute); }
.bf-card-meta-tag {
    margin-left: auto;
    font-size: 9.5px; font-weight: 700;
    letter-spacing: 0.08em;
    padding: 2px 5px; border-radius: 3px;
    background: var(--bf-card-2);
    color: var(--bf-ink-2);
}
.bf-card-meta-tag--tv { background: rgba(236,57,100,0.18); color: var(--bf-accent); }
.bf-card-meta-tag--movie { background: rgba(93,217,168,0.16); color: var(--bf-mint); }


/* 08 ---------------------------- Rails */
.bf-rail {
    position: relative;
}
.bf-rail-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 1fr);
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 2px 16px;
    scrollbar-width: none;
}
.bf-rail-track::-webkit-scrollbar { display: none; }
.bf-rail-track > * { scroll-snap-align: start; }

@media (min-width: 700px)  { .bf-rail-track { grid-auto-columns: minmax(160px, 1fr); } }
@media (min-width: 1024px) { .bf-rail-track { grid-auto-columns: minmax(170px, 1fr); } }

.bf-rail-arrow {
    position: absolute; top: calc(50% - 24px);
    transform: translateY(-50%);
    width: 38px; height: 56px;
    background: rgba(13,16,32,0.78);
    border: 1px solid var(--bf-line-2);
    border-radius: var(--bf-radius);
    color: #fff; cursor: pointer;
    z-index: 3;
    display: inline-flex;
    align-items: center; justify-content: center;
    backdrop-filter: blur(6px);
    transition: background 0.18s ease;
}
.bf-rail-arrow:hover { background: var(--bf-accent); border-color: var(--bf-accent); }
.bf-rail-arrow--prev { left: -10px; }
.bf-rail-arrow--next { right: -10px; }

/* 09 ---------------------------- Lists / Filters / Grid */
.bf-listhead {
    background: var(--bf-bg-3);
    padding: 20px 0 14px;
}
.bf-listhead--person { padding-top: 60px; }
.bf-listhead-eyebrow {
    color: var(--bf-accent);
    font-size: 12px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    margin: 0 0 4px;
}
.bf-listhead-h {
    font-family: var(--bf-font-display);
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: 0.04em;
    margin: 0 0 4px;
}
.bf-listhead-sub {
    color: var(--bf-ink-2);
    margin: 0;
    font-size: 14px;
    max-width: 720px;
}

.bf-filters {
    background: var(--bf-bg-3);
    padding: 16px 0 8px;
    border-bottom: 1px solid var(--bf-line);
}
.bf-filters-row {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 6px; padding: 6px 0;
    border-bottom: 1px dashed var(--bf-line);
}
.bf-filters-row:last-child { border-bottom: 0; }
.bf-filters-tag {
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--bf-ink-3);
    padding-right: 6px; margin-right: 4px;
    flex-shrink: 0;
    min-width: 50px;
}

.bf-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px;
    background: var(--bf-card);
    border: 1px solid var(--bf-line);
    border-radius: 999px;
    color: var(--bf-ink-2);
    font-size: 12.5px; font-weight: 500;
    cursor: pointer;
    transition: all 0.18s ease;
    text-decoration: none;
    user-select: none;
}
.bf-pill:hover {
    background: var(--bf-card-2);
    color: #fff;
    border-color: var(--bf-line-2);
}
.bf-pill.bf-on {
    background: var(--bf-accent);
    color: #fff;
    border-color: var(--bf-accent);
    box-shadow: 0 4px 12px rgba(236,57,100,0.3);
}
.bf-pill.bf-on:hover { background: var(--bf-accent-h); color: #fff; }

.bf-popdown {
    position: relative;
}
.bf-popdown[open] .bf-popdown-trigger { background: var(--bf-card-2); color: #fff; }
.bf-popdown-trigger {
    list-style: none; cursor: pointer;
}
.bf-popdown-trigger::-webkit-details-marker { display: none; }
.bf-popdown-menu {
    position: absolute; top: calc(100% + 6px); left: 0;
    background: var(--bf-card);
    border: 1px solid var(--bf-line-2);
    border-radius: var(--bf-radius);
    padding: 6px;
    min-width: 200px;
    max-height: 320px; overflow-y: auto;
    z-index: 50;
    box-shadow: var(--bf-shadow);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
}
.bf-popdown-menu a {
    padding: 7px 10px;
    border-radius: var(--bf-radius-s);
    color: var(--bf-ink-2);
    font-size: 13px;
    transition: background 0.15s ease;
}
.bf-popdown-menu a:hover { background: var(--bf-card-2); color: #fff; }
.bf-popdown-menu a.bf-on { background: var(--bf-accent); color: #fff; }

.bf-listgrid {
    background: var(--bf-bg-3);
    padding: 30px 0 60px;
}
.bf-grid {
    display: grid; gap: 22px 14px;
    grid-template-columns: repeat(2, 1fr);
}
.bf-grid--posters {
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 480px) { .bf-grid--posters { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .bf-grid--posters { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 960px) { .bf-grid--posters { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1200px) { .bf-grid--posters { grid-template-columns: repeat(6, 1fr); } }

.bf-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--bf-card);
    border-radius: var(--bf-radius-l);
    border: 1px solid var(--bf-line);
}
.bf-empty h2 {
    font-family: var(--bf-font-body);
    font-weight: 700; font-size: 20px;
    margin: 0 0 8px; letter-spacing: 0;
}
.bf-empty p {
    color: var(--bf-ink-2); margin: 0 0 18px;
}
.bf-empty-acts {
    display: flex; gap: 8px; flex-wrap: wrap;
    justify-content: center;
}

/* Filter bar (movie-list / series-list) */
.bf-filterbar {
    background: var(--bf-bg-3);
    padding: 6px 0 20px;
    border-bottom: 0;
}
.bf-filterbar-row {
    display: flex; flex-wrap: wrap; gap: 10px;
    align-items: center;
}
.bf-filterbar-drop {
    position: relative;
}
.bf-filterbar-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    background: rgba(100, 80, 180, 0.22);
    border: 1px solid rgba(140, 120, 220, 0.35);
    border-radius: 999px;
    color: #fff;
    font-size: 13px; font-weight: 500;
    cursor: pointer;
    list-style: none;
    transition: background 0.18s ease, border-color 0.18s ease;
}
.bf-filterbar-btn::-webkit-details-marker { display: none; }
.bf-filterbar-btn:hover {
    background: rgba(140, 120, 220, 0.35);
    border-color: rgba(180, 160, 255, 0.5);
}
.bf-filterbar-btn svg { color: rgba(255,255,255,0.7); flex-shrink: 0; }
.bf-filterbar-val {
    color: rgba(255,255,255,0.6);
    font-weight: 400;
}
.bf-filterbar-drop[open] .bf-filterbar-btn {
    background: rgba(140, 120, 220, 0.4);
    border-color: rgba(180, 160, 255, 0.6);
}
.bf-filterbar-menu {
    position: absolute; top: calc(100% + 8px); left: 0;
    background: var(--bf-card);
    border: 1px solid var(--bf-line-2);
    border-radius: var(--bf-radius);
    padding: 8px;
    min-width: 220px;
    max-height: 320px; overflow-y: auto;
    z-index: 60;
    box-shadow: var(--bf-shadow-l);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
}
.bf-filterbar-menu--narrow {
    grid-template-columns: 1fr;
    min-width: 160px;
}
.bf-filterbar-menu a {
    padding: 8px 12px;
    border-radius: var(--bf-radius-s);
    color: var(--bf-ink-2);
    font-size: 13px;
    transition: background 0.15s ease, color 0.15s ease;
}
.bf-filterbar-menu a:hover { background: var(--bf-card-2); color: #fff; }
.bf-filterbar-menu a.bf-on { background: var(--bf-accent); color: #fff; }

/* Pagination (cinematic style) */
.pagination {
    margin: 40px 0 0;
}
.pagination__list {
    list-style: none; padding: 0; margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.pagination__item {
    display: inline-flex;
}
.pagination__link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px;
    padding: 0 12px;
    background: rgba(100, 80, 180, 0.25);
    border: 0;
    border-radius: 50%;
    color: rgba(255,255,255,0.6);
    font-size: 14px; font-weight: 500;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.pagination__link:hover {
    background: rgba(140, 120, 220, 0.45);
    color: #fff;
    transform: scale(1.08);
}
.pagination__link--active {
    background: var(--bf-accent);
    color: #fff;
    box-shadow: 0 6px 18px rgba(236,57,100,0.45);
    font-weight: 700;
}
.pagination__link--active:hover {
    background: var(--bf-accent-h);
    color: #fff;
}
.pagination__ellipsis {
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    padding: 0 4px;
}

.bf-country-tabs {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-top: 14px;
}


/* 10 ---------------------------- Detail page */
.bf-page-detail { background: var(--bf-bg-3); }

.bf-dv-back {
    position: absolute; left: 0; right: 0; top: 0;
    height: clamp(420px, 60vh, 620px);
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}
.bf-dv-back img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
}
.bf-dv-back-mask {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(13,16,32,0.55) 0%, rgba(13,16,32,0.78) 60%, var(--bf-bg-3) 100%),
        linear-gradient(90deg, rgba(13,16,32,0.6) 0%, rgba(13,16,32,0.2) 50%, rgba(13,16,32,0.6) 100%);
}

.bf-dv {
    position: relative;
    z-index: 1;
    padding: clamp(40px, 8vh, 80px) 0 50px;
}
.bf-dv-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    align-items: start;
}
.bf-dv-poster {
    display: flex; flex-direction: column;
    gap: 10px;
}
.bf-dv-poster-frame {
    position: relative;
    border-radius: var(--bf-radius-l);
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: var(--bf-card);
    box-shadow: var(--bf-shadow-l);
    border: 1px solid var(--bf-line-2);
}
.bf-dv-poster-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.bf-dv-poster-rating {
    position: absolute; top: 10px; right: 10px;
    background: rgba(0,0,0,0.78);
    color: var(--bf-amber);
    font-size: 12px; font-weight: 700;
    padding: 4px 8px; border-radius: 999px;
    backdrop-filter: blur(4px);
}

.bf-dv-cta {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 10px;
    padding: 15px 18px;
    border-radius: var(--bf-radius-l);
    font-size: 15px; font-weight: 600;
    cursor: pointer;
    border: 0;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    text-decoration: none;
    width: 100%;
    position: relative;
    overflow: hidden;
}
.bf-dv-cta--play {
    background: linear-gradient(135deg, var(--bf-accent) 0%, var(--bf-accent-d) 100%);
    color: #fff;
    box-shadow:
        0 8px 24px rgba(236,57,100,0.4),
        0 0 0 0 rgba(236,57,100,0);
    animation: bf-cta-pulse 2.5s ease-in-out infinite;
}
@keyframes bf-cta-pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(236,57,100,0.4), 0 0 0 0 rgba(236,57,100,0.3); }
    50% { box-shadow: 0 8px 24px rgba(236,57,100,0.4), 0 0 0 8px rgba(236,57,100,0); }
}
.bf-dv-cta--play::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: bf-cta-shine 3s ease-in-out infinite;
}
@keyframes bf-cta-shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}
.bf-dv-cta--play:hover {
    background: linear-gradient(135deg, var(--bf-accent-h) 0%, var(--bf-accent) 100%);
    color: #fff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 32px rgba(236,57,100,0.55), 0 0 0 0 rgba(236,57,100,0);
    animation: none;
}
.bf-dv-cta--latest {
    background: var(--bf-card-2); color: var(--bf-ink);
    border: 1px solid var(--bf-line-2);
    width: 100%;
}
.bf-dv-cta--latest:hover { background: var(--bf-card); color: #fff; border-color: var(--bf-accent); transform: translateY(-2px); }
.bf-dv-cta--trailer {
    background: transparent; color: var(--bf-ink-2);
    border: 1px solid var(--bf-line-2);
    width: 100%;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.bf-dv-cta--trailer:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.05);
    transform: translateY(-2px);
}

.bf-dv-body {
    min-width: 0;
}
.bf-dv-flags {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 14px;
}
.bf-dv-flag {
    font-size: 10.5px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 4px 9px; border-radius: 3px;
    line-height: 1.2;
}
.bf-dv-flag--type { background: var(--bf-accent); color: #fff; }
.bf-dv-flag--quality { background: var(--bf-mint); color: #0d1020; }
.bf-dv-flag--status {
    background: rgba(245,176,61,0.16); color: var(--bf-amber);
    border: 1px solid rgba(245,176,61,0.4);
}
.bf-dv-flag--rating {
    background: rgba(0,0,0,0.5); color: var(--bf-amber);
    display: inline-flex; align-items: center; gap: 4px;
    border: 1px solid rgba(245,176,61,0.4);
}

.bf-dv-title {
    font-family: var(--bf-font-display);
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: 0.03em;
    margin: 0 0 6px;
    line-height: 1.05;
    text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.bf-dv-altname {
    color: var(--bf-ink-3);
    font-style: italic;
    margin: 0 0 14px;
    font-size: 14px;
}

.bf-dv-meta {
    list-style: none; padding: 0;
    display: flex; flex-wrap: wrap;
    gap: 6px 0;
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--bf-ink-2);
    align-items: center;
}
.bf-dv-meta li {
    padding: 0 12px;
    border-right: 1px solid var(--bf-line-2);
}
.bf-dv-meta li:first-child { padding-left: 0; }
.bf-dv-meta li:last-child { border-right: 0; }
.bf-dv-meta a { color: var(--bf-accent); }
.bf-dv-meta a:hover { color: var(--bf-accent-h); }

.bf-dv-tags {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 18px;
}
.bf-dv-tag {
    padding: 5px 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--bf-line);
    border-radius: 999px;
    color: var(--bf-ink);
    font-size: 12.5px;
    transition: all 0.18s ease;
}
.bf-dv-tag:hover {
    background: var(--bf-accent);
    border-color: var(--bf-accent);
    color: #fff;
}

.bf-dv-mobile-acts {
    display: none;
    flex-wrap: wrap; gap: 8px;
    margin-bottom: 18px;
}

.bf-dv-overview {
    color: var(--bf-ink-2);
    font-size: 14.5px;
    line-height: 1.75;
    margin: 0 0 22px;
    max-width: 760px;
}

.bf-dv-facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 28px;
    margin: 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--bf-line);
}
.bf-dv-fact { margin: 0; }
.bf-dv-fact dt {
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--bf-ink-3);
    margin-bottom: 4px;
}
.bf-dv-fact dd {
    margin: 0;
    color: var(--bf-ink);
    font-size: 13.5px;
}
.bf-dv-fact dd a {
    color: var(--bf-ink);
    border-bottom: 1px dashed transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.bf-dv-fact dd a:hover {
    color: var(--bf-accent);
    border-bottom-color: var(--bf-accent);
}
.bf-dv-fact--cast {
    grid-column: 1 / -1;
}

/* 11 ---------------------------- Player */
.bf-pl {
    background: var(--bf-bg-2);
    padding: 36px 0;
    border-top: 1px solid var(--bf-line);
}
.bf-pl--hidden {
    display: none;
}
.bf-pl--hidden.bf-pl--visible {
    display: block;
}
.bf-pl-head {
    margin-bottom: 18px;
}
.bf-pl-h {
    font-family: var(--bf-font-body);
    font-size: 18px; font-weight: 700;
    margin: 0 0 4px;
    color: #fff;
    letter-spacing: 0;
}
.bf-pl-sub {
    margin: 0;
    color: var(--bf-ink-3);
    font-size: 13px;
}

.bf-pl-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--bf-radius-l);
    overflow: hidden;
    box-shadow: var(--bf-shadow-l);
}
.bf-pl-curtain {
    position: absolute; inset: 0;
    z-index: 10;
    cursor: pointer;
}
.bf-pl-poster {
    position: absolute; inset: 0;
    cursor: pointer;
    z-index: 1;
    background: #000;
}
.bf-pl-poster img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.55;
    transition: opacity 0.25s ease;
}
.bf-pl-poster:hover img { opacity: 0.7; }
.bf-pl-launch {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 88px; height: 88px;
    border-radius: 50%;
    background: var(--bf-accent);
    color: #fff;
    border: 4px solid rgba(255,255,255,0.92);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 14px 40px rgba(236,57,100,0.55);
    transition: transform 0.2s ease, background 0.2s ease;
}
.bf-pl-launch:hover {
    background: var(--bf-accent-h);
    transform: translate(-50%, -50%) scale(1.06);
}
.bf-pl-iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    background: #000;
    border: 0;
    z-index: 2;
}

.bf-pl-loading {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 5;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 12px;
    color: #fff;
}
.bf-pl-spin {
    width: 36px; height: 36px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: var(--bf-accent);
    border-radius: 50%;
    animation: bf-spin 0.8s linear infinite;
}
@keyframes bf-spin { to { transform: rotate(360deg); } }

.bf-pl-srvbar {
    display: flex; align-items: center; gap: 12px;
    margin-top: 16px;
    padding: 12px 14px;
    background: var(--bf-card);
    border: 1px solid var(--bf-line);
    border-radius: var(--bf-radius);
    flex-wrap: wrap;
}
.bf-pl-srvbar-label {
    font-size: 12px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--bf-ink-3);
    flex-shrink: 0;
}
.bf-pl-srvtabs {
    display: flex; gap: 6px;
    flex-wrap: wrap; flex: 1;
}
.bf-pl-srv {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 12px;
    background: var(--bf-card-2);
    border: 1px solid var(--bf-line);
    border-radius: var(--bf-radius);
    color: var(--bf-ink-2);
    font-size: 12.5px; font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}
.bf-pl-srv:hover {
    color: #fff; border-color: var(--bf-line-2);
}
.bf-pl-srv.bf-on {
    background: var(--bf-accent); color: #fff;
    border-color: var(--bf-accent);
}
.bf-pl-srv-i {
    font-size: 10px; font-weight: 700;
    background: rgba(255,255,255,0.12);
    padding: 1px 5px; border-radius: 3px;
    min-width: 16px; text-align: center;
}
.bf-pl-srv.bf-on .bf-pl-srv-i { background: rgba(255,255,255,0.25); }

.bf-pl-epnav {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding: 10px 14px;
    background: var(--bf-card);
    border: 1px solid var(--bf-line);
    border-radius: var(--bf-radius);
}
.bf-pl-epnav-btn {
    background: var(--bf-card-2); border: 1px solid var(--bf-line);
    color: var(--bf-ink); padding: 8px 14px;
    border-radius: var(--bf-radius);
    font-size: 12.5px; font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}
.bf-pl-epnav-btn:not(:disabled):hover {
    background: var(--bf-accent); border-color: var(--bf-accent); color: #fff;
}
.bf-pl-epnav-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.bf-pl-epnav-now {
    color: var(--bf-ink-2);
    font-size: 12.5px; font-weight: 500;
}

.bf-pl-report {
    margin-top: 14px;
}
.bf-pl-report-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    background: transparent; border: 0;
    color: var(--bf-ink-3);
    font-size: 12px; cursor: pointer;
    padding: 6px 0;
    transition: color 0.15s ease;
}
.bf-pl-report-toggle:hover { color: var(--bf-accent); }
.bf-pl-report-form {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 8px;
    padding: 12px;
    background: var(--bf-card);
    border: 1px solid var(--bf-line);
    border-radius: var(--bf-radius);
}
.bf-pl-report-form select,
.bf-pl-report-form .bf-pl-report-text {
    background: var(--bf-bg-2);
    border: 1px solid var(--bf-line);
    border-radius: var(--bf-radius-s);
    color: var(--bf-ink);
    padding: 8px 10px;
    font-size: 13px;
    flex: 1; min-width: 140px;
    font-family: inherit;
    outline: none;
}
.bf-pl-report-form select:focus,
.bf-pl-report-form .bf-pl-report-text:focus { border-color: var(--bf-accent); }
.bf-pl-report-text { resize: vertical; }
.bf-pl-report-submit {
    background: var(--bf-accent); border: 0;
    color: #fff; font-weight: 600;
    padding: 8px 18px;
    border-radius: var(--bf-radius-s);
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s ease;
}
.bf-pl-report-submit:hover { background: var(--bf-accent-h); }

/* 12 ---------------------------- Episodes */
.bf-eps {
    background: var(--bf-bg-3);
    padding: 40px 0 50px;
}
.bf-eps--hidden {
    display: none;
}
.bf-eps-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap;
    margin-bottom: 18px;
}
.bf-eps-tools {
    display: flex; align-items: center; gap: 10px;
    flex-wrap: wrap;
}
.bf-eps-season {
    background: var(--bf-card);
    border: 1px solid var(--bf-line-2);
    border-radius: var(--bf-radius);
    color: var(--bf-ink);
    padding: 9px 12px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    outline: none;
}
.bf-eps-season:focus { border-color: var(--bf-accent); }

.bf-eps-find {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--bf-card);
    border: 1px solid var(--bf-line);
    border-radius: var(--bf-radius);
    padding: 8px 12px;
}
.bf-eps-find svg { color: var(--bf-ink-3); flex-shrink: 0; }
.bf-eps-find input {
    background: transparent; border: 0;
    color: var(--bf-ink);
    font-size: 13px;
    width: 180px; outline: none;
}

.bf-eps-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
}
.bf-ep-row {
    display: flex; align-items: center; justify-content: center;
    background: var(--bf-card);
    border: 1px solid var(--bf-line);
    border-radius: var(--bf-radius);
    color: var(--bf-ink);
    padding: 14px 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    position: relative;
    min-height: 56px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
}
.bf-ep-row .bf-ep-num {
    font-family: var(--bf-font-display);
    font-size: 18px;
    letter-spacing: 0.04em;
}
.bf-ep-row .bf-ep-title { display: none; }
.bf-ep-row .bf-ep-ico { display: none; }
.bf-ep-row:not(.bf-ep-row--upcoming):hover {
    background: var(--bf-accent);
    border-color: var(--bf-accent);
    color: #fff;
    transform: translateY(-1px);
}
.bf-ep-row--active {
    background: var(--bf-accent) !important;
    border-color: var(--bf-accent) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(236,57,100,0.4);
}
.bf-ep-row--upcoming {
    background: var(--bf-bg-2);
    color: var(--bf-ink-3);
    cursor: not-allowed;
}
.bf-ep-row--upcoming .bf-ep-num { color: var(--bf-mute); }
.bf-eps-empty {
    color: var(--bf-ink-3);
    text-align: center;
    padding: 30px;
    grid-column: 1 / -1;
}

.bf-sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* 13 ---------------------------- Trailer Modal */
.bf-trailer-modal {
    position: fixed; inset: 0;
    background: rgba(8,10,18,0.85);
    backdrop-filter: blur(8px);
    z-index: 9500;
    display: none;
    align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.bf-trailer-modal.bf-shown {
    display: flex; opacity: 1;
}
.bf-trailer-card {
    position: relative;
    width: min(960px, 100%);
    background: #000;
    border-radius: var(--bf-radius-l);
    overflow: hidden;
    box-shadow: var(--bf-shadow-l);
    border: 1px solid var(--bf-line-2);
}
.bf-trailer-close {
    position: absolute; top: 10px; right: 10px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    border: 1px solid var(--bf-line-2);
    color: #fff;
    cursor: pointer;
    z-index: 10;
    display: inline-flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
    transition: background 0.15s ease;
}
.bf-trailer-close:hover { background: var(--bf-accent); border-color: var(--bf-accent); }
.bf-trailer-frame {
    position: relative;
    aspect-ratio: 16 / 9;
}
.bf-trailer-frame iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0;
}


/* 14 ---------------------------- Misc pages */

/* Breadcrumbs */
.bf-crumbs {
    position: relative;
    z-index: 2;
    background: var(--bf-bg-3);
    padding: 10px 0;
    padding-top: calc(var(--bf-h-topbar) + 10px);
    border-bottom: 0;
    font-size: 12.5px;
}
.bf-page-detail .bf-crumbs {
    background: transparent;
    padding: 8px 0;
    padding-top: calc(var(--bf-h-topbar) + 8px);
}
.bf-page-index .bf-crumbs,
.bf-page-home .bf-crumbs {
    display: none;
}
.bf-crumbs-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-wrap: wrap;
    align-items: center;
    color: var(--bf-ink-3);
}
.bf-crumbs-item {
    display: inline-flex; align-items: center;
}
.bf-crumbs-item a {
    color: var(--bf-ink-2);
    transition: color 0.15s ease;
}
.bf-crumbs-item a:hover { color: var(--bf-accent); }
.bf-crumbs-item:last-child span {
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 280px;
}
.bf-crumbs-sep {
    margin: 0 8px;
    color: var(--bf-mute);
}

/* Search */
.bf-page-search { background: var(--bf-bg-3); }
.bf-srhero {
    background: var(--bf-bg-3);
    padding: 30px 0 26px;
    border-bottom: 0;
    position: relative;
    overflow: hidden;
}
.bf-srhero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top left, rgba(236,57,100,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(140,120,220,0.06) 0%, transparent 50%);
    pointer-events: none;
}
.bf-srhero .bf-wrap {
    position: relative;
    z-index: 1;
}
.bf-srhero-h {
    font-family: var(--bf-font-display);
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: 0.04em;
    margin: 0 0 6px;
    opacity: 0;
    transform: translateY(14px);
    animation: bf-sr-rise 0.5s 0.05s ease-out forwards;
}
.bf-srhero-sub {
    color: var(--bf-ink-2);
    margin: 0 0 22px;
    font-size: 14px;
    opacity: 0;
    transform: translateY(14px);
    animation: bf-sr-rise 0.5s 0.15s ease-out forwards;
}
.bf-srhero-form {
    display: flex; align-items: center; gap: 6px;
    background: var(--bf-card);
    border: 1px solid var(--bf-line-2);
    border-radius: var(--bf-radius);
    padding: 6px 6px 6px 16px;
    max-width: 720px;
    margin-bottom: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    opacity: 0;
    transform: translateY(14px);
    animation: bf-sr-rise 0.5s 0.25s ease-out forwards;
}
.bf-srhero-form:focus-within {
    border-color: var(--bf-accent);
    box-shadow: 0 0 0 3px rgba(236,57,100,0.15);
}
.bf-srhero-form svg {
    color: var(--bf-ink-3);
    flex-shrink: 0;
    transition: color 0.2s ease;
}
.bf-srhero-form:focus-within svg { color: var(--bf-accent); }
.bf-srhero-form input {
    flex: 1; min-width: 0;
    background: transparent; border: 0;
    color: #fff; outline: none;
    font-size: 15px; padding: 12px 0;
    font-family: inherit;
}
.bf-srhero-form input::placeholder { color: var(--bf-ink-3); }
.bf-srhero-form button {
    background: var(--bf-accent); border: 0;
    color: #fff; font-weight: 600; font-size: 13px;
    padding: 11px 22px;
    border-radius: var(--bf-radius-s);
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
    flex-shrink: 0;
}
.bf-srhero-form button:hover {
    background: var(--bf-accent-h);
    transform: scale(1.04);
}
.bf-srhero-tabs {
    display: flex; gap: 8px; flex-wrap: wrap;
    opacity: 0;
    transform: translateY(14px);
    animation: bf-sr-rise 0.5s 0.35s ease-out forwards;
}

@keyframes bf-sr-rise {
    to { opacity: 1; transform: translateY(0); }
}

/* Animate the result grid items as they appear */
.bf-page-search .bf-grid--posters > .bf-card {
    opacity: 0;
    animation: bf-card-rise 0.45s ease-out forwards;
}
.bf-page-search .bf-grid--posters > .bf-card:nth-child(1)  { animation-delay: 0.05s; }
.bf-page-search .bf-grid--posters > .bf-card:nth-child(2)  { animation-delay: 0.10s; }
.bf-page-search .bf-grid--posters > .bf-card:nth-child(3)  { animation-delay: 0.15s; }
.bf-page-search .bf-grid--posters > .bf-card:nth-child(4)  { animation-delay: 0.20s; }
.bf-page-search .bf-grid--posters > .bf-card:nth-child(5)  { animation-delay: 0.25s; }
.bf-page-search .bf-grid--posters > .bf-card:nth-child(6)  { animation-delay: 0.30s; }
.bf-page-search .bf-grid--posters > .bf-card:nth-child(7)  { animation-delay: 0.35s; }
.bf-page-search .bf-grid--posters > .bf-card:nth-child(8)  { animation-delay: 0.40s; }
.bf-page-search .bf-grid--posters > .bf-card:nth-child(9)  { animation-delay: 0.45s; }
.bf-page-search .bf-grid--posters > .bf-card:nth-child(10) { animation-delay: 0.50s; }
.bf-page-search .bf-grid--posters > .bf-card:nth-child(11) { animation-delay: 0.55s; }
.bf-page-search .bf-grid--posters > .bf-card:nth-child(12) { animation-delay: 0.60s; }
.bf-page-search .bf-grid--posters > .bf-card:nth-child(n+13) { animation-delay: 0.65s; }

@keyframes bf-card-rise {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Request page */
.bf-page-request { background: var(--bf-bg-3); }
.bf-reqpage {
    padding: 60px 0;
}
.bf-reqpage-card {
    max-width: 600px; margin: 0 auto;
    background: var(--bf-card);
    border: 1px solid var(--bf-line);
    border-radius: var(--bf-radius-l);
    padding: 32px;
}
.bf-reqpage-h {
    font-family: var(--bf-font-display);
    font-size: 32px;
    letter-spacing: 0.04em;
    margin: 0 0 8px;
}
.bf-reqpage-sub {
    color: var(--bf-ink-2);
    margin: 0 0 24px;
    font-size: 14px;
}
.bf-reqpage-form {
    display: flex; flex-direction: column; gap: 16px;
}
.bf-field {
    display: block;
}
.bf-field-l {
    display: block;
    font-size: 12px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--bf-ink-2);
    margin-bottom: 6px;
}
.bf-field-l em { color: var(--bf-accent); font-style: normal; }
.bf-field-opt {
    color: var(--bf-ink-3);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}
.bf-field input,
.bf-field textarea {
    width: 100%;
    background: var(--bf-bg-2);
    border: 1px solid var(--bf-line-2);
    border-radius: var(--bf-radius);
    color: var(--bf-ink);
    padding: 11px 14px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease;
}
.bf-field input:focus,
.bf-field textarea:focus { border-color: var(--bf-accent); }
.bf-field textarea { resize: vertical; min-height: 90px; }
.bf-reqpage-submit {
    background: var(--bf-accent); border: 0;
    color: #fff; font-weight: 600; font-size: 14px;
    padding: 12px 28px;
    border-radius: var(--bf-radius);
    cursor: pointer;
    align-self: flex-start;
    transition: background 0.15s ease, transform 0.15s ease;
}
.bf-reqpage-submit:hover { background: var(--bf-accent-h); transform: translateY(-1px); }
.bf-reqpage-ok {
    text-align: center;
    padding: 24px 0;
}
.bf-reqpage-ok strong {
    display: block;
    font-size: 18px;
    color: var(--bf-mint);
    margin-bottom: 6px;
}
.bf-reqpage-ok p {
    color: var(--bf-ink-2);
    margin: 0 0 18px;
}
.bf-reqpage-err {
    background: rgba(236,57,100,0.12);
    border: 1px solid rgba(236,57,100,0.4);
    color: #fff;
    padding: 12px 14px;
    border-radius: var(--bf-radius);
    margin-bottom: 16px;
    font-size: 13.5px;
}

/* 404 */
.bf-page-404 { background: var(--bf-bg-3); }
.bf-404 {
    padding: 80px 0;
    min-height: 60vh;
    display: flex; align-items: center;
}
.bf-404-card {
    max-width: 540px; margin: 0 auto;
    text-align: center;
}
.bf-404-num {
    font-family: var(--bf-font-display);
    font-size: clamp(96px, 18vw, 180px);
    line-height: 1;
    margin: 0 0 8px;
    color: var(--bf-accent);
    letter-spacing: 0.04em;
    text-shadow: 0 8px 30px rgba(236,57,100,0.4);
}
.bf-404-h {
    font-family: var(--bf-font-body);
    font-size: 24px; font-weight: 700;
    margin: 0 0 8px; letter-spacing: 0;
}
.bf-404-sub {
    color: var(--bf-ink-2);
    margin: 0 0 24px;
}
.bf-404-search {
    display: flex; gap: 8px;
    background: var(--bf-card);
    border: 1px solid var(--bf-line-2);
    border-radius: var(--bf-radius);
    padding: 6px 6px 6px 14px;
    margin: 0 auto 18px;
    max-width: 420px;
    align-items: center;
}
.bf-404-search svg { color: var(--bf-ink-3); flex-shrink: 0; }
.bf-404-search input {
    flex: 1; min-width: 0;
    background: transparent; border: 0;
    color: #fff; outline: none;
    font-size: 14px;
}
.bf-404-search button {
    background: var(--bf-accent); border: 0;
    color: #fff; font-weight: 600; font-size: 13px;
    padding: 9px 18px; border-radius: var(--bf-radius-s);
    cursor: pointer;
}
.bf-404-search button:hover { background: var(--bf-accent-h); }
.bf-404-nav {
    display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
}

/* Share CTA */
.bf-share {
    background: var(--bf-bg-3);
    padding: 30px 0;
}
.bf-share-card {
    text-align: center;
    background: var(--bf-card);
    border: 1px solid var(--bf-line);
    border-radius: var(--bf-radius-l);
    padding: 24px 20px;
    max-width: 720px;
    margin: 0 auto;
}
.bf-share-cta {
    font-family: var(--bf-font-display);
    font-size: 22px; letter-spacing: 0.04em;
    margin: 0 0 4px;
    color: #fff;
}
.bf-share-sub {
    color: var(--bf-ink-2);
    margin: 0 0 14px;
    font-size: 13.5px;
}
.bf-share-row {
    display: flex; flex-wrap: wrap; gap: 8px;
    justify-content: center;
}

/* 15 ---------------------------- Footer */
.bf-foot {
    background: var(--bf-bg-2);
    border-top: 1px solid var(--bf-line);
    margin-top: 30px;
}
.bf-foot-pitch {
    display: flex; justify-content: space-between; align-items: center;
    gap: 24px;
    padding: 28px 0;
    flex-wrap: wrap;
}
.bf-foot-pitch-text {
    flex: 1; min-width: 240px;
}
.bf-foot-pitch-title {
    font-family: var(--bf-font-body);
    font-weight: 700;
    font-size: 18px;
    margin: 0 0 4px;
    color: #fff;
    letter-spacing: 0;
}
.bf-foot-pitch-sub {
    color: var(--bf-ink-2);
    margin: 0;
    font-size: 13px;
    max-width: 580px;
}
.bf-foot-pitch-mark img {
    height: 36px;
    opacity: 0.9;
}

.bf-foot-row {
    background: var(--bf-bg-3);
    border-top: 1px solid var(--bf-line);
    padding: 14px 0;
}
.bf-foot-row-inner {
    display: flex; flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}
.bf-foot-links {
    display: flex; flex-wrap: wrap; gap: 6px;
    align-items: center;
    list-style: none;
    margin: 0; padding: 0;
}
.bf-foot-links a {
    color: var(--bf-ink-2);
    font-size: 12.5px;
    transition: color 0.15s ease;
}
.bf-foot-links a:hover { color: var(--bf-accent); }
.bf-foot-links--right { justify-content: flex-end; }
.bf-foot-dot {
    color: var(--bf-mute);
    font-size: 8px;
    margin: 0 4px;
}

.bf-foot-fine {
    background: var(--bf-bg-3);
    border-top: 1px solid var(--bf-line);
    padding: 12px 0;
    text-align: center;
}
.bf-foot-fine p {
    margin: 0;
    color: var(--bf-mute);
    font-size: 11.5px;
}

/* 16 ---------------------------- Telegram popup / Banner / Helpers */
.bf-tgpop {
    position: fixed; bottom: 18px; right: 18px;
    width: 280px;
    background: var(--bf-card);
    border: 1px solid var(--bf-line-2);
    border-radius: var(--bf-radius-l);
    padding: 18px;
    box-shadow: var(--bf-shadow-l);
    z-index: 7000;
    display: none;
    text-align: left;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.bf-tgpop.bf-tgpop--up {
    display: block;
    transform: translateY(0);
    opacity: 1;
}
.bf-tgpop-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: #29a3eb;
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 10px;
}
.bf-tgpop-x {
    position: absolute; top: 8px; right: 10px;
    background: transparent; border: 0;
    color: var(--bf-ink-3);
    font-size: 22px; line-height: 1;
    cursor: pointer;
    padding: 4px;
}
.bf-tgpop-x:hover { color: #fff; }
.bf-tgpop-title {
    font-family: var(--bf-font-body);
    font-size: 16px; font-weight: 700;
    margin: 0 0 4px;
    color: #fff;
}
.bf-tgpop-text {
    color: var(--bf-ink-2);
    font-size: 13px;
    margin: 0 0 12px;
    line-height: 1.55;
}
.bf-tgpop-btn {
    display: block; text-align: center;
    background: #29a3eb;
    color: #fff;
    padding: 9px 14px;
    border-radius: var(--bf-radius);
    font-weight: 600; font-size: 13px;
    transition: background 0.15s ease;
}
.bf-tgpop-btn:hover { background: #1d8fd1; color: #fff; }

.bf-banner-slot {
    text-align: center;
    padding: 14px 0 4px;
}

.d-none { display: none !important; }

/* 17 ---------------------------- Responsive */
@media (max-width: 900px) {
    .bf-topnav { display: none; }
    .bf-burger { display: inline-flex; }
    .bf-icobtn--user { display: none; }

    .bf-dv-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .bf-dv-poster {
        max-width: 220px;
        margin: 0 auto;
    }
    .bf-dv-poster .bf-dv-cta { display: none; }
    .bf-dv-mobile-acts { display: flex; }
    .bf-dv-back { height: 360px; }

    .bf-dv-facts { grid-template-columns: 1fr; }

    .bf-trending-list { grid-template-columns: 1fr; }
    .bf-foot-pitch { flex-direction: column; align-items: flex-start; text-align: left; }
    .bf-foot-pitch-mark { align-self: flex-start; }
    .bf-foot-row-inner { justify-content: center; }
    .bf-foot-links--right { justify-content: center; }

    .bf-popdown-menu {
        grid-template-columns: 1fr;
        max-height: 260px;
    }
}

@media (max-width: 700px) {
    .bf-wrap { padding: 0 16px; }

    .bf-hero-stage { min-height: 520px; }
    .bf-hero-body { padding-top: 70px; padding-bottom: 130px; }
    .bf-hero-title { font-size: 26px; }
    .bf-hero-meta { gap: 12px; font-size: 12px; }
    .bf-hero-rail-wrap {
        position: absolute;
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }
    .bf-hero-rail { justify-content: flex-start; }
    .bf-hero-thumb { width: 50px; height: 75px; }

    .bf-dv-meta { font-size: 12px; }
    .bf-dv-meta li { padding: 0 10px; }

    .bf-pl-srvbar { padding: 10px; }
    .bf-pl-srv { padding: 6px 10px; font-size: 12px; }

    .bf-tgpop {
        right: 12px; left: 12px; bottom: 12px;
        width: auto;
    }
}

@media (max-width: 480px) {
    .bf-rec-tab {
        min-width: 0;
        flex: 1;
        padding: 12px 14px;
        font-size: 13px;
    }
    .bf-rec-tab-ico svg { width: 14px; height: 14px; }

    .bf-foot-pitch-title { font-size: 16px; }
    .bf-foot-row-inner { gap: 8px; }
    .bf-foot-links { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
