.historias-page .historias-grid {
  display: grid;
  gap: 1.25rem;
  padding: 0 0 3rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .historias-page .historias-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.historias-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

[data-theme="light"] .historias-card {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.03);
}

.historias-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.historias-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.historias-card__name {
  font-weight: 700;
  font-size: 1.05rem;
}

.historias-card__body {
  white-space: pre-wrap;
  line-height: 1.5;
  font-size: 0.95rem;
}

.historias-card video {
  width: 100%;
  max-height: 280px;
  border-radius: 0.75rem;
  background: #000;
}

.historias-connected {
  font-size: 0.85rem;
  opacity: 0.85;
}

.historias-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.historias-card__actions button,
.historias-comments details summary {
  cursor: pointer;
}

.historias-comments {
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.75rem;
}

.historias-comment {
  font-size: 0.88rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.historias-comment:last-child {
  border-bottom: none;
}

.historias-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.historias-form input,
.historias-form textarea {
  width: 100%;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  padding: 0.55rem 0.7rem;
  font: inherit;
}

[data-theme="light"] .historias-form input,
[data-theme="light"] .historias-form textarea {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.12);
}

.historias-empty {
  grid-column: 1 / -1;
  padding: 2rem 0;
  text-align: center;
}
