.club-detail {
  background: #101010;
  border: 1px solid #242424;
  border-radius: 20px;
  padding: 2.5rem 5rem;
  display: grid;
  gap: 2rem;
  min-width: 0;
}

.club-hero {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  align-items: center;
} 

.club-photo {
  width: 120px;
  height: 120px;
  border-radius: 18px;
  background: var(--club-photo-url, url('/Images/club_default.png')) center/cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.club-hero__text {
  display: grid;
  gap: 0.3rem;
}

.club-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.4rem;
}

.club-hero__actions .btn-primary,
.club-hero__actions .btn-secondary {
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

.club-created-by {
  margin: 0;
  font-size: 0.9rem;
  color: #b2b2b2;
}

.club-edit-btn {
  align-self: start;
  justify-self: start;
  margin-top: 0.4rem;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  border: 1px solid #2a2a2a;
  background: #101010;
  color: #cfcfcf;
  text-decoration: none;
}

.club-edit-btn:hover {
  color: #ffffff;
  border-color: #3a3a3a;
}

.club-create-actions .btn-primary,
.club-create-actions .btn-secondary {
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  font-size: 0.95rem;
}

.club-photo-picker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.club-photo-picker span {
  color: #b2b2b2;
  font-size: 0.9rem;
}

.club-photo-picker .btn-secondary {
  border: none;
  background: transparent;
  color: #ffffff;
  border-radius: 0;
  padding: 0;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: opacity 0.16s ease;
}

.club-photo-picker .btn-secondary:hover {
  opacity: 0.82;
}

.club-create-actions .btn-secondary {
  border: 1px solid #2a2a2a;
  background: #101010;
  color: #cfcfcf;
}

.club-create-actions .btn-secondary:hover {
  color: #ffffff;
  border-color: #3a3a3a;
}

.club-create-actions .btn-primary {
  border: none;
  color: #ffffff;
  background: linear-gradient(135deg, #f04030, #ff6b4a);
  box-shadow: 0 8px 20px rgba(240, 64, 48, 0.35);
}

.club-create-actions .btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 22px rgba(240, 64, 48, 0.42);
}

.invite-link {
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  border: 1px solid #2a2a2a;
  background: #101010;
  color: #cfcfcf;
  text-decoration: none;
}

.invite-link:hover {
  color: #ffffff;
  border-color: #3a3a3a;
}

.club-members-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.back-to-clubs {
  color: #d7d7d7;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.back-to-clubs:hover {
  color: #ffffff;
}

.is-hidden {
  display: none !important;
}

.club-header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  margin-top: 1.5rem;
}

.club-header h2 {
  margin: 0 0 0.5rem 0;
}

.club-tag {
  color: #b5b5b5;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  margin-bottom: 0.5rem;
}

.club-action-join,
.club-action-leave {
  min-width: 140px;
  min-height: 40px;
  justify-content: center;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-size: 0.95rem;
  box-sizing: border-box;
  border: 1px solid transparent;
  background-clip: padding-box;
}

.club-action-leave {
  background: #101010;
  color: #cfcfcf;
  box-shadow: inset 0 0 0 1px #2a2a2a;
}

.club-action-leave:hover {
  color: #ffffff;
  box-shadow: inset 0 0 0 1px #3a3a3a;
}

.club-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.metric-value {
  font-size: 1.6rem;
  font-weight: 700;
}

.metric-label {
  display: block;
  color: #9a9a9a;
}

.club-tabs {
  position: sticky;
  top: 80px;
  background: rgba(10, 10, 10, 0);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 100%;
  padding: 0 1rem;
  margin-top: 2rem;
}

.club-tabs .tab-button {
  padding: 1.25rem 0;
  background: none;
  border: none;
  color: #cacaca;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.club-tabs .tab-button.active {
  color: #fff;
  border-bottom-color: #379846;
}

.club-panel {
  display: none;
  gap: 1.5rem;
}

.club-panel.is-active {
  display: grid;
}

.club-panel__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.panel-card {
  background: #141414;
  border: 1px solid #252525;
  border-radius: 16px;
  padding: 1rem 1.2rem;
}

.club-visibility {
  margin: 0.6rem 0 0;
  color: #9f9f9f;
  font-size: 0.9rem;
}

.chip-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chip {
  background: #1a1a1a;
  border: 1px solid #2b2b2b;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.club-collection-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.35rem;
}

.collection-card {
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 0;
  color: #e0e0e0;
  display: block;
  flex: 0 0 112px;
  width: 112px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.collection-poster {
  border-radius: 8px;
  overflow: hidden;
  background: #0c0c0c;
  aspect-ratio: 2 / 3;
  width: 100%;
  margin: 0;
  border: 1px solid #242424;
}

.collection-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.collection-poster.has-image {
  background: transparent;
}

.collection-poster--placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(240, 64, 48, 0.35), rgba(12, 12, 12, 0.9));
  color: #f3f3f3;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  padding: 0.6rem;
}

.collection-card:hover {
  transform: translateY(-1px);
}

.club-post-image {
  width: auto;
  max-width: min(100%, 420px);
  max-height: 260px;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 14px;
  margin: 1rem 0 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.club-discussion-form {
  display: grid;
  gap: 0.8rem;
  background: #141414;
  border: 1px solid #272727;
  border-radius: 16px;
  padding: 1.4rem 1.5rem 2.4rem;
  position: relative;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  scroll-margin-top: 120px;
}

.club-post-form {
  position: relative;
}

.club-post-form.is-collapsed {
  max-height: 210px;
  overflow: hidden;
}

.club-post-form.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  background: linear-gradient(to bottom, rgba(20, 20, 20, 0), rgba(20, 20, 20, 0.98));
  pointer-events: none;
  border-radius: 0 0 16px 16px;
}

.club-post-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.club-post-form-title {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #d6d6d6;
}

.club-post-toggle {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: 42px;
  height: 42px;
  border: 1px solid #2f2f2f;
  background: rgba(16, 16, 16, 0.95);
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  z-index: 2;
  color: #cfcfcf;
}

.club-post-toggle-icon {
  width: 18px;
  height: 12px;
  display: block;
  transition: transform 0.2s ease;
}

.club-post-toggle.is-expanded .club-post-toggle-icon {
  transform: rotate(180deg);
}

.club-post-toggle:hover {
  border-color: #3a3a3a;
}

.club-post-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.club-discussion-form textarea {
  border-radius: 12px;
  border: 1px solid #2f2f2f;
  background: #0f0f0f;
  color: #fff;
  padding: 0.75rem;
  font-size: 0.95rem;
  resize: vertical;
}

.club-discussion-form input {
  border-radius: 12px;
  border: 1px solid #2f2f2f;
  background: #0f0f0f;
  color: #fff;
  padding: 0.75rem;
  font-size: 0.95rem;
}

.club-discussion-form input::placeholder,
.club-discussion-form textarea::placeholder {
  font-size: 0.95rem;
}

.club-post-image-label {
  font-size: 0.9rem;
  color: #9a9a9a;
  font-weight: 600;
}

.club-post-image-picker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.club-post-image-picker .club-post-image-choose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
}

.club-post-image-picker .club-post-image-choose:hover {
  text-decoration: underline;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 2000;
  padding: 2rem;
}

.image-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox__img {
  max-width: min(1200px, 92vw);
  max-height: 92vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 1.4rem;
  cursor: pointer;
}

.club-post-image-picker span {
  color: #9a9a9a;
  font-size: 0.9rem;
}

.club-post-tag-picker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.club-post-tag-label {
  font-size: 0.85rem;
  color: #cfcfcf;
}

.club-post-tag-pill {
  border-radius: 999px;
  border: 1px solid #2f2f2f;
  background: transparent;
  color: #cfcfcf;
  padding: 0.26rem 0.72rem;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.club-post-tag-pill.pill--spoiler {
  color: #ff0808;
  border-color: #ff0808;
}

.club-post-tag-pill.pill--spoiler.is-selected {
  background: rgba(255, 8, 8, 0.16);
}

.club-discussion-form .btn-primary,
.club-update-form .btn-primary {
  align-self: flex-start;
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #f04030, #ff6b4a);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(240, 64, 48, 0.18);
}

.club-discussion-form .btn-primary:hover,
.club-update-form .btn-primary:hover {
  box-shadow: 0 12px 24px rgba(240, 64, 48, 0.28);
  transform: translateY(-1px);
}

.club-discussion-form .btn-primary:focus-visible,
.club-update-form .btn-primary:focus-visible,
.insight-comment-form button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.club-thread-list {
  display: grid;
  gap: 1rem;
}

.club-thread {
  background: #151515;
  border: 1px solid #262626;
  border-radius: 16px;
  padding: 1rem 1.2rem;
}

.club-thread.is-highlighted,
.update-card.is-highlighted {
  border-color: rgba(240, 64, 48, 0.7);
  box-shadow: 0 0 0 2px rgba(240, 64, 48, 0.2);
}

.club-thread > span {
  display: block;
  color: #9f9f9f;
  margin-top: 0.4rem;
}

.vote-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.2rem 0.75rem 0.2rem 0.35rem;
  line-height: 1;
  font-size: inherit;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #d6d6d6;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.vote-btn {
  width: 0.66em;
  height: 0.66em;
  border: 1px solid transparent;
  background: transparent;
  color: #d6d6d6;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.vote-btn::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 0.33em solid transparent;
  border-right: 0.33em solid transparent;
  border-bottom: 0.62em solid currentColor;
}

.vote-btn.is-active {
  color: #f0cc49;
}

.vote-btn:hover {
  color: #e5e8ee;
}

.vote-score {
  min-width: 0.7em;
  text-align: center;
  font-size: 0.88em;
  line-height: 1;
  color: currentColor;
  font-weight: 600;
}

.vote-bar.is-upvoted {
  border-color: #8e7800;
  background: #201b0a;
  color: #f0cc49;
}

.comment-toggle {
  padding: 0.2rem 0.75rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #d6d6d6;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  align-self: center;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.comment-toggle:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}

.comment-thread-toggle {
  color: #888;
  margin-left: 0.35rem;
}

.comment-thread-toggle:hover {
  color: #ffffff;
}

.comment-footer {
  display: flex;
  margin-top: 0.75rem;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: nowrap;
}

.comment-footer .vote-bar,
.comment-footer .comment-toggle {
  min-height: 28px;
  height: 28px;
}

.comment-footer .insight-comment-meta {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.insight-comment-list {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.5rem;
  margin-left: 1.25rem;
  padding-left: 0.9rem;
  border-left: 1px solid #222;
}

.insight-comment {
  background: #141414;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
}

.comment-collapsed-row {
  display: none;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #bcbcbc;
}

.comment-vote-slot {
  display: inline-flex;
}

.comment-collapse-toggle {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid #2a2a2a;
  background: #151515;
  color: #ffffff;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}

.comment-vote-slot .vote-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.comment-score {
  color: #d6d6d6;
  font-weight: 600;
}

.comment-time,
.comment-replies-count {
  color: #808080;
}

.insight-comment-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.comment-author {
  color: #cfcfcf;
  font-size: 0.85rem;
  text-decoration: none;
}

.comment-author:hover {
  color: #ffffff;
}

.insight-comment-meta {
  font-size: 0.8rem;
  color: #777;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  font-size: 0.82rem;
}

.insight-comment p {
  margin: 0;
  color: #ffffff;
  line-height: 1.55;
  font-size: 0.95rem;
}

.insight-comment-children {
  position: relative;
  margin-top: 0.15rem;
  margin-left: 0.3rem;
  padding-left: 0.95rem;
  display: grid;
  gap: 0.3rem;
}

.insight-comment-children::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 2px;
  background: #2a2a2a;
}

.insight-comment.replies-collapsed > .insight-comment-children {
  display: none;
}

.insight-comment.is-collapsed > .insight-comment-body > p {
  display: none;
}

.insight-comment.is-collapsed .comment-collapsed-row {
  display: inline-flex;
}

.insight-comment.is-collapsed .insight-comment-body > .comment-author {
  display: none;
}

.insight-comment.is-collapsed .comment-footer,
.insight-comment.is-collapsed .insight-comment-form,
.insight-comment.is-collapsed .insight-comment-children {
  display: none;
}

.club-thread.replies-collapsed .insight-comment-list,
.update-card.replies-collapsed .update-comments {
  display: none;
}

.insight-comment.is-collapsed img {
  display: none;
}

.insight-comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.9rem;
  background: #141414;
  border: 1px solid #232323;
  border-radius: 12px;
  padding: 0.9rem;
}

.insight-comment-form textarea {
  min-height: 2.6rem;
  resize: none;
  overflow: hidden;
  background: #101010;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  color: #e7e7e7;
  font-size: 0.95rem;
  line-height: 1.5;
}

.insight-comment-form textarea::placeholder {
  color: #666;
}

.insight-comment-form label {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: #cfcfcf;
}

.insight-comment-form button {
  align-self: flex-start;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #f04030, #ff6b4a);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(240, 64, 48, 0.18);
}

.insight-comment-form button:hover {
  box-shadow: 0 12px 24px rgba(240, 64, 48, 0.28);
  transform: translateY(-1px);
}

.insight-comment-reply-form {
  display: none;
  margin-top: 0.6rem;
}

.insight-comment-reply-form.is-open {
  display: flex;
}

.club-thread__header,
.update-card__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}

.update-card__author-row,
.club-thread__header {
  width: 100%;
}

.update-card__author-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.post-date-row {
  width: 100%;
  display: flex;
  align-items: center;
  margin-bottom: 0.18rem;
}

.post-author-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.post-header-meta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  min-width: max-content;
}

.post-header-meta--author-inline {
  margin-left: 0;
}

.update-card__header {
  flex-wrap: wrap;
  align-items: flex-start;
}

.update-card__header strong {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.3;
  font-weight: 700;
}

.post-title {
  margin: 0.2rem 0 0.5rem 0;
  font-size: 1.08rem;
  line-height: 1.3;
}

.post-excerpt {
  margin: 0;
  color: #ffffff;
  line-height: 1.55;
  font-size: 0.95rem;
}

.club-post-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.club-post-tag-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  color: #ffffff;
  background: transparent;
}

.club-post-tag-chip.pill--spoiler {
  color: #ff0808;
}

.spoiler-content {
  position: relative;
  display: block;
}

.spoiler-content.is-blurred > p {
  filter: blur(10px);
  user-select: none;
  pointer-events: none;
}

.spoiler-content.is-blurred::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.35);
}

.spoiler-content.is-revealed > p {
  filter: none;
  user-select: text;
  pointer-events: auto;
}

.spoiler-content.is-revealed::after {
  display: none;
}

.spoiler-reveal-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: none;
  border-radius: 0;
  background: transparent;
  color: rgba(243, 243, 243, 0.86);
  padding: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.author-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #cfcfcf;
  flex-shrink: 0;
}

.author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #2a2a2a;
  background: #101010;
}

.author-name,
.comment-author {
  color: #cfcfcf;
  text-decoration: none;
}

.author-name:hover,
.comment-author:hover {
  color: #ffffff;
}

.club-thread__header .author-badge,
.update-card__header .author-badge {
  align-self: flex-start;
  overflow: visible;
}

.author-name .user-upvote-total,
.comment-author .user-upvote-total {
  display: inline;
  white-space: nowrap;
  line-height: inherit;
  vertical-align: baseline;
}

.update-summary {
  color: #d9d9d9;
  font-size: 0.95rem;
  line-height: 1.55;
  flex-basis: 100%;
}

.thread-toggle {
  border: 1px solid #2a2a2a;
  background: #101010;
  color: #cfcfcf;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.thread-toggle:hover {
  color: #ffffff;
  border-color: #3a3a3a;
}

.club-thread__details,
.update-card__details {
  display: none;
  gap: 0.8rem;
  border-top: 1px solid #242424;
  padding-top: 0.8rem;
}

.club-thread.is-open .club-thread__details,
.update-card.is-open .update-card__details {
  display: grid;
}

.update-card .update-source-link {
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  margin-top: -0.2rem;
  margin-bottom: 0.25rem;
}

.update-card .update-source-link:hover {
  color: #ffffff;
}

.club-thread.is-collapsed > p,
.club-thread.is-collapsed > .comment-footer {
  display: none;
}

.update-card.is-collapsed > span,
.update-card.is-collapsed .update-card__details {
  display: none;
}

.update-comment {
  background: #101010;
  border: 1px solid #262626;
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  display: grid;
  gap: 0.3rem;
}

.update-comment strong {
  color: #f1f1f1;
  font-size: 0.9rem;
}

.update-comment span {
  font-size: 0.8rem;
  color: #7f7f7f;
}

.update-comment p {
  margin: 0;
  color: #d0d0d0;
}

.club-empty {
  margin: 0;
  color: #8f8f8f;
}

.club-update-form {
  display: grid;
  gap: 0.9rem;
  background: #141414;
  border: 1px solid #272727;
  border-radius: 16px;
  padding: 1.4rem 1.5rem 2.4rem;
  position: relative;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  scroll-margin-top: 120px;
}

.club-update-form label {
  display: grid;
  gap: 0.4rem;
  color: #cfcfcf;
  font-size: 0.9rem;
}

.update-form-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.club-update-form input,
.club-update-form textarea {
  border-radius: 12px;
  border: 1px solid #2f2f2f;
  background: #0f0f0f;
  color: #fff;
  padding: 0.75rem;
  font-size: 0.95rem;
}

.club-updates-list,
.member-grid {
  display: grid;
  gap: 1rem;
}

.club-updates-list {
  grid-template-columns: 1fr;
}

.member-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.member-grid .club-empty {
  grid-column: 1 / -1;
}

.update-card,
.member-card {
  background: #151515;
  border: 1px solid #262626;
  border-radius: 14px;
  padding: 0.9rem;
}

.update-card span {
  color: #9f9f9f;
}

@media (max-width: 980px) {
  .club-hero {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .club-photo {
    width: 96px;
    height: 96px;
  }

  .club-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.club-create-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.club-create-modal.is-open {
  display: flex;
}

.club-create-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 6, 0.7);
  backdrop-filter: blur(6px);
}

.club-create-dialog {
  position: relative;
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 18px;
  padding: 1.8rem;
  width: min(720px, 92vw);
  max-height: 85vh;
  overflow: auto;
  z-index: 1;
}

.club-create-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.club-create-close {
  background: none;
  border: none;
  color: #cfcfcf;
  font-size: 1.6rem;
  cursor: pointer;
}

.club-create-form {
  display: grid;
  gap: 0.9rem;
}

.club-create-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #cfcfcf;
}

.club-form-field {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #cfcfcf;
}

.club-form-label {
  display: inline-block;
}

.club-create-form input,
.club-create-form textarea,
.club-create-form select {
  border-radius: 12px;
  border: 1px solid #2f2f2f;
  background: #0f0f0f;
  color: #fff;
  padding: 0.75rem;
  font-size: 0.95rem;
}

.club-film-picker {
  background: #101010;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 0.8rem;
  display: grid;
  gap: 0.8rem;
}

.club-film-picker__header {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.club-film-picker__header input {
  flex: 1 1 240px;
}

.club-film-search-results {
  display: none;
  border: 1px solid #252525;
  border-radius: 10px;
  background: #111111;
  max-height: 220px;
  overflow-y: auto;
}

.club-film-search-results .search-result-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  border-bottom: 1px solid #232323;
}

.club-film-search-results .search-result-thumb {
  width: 26px;
  height: 38px;
  border-radius: 5px;
  background: #1b1b1b;
  border: 1px solid #2b2b2b;
  overflow: hidden;
  flex: 0 0 26px;
}

.club-film-search-results .search-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.club-film-search-results .search-result-content {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

.club-film-search-results .search-result-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.club-film-search-results .search-result-item:last-child {
  border-bottom: none;
}

.club-film-search-results .search-result-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.club-selected-films {
  display: grid;
  gap: 0.45rem;
}

.club-selected-film {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid #262626;
  border-radius: 10px;
  background: #131313;
}

.club-selected-film__title {
  color: #ececec;
  font-size: 0.92rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.club-selected-film__remove {
  border: none;
  background: transparent;
  color: #f04030;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.25rem;
}

.club-selected-film__remove:hover {
  color: #ff6e62;
}

.club-create-status {
  color: #9f9f9f;
  min-height: 1.2rem;
}

.club-create-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .comment-footer {
    flex-wrap: nowrap;
    align-items: center;
  }

  .comment-footer .insight-comment-meta {
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .club-detail {
    padding: 1rem;
  }

  .club-hero {
    grid-template-columns: 88px 1fr !important;
    gap: 0.75rem;
    align-items: center;
  }

  .club-photo {
    width: 88px;
    height: 88px;
    border-radius: 12px;
  }

  .club-hero__text {
    min-width: 0;
  }

  .club-hero__text h1 {
    font-size: 1.25rem;
    line-height: 1.2;
    margin: 0;
  }

  .club-created-by {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .club-detail .club-tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: stretch;
    justify-items: stretch;
    gap: 0.4rem 0.45rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0;
    margin: 1rem 0 0;
    overflow: visible;
  }

  .club-detail .club-tabs .tab-button {
    width: 100%;
    flex: none;
    max-width: none;
    min-height: 36px;
    padding: 0.35rem 0.45rem;
    font-size: 0.78rem;
    line-height: 1.2;
    border-radius: 999px;
    border: 1px solid #2b2b2b;
    background: #111111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .club-detail .club-tabs .tab-button.active {
    border-bottom-color: transparent;
    border-color: #379846;
    box-shadow: inset 0 0 0 1px rgba(55, 152, 70, 0.35);
    color: #ffffff;
  }

  .club-detail .club-tabs .tab-button[data-tab="collection"] {
    grid-column: 1 / span 2;
    grid-row: 1;
  }

  .club-detail .club-tabs .tab-button[data-tab="overview"] {
    grid-column: 3 / span 2;
    grid-row: 1;
  }

  .club-detail .club-tabs .tab-button[data-tab="members"] {
    grid-column: 5 / span 2;
    grid-row: 1;
  }

  .club-detail .club-tabs .tab-button[data-tab="updates"] {
    grid-column: 1 / span 3;
    grid-row: 2;
  }

  .club-detail .club-tabs .tab-button[data-tab="discussion"] {
    grid-column: 4 / span 3;
    grid-row: 2;
  }

  .club-detail-page {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .club-header {
    grid-template-columns: 1fr !important;
    gap: 0.8rem;
  }

  .club-post,
  .club-thread,
  .update-card,
  .insight-comment,
  .club-discussion-form,
  .club-update-form {
    padding: 0.85rem;
    width: 100%;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
    box-sizing: border-box;
  }

  .club-thread-list,
  .club-updates-list,
  .insight-comment-list,
  .insight-comment-children {
    width: 100%;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
    box-sizing: border-box;
  }

  .insight-comment-list {
    margin-left: 0;
    padding-left: 0.55rem;
  }

  .insight-comment-children {
    margin-left: 0;
    padding-left: 0.6rem;
  }

  .club-thread p,
  .update-summary,
  .insight-comment p {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .comment-footer {
    flex-wrap: wrap;
    gap: 0.45rem;
  }

  .vote-bar,
  .comment-toggle {
    min-height: 28px;
    height: 28px;
    padding: 0.08rem 0.58rem;
    border-radius: 999px;
    font-size: 0.76rem;
    line-height: 1;
  }

  .vote-bar {
    gap: 0.32rem;
    padding-left: 0.28rem;
    display: inline-flex;
    align-items: center;
  }

  .vote-btn {
    width: 0.56em;
    height: 0.56em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .vote-score {
    font-size: 0.82em;
  }

  .invite-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}
