:root {
  --bg: #000;
  --card: #000;
  --text: #e7e9ea;
  --muted: #71767b;
  --line: #2f3336;
  --blue: #1d9bf0;
  --green: #00ba7c;
  --pink: #f91880;
  --icon: #71767b;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --font: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --appMax: 1240px;
  --sidebarW: 260px;
  --mainW: 620px;
  --rightW: 360px;

  --hover: #16181c;
  --headerBg: rgba(0, 0, 0, 0.72);

  --warnBg: #22150a;
  --warnBorder: #5c3b1a;
  --warnText: #f3d7b6;
  --badgeBg: #ffcc00;
  --badgeText: #0f1419;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}

.app {
  width: min(var(--appMax), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--sidebarW) minmax(0, var(--mainW)) var(--rightW);
  gap: 24px;
  padding: 12px;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 8px 0;
}
.side-inner {
  height: calc(100vh - 16px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.5px;
}
.brand:hover {
  background: var(--hover);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 8px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}
.nav a:hover {
  background: var(--hover);
}
.nav svg {
  width: 22px;
  height: 22px;
  color: var(--text);
  flex: 0 0 auto;
}

.postCta {
  margin-top: 6px;
  margin-right: 12px;
  padding: 14px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 800;
  cursor: pointer;
}
.postCta:hover {
  filter: brightness(0.92);
}

.side-spacer {
  flex: 1;
}
.side-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  margin-right: 8px;
  color: var(--text);
  text-decoration: none;
}
.side-user:hover {
  background: var(--hover);
}
.side-user .mini {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  object-fit: cover;
  display: block;
  background: var(--hover);
}
.side-user small {
  display: block;
  color: var(--muted);
  font-weight: 600;
}

.main {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--card);
  min-width: 0;
}
.main-header {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: saturate(180%) blur(10px);
  background: var(--headerBg);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}
.back {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--text);
}
.back:hover {
  background: var(--hover);
}
.main-title {
  font-weight: 900;
  font-size: 20px;
}
.main-content {
  padding: 12px;
}

.right {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 8px 0;
  min-width: 0;
}
.right-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 6px;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  background: var(--hover);
  color: var(--muted);
}
.search svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--muted);
}
.search input {
  border: 0;
  outline: none;
  background: transparent;
  width: 100%;
  font: inherit;
  color: var(--text);
}

.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  overflow: hidden;
}
.card h3 {
  margin: 0;
  padding: 12px 14px;
  font-size: 18px;
  font-weight: 900;
}
.card .item {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}
.card .item:first-of-type {
  border-top: 0;
}
.muted {
  color: var(--muted);
}
.follow {
  float: right;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}
.follow:hover {
  background: var(--hover);
}

@media (max-width: 1120px) {
  .app {
    grid-template-columns: var(--sidebarW) minmax(0, var(--mainW));
  }
  .right {
    display: none;
  }
}
@media (max-width: 820px) {
  :root {
    --sidebarW: 84px;
  }
  .brand {
    justify-content: center;
    padding: 12px;
  }
  .nav a {
    justify-content: center;
    padding: 12px;
  }
  .nav a span {
    display: none;
  }
  .postCta {
    margin-right: 0;
    padding: 12px;
  }
  .side-user .who {
    display: none;
  }
}

.topnote {
  background: var(--warnBg);
  border: 1px solid var(--warnBorder);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  box-shadow: var(--shadow);
}
.badge {
  font-weight: 700;
  background: var(--badgeBg);
  color: var(--badgeText);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.topnote p {
  margin: 0;
  color: var(--warnText);
  line-height: 1.35;
}

.tweet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: none;
  overflow: hidden;
  position: relative;
}

/* marca de agua PARODIA */
.watermark {
  position: absolute;
  inset: auto -40px 24px auto;
  transform: rotate(-12deg);
  font-weight: 900;
  font-size: 44px;
  letter-spacing: 2px;
  color: rgba(249, 24, 128, 0.1);
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

.tweet-inner {
  padding: 16px 16px 10px;
  position: relative;
  z-index: 1;
}
.header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  flex: 0 0 auto;
  object-fit: cover;
  display: block;
  background: var(--hover);
}
.hmeta {
  flex: 1;
}
.name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.name {
  font-weight: 800;
}
.check {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  background-image: url("../verified.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.handle,
.dot,
.time {
  color: var(--muted);
}
.dot {
  margin: 0 2px;
}
.more {
  color: var(--muted);
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
}
.more:hover {
  background: var(--hover);
}

.content {
  margin-top: 10px;
  font-size: 20px;
  line-height: 1.35;
}
.content .hl {
  color: var(--blue);
  text-decoration: none;
}
.content .hl:hover {
  text-decoration: underline;
}

.meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.meta a {
  color: var(--muted);
  text-decoration: none;
}
.meta a:hover {
  text-decoration: underline;
}

.linkCard {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--card);
}
.linkCard:hover {
  background: var(--hover);
}
.linkCard .thumb {
  background: var(--text);
  background-image: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 55%);
  min-height: 78px;
}
.linkCard .linkMeta {
  padding: 10px 12px;
  min-width: 0;
}
.linkCard .linkHost {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2px;
}
.linkCard .linkTitle {
  font-weight: 800;
  font-size: 14px;
  line-height: 1.25;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.linkCard .linkDesc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.25;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.actions {
  margin-top: 10px;
  padding: 8px 6px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--icon);
  cursor: pointer;
  font-weight: 700;
  user-select: none;
}
.btn:hover {
  background: var(--hover);
}
.btn svg {
  width: 18px;
  height: 18px;
}
.btn .count {
  font-size: 13px;
  color: var(--muted);
  min-width: 2ch;
}
.metric {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--icon);
  user-select: none;
}
.metric svg {
  width: 18px;
  height: 18px;
}
.metric .count {
  font-size: 13px;
  color: var(--muted);
}
.btn.reply:hover {
  color: var(--blue);
}
.btn.repost:hover {
  color: var(--green);
}
.btn.like:hover {
  color: var(--pink);
}
.btn.share:hover {
  color: var(--blue);
}

.footer {
  padding: 12px 16px 16px;
  color: var(--muted);
  font-size: 12px;
}
.footer code {
  background: var(--hover);
  padding: 2px 6px;
  border-radius: 8px;
}
.row {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.smalllink {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}
.smalllink:hover {
  border-color: var(--line);
  background: var(--hover);
}
.smalllink span {
  color: var(--muted);
  font-weight: 600;
}
.brand-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

.reveal {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--bg);
  overflow: hidden;
}
.reveal img {
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
