/* ============================================================
   ORBIT PLAY — Components
   5 card systems + orbital planets + overlays + ad containers
   ============================================================ */

/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */
.op-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--op-pill);
  font-family: var(--op-font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s var(--op-ease), background 0.22s, border-color 0.22s, box-shadow 0.25s;
  white-space: nowrap;
}

.op-btn:active { transform: scale(0.975); }

.op-btn--primary {
  background: linear-gradient(96deg, var(--op-blue-deep), var(--op-purple-deep));
  color: #fff;
  box-shadow: 0 12px 30px -14px rgba(91, 140, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.op-btn--primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 18px 40px -16px rgba(112, 64, 216, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.op-btn--ghost {
  background: rgba(23, 35, 59, 0.6);
  border-color: var(--op-line);
  color: var(--op-ink-soft);
}
.op-btn--ghost:hover {
  border-color: var(--op-line-strong);
  color: var(--op-ink);
  background: rgba(29, 43, 71, 0.85);
}

.op-btn--cyan {
  background: linear-gradient(96deg, var(--op-cyan-deep), var(--op-cyan));
  color: #04121a;
  box-shadow: 0 12px 30px -16px rgba(67, 230, 210, 0.9);
}
.op-btn--cyan:hover { transform: translateY(-1.5px); }

.op-btn--sm { padding: 9px 15px; font-size: 12px; }
.op-btn--lg { padding: 16px 30px; font-size: 14.5px; }

.op-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ============================================================
   CARD SYSTEM A — PLANET FEATURED (≈2:1 cinematic landscape)
   ============================================================ */
.op-card-planet {
  position: relative;
  display: block;
  aspect-ratio: 2 / 1;
  min-height: 320px;
  overflow: clip;
  color: var(--op-ink);
  isolation: isolate;
}

.op-card-planet__art {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.op-card-planet__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.9s var(--op-ease), filter 0.6s;
  filter: saturate(1.06) contrast(1.04);
}
.op-card-planet:hover .op-card-planet__art img {
  transform: scale(1.085);
  filter: saturate(1.18) contrast(1.06);
}

/* Layered cosmic wash — deep navy → transparent, plus spectrum glow */
.op-card-planet__wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(178deg, rgba(8, 13, 27, 0.1) 0%, rgba(8, 13, 27, 0.42) 44%, rgba(8, 13, 27, 0.94) 88%),
    linear-gradient(96deg, rgba(8, 13, 27, 0.9) 0%, rgba(8, 13, 27, 0.45) 42%, transparent 74%);
}

.op-card-planet__glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 18%, rgba(168, 121, 255, 0.36), transparent 46%),
    radial-gradient(circle at 16% 88%, rgba(67, 230, 210, 0.18), transparent 48%);
  mix-blend-mode: screen;
}

.op-card-planet__body {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--op-s3);
  padding: clamp(24px, 4vw, 52px);
  max-width: 62ch;
}

.op-card-planet__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--op-s2);
}

.op-card-planet__title {
  font-size: clamp(1.7rem, 4.2vw, 3.15rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.65);
}

.op-card-planet__desc {
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.62;
  color: rgba(224, 231, 246, 0.86);
  max-width: 48ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.op-card-planet__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--op-s3);
  margin-top: var(--op-s2);
}

.op-card-planet__cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: var(--op-pill);
  background: #fff;
  color: #0b1222;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.22s var(--op-ease), box-shadow 0.25s;
}
.op-card-planet:hover .op-card-planet__cta {
  transform: translateX(2px);
  box-shadow: 0 12px 30px -12px rgba(255, 255, 255, 0.6);
}
.op-card-planet__cta svg { width: 14px; height: 14px; }

.op-card-planet__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--op-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(195, 206, 230, 0.72);
}
.op-card-planet__meta b { color: #fff; font-weight: 600; }

/* ============================================================
   CARD SYSTEM B — ORBITAL CATEGORY (circular planet + rings)
   ============================================================ */
.op-orb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--op-s4);
  padding: var(--op-s5) var(--op-s3) var(--op-s4);
  border-radius: var(--op-radius-lg);
  border: 1px solid transparent;
  color: var(--op-ink);
  text-align: center;
  transition: border-color 0.28s, background 0.28s, transform 0.3s var(--op-ease);
  --orb-a: var(--op-blue);
  --orb-b: var(--op-purple);
}

.op-orb:hover {
  border-color: var(--op-line-strong);
  background: rgba(23, 35, 59, 0.5);
  transform: translateY(-4px);
}

.op-orb__stage {
  position: relative;
  width: clamp(104px, 11vw, 138px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* The planet */
.op-orb__planet {
  position: relative;
  width: 64%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.5), transparent 34%),
    radial-gradient(circle at 66% 72%, rgba(8, 13, 27, 0.55), transparent 58%),
    linear-gradient(148deg, var(--orb-a), var(--orb-b) 74%);
  box-shadow:
    inset -10px -12px 24px rgba(8, 13, 27, 0.55),
    inset 6px 8px 18px rgba(255, 255, 255, 0.16),
    0 0 34px -6px var(--orb-a);
  z-index: 2;
  transition: transform 0.5s var(--op-ease), box-shadow 0.5s;
}

.op-orb:hover .op-orb__planet {
  transform: scale(1.055);
  box-shadow:
    inset -10px -12px 24px rgba(8, 13, 27, 0.5),
    inset 6px 8px 18px rgba(255, 255, 255, 0.2),
    0 0 52px -4px var(--orb-a);
}

/* Surface banding, clipped to the sphere */
.op-orb__planet::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    linear-gradient(174deg, transparent 26%, rgba(8, 13, 27, 0.22) 28%, rgba(8, 13, 27, 0.22) 36%, transparent 38%),
    linear-gradient(174deg, transparent 56%, rgba(255, 255, 255, 0.11) 58%, rgba(255, 255, 255, 0.11) 63%, transparent 65%);
  overflow: hidden;
}

/* Orbit rings — SVG-free, two rotated ellipses */
.op-orb__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(137, 152, 181, 0.26);
  z-index: 1;
}
.op-orb__ring--a {
  transform: rotateX(74deg) rotate(-16deg);
}
.op-orb__ring--b {
  transform: rotateX(74deg) rotate(26deg);
  border-color: rgba(137, 152, 181, 0.14);
}

/* Travelling satellite */
.op-orb__moon {
  position: absolute;
  inset: 0;
  z-index: 3;
  animation: op-orbit 13s linear infinite;
  animation-play-state: paused;
}
.op-orb:hover .op-orb__moon { animation-play-state: running; }

.op-orb__moon::before {
  content: '';
  position: absolute;
  top: 4%;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--op-ink);
  box-shadow: 0 0 10px 1px var(--orb-b), 0 0 22px 3px rgba(168, 121, 255, 0.5);
}

@keyframes op-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.op-orb__label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  width: 100%;
}

.op-orb__name {
  font-family: var(--op-font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--op-ink);
  overflow: hidden;
  text-overflow: ellipsis;
}

.op-orb__sub {
  font-family: var(--op-font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--op-faint);
  white-space: nowrap;
}

.op-orb__enter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--orb-b);
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.25s, transform 0.25s var(--op-ease);
}
.op-orb:hover .op-orb__enter,
.op-orb:focus-visible .op-orb__enter {
  opacity: 1;
  transform: translateY(0);
}
.op-orb__enter svg { width: 11px; height: 11px; }

/* ============================================================
   CARD SYSTEM C — CINEMATIC GAME (16:9, lower-third title)
   ============================================================ */
.op-cine {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: clip;
  border-radius: var(--op-radius);
  border: 1px solid var(--op-line);
  background: var(--op-card);
  color: var(--op-ink);
  isolation: isolate;
  transition: border-color 0.28s, transform 0.32s var(--op-ease), box-shadow 0.32s;
}

.op-cine:hover {
  border-color: rgba(91, 140, 255, 0.46);
  transform: translateY(-3px);
  box-shadow: 0 24px 54px -26px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(91, 140, 255, 0.12);
}

.op-cine__art {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.op-cine__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--op-ease);
  filter: saturate(1.02);
}
.op-cine:hover .op-cine__art img { transform: scale(1.06); }

.op-cine__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 32%, rgba(8, 13, 27, 0.72) 78%, rgba(8, 13, 27, 0.95) 100%);
}

/* Localized light — blue or purple, set per card */
.op-cine__light {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.38s;
  background: radial-gradient(circle at 24% 100%, var(--cine-glow, rgba(91, 140, 255, 0.42)), transparent 62%);
  mix-blend-mode: screen;
}
.op-cine:hover .op-cine__light { opacity: 1; }

.op-cine__body {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: clamp(13px, 1.9vw, 19px);
}

.op-cine__cat {
  font-family: var(--op-font-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--op-cyan);
}

.op-cine__title {
  font-family: var(--op-font-display);
  font-size: clamp(13.5px, 1.35vw, 16.5px);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.op-cine__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--op-font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(195, 206, 230, 0.66);
}

.op-cine__score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--op-amber);
}
.op-cine__score svg { width: 10px; height: 10px; }

/* Play affordance */
.op-cine__play {
  position: absolute;
  z-index: 4;
  top: clamp(11px, 1.5vw, 15px);
  right: clamp(11px, 1.5vw, 15px);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(8, 13, 27, 0.55);
  border: 1px solid rgba(241, 245, 255, 0.22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.26s, transform 0.26s var(--op-ease), background 0.26s;
}
.op-cine__play svg { width: 13px; height: 13px; margin-left: 1px; }
.op-cine:hover .op-cine__play,
.op-cine:focus-visible .op-cine__play { opacity: 1; transform: scale(1); }

/* Variant: horizontal row card used by the trending rail */
.op-cine--row {
  aspect-ratio: auto;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: var(--op-s3);
  align-items: center;
  padding: 11px;
  min-height: 96px;
}

.op-cine--row .op-cine__thumb {
  position: relative;
  width: 88px;
  height: 74px;
  border-radius: var(--op-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.op-cine--row .op-cine__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--op-ease);
}
.op-cine--row:hover .op-cine__thumb img { transform: scale(1.08); }

.op-cine--row .op-cine__rank {
  position: absolute;
  left: 7px;
  bottom: 6px;
  font-family: var(--op-font-display);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
  line-height: 1;
}

.op-cine--row .op-cine__info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding-right: 6px;
}

.op-cine--row .op-cine__title {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13.5px;
}

.op-cine--row .op-cine__arrow {
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: var(--op-faint);
  transition: color 0.2s, transform 0.25s var(--op-ease);
}
.op-cine--row:hover .op-cine__arrow { color: var(--op-cyan); transform: translateX(2px); }
.op-cine--row .op-cine__arrow svg { width: 13px; height: 13px; }

/* ============================================================
   CARD SYSTEM D — DISCOVERY LIST (compact horizontal thumbnail)
   ============================================================ */
.op-disc-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--op-s3);
  padding: 9px 12px 9px 9px;
  border-radius: var(--op-radius-sm);
  border: 1px solid transparent;
  color: var(--op-ink);
  transition: background 0.22s, border-color 0.22s;
}

.op-disc-row:hover {
  background: rgba(23, 35, 59, 0.72);
  border-color: var(--op-line);
}

.op-disc-row__thumb {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: var(--op-radius-xs);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--op-line);
}
.op-disc-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--op-ease);
}
.op-disc-row:hover .op-disc-row__thumb img { transform: scale(1.09); }

.op-disc-row__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.op-disc-row__title {
  font-family: var(--op-font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.op-disc-row__cat {
  font-family: var(--op-font-mono);
  font-size: 8.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--op-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.op-disc-row__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--op-cyan);
  opacity: 0;
  transition: opacity 0.22s;
  flex-shrink: 0;
}
.op-disc-row:hover .op-disc-row__dot { opacity: 1; }

/* ============================================================
   CARD SYSTEM E — GALAXY MOSAIC (asymmetric mixed sizes)
   ============================================================ */
.op-mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 92px;
  gap: var(--op-s3);
}

.op-mosaic__cell {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--op-radius);
  border: 1px solid var(--op-line);
  background: var(--op-card);
  isolation: isolate;
  transition: border-color 0.28s, box-shadow 0.3s;
}

.op-mosaic__cell:hover {
  border-color: rgba(168, 121, 255, 0.4);
  box-shadow: 0 20px 46px -26px rgba(0, 0, 0, 0.95);
}

/* Asymmetric placement */
.op-mosaic__cell--hero { grid-column: span 6; grid-row: span 4; }
.op-mosaic__cell--wide { grid-column: span 6; grid-row: span 2; }
.op-mosaic__cell--tall { grid-column: span 3; grid-row: span 4; }
.op-mosaic__cell--std  { grid-column: span 3; grid-row: span 2; }
.op-mosaic__cell--mini { grid-column: span 3; grid-row: span 2; }

.op-mosaic__art {
  position: absolute;
  inset: 0;
}
.op-mosaic__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--op-ease), filter 0.5s;
  filter: saturate(1.02) brightness(0.94);
}
.op-mosaic__cell:hover .op-mosaic__art img {
  transform: scale(1.06);
  filter: saturate(1.16) brightness(1);
}

.op-mosaic__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(178deg, transparent 34%, rgba(8, 13, 27, 0.72) 74%, rgba(8, 13, 27, 0.95) 100%);
}

.op-mosaic__body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 13px 15px;
}

.op-mosaic__cell--hero .op-mosaic__body { padding: clamp(18px, 2.4vw, 28px); gap: 9px; }

.op-mosaic__cat {
  font-family: var(--op-font-mono);
  font-size: 8.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--op-cyan);
}

.op-mosaic__title {
  font-family: var(--op-font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.22;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.op-mosaic__cell--hero .op-mosaic__title {
  font-size: clamp(1.15rem, 2.1vw, 1.6rem);
  letter-spacing: -0.025em;
  -webkit-line-clamp: 3;
}

.op-mosaic__cell--mini .op-mosaic__body { padding: 10px 12px; }
.op-mosaic__cell--mini .op-mosaic__title { font-size: 11.5px; -webkit-line-clamp: 1; }

.op-mosaic__chip {
  position: absolute;
  z-index: 2;
  top: 11px;
  left: 11px;
  padding: 4px 8px;
  border-radius: var(--op-pill);
  background: rgba(8, 13, 27, 0.6);
  border: 1px solid rgba(241, 245, 255, 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--op-font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--op-ink-soft);
}

/* ============================================================
   WORLD TILE — popular worlds band
   ============================================================ */
.op-world {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 188px;
  padding: var(--op-s4);
  border-radius: var(--op-radius-lg);
  overflow: clip;
  isolation: isolate;
  color: var(--op-ink);
  border: 1px solid var(--op-line);
  background: var(--op-deep);
  transition: border-color 0.28s, transform 0.32s var(--op-ease);
  --world-a: var(--op-blue);
  --world-b: var(--op-purple);
}

.op-world:hover {
  transform: translateY(-4px);
  border-color: var(--op-line-strong);
}

.op-world__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 76% 22%, var(--world-a), transparent 62%),
    radial-gradient(circle at 22% 84%, var(--world-b), transparent 66%),
    linear-gradient(168deg, #101827, #080d1b);
  opacity: 0.55;
  transition: opacity 0.4s, transform 0.6s var(--op-ease);
}
.op-world:hover .op-world__bg { opacity: 0.78; transform: scale(1.05); }

/* Planet arc rising from the tile base */
.op-world__arc {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: -46%;
  width: 118%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 18%, rgba(255, 255, 255, 0.4), transparent 36%),
    linear-gradient(168deg, var(--world-a), var(--world-b));
  box-shadow: inset 0 18px 44px rgba(8, 13, 27, 0.6), 0 -4px 44px -8px var(--world-a);
  opacity: 0.9;
  transition: bottom 0.6s var(--op-ease), opacity 0.4s;
}
.op-world:hover .op-world__arc { bottom: -40%; opacity: 1; }

.op-world__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(178deg, rgba(8, 13, 27, 0.12) 0%, rgba(8, 13, 27, 0.6) 58%, rgba(8, 13, 27, 0.94) 100%);
}

.op-world__body {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.op-world__kicker {
  font-family: var(--op-font-mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(195, 206, 230, 0.7);
  white-space: nowrap;
}

.op-world__name {
  font-family: var(--op-font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.024em;
  color: #fff;
  line-height: 1.1;
  text-wrap: balance;
}

.op-world__count {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--op-font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(195, 206, 230, 0.62);
  white-space: nowrap;
}
.op-world__count svg { width: 11px; height: 11px; flex-shrink: 0; }

.op-world__tagline {
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(195, 206, 230, 0.6);
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   NEW ARRIVAL TILE — portrait cover + scrim
   ============================================================ */
.op-newtile {
  position: relative;
  display: block;
  border-radius: var(--op-radius);
  overflow: clip;
  border: 1px solid var(--op-line);
  background: var(--op-card);
  isolation: isolate;
  aspect-ratio: 3 / 4;
  color: var(--op-ink);
  transition: border-color 0.26s, transform 0.3s var(--op-ease), box-shadow 0.3s;
}

.op-newtile:hover {
  border-color: rgba(67, 230, 210, 0.38);
  transform: translateY(-3px);
  box-shadow: 0 22px 48px -26px rgba(0, 0, 0, 0.95);
}

.op-newtile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--op-ease), filter 0.5s;
  filter: saturate(1.03);
}
.op-newtile:hover img { transform: scale(1.06); filter: saturate(1.16); }

.op-newtile__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(8, 13, 27, 0.62) 76%, rgba(8, 13, 27, 0.96) 100%);
}

.op-newtile__body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 13px;
}

.op-newtile__title {
  font-family: var(--op-font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.008em;
  line-height: 1.24;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.op-newtile__cat {
  font-family: var(--op-font-mono);
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--op-cyan);
}

.op-newtile__badge {
  position: absolute;
  z-index: 2;
  top: 9px;
  right: 9px;
  padding: 3px 7px;
  border-radius: var(--op-pill);
  background: rgba(67, 230, 210, 0.92);
  color: #04121a;
  font-family: var(--op-font-mono);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================================
   TAGS / PILLS
   ============================================================ */
.op-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--op-pill);
  border: 1px solid var(--op-line-strong);
  background: rgba(8, 13, 27, 0.5);
  font-family: var(--op-font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--op-ink-soft);
  white-space: nowrap;
}

.op-tag--live {
  border-color: rgba(67, 230, 210, 0.4);
  color: var(--op-cyan);
  background: rgba(67, 230, 210, 0.1);
}

.op-tag--live::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--op-cyan);
  box-shadow: 0 0 7px var(--op-cyan);
  animation: op-pulse 2.4s ease-in-out infinite;
}

.op-tag--planet {
  border-color: rgba(168, 121, 255, 0.42);
  color: #cbb0ff;
  background: rgba(168, 121, 255, 0.13);
}

@keyframes op-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ============================================================
   AD CONTAINERS — visually distinct from game cards
   ============================================================ */
.op-ad {
  position: relative;
  margin-block: clamp(22px, 3vw, 36px);
}

.op-ad__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--op-font-mono);
  font-size: 8.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--op-faint);
}

.op-ad__label::before,
.op-ad__label::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--op-line);
}
.op-ad__label::before { max-width: 26px; flex: 0 0 26px; }

.op-ad__slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 10px;
  border: 1px dashed rgba(137, 152, 181, 0.24);
  border-radius: var(--op-radius-sm);
  background:
    repeating-linear-gradient(-45deg,
      rgba(137, 152, 181, 0.028) 0 10px,
      transparent 10px 20px);
  overflow: hidden;
}

.op-ad__slot:empty::after {
  content: 'AD SPACE · 970 × 90';
  font-family: var(--op-font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(137, 152, 181, 0.42);
}

.op-ad--wide .op-ad__slot { min-height: 104px; }

@media (max-width: 720px) {
  /* Tighter top margin keeps the first ad inside the target band. */
  .op-ad { margin-block: 10px 18px; }
  .op-ad__slot { min-height: 78px; }
  .op-ad--wide .op-ad__slot { min-height: 78px; }
  .op-ad__slot:empty::after { content: 'AD SPACE · 320 × 100'; }
}

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.op-search {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(6, 10, 20, 0.86);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  animation: op-fade-in 0.22s var(--op-ease);
}

.op-search[hidden] { display: none; }

@keyframes op-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.op-search__panel {
  width: min(100%, 820px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--op-s4);
  max-height: 100%;
  min-height: 0;
}

.op-search__bar {
  display: flex;
  align-items: center;
  gap: var(--op-s3);
  padding: 6px 6px 6px 18px;
  border-radius: var(--op-radius);
  border: 1px solid var(--op-line-strong);
  background: rgba(23, 35, 59, 0.9);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.95);
}

.op-search__bar form { flex: 1; display: flex; min-width: 0; }

.op-search__bar input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 12px 0;
  font-size: 16px;
  color: var(--op-ink);
  outline: none;
  min-width: 0;
}
.op-search__bar input::placeholder { color: var(--op-faint); }

.op-search__icon { color: var(--op-muted); flex-shrink: 0; }
.op-search__icon svg { width: 18px; height: 18px; }

.op-search__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--op-s3);
  font-family: var(--op-font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--op-faint);
  padding-inline: 4px;
}

.op-search__results {
  overflow-y: auto;
  min-height: 0;
  padding-bottom: 8px;
  overscroll-behavior: contain;
}

.op-search__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: 10px;
}

.op-search__empty {
  padding: 44px 0;
  text-align: center;
  color: var(--op-faint);
  font-size: 13.5px;
}

/* ============================================================
   FAVORITES PANEL
   ============================================================ */
.op-fav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(4, 8, 16, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s, visibility 0.28s;
}
.op-fav-backdrop.is-visible { opacity: 1; visibility: visible; }

.op-fav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 160;
  width: min(100%, 400px);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--op-deep);
  border-left: 1px solid var(--op-line);
  box-shadow: -30px 0 80px -30px rgba(0, 0, 0, 1);
  transform: translateX(101%);
  visibility: hidden;
  transition: transform 0.36s var(--op-ease), visibility 0.36s;
}
.op-fav.is-open { transform: translateX(0); visibility: visible; }

.op-fav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--op-s3);
  padding: var(--op-s5);
  border-bottom: 1px solid var(--op-line);
  flex-shrink: 0;
}

.op-fav__head h2 {
  font-size: 16px;
  letter-spacing: -0.01em;
}

.op-fav__count {
  font-family: var(--op-font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--op-faint);
}

.op-fav__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--op-s4);
  min-height: 0;
  overscroll-behavior: contain;
}

.op-fav__list { display: grid; gap: 4px; }

.op-fav__empty {
  padding: 56px 20px;
  text-align: center;
  color: var(--op-faint);
  font-size: 13px;
  line-height: 1.7;
}

.op-fav__empty strong { display: block; color: var(--op-ink-soft); margin-bottom: 6px; font-size: 14px; }

/* ============================================================
   DRAWER (mobile menu)
   ============================================================ */
.op-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 170;
  background: rgba(4, 8, 16, 0.72);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.26s, visibility 0.26s;
}
.op-drawer-backdrop.is-visible { opacity: 1; visibility: visible; }

.op-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 180;
  width: min(100%, 340px);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: var(--op-s5);
  padding: var(--op-s5);
  padding-top: calc(var(--op-s5) + env(safe-area-inset-top, 0px));
  overflow-y: auto;
  background: linear-gradient(178deg, #131d31, var(--op-void));
  border-left: 1px solid var(--op-line);
  transform: translateX(101%);
  visibility: hidden;
  transition: transform 0.34s var(--op-ease), visibility 0.34s;
  overscroll-behavior: contain;
}
.op-drawer.is-open { transform: translateX(0); visibility: visible; }

.op-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--op-s3);
  padding-bottom: var(--op-s4);
  border-bottom: 1px solid var(--op-line);
}

.op-drawer__brand {
  font-family: var(--op-font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.op-drawer__section { display: flex; flex-direction: column; gap: 3px; }

.op-drawer__label {
  font-family: var(--op-font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--op-faint);
  margin-bottom: 7px;
}

.op-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border: 0;
  border-radius: var(--op-radius-sm);
  background: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--op-ink-soft);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.op-drawer__link:hover { background: rgba(241, 245, 255, 0.055); color: var(--op-ink); }
.op-drawer__link.is-active { color: var(--op-cyan); }
.op-drawer__link span:last-child { color: var(--op-faint); }

/* ============================================================
   CATEGORY PAGE
   ============================================================ */
.op-cat-hero {
  position: relative;
  padding: clamp(34px, 5vw, 60px) 0 clamp(26px, 3.4vw, 40px);
}

.op-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--op-font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--op-faint);
  margin-bottom: var(--op-s4);
}
.op-crumb a { color: var(--op-muted); }
.op-crumb a:hover { color: var(--op-cyan); }
.op-crumb span[aria-current] { color: var(--op-ink-soft); }

.op-cat-title {
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  letter-spacing: -0.04em;
  margin-bottom: var(--op-s3);
}

.op-cat-lede {
  font-size: 14px;
  line-height: 1.7;
  color: var(--op-muted);
  max-width: 64ch;
}

.op-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: var(--op-s3);
}

.op-catgames {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: var(--op-s3);
}

.op-filterbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: var(--op-s5);
  padding-bottom: var(--op-s4);
  border-bottom: 1px solid var(--op-line);
}

.op-filterbar__label {
  font-family: var(--op-font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--op-faint);
  margin-right: 4px;
}

.op-chip {
  padding: 7px 13px;
  border-radius: var(--op-pill);
  border: 1px solid var(--op-line);
  background: rgba(23, 35, 59, 0.5);
  color: var(--op-muted);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.op-chip:hover { color: var(--op-ink); border-color: var(--op-line-strong); }
.op-chip.is-active {
  color: #061018;
  background: var(--op-cyan);
  border-color: var(--op-cyan);
  font-weight: 600;
}

.op-sentinel {
  padding: 34px 0;
  text-align: center;
  font-family: var(--op-font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--op-faint);
}
.op-sentinel[hidden] { display: none; }

/* ============================================================
   DETAIL PAGE
   ============================================================ */
.op-detail-top {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(8, 13, 27, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--op-line);
}

.op-detail-top__inner {
  display: flex;
  align-items: center;
  gap: var(--op-s3);
  min-height: 62px;
}

.op-detail-title {
  flex: 1;
  min-width: 0;
  font-family: var(--op-font-display);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.op-detail-lead {
  position: relative;
  padding: clamp(28px, 4vw, 48px) 0 clamp(24px, 3vw, 36px);
  overflow: clip;
}

.op-detail-lead__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.28;
  filter: blur(64px) saturate(1.4);
  background-size: cover;
  background-position: center;
  transform: scale(1.2);
}

.op-detail-lead__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(20px, 3.4vw, 44px);
  align-items: center;
}

.op-detail-poster {
  position: relative;
  border-radius: var(--op-radius-lg);
  overflow: hidden;
  border: 1px solid var(--op-line-strong);
  box-shadow: 0 34px 80px -40px rgba(0, 0, 0, 1);
  background: var(--op-card);
}

.op-detail-poster img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.op-detail-poster__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8, 13, 27, 0.3);
  transition: background 0.25s;
}
.op-detail-poster__play:hover { background: rgba(8, 13, 27, 0.14); }

.op-detail-poster__btn {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #0b1222;
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.9);
  transition: transform 0.25s var(--op-ease);
}
.op-detail-poster__play:hover .op-detail-poster__btn { transform: scale(1.08); }
.op-detail-poster__btn svg { width: 22px; height: 22px; margin-left: 3px; }

.op-detail-info { display: flex; flex-direction: column; gap: var(--op-s4); min-width: 0; }

.op-detail-h1 {
  font-size: clamp(1.85rem, 4.2vw, 3.1rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.op-detail-tags { display: flex; flex-wrap: wrap; gap: 7px; }

.op-detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--op-s4) var(--op-s6);
  padding: var(--op-s4) 0;
  border-block: 1px solid var(--op-line);
}

.op-detail-stat { display: flex; flex-direction: column; gap: 2px; }
.op-detail-stat dt {
  font-family: var(--op-font-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--op-faint);
}
.op-detail-stat dd {
  margin: 0;
  font-family: var(--op-font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--op-ink);
}

.op-detail-actions { display: flex; flex-wrap: wrap; gap: var(--op-s2); }

.op-detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
  padding-bottom: clamp(40px, 5vw, 72px);
}

.op-sect {
  padding-block: var(--op-s5);
  border-top: 1px solid var(--op-line);
}
.op-sect:first-child { border-top: 0; padding-top: 0; }

.op-sect__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--op-ink);
  margin-bottom: var(--op-s3);
}

.op-sect__title::before {
  content: '';
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--op-cyan), var(--op-blue));
}

.op-sect__body {
  font-size: 14px;
  line-height: 1.78;
  color: var(--op-ink-soft);
}

.op-sect__body p + p { margin-top: var(--op-s3); }

.op-viewport {
  position: relative;
  overflow: hidden;
  transition: max-height 0.4s var(--op-ease);
}
.op-viewport.is-collapsed { max-height: 132px; }

.op-viewport__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: linear-gradient(180deg, transparent, var(--op-void) 88%);
  pointer-events: none;
}
.op-viewport__fade[hidden] { display: none; }

.op-viewport__more {
  margin-top: var(--op-s3);
  padding: 8px 15px;
  border-radius: var(--op-pill);
  border: 1px solid var(--op-line);
  background: rgba(23, 35, 59, 0.6);
  color: var(--op-ink-soft);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.op-viewport__more:hover { border-color: var(--op-line-strong); color: var(--op-ink); }
.op-viewport__more[hidden] { display: none; }

.op-howto { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }

.op-howto__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--op-radius-sm);
  border: 1px solid var(--op-line);
  background: rgba(23, 35, 59, 0.4);
}

.op-howto__num {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  font-family: var(--op-font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--op-cyan);
  background: rgba(67, 230, 210, 0.12);
  border: 1px solid rgba(67, 230, 210, 0.28);
  margin-top: 1px;
}

.op-howto__text { font-size: 13.5px; line-height: 1.66; color: var(--op-ink-soft); }
.op-howto__text b { color: var(--op-ink); font-weight: 600; display: block; margin-bottom: 2px; font-size: 12.5px; }

.op-faq { display: grid; gap: 8px; }

.op-faq__item {
  padding: 12px 15px;
  border-radius: var(--op-radius-sm);
  border: 1px solid var(--op-line);
  background: rgba(23, 35, 59, 0.4);
}

.op-faq__q {
  font-size: 13px;
  font-weight: 600;
  color: var(--op-ink);
  margin: 0 0 5px;
}

.op-faq__a { font-size: 13px; line-height: 1.68; color: var(--op-muted); margin: 0; }

.op-detail-side { display: grid; gap: var(--op-s4); position: sticky; top: 78px; }

.op-sidecard {
  padding: var(--op-s4);
  border-radius: var(--op-radius);
  border: 1px solid var(--op-line);
  background: rgba(23, 35, 59, 0.42);
}

.op-sidecard__title {
  font-family: var(--op-font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--op-faint);
  margin-bottom: 10px;
}

/* Sticky play bar is a mobile affordance; on desktop the CTAs stay in the
   header block so nothing covers the article. */
.op-detail-sticky {
  display: none;
  gap: var(--op-s2);
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 720px) {
  .op-detail-sticky {
    position: sticky;
    bottom: 0;
    z-index: 55;
    display: flex;
    background: linear-gradient(180deg, transparent, rgba(8, 13, 27, 0.97) 38%);
  }
  .op-detail-sticky .op-btn { flex: 1; margin-inline: 16px; }
}

/* Play page */
.op-play {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding-bottom: 0;
}

.op-play__bar {
  display: flex;
  align-items: center;
  gap: var(--op-s3);
  padding: 10px 0;
  flex-shrink: 0;
}

.op-play__title {
  flex: 1;
  min-width: 0;
  font-family: var(--op-font-display);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.op-play__frame {
  flex: 1;
  position: relative;
  border-radius: var(--op-radius);
  overflow: hidden;
  border: 1px solid var(--op-line);
  background: #05080f;
  min-height: 0;
}

.op-play__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ============================================================
   RESPONSIVE COMPONENT PASS
   ============================================================ */
@media (max-width: 1080px) {
  .op-mosaic__cell--hero { grid-column: span 8; grid-row: span 4; }
  .op-mosaic__cell--wide { grid-column: span 4; }
  .op-mosaic__cell--tall { grid-column: span 4; }
  .op-mosaic__cell--std,
  .op-mosaic__cell--mini { grid-column: span 4; }

  .op-detail-main { grid-template-columns: minmax(0, 1fr); }
  .op-detail-side { position: static; }
}

@media (max-width: 720px) {
  /* Detail lead: tighter top padding so the first ad clears 0.85 screens. */
  .op-detail-lead { padding: 16px 0 18px; }
  .op-detail-poster { max-width: 200px; }
  .op-detail-poster img { aspect-ratio: 1 / 1; }
  .op-detail-info { gap: var(--op-s3); }
  .op-detail-h1 { font-size: 1.5rem; }
  .op-detail-stats { padding: 10px 0; gap: var(--op-s3) var(--op-s5); }

  /* Planet featured card re-composes for portrait */
  .op-card-planet {
    aspect-ratio: auto;
    min-height: 0;
  }

  .op-card-planet__art,
  .op-card-planet__wash,
  .op-card-planet__glow {
    position: absolute;
    inset: 0;
  }

  .op-card-planet__wash {
    background:
      linear-gradient(178deg, rgba(8, 13, 27, 0.18) 0%, rgba(8, 13, 27, 0.72) 52%, rgba(8, 13, 27, 0.97) 90%);
  }

  .op-card-planet__body {
    position: relative;
    justify-content: flex-end;
    min-height: 400px;
    padding: 20px;
    gap: 10px;
  }

  .op-card-planet__title { font-size: 1.6rem; }
  .op-card-planet__desc { font-size: 12.5px; -webkit-line-clamp: 3; }
  .op-card-planet__meta { gap: 10px; font-size: 8.5px; }
  .op-card-planet__cta { width: 100%; justify-content: center; }

  /* Orbitals become a horizontal snap rail */
  .op-galaxies__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(30vw, 1fr);
    grid-template-columns: none;
    gap: var(--op-s2);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--op-s4) * -1);
    padding-inline: var(--op-s4);
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .op-galaxies__track::-webkit-scrollbar { display: none; }
  .op-galaxies__track::before,
  .op-galaxies__track::after { display: none; }
  .op-galaxies__track > * { scroll-snap-align: center; }

  .op-orb { padding: 12px 6px 14px; gap: 10px; border-radius: var(--op-radius); }
  .op-orb__stage { width: 84px; }
  .op-orb__name { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .op-orb__sub { font-size: 8px; letter-spacing: 0.1em; }
  .op-orb__enter { display: none; }

  /* Cinematic cards */
  .op-cine { aspect-ratio: 16 / 10; }
  .op-cine--row { aspect-ratio: auto; grid-template-columns: 76px minmax(0, 1fr); min-height: 88px; }
  .op-cine--row .op-cine__thumb { width: 76px; height: 66px; }
  .op-cine__play { opacity: 1; transform: none; width: 28px; height: 28px; }
  .op-cine__play svg { width: 11px; height: 11px; }

  /* Mosaic collapses to a clean 2-up asymmetric stack. Row height is tuned so
     the whole block stays under ~1.6 screens and the following ad lands inside
     the 2-3.5 screen window. */
  .op-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 58px;
    gap: 8px;
  }
  .op-mosaic__cell--hero { grid-column: span 2; grid-row: span 3; }
  .op-mosaic__cell--wide { grid-column: span 2; grid-row: span 2; }
  .op-mosaic__cell--tall { grid-column: span 1; grid-row: span 3; }
  .op-mosaic__cell--std,
  .op-mosaic__cell--mini { grid-column: span 1; grid-row: span 2; }
  .op-mosaic__cell--hero .op-mosaic__body { padding: 14px; }
  .op-mosaic__cell--hero .op-mosaic__title { font-size: 1.05rem; }
  .op-mosaic__title { font-size: 11.5px; }
  .op-mosaic__body { padding: 10px 11px; gap: 3px; }
  .op-mosaic__chip { top: 8px; left: 8px; font-size: 7px; padding: 3px 6px; }

  /* World tiles — two-up, first one full width. Spans come from inline
     style on desktop, so they must be reset here. */
  .op-worlds__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .op-world { min-height: 150px; padding: 13px; border-radius: var(--op-radius); grid-column: auto !important; }
  .op-world__name { font-size: 1.02rem; }
  .op-world__kicker { font-size: 7.5px; letter-spacing: 0.14em; }
  .op-world__count { font-size: 8.5px; }
  .op-world:first-child { grid-column: 1 / -1 !important; min-height: 164px; }

  /* New arrival grid — strict two columns */
  .op-arrivals__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .op-newtile__title { font-size: 11.5px; }
  .op-newtile__body { padding: 9px 10px; }

  /* Search overlay */
  .op-search { padding: 14px; }
  .op-search__bar { padding: 4px 4px 4px 14px; }
  .op-search__bar input { font-size: 15px; }
  .op-search__grid { grid-template-columns: minmax(0, 1fr); }

  /* Category */
  .op-cat-hero { padding: 26px 0 20px; }
  .op-cat-title { font-size: 1.75rem; }
  .op-cats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .op-catgames { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .op-catgames .op-cine__title { font-size: 11px; }
  .op-catgames .op-cine__body { padding: 9px; }
  .op-catgames .op-cine__cat { font-size: 7.5px; }

  /* Detail */
  .op-detail-lead__inner {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: var(--op-s4);
    align-items: start;
  }
  .op-detail-poster img { aspect-ratio: 1 / 1; }
  .op-detail-poster { max-width: 240px; }
  .op-detail-poster img { aspect-ratio: 1 / 1; }
  .op-detail-h1 { font-size: 1.7rem; }
  .op-detail-actions .op-btn { flex: 1 1 auto; }
  .op-detail-stats { gap: var(--op-s4); }
  .op-detail-main { padding-bottom: 24px; }
  .op-sect__body { font-size: 13.5px; }
}

/* Tall phones: sections need slightly more air so consecutive ads clear 2
   screens without the hero change making them look cramped. */
@media (max-width: 480px) and (min-height: 900px) {
  .op-section, .op-galaxies, .op-trending, .op-discovered,
  .op-worlds, .op-arrivals { padding-block: 38px; }
  .op-mosaic { grid-auto-rows: 74px; }
  .op-world { min-height: 180px; }
  #op-discovered-list { gap: 10px 20px; }
}

@media (max-width: 400px) {
  .op-hero__title { font-size: 2.15rem; }
  .op-catgames { grid-template-columns: minmax(0, 1fr); }
  .op-catgames .op-cine { aspect-ratio: 16 / 9; }
  .op-catgames .op-cine__title { font-size: 13px; }
}

/* Short viewports: the first ad must still land in the upper third. Sizing is
   driven by viewport height (dvh) rather than a fixed px guess, so 320x693 and
   360x740 shrink proportionally instead of pushing the ad off-screen. */
/* Short phones: the hero is viewport-locked, so sections below must be
   tightened to keep every ad gap inside 2-3.5 screens. */
@media (max-width: 480px) and (max-height: 800px) {
  .op-section, .op-galaxies, .op-trending, .op-discovered,
  .op-worlds, .op-arrivals { padding-block: 18px; }
  .op-mosaic { grid-auto-rows: 46px; gap: 6px; }
  .op-world { min-height: 118px; }
  .op-newtile { aspect-ratio: 4 / 5; }
  .op-galaxies__head { margin-bottom: 22px; }
  .op-orb__stage { width: 72px; }
  .op-trending__rail { grid-auto-columns: minmax(64vw, 1fr); }
}

@media (max-width: 480px) and (max-height: 800px) {
  .op-hero { padding: 2px 0 8px; }
  .op-hero__scene { height: clamp(76px, 14dvh, 140px); }
  .op-hero__title { font-size: clamp(1.55rem, 7.6vw, 2rem); line-height: 0.98; }
  .op-hero__lede { font-size: 12px; line-height: 1.45; }
  .op-hero__copy { gap: 8px; }
  /* One action row: featured CTA and the browse link share a line so the
     hero never costs two full stacked buttons on a short screen. */
  .op-hero__actions {
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
  }
  .op-hero__cta {
    flex: 1 1 auto;
    min-width: 0;
    padding: 9px 10px;
    gap: 8px;
  }
  .op-hero__cta-thumb { width: 34px; height: 34px; }
  .op-hero__cta-arrow { display: none; }
  .op-hero__cta-name { font-size: 13px; }
  .op-hero__cta-label { font-size: 7.5px; letter-spacing: 0.08em; }
  .op-hero__browse {
    flex: 0 0 auto;
    width: auto;
    padding: 9px 12px;
    font-size: 11.5px;
    gap: 5px;
  }
  .op-hero__browse svg { width: 12px; height: 12px; }
  .op-hero__stats { gap: 6px 16px; padding-top: 7px; }
  .op-hero__stat b { font-size: 13.5px; }
  .op-hero__stat span { font-size: 7.5px; }

  /* The side panel repeats the "Also worth launching" rail below it. On short
     screens it stacks above that rail instead of sitting beside it, which both
     duplicates content and pushes the mid-page ad past 3.5 screens. */
  .op-detail-side { display: none; }

  .op-sect[aria-labelledby="op-rel-h"] > div:nth-of-type(2) {
    margin-block: 10px;
  }
  .op-sect[aria-labelledby="op-rel-h"] .op-ad { margin-block: 12px; }

  /* Detail hero on short screens: poster and copy sit side by side instead of
     stacking, which is what pushes the first ad past the fold on 320px. */
  .op-detail-lead { padding: 8px 0 10px; }
  .op-detail-lead__inner {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }
  .op-detail-poster { max-width: none; border-radius: var(--op-radius); }
  .op-detail-poster img { aspect-ratio: 1 / 1; }
  .op-detail-poster__btn { width: 40px; height: 40px; }
  .op-detail-poster__btn svg { width: 15px; height: 15px; }
  .op-detail-h1 { font-size: 1.1rem; line-height: 1.1; }
  .op-detail-info { gap: 7px; }
  .op-detail-tags { gap: 4px; }
  .op-detail-tags .op-tag { font-size: 7px; padding: 3px 6px; }
  .op-detail-stats { padding: 7px 0; gap: 6px 12px; flex-wrap: wrap; }
  .op-detail-stat dt { font-size: 7px; }
  .op-detail-stat dd { font-size: 12.5px; }
  .op-detail-actions { gap: 6px; }
  .op-detail-actions .op-btn { padding: 8px 10px; font-size: 11.5px; flex: 1 1 auto; }
  .op-detail-actions .op-btn svg { width: 12px; height: 12px; }
}
