.pcard-expand svg {
  transition: transform 0.2s ease;
}

.pcard-expand.open {
  color: #fff;
  border-color: rgba(154, 124, 255, 0.55);
  background: rgba(154, 124, 255, 0.18);
}

.pcard-expand.open svg {
  transform: rotate(180deg);
}

.pcard-full {
  grid-area: full;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.pcard-full-text {
  color: #ece6da;
  font-size: 15px;
  line-height: 1.85;
}

.pcard-full-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}

.pcard.skeleton {
  display: block;
  min-height: 132px;
  border-radius: 16px;
}

/* Экран фильтров */
.poems-filter {
  max-width: 760px;
  margin: 0 auto;
  padding: 116px 16px 24px;
}

.pfilter-h1 {
  margin: 8px 0 22px;
  font-size: 24px;
  text-align: center;
}

.pfilter-section {
  margin-bottom: 26px;
}

.pfilter-section h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 850;
}

.pfilter-field {
  display: grid;
  gap: 8px;
}

.pfilter-field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.pfilter-field input {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
  font-weight: 750;
}

.pfilter-field input:focus {
  outline: none;
  border-color: rgba(154, 124, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(154, 124, 255, 0.14);
}

.pfilter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pfilter-chip {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

.pfilter-chip:hover {
  border-color: rgba(154, 124, 255, 0.4);
}

.pfilter-chip.active {
  background: var(--violet);
  color: #fff;
  border-color: transparent;
}

.pfilter-chip.skeleton {
  width: 104px;
  pointer-events: none;
  border: 0;
}

.pfilter-foot {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 0 132px;
  background: linear-gradient(to top, var(--bg) 64%, rgba(9, 9, 13, 0));
}

.pfilter-reset {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border, #2a2a33);
  border-radius: 16px;
  background: transparent;
  color: var(--muted, #b6b6c2);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.pfilter-reset:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.pfilter-reset[hidden] { display: none; }

.pfilter-apply {
  width: 100%;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 16px;
  background: var(--violet);
  color: #fff;
  font-size: 16px;
  font-weight: 850;
  cursor: pointer;
}

.pfilter-apply:hover {
  background: #ab90ff;
}

@media (max-width: 900px) {
  .poems-screen {
    padding-top: 104px;
  }

  .poems-filter {
    padding-top: 100px;
  }
}

@media (max-width: 520px) {
  .poems-toolbar {
    gap: 8px;
  }

  .poems-seg a {
    padding: 0 13px;
  }

  .pcard {
    gap: 6px 12px;
    padding: 14px;
  }

  .pcard-controls {
    align-items: stretch;
  }

  .pcard-make {
    width: 100%;
    margin-left: 0;
    justify-content: center;
    padding: 0 13px;
  }
}

/* Mobile web /poems parity with Android PoemsScreen */
.poems-mobile-header,
.poems-drawer-layer {
  display: none;
}

