/* Bong Manga public-site refinements. Keep Latin faces and app stacks unchanged. */
@font-face {
  font-family: "Bong Bengali";
  src: url("/fonts/bl-alim-uddin-unicode.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0980-09FF;
}
@font-face {
  font-family: "Noto Sans Display";
  src: url("/fonts/bl-alim-uddin-unicode.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0980-09FF;
}
@font-face {
  font-family: "Geist Variable";
  src: url("/fonts/bl-alim-uddin-unicode.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0980-09FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/bl-alim-uddin-unicode.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0980-09FF;
}

:root { --bm-logo-size: 40px; }

/* Settings default to off. This applies to current and SPA-inserted nav links. */
body:not(.bm-show-groups) a[href="/groups"],
body:not(.bm-show-groups) a[href="/groups/"],
body:not(.bm-show-readers) a[href="/readers"],
body:not(.bm-show-readers) a[href="/readers/"] {
  display: none !important;
}

/* On mobile, the logo must not be smaller than the account avatar. */
.b-brand img,
.site-logo img,
img.site-logo {
  width: var(--bm-logo-size, 40px) !important;
  height: var(--bm-logo-size, 40px) !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  object-fit: contain !important;
  flex-shrink: 0;
}

/* The compiled nav uses a short, clipped brand box; let the larger admin-set logo fit. */
.b-brand {
  position: relative !important;
  z-index: 6 !important;
  height: auto !important;
  min-height: 3.6rem !important;
  max-height: none !important;
  overflow: visible !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  align-content: center !important;
}
.b-brand__name {
  white-space: nowrap !important;
  line-height: 1.15;
}

.b-nav__avatar,
.b-nav__avatar img {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  object-fit: cover;
  flex-shrink: 0;
}

/* Keep the sharp banner band; use that same banner for a lightly blurred backdrop. */
.b-spot__bg img.svelte-7kydqq,
.b-spot__bg img {
  filter: blur(15px) saturate(1.1) brightness(.64) !important;
  transform: scale(1.12) !important;
}
.b-spot__slide.svelte-7kydqq::after,
.b-spot__slide::after {
  background: linear-gradient(0deg, #050407f2 0%, #050407a8 42%, #05040720 76%, #05040700 100%) !important;
}


/* Manga title page: retain three clear tabs and use the freed row space modestly. */
.b-ttabs.bm-title-tabs {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: .55rem !important;
  width: 100% !important;
  max-width: min(100%, 52rem);
}
.b-ttabs.bm-title-tabs > button.bm-title-tab {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  height: 4.2rem !important;
  justify-content: center;
  gap: .55rem;
  padding-inline: .8rem;
  font-size: clamp(1.25rem, 1.5vw, 1.45rem);
}
.b-ttabs.bm-title-tabs > button[hidden] {
  display: none !important;
}
.b-empty--error.bm-not-found-card {
  width: min(100% - 2rem, 48rem);
  margin: clamp(2rem, 8vh, 6rem) auto;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 6vw, 4rem);
  border: 1px solid var(--b-fill-3, rgb(255 255 255 / .14));
  border-radius: var(--b-r-l, 2rem);
  background: radial-gradient(ellipse at 50% 0%, var(--b-wash, rgb(139 92 246 / .14)), transparent 60%), var(--b-bg-1, #121019);
  text-align: center;
  box-shadow: 0 2rem 6rem rgb(0 0 0 / .32);
}
.bm-not-found-card .b-empty__code {
  display: inline-block;
  margin-bottom: .8rem;
  color: var(--b-violet-2, #a78bfa);
  font-size: clamp(4rem, 16vw, 7rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.08em;
}
.bm-not-found-card .b-empty__title {
  display: block;
  margin: .5rem 0;
  color: var(--b-fg, #f7f5fc);
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  line-height: 1.2;
}
.bm-not-found-card .b-empty__text {
  max-width: 34rem;
  margin: .8rem auto 0;
  color: var(--b-fg-2, #dcd7e7);
  line-height: 1.7;
}
.bm-not-found-card a.b-btn {
  min-height: 4.2rem;
  margin-top: 1.3rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
}

/* Admin-disabled advanced-search controls stay hidden after Svelte re-renders. */
.bx-set[hidden],
fieldset[hidden],
.bx-tags[hidden] { display: none !important; }

/* Signed-in profile editing is embedded in the single visible Settings section. */
.bm-profile-editor {
  margin-top: 2rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--b-fill-3, rgb(255 255 255 / .18));
  border-radius: var(--b-r-m, 1rem);
}
.bm-profile-editor h2 { margin: 0; font-size: 1.35rem; font-weight: 700; }
.bm-profile-editor > p { margin: .55rem 0 1.15rem; color: var(--b-fg-2, #dcd7e7); line-height: 1.55; }
.bm-profile-editor__form { display: grid; gap: 1rem; }
.bm-profile-editor__form > label { display: grid; gap: .45rem; font-weight: 600; }
.bm-profile-editor__form input:not([type="file"]) {
  width: 100%;
  min-height: 2.8rem;
  padding: .55rem .75rem;
  border: 1px solid var(--b-fill-3, rgb(255 255 255 / .2));
  border-radius: .55rem;
  background: var(--b-bg-1, #121019);
  color: var(--b-fg, #f7f5fc);
}
.bm-profile-editor__form small { color: var(--b-fg-2, #dcd7e7); font-weight: 400; }
.bm-profile-editor__picture { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.bm-profile-editor__picture > div { display: grid; gap: .5rem; }
.bm-profile-editor__picture img { width: 4rem; height: 4rem; border: 1px solid var(--b-fill-3, rgb(255 255 255 / .2)); border-radius: 50%; object-fit: cover; }
.bm-profile-editor__status { min-height: 1.4em; margin: 0; color: var(--b-fg-2, #dcd7e7); }
.bm-profile-editor__form button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 360px) {
  .b-ttabs.bm-title-tabs > button.bm-title-tab { padding-inline: .45rem; font-size: 1.15rem; }
}
