
.acf-card {
  --color-overlay-light-10: rgba(255, 255, 255, 0.1);
  --color-overlay-light-15: rgba(255, 255, 255, 0.15);
  --color-overlay-light-20: rgba(255, 255, 255, 0.2);
  --color-surface-hover: rgba(237, 237, 237, 0.1);   
  --color-button-text-primary: var(--charcoal);
  --tab-hover-bg: var(--color-overlay-light-15);
  --tab-active-hover-opacity: 0.85;
}

.acf-card {
  background: rgba(237, 237, 237, 0.05);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 0;
  overflow: hidden;
}

.acf-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-smd);
}

.acf-head-top h2 {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  line-height: 22px;
  letter-spacing: 1px;
  margin: 0;
  text-transform: uppercase;
  font-weight: var(--font-weight-normal);
  color: var(--pebble);
}

.acf-head-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.acf-filter-mobile,
.acf-switches-mobile {
  display: none;
}
.acf-head-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px var(--spacing-sm);
  border-radius: var(--radius-max);
  background: var(--color-overlay-light-10);
  color: var(--pebble);
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: calc(var(--font-size-xs) * 1.2);
  font-weight: var(--font-weight-semibold);
  line-height: 16px;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.acf-head-btn:hover {
  background: var(--color-overlay-light-15);
}
.acf-head-btn-primary {
  background: var(--pebble);
  color: var(--charcoal);
}
.acf-head-btn-primary:hover {
  background: var(--ivory);
}
.acf-head-btn-icon {
  width: 18px;
  height: 18px;
}

.acf-spoiler-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: calc(var(--font-size-xs) * 1.2);
  font-weight: var(--font-weight-medium);
  line-height: 16px;
  color: rgba(237, 237, 237, 0.55);
  transition: color 0.15s ease;
}
.acf-spoiler-toggle-active {
  color: var(--sundrop);
}
.acf-spoiler-toggle-icon {
  width: 28.8px;
  height: 28.8px;
}

.acf-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
}
.acf-controls-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.acf-pills {
  display: inline-flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  min-width: 0;
}
.acf-pill {
  padding: 5px var(--spacing-sm);
  border-radius: var(--radius-max);
  background: var(--color-overlay-light-10);
  color: var(--pebble);
  font: inherit;
  font-size: var(--font-size-xs);
  line-height: 16px;
  font-weight: var(--font-weight-medium);
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.acf-pill:not(.acf-pill-active):hover {
  background: var(--tab-hover-bg);
}
.acf-pill-active {
  background: var(--pebble);
  color: var(--charcoal);
}
.acf-pill-active:hover {
  opacity: var(--tab-active-hover-opacity);
}

.acf-strip-wrap {
  position: relative;
}

.acf-strip-wrap::before,
.acf-strip-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 56px;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  border-radius: var(--radius-md);
  transition: opacity 0.15s ease;
}
.acf-strip-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--charcoal), transparent);
}
.acf-strip-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--charcoal), transparent);
}
.acf-strip-wrap[data-fade-left="true"]::before,
.acf-strip-wrap[data-fade-right="true"]::after {
  opacity: 1;
}
.acf-strip {
  display: flex;
  gap: 5px;
  padding: 5px;
  background: var(--color-overlay-light-10);
  border-radius: var(--radius-md);
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.acf-strip-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  border: 0;
  padding: 0;
  background: none;
  color: var(--ivory);
  cursor: pointer;
  filter: drop-shadow(0 0 3px var(--charcoal));
  transition: opacity 0.15s ease;
}
.acf-strip-arrow-left {
  left: 0;
  justify-content: flex-start;
  padding-left: 3px;
}
.acf-strip-arrow-right {
  right: 0;
  justify-content: flex-end;
  padding-right: 3px;
}
.acf-strip-arrow:disabled {
  opacity: 0;
  pointer-events: none;
}
.acf-strip::-webkit-scrollbar {
  display: none;
}
.acf-strip-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 50px;
  padding: 5px;
  border-radius: var(--radius-sm);
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.acf-strip-chip:hover {
  background: var(--color-overlay-light-10);
}
.acf-strip-chip-active {
  background: rgba(237, 237, 237, 0.16);
}
.acf-strip-chip-all {
  border: 0.5px solid var(--pebble);
  min-width: 50px;
  height: 40px;
  justify-content: center;
}
.acf-strip-ep {
  font-size: var(--font-size-xs);
  line-height: 16px;
  color: rgba(237, 237, 237, 0.8);
}
.acf-strip-score {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  line-height: 14px;
}
.acf-score-high {
  color: var(--sundrop);
}
.acf-score-mid {
  color: #ff84f4;
}
.acf-score-low {
  color: #f04141;
}

.acf-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.acf-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  background: rgba(237, 237, 237, 0.05);
  border-radius: var(--radius-md);
  min-width: 0;
}

.acf-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.acf-item-user {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.acf-item-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}
.acf-avatar-link {
  display: inline-flex;
  flex-shrink: 0;
  border-radius: 50%;
}
.acf-item-name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: 18px;
  color: rgba(237, 237, 237, 0.8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}
.acf-item-name:hover {
  text-decoration: underline;
}
.acf-body-link {
  text-decoration: none;
  color: inherit;
  display: block;
  min-width: 0;
}
.acf-stars {
  display: inline-flex;
  gap: 1.5px;
  font-size: var(--font-size-xs);
  line-height: 12px;
  color: var(--pebble);
}
.acf-star-off {
  color: rgba(237, 237, 237, 0.3);
}

.acf-star-box {
  position: relative;
  display: inline-block;
}
.acf-star-fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--pebble);
}

.acf-item-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.acf-tag-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.acf-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 5px;
  border-radius: var(--radius-max);
  font-size: var(--font-size-xs);
  line-height: 16px;
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
}
.acf-tag-neutral {
  background: var(--color-overlay-light-10);
  color: rgba(237, 237, 237, 0.8);
}
.acf-tag-verified {
  background: #009dff;
  color: var(--pebble);
}
.acf-tag-discussion {
  background: rgba(255, 132, 244, 0.1);
  color: #ff84f4;
}
.acf-tag-icon {
  width: 12px;
  height: 12px;
}
.acf-item-time {
  font-size: var(--font-size-xs);
  line-height: 16px;
  color: rgba(237, 237, 237, 0.55);
  white-space: nowrap;
}

.acf-body {
  font-size: var(--font-size-sm);
  line-height: 18px;
  color: rgba(237, 237, 237, 0.8);
  margin: 0;
  overflow-wrap: anywhere;
}

.acf-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  background: rgba(237, 237, 237, 0.05);
  border-radius: var(--radius-md);
  min-width: 0;
}
.acf-summary-left {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.acf-avatars {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.acf-avatar-stack {
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px #23182c;
}
.acf-avatar-stack:not(:first-child) {
  margin-left: -10px;
}
.acf-summary-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}
.acf-summary-text {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: 18px;
  color: rgba(237, 237, 237, 0.8);
}
.acf-summary-name {
  color: rgba(237, 237, 237, 0.8);
}
.acf-summary-muted {
  color: rgba(237, 237, 237, 0.55);
}
.acf-summary-score {
  color: rgba(237, 237, 237, 0.8);
}

.acf-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-mlg);
}
.acf-action {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  color: rgba(237, 237, 237, 0.8);
}
.acf-action-active {
  color: var(--color-accent);
}
.acf-action-icon {
  width: 16px;
  height: 16px;
}

.acf-view-all {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 6px;
  font: inherit;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--pebble);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
}
.acf-view-all:hover {
  text-decoration: underline;
}
.acf-view-all-icon {
  width: 14px;
  height: 14px;
}

.acf-view-all-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}
.acf-view-all-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-sm);
}

.acf-view-all-row-hidden {
  display: none;
}
.acf-view-all-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 8px var(--spacing-md);
  border-radius: var(--radius-max);
  border: 1px solid var(--color-overlay-light-20);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: rgba(237, 237, 237, 0.8);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.acf-view-all-pill:hover {
  background: rgba(237, 237, 237, 0.05);
}

.acf-load-more {
  align-self: stretch;
  height: 40px;
  border-radius: var(--radius-max);
  border: 1px solid var(--color-overlay-light-20);
  background: none;
  color: rgba(237, 237, 237, 0.8);
  font: inherit;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: background 0.15s ease;
}
.acf-load-more:hover {
  background: rgba(237, 237, 237, 0.05);
}

.acf-empty {
  padding: var(--spacing-lg) var(--spacing-smd);
  text-align: center;
  font-size: var(--font-size-sm);
  line-height: 20px;
  color: rgba(237, 237, 237, 0.55);
}

.acf-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-smd);
  padding: var(--spacing-lg) var(--spacing-smd);
}

.acf-empty-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  border: none;
  border-radius: var(--radius-full);
  background-color: var(--pebble);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  text-wrap: nowrap;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
  width: auto;
  padding: 0 var(--spacing-lg);
  height: 40px;
  font-size: var(--font-size-sm);
}

.acf-empty-cta:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .acf-head-actions {
    display: none;
  }
  
  .acf-strip-arrow,
  .acf-strip-wrap::before,
  .acf-strip-wrap::after {
    display: none;
  }
  .acf-controls-right {
    display: none;
  }
  
  .acf-filter-mobile {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
  }
  
  .acf-switches-mobile {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  .acf-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .acf-pills::-webkit-scrollbar {
    display: none;
  }
}




.acf-fd-wrap {
  position: relative;
  display: inline-flex;
}
.acf-fd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-body);
  transition:
    background 0.15s ease,
    color 0.15s ease;
  height: 28px;
  padding: 0 var(--spacing-smd);
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}
.acf-fd-trigger:hover {
  background: rgba(237, 237, 237, 0.08);
}
.acf-fd-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: var(--spacing-xs);
  min-width: 120px;
  max-height: 240px;
  overflow-y: auto;
  padding: var(--spacing-xs);
  border-radius: var(--radius-sm);
  border: var(--border-normal) solid var(--color-border);
  background: var(--color-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 20;
  display: none;
}
.acf-fd-menu.acf-fd-open {
  display: block;
}
.acf-fd-option {
  display: block;
  width: 100%;
  padding: 6px 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  text-align: left;
  cursor: pointer;
}
.acf-fd-option:hover {
  background: rgba(237, 237, 237, 0.08);
  color: var(--color-text-primary);
}
.acf-fd-option-active {
  color: var(--color-text-primary);
  font-weight: var(--font-weight-semibold);
}


.apq-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 240;

  --spacing-xs: 5px;
  --spacing-sm: 8px;
  --spacing-smd: 12px;
  --spacing-md: 16px;
  --spacing-mlg: 20px;
  --spacing-lg: 24px;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-2xl: 21px;
  --radius-max: 100px;
  --modal-header-padding: 16px 20px;
  --modal-padding: 20px;
  --modal-footer-padding: 16px 20px 20px;
}

.apq-modal {
  width: min(480px, 92vw);
  height: auto;
  max-height: 90dvh;
  padding: 0;
  background: var(--charcoal);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-sizing: border-box;
}

.apq-content {
  display: flex;
  flex-direction: column;
  height: auto;
  max-height: 90dvh;
  background: var(--charcoal);
}

.apq-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-smd);
  padding: var(--modal-header-padding);
  flex-shrink: 0;
}

.apq-anime-card {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  flex: 1;
}

.apq-anime-cover {
  position: relative;
  width: 38px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(237, 237, 237, 0.05);
}

.apq-anime-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.apq-anime-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: 20px;
  font-weight: var(--font-weight-medium);
  color: var(--pebble);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apq-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(237, 237, 237, 0.8);
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.apq-close:hover {
  background: rgba(237, 237, 237, 0.08);
  color: var(--pebble);
}

.apq-close-icon {
  width: 20px;
  height: 20px;
}

.apq-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: var(--modal-padding);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-mlg);
}

.apq-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.apq-field-label {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  line-height: 18px;
  font-weight: var(--font-weight-medium);
  color: rgba(237, 237, 237, 0.8);
  text-align: left;
}

.apq-input-wrap {
  position: relative;
  background: rgba(237, 237, 237, 0.05);
  border-radius: var(--radius-lg);
  padding: 15px;
}

.apq-input {
  width: 100%;
  min-height: 80px;
  border: 0;
  background: transparent;
  color: var(--pebble);
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  line-height: 18px;
  font-weight: var(--font-weight-medium);
  resize: vertical;
  outline: none;
  padding: 0;
  box-sizing: border-box;
}

.apq-input::placeholder {
  color: rgba(237, 237, 237, 0.55);
}

.apq-media-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-top: 10px;
}

.apq-file-input {
  display: none;
}

.apq-icon-btn {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(237, 237, 237, 0.7);
  transition: color 0.15s ease;
}

.apq-icon-btn:hover:not(:disabled) {
  color: var(--pebble);
}

.apq-icon-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.apq-icon {
  width: 22px;
  height: 22px;
}

.apq-media-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: var(--spacing-sm);
  margin-top: var(--spacing-smd);
}

.apq-media-preview:empty {
  display: none;
}

.apq-media-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(237, 237, 237, 0.05);
}

.apq-media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apq-media-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 0;
  color: var(--pebble);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s ease;
}

.apq-media-remove:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.9);
}

.apq-media-remove-icon {
  width: 14px;
  height: 14px;
}

.apq-radio-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-mlg);
  flex-wrap: wrap;
}

.apq-radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(237, 237, 237, 0.8);
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  line-height: 18px;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
}

.apq-radio-active {
  color: var(--pebble);
}

.apq-radio-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(237, 237, 237, 0.55);
  background: transparent;
  flex-shrink: 0;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.apq-radio-active .apq-radio-dot {
  border-color: var(--pebble);
  background: var(--pebble);
}

.apq-radio-active .apq-radio-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--charcoal);
}

.apq-footer {
  padding: var(--modal-footer-padding);
  flex-shrink: 0;
}

.apq-submit {
  width: 100%;
  height: 50px;
  padding: 0 var(--spacing-mlg);
  border: 0;
  border-radius: var(--radius-max);
  background: var(--pebble);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: 20px;
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.apq-submit:hover:not(:disabled) {
  opacity: 0.85;
}

.apq-submit:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}


.apqp-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 5px 10px;
  border: 0;
  border-radius: var(--radius-max);
  background: rgba(237, 237, 237, 0.05);
  color: rgba(237, 237, 237, 0.55);
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  line-height: 18px;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  outline: none;
  transition: background 0.15s ease;
}

.apqp-trigger:hover:not(:disabled) {
  background: rgba(237, 237, 237, 0.08);
}

.apqp-trigger:focus-visible {
  outline: 1px solid rgba(237, 237, 237, 0.4);
}

.apqp-trigger-filled {
  color: var(--pebble);
}

.apqp-trigger-label {
  white-space: nowrap;
}

.apqp-caret {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.apqp-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
  color: rgba(237, 237, 237, 0.8);
}

.apqp-clear:hover {
  background: rgba(237, 237, 237, 0.12);
  color: var(--pebble);
}



.apqp-panel[hidden] {
  display: none;
}

.apqp-panel {
  flex-basis: 100%;
  width: 100%;
  background: #221330;
  border: 1px solid rgba(237, 237, 237, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.apqp-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid rgba(237, 237, 237, 0.08);
}

.apqp-search-icon {
  position: absolute;
  left: 20px;
  width: 14px;
  height: 14px;
  color: rgba(237, 237, 237, 0.55);
  pointer-events: none;
}

.apqp-search-input {
  width: 100%;
  height: 28px;
  padding: 0 var(--spacing-sm) 0 30px;
  border: 0;
  border-radius: var(--radius-md);
  background: rgba(237, 237, 237, 0.05);
  color: var(--pebble);
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  line-height: 18px;
  font-weight: var(--font-weight-medium);
  outline: none;
}

.apqp-search-input::placeholder {
  color: rgba(237, 237, 237, 0.45);
}

.apqp-search-input:focus {
  background: rgba(237, 237, 237, 0.08);
}

.apqp-list {
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: var(--spacing-xs);
}

.apqp-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) 10px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--pebble);
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  line-height: 18px;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.apqp-row-active {
  background: rgba(237, 237, 237, 0.08);
}

.apqp-row-selected {
  background: rgba(221, 255, 0, 0.1);
  color: var(--color-accent, #ddff00);
}

.apqp-row-number {
  flex-shrink: 0;
  font-weight: var(--font-weight-semibold);
  min-width: 48px;
}

.apqp-row-title {
  color: rgba(237, 237, 237, 0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apqp-row-selected .apqp-row-title {
  color: rgba(221, 255, 0, 0.7);
}

.apqp-state {
  padding: 14px 10px;
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: rgba(237, 237, 237, 0.55);
  text-align: center;
}

@media (max-width: 600px) {
  .apq-overlay {
    align-items: flex-end;
  }
  .apq-modal {
    width: 100%;
    max-width: 100vw;
    max-height: 100dvh;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    margin-top: auto;
  }
  .apq-content {
    max-height: 100dvh;
  }
}


.aro-container {
  position: relative;
  display: inline-flex;
}

.aro-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.aro-trigger:hover {
  background: rgba(237, 237, 237, 0.08);
  color: var(--color-text-primary);
}

.aro-trigger-icon {
  width: 18px;
  height: 18px;
}

.aro-menu {
  position: absolute;
  left: calc(100% + 4px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  min-width: 140px;
  padding: var(--spacing-xs);
  border-radius: var(--radius-md);
  border: var(--border-normal) solid var(--color-border);
  background: var(--color-bg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.aro-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-smd);
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-primary);
  font: inherit;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}

.aro-item:hover {
  background: rgba(237, 237, 237, 0.08);
}

.aro-item-danger,
.aro-item-danger span {
  color: var(--color-danger);
}

.aro-item-icon {
  width: 16px;
  height: 16px;
}


.arp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); 
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  padding: 0;

  --spacing-xs: 5px;
  --spacing-sm: 8px;
  --spacing-smd: 12px;
  --spacing-md: 16px;
  --spacing-mlg: 20px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --font-size-sm: 14px;
  --font-size-md: 16px;
  --font-size-lg: 18px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --radius-max: 100px;
  --font-display: var(--font-montra), sans-serif;
  --modal-header-padding: 16px 20px;
  --modal-padding: 20px;
  --modal-footer-padding: 16px 20px 20px;
}

.arp-modal {
  background: var(--color-bg);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.arp-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--modal-header-padding);
  border-bottom: var(--border-normal) solid var(--color-border);
  background: var(--color-bg);
  z-index: 1;
}

.arp-title {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  color: var(--color-text-primary);
  margin: 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: center;
}

.arp-close {
  position: absolute;
  right: var(--spacing-lg);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: color 0.2s ease;
}

.arp-close:hover {
  color: var(--color-text-primary);
}

.arp-close-icon {
  width: 24px;
  height: 24px;
}

.arp-content {
  padding: var(--modal-padding);
  flex: 1;
}

.arp-question {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  margin: 0 0 var(--spacing-lg) 0;
}

.arp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.arp-chip {
  height: 30px;
  padding: 0 10px;
  background: none;
  border: 1px solid rgba(237, 237, 237, 0.2);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--pebble);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.arp-chip:hover:not(:disabled) {
  background: rgba(237, 237, 237, 0.08);
}

.arp-chip-selected {
  background: var(--pebble);
  color: var(--charcoal);
  border-color: transparent;
  border-radius: var(--radius-max);
}

.arp-chip:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.arp-other-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: var(--spacing-md);
}

.arp-other-field[hidden] {
  display: none;
}

.arp-other-label {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--pebble);
}

.arp-other-input-wrap {
  position: relative;
}

.arp-other-input {
  box-sizing: border-box;
  width: 100%;
  height: 102px;
  padding: 15px;
  background: rgba(237, 237, 237, 0.05);
  border: 0;
  border-radius: var(--radius-lg);
  font: inherit;
  font-size: var(--font-size-sm);
  color: var(--pebble);
  resize: none;
}

.arp-other-input::placeholder {
  color: rgba(237, 237, 237, 0.55);
}

.arp-other-input:focus {
  outline: none;
}

.arp-other-count {
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-size: var(--font-size-sm);
  color: rgba(237, 237, 237, 0.55);
  pointer-events: none;
}

.arp-footer {
  padding: var(--modal-footer-padding);
  border-top: var(--border-normal) solid var(--color-border);
  position: sticky;
  bottom: 0;
  background: var(--color-bg);
}

.arp-submit {
  width: 100%;
  height: 50px;
  padding: 0 var(--spacing-xl);
  background: var(--pebble);
  border: none;
  border-radius: var(--radius-max);
  font: inherit;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--charcoal);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.arp-submit:hover:not(:disabled) {
  opacity: 0.9;
}

.arp-submit:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

@media (min-width: 768px) {
  .arp-overlay {
    align-items: center;
  }
  .arp-modal {
    border-radius: var(--radius-lg);
    max-height: 80vh;
  }
}


.aopc {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.aopc[hidden] {
  display: none;
}
.aopc-box {
  position: relative;
  width: min(600px, 92vw);
  max-height: 85dvh;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: var(--border-normal) solid var(--color-border);
  border-radius: 32px;
  background: var(--color-bg);
  box-sizing: border-box;
  text-align: left;
}
.aopc-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  z-index: 1;
}
.aopc-close:hover {
  color: var(--color-text-primary);
}
.aopc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  padding-right: 56px;
  border-bottom: var(--border-normal) solid var(--color-border);
  flex-shrink: 0;
}
.aopc-header-cover {
  position: relative;
  width: 40px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-surface);
  flex-shrink: 0;
}
.aopc-header-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.aopc-header-title {
  margin: 0;
  font-family: var(--font-montra), sans-serif;
  font-size: var(--font-size-lg);
  color: var(--color-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.aopc-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.aopc-editor-wrap {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 16px 20px;
  box-sizing: border-box;
}

.aopc-editor {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  background: transparent;
  resize: none;
  outline: none;
  font-family: var(--font-body);
  font-size: var(--p-font-size);
  line-height: 1.5;
  color: var(--color-text-primary);
}
.aopc-editor::placeholder {
  color: var(--color-text-tertiary);
}
.aopc-counter {
  align-self: flex-end;
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
}
.aopc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding: 16px 20px 20px;
  border-top: var(--border-normal) solid var(--color-border);
  flex-shrink: 0;
}
.aopc-footer-left {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-shrink: 0;
}
.aopc-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--radius-full);
  background: rgba(237, 237, 237, 0.15);   
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background 0.15s ease;
}
.aopc-icon-btn:hover {
  background: rgba(237, 237, 237, 0.1);
}
.aopc-icon {
  width: 16px;
  height: 16px;
}
.aopc-spoiler {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  cursor: pointer;
  user-select: none;
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}
.aopc-spoiler-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.aopc-spoiler-dot {
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-border);
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}
.aopc-spoiler-input:checked + .aopc-spoiler-dot {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.aopc-spoiler-input:focus-visible + .aopc-spoiler-dot {
  outline: var(--border-normal) solid var(--color-accent);
  outline-offset: 2px;
}

.aopc-submit {
  width: auto;
  min-width: 120px;
  height: 40px;
  padding: 0 var(--spacing-md);
  border: 0;
  border-radius: var(--radius-full);
  background: var(--pebble);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.aopc-submit:hover:not(:disabled) {
  opacity: 0.9;
}
.aopc-submit:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}


@media (max-width: 640px) {
  .aopc {
    align-items: flex-end;
    padding: 0;
  }
  .aopc-box {
    width: 100%;
    max-width: none;
    max-height: 90dvh;
    border-radius: 32px 32px 0 0;
    border-bottom: none;
  }
}
