@font-face {
  font-family: "Poppins";
  src: url("../assets/brand/fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/brand/fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/brand/fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/brand/fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --vb-font:
    "Poppins", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --vb-primary: #000000;
  --vb-secondary: #585858;
  --vb-background: #f7f5ef;
  --vb-surface: #f7f5ef;
  --vb-poster-background: #f7f5ef;
  --vb-poster-text: #000000;
  --vb-poster-muted: #585852;
  --vb-text: #000000;
  --vb-border: #c9c9c9;
  --vb-control-border: #767676;
  --vb-muted: #5d5d5d;
  --vb-interactive: #000000;
  --vb-on-interactive: #ffffff;
  --vb-selected: #000000;
  --vb-on-selected: #ffffff;
  --vb-disabled: #dedede;
  --vb-on-disabled: #606060;
  --vb-focus: #000000;
  --vb-hover: #eaeaea;
  --vb-space-0: 0px;
  --vb-space-4: 4px;
  --vb-space-8: 8px;
  --vb-space-12: 12px;
  --vb-space-16: 16px;
  --vb-space-20: 20px;
  --vb-space-24: 24px;
  --vb-space-32: 32px;
  --vb-space-40: 40px;
  --vb-space-48: 48px;
  --vb-space-64: 64px;
  --vb-space-80: 80px;
  --vb-space-96: 96px;
  --vb-radius-brand: 0px;
  --vb-radius-cover: 0px;
  --vb-radius-card: 0px;
  --vb-radius-button: 4px;
  --vb-radius-input: 4px;
  --vb-radius-panel: 8px;
  --vb-radius-dialog: 12px;
  --vb-border-hairline: 1px;
  --vb-border-selected: 2px;
  --vb-border-focus: 2px;
  --vb-border-focus-offset: 3px;
  --vb-breakpoint-compact: 360px;
  --vb-breakpoint-sm: 640px;
  --vb-breakpoint-md: 768px;
  --vb-breakpoint-lg: 1024px;
  --vb-breakpoint-xl: 1280px;
  --vb-type-display-size: 40px;
  --vb-type-display-weight: 500;
  --vb-type-display-line: 1.1;
  --vb-type-display-tracking: -0.02em;
  --vb-type-heading-1-size: 28px;
  --vb-type-heading-1-weight: 500;
  --vb-type-heading-1-line: 1.2;
  --vb-type-heading-1-tracking: -0.01em;
  --vb-type-heading-2-size: 22px;
  --vb-type-heading-2-weight: 500;
  --vb-type-heading-2-line: 1.3;
  --vb-type-heading-2-tracking: 0em;
  --vb-type-body-size: 16px;
  --vb-type-body-weight: 400;
  --vb-type-body-line: 1.6;
  --vb-type-body-tracking: 0em;
  --vb-type-caption-size: 12px;
  --vb-type-caption-weight: 400;
  --vb-type-caption-line: 1.5;
  --vb-type-caption-tracking: 0.01em;
  --vb-type-metadata-size: 13px;
  --vb-type-metadata-weight: 400;
  --vb-type-metadata-line: 1.5;
  --vb-type-metadata-tracking: 0em;
  --vb-type-score-size: 32px;
  --vb-type-score-weight: 700;
  --vb-type-score-line: 1;
  --vb-type-score-tracking: -0.03em;
  --vb-type-button-size: 14px;
  --vb-type-button-weight: 500;
  --vb-type-button-line: 1.25;
  --vb-type-button-tracking: 0.01em;
  --vb-shadow: none;
  --vb-cover-edge: #00000012;
  --vb-overlay: #00000066;
  --vb-shadow-color: #00000022;
  --vb-motion-fast: 120ms;
  --vb-motion-base: 180ms;
  --vb-motion-slow: 240ms;
  --vb-easing: cubic-bezier(0.2, 0, 0, 1);
  --vb-press-scale: 0.99;
  --vb-hover-opacity: 0.94;
  --vb-container: 1120px;
  --vb-content-margin: 16px;
  --vb-album-gap: 12px;
  --vb-album-columns: 3;
  --vb-touch-min: 44px;
  --vb-nav-height: 64px;
  --vb-input-height: 48px;
  --vb-brand-ink-height: 20px;
  --vb-brand-mark-ratio: 2;
  --vb-brand-gap-ratio: 0.45;
  --vb-card-title-size: 14px;
  --vb-card-title-line: 1.4;
  --vb-card-title-weight: 500;
  --vb-card-score-size: 16px;
  --vb-card-score-weight: 700;
}
/* Map this selector to the existing project theme; do not create another theme store. */
:root[data-valbum-theme="dark"] {
  --vb-primary: #ffffff;
  --vb-secondary: #b8b8b0;
  --vb-background: #000000;
  --vb-surface: #151515;
  --vb-text: #ffffff;
  --vb-border: #4d4d48;
  --vb-control-border: #8a8a83;
  --vb-muted: #b8b8b0;
  --vb-interactive: #ffffff;
  --vb-on-interactive: #000000;
  --vb-selected: #ffffff;
  --vb-on-selected: #000000;
  --vb-disabled: #292929;
  --vb-on-disabled: #9d9d95;
  --vb-focus: #ffffff;
  --vb-hover: #242424;
}
/* Pure white is the default, regardless of the system theme. */
@media (max-width: 359px) {
  :root {
    --vb-content-margin: 12px;
    --vb-album-gap: 8px;
  }
}
@media (min-width: 768px) {
  :root {
    --vb-content-margin: 24px;
    --vb-album-gap: 16px;
    --vb-album-columns: 4;
  }
}
@media (min-width: 1024px) {
  :root {
    --vb-content-margin: 32px;
    --vb-album-gap: 20px;
    --vb-album-columns: 6;
  }
}
@media (min-width: 1024px) {
  :root {
    --vb-type-display-size: 64px;
    --vb-type-heading-1-size: 40px;
    --vb-type-heading-2-size: 28px;
    --vb-type-body-size: 16px;
    --vb-type-caption-size: 12px;
    --vb-type-metadata-size: 13px;
    --vb-type-score-size: 48px;
    --vb-type-button-size: 14px;
  }
}
/* Scope to the application root; adapt class names instead of replacing existing components. */
.valbum-ui {
  font-family: var(--vb-font);
  font-size: var(--vb-type-body-size);
  font-weight: 400;
  line-height: 1.6;
  color: var(--vb-text);
  background: var(--vb-background);
}
.valbum-ui *,
.valbum-ui *::before,
.valbum-ui *::after {
  box-sizing: border-box;
}
.valbum-ui button,
.valbum-ui input,
.valbum-ui textarea,
.valbum-ui select {
  font: inherit;
}
.valbum-ui .vb-container {
  width: 100%;
  max-width: calc(var(--vb-container) + 2 * var(--vb-content-margin));
  margin-inline: auto;
  padding-inline: var(--vb-content-margin);
}
.valbum-ui .vb-album-grid {
  display: grid;
  grid-template-columns: repeat(var(--vb-album-columns), minmax(0, 1fr));
  gap: var(--vb-space-24) var(--vb-album-gap);
}
.valbum-ui .vb-cover {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--vb-radius-cover);
}
.valbum-ui .vb-card {
  min-width: 0;
  border-radius: var(--vb-radius-card);
  box-shadow: none;
}
.valbum-ui .vb-card-title {
  margin: 12px 0 4px;
  font-size: var(--vb-card-title-size);
  font-weight: var(--vb-card-title-weight);
  line-height: var(--vb-card-title-line);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.valbum-ui .vb-meta {
  font-size: 13px;
  line-height: 1.5;
  color: var(--vb-muted);
}
.valbum-ui .vb-card-score {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.valbum-ui .vb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--vb-touch-min);
  padding: 12px 16px;
  gap: 8px;
  border: 1px solid var(--vb-interactive);
  border-radius: var(--vb-radius-button);
  background: var(--vb-interactive);
  color: var(--vb-on-interactive);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.01em;
  box-shadow: none;
  transition:
    opacity var(--vb-motion-fast) var(--vb-easing),
    background-color var(--vb-motion-fast) var(--vb-easing),
    transform var(--vb-motion-fast) var(--vb-easing);
}
.valbum-ui .vb-button--secondary {
  background: var(--vb-surface);
  color: var(--vb-text);
  border-color: var(--vb-control-border);
}
.valbum-ui .vb-button:not(:disabled):active {
  transform: scale(var(--vb-press-scale));
}
.valbum-ui .vb-button:disabled {
  background: var(--vb-disabled);
  color: var(--vb-on-disabled);
  border-color: var(--vb-disabled);
  cursor: not-allowed;
}
.valbum-ui .vb-input {
  width: 100%;
  min-height: var(--vb-input-height);
  padding: 12px 16px;
  font-size: 16px;
  line-height: 1.5;
  border: 1px solid var(--vb-control-border);
  border-radius: var(--vb-radius-input);
  background: var(--vb-surface);
  color: var(--vb-text);
}
.valbum-ui .vb-input::placeholder {
  color: var(--vb-muted);
  opacity: 1;
}
.valbum-ui .vb-input[aria-invalid="true"] {
  border-width: 2px;
}
.valbum-ui :is(button, a, input, textarea, select, [tabindex]):focus-visible {
  outline: var(--vb-border-focus) solid var(--vb-focus);
  outline-offset: var(--vb-border-focus-offset);
}
.valbum-ui .vb-rating-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.valbum-ui .vb-macro-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.valbum-ui .vb-rating-choice {
  width: 100%;
  min-width: 44px;
  min-height: 44px;
  padding: 12px;
  border: 1px solid var(--vb-control-border);
  border-radius: 4px;
  background: var(--vb-surface);
  color: var(--vb-text);
}
.valbum-ui .vb-rating-choice[aria-pressed="true"],
.valbum-ui .vb-rating-choice[aria-checked="true"] {
  border: 2px solid var(--vb-selected);
  background: var(--vb-selected);
  color: var(--vb-on-selected);
}
.valbum-ui .vb-score-logo {
  display: block;
  width: 80px;
  height: 80px;
  color: var(--vb-primary);
}
.valbum-ui .vb-ranking-score {
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
.valbum-ui .vb-bottom-nav {
  min-height: calc(64px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--vb-surface);
  border-top: 1px solid var(--vb-border);
}
.valbum-ui .vb-skeleton {
  background: var(--vb-hover);
  animation: none;
}
@media (hover: hover) {
  .valbum-ui .vb-button:not(.vb-button--secondary):not(:disabled):hover {
    opacity: var(--vb-hover-opacity);
  }
  .valbum-ui .vb-button--secondary:not(:disabled):hover {
    background: var(--vb-hover);
  }
  .valbum-ui .vb-card a:hover {
    text-decoration: underline;
  }
}
@media (prefers-reduced-motion: reduce) {
  .valbum-ui *,
  .valbum-ui *::before,
  .valbum-ui *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.valbum-ui .vb-display {
  font-size: var(--vb-type-display-size);
  font-weight: var(--vb-type-display-weight);
  line-height: var(--vb-type-display-line);
  letter-spacing: var(--vb-type-display-tracking);
  text-transform: none;
}
.valbum-ui .vb-heading-1 {
  font-size: var(--vb-type-heading-1-size);
  font-weight: var(--vb-type-heading-1-weight);
  line-height: var(--vb-type-heading-1-line);
  letter-spacing: var(--vb-type-heading-1-tracking);
  text-transform: none;
}
.valbum-ui .vb-heading-2 {
  font-size: var(--vb-type-heading-2-size);
  font-weight: var(--vb-type-heading-2-weight);
  line-height: var(--vb-type-heading-2-line);
  letter-spacing: var(--vb-type-heading-2-tracking);
  text-transform: none;
}
.valbum-ui .vb-body {
  font-size: var(--vb-type-body-size);
  font-weight: var(--vb-type-body-weight);
  line-height: var(--vb-type-body-line);
  letter-spacing: var(--vb-type-body-tracking);
  text-transform: none;
}
.valbum-ui .vb-caption {
  font-size: var(--vb-type-caption-size);
  font-weight: var(--vb-type-caption-weight);
  line-height: var(--vb-type-caption-line);
  letter-spacing: var(--vb-type-caption-tracking);
  text-transform: none;
}
.valbum-ui .vb-metadata {
  font-size: var(--vb-type-metadata-size);
  font-weight: var(--vb-type-metadata-weight);
  line-height: var(--vb-type-metadata-line);
  letter-spacing: var(--vb-type-metadata-tracking);
  text-transform: none;
}
.valbum-ui .vb-score {
  font-size: var(--vb-type-score-size);
  font-weight: var(--vb-type-score-weight);
  line-height: var(--vb-type-score-line);
  letter-spacing: var(--vb-type-score-tracking);
  text-transform: none;
}
.valbum-ui .vb-button {
  font-size: var(--vb-type-button-size);
  font-weight: var(--vb-type-button-weight);
  line-height: var(--vb-type-button-line);
  letter-spacing: var(--vb-type-button-tracking);
  text-transform: none;
}
