:root {
  --bg: #0b0f17;
  --surface: #111726;
  --text: #e6ecff;
  --muted: #99a3bf;
  --primary: #7c5cff;
  --accent: #19e68c;
  --danger: #ff4d4f;
  --ring: rgba(124, 92, 255, 0.45);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(124,92,255,0.12), transparent 60%),
              radial-gradient(1000px 500px at 120% 10%, rgba(25,230,140,0.10), transparent 50%),
              var(--bg);
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(140%) blur(8px);
  background: linear-gradient(180deg, rgba(11,15,23,0.85), rgba(11,15,23,0.6) 60%, transparent);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid rgba(255,255,255,0.15); border-radius: 10px; padding: 10px; cursor: pointer; }
.branding { display: flex; align-items: center; gap: 14px; }
.logo { font-size: 28px; filter: drop-shadow(0 2px 6px rgba(25,230,140,0.4)); }
.titles h1 { margin: 0; font-size: 20px; letter-spacing: 0.2px; }
.titles p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0a0e16;
  background: linear-gradient(90deg, var(--accent), #5cf7c7);
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(25,230,140,0.3);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(25,230,140,0.4); }

.main { padding: 18px 0 18px; }

.online-bar {
  position: sticky; top: 0; z-index: 20;
  width: 100%;
  text-align: center;
  background: rgba(25,230,140,0.15);
  color: #d7ffe9;
  border-bottom: 1px solid rgba(25,230,140,0.35);
  font-weight: 600; letter-spacing: .2px;
  padding: 8px 10px;
  backdrop-filter: saturate(140%) blur(6px);
}

.controls, .controls-row, .control-select, .btn { display: none; }
.results { display: none; }

.banners { display: grid; gap: 18px; grid-template-columns: 1fr; }

.banner-card {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  overflow: clip;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04);
  transform: translateZ(0);
}

.ribbon {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
}
.ribbon.sponsored { background: rgba(25,230,140,0.18); color: #d7ffe9; border-color: rgba(25,230,140,0.35); }
.ribbon.featured { background: rgba(124,92,255,0.22); color: #efeaff; border-color: rgba(124,92,255,0.35); }

.banner-media {
  position: relative;
  display: block;
  height: 0;
  padding-bottom: var(--banner-aspect, 100%);
  background: #0d1322;
}
.banner-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; display: block; object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.005);
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.banner-media::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(100% 60% at 50% 100%, rgba(0,0,0,0.0), rgba(0,0,0,0.25));
  pointer-events: none;
}

/* Aspect is controlled via --banner-aspect set by JS (H/W * 100%) */

.banner-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}
.banner-title { font-weight: 650; letter-spacing: 0.2px; }
.banner-tags { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; }
.badge { padding: 4px 8px; background: rgba(124,92,255,0.12); color: #cfc6ff; border: 1px solid rgba(124,92,255,0.25); border-radius: 999px; }
.clicks { color: var(--muted); font-size: 12px; }

.banner-card:hover img { transform: scale(1.03); }
.banner-card:hover .ring { opacity: 1; filter: blur(18px); }

.ring {
  position: absolute; inset: -1px;
  background: conic-gradient(from 0deg at 50% 50%, transparent, var(--ring), transparent 40%);
  opacity: 0; transition: opacity .3s ease, filter .3s ease;
  z-index: -1;
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Skeletons */
.skeleton {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}
.skeleton::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer {
  100% { transform: translateX(100%); }
}

#backToTop { position: fixed; right: 18px; bottom: 18px; width: 42px; height: 42px; border-radius: 999px; background: linear-gradient(135deg, var(--primary), #b197ff); color: white; border: none; box-shadow: 0 10px 30px rgba(124,92,255,0.35); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
#backToTop.show { opacity: 1; pointer-events: auto; transform: translateY(-2px); }

.noscript { text-align: center; padding: 10px; color: var(--danger); }

/* Fixed 2-column layout on all screen sizes */

/* All banners square */

/* Themes */
:root[data-theme="light"] {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #0b0f17;
  --muted: #39445f;
  --primary: #5b45d6;
  --accent: #17c97b;
  --danger: #d63e40;
  --ring: rgba(91,69,214,0.35);
}


