/* Page-specific styles for community.html */
:root {
  --fitgram-orange: #ea580c;
  --fitgram-ink: #262626;
  --fitgram-muted: #6b7280;
  --fitgram-line: #dbdbdb;
  --fitgram-soft: #f3f4f6;
}

.fitgram-body {
  min-height: 100vh;
  margin: 0;
  background: #fafafa;
  color: var(--fitgram-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px;
}

.fitgram-body button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.fitgram-body a {
  -webkit-tap-highlight-color: transparent;
}

.fitgram-shell {
  width: 100%;
  max-width: 390px;
  min-height: 100vh;
  margin: 0 auto;
  background: #fafafa;
  overflow: hidden;
}

.fitgram-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 57px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid var(--fitgram-line);
}

.fitgram-logo {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 400;
  color: var(--fitgram-ink);
}

.fitgram-header__icon,
.fitgram-header__actions,
.fitgram-icon-button,
.fitgram-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fitgram-header__icon {
  width: 36px;
  height: 36px;
  color: var(--fitgram-ink);
  text-decoration: none;
}

.fitgram-header__icon--soon {
  position: relative;
  cursor: default;
  opacity: 0.55;
}

.fitgram-header__icon--soon:disabled {
  color: var(--fitgram-ink);
}

.fitgram-header__actions {
  justify-self: end;
  gap: 14px;
}

.fitgram-icon-button,
.fitgram-action {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fitgram-ink);
  cursor: pointer;
  text-decoration: none;
}

.fitgram-icon-button .material-symbols-outlined,
.fitgram-action .material-symbols-outlined,
.fitgram-header__icon .material-symbols-outlined {
  font-size: 24px;
  line-height: 1;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.fitgram-header__soon-badge {
  position: absolute;
  top: -4px;
  right: -18px;
  min-width: 34px;
  height: 16px;
  padding: 0 6px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #ea580c;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  line-height: 14px;
  text-align: center;
  box-sizing: border-box;
  pointer-events: none;
}

.fitgram-icon-button--send,
.fitgram-action--send {
  transform: rotate(-12deg);
}

.fitgram-reactions-button,
.fitgram-messages-button {
  position: relative;
}

.fitgram-reactions-badge,
.fitgram-header-badge {
  position: absolute;
  top: -3px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 12px;
  text-align: center;
  box-sizing: border-box;
}

.fitgram-reactions-badge[hidden],
.fitgram-header-badge[hidden] {
  display: none;
}

.fitgram-stories {
  height: 117px;
  padding: 16px 0 8px;
  background: #fff;
  border-bottom: 1px solid rgba(219, 219, 219, 0.3);
}

.fitgram-stories__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 0 16px;
  scroll-snap-type: x mandatory;
}

.fitgram-stories-dynamic {
  display: flex;
  gap: 16px;
}

.fitgram-story {
  position: relative;
  flex: 0 0 72px;
  width: 72px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fitgram-ink);
  cursor: pointer;
  scroll-snap-align: start;
}

.fitgram-story__ring {
  display: block;
  width: 72px;
  height: 72px;
  padding: 0;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  background: transparent;
}

@keyframes fitgramStoryRingFlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.fitgram-story__ring::before {
  content: none;
}

.fitgram-story__ring--free {
  padding: 0;
  background: transparent;
}

.fitgram-story__ring--basic,
.fitgram-story__ring--premium,
.fitgram-story__ring--ultimate {
  padding: 2px;
}

.fitgram-story__ring--basic {
  background: #22c55e;
}

.fitgram-story__ring--premium {
  background: #ea580c;
}

.fitgram-story__ring--ultimate::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(
    from -75deg,
    #515bd4 0deg,
    #8134af 70deg,
    #dd2a7b 150deg,
    #f58529 230deg,
    #feda77 300deg,
    #515bd4 360deg
  );
  animation: none;
}

.fitgram-story__avatar {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-sizing: border-box;
  background-color: #e5e7eb;
  background-position: center;
  background-size: cover;
}

.fitgram-story__ring .fitgram-story__avatar {
  width: 100%;
  height: 100%;
  border: 2px solid #fff;
  position: relative;
  z-index: 1;
}

.fitgram-story__ring--free .fitgram-story__avatar {
  width: 72px;
  height: 72px;
  border: 0;
}

.fitgram-story__add {
  position: absolute;
  right: 0;
  top: 48px;
  z-index: 2;
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--fitgram-orange);
  color: #fff;
}

.fitgram-story__add .material-symbols-outlined {
  font-size: 15px;
  font-variation-settings: 'FILL' 0, 'wght' 700, 'GRAD' 0, 'opsz' 20;
}

.fitgram-story__label {
  display: block;
  width: 72px;
  margin-top: 4px;
  overflow: hidden;
  color: var(--fitgram-ink);
  font-size: 12px;
  line-height: 16px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fitgram-story--mine .fitgram-story__label {
  color: var(--fitgram-muted);
}

.fitgram-clubs {
  height: 126px;
  padding: 12px 0 13px;
  background: #fff;
  border-bottom: 1px solid var(--fitgram-line);
}

.fitgram-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 8px;
}

.fitgram-section-title h2 {
  margin: 0;
  color: var(--fitgram-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.55px;
  line-height: 17px;
}

.fitgram-section-title a {
  color: var(--fitgram-orange);
  font-size: 10px;
  font-weight: 600;
  line-height: 15px;
  text-decoration: none;
}

.fitgram-clubs__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 0 16px 2px;
}

.fitgram-club {
  position: relative;
  flex: 0 0 64px;
  width: 64px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fitgram-ink);
  cursor: pointer;
}

.fitgram-club__lock {
  position: absolute;
  top: 40px;
  right: 5px;
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  color: var(--fitgram-orange);
  font-size: 16px;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
  line-height: 1;
}

.fitgram-club__icon {
  display: flex;
  width: 56px;
  height: 56px;
  margin: 0 auto 8px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--fitgram-soft);
  color: var(--fitgram-ink);
}

.fitgram-club__icon .material-symbols-outlined {
  font-size: 25px;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.fitgram-club.is-active .fitgram-club__icon {
  border-color: var(--fitgram-orange);
  color: var(--fitgram-orange);
}

.fitgram-club__name {
  display: block;
  overflow: hidden;
  font-size: 10px;
  font-weight: 500;
  line-height: 13px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fitgram-club.is-active .fitgram-club__name {
  font-weight: 700;
}

.fitgram-club-profile {
  padding: 10px 14px 14px;
  background: #fff;
  border-bottom: 1px solid var(--fitgram-line);
}

.fitgram-club-profile__hero {
  --club-accent: var(--fitgram-orange);
  display: flex;
  align-items: center;
  gap: 12px;
}

.fitgram-club-profile__icon {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff7ed;
  background: color-mix(in srgb, var(--club-accent) 14%, white);
  color: var(--club-accent);
}

.fitgram-club-profile__icon .material-symbols-outlined {
  font-size: 30px;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.fitgram-club-profile__body {
  min-width: 0;
}

.fitgram-club-profile__body h2 {
  margin: 0;
  color: var(--fitgram-ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 25px;
}

.fitgram-club-profile__body p {
  margin: 2px 0 0;
  color: var(--fitgram-muted);
  font-size: 12px;
  line-height: 17px;
}

.fitgram-club-profile__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.fitgram-club-profile__stats span {
  display: block;
  padding: 10px;
  border-radius: 16px;
  background: #fafafa;
  text-align: center;
}

.fitgram-club-profile__stats strong,
.fitgram-club-profile__stats small {
  display: block;
}

.fitgram-club-profile__stats strong {
  color: var(--fitgram-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 19px;
}

.fitgram-club-profile__stats small {
  margin-top: 1px;
  color: var(--fitgram-muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 14px;
}

.fitgram-club-profile__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.fitgram-club-profile__button {
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  background: #fff;
  color: var(--fitgram-ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 18px;
  text-decoration: none;
  cursor: pointer;
}

.fitgram-club-profile__button--primary {
  border-color: var(--fitgram-orange);
  background: var(--fitgram-orange);
  color: #fff;
}

.fitgram-club-profile__button .material-symbols-outlined {
  font-size: 18px;
}

.fitgram-feed-title {
  padding: 10px 14px;
  color: var(--fitgram-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 18px;
  background: #fafafa;
}

.fitgram-feed {
  padding-bottom: 10px;
}

.fitgram-feed-state {
  padding: 16px;
  color: var(--fitgram-muted);
  font-size: 12px;
}

.fitgram-feed-state--hidden {
  display: none;
}

.fitgram-post {
  margin: 0 0 16px;
  background: #fff;
  border-top: 1px solid var(--fitgram-line);
  border-bottom: 1px solid var(--fitgram-line);
}

.fitgram-post__header {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
}

.fitgram-post__author {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.fitgram-post__author strong,
.fitgram-post__author small {
  display: block;
  overflow: hidden;
  max-width: 220px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fitgram-post__author strong {
  color: var(--fitgram-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.fitgram-post__author small {
  color: var(--fitgram-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.fitgram-post__avatar {
  display: flex;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border: 1px solid var(--fitgram-line);
  border-radius: 999px;
  overflow: hidden;
}

.fitgram-post__avatar span {
  width: 100%;
  height: 100%;
  border: 2px solid #fff;
  border-radius: 999px;
  background-color: #e5e7eb;
  background-position: center;
  background-size: cover;
}

.fitgram-post__avatar--free {
  padding: 0;
  border: 0;
  background: transparent;
}

.fitgram-post__avatar--free span {
  border: 0;
}

.fitgram-post__avatar--basic,
.fitgram-post__avatar--premium {
  padding: 2px;
  border: 0;
}

.fitgram-post__avatar--basic {
  background: #22c55e;
}

.fitgram-post__avatar--premium {
  background: #ea580c;
}

.fitgram-post__avatar--ultimate {
  padding: 3px;
  border: 0;
  position: relative;
  display: grid;
  place-items: center;
  box-sizing: border-box;
}

.fitgram-post__avatar--ultimate::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(
    from -75deg,
    #515bd4 0deg,
    #8134af 70deg,
    #dd2a7b 150deg,
    #f58529 230deg,
    #feda77 300deg,
    #515bd4 360deg
  );
  animation: none;
}

.fitgram-post__avatar--ultimate span {
  position: absolute;
  inset: 3px;
  width: auto;
  height: auto;
  z-index: 1;
  display: block;
  border: 0;
  border-radius: inherit;
  box-sizing: border-box;
  background-color: #ffffff;
}

.fitgram-post__media {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--fitgram-soft);
}

.fitgram-post__media--portrait {
  height: 487.5px;
}

.fitgram-post__media--square {
  height: 390px;
}

.fitgram-post__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.fitgram-media-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 64px;
}

.fitgram-post__media--portrait img {
  object-position: center top;
}

.fitgram-post__carousel-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
}

.fitgram-post__content {
  padding: 12px;
}

.fitgram-post__actions {
  display: flex;
  height: 36px;
  align-items: flex-start;
  justify-content: space-between;
}

.fitgram-post__actions > div {
  display: flex;
  gap: 16px;
}

.fitgram-action-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.fitgram-action-count {
  min-width: 6px;
  color: var(--fitgram-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.fitgram-action-count--hidden {
  display: none;
}

.fitgram-action.is-liked {
  color: #ef4444;
}

.fitgram-action.is-liked .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.fitgram-post__caption,
.fitgram-comments p {
  margin: 0;
}

.fitgram-post__caption {
  margin-top: 4px;
  color: var(--fitgram-ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.fitgram-post__caption strong,
.fitgram-comments strong {
  font-weight: 600;
}

.fitgram-comments {
  margin-top: 10px;
  padding-left: 14px;
  border-left: 1px solid #e5e7eb;
}

.fitgram-comments p {
  color: #4b5563;
  font-size: 12px;
  line-height: 16px;
}

.fitgram-comments p + p {
  margin-top: 6px;
}

.fitgram-comments strong {
  color: var(--fitgram-ink);
}

.fitgram-comments-link {
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fitgram-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  cursor: pointer;
}

.fitgram-post__time {
  display: block;
  margin-top: 8px;
  color: #9ca3af;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 15px;
}

.fitgram-story-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.92);
}

.fitgram-story-modal.is-open {
  display: flex;
}

.fitgram-story-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
}

.fitgram-story-modal__card {
  width: min(100%, 330px);
  aspect-ratio: 9 / 16;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 28px;
  background: linear-gradient(160deg, #171717, #3b1d0d 48%, #ea580c);
  color: #fff;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.fitgram-story-modal__card img {
  width: 92px;
  height: 92px;
  margin-bottom: 16px;
  border: 3px solid #fff;
  border-radius: 999px;
  object-fit: cover;
}

.fitgram-story-modal__card strong {
  font-size: 20px;
  line-height: 28px;
}

.fitgram-story-modal__card span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.fitgram-comments-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}

.fitgram-comments-modal.is-open {
  display: block;
}

.fitgram-comments-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.fitgram-comments-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(80vh, 80dvh);
  border-radius: 16px 16px 0 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 220ms ease;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.18);
}

.fitgram-comments-modal.is-open .fitgram-comments-sheet {
  transform: translateY(0);
}

.fitgram-comments-sheet__header {
  position: relative;
  flex: 0 0 auto;
  height: 56px;
  border-bottom: 1px solid #ececec;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fitgram-comments-sheet__grab {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: #d1d5db;
}

.fitgram-comments-sheet__header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.fitgram-comments-sheet__close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #374151;
  cursor: pointer;
}

.fitgram-comments-sheet__close .material-symbols-outlined {
  font-size: 22px;
}

.fitgram-comments-sheet__list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 10px 14px;
}

.fitgram-comments-sheet__empty {
  color: #6b7280;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
  margin-top: 12px;
}

.fitgram-comments-sheet__item {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #f3f4f6;
}

.fitgram-comments-sheet__item--reply {
  padding: 6px 0 0;
  border-bottom: 0;
}

.fitgram-comments-sheet__avatar-wrap {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
}

.fitgram-comments-sheet__avatar {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  background: #e5e7eb;
}

.fitgram-comments-sheet__body {
  flex: 1 1 auto;
  min-width: 0;
}

.fitgram-comments-sheet__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fitgram-comments-sheet__headline {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.fitgram-comments-sheet__author {
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fitgram-comments-sheet__time {
  flex: 0 0 auto;
  color: #9ca3af;
  font-size: 12px;
  line-height: 14px;
  white-space: nowrap;
}

.fitgram-comments-sheet__like {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 28px;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
}

.fitgram-comments-sheet__like .material-symbols-outlined {
  font-size: 18px;
  font-variation-settings: 'FILL' 0, 'wght' 450, 'GRAD' 0, 'opsz' 20;
}

.fitgram-comments-sheet__like.is-liked {
  color: #ef4444;
}

.fitgram-comments-sheet__like.is-liked .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 20;
}

.fitgram-comments-sheet__like-count {
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
}

.fitgram-comments-sheet__like-count--hidden {
  display: none;
}

.fitgram-comments-sheet__text {
  margin: 0;
  margin-top: 1px;
  color: #111827;
  font-size: 14px;
  line-height: 18px;
}

.fitgram-comments-sheet__mention {
  color: #2563eb;
  font-weight: 600;
}

.fitgram-comments-sheet__meta {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9ca3af;
  font-size: 11px;
}

.fitgram-comments-sheet__reply-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  line-height: 14px;
  cursor: pointer;
}

.fitgram-comments-sheet__reply-btn:hover {
  color: #374151;
}

.fitgram-comments-sheet__meta-like {
  color: #ef4444;
}

.fitgram-comments-sheet__replies {
  margin-top: 7px;
  padding-left: 8px;
  border-left: 1px solid #e5e7eb;
}

.fitgram-comments-sheet__hidden-reply[hidden] {
  display: none;
}

.fitgram-comments-sheet__show-more {
  display: block;
  margin: 6px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
  cursor: pointer;
}

.fitgram-comments-sheet__show-more:hover {
  color: #374151;
}

.fitgram-comments-sheet__form {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid #ececec;
  background: #fff;
}

.fitgram-comments-sheet__form input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 0 12px;
  outline: none;
  font-size: 14px;
}

.fitgram-comments-sheet__form input:focus {
  border-color: #ff5700;
}

.fitgram-comments-sheet__form button {
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: #ff5700;
  color: #fff;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.fitgram-comments-sheet__form button:disabled {
  opacity: 0.6;
  cursor: default;
}

.fitgram-reactions {
  min-height: calc(100vh - 57px);
  background: #fff;
}

.fitgram-reactions-title {
  font-family: "Inter", "Noto Sans", sans-serif;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
}

.fitgram-reactions__list {
  padding: 8px 14px 24px;
}

.fitgram-reaction {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

.fitgram-reaction__thumb {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  background: #e5e7eb;
}

.fitgram-reaction__thumb--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 22px;
}

.fitgram-reaction__body {
  flex: 1;
  min-width: 0;
}

.fitgram-reaction__body p {
  margin: 0;
  color: #111827;
  font-size: 14px;
  line-height: 19px;
}

.fitgram-reaction__body strong {
  font-weight: 700;
}

.fitgram-reaction__post {
  display: block;
  margin-top: 2px;
  color: #6b7280;
  font-size: 12px;
  line-height: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fitgram-reaction__comment {
  margin-top: 4px !important;
  color: #374151 !important;
  font-size: 13px !important;
  line-height: 18px !important;
}

.fitgram-reaction time {
  display: block;
  margin-top: 4px;
  color: #9ca3af;
  font-size: 11px;
  line-height: 14px;
}

.fitgram-reaction__icon {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #ef4444;
  font-size: 21px;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

@media (min-width: 640px) {
  .fitgram-shell {
    border-left: 1px solid #ececec;
    border-right: 1px solid #ececec;
  }
}

html.dark .fitgram-body,
html.dark .fitgram-shell {
  background: #0b1120;
  color: #e5e7eb;
}

html.dark .fitgram-header,
html.dark .fitgram-stories,
html.dark .fitgram-clubs,
html.dark .fitgram-feed-title,
html.dark .fitgram-feed,
html.dark .fitgram-post,
html.dark .fitgram-club-profile,
html.dark .fitgram-comments-sheet,
html.dark .fitgram-comments-panel,
html.dark .fitgram-comments-input-wrap,
html.dark .fitgram-reactions-sheet,
html.dark .fitgram-reactions-list,
html.dark .fitgram-reaction,
html.dark .fitgram-story-modal__content {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.1);
}

html.dark .fitgram-post {
  border-top-color: rgba(255, 255, 255, 0.1);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

html.dark .fitgram-feed-title,
html.dark .fitgram-comments p,
html.dark .fitgram-post__author small,
html.dark .fitgram-post__time,
html.dark .fitgram-comments-link {
  color: #9ca3af;
}

html.dark .fitgram-post__author strong,
html.dark .fitgram-action-count,
html.dark .fitgram-post__caption,
html.dark .fitgram-comments strong {
  color: #e5e7eb;
}

html.dark .fitgram-post__avatar,
html.dark .fitgram-comments {
  border-color: rgba(255, 255, 255, 0.12);
}

html.dark .fitgram-logo,
html.dark .fitgram-header__icon,
html.dark .fitgram-icon-button,
html.dark .fitgram-action,
html.dark .fitgram-story,
html.dark .fitgram-story__label,
html.dark .fitgram-section-title h2,
html.dark .fitgram-post-title,
html.dark .fitgram-post-text,
html.dark .fitgram-comments-title,
html.dark .fitgram-comment-author,
html.dark .fitgram-comment-text,
html.dark .fitgram-reaction__body p,
html.dark .fitgram-reaction__post,
html.dark .fitgram-reaction__comment {
  color: #e5e7eb;
}

html.dark .fitgram-story--mine .fitgram-story__label,
html.dark .fitgram-post-meta,
html.dark .fitgram-comment-time,
html.dark .fitgram-reaction time {
  color: #9ca3af;
}

html.dark .fitgram-story__avatar,
html.dark .fitgram-story__ring .fitgram-story__avatar,
html.dark .fitgram-reactions-badge,
html.dark .fitgram-header-badge,
html.dark .fitgram-header__soon-badge,
html.dark .fitgram-comments-avatar,
html.dark .fitgram-reaction__thumb {
  border-color: #111827;
}

html.dark .fitgram-shell {
  border-left-color: rgba(255, 255, 255, 0.08);
  border-right-color: rgba(255, 255, 255, 0.08);
}
