.rotator-settings-grid {
  margin-bottom: var(--space-2);
}

.rotator-setting-card {
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
}

.rotator-setting-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: flex-start;
  margin-bottom: var(--space-4);
}

.rotator-setting-head h3 {
  margin: 0;
  font-size: var(--text-lg);
}

.rotator-setting-head p {
  margin: 8px 0 0;
  font-size: var(--text-sm);
  line-height: 1.7;
}

.rotator-summary {
  display: block;
  margin-top: var(--space-5);
}

.rotator-result-list {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.rotator-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.rotator-item-body {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.rotator-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(217, 225, 236, 0.72);
  background:
    linear-gradient(45deg, rgba(226, 232, 240, 0.45) 25%, transparent 25%, transparent 75%, rgba(226, 232, 240, 0.45) 75%),
    linear-gradient(45deg, rgba(226, 232, 240, 0.45) 25%, transparent 25%, transparent 75%, rgba(226, 232, 240, 0.45) 75%);
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
  background-color: #fff;
}

.rotator-preview img {
  max-width: 100%;
  max-height: 112px;
  object-fit: contain;
}

.rotator-info {
  min-width: 0;
}

.rotator-name {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1.5;
  color: var(--color-text);
  word-break: break-all;
}

.rotator-meta {
  margin-top: 8px;
  font-size: var(--text-sm);
  line-height: 1.75;
  color: var(--color-text-secondary);
}

.rotator-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.rotator-empty,
.rotator-error {
  padding: 18px 20px;
  border: 1px dashed rgba(217, 225, 236, 0.92);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.8;
}

.rotator-error {
  border-color: rgba(239, 68, 68, 0.22);
  background: rgba(254, 242, 242, 0.62);
}

@media (max-width: 768px) {
  .rotator-item-body {
    grid-template-columns: 1fr;
  }

  .rotator-preview {
    aspect-ratio: 16 / 10;
  }
}
