/* ═══════════════════════════════════════════════════════════════
   SHAHDNI — Black & Gold · Flat · Fast
   No blur · No backdrop-filter · No grain · No orb animations
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #000;
  --surface: #0a0a0a;
  --surface-2: #121212;
  --surface-3: #1a1a1a;
  --surface-4: #222;

  --gold: #d4af37;
  --gold-hi: #f0c952;
  --gold-lo: #a8842a;

  --text: #f5f5f5;
  --text-2: #b8b8b8;
  --text-3: #808080;

  --line: rgba(255, 255, 255, .06);
  --line-hi: rgba(255, 255, 255, .12);

  --gut: 16px;
  --pw: 128px;
  --gap: 12px;
  --dock-h: 64px;
}

/* ═══ Reset ═══ */
*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #000;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'IBM Plex Sans Arabic', Tahoma, sans-serif;
  font-display: swap;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

button,
input {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
}

button {
  cursor: pointer;
}

button:disabled {
  opacity: .42;
  cursor: not-allowed;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  flex-shrink: 0;
}

input {
  min-width: 0;
  caret-color: var(--gold);
}

input::placeholder {
  color: var(--text-3);
}

::selection {
  background: var(--gold);
  color: #000;
}

::-webkit-scrollbar {
  width: 4px;
  height: 0;
}

::-webkit-scrollbar-thumb {
  background: var(--surface-4);
  border-radius: 4px;
}

/* ═══ Scroll progress — thin gold line ═══ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform-origin: right;
  transform: scaleX(0);
  z-index: 500;
  pointer-events: none;
}

/* ═══ Top Bar — flat, no blur ═══ */
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px var(--gut);
  background: #000;
  border-bottom: 1px solid transparent;
}

.top.scrolled {
  border-bottom-color: var(--line);
}

.iconbtn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--text-2);
}

.iconbtn:active {
  background: var(--surface-2);
}

.iconbtn svg {
  width: 20px;
  height: 20px;
}

.brand {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold);
  user-select: none;
}

.top-tools {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* ═══ Main view ═══ */
#view {
  max-width: 1220px;
  margin: 0 auto;
  padding: 56px 0 calc(var(--dock-h) + 16px + env(safe-area-inset-bottom, 0px));
}

/* ═══ Boot loading — tiny spinner ═══ */
.boot-loading {
  display: grid;
  place-items: center;
  padding: 80px 20px;
  min-height: 40vh;
}

.boot-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--surface-3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: bootSpin .8s linear infinite;
}

@keyframes bootSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ═══ Hero ═══ */
.hero-wrap {
  position: relative;
}

.hero-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.hero-track::-webkit-scrollbar {
  display: none;
}

.hero-track>.hero {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 12px;
}

.hero-dot {
  width: 24px;
  height: 28px;
  display: grid;
  place-items: center;
  background: none;
}

.hero-dot::before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--surface-4);
}

.hero-dot.on::before {
  width: 20px;
  border-radius: 3px;
  background: var(--gold);
}

.hero {
  position: relative;
  min-height: 380px;
  color: var(--text);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, .75) 35%, rgba(0, 0, 0, .15) 72%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 50px var(--gut) 26px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
}

.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.hero h1 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  margin: 0;
  max-width: 20ch;
  overflow-wrap: anywhere;
  color: #fff;
  letter-spacing: -.3px;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  margin-top: 4px;
  color: var(--text-2);
}

.hero-meta .score {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--gold);
  font-weight: 700;
}

.hero-meta .score svg {
  width: 12px;
  height: 12px;
}

.hero-meta .dot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-3);
}

.hero-meta .fact {
  color: var(--text-2);
}

.hero .cta {
  margin-top: 16px;
  display: flex;
  gap: 8px;
}

.hero .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--gold);
  color: #000;
  font-size: 14px;
  font-weight: 700;
}

.hero .btn:active {
  background: var(--gold-hi);
}

.hero .btn svg {
  width: 14px;
  height: 14px;
}

/* ═══ Library head ═══ */
.library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px var(--gut) 10px;
}

.library-head h1 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
  margin: 0;
}

.library-head p {
  margin: 2px 0 0;
  color: var(--text-3);
  font-size: 12px;
}

/* ═══ Rows ═══ */
.row {
  margin-top: 22px;
}

.row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 var(--gut) 10px;
}

.row-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.row-head h2::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--gold);
  border-radius: 2px;
  flex-shrink: 0;
}

.row-all {
  color: var(--text-3);
  font-size: 12px;
  font-weight: 500;
  min-width: 40px;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 6px;
}

.row-all:active {
  color: var(--gold);
}

.strip {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  padding: 2px var(--gut) 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  scroll-padding-inline-start: var(--gut);
  align-items: flex-start;
  -webkit-overflow-scrolling: touch;
}

.strip::-webkit-scrollbar {
  display: none;
}

/* ═══ Cards ═══ */
.card {
  flex: 0 0 auto;
  width: var(--pw);
  scroll-snap-align: start;
  text-align: start;
  min-width: 0;
  display: block;
  color: var(--text);
}

.card:active {
  opacity: .85;
}

.art {
  display: block;
  position: relative;
  aspect-ratio: 2 / 3;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.art .ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 36px;
  font-weight: 900;
  color: rgba(255, 255, 255, .08);
  letter-spacing: 1px;
}

.art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transition: opacity .3s ease;
  will-change: opacity;
}

.art img.loaded {
  opacity: 1;
}

.card h3 {
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
  margin: 8px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  min-height: 2.7em;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 3px;
  font-size: 11px;
  color: var(--text-3);
}

.card-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--gold);
  font-weight: 600;
}

.card-rating svg {
  width: 10px;
  height: 10px;
}

.q {
  position: absolute;
  bottom: 6px;
  left: 6px;
  z-index: 3;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .85);
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, .4);
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
}

.tags {
  position: absolute;
  top: 6px;
  right: 6px;
  left: 6px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  pointer-events: none;
}

.tags .kind {
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .85);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  border: 1px solid rgba(255, 255, 255, .15);
}

.tags .kind.movie {
  background: var(--gold);
  color: #000;
  border-color: transparent;
}

.tags .kind.series {
  background: var(--surface-4);
  color: var(--gold);
  border-color: var(--gold);
}

/* ═══ Grid ═══ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--pw), 1fr));
  gap: 16px var(--gap);
  padding: 12px var(--gut) 0;
}

.grid .card {
  width: 100%;
}

.grid-end {
  min-height: 1px;
  padding: 12px;
}

.page-head {
  padding: 20px var(--gut) 0;
}

.page-head h1 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
  margin: 0;
}

.page-head p {
  margin: 4px 0 0;
  color: var(--text-3);
  font-size: 12px;
}

/* Skeleton — static, no animation */
.card.skeleton {
  pointer-events: none;
}

.card.skeleton .art,
.card.skeleton .sk-line {
  background: var(--surface-2);
}

.card.skeleton .art {
  display: block;
  aspect-ratio: 2 / 3;
  width: 100%;
  border-radius: 8px;
}

.card.skeleton .sk-line {
  display: block;
  height: 10px;
  margin-top: 8px;
  border-radius: 3px;
}

.card.skeleton .sk-line.short {
  width: 55%;
}

/* ═══ Work Detail ═══ */
.work-top {
  padding: 20px var(--gut) 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.work-in {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.work-poster {
  position: relative;
  width: 110px;
  aspect-ratio: 2 / 3;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-3);
  border: 1px solid var(--line-hi);
}

.work-poster .ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 900;
  color: rgba(255, 255, 255, .12);
}

.work-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.work-info {
  min-width: 0;
  flex: 1;
  padding-top: 2px;
}

.work-info h1 {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 800;
  margin: 0;
  overflow-wrap: anywhere;
}

.work-info .arabic-title {
  font-size: 12.5px;
  color: var(--text-3);
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.work-info .meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-3);
}

.work-info .score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gold);
  font-weight: 700;
}

.work-info .score svg {
  width: 12px;
  height: 12px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.chip {
  font-size: 11px;
  color: var(--text-2);
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.work-story {
  padding: 0 var(--gut);
}

.work-story p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-2);
  max-width: 70ch;
  margin: 18px 0 0;
}

.sec {
  padding: 0 var(--gut);
  margin-top: 22px;
}

.sec h2 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sec h2::before {
  content: '';
  width: 3px;
  height: 13px;
  background: var(--gold);
  border-radius: 2px;
  flex-shrink: 0;
}

.sec h2 small {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-3);
  margin-inline-start: 4px;
}

.opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.opt {
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 500;
}

.opt:active {
  background: var(--surface-3);
}

.opt.on {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
  font-weight: 700;
}

.eps {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ep {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: start;
  min-height: 52px;
  padding: 8px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
}

.ep:active {
  background: var(--surface-3);
}

.ep .n {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(212, 175, 55, .12);
  border: 1px solid rgba(212, 175, 55, .3);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
}

.ep .t {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-actions {
  padding: 16px var(--gut) 0;
}

.watch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  background: var(--gold);
  color: #000;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: .2px;
}

.watch-btn:active {
  background: var(--gold-hi);
}

.watch-btn:disabled {
  opacity: .55;
  cursor: wait;
}

.watch-btn svg {
  width: 16px;
  height: 16px;
}

/* ═══ Search ═══ */
.search-bar {
  padding: 12px var(--gut) 0;
}

.search-in {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.search-in:focus-within {
  border-color: var(--gold);
}

.search-in svg {
  width: 18px;
  height: 18px;
  color: var(--text-3);
  flex-shrink: 0;
}

.search-in input {
  width: 100%;
  outline: none;
  font-size: 14.5px;
  color: var(--text);
  background: none;
  border: none;
}

/* ═══ Filter form ═══ */
.filter-form {
  padding: 12px var(--gut) 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-search {
  width: 100%;
}

.filter-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-field>span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  padding-inline-start: 2px;
}

.filter-field select {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.filter-field select:focus {
  outline: none;
  border-color: var(--gold);
}

.filter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.text-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-3);
  padding: 6px;
  border-radius: 6px;
}

.text-action:active {
  color: var(--gold);
}

.text-action svg {
  width: 13px;
  height: 13px;
}

.filter-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--gold);
  color: #000;
  font-size: 13px;
  font-weight: 700;
}

.filter-actions .btn:active {
  background: var(--gold-hi);
}

.filter-actions .btn svg {
  width: 13px;
  height: 13px;
}

.filter-result-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 20px var(--gut) 4px;
  flex-wrap: wrap;
}

.filter-result-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.filter-result-head p {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
}

/* ═══ Dock — flat, no blur ═══ */
.dock {
  position: fixed;
  z-index: 50;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  height: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #000;
  border-top: 1px solid var(--line);
}

.slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  color: var(--text-3);
}

.slot svg {
  width: 20px;
  height: 20px;
}

.slot b {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
}

.slot.on {
  color: var(--text);
}

.slot.on b {
  font-weight: 700;
  color: var(--gold);
}

.slot.home {
  gap: 2px;
}

.orb {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text);
  margin-top: -6px;
  border: 1px solid var(--line);
}

.orb svg {
  width: 15px;
  height: 15px;
}

.slot.on .orb {
  background: var(--gold);
  color: #000;
  border-color: transparent;
}

/* ═══ Empty & Toast ═══ */
.empty {
  padding: 40px var(--gut);
  text-align: center;
  color: var(--text-3);
  font-size: 13.5px;
  line-height: 1.9;
}

.empty b {
  display: block;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 6px;
}

#toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: calc(var(--dock-h) + 16px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 10px);
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 10px 18px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--gold);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  text-align: center;
}

#toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ═══ Responsive ═══ */
@media (min-width: 600px) {
  :root {
    --gut: 24px;
    --pw: 148px;
    --gap: 14px;
    --dock-h: 68px;
  }

  .library-head h1 {
    font-size: 24px
  }

  .hero h1 {
    font-size: 36px
  }

  .hero-inner {
    padding: 70px var(--gut) 34px
  }

  .hero,
  .hero-inner {
    min-height: 440px
  }

  .filter-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .work-poster {
    width: 130px
  }

  .work-info h1 {
    font-size: 22px
  }
}

@media (min-width: 960px) {
  :root {
    --gut: 32px;
    --pw: 160px;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px 16px;
  }

  .filter-fields {
    grid-template-columns: repeat(4, minmax(0, 1fr))
  }

  .work-poster {
    width: 150px
  }

  .hero h1 {
    font-size: 42px
  }

  .hero,
  .hero-inner {
    min-height: 480px
  }
}

@media (max-width: 360px) {
  :root {
    --gut: 12px;
    --pw: 118px;
    --gap: 10px;
  }

  .work-poster {
    width: 96px
  }

  .work-in {
    gap: 12px
  }

  .work-info h1 {
    font-size: 18px
  }

  .hero h1 {
    font-size: 24px
  }

  .filter-fields {
    grid-template-columns: 1fr
  }
}

/* ═══ Reduced motion ═══ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   ADS OVERLAY — يضاف في آخر style.css
   ═══════════════════════════════════════════════════════════ */
.ad-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gut);
  background: rgba(0, 0, 0, .92);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s;
}

.ad-overlay.on {
  opacity: 1;
  visibility: visible;
}

.ad-panel {
  width: 100%;
  max-width: 460px;
  background: var(--surface-2);
  border: 1px solid var(--line-hi);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}

.ad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-3);
}

.ad-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(212, 175, 55, .15);
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .3px;
}

.ad-timer {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  min-width: 40px;
  text-align: center;
}

.ad-body {
  padding: 32px 24px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ad-demo-icon {
  font-size: 48px;
  margin-bottom: 12px;
  line-height: 1;
}

.ad-demo h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.ad-demo p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-2);
}

.ad-footer {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ad-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 10px;
  background: var(--gold);
  color: #000;
  font-size: 14px;
  font-weight: 800;
  transition: background .15s;
}

.ad-cta:active {
  background: var(--gold-hi);
}

.ad-cta:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.ad-skip {
  padding: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-3);
  background: none;
  text-align: center;
}

.ad-skip:active {
  color: var(--gold);
}

.ad-real {
  width: 100%;
  min-height: 200px;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  border-radius: 8px;
  color: var(--text-3);
  font-size: 13px;
}