:root{
  --bg:#0b0c10;
  --panel: rgba(255,255,255,.055);
  --panel2: rgba(255,255,255,.075);
  --stroke: rgba(255,255,255,.10);
  --stroke2: rgba(255,255,255,.16);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.62);
  --muted2: rgba(255,255,255,.46);
  --accent:#e85d8c;
  --accent2:#b84cff;
  --danger:#ff4b4b;
  --shadow: 0 16px 60px rgba(0,0,0,.55);
  --radius: 18px;
  --radius2: 26px;
  --max: 1360px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  letter-spacing: .2px;
  overflow-x:hidden;
}
.bg{
  position:fixed; inset:-10%;
  background:
    radial-gradient(1200px 650px at 15% 10%, rgba(232,93,140,.20), transparent 60%),
    radial-gradient(1000px 520px at 85% 15%, rgba(184,76,255,.14), transparent 62%),
    radial-gradient(1100px 720px at 55% 90%, rgba(232,93,140,.10), transparent 65%),
    radial-gradient(800px 420px at 70% 60%, rgba(255,255,255,.06), transparent 60%);
  filter: saturate(1.05);
  pointer-events:none;
  z-index:-1;
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift{
  0%{transform: translate3d(0,0,0) scale(1)}
  100%{transform: translate3d(0,-10px,0) scale(1.02)}
}

.shell{max-width: var(--max); margin:0 auto; padding: 0 18px;}
.top{padding: 24px 0 12px;}
.brand{display:flex; gap:12px; align-items:flex-start;}
.mark{
  width: 14px; height: 14px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(232,93,140,1), rgba(184,76,255,.95));
  box-shadow: 0 0 0 6px rgba(232,93,140,.12), 0 0 0 1px rgba(255,255,255,.10) inset;
  margin-top: 8px;
  animation: pulse 2.8s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{transform: scale(1)}
  50%{transform: scale(1.06)}
}

h1{margin:0; font-size: clamp(22px, 2.6vw, 34px); font-weight: 760; line-height:1.12;}
p{margin:6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45;}

.controls{display:flex; gap:10px; align-items:center; justify-content:flex-end; flex-wrap:wrap;}
.top .shell{
  display:flex; justify-content:space-between; align-items:flex-end; gap:14px; flex-wrap:wrap;
}

.search{
  display:flex; align-items:center; gap:10px;
  padding: 10px 12px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.14);
  border-radius: 999px;
  min-width: min(420px, 76vw);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transform: translateZ(0);
}
.search.compact{min-width: 100%;}
.search input{
  width:100%;
  border:0; outline:0;
  background:transparent;
  color: var(--text);
  font-size: 14px;
}
.search input::placeholder{color: rgba(255,255,255,.40)}

.btn{
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 14px;
  cursor:pointer;
  transition: transform .14s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease;
  font-size: 13px;
  text-decoration:none;
  user-select:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  backdrop-filter: blur(10px);
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 12px 26px rgba(0,0,0,.22);
}
.btn:active{transform: translateY(0px) scale(.99)}
.btn.primary{
  border-color: rgba(232,93,140,.52);
  background: rgba(232,93,140,.12);
}
.btn.danger{
  border-color: rgba(255,75,75,.45);
  background: rgba(255,75,75,.10);
}
.btn.ghost{background: transparent;}

.tabs{
  display:flex; gap:10px; flex-wrap:wrap; align-items:center;
  margin-top: 14px;
}
.tab{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  cursor:pointer;
  font-size: 13px;
  transition: background .14s ease, transform .14s ease, border-color .14s ease, color .14s ease;
  user-select:none;
  backdrop-filter: blur(10px);
}
.tab:hover{transform: translateY(-1px); background: rgba(255,255,255,.06)}
.tab.active{
  color: var(--text);
  border-color: rgba(232,93,140,.55);
  background: rgba(232,93,140,.11);
}

.meta{
  margin-top: 10px;
  display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap;
  color: var(--muted2);
  font-size: 13px;
}
.chip{
  display:inline-flex; align-items:center; gap:10px;
  padding: 10px 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  border-radius: 999px;
  color: var(--muted);
  backdrop-filter: blur(10px);
}

.grid{
  margin: 16px 0 64px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.card{
  grid-column: span 4;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: 0 10px 34px rgba(0,0,0,.36);
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  min-height: 310px;
  display:flex; flex-direction:column;
  transform: translateY(10px);
  opacity: 0;
}
.card.in{
  transform: translateY(0);
  opacity: 1;
  transition: transform .55s cubic-bezier(.2,.9,.2,1), opacity .55s ease;
}
.card:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 16px 46px rgba(0,0,0,.42);
}

.thumb{
  position:relative;
  width:100%;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(420px 240px at 20% 10%, rgba(232,93,140,.20), transparent 55%),
    rgba(255,255,255,.03);
  border-bottom: 1px solid var(--stroke);
  overflow:hidden;
}
.thumb img{
  width:100%; height:100%;
  object-fit: cover;
  display:block;
  filter: saturate(1.06) contrast(1.03);
  transform: scale(1.02);
  transition: transform .55s cubic-bezier(.2,.9,.2,1);
}
.card:hover .thumb img{transform: scale(1.06)}
.badge{
  position:absolute; left: 12px; top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.44);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 12px;
  color: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
}

.body{
  padding: 14px 14px 12px;
  display:flex; flex-direction:column; gap:10px;
  flex:1;
}
.title{
  display:flex; align-items:flex-start; justify-content:space-between; gap:10px;
}
.title h3{
  margin:0;
  font-size: 15px;
  font-weight: 760;
  letter-spacing: .2px;
  line-height: 1.25;
}
.muted{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin:0;
  white-space: pre-wrap;
}

.cmd{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(0,0,0,.18);
  padding: 10px 10px;
  margin-top:auto;
}
.cmd code{
  font-family: var(--mono);
  font-size: 12.5px;
  color: rgba(255,255,255,.86);
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display:block;
  max-width: 100%;
}
.copy{
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(232,93,140,.40);
  background: rgba(232,93,140,.10);
  cursor:pointer;
  font-size: 12px;
  color: rgba(255,255,255,.88);
  transition: transform .14s ease, background .14s ease;
  user-select:none;
}
.copy:hover{transform: translateY(-1px); background: rgba(232,93,140,.14)}
.copy:active{transform: translateY(0) scale(.99)}

.empty{
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.70);
  backdrop-filter: blur(10px);
}

.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.54);
  color: rgba(255,255,255,.90);
  font-size: 13px;
  display:none;
  z-index: 70;
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 46px rgba(0,0,0,.35);
}
.toast.show{display:block; animation: pop .25s ease;}
@keyframes pop{
  from{transform: translateX(-50%) translateY(8px); opacity: 0}
  to{transform: translateX(-50%) translateY(0); opacity: 1}
}

.glass{
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.045);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

@media (max-width: 980px){
  .card{grid-column: span 6;}
  .search{min-width: min(520px, 100%);}
}
@media (max-width: 640px){
  .card{grid-column: span 12;}
  .top .shell{align-items:flex-start}
}


/* Top-right logo */
.toplogo{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
  transition: transform .14s ease, background .14s ease, border-color .14s ease;
}
.toplogo:hover{transform: translateY(-1px); background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18)}
.toplogo:active{transform: translateY(0) scale(.99)}
.toplogo img{
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.25));
}
