/* BoredFlix — base.css
   Dark slate UI with red brand accent.
   Prefix: bf-  |  State: is-*  |  Fonts: Manrope + JetBrains Mono
   Color format: oklch()
*/

/* ===== 01. Tokens ===== */
:root {
  --bf-bg:       #0b101b;
  --bf-surface:  #131a2a;
  --bf-card:     #1a2236;
  --bf-border:   #232e44;
  --bf-muted:    #64748b;
  --bf-text:     #e2e8f0;
  --bf-heading:  #f8fafc;
  --bf-accent:   #e53e3e;
  --bf-accent-h: #f56565;
  --bf-green:    #48bb78;
  --bf-gold:     #facc15;
  --bf-radius:   10px;
  --bf-radius-sm:6px;
  --bf-font:     'Manrope', system-ui, sans-serif;
  --bf-mono:     'JetBrains Mono', monospace;
  --bf-max:      1320px;
  --bf-gap:      16px;
  --bf-trans:    .18s ease;
}

/* ===== 02. Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--bf-font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--bf-text);
  background: var(--bf-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

/* ===== 03. Skip link ===== */
.bf-skip {
  position: absolute; left: -9999px; top: auto;
  padding: 8px 16px; background: var(--bf-accent); color: #fff;
  border-radius: var(--bf-radius-sm); z-index: 9999;
}
.bf-skip:focus { left: 16px; top: 16px; }

/* ===== 04. Topbar (header) ===== */
.bf-topbar {
  position: sticky; top: 0; z-index: 900;
  background: #101828;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-family: Inter, "Inter Fallback", system-ui, Arial, sans-serif;
  font-size: 14px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: normal;
  color: #EDEDED;
  transition: transform .3s ease;
}
.bf-topbar.is-hidden { transform: translateY(-100%); }
.bf-topbar-row {
  display: flex; align-items: center;
  padding: 0 20px; height: 60px;
  max-width: 1440px; margin: 0 auto;
}
.bf-mark { display: flex; align-items: center; flex-shrink: 0; }
.bf-mark-img { height: 28px; width: auto; }
.bf-prim-nav {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px;
}
.bf-prim-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 6px;
  font-size: 14px; font-weight: 500; color: #ccc;
  transition: color .15s;
  white-space: nowrap;
}
.bf-prim-link::after {
  content: '';
  position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%) scaleX(0);
  width: 60%; height: 2px; border-radius: 1px;
  background: #fff;
  transition: transform .2s ease;
}
.bf-prim-link:hover { color: #fff; background: none; }
.bf-prim-link:hover::after { transform: translateX(-50%) scaleX(1); }
.bf-util { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.bf-util-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; color: #ccc; transition: background .15s, color .15s;
}
.bf-util-btn:hover { background: rgba(255,255,255,.07); color: #fff; }
.bf-util-request {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 18px; border-radius: 6px;
  background: #fff; color: #111; font-size: 13px; font-weight: 600;
  transition: opacity .15s;
}
.bf-util-request:hover { opacity: .85; }
.bf-burger { display: none; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: #ccc; }
@media (max-width: 860px) {
  .bf-prim-nav { display: none; }
  .bf-burger { display: grid; }
  .bf-util-request { display: none; }
}

/* ===== 05. Drawer (mobile menu) ===== */
.bf-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 280px;
  background: var(--bf-surface); z-index: 1100;
  transform: translateX(100%); transition: transform .25s ease;
  display: flex; flex-direction: column; padding: 20px;
  border-left: 1px solid var(--bf-border);
}
.bf-drawer.is-open { transform: translateX(0); }
.bf-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.bf-drawer-brand { font-weight: 700; font-size: 16px; color: var(--bf-heading); }
.bf-drawer-x { font-size: 24px; width: 32px; height: 32px; display: grid; place-items: center; }
.bf-drawer-nav { display: flex; flex-direction: column; gap: 4px; }
.bf-drawer-link {
  padding: 10px 12px; border-radius: var(--bf-radius-sm);
  font-size: 14px; font-weight: 500; color: var(--bf-text);
  transition: background var(--bf-trans);
}
.bf-drawer-link:hover { background: var(--bf-card); }
.bf-drawer-find { margin-top: auto; display: flex; gap: 8px; }
.bf-drawer-find input {
  flex: 1; padding: 8px 12px; border-radius: var(--bf-radius-sm);
  border: 1px solid var(--bf-border); background: var(--bf-bg); color: var(--bf-text); font-size: 13px;
}
.bf-drawer-find button {
  padding: 8px 14px; border-radius: var(--bf-radius-sm);
  background: var(--bf-accent); color: #fff; font-size: 13px; font-weight: 600;
}
.bf-drawer-veil {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 1050;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.bf-drawer-veil.is-open { opacity: 1; pointer-events: auto; }

/* ===== 06. Breadcrumbs ===== */
.bf-trail { padding: 10px 20px; max-width: var(--bf-max); margin: 0 auto; }
.bf-trail-shell { overflow: hidden; }
.bf-trail-list { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; overflow: hidden; }
.bf-trail-item { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 12px; color: var(--bf-muted); }
.bf-trail-link { color: var(--bf-muted); transition: color var(--bf-trans); }
.bf-trail-link:hover { color: var(--bf-text); }
.bf-trail-here { color: var(--bf-text); overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.bf-trail-sep { opacity: .5; flex-shrink: 0; }

/* ===== 07. Poster card ===== */
.bf-poster { flex: 0 0 auto; width: 165px; min-width: 0; }
.bf-poster-link { display: block; width: 100%; }
.bf-poster-art {
  position: relative; border-radius: var(--bf-radius);
  overflow: hidden; background: var(--bf-card);
  width: 100%; height: 0; padding-bottom: 150%; /* 2:3 aspect ratio fallback */
}
@supports (aspect-ratio: 2/3) {
  .bf-poster-art { aspect-ratio: 2/3; padding-bottom: 0; height: auto; }
}
.bf-poster-img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; transition: transform .3s ease; display: block; }
.bf-poster-art:hover .bf-poster-img { transform: scale(1.04); }
.bf-poster-new {
  position: absolute; top: 8px; left: 8px;
  padding: 2px 7px; border-radius: 4px;
  background: var(--bf-green); color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase;
}
.bf-poster-score {
  position: absolute; top: 8px; right: 8px;
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 7px; border-radius: 4px;
  background: var(--bf-green); color: #fff; font-size: 11px; font-weight: 700;
}
.bf-poster-ep {
  position: absolute; bottom: 8px; left: 8px;
  padding: 3px 8px; border-radius: 4px;
  background: rgba(0,0,0,.8); color: #fff; font-size: 11px; font-weight: 600;
  letter-spacing: .02em;
}
.bf-poster-veil {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,.45); opacity: 0; transition: opacity .2s;
}
.bf-poster-art:hover .bf-poster-veil { opacity: 1; }
.bf-poster-play {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bf-accent); display: grid; place-items: center; color: #fff;
}
.bf-poster-cap {
  display: block; padding: 6px 2px 0;
}
.bf-poster-name {
  display: block; font-size: 12px; font-weight: 600; color: var(--bf-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bf-poster-meta { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--bf-muted); margin-top: 2px; }
.bf-poster-dot { font-size: 8px; }
.bf-poster-rate { color: var(--bf-gold); }

/* ===== 08. Rail (slider) ===== */
.bf-rail { position: relative; }
.bf-rail-track {
  display: flex; gap: var(--bf-gap); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 20px 12px; scrollbar-width: none;
  margin-left: 28px;
}
.bf-rail-track::-webkit-scrollbar { display: none; }
.bf-rail-track > * { scroll-snap-align: start; }
.bf-rail-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,.7); color: #fff; display: grid; place-items: center;
  z-index: 5; opacity: 0; transition: opacity .2s;
}
.bf-rail:hover .bf-rail-arrow { opacity: 1; }
.bf-rail-arrow--left  { left: 6px; }
.bf-rail-arrow--right { right: 6px; }
.bf-rail-arrow:hover { background: var(--bf-accent); }

/* ===== 09. Row (section wrapper) ===== */
.bf-row { padding: 24px 0 8px; }
.bf-row-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px 0 28px; max-width: none; margin: 0 0 12px;
}
.bf-row-h {
  font-family: Inter, "Inter Fallback", system-ui, Arial, sans-serif;
  font-size: 24px; line-height: 32px; font-weight: 700; color: #fff;
  display: flex; align-items: center; gap: 10px;
}
.bf-row-flame {
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px;
  background: var(--bf-accent); color: #fff; text-transform: uppercase;
}
.bf-row-badge {
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px;
  text-transform: uppercase; margin-left: 8px;
}
.bf-row-badge--live { background: var(--bf-accent); color: #fff; }
.bf-row-right { display: flex; align-items: center; gap: 10px; }
.bf-row-filter-icon { color: var(--bf-muted); display: grid; place-items: center; }
.bf-row-tabs { display: flex; gap: 4px; }
.bf-row-tab {
  padding: 6px 14px; border-radius: 6px; font-size: 12px; font-weight: 500;
  color: var(--bf-muted); background: var(--bf-card); border: 1px solid var(--bf-border);
  transition: all .15s;
}
.bf-row-tab.is-picked { background: #2563eb; border-color: #2563eb; color: #fff; }
.bf-row-tab:hover:not(.is-picked) { color: var(--bf-text); border-color: var(--bf-muted); }
.bf-row-all {
  font-size: 12px; font-weight: 500; color: var(--bf-muted);
  display: inline-flex; align-items: center; gap: 3px;
  transition: color var(--bf-trans);
}
.bf-row-all:hover { color: var(--bf-accent-h); }

/* ===== 10. Grid (list pages) ===== */
.bf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--bf-gap);
  padding: 0 28px;
  max-width: var(--bf-max); margin: 0 auto;
  align-items: start;
}
@media (min-width: 640px)  { .bf-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); } }
@media (min-width: 1024px) { .bf-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.bf-grid .bf-poster { width: 100%; min-width: 0; }

/* ===== 11. Filter bar (dark-glass) ===== */
.bf-fbar {
  padding: 0 28px 18px;
  max-width: var(--bf-max); margin: 0 auto;
  position: relative; z-index: 50;
}
.bf-fbar-shell {
  background: rgba(20, 26, 41, .6);
  border: 1px solid rgba(255, 255, 255, .04);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  backdrop-filter: blur(8px);
}
.bf-fbar-left { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.bf-fbar-right { display: flex; gap: 8px; }

.bf-fpill { position: relative; }
.bf-fpill[open] { z-index: 100; }
.bf-fpill-panel {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 100;
  background: var(--bf-surface);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  padding: 8px;
  display: flex; flex-direction: column; gap: 2px;
  min-width: 200px; max-width: 320px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .5);
}
.bf-fpill-trigger {
  cursor: pointer; list-style: none;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(40, 50, 75, .55);
  border: 1px solid rgba(255, 255, 255, .06);
  font-size: 13px; font-weight: 500; color: #d6dae6;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.bf-fpill-trigger:hover { background: rgba(60, 72, 102, .7); border-color: rgba(255, 255, 255, .12); }
.bf-fpill-trigger::-webkit-details-marker { display: none; }

.bf-fpill-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.bf-fpill-dot--violet { background: #a78bfa; box-shadow: 0 0 6px rgba(167, 139, 250, .6); }
.bf-fpill-dot--pink   { background: #f472b6; box-shadow: 0 0 6px rgba(244, 114, 182, .6); }
.bf-fpill-dot--green  { background: #4ade80; box-shadow: 0 0 6px rgba(74, 222, 128, .6); }
.bf-fpill-dot--orange { background: #fb923c; box-shadow: 0 0 6px rgba(251, 146, 60, .6); }
.bf-fpill-dot--rose   { background: #fb7185; box-shadow: 0 0 6px rgba(251, 113, 133, .6); }

.bf-fpill-chev { color: #94a3b8; }
.bf-fpill-tag {
  font-size: 10px; padding: 2px 6px; border-radius: 4px;
  background: rgba(167, 139, 250, .15); color: #c4b5fd;
  margin-left: 4px;
}

.bf-fpill--sort .bf-fpill-panel { left: auto; right: 0; }
.bf-fpill-panel--cols {
  flex-direction: row; flex-wrap: wrap;
  min-width: 320px; max-width: 480px;
  max-height: 320px; overflow-y: auto;
}
.bf-fpill-panel--cols .bf-fpill-item {
  flex: 1 1 calc(50% - 4px);
}
.bf-fpill-panel--years {
  flex-direction: row; flex-wrap: wrap; gap: 4px;
  max-height: 280px; overflow-y: auto;
}
.bf-fpill-panel--years .bf-fpill-item { flex: 0 0 auto; }
.bf-fpill-item {
  padding: 7px 12px; border-radius: 6px;
  font-size: 12px; color: var(--bf-text);
  transition: background .15s;
  white-space: nowrap;
}
.bf-fpill-item:hover { background: var(--bf-card); }
.bf-fpill-item.is-picked { background: rgba(167, 139, 250, .15); color: #c4b5fd; font-weight: 600; }
.bf-fpill-empty {
  padding: 8px 12px; font-size: 12px; color: var(--bf-muted); font-style: italic;
}

/* ===== 12. Pagination ===== */
.bf-pager { padding: 32px 28px; max-width: var(--bf-max); margin: 0 auto; }
.bf-pager .pagination { display: block; text-align: center; }
.bf-pager .pagination__list {
  display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: center;
  align-items: center; list-style: none; padding: 0; margin: 0;
}
.bf-pager .pagination__item { display: inline-flex; }
.bf-pager .pagination__link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px;
  border-radius: var(--bf-radius-sm); font-size: 14px; font-weight: 500;
  border: 1px solid var(--bf-border); color: var(--bf-text);
  text-decoration: none;
  transition: all var(--bf-trans);
}
.bf-pager .pagination__link:hover { background: var(--bf-card); border-color: var(--bf-muted); }
.bf-pager .pagination__link--active {
  background: var(--bf-accent); border-color: var(--bf-accent); color: #fff; pointer-events: none;
}
.bf-pager .pagination__ellipsis {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; font-size: 14px; color: var(--bf-muted);
}

/* ===== 13. Hero stage (home carousel) ===== */
.bf-stage { position: relative; overflow: hidden; }
.bf-stage-track { position: relative; height: 520px; }
@media (max-width: 640px) { .bf-stage-track { height: 400px; } }
.bf-stage-slide {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  transition: opacity .6s ease;
}
.bf-stage-slide.is-current { opacity: 1; pointer-events: auto; }
.bf-stage-art { position: absolute; inset: 0; }
.bf-stage-art img { width: 100%; height: 100%; object-fit: cover; }
.bf-stage-art-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(11,16,27,.92) 0%, rgba(11,16,27,.6) 50%, transparent 100%),
              linear-gradient(to top, var(--bf-bg) 0%, transparent 40%);
}
.bf-stage-copy {
  position: absolute; bottom: 60px; left: 0; padding: 0 40px;
  max-width: 600px; z-index: 2;
}
@media (max-width: 640px) { .bf-stage-copy { bottom: 40px; padding: 0 20px; max-width: 100%; } }
.bf-stage-pre { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--bf-accent); margin-bottom: 6px; }
.bf-stage-title { font-size: 28px; font-weight: 800; color: var(--bf-heading); line-height: 1.2; margin-bottom: 10px; }
@media (max-width: 640px) { .bf-stage-title { font-size: 22px; } }
.bf-stage-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.bf-stage-meta-pip { font-size: 12px; color: var(--bf-muted); display: inline-flex; align-items: center; gap: 3px; }
.bf-stage-desc { font-size: 13px; color: var(--bf-muted); line-height: 1.5; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bf-stage-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.bf-stage-watch {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: var(--bf-radius-sm);
  background: var(--bf-accent); color: #fff; font-size: 13px; font-weight: 700;
  transition: background var(--bf-trans);
}
.bf-stage-watch:hover { background: var(--bf-accent-h); }
.bf-stage-info {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 18px; border-radius: var(--bf-radius-sm);
  border: 1px solid var(--bf-border); color: var(--bf-text); font-size: 13px; font-weight: 500;
  transition: border-color var(--bf-trans);
}
.bf-stage-info:hover { border-color: var(--bf-muted); }
.bf-stage-controls { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 12px; pointer-events: none; z-index: 5; }
.bf-stage-arrow { pointer-events: auto; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; transition: background var(--bf-trans); }
.bf-stage-arrow:hover { background: var(--bf-accent); }
.bf-stage-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 5; }
.bf-stage-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.3); transition: background var(--bf-trans); }
.bf-stage-dot.is-current { background: var(--bf-accent); }

/* ===== 14. Detail page ===== */
.bf-d-hero {
  position: relative; overflow: hidden;
  min-height: 460px;
}
@media (min-width: 768px) { .bf-d-hero { min-height: 540px; } }
@media (min-width: 1024px) { .bf-d-hero { min-height: 600px; } }
.bf-d-hero-art { position: absolute; inset: 0; z-index: 0; }
.bf-d-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.bf-d-hero-art::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(11,16,27,.95) 0%, rgba(11,16,27,.7) 50%, rgba(11,16,27,.4) 100%),
    linear-gradient(to bottom, rgba(11,16,27,.3) 0%, rgba(11,16,27,.85) 80%, var(--bf-bg) 100%);
}
.bf-d-back { position: relative; overflow: hidden; }
.bf-d-back--short { height: auto; max-width: none; margin: 0; }
.bf-d-back--short img { width: 100%; height: 180px; object-fit: cover; object-position: center top; }
@media (min-width: 768px) { .bf-d-back--short img { height: 220px; } }
.bf-d-back img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.bf-d-back-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11,16,27,.5) 0%, var(--bf-bg) 100%); }
.bf-d-frame { position: relative; z-index: 2; padding: 32px 0 24px; }
.bf-d-frame--overlap { margin-top: -80px; padding-top: 0; }
.bf-d-frame--inside {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 0 0 40px;
}
.bf-d-card { display: flex; gap: 32px; align-items: flex-end; }
@media (max-width: 640px) { .bf-d-card { gap: 16px; align-items: flex-end; } }
.bf-d-poster { flex-shrink: 0; width: 200px; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.05); }
@media (min-width: 768px) { .bf-d-poster { width: 240px; } }
@media (max-width: 640px) { .bf-d-poster { width: 130px; } }
.bf-d-poster img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.bf-d-body { flex: 1; min-width: 0; padding-bottom: 8px; }
.bf-d-title { font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 8px; line-height: 1.15; letter-spacing: -.01em; }
@media (min-width: 768px) { .bf-d-title { font-size: 36px; } }
@media (min-width: 1024px) { .bf-d-title { font-size: 42px; } }
.bf-d-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.7); margin-bottom: 6px; }
.bf-d-score { display: inline-flex; align-items: center; gap: 5px; font-size: 15px; color: var(--bf-gold); margin-bottom: 12px; font-weight: 700; }
.bf-d-score-x { font-size: 12px; color: rgba(255,255,255,.5); font-weight: 400; }
.bf-d-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.bf-d-tag {
  padding: 5px 14px; border-radius: 6px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 12px; font-weight: 500; color: #fff;
  transition: background .15s;
}
.bf-d-tag:hover { background: rgba(255,255,255,.18); }
.bf-d-overview { max-width: 720px; }
.bf-d-overview-h { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.bf-d-overview-p { font-size: 14px; color: rgba(255,255,255,.75); line-height: 1.65; }
.bf-d-overview-more {
  font-size: 13px; color: var(--bf-green); font-weight: 600;
  margin-top: 6px; cursor: pointer; background: none; border: none; padding: 0;
}
.bf-d-overview-more:hover { color: #68d391; }

/* Detail page extras: meta line, info grid, cast, actions */
.bf-d-shell { max-width: var(--bf-max); margin: 0 auto; padding: 0 28px; }
.bf-d-sub { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 6px; }
.bf-d-line-link { color: #fff; }
.bf-d-line-link:hover { color: var(--bf-accent-h); }
.bf-d-line-dot { font-size: 7px; opacity: .6; }
.bf-d-line-tag { padding: 2px 10px; border-radius: 4px; background: rgba(255,255,255,.12); font-size: 11px; font-weight: 600; color: #fff; }
.bf-d-line-status { color: var(--bf-green); font-weight: 600; }
.bf-d-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 16px; margin-bottom: 12px; }
.bf-d-pair dt { font-size: 11px; color: rgba(255,255,255,.5); }
.bf-d-pair dd { font-size: 13px; color: #fff; }
.bf-d-pair dd a { color: #fff; transition: color .15s; }
.bf-d-pair dd a:hover { color: var(--bf-accent-h); }
.bf-d-cast { font-size: 13px; margin-bottom: 14px; color: rgba(255,255,255,.75); }
.bf-d-cast-h { font-weight: 600; color: rgba(255,255,255,.5); margin-right: 6px; }
.bf-d-cast-list a { color: #fff; transition: color .15s; }
.bf-d-cast-list a:hover { color: var(--bf-accent-h); }
.bf-d-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.bf-d-watch {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 26px; border-radius: var(--bf-radius-sm);
  background: var(--bf-accent); color: #fff; font-size: 14px; font-weight: 700;
  transition: background .15s;
}
.bf-d-watch:hover { background: var(--bf-accent-h); }
.bf-d-latest {
  padding: 11px 20px; border-radius: var(--bf-radius-sm);
  border: 1px solid rgba(255,255,255,.2); font-size: 14px; font-weight: 500; color: #fff;
  transition: border-color .15s, background .15s;
}
.bf-d-latest:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.05); }
.bf-d-trailer {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 11px 18px; border-radius: var(--bf-radius-sm);
  border: 1px solid rgba(255,255,255,.2); font-size: 14px; color: #fff;
  transition: border-color .15s, background .15s;
}
.bf-d-trailer:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.05); }

/* ===== 15. Player ===== */
.bf-player-block { padding: 24px 0; }
.bf-player-shell { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.bf-player-shell--wide { max-width: 1280px; }
.bf-player-stage { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04); }
.bf-player-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  padding: 10px 14px; text-align: center;
  background: linear-gradient(to bottom, rgba(0,0,0,.6), transparent);
}
.bf-player-header-pre { display: block; font-size: 10px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .05em; }
.bf-player-header-title { display: block; font-size: 13px; font-weight: 600; color: #fff; margin-top: 2px; }
.bf-player-cover { position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.bf-player-cover img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.35); }
.bf-player-go { position: absolute; width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.1); backdrop-filter: blur(6px); color: rgba(255,255,255,.85); display: grid; place-items: center; transition: transform .2s, background .2s; border: 2px solid rgba(255,255,255,.25); }
.bf-player-go:hover { transform: scale(1.1); background: rgba(255,255,255,.2); }
.bf-player-frame { width: 100%; height: 100%; border: none; }
.bf-player-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--bf-muted); font-size: 13px; z-index: 5; background: rgba(0,0,0,.7); }
.bf-player-loading[hidden] { display: none !important; }
.bf-player-spinner { width: 24px; height: 24px; border: 3px solid var(--bf-border); border-top-color: var(--bf-accent); border-radius: 50%; animation: bfSpin .7s linear infinite; }
@keyframes bfSpin { to { transform: rotate(360deg); } }
.bf-player-veil { position: absolute; inset: 0; z-index: 10; }

/* ===== 16. Server tabs ===== */
.bf-srv-wrap { margin-top: 14px; }
.bf-srv-wrap--center { text-align: center; }
.bf-srv-hint { font-size: 12px; color: var(--bf-muted); display: flex; align-items: center; gap: 5px; margin-bottom: 8px; }
.bf-srv-row { display: flex; flex-wrap: wrap; gap: 8px; }
.bf-srv-row--pills { justify-content: center; gap: 10px; margin-top: 14px; }
.bf-srv {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--bf-radius-sm);
  border: 1px solid var(--bf-border); font-size: 12px; font-weight: 500;
  color: var(--bf-text); transition: all .15s;
}
.bf-srv:hover { border-color: var(--bf-accent); color: var(--bf-accent-h); }
.bf-srv.is-current { background: var(--bf-accent); border-color: var(--bf-accent); color: #fff; }
.bf-srv-num { font-family: var(--bf-mono); font-size: 10px; opacity: .6; }
/* Server pills — premium-style buttons (gold gradient + green lightning badge) */
.bf-srv-row--pills {
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.bf-srv-pill {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, #b45f1a 0%, #6b3010 100%);
  border: 1px solid rgba(255, 200, 100, .25);
  font-size: 16px; font-weight: 600; color: #fff;
  letter-spacing: .01em;
  transition: transform .18s ease, filter .18s ease;
  cursor: pointer;
}
.bf-srv-pill::before {
  content: '★';
  font-size: 18px;
  color: #fde047;
  text-shadow: 0 0 8px rgba(253, 224, 71, .5);
  margin-right: 2px;
}
.bf-srv-pill::after {
  content: '';
  display: inline-flex;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #16a34a url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='white'><polygon points='13 2 3 14 12 14 11 22 21 10 12 10'/></svg>") center / 12px no-repeat;
  border: 1.5px solid rgba(0, 0, 0, .35);
  flex-shrink: 0;
  margin-left: 4px;
}
.bf-srv-pill:hover { transform: translateY(-1px); filter: brightness(1.08); }
.bf-srv-pill.is-current {
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
  border-color: rgba(255, 220, 130, .6);
  color: #1a0f00;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(251, 146, 60, .45),
              0 4px 16px rgba(0, 0, 0, .4),
              inset 0 1px 0 rgba(255, 255, 255, .25);
}
.bf-srv-pill.is-current::before {
  color: #fff8dc;
  text-shadow: 0 0 6px rgba(255, 255, 255, .6);
}

/* ===== 17. Episode nav ===== */
.bf-epnav { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 8px 0; }
.bf-epnav-btn { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--bf-text); padding: 6px 12px; border-radius: var(--bf-radius-sm); border: 1px solid var(--bf-border); transition: all var(--bf-trans); }
.bf-epnav-btn:hover:not(:disabled) { border-color: var(--bf-accent); color: var(--bf-accent-h); }
.bf-epnav-btn:disabled { opacity: .3; cursor: not-allowed; }
.bf-epnav-now { font-size: 12px; color: var(--bf-muted); }

/* ===== 18. Report ===== */
.bf-report { margin-top: 14px; }
.bf-report-toggle { font-size: 12px; color: var(--bf-muted); display: inline-flex; align-items: center; gap: 5px; transition: color var(--bf-trans); }
.bf-report-toggle:hover { color: var(--bf-text); }
.bf-report-form { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.bf-report-form select, .bf-report-form textarea {
  padding: 8px 10px; border-radius: var(--bf-radius-sm);
  border: 1px solid var(--bf-border); background: var(--bf-bg); color: var(--bf-text); font-size: 12px;
}
.bf-report-form select { min-width: 160px; }
.bf-report-form textarea { flex: 1; min-width: 200px; resize: vertical; }
.bf-report-send { padding: 8px 14px; border-radius: var(--bf-radius-sm); background: var(--bf-accent); color: #fff; font-size: 12px; font-weight: 600; }

/* ===== 19. Episodes section ===== */
.bf-eps { padding: 32px 0; }
.bf-eps-shell { max-width: var(--bf-max); margin: 0 auto; padding: 0 20px; }
.bf-eps-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.bf-eps-h { font-size: 18px; font-weight: 700; color: var(--bf-heading); }
.bf-eps-tools { display: flex; gap: 10px; margin-left: auto; }
.bf-eps-season {
  padding: 6px 12px; border-radius: var(--bf-radius-sm);
  border: 1px solid var(--bf-border); background: var(--bf-bg); color: var(--bf-text); font-size: 13px;
}
.bf-eps-find { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--bf-radius-sm); border: 1px solid var(--bf-border); background: var(--bf-bg); }
.bf-eps-find input { border: none; background: transparent; color: var(--bf-text); font-size: 13px; width: 120px; outline: none; }
.bf-eps-list { display: flex; flex-direction: column; gap: 4px; }
.bf-ep {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: var(--bf-radius-sm);
  background: var(--bf-surface); border: 1px solid transparent;
  transition: border-color var(--bf-trans), background var(--bf-trans);
  text-align: left; width: 100%;
}
.bf-ep:hover { border-color: var(--bf-accent); background: var(--bf-card); }
.bf-ep.is-playing { border-color: var(--bf-accent); background: rgba(229,62,62,.08); }
.bf-ep--upcoming { opacity: .5; cursor: default; }
.bf-ep-num { font-family: var(--bf-mono); font-size: 12px; font-weight: 700; color: var(--bf-muted); min-width: 24px; text-align: center; }
.bf-ep-title { flex: 1; font-size: 13px; color: var(--bf-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-ep-go { color: var(--bf-accent); }
.bf-ep-airs { font-size: 11px; color: var(--bf-muted); white-space: nowrap; }
.bf-eps-empty { font-size: 13px; color: var(--bf-muted); padding: 16px 0; }

/* ===== 20. Trailer modal ===== */
.bf-trailer-veil {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.85);
  display: none !important;
  place-items: center;
}
.bf-trailer-veil.is-visible { display: grid !important; }
.bf-trailer-card { position: relative; width: 90vw; max-width: 800px; }
.bf-trailer-x { position: absolute; top: -36px; right: 0; font-size: 28px; color: #fff; cursor: pointer; z-index: 10; }
.bf-trailer-frame-wrap { aspect-ratio: 16/9; border-radius: var(--bf-radius); overflow: hidden; background: #000; }
.bf-trailer-frame-wrap iframe { width: 100%; height: 100%; border: none; }

/* ===== 21. Landing page ===== */
.bf-page-landing { background: #08090f; }

/* Cinematic hero with animated background */
.bf-land-hero {
  position: relative; overflow: hidden;
  padding: 80px 20px 60px;
  text-align: center;
  background: radial-gradient(ellipse at top, #1a2342 0%, #08090f 70%);
}
.bf-land-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.bf-land-hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .35;
  animation: bfOrbFloat 18s ease-in-out infinite;
}
.bf-land-hero-orb--1 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #e53e3e 0%, transparent 70%);
  top: -100px; left: -50px;
  animation-duration: 22s;
}
.bf-land-hero-orb--2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  top: 20%; right: -80px;
  animation-duration: 28s; animation-delay: -7s;
}
.bf-land-hero-orb--3 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, #ec4899 0%, transparent 70%);
  bottom: -100px; left: 30%;
  animation-duration: 25s; animation-delay: -14s;
}
@keyframes bfOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.1); }
  66%      { transform: translate(-30px, 40px) scale(.95); }
}
.bf-land-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

.bf-land-hero-shell { position: relative; max-width: 760px; margin: 0 auto; }

/* Logo above search */
.bf-land-logo {
  display: block;
  width: fit-content;
  margin: 0 auto 32px;
  filter: drop-shadow(0 4px 16px rgba(229, 62, 62, .25));
  animation: bfLogoBob 4s ease-in-out infinite;
}
@keyframes bfLogoBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.bf-land-logo img { height: 56px; width: auto; display: block; }

/* Reveal-on-load animation */
[data-bf-reveal] {
  opacity: 0;
  transform: translateY(16px);
  animation: bfReveal .9s cubic-bezier(.2, .8, .25, 1) forwards;
  animation-delay: var(--bf-reveal-delay, 0ms);
}
@keyframes bfReveal {
  to { opacity: 1; transform: translateY(0); }
}

.bf-land-pre {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--bf-accent);
  margin: 0 auto 14px;
  display: block;
  width: fit-content;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(229, 62, 62, .08);
  border: 1px solid rgba(229, 62, 62, .2);
}
.bf-land-h1 {
  font-size: 32px; font-weight: 800;
  color: var(--bf-heading);
  line-height: 1.15; letter-spacing: -.02em;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,.7));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (min-width: 640px) { .bf-land-h1 { font-size: 44px; } }
@media (min-width: 1024px) { .bf-land-h1 { font-size: 52px; } }

.bf-land-lede {
  font-size: 16px; color: rgba(255,255,255,.65);
  margin-bottom: 32px;
  max-width: 620px; margin-left: auto; margin-right: auto;
  line-height: 1.55;
}

.bf-land-find {
  display: flex; max-width: 560px; margin: 0 auto 24px;
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, rgba(20, 28, 46, .92), rgba(15, 22, 36, .92));
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .4);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.bf-land-find:focus-within {
  border-color: rgba(229, 62, 62, .4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5), 0 0 0 4px rgba(229, 62, 62, .1);
  transform: translateY(-2px);
}
.bf-land-find-ico {
  display: grid; place-items: center;
  padding: 0 14px;
  color: var(--bf-muted);
  transition: color .25s, transform .3s;
}
.bf-land-find:focus-within .bf-land-find-ico { color: var(--bf-accent); transform: scale(1.1); }

.bf-land-find input {
  flex: 1; border: none; background: transparent;
  color: var(--bf-text); font-size: 15px; font-weight: 500;
  padding: 14px 0;
  outline: none;
}
.bf-land-find input::placeholder { color: rgba(255,255,255,.35); }

.bf-land-find button {
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--bf-accent), #c53030);
  color: #fff; font-size: 14px; font-weight: 700;
  letter-spacing: .03em;
  border: none;
  transition: filter .2s, box-shadow .2s;
}
.bf-land-find button:hover { filter: brightness(1.1); }

.bf-land-jumps {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  list-style: none; padding: 0;
}
.bf-land-jumps li a {
  font-size: 12px; color: rgba(255,255,255,.55);
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.bf-land-jumps li a:hover {
  color: #fff;
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.05);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .bf-land-hero-orb, .bf-land-logo, [data-bf-reveal] { animation: none !important; }
  [data-bf-reveal] { opacity: 1; transform: none; }
}

.bf-land-stats { padding: 24px 20px; }
.bf-land-stats-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; max-width: var(--bf-max); margin: 0 auto; }
.bf-stat { text-align: center; }
.bf-stat-num { display: block; font-size: 22px; font-weight: 800; color: var(--bf-heading); font-family: var(--bf-mono); }
.bf-stat-lbl { font-size: 12px; color: var(--bf-muted); }

.bf-land-h2 { font-size: 20px; font-weight: 700; color: var(--bf-heading); margin-bottom: 6px; }
.bf-land-h2-sub { font-size: 13px; color: var(--bf-muted); margin-bottom: 20px; }

.bf-land-hot { padding: 32px 20px; }
.bf-land-hot-shell { max-width: var(--bf-max); margin: 0 auto; }
.bf-land-hot-list { counter-reset: hot; display: grid; gap: 6px; }
.bf-land-hot-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--bf-radius-sm); background: var(--bf-surface); transition: background var(--bf-trans); }
.bf-land-hot-row:hover { background: var(--bf-card); }
.bf-land-hot-rank { font-family: var(--bf-mono); font-size: 13px; font-weight: 700; color: var(--bf-accent); min-width: 22px; text-align: center; }
.bf-land-hot-link { flex: 1; font-size: 13px; font-weight: 500; color: var(--bf-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-land-hot-tag { font-size: 10px; padding: 2px 6px; border-radius: 3px; background: var(--bf-card); color: var(--bf-muted); }
.bf-land-hot-score { font-size: 11px; color: var(--bf-gold); display: inline-flex; align-items: center; gap: 2px; }
.bf-land-hot-foot { margin-top: 12px; font-size: 12px; }
.bf-land-hot-foot a { color: var(--bf-accent); font-weight: 500; }

/* ===== 22. Landing — lanes, pillars, FAQ, prose ===== */
.bf-land-lanes { padding: 32px 20px; }
.bf-land-lanes-shell { max-width: var(--bf-max); margin: 0 auto; }
.bf-land-lane-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.bf-land-lane { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: var(--bf-radius-sm); background: var(--bf-surface); border: 1px solid var(--bf-border); font-size: 13px; font-weight: 500; color: var(--bf-text); transition: all var(--bf-trans); }
.bf-land-lane:hover { border-color: var(--bf-accent); color: var(--bf-accent-h); }

.bf-land-pillars { padding: 40px 20px; }
.bf-land-pillars-shell { max-width: var(--bf-max); margin: 0 auto; }
.bf-land-pillar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.bf-land-pillar { padding: 20px; border-radius: var(--bf-radius); background: var(--bf-surface); border: 1px solid var(--bf-border); }
.bf-land-pillar-num { font-family: var(--bf-mono); font-size: 12px; color: var(--bf-accent); font-weight: 700; }
.bf-land-pillar-h { font-size: 15px; font-weight: 700; color: var(--bf-heading); margin: 6px 0 6px; }
.bf-land-pillar-p { font-size: 13px; color: var(--bf-muted); line-height: 1.6; }

.bf-land-faq { padding: 40px 20px; }
.bf-land-faq-shell { max-width: 720px; margin: 0 auto; }
.bf-land-faq-list { display: flex; flex-direction: column; gap: 6px; }
.bf-land-faq-item { border: 1px solid var(--bf-border); border-radius: var(--bf-radius-sm); overflow: hidden; }
.bf-land-faq-q { padding: 14px 16px; font-size: 14px; font-weight: 600; color: var(--bf-heading); cursor: pointer; list-style: none; }
.bf-land-faq-q::-webkit-details-marker { display: none; }
.bf-land-faq-item[open] .bf-land-faq-q { border-bottom: 1px solid var(--bf-border); }
.bf-land-faq-a { padding: 12px 16px; font-size: 13px; color: var(--bf-muted); line-height: 1.6; }

.bf-land-prose { padding: 40px 20px; }
.bf-land-prose-shell { max-width: 720px; margin: 0 auto; }
.bf-land-prose-shell h2 { font-size: 17px; font-weight: 700; color: var(--bf-heading); margin-bottom: 8px; }
.bf-land-prose-shell p { font-size: 14px; color: var(--bf-muted); line-height: 1.7; margin-bottom: 16px; }
.bf-land-prose-shell a { color: var(--bf-accent); font-weight: 500; }

/* ===== 23. Home H1 + trail ===== */
.bf-home-h1 { padding: 24px 20px 0; max-width: var(--bf-max); margin: 0 auto; }
.bf-home-h1 h1 { font-size: 18px; font-weight: 700; color: var(--bf-heading); }
.bf-home-h1 p { font-size: 13px; color: var(--bf-muted); margin-top: 4px; }
.bf-home-trail { padding: 32px 20px; }
.bf-home-trail-shell { max-width: var(--bf-max); margin: 0 auto; }
.bf-home-trail-h { font-size: 16px; font-weight: 700; color: var(--bf-heading); margin-bottom: 14px; }
.bf-home-trail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.bf-home-trail-sub { font-size: 13px; font-weight: 600; color: var(--bf-text); margin-bottom: 8px; }
.bf-home-trail-col ul { display: flex; flex-direction: column; gap: 4px; }
.bf-home-trail-col li a { font-size: 12px; color: var(--bf-muted); transition: color var(--bf-trans); }
.bf-home-trail-col li a:hover { color: var(--bf-accent-h); }

/* ===== 24. List pages ===== */
.bf-list { padding: 24px 0 40px; }
.bf-list-shell { max-width: var(--bf-max); margin: 0 auto; }
.bf-list-head { padding: 0 20px 16px; }
.bf-list-eyebrow { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--bf-accent); }
.bf-list-h { font-size: 22px; font-weight: 800; color: var(--bf-heading); }
.bf-list-sub { font-size: 13px; color: var(--bf-muted); margin-top: 4px; }
.bf-empty { text-align: center; padding: 60px 20px; }
.bf-empty-h { font-size: 16px; font-weight: 700; color: var(--bf-heading); margin-bottom: 6px; }
.bf-empty-p { font-size: 13px; color: var(--bf-muted); margin-bottom: 16px; }
.bf-empty-cta { display: inline-block; padding: 10px 20px; border-radius: var(--bf-radius-sm); background: var(--bf-accent); color: #fff; font-size: 13px; font-weight: 600; }
.bf-empty-cta--ghost { background: transparent; border: 1px solid var(--bf-border); color: var(--bf-text); }
.bf-empty-cta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ===== 25. Genre page ===== */
.bf-genre { padding: 24px 0 40px; }
.bf-genre-shell { max-width: var(--bf-max); margin: 0 auto; }
.bf-genre-head { padding: 0 20px 20px; }
.bf-genre-eyebrow { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--bf-accent); }
.bf-genre-h { font-size: 22px; font-weight: 800; color: var(--bf-heading); margin-top: 2px; }
.bf-genre-p { font-size: 13px; color: var(--bf-muted); margin-top: 4px; }

/* ===== 26. Search page ===== */
.bf-find { padding: 40px 0; }
.bf-find-shell { max-width: var(--bf-max); margin: 0 auto; padding: 0 28px; }
.bf-find--empty .bf-find-shell { max-width: 720px; }
.bf-find-blank { text-align: center; margin-bottom: 32px; }
.bf-find-mark { display: block; margin-bottom: 16px; color: var(--bf-muted); animation: bfFindFloat 3s ease-in-out infinite; }
@keyframes bfFindFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.bf-find-h { font-size: 22px; font-weight: 800; color: var(--bf-heading); margin-bottom: 4px; }
.bf-find-h span { color: var(--bf-accent); }
.bf-find-sub { font-size: 13px; color: var(--bf-muted); }
.bf-find-head { margin: 0 auto 24px; max-width: 760px; text-align: center; }

/* Modern animated search bar */
.bf-find-form {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin: 0 auto 28px;
  padding: 5px 6px 5px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(26, 34, 54, .9), rgba(19, 26, 42, .9));
  border: 1px solid rgba(255, 255, 255, .06);
  max-width: 760px;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
  backdrop-filter: blur(8px);
}
.bf-find-form::before {
  content: ''; position: absolute; inset: -1px;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(135deg, transparent 0%, rgba(229, 62, 62, .4) 50%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.bf-find-form:focus-within {
  border-color: rgba(229, 62, 62, .35);
  box-shadow: 0 0 0 4px rgba(229, 62, 62, .08), 0 8px 32px rgba(0, 0, 0, .4);
  transform: translateY(-1px);
}
.bf-find-form:focus-within::before { opacity: 1; }

.bf-find-form-ico {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  color: var(--bf-muted);
  transition: color .25s ease, transform .3s ease;
  flex-shrink: 0;
}
.bf-find-form:focus-within .bf-find-form-ico {
  color: var(--bf-accent);
  transform: scale(1.1) rotate(-6deg);
}

.bf-find-form input[type="search"] {
  flex: 1; min-width: 120px;
  border: none; background: transparent;
  color: var(--bf-text);
  font-size: 15px; font-weight: 500;
  padding: 10px 4px;
  outline: none;
  letter-spacing: .005em;
}
.bf-find-form input[type="search"]::placeholder { color: rgba(255,255,255,.35); transition: color .25s; }
.bf-find-form:focus-within input[type="search"]::placeholder { color: rgba(255,255,255,.5); }
.bf-find-form input[type="search"]::-webkit-search-cancel-button { display: none; }

/* Clear button (× appears when input has value) */
.bf-find-clear {
  display: none; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .6);
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
  flex-shrink: 0;
  font-size: 14px; line-height: 1;
}
.bf-find-clear:hover { background: rgba(255, 255, 255, .18); color: #fff; transform: rotate(90deg); }
.bf-find-form.has-value .bf-find-clear { display: flex; animation: bfPopIn .25s ease backwards; }
@keyframes bfPopIn { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }

.bf-find-go {
  padding: 9px 22px; border-radius: 9px;
  background: linear-gradient(135deg, var(--bf-accent), #c53030);
  color: #fff; font-size: 13px; font-weight: 700;
  letter-spacing: .02em;
  transition: transform .2s, box-shadow .2s, filter .2s;
  flex-shrink: 0;
}
.bf-find-go:hover { transform: translateY(-1px); filter: brightness(1.1); box-shadow: 0 6px 20px rgba(229, 62, 62, .35); }
.bf-find-go:active { transform: translateY(0); }

/* Type radios */
.bf-find-radios {
  display: flex; gap: 4px;
  padding: 0 4px;
  border-left: 1px solid rgba(255, 255, 255, .06);
  margin-left: 4px;
}
.bf-find-radio {
  position: relative;
  padding: 7px 14px; border-radius: 18px;
  font-size: 12px; font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  color: var(--bf-muted);
  transition: color .2s, background .2s, border-color .2s;
}
.bf-find-radio:hover { color: var(--bf-text); background: rgba(255, 255, 255, .04); }
.bf-find-radio.is-current {
  background: var(--bf-accent);
  border-color: var(--bf-accent);
  color: #fff;
  box-shadow: 0 2px 10px rgba(229, 62, 62, .35);
}
.bf-find-radio input { display: none; }

.bf-find .bf-grid { max-width: 100%; padding: 0; }
.bf-find-results-count { font-size: 14px; color: var(--bf-muted); margin-bottom: 8px; text-align: center; }

@media (max-width: 640px) {
  .bf-find-form { flex-wrap: wrap; padding: 8px; }
  .bf-find-radios { width: 100%; border-left: none; padding: 4px 0 0; margin: 0; border-top: 1px solid rgba(255,255,255,.06); padding-top: 8px; }
}

/* ===== 27. Request page ===== */
.bf-rq { padding: 40px 0; }
.bf-rq-shell { max-width: var(--bf-max); margin: 0 auto; padding: 0 20px; }
.bf-rq-head { margin-bottom: 24px; }
.bf-rq-eyebrow { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--bf-accent); }
.bf-rq-h { font-size: 22px; font-weight: 800; color: var(--bf-heading); margin-top: 2px; }
.bf-rq-sub { font-size: 13px; color: var(--bf-muted); margin-top: 4px; }
.bf-rq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 32px; }
@media (max-width: 768px) { .bf-rq-grid { grid-template-columns: 1fr; } }
.bf-rq-help { padding: 20px; border-radius: var(--bf-radius); background: var(--bf-surface); border: 1px solid var(--bf-border); }
.bf-rq-help-h { font-size: 15px; font-weight: 700; color: var(--bf-heading); margin-bottom: 12px; }
.bf-rq-steps { counter-reset: step; padding-left: 0; }
.bf-rq-steps li { counter-increment: step; position: relative; padding-left: 28px; margin-bottom: 10px; font-size: 13px; color: var(--bf-text); line-height: 1.5; }
.bf-rq-steps li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--bf-accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.bf-rq-help-foot { font-size: 12px; color: var(--bf-muted); margin-top: 12px; }
.bf-rq-form-wrap { }
.bf-rq-flash { padding: 12px 16px; border-radius: var(--bf-radius-sm); font-size: 13px; margin-bottom: 16px; }
.bf-rq-flash--ok { background: rgba(72,187,120,.1); border: 1px solid var(--bf-green); color: var(--bf-green); }
.bf-rq-flash--err { background: rgba(229,62,62,.1); border: 1px solid var(--bf-accent); color: var(--bf-accent-h); }
.bf-rq-form { display: flex; flex-direction: column; gap: 14px; }
.bf-rq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bf-rq-field { display: flex; flex-direction: column; gap: 4px; }
.bf-rq-label { font-size: 12px; font-weight: 600; color: var(--bf-text); }
.bf-rq-label em { color: var(--bf-accent); font-style: normal; }
.bf-rq-opt { color: var(--bf-muted); font-weight: 400; }
.bf-rq-form input, .bf-rq-form select, .bf-rq-form textarea {
  padding: 10px 12px; border-radius: var(--bf-radius-sm);
  border: 1px solid var(--bf-border); background: var(--bf-bg); color: var(--bf-text); font-size: 13px;
}
.bf-rq-form textarea { resize: vertical; }
.bf-rq-tip { font-size: 11px; color: var(--bf-muted); margin-top: 2px; }
.bf-rq-tip a { color: var(--bf-accent); }
.bf-rq-send { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: var(--bf-radius-sm); background: var(--bf-accent); color: #fff; font-size: 13px; font-weight: 700; align-self: flex-start; }

/* ===== 28. 404 page ===== */
.bf-lost { padding: 80px 20px; text-align: center; }
.bf-lost-shell { max-width: 480px; margin: 0 auto; }
.bf-lost-code { font-size: 80px; font-weight: 900; color: var(--bf-heading); line-height: 1; margin-bottom: 8px; font-family: var(--bf-mono); }
.bf-lost-eye { color: var(--bf-accent); }
.bf-lost-h { font-size: 20px; font-weight: 700; color: var(--bf-heading); margin-bottom: 8px; }
.bf-lost-p { font-size: 13px; color: var(--bf-muted); margin-bottom: 20px; }
.bf-lost-find { display: flex; gap: 8px; max-width: 360px; margin: 0 auto 20px; }
.bf-lost-find input { flex: 1; padding: 10px 12px; border-radius: var(--bf-radius-sm); border: 1px solid var(--bf-border); background: var(--bf-bg); color: var(--bf-text); font-size: 13px; }
.bf-lost-find button { padding: 10px 16px; border-radius: var(--bf-radius-sm); background: var(--bf-accent); color: #fff; font-size: 13px; font-weight: 600; }
.bf-lost-cta-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.bf-lost-cta { padding: 8px 16px; border-radius: var(--bf-radius-sm); background: var(--bf-accent); color: #fff; font-size: 12px; font-weight: 600; }
.bf-lost-cta--ghost { background: transparent; border: 1px solid var(--bf-border); color: var(--bf-text); }

/* ===== 29. Notification bar ===== */
.bf-notice { background: var(--bf-surface); border-bottom: 1px solid var(--bf-border); padding: 8px 20px; }
.bf-notice-inner { max-width: var(--bf-max); margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.bf-notice-mark { font-weight: 700; color: var(--bf-accent); font-size: 14px; }
.bf-notice-text { flex: 1; font-size: 12px; color: var(--bf-text); }
.bf-notice-cta { font-size: 12px; font-weight: 600; color: var(--bf-accent); background: none; border: none; cursor: pointer; }
.bf-notice-x { font-size: 18px; color: var(--bf-muted); }
.bf-notice-modal { border: none; border-radius: var(--bf-radius); background: var(--bf-surface); color: var(--bf-text); padding: 0; max-width: 480px; width: 90vw; }
.bf-notice-modal::backdrop { background: rgba(0,0,0,.7); }
.bf-notice-modal-card { padding: 20px; }
.bf-notice-modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.bf-notice-modal-head h3 { font-size: 16px; font-weight: 700; color: var(--bf-heading); }
.bf-notice-modal-x { font-size: 22px; color: var(--bf-muted); }
.bf-notice-modal-body { font-size: 13px; color: var(--bf-muted); line-height: 1.6; }
.bf-notice-modal-link { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--bf-accent); font-weight: 600; }

/* ===== 30. Subscribe popup ===== */
.bf-tg-card { position: fixed; bottom: 20px; right: 20px; z-index: 1800; width: 280px; padding: 20px; border-radius: var(--bf-radius); background: var(--bf-surface); border: 1px solid var(--bf-border); box-shadow: 0 8px 32px rgba(0,0,0,.5); }
.bf-tg-x { position: absolute; top: 8px; right: 12px; font-size: 20px; color: var(--bf-muted); }
.bf-tg-icon { color: #0088cc; margin-bottom: 8px; }
.bf-tg-title { font-size: 14px; font-weight: 700; color: var(--bf-heading); margin-bottom: 6px; }
.bf-tg-msg { font-size: 12px; color: var(--bf-muted); line-height: 1.5; margin-bottom: 12px; }
.bf-tg-go { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: var(--bf-radius-sm); background: #0088cc; color: #fff; font-size: 13px; font-weight: 600; }

/* ===== 31. Share CTA ===== */
.bf-share { padding: 24px 20px; text-align: center; }
.bf-share-shell { max-width: 600px; margin: 0 auto; }
.bf-share-h { font-size: 15px; font-weight: 700; color: var(--bf-heading); margin-bottom: 2px; }
.bf-share-sub { font-size: 12px; color: var(--bf-muted); margin-bottom: 12px; }

/* ===== 32. Banner ad ===== */
.bf-banner-slot { padding: 16px 20px; text-align: center; max-width: var(--bf-max); margin: 0 auto; }

/* ===== 33. Footer ===== */
.bf-foot {
  padding: 56px 28px 24px;
  border-top: 1px solid rgba(255, 255, 255, .04);
  margin-top: 60px;
  max-width: var(--bf-max);
  margin-left: auto;
  margin-right: auto;
}
.bf-foot-shell {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  .bf-foot-shell { grid-template-columns: 1fr; gap: 32px; }
}
.bf-foot-brand-title {
  font-size: 18px; font-weight: 700;
  color: var(--bf-heading);
  margin-bottom: 12px;
}
.bf-foot-blurb {
  font-size: 13px; color: rgba(255,255,255,.55);
  line-height: 1.65;
  max-width: 380px;
}
.bf-foot-col-h {
  font-size: 14px; font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}
.bf-foot-list { display: flex; flex-direction: column; gap: 10px; }
.bf-foot-list a {
  font-size: 13px; color: rgba(255,255,255,.55);
  transition: color .15s;
}
.bf-foot-list a:hover { color: #fff; }

/* Important Notice card */
.bf-foot-notice {
  padding: 18px 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
  border: 1px dashed rgba(255, 255, 255, .08);
  margin-bottom: 24px;
}
.bf-foot-notice-h {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: #fff;
  margin-bottom: 8px;
}
.bf-foot-notice-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--bf-accent);
  box-shadow: 0 0 8px rgba(229, 62, 62, .6);
  flex-shrink: 0;
}
.bf-foot-notice-body {
  font-size: 12px; color: rgba(255,255,255,.5);
  line-height: 1.65;
}

/* Bottom rule */
.bf-foot-rule {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .04);
  font-size: 12px; color: rgba(255,255,255,.4);
}
.bf-foot-copy { margin-right: auto; }
.bf-foot-copy strong { color: rgba(255,255,255,.7); font-weight: 600; }
.bf-foot-made { color: rgba(255,255,255,.4); }
.bf-foot-heart { color: var(--bf-accent); }
.bf-foot-ver a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .15s;
}
.bf-foot-ver a:hover { color: #fff; }
@media (max-width: 640px) {
  .bf-foot-rule { justify-content: center; text-align: center; }
  .bf-foot-copy { margin-right: 0; width: 100%; }
}
