:root {
  --bg: #09090b;
  --card: #15151a;
  --card2: #1d1d24;
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --border: rgba(255,255,255,0.08);
  --accent: #ff4d6d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255,77,109,0.18), transparent 35%),
    radial-gradient(circle at top right, rgba(124,58,237,0.15), transparent 30%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.hero {
  padding: 70px 20px 45px;
  text-align: center;
}

.badge {
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 86px);
  letter-spacing: -3px;
  line-height: 0.95;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  margin: 18px auto 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* Masonry layout: supports tall, wide, thin screenshots */
.gallery {
  columns: 3 260px;
  column-gap: 22px;
}

.card {
  display: inline-block;
  width: 100%;
  margin: 0 0 22px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  transition: transform 0.18s ease, border-color 0.18s ease;
  break-inside: avoid;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,77,109,0.35);
}

/* No forced square anymore */
.imageBox {
  width: 100%;
  background: #050505;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Shows full image, any size */
.imageBox img {
  width: 100%;
  height: auto;
  max-height: 850px;
  object-fit: contain;
  display: block;
  background: #050505;
}

/* For very thin screenshots, don't let them look tiny */
.imageBox.thin img,
.card.thin img {
  padding: 12px;
}

.content {
  padding: 18px 18px 20px;
}

.content h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.4px;
}

.titleLink {
  color: inherit;
  text-decoration: none;
}

.titleLink:hover {
  color: var(--accent);
}

.content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 15px;
}

.empty {
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--border);
  border-radius: 24px;
  color: var(--muted);
}

footer {
  text-align: center;
  padding: 25px;
  color: #71717a;
  border-top: 1px solid var(--border);
}

.detailWrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 20px 60px;
}

.detailCard {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.detailImageBox,
.detailContent {
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.detailImageBox {
  padding: 18px;
  background: #050505;
}

.detailImageBox img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 180px);
  object-fit: contain;
  border-radius: 20px;
}

.detailContent {
  padding: 24px;
}

.detailTopbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.detailContent h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 0.96;
  letter-spacing: -1.8px;
}

.directLink {
  color: var(--muted);
  text-decoration: none;
  word-break: break-all;
}

.directLink:hover {
  color: var(--accent);
}

.detailEmpty {
  color: #71717a;
}

@media (max-width: 700px) {
  .hero {
    padding-top: 45px;
  }

  .hero h1 {
    letter-spacing: -2px;
  }

  .gallery {
    columns: 1;
  }

  .detailWrap {
    padding-top: 24px;
  }

  .detailCard {
    grid-template-columns: 1fr;
  }

  .detailImageBox img {
    max-height: none;
  }
}
.plusBtn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 15px 45px rgba(255,77,109,0.45);
  z-index: 20;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.plusBtn:hover {
  transform: scale(1.07);
  filter: brightness(1.1);
}

.backBtn {
  position: fixed;
  left: 22px;
  top: 22px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  color: white;
  text-decoration: none;
  z-index: 20;
}

.smallHero {
  padding-bottom: 25px;
}

.author {
  margin: -2px 0 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.formWrap {
  width: min(620px, calc(100% - 32px));
  margin: 0 auto 70px;
}

.uploadForm {
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.uploadForm label {
  display: block;
  margin-bottom: 18px;
  color: var(--text);
  font-weight: 600;
}

.uploadForm label span {
  color: var(--accent);
}

.uploadForm input,
.uploadForm textarea {
  width: 100%;
  margin-top: 8px;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.28);
  color: white;
  font: inherit;
  outline: none;
}

.uploadForm input:focus,
.uploadForm textarea:focus {
  border-color: rgba(255,77,109,0.55);
}

.uploadForm textarea {
  min-height: 130px;
  resize: vertical;
}

.uploadForm input[type="file"] {
  padding: 12px;
  cursor: pointer;
}

.uploadForm button {
  width: 100%;
  padding: 15px 18px;
  border: 0;
  border-radius: 16px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(255,77,109,0.3);
}

.uploadForm button:hover {
  filter: brightness(1.08);
}

@media (max-width: 700px) {
  .plusBtn {
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    font-size: 38px;
  }

  .backBtn {
    left: 14px;
    top: 14px;
  }

  .uploadForm {
    padding: 18px;
  }
}
.reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  margin-bottom: 14px;
}

.reactionPill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  cursor: help;
}

.reactionEmoji {
  font-size: 18px;
  line-height: 1;
}

.reactionNames {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}

.noReactions {
  margin-top: 15px;
  margin-bottom: 12px;
  color: #71717a;
  font-size: 13px;
}

.reactionForm {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 8px;
  margin-top: 10px;
}

.reactionForm input {
  min-width: 0;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.28);
  color: white;
  font: inherit;
  outline: none;
}

.reactionForm input:focus {
  border-color: rgba(255,77,109,0.55);
}

.emojiInput {
  text-align: center;
  font-size: 20px;
}

.reactionForm button {
  border: 0;
  border-radius: 12px;
  padding: 0 13px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.reactionForm button:hover {
  filter: brightness(1.08);
}

@media (max-width: 520px) {
  .reactionForm {
    grid-template-columns: 52px 1fr;
  }

  .reactionForm button {
    grid-column: 1 / -1;
    padding: 11px;
  }

  .reactionNames {
    max-width: 150px;
  }
}
.loginBar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  gap: 14px;
  align-items: center;
  padding: 10px 14px;
  background: rgba(9,9,11,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.loginBar a {
  color: white;
  background: #5865f2;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
  justify-content: center;
}

.catLink {
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.catLink:hover,
.catLink.active {
  background: var(--accent);
  color: white;
}

.categoryTag {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255,77,109,0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.uploadForm select {
  width: 100%;
  margin-top: 8px;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.28);
  color: white;
  font: inherit;
  outline: none;
}

.uploadForm select option {
  color: black;
}

.loginToReact {
  display: inline-flex;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #5865f2;
  color: white;
  text-decoration: none;
  font-weight: 800;
}

.reactionForm {
  display: grid;
  grid-template-columns: 58px auto;
  gap: 8px;
  margin-top: 10px;
}

.reactionForm input {
  min-width: 0;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.28);
  color: white;
  font: inherit;
  outline: none;
}

.emojiInput {
  text-align: center;
  font-size: 20px;
}

.reactionForm button {
  border: 0;
  border-radius: 12px;
  padding: 0 13px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  margin-bottom: 14px;
}

.reactionPill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  cursor: help;
}

.reactionEmoji {
  font-size: 18px;
  line-height: 1;
}

.reactionNames {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}

.noReactions {
  margin-top: 15px;
  margin-bottom: 12px;
  color: #71717a;
  font-size: 13px;
}
