:root {
  --stage: #071c20;
  --cream: #f4f1ea;
  --paper: #fff;
  --ink: #0d1f22;
  --muted: #5f6b6c;
  --line: #e0dacb;
  --lime: #d8ff36;
  --ok: #17794a;
  --warn: #9a6200;
  --bad: #b3261e;
  --r: 8px;
  --sys: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 15px/1.5 var(--sys);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Panggung atas: judul dan bilah URL */

.stage {
  background: var(--stage);
  color: var(--cream);
  padding-bottom: 44px;
}

.top { padding: 22px 0; }

.brand {
  color: var(--cream);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover { text-decoration: underline; }

.ask { padding-top: clamp(20px, 5vw, 56px); }

h1 {
  max-width: 21ch;
  margin: 0 0 clamp(24px, 3.4vw, 40px);
  font-size: clamp(32px, 5.6vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.bar {
  display: flex;
  gap: 8px;
  max-width: 940px;
  padding: 8px;
  background: var(--paper);
  border-radius: var(--r);
}

.bar:focus-within {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

#url {
  flex: 1;
  min-width: 0;
  height: 56px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 19px var(--sys);
  letter-spacing: -0.01em;
}

#url::placeholder { color: #8b9596; }

#url:focus { outline: none; }

#go {
  height: 56px;
  padding: 0 32px;
  border: 0;
  border-radius: var(--r);
  background: var(--lime);
  color: var(--stage);
  font: 700 16px var(--sys);
  cursor: pointer;
}

#go:hover { opacity: 0.88; }
#go:disabled { opacity: 0.6; cursor: default; }

.msg {
  min-height: 22px;
  margin: 14px 0 0;
  color: rgba(244, 241, 234, 0.7);
}

.msg.err { color: #ffa79e; }

.try {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 6px 0 0;
  color: rgba(244, 241, 234, 0.55);
  font-size: 14px;
}

.try button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--cream);
  font: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(244, 241, 234, 0.35);
  text-underline-offset: 4px;
  cursor: pointer;
}

.try button:hover { text-decoration-color: var(--lime); }

/* Hasil */

main.wrap { padding-top: 30px; padding-bottom: 72px; }

#result.loading { opacity: 0.45; }

.fetchline {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.report {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.read {
  padding: 26px;
  border-right: 1px solid var(--line);
}

.read-img {
  display: block;
  width: 100%;
  max-height: 280px;
  margin-bottom: 20px;
  object-fit: contain;
  background: #f1eee6;
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.read h2 {
  font-size: 23px;
  line-height: 1.22;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.read p {
  margin: 8px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.read a {
  display: inline-block;
  margin-top: 14px;
  color: var(--ink);
  font: 13px var(--mono);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.read a:hover { text-decoration: underline; }

.verdict { padding: 26px; }

.verdict-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

#tally {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

td {
  padding: 10px 12px 10px 0;
  border-top: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
}

.checks td:first-child {
  width: 128px;
  font-weight: 650;
  white-space: nowrap;
}

.checks td:nth-child(2) {
  width: 98px;
  font-weight: 650;
  white-space: nowrap;
}

.checks td:last-child { padding-right: 0; }

.s-ok { color: var(--ok); }
.s-warn { color: var(--warn); }
.s-bad { color: var(--bad); }
.s-wait { color: var(--muted); }

.checks .note { color: var(--muted); }

/* Galeri pratinjau */

.gallery {
  columns: 2;
  column-gap: 24px;
  margin-top: 24px;
}

.pv {
  break-inside: avoid;
  margin: 0 0 24px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.pv h3 {
  margin: 0;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 650;
}

.pv-body { padding: 24px 18px; }

.pv-body.flush { padding: 0; }

.pv-body > .mock { margin-inline: auto; }

.tags {
  margin-top: 24px;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.tablewrap {
  margin-top: 12px;
  overflow-x: auto;
}

.tags td:first-child {
  width: 220px;
  font: 12.5px var(--mono);
  color: #33474a;
}

.tags .empty { color: var(--bad); }

.tags a { color: #0b57d0; text-decoration: none; }
.tags a:hover { text-decoration: underline; }

/* Tiruan tampilan tiap platform. Bentuk dan warnanya mengikuti platform aslinya. */

.clamp1,
.clamp2,
.clamp3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clamp1 { -webkit-line-clamp: 1; }
.clamp2 { -webkit-line-clamp: 2; }
.clamp3 { -webkit-line-clamp: 3; }

.shot {
  display: block;
  width: 100%;
  aspect-ratio: 1.91 / 1;
  object-fit: cover;
  background: #e4e6eb;
}

.noimg .shot,
.noimg .shotwrap { display: none; }

/* WhatsApp */

.wa {
  padding: 28px 18px;
  background: #efeae2;
}

.wa-bubble {
  width: min(340px, 100%);
  margin-left: auto;
  padding: 3px;
  background: #d9fdd3;
  border-radius: 7.5px;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}

.wa-card {
  overflow: hidden;
  background: #c9efc2;
  border-radius: 6px;
}

.wa-text { padding: 7px 9px 8px; }

.wa-title {
  color: #111b21;
  font-size: 14px;
  line-height: 19px;
  font-weight: 500;
}

.wa-desc {
  margin-top: 1px;
  color: #54656f;
  font-size: 12px;
  line-height: 17px;
}

.wa-host {
  margin-top: 2px;
  color: #667781;
  font-size: 12px;
  line-height: 17px;
}

.wa-link {
  padding: 5px 6px 0;
  color: #027eb5;
  font-size: 14.2px;
  line-height: 19px;
  overflow-wrap: anywhere;
}

.wa-time {
  padding: 0 6px 2px;
  color: #667781;
  font-size: 11px;
  text-align: right;
}

.wa.small .wa-card { display: flex; }

.wa.small .shot {
  flex: none;
  width: 86px;
  height: 86px;
  aspect-ratio: auto;
}

.wa.small .wa-text { min-width: 0; }

/* Facebook */

.fb {
  max-width: 500px;
  border: 1px solid #ced0d4;
  background: #f0f2f5;
  font-family: Helvetica, Arial, sans-serif;
}

.fb-text { padding: 10px 12px 11px; }

.fb-host {
  color: #65676b;
  font-size: 13px;
  line-height: 16px;
  text-transform: uppercase;
}

.fb-title {
  margin-top: 3px;
  color: #050505;
  font-size: 17px;
  line-height: 20px;
  font-weight: 600;
}

.fb-desc {
  margin-top: 3px;
  color: #65676b;
  font-size: 15px;
  line-height: 20px;
}

.fb.small { display: flex; }

.fb.small .shot {
  flex: none;
  width: 130px;
  height: 130px;
  aspect-ratio: auto;
}

.fb.small .fb-text {
  min-width: 0;
  align-self: center;
}

/* X */

.x { max-width: 506px; }

.x-large .shotwrap {
  position: relative;
  overflow: hidden;
  border: 1px solid #cfd9de;
  border-radius: 16px;
}

.x-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 0 4px;
  background: rgba(0, 0, 0, 0.77);
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.x-from {
  margin-top: 4px;
  color: #536471;
  font-size: 13px;
  line-height: 16px;
}

.x-small {
  display: flex;
  overflow: hidden;
  border: 1px solid #cfd9de;
  border-radius: 16px;
}

.x-small .shot {
  flex: none;
  width: 130px;
  height: 130px;
  aspect-ratio: auto;
  background: #f7f9f9;
  border-right: 1px solid #cfd9de;
}

.x-small .x-text {
  min-width: 0;
  padding: 12px;
  align-self: center;
  font-size: 15px;
  line-height: 20px;
}

.x-small .x-host,
.x-small .x-desc { color: #536471; }

.x-small .x-title { color: #0f1419; }

/* LinkedIn */

.li {
  max-width: 552px;
  overflow: hidden;
  border: 1px solid #e0dfdc;
  border-radius: 8px;
  background: #edf3f8;
}

.li-text { padding: 10px 12px 12px; }

.li-title {
  color: rgba(0, 0, 0, 0.9);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.li-host {
  margin-top: 2px;
  color: rgba(0, 0, 0, 0.6);
  font-size: 12px;
  line-height: 16px;
}

/* Telegram */

.tg {
  padding: 28px 18px;
  background: #cfdde8;
}

.tg-bubble {
  width: min(400px, 100%);
  margin-left: auto;
  padding: 7px 9px 6px;
  background: #eeffde;
  border-radius: 12px 12px 4px 12px;
  font-size: 15px;
  line-height: 20px;
}

.tg-link {
  color: #3a8fd6;
  overflow-wrap: anywhere;
}

.tg-quote {
  margin-top: 6px;
  padding: 4px 8px 6px;
  overflow: hidden;
  border-left: 3px solid #4fae4e;
  border-radius: 4px;
  background: rgba(79, 174, 78, 0.12);
}

.tg-site {
  color: #3d9a3c;
  font-size: 14px;
  font-weight: 600;
}

.tg-title {
  color: #000;
  font-size: 14px;
  font-weight: 600;
}

.tg-desc {
  color: #000;
  font-size: 14px;
  line-height: 19px;
}

.tg .shot {
  margin-top: 6px;
  border-radius: 4px;
}

.tg-time {
  margin-top: 2px;
  color: #5fa25a;
  font-size: 12px;
  text-align: right;
}

/* Discord */

.dc {
  padding: 28px 18px;
  background: #313338;
  font-family: "gg sans", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.dc-link {
  color: #00a8fc;
  font-size: 16px;
  line-height: 22px;
  overflow-wrap: anywhere;
}

.dc-embed {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 16px;
  max-width: 432px;
  margin-top: 6px;
  padding: 8px 16px 16px 12px;
  border-left: 4px solid #1e1f22;
  border-radius: 4px;
  background: #2b2d31;
}

.dc-embed > * { grid-column: 1; }

.dc-site {
  margin-top: 8px;
  color: #dbdee1;
  font-size: 12px;
  line-height: 16px;
}

.dc-title {
  margin-top: 8px;
  color: #00a8fc;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}

.dc-desc {
  margin-top: 8px;
  color: #dbdee1;
  font-size: 14px;
  line-height: 18px;
}

.dc-embed > .shot {
  grid-column: 1 / -1;
  margin-top: 16px;
  border-radius: 4px;
  aspect-ratio: auto;
  max-height: 300px;
  background: #1e1f22;
}

.dc.small .dc-embed > .shot {
  grid-column: 2;
  grid-row: 1 / span 3;
  width: 80px;
  height: 80px;
  margin-top: 8px;
}

@media (max-width: 880px) {
  .report { grid-template-columns: minmax(0, 1fr); }

  .read {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .gallery { columns: 1; }

  /* satu kolom: jarak sudah datang dari margin petak terakhir */
  .tags { margin-top: 0; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .stage { padding-bottom: 32px; }
  .bar { padding: 6px; gap: 6px; }
  #url { height: 48px; padding: 0 10px; font-size: 16px; }
  #go { height: 48px; padding: 0 18px; font-size: 15px; }
  .read, .verdict, .tags { padding: 18px; }
  .checks tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-top: 1px solid var(--line); }
  .checks td { border-top: 0; }
  .checks td:first-child, .checks td:nth-child(2) { width: auto; padding-bottom: 2px; }
  .checks td:nth-child(2) { padding-right: 0; }
  .checks td.note { grid-column: 1 / -1; padding-top: 0; }
  .tags td:first-child { width: 130px; }
}
