@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&display=swap');

@font-face {
  font-family: 'Proxima Vara';
  src: url('assets/fonts/proximavara.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

@font-face {
  font-family: 'Material Symbols Sharp';
  src: url('assets/fonts/icons.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: block;
}

/*//////////////////////////////////////////////////////////////////////*/

.ms {
  font-family: 'Material Symbols Sharp'; font-weight: 400; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center;
  vertical-align: middle;
  font-feature-settings: 'liga'; text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  flex-shrink: 0;
  letter-spacing: normal; word-wrap: normal; white-space: nowrap;
  direction: ltr;
}

/* mix of tiktok and other weirdness */
:root {
  --bg: #040404;
  --fg: #f3f3f3;
  --card: #0d0d0e;
  --secondary: #1a1a1c;
  --border: #232327;
  --mutedfg: #8a8a90;
  --primary: #fe2858;
  --primarysoft: rgba(254, 40, 88, 0.10);
  --primarystrong: rgba(254, 40, 88, 0.30);
  --primarypale: #de8c9d;
  --accent: #2af0ea;
  --accentsoft: rgba(42, 240, 234, 0.10);
  --secondaryblue: #397684;
  --secondarybluesoft: rgba(57, 118, 132, 0.18);
  --destructive: #fe2858;
  --bottomnavh: 4.25rem;
  --radius: 0.75rem;
}

/*//////////////////////////////////////////////////////////////////////*/

* {
  box-sizing: border-box;
}
html, body {
  margin: 0; padding: 0;
  height: 100%;
}
html, body, * {
  scrollbar-width: none; -ms-overflow-style: none;
}
body {
  background: #000; color: var(--fg);
  font-family: 'Proxima Vara', 'Proxima Nova', system-ui, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  display: flex; justify-content: center;
}

.appframe {
  position: relative;
  width: 100%; max-width: calc(100dvh * 9 / 16); height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.rootcontainer {
  height: 100%;
  overflow-y: auto;
}

*::-webkit-scrollbar {
  display: none;
  width: 0; height: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}
input, textarea {
  font-family: inherit;
}
a {
  color: inherit;
}
img, video {
  display: block;
  max-width: 100%;
}

.screen {
  min-height: 100%;
}
.withbottomnav {
  padding-bottom: var(--bottomnavh);
}

.bootscreen {
  display: flex; align-items: center; justify-content: center;
  height: 100%;
}
.containerxl {
  max-width: 42rem;
  margin: 0 auto; padding: 1rem;
}

.center {
  display: flex; align-items: center; justify-content: center;
}

.row {
  display: flex; align-items: center; gap: 0.75rem;
}
.hidden {
  display: none !important;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  border: none; border-radius: var(--radius);
  background: var(--primary); color: white;
  font-weight: 600;
  padding: 0 1rem;
  height: 2.75rem;
  font-size: 0.875rem;
  transition: opacity 0.15s, background 0.15s;
}

.btn:hover {opacity: 0.9}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.btnsecondary {background: var(--secondary); color: var(--fg)}
.btndestructive {background: var(--destructive); color: white}

.btnsm {
  height: 2.25rem;
  padding: 0 0.75rem;
  font-size: 0.8rem;
}
.input {
  width: 100%; height: 2.75rem;
  padding: 0 0.75rem;
  background: var(--secondary); color: var(--fg);
  border: none; border-radius: 0.5rem;
  font-size: 0.875rem;
  outline: none;
}

.input:focus {box-shadow: 0 0 0 2px var(--primarysoft)}

.inputh10 {height: 2.5rem}
.inputh9 {height: 2.25rem}
.inputwrap {position: relative}
.inputiconleft {padding-left: 2.25rem}
.inputiconright {padding-right: 2.25rem}

.inputaffixleft,
.inputaffixright {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  display: flex; align-items: center;
  color: var(--mutedfg);
}

.inputaffixleft {left: 0.75rem}
.inputaffixright {right: 0.75rem}

.inputaffixright.clickable {
  cursor: pointer;
  background: none;
  border: none;
}

.label {
  display: block;
  font-size: 0.75rem;
  color: var(--mutedfg);
  margin-bottom: 0.375rem;
}
.badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.6875rem; font-weight: 600;
  background: var(--secondary); color: var(--fg);
}

.badgeratings {
  background: rgba(60, 200, 100, 0.12); color: #4cdd7a;
}
.badgeratingq {
  background: rgba(240, 200, 60, 0.12); color: #ffd966;
}
.badgeratinge {
  background: rgba(240, 80, 80, 0.12); color: #ff7878;
}
/*//////////////////////////////////////////////////////////////////////*/

/* tag highlight v1 */
:root {
  --taggeneral: #b4c7d9;
  --tagartist: #fbd67f;
  --tagcharacter: #2bff2b;
  --tagcopyright: #ff5eff;
  --tagspecies: #f6b295;
  --tagmeta: #d4d4d4;
  --taglore: #5fdb5f;
  --taginvalid: #ff7d7d;
}

/* tag highlight v2 */
.tagartist {
  background: rgba(242, 172, 8, 0.10); color: var(--tagartist);
  border-color: rgba(242, 172, 8, 0.25);
}
.tagcharacter {
  background: rgba(0, 170, 0, 0.10); color: var(--tagcharacter);
  border-color: rgba(0, 170, 0, 0.25);
}
.tagcopyright {
  background: rgba(221, 0, 221, 0.10); color: var(--tagcopyright);
  border-color: rgba(221, 0, 221, 0.25);
}
.tagspecies {
  background: rgba(237, 93, 31, 0.10); color: var(--tagspecies);
  border-color: rgba(237, 93, 31, 0.25);
}
.taggeneral {
  background: rgba(46, 118, 180, 0.10); color: var(--taggeneral);
  border-color: rgba(46, 118, 180, 0.25);
}
.tagmeta {
  background: rgba(255, 255, 255, 0.05); color: var(--tagmeta);
  border-color: rgba(255, 255, 255, 0.15);
}
.taglore {
  background: rgba(34, 136, 34, 0.10); color: var(--taglore);
  border-color: rgba(34, 136, 34, 0.25);
}

/*//////////////////////////////////////////////////////////////////////*/

.checkbox {
  appearance: none;
  width: 1.125rem; height: 1.125rem;
  border: 1px solid var(--border); border-radius: 0.25rem;
  background: var(--bg);
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox:checked::after {
  content: '';
  width: 0.625rem; height: 0.625rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: contain;
}

.checkbox:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.spinner {
  width: 1.25rem; height: 1.25rem;
  border: 2px solid var(--secondary); border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinnerlg {
  width: 2rem; height: 2rem;
  border-width: 3px;
}
@keyframes spin {
  to {transform: rotate(360deg)}
}

.notfound {
  display: flex; align-items: center; justify-content: center;
  min-height: 100%;
  flex-direction: column; gap: 1rem;
  padding: 1rem;
  text-align: center;
}

.notfound h1 {
  font-size: 4rem;
  margin: 0;
  font-weight: 800;
  color: var(--primary);
}

.notfound p {
  color: var(--mutedfg);
  margin: 0;
}
