@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=IBM+Plex+Sans:wght@400;500;700&display=swap");

:root {
  --bg: #070a10;
  --panel: rgba(13, 18, 31, 0.72);
  --panel-2: rgba(8, 12, 22, 0.75);
  --text: #eaf2ff;
  --muted: rgba(234, 242, 255, 0.65);
  --line: rgba(125, 168, 255, 0.18);

  --neon-a: #00f5d4;
  --neon-b: #ff2bd6;
  --neon-c: #00a3ff;
  --warn: #ffce3a;

  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(1200px 700px at 15% 15%, rgba(0, 245, 212, 0.14), transparent 60%),
              radial-gradient(900px 600px at 85% 25%, rgba(255, 43, 214, 0.12), transparent 55%),
              radial-gradient(700px 500px at 50% 90%, rgba(0, 163, 255, 0.10), transparent 60%),
              var(--bg);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  overflow-x: hidden;
}

/* Background grid + scanlines */
.bg-grid,
.bg-scan {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.bg-grid {
  opacity: 0.32;
  background-image:
    linear-gradient(to right, rgba(125, 168, 255, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(125, 168, 255, 0.10) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 30% 25%, black 0%, black 35%, transparent 70%);
}
.bg-scan {
  opacity: 0.18;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.06) 1px,
    transparent 1px,
    transparent 6px
  );
  mix-blend-mode: overlay;
  animation: scan 7s linear infinite;
}
@keyframes scan {
  from { transform: translateY(-24px); }
  to { transform: translateY(24px); }
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 22px 36px;
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
}

.kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
}

h1 {
  font-family: "Orbitron", ui-sans-serif, system-ui, sans-serif;
  margin: 10px 0 10px;
  line-height: 1.05;
  font-size: clamp(30px, 4.1vw, 52px);
  letter-spacing: 0.02em;
  text-shadow:
    0 0 18px rgba(0, 245, 212, 0.20),
    0 0 32px rgba(0, 163, 255, 0.16);
}

.sub {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.pill {
  border: 1px solid rgba(125, 168, 255, 0.22);
  background: rgba(8, 12, 22, 0.55);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: rgba(234, 242, 255, 0.85);
}
.pill b { color: var(--text); }

.pill-link{
  color: rgba(0, 245, 212, 0.92);
  text-decoration: none;
  word-break: break-all;
}
.pill-link:hover{
  text-decoration: underline;
}

.meter {
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.10), rgba(255, 43, 214, 0.08));
  border: 1px solid rgba(125, 168, 255, 0.22);
  box-shadow: var(--shadow);
  padding: 14px 14px 12px;
  position: relative;
  overflow: hidden;
}
.meter:before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(500px 260px at 20% 20%, rgba(0, 245, 212, 0.18), transparent 60%),
              radial-gradient(500px 260px at 90% 40%, rgba(255, 43, 214, 0.14), transparent 55%);
  filter: blur(8px);
  opacity: 0.9;
}
.meter > * { position: relative; z-index: 1; }
.meter-title {
  font-family: "Orbitron", ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.22em;
  font-size: 14px;
  color: rgba(234, 242, 255, 0.85);
}
.meter-bar {
  margin-top: 12px;
  height: 10px;
  border-radius: 99px;
  border: 1px solid rgba(125, 168, 255, 0.22);
  background: rgba(5, 8, 15, 0.55);
  overflow: hidden;
}
.meter-fill {
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, var(--neon-a), var(--neon-c), var(--neon-b));
  filter: drop-shadow(0 0 10px rgba(0, 245, 212, 0.35));
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0% { transform: translateX(-40%); opacity: 0.65; }
  50% { transform: translateX(120%); opacity: 1; }
  100% { transform: translateX(240%); opacity: 0.65; }
}
.meter-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.meter-actions{
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.refresh-btn{
  border-radius: 12px;
  border: 1px solid rgba(0, 245, 212, 0.28);
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.16), rgba(0, 163, 255, 0.08));
  color: rgba(234, 242, 255, 0.92);
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 800;
}
.refresh-btn[disabled]{
  opacity: 0.55;
  cursor: not-allowed;
}
.refresh-hint{
  font-size: 12px;
  color: rgba(234, 242, 255, 0.65);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr; }
}

.panel {
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid rgba(125, 168, 255, 0.20);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.panel:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 300px at 20% 0%, rgba(0, 245, 212, 0.10), transparent 60%),
              radial-gradient(700px 300px at 90% 20%, rgba(0, 163, 255, 0.08), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}
.panel.accent:before {
  background: radial-gradient(700px 300px at 20% 0%, rgba(255, 43, 214, 0.10), transparent 60%),
              radial-gradient(700px 300px at 90% 20%, rgba(0, 245, 212, 0.08), transparent 60%);
}
.panel > * { position: relative; z-index: 1; }

.panel-head {
  padding: 16px 16px 10px;
  border-bottom: 1px solid rgba(125, 168, 255, 0.16);
  background: rgba(8, 12, 22, 0.35);
}
.panel-head h2 {
  margin: 0;
  font-family: "Orbitron", ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  letter-spacing: 0.08em;
}
.panel-note {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.tabs {
  margin: 14px 0 16px;
  display: inline-flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid rgba(125, 168, 255, 0.20);
  background: rgba(8, 12, 22, 0.45);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
}
.tab {
  appearance: none;
  border: 1px solid rgba(125, 168, 255, 0.18);
  background: rgba(5, 8, 15, 0.35);
  color: rgba(234, 242, 255, 0.78);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.tab:hover { transform: translateY(-1px); border-color: rgba(0, 245, 212, 0.28); }
.tab.is-active {
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.18), rgba(0, 163, 255, 0.12));
  border-color: rgba(0, 245, 212, 0.38);
  color: rgba(234, 242, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(0, 245, 212, 0.12) inset;
}

.tab-panels { margin-top: 6px; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.searchbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(125, 168, 255, 0.16);
  background: rgba(8, 12, 22, 0.42);
  margin: 10px 0 14px;
}
.search-left{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.search-label{
  font-family: "Orbitron", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: rgba(234, 242, 255, 0.85);
}
.search-select, .search-input{
  border-radius: 12px;
  border: 1px solid rgba(125, 168, 255, 0.18);
  background: rgba(5, 8, 15, 0.35);
  color: rgba(234, 242, 255, 0.90);
  padding: 10px 12px;
  outline: none;
}
.search-input{
  min-width: 260px;
}
.search-btn{
  border-radius: 12px;
  border: 1px solid rgba(0, 245, 212, 0.28);
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.18), rgba(0, 163, 255, 0.10));
  color: rgba(234, 242, 255, 0.95);
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 700;
}
.search-btn.ghost{
  border-color: rgba(125, 168, 255, 0.18);
  background: rgba(5, 8, 15, 0.25);
  color: rgba(234, 242, 255, 0.80);
}
.search-result{
  font-size: 12px;
  color: rgba(234, 242, 255, 0.70);
  text-align: right;
  max-width: 520px;
}

.item.is-highlight{
  border-color: rgba(255, 206, 58, 0.55) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 206, 58, 0.18) inset;
}

.list {
  list-style: none;
  padding: 10px 10px 12px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}


.item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(8, 12, 22, 0.55);
  border: 1px solid rgba(125, 168, 255, 0.16);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.item:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 245, 212, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.rank {
  font-family: "Orbitron", ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
  font-size: 30px;
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: center;
  padding: 10px 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.14), rgba(0, 163, 255, 0.10));
  border: 1px solid rgba(0, 245, 212, 0.18);
  text-shadow: 0 0 18px rgba(0, 245, 212, 0.22);
}
.rank.top1 { border-color: rgba(255, 206, 58, 0.55); background: linear-gradient(135deg, rgba(255, 206, 58, 0.18), rgba(255, 43, 214, 0.08)); }
.rank.top2 { border-color: rgba(0, 245, 212, 0.45); }
.rank.top3 { border-color: rgba(0, 163, 255, 0.45); }

.content {
  min-width: 0;
}

.title a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  line-height: 1.25;
}
.title a:hover { text-decoration: underline; }
.meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.meta-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.meta-label {
  opacity: 0.85;
}
.meta-url {
  color: rgba(234, 242, 255, 0.78);
  text-decoration: none;
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: bottom;
}
.meta-url:hover {
  text-decoration: underline;
}

.badges {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Orbitron", ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(125, 168, 255, 0.22);
  background: rgba(5, 8, 15, 0.45);
  white-space: nowrap;
}
.badge b { font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif; letter-spacing: 0; }
.badge.votes { border-color: rgba(255, 43, 214, 0.30); }
.badge.comments { border-color: rgba(0, 245, 212, 0.30); }
.badge.ok { border-color: rgba(0, 245, 212, 0.30); background: rgba(0, 245, 212, 0.10); }
.badge.doubt { border-color: rgba(255, 206, 58, 0.35); background: rgba(255, 206, 58, 0.10); }

.foot {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.link { color: rgba(234, 242, 255, 0.8); text-decoration: none; }
.link:hover { text-decoration: underline; }
.dot { opacity: 0.6; }
.muted { color: var(--muted); }

.skeleton {
  height: 70px;
  border-radius: 14px;
  border: 1px solid rgba(125, 168, 255, 0.12);
  background: linear-gradient(90deg, rgba(8, 12, 22, 0.55), rgba(18, 26, 45, 0.55), rgba(8, 12, 22, 0.55));
  background-size: 240% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
}
@keyframes shimmer {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}
