  :root {
    --bg: #fafaf9; --surface: #fff; --ink: #18181b; --ink-muted: #71717a; --ink-soft: #a1a1aa;
    --border: #e4e4e7; --border-soft: #f4f4f5; --red: #b91c1c; --green: #15803d;
    --amber: #b45309; --blue: #1d4ed8; --gold: #b45309;
  }
  * { box-sizing: border-box; }
  body { margin: 0; font-family: 'Tajawal', system-ui, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.55; }
  a { color: inherit; text-decoration: none; }

  header.site { max-width: 1100px; margin: 0 auto; padding: 32px 20px 8px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
  header.site .brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 36px; font-weight: 900; letter-spacing: -0.03em;
    color: #006C35; line-height: 1;
  }
  header.site .brand .brand-flag { width: 32px; height: 32px; display: inline-block; vertical-align: middle; }
  header.site .tagline { color: var(--ink-muted); font-size: 13px; }
  .navlinks { margin-inline-start: auto; display: flex; gap: 6px; }
  .navlinks a { font-size: 13px; padding: 6px 12px; border-radius: 999px; color: var(--ink-muted); border: 1px solid transparent; }
  .navlinks a:hover { background: var(--surface); border-color: var(--border); color: var(--ink); }

  main { max-width: 1100px; margin: 0 auto; padding: 16px 20px 32px; }

  .pagetitle { font-size: 26px; font-weight: 900; margin: 12px 0 6px; letter-spacing: -0.02em; line-height: 1.3; }
  .pagesub { color: var(--ink-muted); margin-bottom: 24px; font-size: 14px; }

  .card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; margin-bottom: 20px; }

  .entities-bar {
    display: flex; align-items: center; justify-content: center; gap: 28px;
    background: linear-gradient(135deg, #064e3b 0%, #052e16 100%);
    border-radius: 14px; padding: 18px 22px; margin: 0 0 24px;
    box-shadow: 0 4px 14px rgba(5,46,22,0.18);
  }
  .entities-bar .entity { display: flex; align-items: center; justify-content: center; flex: 1; max-width: 240px; }
  .entities-bar .entity img { max-height: 56px; max-width: 100%; object-fit: contain; }
  .entities-bar .entities-divider { width: 1px; height: 48px; background: rgba(255,255,255,0.18); flex-shrink: 0; }
  @media (max-width: 600px) {
    .entities-bar { gap: 16px; padding: 14px 12px; }
    .entities-bar .entity img { max-height: 42px; }
    .entities-bar .entities-divider { height: 36px; }
  }
  .card h2 { margin: 0 0 6px; font-size: 17px; font-weight: 800; }
  .card .hint { color: var(--ink-muted); font-size: 13px; margin-bottom: 14px; }

  .hero-wrap { position: relative; overflow: hidden; padding: 12px 0; }
  .hero-wrap::before, .hero-wrap::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 48px; z-index: 2; pointer-events: none;
  }
  .hero-wrap::before { right: 0; background: linear-gradient(to left, var(--surface), transparent); }
  .hero-wrap::after  { left: 0;  background: linear-gradient(to right, var(--surface), transparent); }
  .marquee {
    display: flex; gap: 0; width: max-content;
    animation: marquee var(--marquee-dur, 30s) linear infinite;
    will-change: transform; backface-visibility: hidden;
  }
  .marquee:hover { animation-play-state: paused; }
  
  .marquee .htile { margin-inline-end: 14px; }
  @keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(50%); }
  }
  
  .hero-wrap.static .marquee { animation: none; width: 100%; display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .hero-wrap.static::before, .hero-wrap.static::after { display: none; }
  .hero-wrap.expanded .marquee { animation: none; display: grid; width: auto;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .hero-wrap.expanded::before, .hero-wrap.expanded::after { display: none; }

  .htile {
    width: 160px; flex-shrink: 0; background: var(--surface);
    border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
    display: flex; flex-direction: column; position: relative; cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 10px rgba(0,0,0,0.04);
  }
  .htile:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 16px 36px rgba(0,0,0,0.10);
  }
  .blocked-stamp {
    position: absolute; top: 50%; left: 50%;
    transform: translate(calc(-50% + var(--sx, 0px)), calc(-50% + var(--sy, 0px))) rotate(var(--srot, -14deg));
    color: #b91c1c; border: 4px double #b91c1c; border-radius: 6px;
    padding: 6px 16px 5px; font-weight: 900; font-size: var(--ssize, 22px);
    letter-spacing: 5px; line-height: 1; font-family: 'Tajawal', sans-serif;
    background: rgba(255,255,255,0.05); mix-blend-mode: multiply; opacity: 0.92;
    text-shadow: 1px 1px 0 rgba(185,28,28,0.4), 2px 2px 4px rgba(0,0,0,0.25);
    box-shadow: 1px 2px 5px rgba(0,0,0,0.25), inset 0 0 8px rgba(185,28,28,0.15);
    filter: contrast(1.2) drop-shadow(0 2px 3px rgba(0,0,0,0.2));
    pointer-events: none; z-index: 3; user-select: none; white-space: nowrap;
  }
  .htile .photo {
    aspect-ratio: 1/1; background: #f4f4f5; background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; font-weight: 800; color: var(--ink-soft); position: relative;
  }
  .htile .platform-badge {
    position: absolute; top: 8px; left: 8px; width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }
  .htile .platform-badge.snap { background: #FFFC00; }
  .htile .platform-badge.tiktok, .htile .platform-badge.x { background: #000; }
  .htile .platform-badge.youtube { background: #FF0000; }
  .htile .platform-badge.instagram { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
  .creator-badge {
    position: absolute; bottom: 8px; right: 8px;
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(24,24,27,0.92); color: #fff; padding: 4px 9px; border-radius: 999px;
    font-size: 10.5px; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,0.25); z-index: 2;
  }
  .creator-badge svg { width: 11px; height: 11px; }
  .htile .platform-badge img { width: 32px; height: 32px; object-fit: contain; }
  .htile .platform-badge svg { width: 20px; height: 20px; }
  .htile .body { padding: 10px 12px; }
  .htile .name { font-weight: 700; font-size: 13px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .htile .h { color: var(--ink-soft); font-size: 11px; direction: ltr; text-align: right; margin-top: 2px; }
  .expand-toggle {
    display: block; margin: 16px auto 0; padding: 9px 18px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 999px; cursor: pointer; font-family: inherit;
    font-size: 13px; font-weight: 600; color: var(--ink-muted);
  }
  .expand-toggle:hover { border-color: var(--ink); color: var(--ink); }

  .cta { text-align: center; background: linear-gradient(135deg, #fff7ed, #fef2f2); border: 1px solid #fed7aa; }
  .cta h2 { font-size: 19px; margin: 0 0 6px; font-weight: 900; }
  .cta .hint { font-size: 14px; color: var(--ink); margin: 0; }
  .cta .stat { display: inline-flex; align-items: baseline; gap: 6px; margin-top: 10px;
    background: rgba(255,255,255,0.7); padding: 6px 14px; border-radius: 999px; font-size: 13px; }
  .cta .stat b { font-size: 18px; color: var(--red); font-weight: 900; }

  .form-row { display: grid; gap: 14px; }
  .form-row .platforms { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .form-row .ptile {
    border: 1.5px solid var(--border); border-radius: 10px; padding: 8px 4px; text-align: center;
    cursor: pointer; transition: all 0.12s; background: var(--surface);
    display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px;
  }
  .form-row .ptile:hover { border-color: var(--ink-soft); }
  .form-row .ptile.selected { border-color: var(--ink); background: #f4f4f5; }
  .form-row .ptile .pi { width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
  .form-row .ptile .pi img { width: 24px; height: 24px; object-fit: contain; }
  .form-row .ptile .pi.snap { background: #FFFC00; }
  .form-row .ptile .pi.tiktok, .form-row .ptile .pi.x { background: #000; }
  .form-row .ptile .pi.youtube { background: #FF0000; }
  .form-row .ptile .pi.instagram { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
  .form-row .ptile .pn { font-size: 12px; font-weight: 700; }

  .form-row input[type=text], .form-row textarea {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px;
    font-family: inherit; font-size: 14px; background: var(--surface); color: var(--ink);
  }
  .form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--ink); }
  .form-row textarea { min-height: 80px; resize: vertical; line-height: 1.5; }

  .reasons { display: flex; flex-wrap: wrap; gap: 6px; }
  .reasons .rchip {
    padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface);
    cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--ink-muted); transition: all 0.12s;
    user-select: none;
  }
  .reasons .rchip:hover { border-color: var(--ink-soft); color: var(--ink); }
  .reasons .rchip.selected { background: var(--ink); color: white; border-color: var(--ink); }
  .reasons-hint { font-size: 11px; color: var(--ink-soft); margin-top: 6px; }

  .submitbtn {
    padding: 13px 24px; background: var(--ink); color: white; border: none; border-radius: 10px;
    font-size: 14px; font-weight: 800; cursor: pointer; font-family: inherit; width: 100%;
  }
  .submitbtn:disabled { background: var(--ink-soft); cursor: not-allowed; }
  .submitbtn:hover:not(:disabled) { background: #000; }

  .formstate { font-size: 13px; padding: 12px 14px; border-radius: 10px; margin-top: 10px; display: none; line-height: 1.55; }
  .formstate.show { display: block; }
  .formstate.ok { background: #f0fdf4; color: var(--green); border: 1px solid #bbf7d0; }
  .formstate.ok b { color: #14532d; }
  .formstate.err { background: #fef2f2; color: var(--red); border: 1px solid #fecaca; }
  .formstate .mini-account {
    display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 12px;
    background: rgba(255,255,255,0.7); border-radius: 10px; text-decoration: none; color: inherit;
  }
  .formstate .mini-account .av {
    width: 36px; height: 36px; border-radius: 50%; background-size: cover; background-position: center;
    background-color: #f4f4f5; display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--ink-soft); font-size: 14px; position: relative; flex-shrink: 0;
  }
  .formstate .mini-account .av .pb {
    position: absolute; bottom: -2px; left: -2px; width: 16px; height: 16px; border-radius: 4px;
    border: 2px solid #fff; overflow: hidden; display: flex; align-items: center; justify-content: center;
  }
  .formstate .mini-account .av .pb.snap { background: #FFFC00; }
  .formstate .mini-account .av .pb.tiktok, .formstate .mini-account .av .pb.x { background: #000; }
  .formstate .mini-account .av .pb.youtube { background: #FF0000; }
  .formstate .mini-account .av .pb.instagram { background: linear-gradient(45deg,#f09433,#dc2743,#bc1888); }
  .formstate .mini-account .av .pb img { width: 16px; height: 16px; object-fit: contain; }
  .formstate .mini-account .av .pb svg { width: 10px; height: 10px; }
  .formstate .mini-account .meta { min-width: 0; flex: 1; }
  .formstate .mini-account .n { font-weight: 700; font-size: 13px; color: var(--ink); }
  .formstate .mini-account .h { font-size: 11px; color: var(--ink-soft); direction: ltr; text-align: right; }

  .vote-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
  .vote-chips { display: flex; gap: 6px; flex-wrap: wrap; }
  .vchip {
    padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border);
    background: var(--surface); cursor: pointer; font-size: 12.5px; font-weight: 600;
    color: var(--ink-muted); display: inline-flex; align-items: center; gap: 6px;
    transition: all 0.12s;
  }
  .vchip:hover { border-color: var(--ink-soft); color: var(--ink); }
  .vchip.active { background: var(--ink); color: white; border-color: var(--ink); }
  .vchip .pi { width: 16px; height: 16px; border-radius: 4px; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; }
  .vchip .pi img { width: 16px; height: 16px; object-fit: contain; }
  .vchip .pi.snap { background: #FFFC00; } .vchip .pi.tiktok, .vchip .pi.x { background: #000; } .vchip .pi.youtube { background: #FF0000; } .vchip .pi.instagram { background: linear-gradient(45deg,#f09433,#dc2743,#bc1888); }
  .vote-search { margin-inline-start: auto; position: relative; min-width: 180px; flex: 1; max-width: 280px; }
  .vote-search input {
    width: 100%; padding: 8px 14px 8px 32px; border: 1px solid var(--border);
    border-radius: 999px; background: var(--surface); font-size: 13px; font-family: inherit;
  }
  .vote-search input:focus { outline: none; border-color: var(--ink); }
  .vote-search::after { content: "⌕"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); font-size: 16px; pointer-events: none; }

  .tile-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .ptile-big {
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease; position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 10px rgba(0,0,0,0.04);
  }
  .ptile-big:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 16px 36px rgba(0,0,0,0.10);
  }
  .ptile-big .photo {
    aspect-ratio: 1/1; background: #f4f4f5; background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    font-size: 48px; font-weight: 800; color: var(--ink-soft); position: relative;
  }
  .ptile-big .platform-badge {
    position: absolute; top: 10px; left: 10px;
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  }
  .ptile-big .platform-badge.snap { background: #FFFC00; }
  .ptile-big .platform-badge.tiktok, .ptile-big .platform-badge.x { background: #000; }
  .ptile-big .platform-badge.youtube { background: #FF0000; }
  .ptile-big .platform-badge.instagram { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
  .ptile-big .platform-badge img { width: 40px; height: 40px; object-fit: contain; }
  .ptile-big .platform-badge svg { width: 26px; height: 26px; }
  .ptile-big .body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
  .ptile-big .name { font-weight: 700; font-size: 14px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .ptile-big .h { color: var(--ink-soft); font-size: 12px; direction: ltr; text-align: right; }
  .ptile-big .vote-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-top: 1px solid var(--border-soft); background: #fafafa; gap: 8px; }
  .ptile-big .vote-btn {
    border: 1.5px solid var(--border); background: var(--surface); border-radius: 8px;
    padding: 7px 12px; font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px; transition: all 0.12s;
  }
  .ptile-big .vote-btn:hover:not(:disabled) { border-color: var(--ink); }
  .ptile-big .vote-btn.voted { background: var(--ink); color: white; border-color: var(--ink); cursor: default; }
  .ptile-big .vote-count { font-size: 13px; font-weight: 700; color: var(--ink); }
  .ptile-big .vote-count .lbl { font-size: 11px; color: var(--ink-muted); font-weight: 500; margin-inline-start: 4px; }

  .empty { padding: 32px; text-align: center; color: var(--ink-muted); font-size: 14px; border: 1px dashed var(--border); border-radius: 12px; }

  footer { max-width: 1100px; margin: 0 auto; padding: 24px 20px 40px; border-top: 1px solid var(--border); color: var(--ink-muted); font-size: 12px; text-align: center; }

  @media (max-width: 640px) {
    header.site { padding-top: 20px; flex-direction: column; align-items: flex-start; gap: 4px; }
    .pagetitle { font-size: 21px; }
    .htile { width: 130px; }
    .htile .platform-badge { width: 28px; height: 28px; }
    .htile .platform-badge img { width: 28px; height: 28px; }
    .form-row .platforms { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .form-row .ptile { flex-direction: column; padding: 10px 4px; gap: 4px; }
    .form-row .ptile .pi { width: 28px; height: 28px; }
    .form-row .ptile .pi img { width: 28px; height: 28px; }
    .form-row .ptile .pn { font-size: 11px; }
    .reasons .rchip { font-size: 11.5px; padding: 6px 10px; }
    .vote-controls { flex-direction: column; align-items: stretch; }
    .vote-search { margin-inline-start: 0; max-width: none; }
    .tile-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
    .ptile-big .platform-badge { width: 34px; height: 34px; border-radius: 8px; }
    .ptile-big .platform-badge img { width: 34px; height: 34px; }
    .ptile-big .body { padding: 10px 11px; }
    .ptile-big .name { font-size: 13px; }
    .hero-wrap.expanded .marquee { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  }

.hidden { display: none !important; }

@keyframes flash-pulse {
  0%, 100% { box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 10px rgba(0,0,0,0.04); }
  50%      { box-shadow: 0 0 0 4px #15803d, 0 8px 24px rgba(21,128,61,0.25); }
}
.ptile-big.flash { animation: flash-pulse 0.9s ease 2; }
