:root {
  --feed-bg: #080808;
  --feed-card-bg: #111111;
  --feed-sub-bg: #181818;
  --feed-border: #292929;
  --feed-text: #ffffff;
  --feed-text-muted: #999999;
  --feed-accent: #6366f1;
  --feed-accent-hover: #4f46e5;
  --feed-accent-glow: rgba(99, 102, 241, 0.2);
  --feed-danger: #ef4444;
  --feed-danger-bg: rgba(239, 68, 68, 0.12);
  --feed-success: #10b981;
  --feed-gold: #f59e0b;
}

[data-theme="light"],
body.light-theme {
  --feed-bg: #f5f5f7;
  --feed-card-bg: #ffffff;
  --feed-sub-bg: #f0f1f5;
  --feed-border: #e2e4e9;
  --feed-text: #111827;
  --feed-text-muted: #6b7280;
  --feed-accent: #4f46e5;
  --feed-accent-hover: #4338ca;
  --feed-accent-glow: rgba(79, 70, 229, 0.15);
}

.feed-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

@media (max-width: 900px) {
  .feed-main-layout {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px 12px 60px;
  }
  .feed-side-column {
    display: none;
  }
}

.feed-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.feed-hero-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--feed-text);
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.feed-hero-subtitle {
  font-size: 0.9rem;
  color: var(--feed-text-muted);
  margin: 0;
}

.feed-create-shortcut-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--feed-accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--feed-accent-glow);
  transition: transform 0.15s ease, background 0.15s ease;
}

.feed-create-shortcut-btn:hover {
  background: var(--feed-accent-hover);
  transform: translateY(-1px);
}

.feed-nav-bar {
  background: var(--feed-card-bg);
  border: 1px solid var(--feed-border);
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feed-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.feed-tabs::-webkit-scrollbar {
  display: none;
}

.feed-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  background: transparent;
  color: var(--feed-text-muted);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.feed-tab-btn:hover {
  background: var(--feed-sub-bg);
  color: var(--feed-text);
}

.feed-tab-btn.active {
  background: var(--feed-sub-bg);
  color: var(--feed-text);
  border-color: var(--feed-border);
}

.feed-type-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-top: 4px;
  border-top: 1px solid var(--feed-border);
  scrollbar-width: none;
}

.feed-type-pills::-webkit-scrollbar {
  display: none;
}

.feed-type-pill {
  padding: 5px 12px;
  border-radius: 999px;
  background: transparent;
  color: var(--feed-text-muted);
  border: 1px solid var(--feed-border);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.feed-type-pill:hover {
  border-color: var(--feed-text-muted);
  color: var(--feed-text);
}

.feed-type-pill.active {
  background: var(--feed-text);
  color: var(--feed-bg);
  border-color: var(--feed-text);
  font-weight: 600;
}

.feed-creator-card {
  background: var(--feed-card-bg);
  border: 1px solid var(--feed-border);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.creator-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.creator-avatar-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--feed-sub-bg);
  flex-shrink: 0;
  border: 1px solid var(--feed-border);
}

.creator-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creator-types-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.creator-types-selector::-webkit-scrollbar {
  display: none;
}

.creator-type-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--feed-sub-bg);
  color: var(--feed-text-muted);
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.creator-type-btn:hover {
  color: var(--feed-text);
}

.creator-type-btn.active {
  background: rgba(99, 102, 241, 0.15);
  color: var(--feed-accent);
  border-color: rgba(99, 102, 241, 0.35);
}

.creator-fields-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.creator-title-input {
  width: 100%;
  background: var(--feed-sub-bg);
  border: 1px solid var(--feed-border);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--feed-text);
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  box-sizing: border-box;
}

.creator-title-input:focus {
  border-color: var(--feed-accent);
}

.creator-review-rating-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: var(--feed-sub-bg);
  border-radius: 12px;
  border: 1px solid var(--feed-border);
}

.rating-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--feed-text-muted);
}

.rating-stars-picker {
  display: flex;
  gap: 4px;
}

.star-pill {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--feed-border);
  background: var(--feed-card-bg);
  color: var(--feed-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.star-pill:hover {
  border-color: var(--feed-gold);
  color: var(--feed-gold);
}

.star-pill.active {
  background: var(--feed-gold);
  color: #000;
  border-color: var(--feed-gold);
}

.creator-textarea {
  width: 100%;
  background: var(--feed-sub-bg);
  border: 1px solid var(--feed-border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--feed-text);
  font-size: 0.95rem;
  line-height: 1.5;
  font-family: inherit;
  resize: vertical;
  min-height: 84px;
  outline: none;
  box-sizing: border-box;
}

.creator-textarea:focus {
  border-color: var(--feed-accent);
}

.creator-attachments-preview {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.attached-anime-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--feed-sub-bg);
  border: 1px solid var(--feed-border);
  border-radius: 10px;
  max-width: 100%;
}

.attached-anime-thumb {
  width: 26px;
  height: 38px;
  object-fit: cover;
  border-radius: 4px;
}

.attached-anime-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--feed-text);
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attached-image-badge {
  position: relative;
  display: inline-block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--feed-border);
}

.attached-image-thumb {
  max-width: 140px;
  max-height: 100px;
  object-fit: cover;
  display: block;
}

.remove-attach-btn {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  line-height: 1;
}

.attached-image-badge .remove-attach-btn {
  position: absolute;
  top: 4px;
  right: 4px;
}

.creator-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--feed-border);
}

.creator-actions-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.creator-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--feed-sub-bg);
  border: 1px solid var(--feed-border);
  color: var(--feed-text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.creator-tool-btn:hover {
  color: var(--feed-text);
  border-color: var(--feed-text-muted);
}

.emoji-picker-container {
  position: relative;
}

.emoji-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--feed-card-bg);
  border: 1px solid var(--feed-border);
  border-radius: 12px;
  padding: 8px;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 50;
}

.emoji-dropdown.open {
  display: grid;
}

.emoji-item {
  font-size: 1.25rem;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 6px;
  text-align: center;
  transition: background 0.15s;
}

.emoji-item:hover {
  background: var(--feed-sub-bg);
}

.creator-actions-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.char-counter {
  font-size: 0.78rem;
  color: var(--feed-text-muted);
}

.creator-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 10px;
  background: var(--feed-accent);
  color: #fff;
  border: none;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--feed-accent-glow);
  transition: all 0.15s ease;
}

.creator-submit-btn:hover {
  background: var(--feed-accent-hover);
}

.creator-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.feed-posts-stream {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feed-post-card {
  background: var(--feed-card-bg);
  border: 1px solid var(--feed-border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: border-color 0.15s ease;
}

.feed-post-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .feed-post-card:hover,
body.light-theme .feed-post-card:hover {
  border-color: #cbd5e1;
}

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.post-author-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-author-avatar-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--feed-sub-bg);
  display: block;
  flex-shrink: 0;
  border: 1px solid var(--feed-border);
}

.post-author-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-author-info {
  display: flex;
  flex-direction: column;
}

.post-author-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--feed-text);
  text-decoration: none;
}

.post-author-name:hover {
  color: var(--feed-accent);
}

.post-role-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  text-transform: uppercase;
}

.post-role-badge.admin {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.post-role-badge.owner {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.post-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--feed-text-muted);
}

.post-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--feed-sub-bg);
  color: var(--feed-text-muted);
}

.post-type-badge.review {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.post-type-badge.recommendation {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.post-type-badge.question {
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
}

.post-type-badge.collection {
  background: rgba(168, 85, 247, 0.12);
  color: #a855f7;
}

.post-header-actions {
  position: relative;
}

.post-options-btn {
  background: transparent;
  border: none;
  color: var(--feed-text-muted);
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.15s;
}

.post-options-btn:hover {
  background: var(--feed-sub-bg);
  color: var(--feed-text);
}

.post-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--feed-card-bg);
  border: 1px solid var(--feed-border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  padding: 6px;
  min-width: 170px;
  display: none;
  flex-direction: column;
  z-index: 40;
}

.post-menu-dropdown.open {
  display: flex;
}

.post-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--feed-text);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
  width: 100%;
}

.post-menu-item:hover {
  background: var(--feed-sub-bg);
}

.post-menu-item.danger {
  color: var(--feed-danger);
}

.post-menu-item.danger:hover {
  background: var(--feed-danger-bg);
}

.post-body {
  margin-bottom: 16px;
}

.post-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--feed-text);
  margin: 0 0 8px;
  line-height: 1.35;
}

.post-rating-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--feed-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.post-text-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--feed-text);
  word-break: break-word;
  white-space: pre-wrap;
}

.post-mention-link {
  color: var(--feed-accent);
  font-weight: 600;
  text-decoration: none;
}

.post-mention-link:hover {
  text-decoration: underline;
}

.post-attached-anime-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--feed-sub-bg);
  border: 1px solid var(--feed-border);
  border-radius: 14px;
  padding: 10px 14px;
  margin-top: 12px;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.post-attached-anime-card:hover {
  border-color: var(--feed-accent);
  transform: translateY(-1px);
}

.attached-card-poster {
  width: 48px;
  height: 68px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--feed-card-bg);
}

.attached-card-info {
  flex: 1;
  min-width: 0;
}

.attached-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--feed-text);
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attached-card-meta {
  font-size: 0.8rem;
  color: var(--feed-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.attached-card-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--feed-accent);
}

.post-attached-collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.collection-item-card {
  display: flex;
  flex-direction: column;
  background: var(--feed-sub-bg);
  border: 1px solid var(--feed-border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.15s;
}

.collection-item-card:hover {
  border-color: var(--feed-accent);
}

.collection-item-poster {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}

.collection-item-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--feed-text);
  padding: 6px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-attached-image-wrap {
  margin-top: 12px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--feed-border);
  max-height: 480px;
  display: flex;
  background: #000;
}

.post-attached-image {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  display: block;
  cursor: pointer;
}

.post-footer-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--feed-border);
}

.post-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--feed-sub-bg);
  border: 1px solid var(--feed-border);
  color: var(--feed-text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.post-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--feed-text);
}

.post-action-btn.active.like-btn {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #ef4444;
}

.post-action-btn.active.like-btn i {
  transform: scale(1.15);
  animation: heartPulse 0.3s ease-out;
}

@keyframes heartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1.15); }
}

.post-comments-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--feed-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-input-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.comment-input-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--feed-sub-bg);
  border: 1px solid var(--feed-border);
}

.comment-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reply-context-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--feed-sub-bg);
  border: 1px solid var(--feed-border);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.78rem;
  color: var(--feed-text-muted);
}

.cancel-reply-btn {
  background: transparent;
  border: none;
  color: var(--feed-text-muted);
  cursor: pointer;
}

.comment-text-input {
  width: 100%;
  background: var(--feed-sub-bg);
  border: 1px solid var(--feed-border);
  border-radius: 12px;
  padding: 9px 12px;
  color: var(--feed-text);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  resize: none;
  box-sizing: border-box;
}

.comment-text-input:focus {
  border-color: var(--feed-accent);
}

.comment-send-btn {
  align-self: flex-end;
  background: var(--feed-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.comment-send-btn:hover {
  background: var(--feed-accent-hover);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.comment-item {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
  transition: background 0.15s;
}

.comment-item.pinned {
  background: rgba(99, 102, 241, 0.06);
  border-left: 3px solid var(--feed-accent);
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--feed-sub-bg);
  border: 1px solid var(--feed-border);
}

.comment-content-block {
  flex: 1;
  min-width: 0;
}

.comment-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.comment-author-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--feed-text);
  text-decoration: none;
}

.comment-time {
  font-size: 0.72rem;
  color: var(--feed-text-muted);
}

.pinned-badge {
  font-size: 0.68rem;
  color: var(--feed-accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.comment-text {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--feed-text);
  word-break: break-word;
}

.comment-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.comment-sub-action {
  background: transparent;
  border: none;
  color: var(--feed-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.comment-sub-action:hover {
  color: var(--feed-text);
}

.comment-sub-action.liked {
  color: #ef4444;
}

.replies-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-left: 28px;
  margin-top: 8px;
  padding-left: 10px;
  border-left: 2px solid var(--feed-border);
}

.feed-skeleton-post {
  background: var(--feed-card-bg);
  border: 1px solid var(--feed-border);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skeleton-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--feed-sub-bg);
  animation: feedPulse 1.5s infinite;
}

.skeleton-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: var(--feed-sub-bg);
  animation: feedPulse 1.5s infinite;
}

.skeleton-card {
  border-radius: 12px;
  background: var(--feed-sub-bg);
  animation: feedPulse 1.5s infinite;
}

@keyframes feedPulse {
  0% { opacity: 0.6; }
  50% { opacity: 0.25; }
  100% { opacity: 0.6; }
}

.feed-empty-state {
  text-align: center;
  padding: 50px 20px;
  background: var(--feed-card-bg);
  border: 1px solid var(--feed-border);
  border-radius: 18px;
}

.empty-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--feed-sub-bg);
  color: var(--feed-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
}

.empty-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--feed-text);
  margin: 0 0 6px;
}

.empty-subtitle {
  font-size: 0.88rem;
  color: var(--feed-text-muted);
  margin: 0;
  max-width: 380px;
  margin: 0 auto;
}

.feed-load-more-btn {
  width: 100%;
  background: var(--feed-card-bg);
  border: 1px solid var(--feed-border);
  border-radius: 12px;
  padding: 12px;
  color: var(--feed-text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s;
}

.feed-load-more-btn:hover {
  background: var(--feed-sub-bg);
  border-color: var(--feed-text-muted);
}

.feed-side-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feed-widget-card {
  background: var(--feed-card-bg);
  border: 1px solid var(--feed-border);
  border-radius: 18px;
  padding: 18px;
}

.widget-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--feed-text);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rules-list li {
  font-size: 0.84rem;
  color: var(--feed-text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.rules-list li i.fa-check {
  color: var(--feed-success);
  font-size: 0.75rem;
  margin-top: 3px;
}

.rules-list li i.fa-xmark {
  color: var(--feed-danger);
  font-size: 0.75rem;
  margin-top: 3px;
}

.topics-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.topic-tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--feed-sub-bg);
  color: var(--feed-text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--feed-border);
  transition: all 0.15s;
}

.topic-tag:hover {
  border-color: var(--feed-accent);
  color: var(--feed-accent);
}

.feed-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.feed-modal-dialog {
  background: var(--feed-card-bg);
  border: 1px solid var(--feed-border);
  border-radius: 18px;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}

.feed-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--feed-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feed-modal-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--feed-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feed-modal-close-btn {
  background: transparent;
  border: none;
  color: var(--feed-text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.feed-modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.anime-search-input {
  width: 100%;
  background: var(--feed-sub-bg);
  border: 1px solid var(--feed-border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--feed-text);
  font-size: 0.9rem;
  outline: none;
  box-sizing: border-box;
}

.anime-modal-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.modal-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--feed-sub-bg);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.modal-search-item:hover {
  border-color: var(--feed-accent);
}

.modal-search-thumb {
  width: 36px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--feed-card-bg);
}

.modal-search-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--feed-text);
}

.modal-search-hint {
  font-size: 0.82rem;
  color: var(--feed-text-muted);
  text-align: center;
  padding: 20px;
}

.report-subtitle {
  font-size: 0.88rem;
  color: var(--feed-text-muted);
  margin: 0;
}

.report-reason-select,
.report-reason-custom {
  width: 100%;
  background: var(--feed-sub-bg);
  border: 1px solid var(--feed-border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--feed-text);
  font-size: 0.88rem;
  outline: none;
  box-sizing: border-box;
}

.feed-modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--feed-border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-cancel {
  background: var(--feed-sub-bg);
  border: 1px solid var(--feed-border);
  color: var(--feed-text-muted);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-confirm-report {
  background: var(--feed-danger);
  border: none;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.feed-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e1b4b;
  border: 1px solid var(--feed-accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  animation: toastFade 0.2s ease-out;
}

@keyframes toastFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}


.feed-pinned-post-container {
  margin-bottom: 20px;
}

.feed-pinned-post-card {
  position: relative;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, rgba(15, 23, 42, 0.95) 100%), var(--feed-card-bg);
  border: 1.5px solid rgba(168, 85, 247, 0.45);
  border-radius: 18px;
  box-shadow: 0 10px 30px -5px rgba(99, 102, 241, 0.25), 0 0 15px rgba(168, 85, 247, 0.15);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feed-pinned-post-card:hover {
  border-color: rgba(168, 85, 247, 0.7);
  box-shadow: 0 14px 36px -5px rgba(99, 102, 241, 0.35), 0 0 20px rgba(168, 85, 247, 0.25);
}

.feed-pinned-post-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.22) 0%, rgba(168, 85, 247, 0.22) 100%);
  border-bottom: 1px solid rgba(168, 85, 247, 0.3);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #e0e7ff;
}

.feed-pinned-post-banner-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffd166;
}

.feed-pinned-post-banner-left i {
  color: #ffd166;
  font-size: 0.95rem;
  transform: rotate(-30deg);
}

.feed-pinned-post-banner-tag {
  background: rgba(255, 209, 102, 0.15);
  color: #ffd166;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  border: 1px solid rgba(255, 209, 102, 0.3);
}

.comment-admin-pin-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  background: rgba(255, 209, 102, 0.15);
  color: #ffd166;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-left: 8px;
  border: 1px solid rgba(255, 209, 102, 0.3);
}

.comment-admin-pin-badge i {
  font-size: 0.75rem;
  color: #ffd166;
}

@media (max-width: 640px) {
  .feed-pinned-post-banner {
    padding: 8px 14px;
    font-size: 0.76rem;
  }
}
