/* Layout: hero centered with a static aside to the right (community moved further right) */
.hero-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 48px;
  padding-top: 18px;
  box-sizing: border-box;
  position: relative;
}

/* Hero container and single gradient box */
.hero-content { max-width: 980px; width: min(980px, 92%); }
.hero-box {
  background: linear-gradient(135deg, #ff69b4 0%, #8b00ff 100%);
  padding: 56px 46px;                /* slightly larger vertical padding */
  border-radius: 12px;
  color: #fff;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

/* Make the main title larger and more prominent */
.hero-box h1 {
  margin: 0 0 12px;
  font-size: 4rem;                   /* increased */
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
  text-shadow: 0 10px 30px rgba(139,0,255,0.12);
}

/* Subtitle / description */
.hero-box p {
  margin: 0 0 12px;
  font-size: 1.05rem;
  opacity: 0.95;
}

/* CTA button inside hero: larger, centered, stronger glow */
.hero-box .cta-button {
  display: inline-block;
  margin: 18px auto 0;
  padding: 14px 28px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  background: #000;
  border-radius: 12px;
  box-shadow:
    0 8px 22px rgba(0,0,0,0.6),
    0 0 22px rgba(255,105,180,0.12);
  text-decoration: none;
  border: 0;
}

/* Ensure no extra background on parent wrappers */
.hero, .hero-content { background: transparent !important; }

/* Community card (static in layout) — move it further to the right by increasing left margin.
   This lets the hero stay centered while the card sits more toward the open space on the right. */
.community-card {
  width: 200px;
  flex: 0 0 200px;
  background: rgba(10,10,10,0.98);
  border-radius: 12px;
  padding: 16px;
}
@media (max-width: 1200px) {
  .community-card { margin-left: 80px; }
}
@media (max-width: 1000px) {
  .hero-row { flex-direction: column; align-items: center; gap: 18px; padding-top: 12px; }
  .community-card { order: 2; width: 92%; flex-basis: auto; margin-left: 0; }
  .hero-content { width: 92%; }
}

/* Community inner styles */
.community-card .title {
  text-align: center;
  color: #ff93d6;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 0 8px rgba(255,105,180,0.75);
}
.community-card .stat-row {
  display:flex; align-items:center; justify-content:space-between; padding:10px 0;
  border-bottom:1px dashed rgba(255,255,255,0.03);
}
.community-card .stat-row:last-of-type { border-bottom:none; }
.community-card .stat-label { color: rgba(255,255,255,0.7); font-size:0.85rem; }
.community-card .stat-value { font-weight:800; font-size:1.35rem; color:#fff; }
.community-card .icon { width:48px; height:48px; border-radius:10px; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#ff69b4,#8b00ff); color:#000; }
.community-card .browse-btn { margin-top:12px; display:block; text-align:center; padding:10px; border-radius:10px; color:#ff69b4; border:1px solid rgba(255,105,180,0.12); text-decoration:none; font-weight:700; }

/* Social feed styles - Instagram/Twitter/TikTok hybrid */
#social-feed-root { max-width:680px; margin: 40px auto; padding: 0 20px; }
.feed-controls { display:flex; flex-direction:column; align-items:center; margin-bottom:20px; gap:8px; }
.feed-tabs { display:flex; gap:12px; align-items:center; justify-content:center; }
.feed-tabs > button[data-filter] { background:transparent; border:1px solid rgba(255,255,255,0.08); color:#ffd9f7; padding:10px 16px; border-radius:20px; cursor:pointer; font-weight:600; transition: all 0.3s ease; }
.feed-tabs > button[data-filter].active { background: linear-gradient(90deg,#ff69b4,#bf5fff); color:#000; box-shadow: 0 4px 15px rgba(255,105,180,0.4); transform: scale(1.05); }
.period-pills { display:none; gap:6px; justify-content:center; }
.period-pills.visible { display:flex; }
.period-pills button { background:transparent; border:1px solid rgba(255,255,255,0.06); color:#ffd9f7; padding:5px 10px; border-radius:14px; cursor:pointer; font-size:0.78em; font-weight:600; transition: all 0.3s ease; }
.period-pills button.active { background:rgba(255,105,180,0.25); color:#ff69b4; border-color:rgba(255,105,180,0.4); }
.content-type-pills { display:flex; gap:6px; justify-content:center; margin-top:8px; }
.content-type-pills button { background:transparent; border:1px solid rgba(255,255,255,0.06); color:#ffd9f7; padding:5px 10px; border-radius:14px; cursor:pointer; font-size:0.78em; font-weight:600; transition: all 0.3s ease; }
.content-type-pills button.active { background:rgba(139,0,255,0.25); color:#bf5fff; border-color:rgba(139,0,255,0.4); }

.feed-composer { background: #000; border:1px solid rgba(255,105,180,0.2); padding:16px; border-radius:15px; margin-bottom:16px; }
.composer-row { display:flex; gap:16px; align-items: flex-start; }
  .composer-avatar {
    width:48px; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:800; font-size:1.2em;
    background: linear-gradient(135deg, #ff0080, #ff4080);
  }
.composer-input { flex:1; }
.composer-input textarea { width:100%; min-height:80px; resize:vertical; background:transparent; border:1px solid rgba(255,255,255,0.06); padding:12px; border-radius:12px; color:var(--color-text); font-size:1.1em; }
.composer-meta { display:flex; gap:12px; margin-top:12px; align-items:center; justify-content: space-between; }
.composer-meta input[type=file] { display:inline-block; }
.composer-meta select { background:transparent; border:1px solid rgba(255,255,255,0.08); padding:8px 12px; border-radius:12px; color:var(--color-text); }
.composer-meta .composer-submit { padding:10px 20px; border-radius:12px; background:linear-gradient(90deg,#ff69b4,#bf5fff); color:#000; border:0; cursor:pointer; font-weight:700; transition: all 0.3s ease; }
.composer-meta .composer-submit:hover { transform: scale(1.05); box-shadow: 0 4px 15px rgba(255,105,180,0.4); }

.feed-list { display:flex; flex-direction:column; gap:16px; }
.feed-item { background: #000; padding:16px; border-radius:15px; border:1px solid rgba(255,105,180,0.2); position:relative; box-shadow: 0 0 12px rgba(255,105,180,0.06); transition: border-color 0.2s; }
.feed-item:hover { border-color: rgba(255,105,180,0.35); }
.post-header { display:flex; gap:8px; align-items:center; margin-bottom:8px; }
.post-avatar { width:28px; height:28px; border-radius:14px; flex-shrink:0; border: 1px solid rgba(255,105,180,0.2); overflow:hidden; }
.post-avatar .default-avatar {
  width:100%; height:100%; border-radius:14px; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:0.7em;
}
.post-meta { flex:1; min-width:0; }
.post-meta .post-user { font-weight:600; color:#fff; font-size:14px; }
.post-meta .post-time { color: #ccc; font-size:12px; }
.feed-header-right { display:flex; align-items:center; gap:8px; margin-left:auto; flex-shrink:0; }
.feed-header-icon { background:none; border:none; padding:4px; cursor:pointer; transition:color 0.2s, opacity 0.2s; color:#ccc; font-size:14px; }
.feed-header-icon:hover { color:#ff69b4; }
.feed-header-icon .fa-flag { font-size:13px; }
.post-body {
  margin:8px 0 12px; color:#fff; font-size:16px; line-height:1.4;
  /* Long-string safety: a 1000-char run of "ffffff" with no spaces would
     otherwise overflow the feed card horizontally and push every action
     button off-screen. overflow-wrap:anywhere lets the browser break
     inside any character; word-break:break-word is the fallback for older
     browsers. pre-wrap preserves user line breaks while still wrapping. */
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}
.post-media { margin:0 0 12px; position:relative; overflow:hidden; border-radius:12px; }
.post-media > img,
.post-media > .feed-media-img,
.feed-media-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.post-media video { width:100%; max-height:600px; border-radius:12px; display:block; }
.post-actions { display:flex; gap:16px; margin-top:12px; align-items: center; }
.post-actions button { background:transparent; border:none; padding:4px; cursor:pointer; color:#ccc; font-weight:600; transition: color 0.2s; display: flex; align-items: center; gap: 4px; font-size:12px; }
.post-actions button:hover { color: #ff69b4; }
.btn-like { color: #ff69b4; }
.btn-like.liked { color: #ff1493; }
.btn-comment { color: #ccc; }
.btn-flag { background:transparent !important; border:none !important; cursor:pointer; padding:4px !important; opacity:0.6; transition: opacity 0.2s; }
.btn-flag:hover { opacity:1; }

@media (max-width: 900px){
  #social-feed-root { padding:0 12px; }
  .composer-row { flex-direction:column; }
  .composer-avatar{align-self:flex-start;}
  .post-actions { gap:8px; }
  .post-actions button { padding:4px; font-size:12px; }
  .feed-item { padding:14px; }
}

/* Heart button styles — Love / Hate reactions */
.heart-btn {
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 4px !important;
  transition: color 0.2s ease !important;
}
.heart-btn.active i {
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
}

/* Love pulse animation */
@keyframes lovePulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.5); }
  60% { transform: scale(0.9); }
  100% { transform: scale(1); }
}
.btn-fav.active i {
  animation: lovePulse 0.4s ease-out;
  color: #ff69b4 !important;
  filter: drop-shadow(0 0 6px rgba(255, 105, 180, 0.7));
}

/* Hate shake animation */
@keyframes hateShake {
  0% { transform: scale(1); }
  15% { transform: scale(1.3) rotate(-5deg); }
  30% { transform: scale(0.85) rotate(5deg); }
  50% { transform: scale(1.15) rotate(-3deg); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); }
}
.btn-hate.active i {
  animation: hateShake 0.5s ease-out;
  color: #ff2a2a !important;
  filter: drop-shadow(0 0 6px rgba(255, 42, 42, 0.7));
}

/* Rating dropdown styles */
.rating-dropdown {
  background: linear-gradient(135deg, rgba(15,15,15,0.95), rgba(10,10,10,0.95));
  border: 1px solid rgba(255,105,180,0.3);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  min-width: 220px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  position: relative;
}

.rating-dropdown:hover {
  border-color: rgba(255,105,180,0.6);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,105,180,0.25);
}

.rating-dropdown:focus {
  outline: none;
  border-color: rgba(255,105,180,0.8);
  box-shadow: 0 0 0 3px rgba(255,105,180,0.15);
}

.rating-dropdown option {
  background: #0f0f0f;
  color: #fff;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.rating-dropdown option:hover {
  background: rgba(255,105,180,0.1);
}

.rating-dropdown option[selected] {
  background: linear-gradient(135deg, rgba(255,105,180,0.2), rgba(139,0,255,0.15));
  color: #fff;
  font-weight: 700;
}

/* Custom dropdown arrow styling */
.rating-dropdown::-ms-expand {
  display: none;
}

.rating-dropdown {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.6) 50%), linear-gradient(135deg, rgba(255,105,180,0.6), rgba(139,0,255,0.6));
  background-position: calc(100% - 18px) calc(1em + 2px), calc(100% - 15px) 1em;
  background-size: 5px 5px, 12px 12px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

@media (max-width: 900px) {
  .rating-dropdown {
    min-width: 180px;
    font-size: 0.9rem;
    padding: 8px 12px;
  }
}

/* Rating Creation Interface Styles */
.rating-creation-container {
  display: flex;
  flex-direction: row;
  gap: 8px;
  min-width: 280px;
  background: linear-gradient(135deg, rgba(15,15,15,0.95), rgba(10,10,10,0.95));
  border: 1px solid rgba(255,105,180,0.2);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.rating-search-group {
  position: relative;
  flex: 1;
}

.song-search-input {
  background: transparent;
  border: 1px solid rgba(255,105,180,0.3);
  color: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  position: relative;
}

.song-search-input:hover {
  border-color: rgba(255,105,180,0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,105,180,0.2);
}

.song-search-input:focus {
  outline: none;
  border-color: rgba(255,105,180,0.8);
  box-shadow: 0 0 0 3px rgba(255,105,180,0.15);
}

.song-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #0f0f0f;
  border: 1px solid rgba(255,105,180,0.3);
  border-radius: 6px;
  max-height: 160px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.song-search-results.active {
  display: block;
}

.song-search-result-item {
  padding: 8px 10px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: #fff;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.song-search-result-item:hover {
  background: rgba(255,105,180,0.1);
  color: #fff;
}

.song-search-result-item:last-child {
  border-bottom: none;
}

.song-search-result-item .song-title {
  font-weight: 700;
  display: block;
}

.song-search-result-item .artist-name {
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  margin-top: 1px;
}

.rating-input-group {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 120px;
}

.rating-input {
  background: transparent;
  border: 1px solid rgba(255,105,180,0.3);
  color: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  text-align: center;
  width: 60px;
}

.rating-input:hover {
  border-color: rgba(255,105,180,0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,105,180,0.2);
}

.rating-input:focus {
  outline: none;
  border-color: rgba(255,105,180,0.8);
  box-shadow: 0 0 0 3px rgba(255,105,180,0.15);
}

.selected-song-display {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,105,180,0.15);
  border: 1px solid rgba(255,105,180,0.4);
  border-radius: 8px;
  padding: 6px 8px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  display: none;
}

.selected-song-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clear-rating-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #ff69b4;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.clear-rating-btn:hover {
  background: rgba(255,105,180,0.2);
  border-color: rgba(255,105,18ang,0.6);
  transform: scale(1.1);
}

@media (max-width: 900px) {
  .rating-creation-container {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    max-width: none;
    flex-direction: column;
    padding: 10px;
    box-sizing: border-box;
  }

  .rating-search-group {
    flex: none;
    width: 100%;
  }

  .rating-input-group {
    width: 100%;
    justify-content: flex-start;
  }

  .rating-input {
    width: 60px;
  }
}

/* ─── Feed card structure ─────────────────────────────────────────── */
.feed-author-row { display: flex; gap: 8px; margin-bottom: 8px; }
.feed-author-avatar { width: 28px; height: 28px; border-radius: 14px; border: 1px solid rgba(255,105,180,0.2); object-fit: cover; }
.feed-default-avatar { width: 28px; height: 28px; border-radius: 14px; background: rgba(255,105,180,0.1); display: flex; align-items: center; justify-content: center; }
.feed-author-info { flex: 1; min-width: 0; }
.feed-author-name { font-weight: 600; font-size: 14px; }
.feed-author-username { font-size: 11px; }
.feed-author-time { font-size: 11px; margin-left: auto; }

/* ─── Attached song/album card ────────────────────────────────────── */
.feed-attached-song { display: flex; align-items: center; gap: 10px; background: #161616; border-radius: 10px; padding: 10px; margin: 8px 0; border: 1px solid rgba(255,105,180,0.2); }
.feed-attached-cover { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; }
.feed-attached-cover-placeholder { width: 40px; height: 40px; border-radius: 6px; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; }
.feed-attached-info { flex: 1; overflow: hidden; }
.feed-attached-title { font-weight: 600; color: #fff; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-attached-artist { font-size: 11px; color: #ccc; margin-top: 1px; }

/* ─── Score badge ─────────────────────────────────────────────────── */
.feed-score-badge { border-width: 1.5px; border-style: solid; border-radius: 8px; padding: 3px 8px; font-weight: 700; font-size: 12px; text-shadow: 0 0 8px currentColor; box-shadow: 0 0 8px currentColor; }
.feed-score-badge-sm { border-width: 1.5px; border-style: solid; border-radius: 8px; padding: 2px 7px; font-weight: 700; font-size: 12px; text-shadow: 0 0 8px currentColor; box-shadow: 0 0 8px currentColor; }

/* ─── Take card ───────────────────────────────────────────────────── */
.feed-take-card { border-radius: 15px; overflow: hidden; position: relative; border: 1px solid rgba(255,105,180,0.2); }
.feed-take-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(25px); transform: scale(1.1); }
.feed-take-content { position: relative; padding: 16px; background: rgba(0,0,0,0.65); }

/* ─── Sensitive content overlay ───────────────────────────────────── */
.feed-sensitive-wrapper { position: relative; overflow: hidden; border-radius: 12px; }
.feed-sensitive-blur { filter: blur(20px); transition: filter 0.3s; }
.feed-sensitive-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; z-index: 2; background: rgba(0,0,0,0.4); border-radius: 12px; }
.feed-sensitive-icon { font-size: 24px; color: #ff69b4; margin-bottom: 8px; }
.feed-sensitive-label { color: #ffd9f7; font-weight: 700; font-size: 14px; }
.feed-sensitive-hint { color: rgba(255,255,255,0.6); font-size: 12px; margin-top: 4px; }

/* ─── Reaction / action button groups ─────────────────────────────── */
.feed-reaction-group { display: flex; align-items: center; gap: 16px; }
.feed-reaction-pair { display: flex; align-items: center; gap: 4px; }
.feed-icon-pink { color: #ff69b4; font-size: 15px; }
.feed-icon-muted { color: #ff69b4; font-size: 15px; }
.feed-btn-sm { padding: 4px !important; font-size: 15px; background: transparent !important; border: none !important; }
.feed-btn-md { padding: 4px !important; font-size: 15px; background: transparent !important; border: none !important; }
.feed-btn-bare { background: transparent !important; border: none !important; }
.feed-count { font-size: 12px; color: #ccc; font-weight: 400; }
.feed-btn-text { margin-left: 4px; font-size: 12px; color: #ccc; }
.feed-actions-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 0; }

/* ─── Mixtape card ────────────────────────────────────────────────── */
.feed-mixtape-row { display: flex; gap: 12px; align-items: center; }
.feed-mixtape-cover { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.feed-mixtape-cover-placeholder { width: 56px; height: 56px; border-radius: 8px; background: rgba(255,105,180,0.15); display: flex; align-items: center; justify-content: center; }
.feed-mixtape-info { flex: 1; min-width: 0; }
.feed-mixtape-name { font-weight: 700; color: #ffd9f7; font-size: 1em; }
.feed-mixtape-desc { font-size: 0.8em; color: rgba(255,255,255,0.5); margin-top: 2px; }
.feed-mixtape-meta { font-size: 0.75em; color: #bf5fff; margin-top: 4px; }
.feed-mixtape-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 9px; border-radius: 8px;
  background: rgba(192,132,252,0.2); border: 1px solid rgba(192,132,252,0.45);
  color: #c084fc;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* ─── Discussion card (Phase 4) ───────────────────────────────────── */
.feed-discussion-card {
  position: relative; overflow: hidden;
  isolation: isolate;
  cursor: pointer;
}
.feed-disc-backdrop {
  position: absolute; inset: -30px; z-index: 0;
  background-size: cover; background-position: center;
  filter: blur(28px) saturate(1.4);
  opacity: 0.55;
}
.feed-disc-backdrop-gradient {
  background: linear-gradient(135deg, #2a1a3e 0%, #1a0f2e 100%);
  filter: none;
  opacity: 1;
}
.feed-disc-backdrop-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.85) 100%);
}
.feed-disc-inner { position: relative; z-index: 2; }
.feed-disc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.feed-disc-name-block { line-height: 1.1; }
.feed-disc-name { color: #fff; font-weight: 700; font-size: 0.92rem; }
.feed-disc-handle { color: #aaa; font-size: 0.78rem; }
.feed-disc-time { color: #888; font-size: 0.78rem; margin-left: auto; }
.feed-disc-entity {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
  padding: 8px; background: rgba(0,0,0,0.4); border-radius: 10px;
}
.feed-disc-entity-text { flex: 1; min-width: 0; }
.feed-disc-entity-action {
  color: #aaa; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.feed-disc-entity-title { color: #fff; font-weight: 700; font-size: 0.95rem; }
.feed-disc-entity-sub { color: #bbb; font-size: 0.8rem; }
.feed-disc-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 9px; border-radius: 8px;
  background: rgba(255,105,180,0.2); border: 1px solid rgba(255,105,180,0.45);
  color: #ff69b4;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.04em;
  flex-shrink: 0;
}
.feed-disc-body { color: #eee; font-size: 0.92rem; line-height: 1.45; margin-bottom: 14px; }
.feed-disc-react-row {
  display: flex; align-items: center; gap: 14px; padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.82rem;
}
.feed-disc-react {
  display: inline-flex; align-items: center; gap: 5px;
  color: #ff69b4; font-weight: 600;
}
.feed-disc-react > span { color: #fff; font-weight: 700; }
.feed-disc-react-spacer { flex: 1; }

/* Interactive vote + reply buttons */
.feed-disc-vote-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: transparent; border: 1px solid rgba(255,105,180,0.3);
  color: #ff69b4; padding: 4px 10px; border-radius: 14px;
  cursor: pointer; font-size: 0.82rem; font-weight: 700;
  transition: background 0.15s, border-color 0.15s;
}
.feed-disc-vote-btn:hover { background: rgba(255,105,180,0.1); }
.feed-disc-vote-btn.voted-up { background: rgba(255,105,180,0.2); border-color: #ff69b4; }
.feed-disc-vote-btn-down { color: #ff4d4f; border-color: rgba(255,77,79,0.3); }
.feed-disc-vote-btn-down:hover { background: rgba(255,77,79,0.1); }
.feed-disc-vote-btn-down.voted-down { background: rgba(255,77,79,0.18); border-color: #ff4d4f; }
.feed-disc-reply-btn {
  display: inline-flex; align-items: center; gap: 5px;
  color: #ccc; text-decoration: none; font-size: 0.82rem; font-weight: 600;
  padding: 4px 10px; border-radius: 14px;
}
.feed-disc-reply-btn:hover { color: #ff69b4; background: rgba(255,105,180,0.08); }

/* Author links — make username + avatar clickable */
.feed-disc-author-link, .feed-disc-name, .feed-disc-handle {
  text-decoration: none; color: inherit;
}
.feed-disc-name { color: #fff; font-weight: 700; font-size: 0.92rem; }
.feed-disc-name:hover { color: #ff69b4; }
.feed-disc-handle { color: #aaa; font-size: 0.78rem; }
.feed-disc-handle:hover { color: #ff69b4; }

/* ─── Repost card ─────────────────────────────────────────────────── */
.feed-repost-header { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 12px; color: rgba(255,255,255,0.5); }
.feed-repost-avatar { width: 20px; height: 20px; border-radius: 6px; object-fit: cover; }
.feed-repost-inner { border-radius: 10px; overflow: hidden; }

/* ─── Comments ────────────────────────────────────────────────────── */
.feed-comments-section { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.03); }
.feed-comments-list { margin-bottom: 12px; }
.feed-comment-input { flex: 1; background: transparent; border: 1px solid rgba(255,255,255,0.03); padding: 8px; border-radius: 8px; color: var(--color-text); resize: none; font-family: inherit; font-size: inherit; line-height: 1.4; max-height: 120px; overflow-y: auto; box-sizing: border-box; scrollbar-width: thin; scrollbar-color: rgba(255,105,180,0.45) transparent; }
.feed-comment-input::-webkit-scrollbar { width: 7px; }
.feed-comment-input::-webkit-scrollbar-thumb { background: rgba(255,105,180,0.4); border-radius: 4px; }
.feed-comment-input::-webkit-scrollbar-track { background: transparent; }
/* Bottom-align so the Post button + image icon stay put as the textarea grows. */
.comment-form { align-items: flex-end; }
.feed-comment-submit { background: #ff69b4; color: #000; border: 0; padding: 8px 12px; border-radius: 8px; cursor: pointer; font-weight: 600; flex-shrink: 0; }

/* ─── Post hashtags ───────────────────────────────────────────────── */
.feed-hashtags { margin: 8px 0 0 0; }
.feed-hashtag-link { color: #bf5fff; font-weight: 600; margin-right: 8px; text-decoration: none; }

/* ─── Pinned post ─────────────────────────────────────────────────── */
.feed-pinned { border: 1.5px solid rgba(255,105,180,0.5); background: #000; }
.feed-pinned-user { color: #ff69b4; font-weight: 700; }
.feed-pinned-time { color: #bf5fff; }
.feed-pinned-body { font-weight: 600; color: #ffd9f7; }
.feed-pinned-avatar { width: 100%; height: 100%; border-radius: 14px; object-fit: cover; }

/* ─── Avatar in post header ───────────────────────────────────────── */
.feed-post-avatar-img { width: 100%; height: 100%; border-radius: 14px; object-fit: cover; }
.feed-post-default-avatar { background: linear-gradient(135deg,#ff69b4,#8b00ff); width: 100%; height: 100%; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #000; font-size: 0.65em; }

/* ─── Misc link helpers ───────────────────────────────────────────── */
.feed-link-inherit { color: inherit; text-decoration: none; }
.feed-link-white { color: #fff; text-decoration: none; font-weight: 700; }
.feed-link-pink { color: #ff69b4; text-decoration: none; }
.feed-link-green { color: #4ade80; text-decoration: none; font-weight: 600; }
.feed-link-muted { font-size: 12px; color: rgba(255,255,255,0.5); text-decoration: none; cursor: pointer; }

/* ─── Take-specific styles ────────────────────────────────────────── */
.feed-take-username { font-size: 11px; color: #ff69b4; }
.feed-name-bold { font-weight: 600; font-size: 14px; color: #fff; }
.feed-take-time { color: rgba(255,255,255,0.4); }
.feed-take-song-link { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; text-decoration: none; transition: opacity 0.2s; }
.feed-take-song-link:hover { opacity: 0.8; }
.feed-take-song-cover { width: 44px; height: 44px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); }
.feed-take-song-info { flex: 1; overflow: hidden; }
.feed-take-song-title { font-weight: 700; color: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-take-song-artist { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 1px; }
.feed-take-badges { display: flex; align-items: center; gap: 6px; }
.feed-take-type-badge { font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px; }
.feed-take-content-quick { color: #ff69b4; font-style: italic; font-weight: 600; text-shadow: 0 0 6px rgba(255,105,180,0.4); font-size: 14px; line-height: 1.5; margin-bottom: 10px; }
.feed-take-content-full { color: #fff; font-size: 14px; line-height: 1.5; margin-bottom: 10px; }
.feed-take-footer { display: flex; align-items: center; justify-content: space-between; }
.feed-take-actions { display: flex; gap: 14px; align-items: center; }
.feed-take-action-link { font-size: 12px; color: rgba(255,255,255,0.5); text-decoration: none; cursor: pointer; }
.feed-take-action-link:hover { color: #ff69b4; }
.feed-take-text { color: #ff69b4; font-weight: 600; font-style: italic; font-size: 10px; margin-top: 4px; text-shadow: 0 0 8px rgba(255,105,180,0.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-take-text-lg { color: #ff69b4; font-weight: 600; font-style: italic; font-size: 14px; margin: 4px 0 8px; text-shadow: 0 0 8px rgba(255,105,180,0.4); }

/* ─── Overlay on photo (attached rating + score over carousel) ──── */
.feed-photo-overlay { position: absolute; left: 10px; right: 10px; background: rgba(0,0,0,0.8); border-radius: 10px; padding: 8px 10px; border: 1px solid rgba(255,255,255,0.1); z-index: 2; }
.feed-photo-overlay-bottom-12 { bottom: 10px; }
.feed-photo-overlay-bottom-28 { bottom: 26px; }
.feed-overlay-row { display: flex; align-items: center; gap: 6px; }
.feed-overlay-cover { width: 28px; height: 28px; border-radius: 5px; object-fit: cover; flex-shrink: 0; }
.feed-overlay-info { flex: 1; min-width: 0; overflow: hidden; }
.feed-overlay-title { color: #fff; font-weight: 600; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-overlay-artist { font-size: 9px; color: rgba(255,255,255,0.5); margin-top: 1px; }
.feed-overlay-score { flex-shrink: 0; }

/* ─── Carousel dots ───────────────────────────────────────────────── */
.feed-carousel-dots { display: flex; justify-content: center; gap: 5px; margin-top: 8px; }
.feed-dot { width: 6px; height: 6px; border-radius: 3px; }
.feed-dot-active { background: #ff69b4; }
.feed-dot-inactive { background: rgba(255,255,255,0.3); }

/* ─── Multi-image carousel ────────────────────────────────────────── */
/* overscroll-behavior-x: contain stops a swipe past the first/last image from
   chaining to the mobile browser's back/forward edge-swipe (which slid the
   previous page in from the left — looked like the nav tray "pulling out"). */
.feed-media-carousel { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; gap: 8px; scroll-behavior: smooth; scrollbar-width: none; }
.feed-media-carousel::-webkit-scrollbar { display: none; }
.feed-media-img { width: 100%; max-height: 500px; object-fit: cover; border-radius: 12px; flex-shrink: 0; scroll-snap-align: start; display: block; }
.feed-media-img-400 { width: 100%; max-height: 400px; object-fit: cover; border-radius: 12px; flex-shrink: 0; scroll-snap-align: start; display: block; }

/* Instagram-web style left/right arrow nav for the carousel. Only rendered
   when there are 2+ images; the renderer adds .feed-carousel-arrow buttons
   as siblings of the scrolling .feed-media-carousel inside the position-
   relative .feed-media-relative wrapper. Arrows fade on hover; auto-hide
   the prev arrow on first image and next arrow on last (toggled by JS). */
.feed-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,105,180,0.85);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
    padding: 0;
    box-shadow: 0 4px 12px rgba(255,105,180,0.35);
}
.feed-carousel-arrow:hover {
    background: #ff1493;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 18px rgba(255,20,147,0.55);
}
.feed-carousel-prev { left: 10px; }
.feed-carousel-next { right: 10px; }
.feed-carousel-arrow[hidden] { display: none; }

/* ─── Skeleton loader helper ──────────────────────────────────────── */
.feed-skeleton-header { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.feed-skeleton-body { flex: 1; }

/* ─── Post media position relative ────────────────────────────────── */
.feed-media-relative { position: relative; overflow: hidden; border-radius: 12px; }

/* ─── Repost border ───────────────────────────────────────────────── */
.feed-repost-border { border-left: 3px solid rgba(78,222,128,0.4); }
.feed-repost-unavailable { padding: 12px; color: rgba(255,255,255,0.4); font-size: 12px; }

/* ─── Empty state & error state ───────────────────────────────────── */
.feed-empty-state { text-align: center; padding: 40px; color: #ffd9f7; opacity: 0.6; }
.feed-error-state { text-align: center; padding: 40px; color: #ff69b4; }

/* ─── Features section margin ─────────────────────────────────────── */
.feed-features-mt { margin-top: 36px; }
.feed-section-mt { margin-top: 28px; }

/* ─── Score text-shadow for takes ─────────────────────────────────── */
.feed-score-glow { text-shadow: 0 0 8px currentColor; }

/* ─── Comment styles ──────────────────────────────────────────────── */
.feed-comment-item { margin-bottom: 8px; padding: 8px; background: rgba(255,255,255,0.02); border-radius: 6px; display: flex; align-items: flex-start; gap: 8px; }
.feed-comment-reply-btn { margin-left: 8px; background: transparent; border: none; color: #ff69b4; padding: 0; cursor: pointer; font-size: 0.8em; }
.feed-comment-delete-btn { margin-left: 8px; background: transparent; border: 1px solid rgba(255,105,180,0.3); color: #ff69b4; padding: 2px 6px; border-radius: 4px; cursor: pointer; font-size: 0.8em; }
.feed-comment-time { color: rgba(255,255,255,0.6); margin-left: 8px; }
.feed-comment-avatar-box { border-radius: 50%; overflow: hidden; background: linear-gradient(135deg,#ff69b4,#8b00ff); display: flex; align-items: center; justify-content: center; font-size: 0.8em; font-weight: 800; color: #000; flex-shrink: 0; }
.feed-comment-avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.feed-comment-nested { border-left: 2px solid rgba(255,105,180,0.2); }

/* ─── Misc utility classes ────────────────────────────────────────── */
.feed-name-bold { font-weight: 700; }
.feed-btn-bare { background: none; border: none; cursor: pointer; }
.feed-header-mb { margin-bottom: 10px; }
.feed-icon-color-666 { color: #666; }
.feed-icon-hate { color: #ff2a2a; }
.feed-icon-green-sm { color: #4ade80; font-size: 11px; }
.feed-repost-btn-sm { padding: 2px 6px; font-size: 12px; background: none; border: none; cursor: pointer; }
.feed-bookmark-muted { color: rgba(255,255,255,0.4); }
.feed-skeleton-mb { margin-bottom: 20px; }

/* ─── Loading / scroll UI (JS-created elements) ──────────────────── */
#feed-loading-marker { text-align: center; padding: 20px; color: #ff69b4; display: none; font-size: 14px; }
#feed-end-marker { text-align: center; padding: 30px 20px; color: rgba(255,255,255,0.4); font-size: 13px; display: none; }
#feed-sentinel { height: 1px; width: 100%; }

/* ─── Back to top button ──────────────────────────────────────────── */
.feed-back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #ff69b4, #bf5fff);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff; font-size: 16px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(255,105,180,0.4), 0 0 15px rgba(191,95,255,0.2);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(10px);
}
.feed-back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.feed-back-to-top:hover { transform: translateY(0) scale(1.1); box-shadow: 0 6px 25px rgba(255,105,180,0.6), 0 0 20px rgba(191,95,255,0.35); }

/* ─── Edit mode elements ──────────────────────────────────────────── */
.feed-edit-textarea { width: 100%; min-height: 64px; resize: vertical; background: transparent; border: 1px solid rgba(255,255,255,0.03); padding: 8px; border-radius: 8px; color: var(--color-text); }
.feed-edit-save { background: linear-gradient(90deg,#ff69b4,#bf5fff); color: #000; border: 0; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.feed-edit-cancel { background: transparent; border: 1px solid rgba(255,255,255,0.03); padding: 6px 8px; border-radius: 8px; cursor: pointer; color: #ffd9f7; }
