.suggest-page, .community-panel {
  --sg-bg: #0b0d14;
  --sg-panel: #141722;
  --sg-control: #10131d;
  --sg-text: #f7f8fc;
  --sg-muted: #a4adc2;
  --sg-border: #2c3445;
  --sg-accent: #ff6379;
  --sg-positive: #ff5875;
  --sg-negative: #7c89a8;
  --sg-green: #72e3ad;
  --sg-green-bg: #16372d;
}
html[data-theme=light] .suggest-page, html[data-theme=light] .community-panel {
  --sg-bg: #f7f8fc;
  --sg-panel: #fff;
  --sg-control: #f6f7fb;
  --sg-text: #181c29;
  --sg-muted: #4e596d;
  --sg-border: #d9deea;
  --sg-accent: #ab1337;
  --sg-positive: #c61c45;
  --sg-negative: #7888aa;
  --sg-green: #126645;
  --sg-green-bg: #e2f5eb;
}
.suggest-page { margin: 0; background: var(--sg-bg); color: var(--sg-text); font: 400 15px/1.6 "DM Sans", system-ui, sans-serif; }
.suggest-page *, .community-panel * { box-sizing: border-box; }
.suggest-page a { color: inherit; text-decoration: none; }
.suggest-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 30;
  border-bottom: 1px solid var(--sg-border);
  background: color-mix(in srgb, var(--sg-bg) 90%, transparent);
  backdrop-filter: blur(16px);
  transition: transform .22s ease;
}
.suggest-header.is-away:not(:has(:focus-visible)) { transform: translateY(-105%); }
.suggest-header-inner, .suggest-shell { width: min(1160px, 100% - 48px); margin-inline: auto; }
.suggest-header-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.suggest-brand, .suggest-header-actions { display: flex; align-items: center; gap: 13px; }
.suggest-brand { flex: none; font: 800 24px/1.1 "Manrope", system-ui, sans-serif; letter-spacing: -.05em; }
.suggest-brand b { color: var(--sg-accent); }
.suggest-brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(155deg,#fb2137,#9b0928); color: white; }
.suggest-home { font-size: .875rem; font-weight: 650; }
.suggest-home:hover { text-decoration: underline; }
.suggest-header-search {
  position: relative;
  flex: 1 1 340px;
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-inline: auto;
  padding-inline: 14px;
  border: 1px solid color-mix(in srgb, var(--sg-border) 68%, var(--sg-accent));
  border-radius: 13px;
  background: linear-gradient(105deg, color-mix(in srgb, var(--sg-accent) 9%, var(--sg-panel)), var(--sg-control) 52%);
}
.suggest-header-search:focus-within {
  border-color: var(--sg-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sg-accent) 17%, transparent);
}
.suggest-search-icon { position: relative; flex: none; width: 13px; height: 13px; border: 1.7px solid var(--sg-accent); border-radius: 50%; }
.suggest-search-icon::after { position: absolute; content: ""; width: 6px; height: 1.7px; background: var(--sg-accent); transform: rotate(45deg); right: -5px; bottom: -2px; }
.suggest-header-search input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 6px 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--sg-text);
  color-scheme: dark;
  font: 600 .91rem/1.4 "DM Sans", system-ui, sans-serif;
}
html[data-theme=light] .suggest-header-search input { color-scheme: light; }
.suggest-header-search input::placeholder { color: var(--sg-muted); opacity: 1; }
.suggest-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-block: 25px 32px;
  padding: clamp(24px, 4vw, 45px);
  border: 1px solid var(--sg-border);
  border-radius: 20px;
  background: radial-gradient(ellipse at 100% 115%, #a6143662, transparent 65%), var(--sg-panel);
}
.suggest-hero-copy { position: relative; z-index: 2; width: min(100%, 660px); }
.suggest-hero.has-covers .suggest-hero-copy { max-width: 64%; }
.suggest-cover-wall {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(49%, 540px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-inline-end: 15px;
  opacity: .76;
  mask-image: linear-gradient(to right, transparent 1%, #000 30%);
  transform: rotate(-9deg) scale(1.12);
  pointer-events: none;
}
.suggest-cover-wall img { width: 32%; height: auto; aspect-ratio: 2/3; object-fit: cover; min-width: 0; border-radius: 11px; border: 1px solid #ffffff35; background: var(--sg-panel); }
.suggest-cover-wall img:nth-child(2) { translate: 0 15%; }
.suggest-cover-wall img:nth-child(3) { translate: 0 -14%; }
.suggest-kicker { margin: 0 0 13px; color: var(--sg-accent); font-weight: 800; font-size: .72rem; letter-spacing: .15em; }
.suggest-hero h1, .suggest-form-card h1 { margin: 0; font-family: "Manrope", system-ui, sans-serif; font-size: clamp(2rem, 5vw, 3.45rem); line-height: 1.1; font-weight: 800; letter-spacing: -.045em; text-wrap: balance; }
html[lang=bn] .suggest-hero h1, html[lang=bn] .suggest-kicker { letter-spacing: 0; }
.suggest-hero h1 + p { max-width: 455px; margin: 13px 0 20px; color: var(--sg-muted); font-size: clamp(.94rem, 1.6vw, 1.06rem); }
.suggest-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(285px, 320px); grid-template-areas: "board sponsor"; align-items: start; gap: 28px; padding-bottom: 60px; }
.suggest-layout:not(:has(.suggest-ad:is(.is-filled,.is-loading))) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "board"; width: min(100%, 900px); margin-inline: auto; }
.suggest-layout:not(:has(.suggest-ad:is(.is-filled,.is-loading))) .suggest-side { position: absolute; inset: 0 0 auto auto; width: min(100%, 320px); height: 0; }
.suggest-side { grid-area: sponsor; position: sticky; inset-block-start: 78px; min-width: 0; }
.suggest-side .suggest-ad:is(.is-filled,.is-loading) { padding: 13px 8px; margin: 0; border: 1px solid var(--sg-border); border-radius: 14px; background: var(--sg-panel); }
.suggest-request { width: min(100%, 650px); margin: 30px auto 65px; }
.suggest-form-card, .suggest-item {
  padding: 22px;
  background: var(--sg-panel);
  border: 1px solid var(--sg-border);
  border-radius: 16px;
}
.suggest-form-card { padding: clamp(19px, 5vw, 34px); }
.suggest-form-card h1 { font-size: clamp(1.7rem, 5vw, 2.5rem); }
.suggest-board { grid-area: board; scroll-margin-top: 118px; }
.suggest-board h2, .suggest-studio h2 { margin: 0 0 12px; color: var(--sg-text); font: 800 clamp(1.25rem, 2vw, 1.58rem)/1.3 "Manrope", system-ui, sans-serif; }
.suggest-feed-return { margin-bottom: 12px; }
.suggest-form-card h1 + p { margin: 8px 0 19px; }
.suggest-muted { color: var(--sg-muted); font-size: .89rem; }
.suggest-studio { padding: 18px 0 8px; }
.suggest-studio-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.suggest-studio-heading a { text-decoration: none; }
.community-panel input, .community-panel textarea, .community-panel select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 43px;
  border: 1px solid var(--sg-border);
  border-radius: 8px;
  background: var(--sg-control);
  color: var(--sg-text);
  padding: 8px 10px;
  font: inherit;
  color-scheme: dark;
}
html[data-theme=light] .community-panel :is(input,textarea,select) { color-scheme: light; }
.community-panel :is(input,textarea)::placeholder { color: var(--sg-muted); opacity: 1; }
.community-panel :is(input,textarea,select):focus-visible { outline: 2px solid var(--sg-accent); outline-offset: 2px; }
.community-panel textarea { resize: vertical; }
.community-panel :is(label,.suggest-field) { display: grid; min-width: 0; align-content: start; gap: 5px; color: var(--sg-text); font-size: .875rem; font-weight: 650; }
.community-panel select[hidden], .suggest-page [hidden] { display: none !important; }
.suggest-choice { position: relative; min-width: 0; }
.suggest-choice summary {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 43px;
  padding: 8px 11px; border: 1px solid var(--sg-border); border-radius: 8px; background: var(--sg-control); cursor: pointer;
  list-style: none;
}
.suggest-choice summary::-webkit-details-marker { display: none; }
.suggest-choice summary::after { content: ""; border: solid var(--sg-muted); border-width: 0 1.5px 1.5px 0; width: 6px; height: 6px; transform: rotate(45deg); flex: none; margin: -4px 2px 0 0; }
.suggest-choice[open] summary { border-color: var(--sg-accent); }
.suggest-choice[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.suggest-choice-options {
  position: absolute; inset: calc(100% + 6px) 0 auto; z-index: 8; display: grid; gap: 3px; padding: 5px;
  min-width: 100%; max-height: min(295px, 45vh); overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--sg-border) var(--sg-panel);
  border: 1px solid var(--sg-border); border-radius: 9px; background: var(--sg-panel); box-shadow: 0 12px 24px #0004;
}
.suggest-choice:not([open]) .suggest-choice-options { display: none; }
.suggest-choice-options button { display: block; width: 100%; min-height: 37px; text-align: start; padding: 6px 9px; border: 0; border-radius: 5px; background: transparent; color: var(--sg-text); font: inherit; cursor: pointer; }
.suggest-choice-options button:hover, .suggest-choice-options button[aria-pressed=true] { background: color-mix(in srgb, var(--sg-accent) 14%, var(--sg-panel)); }
.suggest-choice-options button[aria-pressed=true] { color: var(--sg-accent); }
.suggest-form-card form { display: grid; gap: 12px; }
.suggest-form-card input[type=file] { padding: 4px; color: var(--sg-muted); }
.suggest-form-card input::file-selector-button {
  margin-right: 10px; padding: 6px 9px; border: 1px solid var(--sg-border); border-radius: 5px;
  color: var(--sg-text); background: var(--sg-panel); cursor: pointer; font: inherit;
}
.suggest-poster-preview { display: flex; align-items: center; gap: 10px; }
.suggest-poster-preview img { display: block; width: 52px; height: 72px; object-fit: cover; border: 1px solid var(--sg-border); border-radius: 6px; }
.suggest-tmdb-selection {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: start;
  gap: 11px;
  padding: 11px;
  border: 1px solid var(--sg-border);
  border-radius: 9px;
  background: var(--sg-control);
}
.suggest-tmdb-selection img { width: 48px; height: 66px; border-radius: 5px; object-fit: cover; }
.suggest-tmdb-selection small { display: block; color: var(--sg-accent); }
.suggest-tmdb-selection p { margin: 5px 0 0; color: var(--sg-muted); font-size: .83rem; overflow-wrap: anywhere; }
.suggest-tmdb-selection strong { overflow-wrap: anywhere; }
.suggest-year { color: var(--sg-muted); font-size: .82em; font-weight: 600; }
.suggest-overview { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.suggest-form-status { min-height: 1.4em; margin: 0; }
.suggest-filters { display: grid; grid-template-columns: minmax(190px,1.5fr) repeat(2,minmax(125px,1fr)); gap: 10px; }
.suggest-feed-filters { grid-template-columns: repeat(2, minmax(0, 190px)); }
.suggest-studio .suggest-filters { grid-template-columns: minmax(190px,1.5fr) repeat(3,minmax(125px,1fr)); }
.suggest-control, .suggest-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 37px;
  border: 1px solid var(--sg-border);
  border-radius: 8px;
  padding: 6px 11px;
  background: var(--sg-control);
  color: var(--sg-text);
  cursor: pointer;
  font: 680 .875rem/1.4 "DM Sans", system-ui, sans-serif;
}
.suggest-primary, .suggest-page a.suggest-primary { min-height: 43px; padding-inline: 15px; background: #c21535; border-color: #c21535; color: #fff; }
.suggest-primary:hover { background: #a9112c; }
.suggest-control:hover { border-color: var(--sg-accent); }
.suggest-control[hidden] { display: none; }
.community-panel button:disabled { opacity: .6; cursor: default; }
.suggest-status { margin: 8px 0; }
.suggest-status:empty { margin: 0 0 13px; }
.suggest-items { display: grid; gap: 11px; }
.suggest-empty { margin-top: 14px; padding: clamp(18px,4vw,32px); border: 1px dashed var(--sg-border); border-radius: 14px; background: var(--sg-panel); }
.suggest-empty h3 { margin: 0; font: 800 1.15rem/1.35 "Manrope", system-ui, sans-serif; }
.suggest-empty p { margin: 7px 0 14px; }
.suggest-item { min-width: 0; overflow-wrap: anywhere; scroll-margin-top: 85px; }
.suggest-item:is(:target,.is-highlighted) { border-color: var(--sg-accent); }
.suggest-item.has-poster { position: relative; overflow: hidden; isolation: isolate; }
.suggest-item-backdrop {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: min(67%, 660px);
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  opacity: .85;
  filter: brightness(1.22);
  mask-image: linear-gradient(to right, transparent 0%, #000 40%);
  pointer-events: none;
}
html[data-theme=light] .suggest-item-backdrop { filter: none; }
.suggest-item:has(> .suggest-item-backdrop) .suggest-item-heading {
  max-width: 66%;
  text-shadow: 0 1px 2px var(--sg-panel), 0 0 5px var(--sg-panel);
}
.suggest-item-heading { display: flex; align-items: center; min-width: 0; gap: 13px; }
.suggest-item-heading > div { min-width: 0; }
.suggest-item.has-poster .suggest-item-heading { margin-top: 11px; }
.suggest-item-poster { flex: none; display: block; object-fit: cover; border-radius: 7px; border: 1px solid var(--sg-border); }
.suggest-item h3 { margin: 8px 0; color: var(--sg-text); line-height: 1.25; font-size: 1.15rem; }
.suggest-item-meta, .suggest-card-bottom { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.suggest-item-meta { font-size: .8rem; color: var(--sg-muted); }
.suggest-item-icon, .suggest-match-icon { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--sg-border); border-radius: 10px; color: var(--sg-accent); background: color-mix(in srgb,var(--sg-panel) 80%, var(--sg-accent)); font-size: .74rem; }
.suggest-type { color: var(--sg-accent); font-weight: 750; }
.suggest-visibility { margin-inline-start: auto; color: var(--sg-text); }
.suggest-item:has(> .suggest-item-backdrop) .suggest-visibility {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--sg-panel);
}
.suggest-note { color: var(--sg-muted); white-space: pre-wrap; margin: 0 0 11px; }
.suggest-meter { display: flex; height: 5px; border-radius: 9px; background: var(--sg-border); overflow: hidden; margin: 12px 0 8px; }
.suggest-meter span { background: var(--sg-positive); }
.suggest-meter i { background: var(--sg-negative); }
.suggest-card-bottom { justify-content: space-between; }
.suggest-vote-summary { color: var(--sg-text); font-size: .82rem; }
.suggest-vote-summary span { color: var(--sg-muted); }
.suggest-vote-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.suggest-yes span, .suggest-studio [data-operation=delete] { color: var(--sg-accent); }
.suggest-yes[aria-pressed=true] { border-color: var(--sg-accent); color: var(--sg-accent); }
.suggest-no[aria-pressed=true] { border-color: var(--sg-negative); background: var(--sg-border); }
.suggest-more { margin: 14px 0 0; }
.suggest-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 22px 0 0; }
.suggest-pagination a { min-width: 37px; }
.suggest-pagination a[aria-current=page] { color: var(--sg-accent); border-color: var(--sg-accent); background: color-mix(in srgb,var(--sg-accent) 14%,var(--sg-panel)); }
.suggest-top { position: fixed; inset: auto max(14px, calc((100vw - 1190px) / 2)) max(15px, env(safe-area-inset-bottom)) auto; z-index: 12; box-shadow: 0 6px 22px #0004; }
[data-suggest-matches]:not([hidden]) { margin: 8px 0 13px; padding: 9px; border: 1px solid var(--sg-border); background: var(--sg-control); border-radius: 10px; }
.suggest-header-search [data-suggest-matches]:not([hidden]) {
  position: absolute;
  inset: calc(100% + 5px) 0 auto;
  z-index: 1;
  margin: 0;
  max-height: min(360px, 57vh);
  overflow-y: auto;
  background: var(--sg-panel);
  box-shadow: 0 14px 30px #0004;
  overscroll-behavior: contain;
}
.suggest-header-search:not(:focus-within) [data-suggest-matches] { display: none; }
.suggest-form-card [data-suggest-matches]:not([hidden]) { margin: -5px 0 0; }
[data-suggest-matches] p { margin: 2px 5px 6px; }
.suggest-match-title { color: var(--sg-accent); font-size: .78rem; font-weight: 750; }
.suggest-match-title.is-available { color: var(--sg-green); }
[data-suggest-matches] ul + .suggest-match-title { margin-top: 12px; }
[data-suggest-matches] ul { display: grid; gap: 3px; padding: 0; margin: 0; list-style: none; }
[data-suggest-matches] :is(a,.suggest-match-button) { display: grid; grid-template-columns: 35px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 5px; border-radius: 7px; overflow-wrap: anywhere; }
.suggest-match-button { width: 100%; text-align: start; color: inherit; font: inherit; background: none; border: 0; cursor: pointer; }
[data-suggest-matches] :is(a,.suggest-match-button):hover { background: var(--sg-panel); }
[data-suggest-matches] img { display: block; object-fit: cover; border-radius: 5px; }
[data-suggest-matches] strong, [data-suggest-matches] small { display: block; line-height: 1.35; }
[data-suggest-matches] small { color: var(--sg-muted); }
.suggest-match-action {
  padding: 4px 7px;
  border: 1px solid currentColor;
  border-radius: 7px;
  font-size: .75rem;
  font-weight: 750;
  white-space: nowrap;
}
.suggest-match-action.is-request { color: var(--sg-green); background: var(--sg-green-bg); }
.suggest-match-action.is-watch { color: var(--sg-accent); background: color-mix(in srgb, var(--sg-accent) 12%, var(--sg-panel)); }
.suggest-credits { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 12px; padding: 12px 0 24px; border-top: 1px solid var(--sg-border); color: var(--sg-muted); }
.suggest-credits img { display: block; width: 52px; height: auto; }
@media (prefers-reduced-motion: reduce) { .suggest-header { transition: none; } }
@media (max-width: 880px) {
  .suggest-filters, .suggest-studio .suggest-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .suggest-keywords { grid-column: 1 / -1; }
  .suggest-layout, .suggest-layout:not(:has(.suggest-ad:is(.is-filled,.is-loading))) {
    gap: 14px; grid-template-columns: minmax(0,1fr); grid-template-areas: "sponsor" "board";
  }
  .suggest-side { position: static; }
  .suggest-side .suggest-ad:is(.is-filled,.is-loading) { width: min(100%, 340px); margin-inline: auto; }
  .suggest-layout:not(:has(.suggest-ad:is(.is-filled,.is-loading))) { grid-template-areas: "board"; }
}
@media (max-width: 640px) {
  .suggest-header-inner, .suggest-shell { width: calc(100% - 28px); }
  .suggest-header-inner { min-height: 58px; gap: 7px; }
  .suggest-page[data-view=feed] .suggest-header-inner { display: grid; grid-template-columns: minmax(0,1fr) auto; padding-block: 8px; }
  .suggest-header-search { grid-row: 2; grid-column: 1 / -1; max-width: none; }
  .suggest-header-search input { min-height: 37px; }
  .suggest-brand, .suggest-header-actions { gap: 7px; }
  .suggest-brand { font-size: 20px; }
  .suggest-brand-mark { width: 29px; height: 31px; }
  .suggest-page .suggest-header-actions :is(a.suggest-primary,button.suggest-control) { padding: 5px 8px; min-height: 35px; font-size: .79rem; white-space: nowrap; }
  .suggest-hero { margin-block: 16px 22px; }
  .suggest-hero.has-covers .suggest-hero-copy { max-width: 100%; }
  .suggest-cover-wall { inset-block-start: 0; inset-block-end: auto; height: 100%; width: 54%; opacity: .21; }
  .suggest-cover-wall img { width: 54%; }
  .suggest-item { padding: 15px; }
  .suggest-item-backdrop { width: 60%; }
  .suggest-item:has(> .suggest-item-backdrop) .suggest-item-heading { max-width: 76%; }
  .suggest-pagination { gap: 5px; }
  .suggest-tmdb-selection { grid-template-columns: auto minmax(0,1fr); }
  .suggest-tmdb-selection button { grid-column: 2; justify-self: start; }
  .suggest-page[data-view=feed] .suggest-header-actions .suggest-home { display: none; }
}
