/* BiliFans theme: Envo Shop / Bootstrap 3 inspired, dependency-free. */
:root {
  --bf-blue: #057abf;
  --bf-blue-dark: #045f95;
  --bf-focus: #1f1f1f;
  --bf-text: #404040;
  --bf-heading: #222222;
  --bf-muted: #777777;
  --bf-border: #e7e7e7;
  --bf-soft: #f7f7f7;
  --bf-white: #ffffff;
  --bf-footer: #1e1e1e;
  --bf-highlight: #fcb900;
  --bf-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; }
body.bf-body { margin: 0; color: var(--bf-text); background: var(--bf-white); font-family: var(--bf-font); font-size: 18px; line-height: 1.6; }
body.bf-nav-open { overflow: hidden; }
a { color: var(--bf-blue); text-decoration: none; }
a:hover, a:focus { color: var(--bf-blue-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; }
button, input, select { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--bf-focus); outline-offset: 3px; box-shadow: 0 0 0 5px var(--bf-white); }
.bf-search-input:focus-visible, .bf-search-select:focus-visible { position: relative; z-index: 2; outline-width: 2px; outline-offset: -2px; box-shadow: none; }
.bf-container { width: 100%; margin-right: auto; margin-left: auto; padding-right: 15px; padding-left: 15px; }
.bf-sr-only, .bf-skip { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.bf-skip:focus { top: 8px; left: 8px; z-index: 10000; width: auto; height: auto; margin: 0; clip: auto; padding: 8px 12px; background: var(--bf-white); }

/* Header */
.bf-site-header { background: var(--bf-white); }
.bf-desktop-head { min-height: 150px; display: grid; grid-template-columns: minmax(260px, 400px) minmax(330px, 1fr) minmax(145px, auto); gap: 36px; align-items: center; }
.bf-branding { min-width: 0; }
.bf-logo { color: var(--bf-heading); font-size: 27px; font-weight: 700; line-height: 1.15; text-decoration: none; }
.bf-logo:hover { text-decoration: none; }
.bf-logo-desktop img { display: block; width: auto; max-width: 400px; max-height: 120px; object-fit: contain; object-position: left center; }
.bf-site-description { margin: 5px 0 0; color: var(--bf-muted); font-size: 13px; }
.bf-search-form { width: 100%; height: 42px; display: flex; overflow: hidden; border: 2px solid var(--bf-blue); border-radius: 6px; background: var(--bf-white); }
.bf-search-input { min-width: 0; flex: 1 1 auto; border: 0; padding: 8px 13px; color: var(--bf-text); background: transparent; font-size: 14px; }
.bf-search-input::placeholder { color: #777777; }
.bf-search-select { width: 132px; border: 0; border-left: 1px solid var(--bf-border); padding: 0 26px 0 10px; color: #555555; background: var(--bf-white); font-size: 13px; }
.bf-search-button { width: 48px; flex: 0 0 48px; display: inline-flex; align-items: center; justify-content: center; border: 0; color: var(--bf-white); background: var(--bf-blue); cursor: pointer; }
.bf-search-button:hover, .bf-search-button:focus { background: var(--bf-blue-dark); }
.bf-account-area { display: flex; justify-content: flex-end; }
.bf-account-link { display: inline-flex; align-items: center; gap: 8px; color: var(--bf-heading); font-size: 14px; font-weight: 600; }
.bf-account-link:hover { color: var(--bf-blue); text-decoration: none; }
.bf-mobile-head { display: none; }

/* Desktop navigation */
.bf-main-menu { position: relative; z-index: 30; height: 50px; border-top: 1px solid var(--bf-border); border-bottom: 1px solid var(--bf-border); background: var(--bf-white); }
.bf-menu-row { height: 49px; display: flex; align-items: stretch; }
.bf-menu-main, .bf-menu-right { display: flex; align-items: stretch; }
.bf-menu-right { margin-left: auto; }
.bf-nav { display: flex; align-items: stretch; list-style: none; margin: 0; padding: 0; }
.bf-nav-item { position: relative; display: flex; align-items: stretch; }
.bf-nav-item > a { display: flex; align-items: center; padding: 0 17px; color: #333333; font-size: 14px; font-weight: 600; line-height: 49px; white-space: nowrap; }
.bf-nav-item > a:hover, .bf-nav-item > a:focus { color: var(--bf-blue); text-decoration: none; }
.bf-submenu-toggle { display: none; }
.bf-subnav, .bf-category-list { position: absolute; top: 100%; left: 0; min-width: 210px; visibility: hidden; opacity: 0; transform: translateY(5px); list-style: none; margin: 0; padding: 7px 0; border: 1px solid var(--bf-border); background: var(--bf-white); transition: opacity .16s ease, transform .16s ease, visibility .16s; }
.bf-nav-item:hover > .bf-subnav, .bf-nav-item:focus-within > .bf-subnav, .bf-category-menu:hover > .bf-category-list, .bf-category-menu:focus-within > .bf-category-list { visibility: visible; opacity: 1; transform: translateY(0); }
.bf-subnav a, .bf-category-list a { display: block; padding: 9px 16px; color: #444444; font-size: 14px; white-space: nowrap; }
.bf-subnav a:hover, .bf-category-list a:hover { color: var(--bf-blue); background: var(--bf-soft); text-decoration: none; }
.bf-category-menu { position: relative; flex: 0 0 210px; }
.bf-category-toggle { width: 100%; height: 49px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border: 0; color: var(--bf-white); background: var(--bf-blue); font-size: 14px; font-weight: 700; cursor: pointer; }
.bf-category-list { width: 100%; }

/* Mobile drawer */
.bf-menu-toggle { width: 42px; height: 42px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 0; background: transparent; cursor: pointer; }
.bf-menu-toggle span { width: 22px; height: 2px; background: var(--bf-heading); }
.bf-mobile-account { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; color: var(--bf-heading); }
.bf-drawer-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .48); }
.bf-mobile-drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 100; width: min(86vw, 340px); visibility: hidden; pointer-events: none; overflow-y: auto; padding: 0 18px 28px; background: var(--bf-white); transform: translateX(-101%); transition: transform .22s ease, visibility 0s linear .22s; }
.bf-mobile-drawer.is-open { visibility: visible; pointer-events: auto; transform: translateX(0); transition-delay: 0s; }
.bf-drawer-head { min-height: 68px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--bf-border); color: var(--bf-heading); }
.bf-drawer-close { width: 40px; height: 40px; border: 0; background: transparent; color: var(--bf-heading); font-size: 30px; line-height: 1; cursor: pointer; }
.bf-drawer-search { padding: 18px 0; }
.bf-drawer-search .bf-search-form { height: auto; flex-wrap: wrap; overflow: visible; border: 0; border-radius: 0; gap: 8px; }
.bf-drawer-search .bf-search-input { width: calc(100% - 50px); height: 42px; border: 2px solid var(--bf-blue); border-radius: 5px 0 0 5px; }
.bf-drawer-search .bf-search-button { height: 42px; margin-left: -8px; border-radius: 0 5px 5px 0; }
.bf-drawer-search .bf-search-select { width: 100%; height: 38px; border: 1px solid var(--bf-border); }
.bf-drawer-nav .bf-category-menu { width: 100%; }
.bf-drawer-nav .bf-category-toggle { height: 44px; }
.bf-drawer-nav .bf-category-list, .bf-drawer-nav .bf-subnav { position: static; display: none; visibility: visible; width: 100%; opacity: 1; transform: none; border-width: 0 1px 1px; }
.bf-drawer-nav .bf-category-menu.is-open .bf-category-list, .bf-drawer-nav .bf-nav-item.is-open > .bf-subnav { display: block; }
.bf-drawer-nav .bf-nav { display: block; }
.bf-drawer-nav .bf-nav-item { display: grid; grid-template-columns: 1fr 44px; border-bottom: 1px solid var(--bf-border); }
.bf-drawer-nav .bf-nav-item > a { min-height: 46px; padding: 0 10px; line-height: 1.3; }
.bf-drawer-nav .bf-submenu-toggle { display: block; border: 0; background: transparent; cursor: pointer; }
.bf-drawer-nav .bf-subnav { grid-column: 1 / -1; }

/* Main, banners and sections */
.bf-main { min-height: 48vh; }
.bf-banner { min-height: 280px; display: flex; align-items: center; background-position: center; background-size: cover; background-repeat: no-repeat; color: var(--bf-white); }
.bf-banner h1 { display: inline-block; margin: 0; padding: 9px 18px; color: var(--bf-white); background: rgba(0, 0, 0, .45); font-size: 38px; line-height: 1.25; }
.bf-home-section, .bf-listing-section { padding: 54px 0 68px; background-position: center; background-size: cover; background-repeat: no-repeat; }
.bf-section-head { display: flex; align-items: center; gap: 18px; margin: 0 0 32px; }
.bf-section-head h1 { margin: 0; color: var(--bf-heading); font-size: 30px; line-height: 1.3; font-weight: 600; }
.bf-section-head span { height: 1px; flex: 1; background: var(--bf-border); }
.bf-empty { margin: 0; padding: 45px 20px; color: var(--bf-muted); text-align: center; background: rgba(255, 255, 255, .88); }
.bf-more { margin: 34px 0 0; text-align: center; }
.bf-btn { display: inline-block; padding: 9px 22px; border: 1px solid var(--bf-blue); border-radius: 4px; color: var(--bf-white); background: var(--bf-blue); font-size: 14px; }
.bf-btn:hover, .bf-btn:focus { color: var(--bf-white); background: var(--bf-blue-dark); text-decoration: none; }

/* Front-end member login and registration */
.bf-member-auth { padding: 72px 0 86px; background: var(--bf-soft); }
.bf-member-auth-card { width: min(100%, 480px); margin: 0 auto; padding: 36px; border: 1px solid var(--bf-border); background: var(--bf-white); }
.bf-member-auth-card h1 { margin: 0 0 9px; color: var(--bf-heading); font-size: 30px; line-height: 1.3; }
.bf-member-auth-intro { margin: 0 0 25px; color: var(--bf-muted); font-size: 15px; }
.bf-form-message { margin: 0 0 18px; padding: 11px 13px; border: 1px solid #f0c8c8; color: #9f1e1e; background: #fff1f1; font-size: 14px; }
.bf-form-field { margin-bottom: 18px; }
.bf-form-field label { display: block; margin-bottom: 6px; color: var(--bf-heading); font-size: 14px; font-weight: 600; }
.bf-form-field input { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #cfcfcf; border-radius: 4px; color: var(--bf-text); background: var(--bf-white); font-size: 16px; }
.bf-form-field small { display: block; margin-top: 5px; color: var(--bf-muted); font-size: 12px; }
.bf-member-submit { width: 100%; min-height: 44px; cursor: pointer; }
.bf-member-auth-switch { margin: 20px 0 0; text-align: center; font-size: 14px; }

/* Home and archive single-column rows */
.bf-home-posts { display: grid; gap: 30px; }
.bf-archive-posts { display: grid; gap: 31.5px; }
.bf-post-row { display: grid; grid-template-columns: minmax(260px, 36%) minmax(0, 1fr); gap: 32px; align-items: center; padding-bottom: 30px; border-bottom: 1px solid var(--bf-border); }
.bf-post-row:last-child { border-bottom: 0; }
.bf-post-media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--bf-soft); }
.bf-post-media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.bf-post-media:hover img { transform: scale(1.02); }
.bf-media-placeholder { width: 100%; height: 100%; display: block; background: var(--bf-soft); }
.bf-post-body { min-width: 0; }
.bf-post-title { margin: 0 0 12px; font-size: 26px; line-height: 1.35; font-weight: 600; }
.bf-post-title a:hover { text-decoration: none; }
.bf-post-excerpt { margin: 0 0 18px; color: var(--bf-text); font-size: 17px; line-height: 1.7; }
.bf-paywall-cta { margin: 0; font-size: 18px; line-height: 28.8px; }
.bf-paywall-cta a { display: inline-block; color: #000000; font-weight: 700; }
.bf-paywall-cta a:hover, .bf-paywall-cta a:focus { color: #000000; text-decoration: none; }
.bf-paywall-cta mark { display: inline-block; padding: 3.6px; border-radius: 0; color: #000000; background: var(--bf-highlight); }

/* The source news archive uses an 816px list with a 300px image column. */
.bf-news-archive .bf-container { width: 846px; max-width: 100%; }
.bf-news-archive .bf-section-head { margin-bottom: 46px; }
.bf-news-archive .bf-section-head h1 { font-size: 36px; }
.bf-news-archive .bf-post-row { grid-template-columns: 40.7353% minmax(0, 58.1618%); gap: 1.1029%; align-items: start; padding: 0; border: 0; }
.bf-news-archive .bf-post-media { width: 300px; height: 200px; aspect-ratio: auto; }
.bf-news-archive .bf-post-title { margin: 20px 0 10px; font-size: 24px; line-height: 26.4px; font-weight: 700; letter-spacing: -.48px; }
.bf-news-archive .bf-post-title a { color: #0693e3; }
.bf-news-archive .bf-post-title a:hover, .bf-news-archive .bf-post-title a:focus { color: #0575b5; }
.bf-news-archive .bf-post-excerpt { margin-bottom: 20px; color: #000000; font-size: 18px; line-height: 28.8px; font-weight: 300; }

/* Archive and category cards */
.bf-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 34px; }
.bf-post-card { min-width: 0; }
.bf-card-media { display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 20px; background: var(--bf-soft); box-shadow: 0 5px 5px rgba(0, 0, 0, .2); }
.bf-card-media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.bf-card-media:hover img { transform: scale(1.025); }
.bf-card-body { padding: 22px 7px 0; }
.bf-card-title { margin: 0 0 10px; font-size: 24px; line-height: 1.4; font-weight: 600; }
.bf-card-title a:hover { text-decoration: none; }
.bf-card-excerpt { margin: 0 0 13px; color: var(--bf-text); font-size: 16px; line-height: 1.65; }

/* Pagination */
.bf-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 48px; }
.bf-pagination a { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--bf-border); color: var(--bf-text); background: var(--bf-white); font-size: 14px; }
.bf-pagination a:hover, .bf-pagination a.current { border-color: var(--bf-blue); color: var(--bf-white); background: var(--bf-blue); text-decoration: none; }

/* Article and static pages */
.bf-content-shell { padding-top: 55px; padding-bottom: 75px; }
.bf-article { max-width: 930px; margin: 0 auto; }
.bf-article-head { margin-bottom: 27px; text-align: center; }
.bf-cat-badge { display: inline-block; margin-bottom: 12px; padding: 3px 11px; border-radius: 3px; color: var(--bf-white); background: var(--bf-blue); font-size: 13px; }
.bf-cat-badge:hover { color: var(--bf-white); text-decoration: none; }
.bf-article-title, .bf-page-head h1 { margin: 0 0 12px; color: var(--bf-heading); font-size: 38px; line-height: 1.3; font-weight: 600; }
.bf-article-meta { color: var(--bf-muted); font-size: 14px; }
.bf-article-cover { margin: 0 0 34px; text-align: center; }
.bf-article-cover img { display: block; margin: 0 auto; }
.bf-entry-content { color: #404040; font-size: 18px; line-height: 1.6; overflow-wrap: anywhere; }
.bf-entry-content p { margin: 0 0 1.35em; }
.bf-entry-content h1, .bf-entry-content h2, .bf-entry-content h3, .bf-entry-content h4 { margin: 1.4em 0 .65em; color: var(--bf-heading); line-height: 1.35; }
.bf-entry-content a { color: var(--bf-blue); }
.bf-entry-content img { height: auto; }
.bf-entry-content iframe, .bf-entry-content video { max-width: 100%; }
.bf-entry-content iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.bf-entry-content blockquote { margin: 1.5em 0; padding: 14px 20px; border-left: 4px solid var(--bf-blue); background: var(--bf-soft); }
.bf-entry-content table { width: 100%; border-collapse: collapse; }
.bf-entry-content th, .bf-entry-content td { padding: 9px; border: 1px solid var(--bf-border); }
.bf-related { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--bf-border); }
.bf-related h2 { margin: 0 0 12px; color: var(--bf-heading); font-size: 22px; }
.bf-related ul { margin: 0; padding-left: 22px; }
.bf-page-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 55px; padding-top: 55px; padding-bottom: 75px; }
.bf-page-head { margin-bottom: 25px; }
.bf-sidebar { min-width: 0; }
.bf-widget { margin-bottom: 34px; padding: 24px; border: 1px solid var(--bf-border); }
.bf-widget h2 { margin: 0 0 18px; color: var(--bf-heading); font-size: 20px; }
.bf-widget .bf-search-form { height: auto; display: grid; grid-template-columns: 1fr 44px; overflow: visible; border: 0; gap: 9px 0; }
.bf-widget .bf-search-input { height: 42px; border: 2px solid var(--bf-blue); border-radius: 5px 0 0 5px; }
.bf-widget .bf-search-button { height: 42px; border-radius: 0 5px 5px 0; }
.bf-widget .bf-search-select { grid-column: 1 / -1; width: 100%; height: 40px; border: 1px solid var(--bf-border); }
.bf-sidebar-categories { list-style: none; margin: 0; padding: 0; }
.bf-sidebar-categories li { border-bottom: 1px solid var(--bf-border); }
.bf-sidebar-categories li:last-child { border-bottom: 0; }
.bf-sidebar-categories a { display: block; padding: 8px 0; }
.bf-not-found { padding: 90px 0 110px; text-align: center; }
.bf-error-code { margin: 0; color: var(--bf-blue); font-size: 92px; line-height: 1; font-weight: 700; }
.bf-not-found h1 { margin: 18px 0 10px; color: var(--bf-heading); }
.bf-not-found .bf-btn { margin-top: 16px; }

/* Footer */
.bf-footer { padding: 42px 0; color: #c7c7c7; background-color: var(--bf-footer); background-position: center; background-size: cover; background-repeat: no-repeat; font-size: 14px; }
.bf-footer-inner { text-align: center; }
.bf-footer-nav { display: flex; justify-content: center; margin-bottom: 12px; }
.bf-footer-nav .bf-nav-item > a { color: #dddddd; line-height: 1.4; padding: 5px 12px; }
.bf-footer-nav .bf-nav-item > a:hover { color: var(--bf-white); }
.bf-footer-credits { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.bf-footer-credits a { color: #dddddd; }
.bf-sep { margin: 0 4px; }

@media (min-width: 768px) { .bf-container { width: 750px; } }
@media (min-width: 992px) { .bf-container { width: 970px; } }
@media (min-width: 1200px) { .bf-container { width: 1170px; } }
@media (min-width: 1430px) { .bf-container { width: 1400px; } }

@media (max-width: 991px) {
  .bf-desktop-head, .bf-main-menu { display: none; }
  .bf-mobile-head { min-height: 68px; display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; padding: 0 10px; border-bottom: 1px solid var(--bf-border); }
  .bf-logo-mobile { justify-self: center; min-width: 0; max-width: 220px; text-align: center; }
  .bf-logo-mobile img { display: block; width: auto; max-width: 220px; max-height: 52px; object-fit: contain; }
  .bf-banner { min-height: 220px; }
  .bf-card-grid { gap: 36px 24px; }
  .bf-page-layout { gap: 32px; }
}

@media (max-width: 781px) {
  .bf-news-archive .bf-post-row { grid-template-columns: 1fr; gap: 18px; }
  .bf-news-archive .bf-post-media { width: 100%; height: auto; aspect-ratio: 3 / 2; }
}

@media (max-width: 767px) {
  body.bf-body { font-size: 16px; }
  .bf-banner { min-height: 170px; }
  .bf-banner h1 { font-size: 28px; }
  .bf-home-section, .bf-listing-section { padding: 38px 0 48px; }
  .bf-section-head { margin-bottom: 24px; }
  .bf-section-head h1 { font-size: 25px; }
  .bf-post-row { grid-template-columns: 128px minmax(0, 1fr); gap: 16px; align-items: start; padding-bottom: 22px; }
  .bf-post-title { margin-bottom: 6px; font-size: 18px; }
  .bf-post-excerpt { display: -webkit-box; margin-bottom: 8px; overflow: hidden; font-size: 14px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .bf-paywall-cta { font-size: 12px; }
  .bf-archive-posts { gap: 42px; }
  .bf-news-archive .bf-section-head { margin-bottom: 28px; }
  .bf-news-archive .bf-section-head h1 { font-size: 28px; }
  .bf-news-archive .bf-post-row { grid-template-columns: 1fr; gap: 18px; }
  .bf-news-archive .bf-post-title { margin: 20px 0 10px; font-size: 24px; line-height: 26.4px; }
  .bf-news-archive .bf-post-excerpt { display: block; margin-bottom: 20px; overflow: visible; font-size: 18px; line-height: 28.8px; }
  .bf-news-archive .bf-paywall-cta { font-size: 18px; }
  .bf-card-grid { grid-template-columns: 1fr; gap: 38px; }
  .bf-card-body { padding-top: 17px; }
  .bf-card-title { font-size: 21px; }
  .bf-content-shell { padding-top: 38px; padding-bottom: 52px; }
  .bf-article-title, .bf-page-head h1 { font-size: 28px; }
  .bf-entry-content { font-size: 18px; line-height: 1.6; }
  .bf-page-layout { grid-template-columns: 1fr; padding-top: 38px; padding-bottom: 52px; }
  .bf-sidebar { border-top: 1px solid var(--bf-border); padding-top: 35px; }
  .bf-footer { padding: 32px 0; }
  .bf-footer-nav .bf-nav { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .bf-logo-mobile { max-width: 180px; font-size: 21px; }
  .bf-logo-mobile img { max-width: 180px; max-height: 46px; }
  .bf-post-row { grid-template-columns: 1fr; }
  .bf-post-media { aspect-ratio: 16 / 9; }
  .bf-news-archive .bf-container { width: 318px; }
  .bf-news-archive .bf-post-media { width: 288px; height: 200px; aspect-ratio: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .bf-post-media:hover img, .bf-card-media:hover img { transform: none; }
}
