:root {
  --bg: #07070c;
  --bg-2: #0c0c14;
  --panel: #101119;
  --panel-2: #141521;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .20);
  --text: #f8f8fc;
  --muted: #b7bfd4;
  --soft: #8791ad;
  --pink: #ff16c7;
  --purple: #8c2dff;
  --cyan: #2ee8ff;
  --green: #19d67a;
  --danger: #ff4a78;
  --shadow: 0 22px 70px rgba(0, 0, 0, .55);
  --radius: 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top center, rgba(255, 22, 199, .14), transparent 30rem),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(180deg, #080910 0%, #06070c 45%, #090612 100%);
  background-size: auto, 64px 64px, auto;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
body.modal-open { overflow: hidden; }

.page-shell {
  width: min(100%, 1080px);
  margin-inline: auto;
  padding-inline: 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 16px 0 8px;
  background: linear-gradient(180deg, rgba(7,7,12,.98), rgba(7,7,12,.72) 80%, transparent);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  background: rgba(15, 16, 25, .86);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 950;
  font-size: 18px;
  letter-spacing: -.04em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: white;
  font-weight: 950;
  font-size: 13px;
  background: linear-gradient(135deg, var(--pink), var(--purple) 54%, var(--cyan));
  box-shadow: 0 0 30px rgba(255, 22, 199, .32);
  transform: rotate(-8deg);
}

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a,
.btn,
.category-tab {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  color: var(--muted);
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 850;
  line-height: 1;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.nav-links a:hover,
.btn:hover,
.category-tab:hover,
.category-tab.active {
  color: var(--text);
  border-color: rgba(255, 22, 199, .55);
  background: rgba(255, 22, 199, .11);
}
.discord-link { color: white !important; border-color: rgba(255, 22, 199, .72) !important; }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: 8px;
  padding: 10px 12px;
}

.top-native-ad { padding: 12px 0 4px; display: grid; place-items: center; }
.native-strip { width: min(100%, 728px); min-height: 90px; padding: 0; background: rgba(10, 11, 19, .92); }
.native-strip > div[id^="container-"] { width: 100%; min-height: 90px; display: grid; place-items: center; }
.top-ad { padding: 14px 0 22px; display: grid; place-items: center; }
.ad-row { display: grid; place-items: center; margin: 22px 0; }
.embedded-ad { margin: 22px auto; padding-inline: 18px; }

.ad-slot {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 22, 199, .22), rgba(46, 232, 255, .10)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.035), rgba(255,255,255,.035) 8px, transparent 8px, transparent 16px),
    #0a0b13;
  color: rgba(255,255,255,.78);
  text-align: center;
  min-height: 90px;
}
.ad-slot::before {
  content: "ADVERTISEMENT";
  position: absolute;
  top: 7px;
  left: 10px;
  z-index: 1;
  color: #8fa1ca;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
}
.ad-slot span { font-weight: 950; letter-spacing: -.03em; color: white; }
.ad-slot small { display: block; color: var(--soft); margin-top: 4px; }
.leaderboard { width: min(100%, 728px); height: 90px; }
.rectangle { width: 300px; height: 250px; }
.skyscraper { width: 160px; height: 600px; }
.small { min-height: 100px; }

.ad-rail {
  position: fixed;
  top: 108px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 18px;
  pointer-events: auto;
}
.ad-rail-left { left: max(16px, calc(50% - 540px - 190px)); }
.ad-rail-right { right: max(16px, calc(50% - 540px - 190px)); }

.hero-panel {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 460px);
  align-items: center;
  gap: 28px;
  min-height: 230px;
  padding: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(18, 19, 28, .90);
  box-shadow: var(--shadow);
}
.compact-hero { grid-template-columns: 1fr; min-height: 170px; margin-bottom: 22px; }
.hero-panel h1 {
  margin: 0 0 10px;
  font-size: clamp(42px, 6vw, 58px);
  line-height: .92;
  letter-spacing: -.07em;
}
.hero-panel p {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}
.mini-stats { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.mini-stats span {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
  font-weight: 850;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(4, 5, 10, .8);
  padding: 0 14px;
  color: var(--pink);
}
.search-box input {
  width: 100%;
  min-height: 54px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-weight: 650;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
.category-tab { cursor: pointer; }
.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}
.script-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.script-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 18, 28, .94);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .28);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.script-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 22, 199, .52);
  box-shadow: 0 22px 60px rgba(255, 22, 199, .12);
}
.card-link { display: block; height: 100%; }
.thumb {
  position: relative;
  min-height: 154px;
  background:
    linear-gradient(135deg, rgba(0,0,0,.18), rgba(0,0,0,.66)),
    var(--thumb, linear-gradient(135deg, #1936ff, #ff16c7));
  overflow: hidden;
}
.thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 28%, rgba(255,255,255,.42), transparent 9%),
    radial-gradient(circle at 74% 32%, rgba(46,232,255,.55), transparent 14%),
    radial-gradient(circle at 54% 78%, rgba(255,22,199,.45), transparent 18%);
  opacity: .7;
}
.thumb::after {
  content: attr(data-title);
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  color: white;
  font-weight: 950;
  font-size: 26px;
  line-height: .96;
  text-transform: uppercase;
  letter-spacing: -.05em;
  text-shadow: 0 3px 0 rgba(0,0,0,.65), 0 8px 18px rgba(0,0,0,.8);
}
.play-dot {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  width: 48px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f00;
  color: white;
  font-size: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.card-body { padding: 14px 16px 16px; }
.card-kicker { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.badge, .rating, .card-meta span {
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 900;
}
.script-card h3 {
  margin: 0 0 8px;
  color: white;
  font-size: 18px;
  line-height: 1.12;
  letter-spacing: -.04em;
}
.description { margin: 0; color: var(--muted); line-height: 1.4; font-size: 14px; }
.card-meta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 7px; }
.feed-ads { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 110px; }
.feed-ad-card { grid-column: 1 / -1; min-height: 110px; }
.in-feed { width: 100%; min-height: 120px; }
.empty-card { min-height: 120px; }

.view[hidden] { display: none !important; }
.view { margin-bottom: 28px; }
.back-btn { display: inline-flex; margin: 0 0 14px; }
.detail-top-ad { margin-top: 0; }
.detail-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(18, 19, 28, .93);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-box {
  position: relative;
  min-height: min(56vw, 500px);
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(0,0,0,.15), rgba(0,0,0,.76)),
    var(--thumb, linear-gradient(135deg, #1936ff, #ff16c7));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.video-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 34%, rgba(255,255,255,.35), transparent 10%),
    radial-gradient(circle at 64% 38%, rgba(46,232,255,.45), transparent 18%),
    radial-gradient(circle at 74% 82%, rgba(255,22,199,.32), transparent 20%);
}
.video-title { position: absolute; left: 28px; bottom: 24px; max-width: 760px; z-index: 2; }
.video-title h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: .94;
  text-transform: uppercase;
  letter-spacing: -.06em;
  text-shadow: 0 4px 0 rgba(0,0,0,.65), 0 14px 24px rgba(0,0,0,.74);
}
.video-play {
  position: relative;
  z-index: 3;
  width: 88px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #f00;
  color: white;
  font-size: 34px;
  box-shadow: 0 24px 50px rgba(0,0,0,.55);
}
.support-gate,
.script-unlock { padding: clamp(28px, 5vw, 58px); text-align: center; }
.support-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border: 1px solid rgba(255, 22, 199, .62);
  border-radius: 10px;
  background: rgba(255, 22, 199, .12);
  font-size: 28px;
}
.support-gate h2,
.script-unlock h2 { margin: 0 0 12px; font-size: clamp(32px, 5vw, 50px); line-height: 1; letter-spacing: -.07em; }
.support-gate p,
.script-unlock p { max-width: 760px; margin: 0 auto 20px; color: var(--muted); font-size: 17px; line-height: 1.5; }
.unlock-status { color: var(--danger) !important; font-weight: 900; }
.script-unlock { display: none; border-top: 1px solid var(--line); }
.script-unlock.is-visible { display: block; }
.unlock-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn.primary { color: white; border-color: rgba(255, 22, 199, .78); background: linear-gradient(135deg, var(--pink), var(--purple)); box-shadow: 0 14px 34px rgba(255, 22, 199, .22); }
.btn.green { color: white; border-color: rgba(25, 214, 122, .6); background: rgba(25, 214, 122, .16); }
.detail-ad-stack { display: grid; place-items: center; gap: 18px; padding: 0 18px 28px; }
.detail-ad-stack .rectangle { max-width: 100%; }

.executor-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 22px 0 30px; }
.executor-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 18, 28, .94);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .28);
}
.executor-cover {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 160px;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(0,0,0,.15), rgba(0,0,0,.7)),
    var(--thumb, linear-gradient(135deg, #1936ff, #ff16c7));
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.executor-cover::after {
  content: attr(data-title);
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  color: white;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -.06em;
  text-transform: uppercase;
  text-shadow: 0 3px 0 rgba(0,0,0,.65), 0 8px 18px rgba(0,0,0,.8);
}

.executor-cover.has-image::after { display: none; }
.executor-cover.has-image .executor-logo { display: none; }

.executor-logo {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(0,0,0,.35);
  border: 1px solid var(--line-strong);
  font-weight: 950;
  color: white;
}
.executor-body { padding: 16px; }
.executor-body h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.04em; }
.executor-body p { margin: 0 0 16px; color: var(--muted); line-height: 1.4; font-size: 14px; }
.executor-download { display: flex; justify-content: center; width: 100%; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; padding: 34px 18px 44px; color: var(--soft); font-weight: 700; }

.entry-check {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(4, 5, 10, .94);
  backdrop-filter: blur(20px);
}
.entry-check.is-hidden { pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
.entry-card {
  width: min(100%, 510px);
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(18, 19, 28, .96);
  box-shadow: var(--shadow);
}
.entry-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 0 22px;
  border: 1px solid rgba(255, 22, 199, .58);
  border-radius: 10px;
  background: rgba(255, 22, 199, .10);
}
.loader-ring {
  width: 26px;
  height: 26px;
  border: 4px solid rgba(255,255,255,.18);
  border-top-color: var(--pink);
  border-radius: 999px;
  animation: spin 1s linear infinite;
}
.entry-check.is-blocked .loader-ring { animation: none; border-color: rgba(255,74,120,.48); }
.eyebrow { margin: 0 0 14px; color: var(--pink); font-size: 12px; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; }
.entry-card h1 { margin: 0 0 14px; max-width: 360px; font-size: clamp(42px, 7vw, 54px); line-height: .92; letter-spacing: -.07em; }
.entry-card p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.retry-check { margin-top: 24px; width: 100%; justify-content: center; display: flex; }

.interstitial-ad {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(12px);
}
.interstitial-shell {
  width: min(100%, 1060px);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.interstitial-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--soft); font-weight: 900; }
.interstitial-zone { width: 100%; min-height: min(60vh, 600px); }
.interstitial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
#interstitial-close { cursor: wait; position: relative; z-index: 3; }
#interstitial-close.is-ready { cursor: pointer; color: var(--text); border-color: rgba(255,255,255,.25); }
.is-hidden-hard { display: none !important; visibility: hidden !important; pointer-events: none !important; }

.auth-page { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.auth-wrap { width: min(100%, 640px); }
.auth-card { padding: 34px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); }
.auth-brand { margin-bottom: 28px; }
.auth-brand small { display: block; color: var(--soft); font-size: 12px; font-weight: 700; letter-spacing: 0; }
.auth-card h1 { margin: 0 0 14px; font-size: clamp(38px, 8vw, 58px); line-height: .95; letter-spacing: -.07em; }
.auth-card p { color: var(--muted); line-height: 1.55; }
.auth-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
code { color: #ffd1f5; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1500px) { .ad-rail { display: none; } }
@media (max-width: 1100px) {
  .home-layout { grid-template-columns: 1fr; }
  .feed-ads { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feed-ads .rectangle { width: 100%; }
  .executor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-panel { grid-template-columns: 1fr; padding: 28px; }
  .script-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .nav { align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 18px; right: 18px; top: 82px; flex-direction: column; align-items: stretch; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
  .nav-links.is-open { display: flex; }
  .script-grid, .feed-ads, .executor-grid, .interstitial-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
  .video-title { left: 18px; right: 18px; bottom: 18px; }
  .entry-card { padding: 28px; }
}

.live-native {
  background: rgba(10, 11, 19, .92);
  padding: 0;
}
.live-native::before { z-index: 3; }
.live-native iframe,
.live-native div[id^="container-"] {
  max-width: 100%;
}
.smartlink-slot { cursor: pointer; }
.smartlink-slot:hover {
  border-color: rgba(255, 22, 199, .45);
  box-shadow: 0 0 26px rgba(255, 22, 199, .12);
}
.smartlink-slot::after {
  content: "Sponsored link";
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: rgba(255,255,255,.55);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}


/* Smartlink fallback creatives for non-banner slots */
.smartlink-slot { isolation: isolate; }
.sponsor-creative {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 18px;
  color: #fff;
  text-decoration: none;
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 22, 199, .38), transparent 31%),
    radial-gradient(circle at 86% 82%, rgba(46, 232, 255, .22), transparent 34%),
    linear-gradient(135deg, rgba(255, 22, 199, .24), rgba(46, 232, 255, .11));
}
.sponsor-creative::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.045), rgba(255,255,255,.045) 8px, transparent 8px, transparent 16px);
}
.sponsor-creative::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 0;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
}
.sponsor-creative > * { position: relative; z-index: 1; }
.sponsor-kicker {
  position: absolute;
  left: 12px;
  top: 10px;
  color: #aebbee;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sponsor-creative strong {
  max-width: 92%;
  text-align: center;
  font-size: clamp(18px, 2.4vw, 30px);
  line-height: .98;
  letter-spacing: -.05em;
  text-shadow: 0 3px 0 rgba(0,0,0,.35);
}
.sponsor-creative em {
  font-style: normal;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 800;
}
.sponsor-creative b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 15px;
  border-radius: 9px;
  background: linear-gradient(135deg, #ff16c7, #7c1dff);
  box-shadow: 0 10px 24px rgba(255, 22, 199, .22);
  font-size: 13px;
  font-weight: 950;
}
.skyscraper .sponsor-creative strong { font-size: 25px; }
.skyscraper .sponsor-creative { gap: 14px; }
.rectangle .sponsor-creative strong { font-size: 24px; }
.small .sponsor-creative { padding: 12px; gap: 5px; }
.small .sponsor-creative strong { font-size: 16px; }
.small .sponsor-creative em { display: none; }
.in-feed .sponsor-creative strong { font-size: 24px; }
.leaderboard.smartlink-slot .sponsor-creative { flex-direction: row; gap: 16px; }
.leaderboard.smartlink-slot .sponsor-creative strong { font-size: 24px; }
.leaderboard.smartlink-slot .sponsor-creative em { display: none; }
.interstitial-zone .sponsor-creative strong { font-size: clamp(36px, 7vw, 72px); max-width: 720px; }
.interstitial-zone .sponsor-creative b { min-height: 44px; padding: 0 22px; font-size: 16px; }
.executor-ad-card { min-height: 360px; padding: 0; overflow: hidden; }
.executor-ad-card .rectangle { width: 100%; height: 100%; min-height: 360px; border: 0; border-radius: 0; }
.feed-ad-card { grid-column: span 2; min-height: 140px; }
.feed-ad-card .in-feed { width: 100%; min-height: 140px; }
@media (max-width: 860px) { .feed-ad-card { grid-column: span 1; } }


/* Clean production layout overrides */
.page-shell { width: min(100%, 1140px); }
.site-header { padding: 14px 0 10px; }
.nav { min-height: 56px; }
.top-native-ad { padding: 14px 0 6px; }
.top-ad { padding: 8px 0 18px; }
.hero-panel { min-height: 210px; padding: 36px; margin-top: 4px; }
.compact-hero { margin-top: 8px; }
.home-layout { display: block; }
.main-feed { width: 100%; }
.script-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feed-ads {
  position: static;
  display: grid;
  grid-template-columns: repeat(2, minmax(250px, 300px));
  justify-content: center;
  gap: 18px;
  margin: 28px auto 8px;
}
.feed-ads .rectangle { width: 100%; max-width: 300px; }
.ad-rail { top: 116px; opacity: .88; }
.ad-rail-left { left: max(22px, calc(50% - 570px - 195px)); }
.ad-rail-right { right: max(22px, calc(50% - 570px - 195px)); }
.ad-slot { box-shadow: inset 0 0 0 1px rgba(255,255,255,.025); }
.smartlink-slot { background: rgba(15,16,25,.88); }
.smartlink-slot::after { opacity: .72; }
.sponsor-kicker { display: none; }
.sponsor-creative {
  gap: 8px;
  background:
    radial-gradient(circle at 26% 24%, rgba(255, 22, 199, .25), transparent 32%),
    radial-gradient(circle at 86% 84%, rgba(46, 232, 255, .16), transparent 36%),
    linear-gradient(135deg, rgba(255, 22, 199, .18), rgba(46, 232, 255, .08));
}
.sponsor-creative strong {
  font-size: clamp(18px, 1.8vw, 24px);
  letter-spacing: -.04em;
  text-shadow: 0 2px 0 rgba(0,0,0,.32);
}
.sponsor-creative em { color: rgba(255,255,255,.58); }
.sponsor-creative b { min-height: 32px; padding: 0 14px; }
.skyscraper .sponsor-creative strong { font-size: 22px; }
.rectangle .sponsor-creative strong { font-size: 21px; }
.leaderboard.smartlink-slot .sponsor-creative strong { font-size: 22px; }
.feed-ad-card, .executor-ad-card { display: none; }
.executor-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.executor-card { min-height: 100%; }
.executor-cover { min-height: 155px; }

@media (max-width: 1750px) { .ad-rail { display: none; } }
@media (max-width: 1100px) {
  .script-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feed-ads { grid-template-columns: repeat(2, minmax(0, 300px)); }
  .executor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .script-grid, .feed-ads, .executor-grid { grid-template-columns: 1fr; }
  .hero-panel { padding: 26px; }
}

.video-play.disabled {
  cursor: default;
  pointer-events: none;
  font-size: 18px;
  letter-spacing: -0.04em;
}

.empty-card {
  grid-column: 1 / -1;
  min-height: 180px;
}

/* Real Adsterra size integrations */
.compact-ad { display: grid; place-items: center; margin: 12px 0 4px; }
.compact-banner { width: min(100%, 468px); height: 60px; min-height: 60px; }
.mobile-ad-row { display: none; place-items: center; margin: 18px 0; }
.mobile-banner { width: min(100%, 320px); height: 50px; min-height: 50px; }
.half-skyscraper { width: 160px; height: 300px; min-height: 300px; justify-self: center; }
.live-banner > iframe { max-width: 100%; }
.live-banner:not(.smartlink-slot) { background: rgba(8,9,16,.92); }
.live-banner:not(.smartlink-slot)::before { z-index: 2; opacity: .72; }
@media (max-width: 760px) {
  .mobile-ad-row { display: grid; }
  .compact-ad { display: none; }
}
