/*
 * Al Maydan Next — editorial experience v2.
 * Loaded after the legacy stylesheet so the redesign stays isolated, easy to
 * review, and reversible while the WordPress content model remains untouched.
 */

:root {
  --amx-page: min(1320px, calc(100% - 48px));
  --amx-ink: #0c111b;
  --amx-ink-soft: #626b7b;
  --amx-surface: #f4f6f8;
  --amx-surface-muted: #e9edf1;
  --amx-surface-subtle: #f9fafb;
  --amx-surface-raised: #ffffff;
  --amx-border: #dce2e8;
  --amx-brand: #ff355b;
  --amx-brand-deep: #d91842;
  --amx-brand-soft: #ffe8ee;
  --amx-signal: #45dfd1;
  --amx-violet: #755cff;
  --amx-radius-sm: 12px;
  --amx-radius: 20px;
  --amx-radius-lg: 30px;
  --amx-shadow: 0 24px 70px rgb(13 18 30 / 11%);
  --amx-shadow-hover: 0 28px 80px rgb(13 18 30 / 18%);
  --amx-font: "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --amx-display: "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}

html[data-theme="dark"] {
  --amx-ink: #f5f7fb;
  --amx-ink-soft: #9aa5b5;
  --amx-surface: #080b11;
  --amx-surface-muted: #0e131c;
  --amx-surface-subtle: #0c1017;
  --amx-surface-raised: #111722;
  --amx-border: rgb(255 255 255 / 11%);
  --amx-brand-soft: rgb(255 53 91 / 14%);
  --amx-shadow: 0 28px 78px rgb(0 0 0 / 33%);
  --amx-shadow-hover: 0 34px 90px rgb(0 0 0 / 47%);
}

html {
  color-scheme: light;
  background: var(--amx-surface);
  scroll-padding-top: 118px;
  scrollbar-color: rgb(116 126 143 / 62%) var(--amx-surface-muted);
  scrollbar-width: thin;
}

html::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html::-webkit-scrollbar-track {
  background: var(--amx-surface-muted);
}

html::-webkit-scrollbar-thumb {
  background: rgb(116 126 143 / 62%);
  background-clip: padding-box;
  border: 3px solid var(--amx-surface-muted);
  border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover {
  background: var(--amx-brand);
  background-clip: padding-box;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  min-width: 320px;
  color: var(--amx-ink);
  background:
    radial-gradient(circle at 84% 10%, rgb(69 223 209 / 5%), transparent 32rem),
    var(--amx-surface);
  font-family: var(--amx-font);
  font-weight: 500;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

::selection {
  color: #fff;
  background: var(--amx-brand);
}

.amx-shell {
  overflow: clip;
}

.amx-container {
  width: var(--amx-page);
}

.amx-main {
  min-height: 60vh;
}

/* Header: compact media navigation with a clear visual hierarchy. */
.amx-site-header {
  z-index: 80;
  color: #fff;
  background: rgb(7 9 13 / 91%);
  border-bottom: 1px solid rgb(255 255 255 / 9%);
  box-shadow: none;
  backdrop-filter: blur(22px) saturate(135%);
}

.amx-site-header.is-scrolled {
  background: rgb(7 9 13 / 96%);
  box-shadow: 0 12px 34px rgb(0 0 0 / 22%);
}

.amx-header-inner {
  min-height: 76px;
  gap: clamp(16px, 2vw, 34px);
}

.amx-brand {
  flex: 0 0 auto;
  gap: 10px;
  color: #fff;
  font-family: var(--amx-display);
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: -.04em;
}

.amx-brand-mark {
  width: 39px;
  height: 39px;
  background: linear-gradient(145deg, #ff5575, #d71945 68%);
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 13px;
  box-shadow: 0 10px 28px rgb(255 53 91 / 35%);
}

.amx-brand-wordmark {
  color: #fff;
}

.amx-primary-nav {
  margin-inline: auto;
}

.amx-primary-nav > ul,
.amx-primary-nav .menu {
  gap: 2px;
  padding: 5px;
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%);
}

.amx-primary-nav a {
  padding: 9px 17px;
  color: rgb(255 255 255 / 68%);
  font-size: .86rem;
  font-weight: 800;
  border-radius: 999px;
}

.amx-primary-nav a:hover,
.amx-primary-nav .current-menu-item > a,
.amx-primary-nav .current-menu-ancestor > a {
  color: #fff;
  background: linear-gradient(135deg, rgb(69 223 209 / 30%), rgb(69 223 209 / 13%));
  box-shadow: inset 0 0 0 1px rgb(69 223 209 / 32%);
}

.amx-header-actions {
  flex: 0 0 auto;
  gap: 7px;
}

.amx-header-control,
.amx-language-switch,
.amx-menu-toggle {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  color: #fff;
  background: rgb(255 255 255 / 4%);
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 12px;
}

.amx-header-control:hover,
.amx-language-switch:hover,
.amx-menu-toggle:hover {
  color: #fff;
  background: rgb(255 255 255 / 11%);
  border-color: rgb(69 223 209 / 38%);
  transform: translateY(-1px);
}

.amx-install-button {
  min-height: 40px;
  padding-inline: 14px;
  color: #fff;
  background: linear-gradient(135deg, #ff3c61, #e71d4a);
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgb(255 53 91 / 28%);
}

.amx-search-panel {
  color: var(--amx-ink);
  background: color-mix(in srgb, var(--amx-surface-raised) 96%, transparent);
  border-bottom: 1px solid var(--amx-border);
  box-shadow: 0 20px 44px rgb(0 0 0 / 12%);
}

/* Full-bleed story hero inspired by premium streaming, not a card enlarged. */
.amx-hero {
  position: relative;
  min-height: clamp(690px, calc(100svh - 106px), 920px);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: #080b10;
  border: 0;
}

.amx-hero-media,
.amx-hero-media::before,
.amx-hero-media::after {
  position: absolute;
  inset: 0;
}

.amx-hero-media {
  z-index: -3;
  overflow: hidden;
}

.amx-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  filter: saturate(.96) contrast(1.04);
  transform: scale(1.005);
}

.amx-hero-media::before {
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgb(4 6 10 / 20%), transparent 48%, rgb(4 6 10 / 20%)),
    linear-gradient(0deg, #080b10 0%, rgb(8 11 16 / 83%) 15%, rgb(8 11 16 / 18%) 62%, rgb(8 11 16 / 28%) 100%);
}

.amx-hero-media::after {
  z-index: 2;
  bottom: 0;
  height: 44%;
  content: "";
  background:
    radial-gradient(ellipse at 74% 100%, rgb(69 223 209 / 42%), transparent 56%),
    linear-gradient(0deg, rgb(255 53 91 / 28%), transparent 75%);
  mix-blend-mode: screen;
  opacity: .9;
}

.amx-hero--placeholder .amx-hero-media {
  background:
    radial-gradient(circle at 80% 22%, rgb(69 223 209 / 24%), transparent 24rem),
    radial-gradient(circle at 17% 68%, rgb(117 92 255 / 28%), transparent 32rem),
    linear-gradient(135deg, #111622, #080a0f 58%, #170b13);
}

.amx-hero--placeholder .amx-hero-media::before {
  background:
    repeating-linear-gradient(118deg, transparent 0 76px, rgb(255 255 255 / 2.7%) 77px 78px),
    linear-gradient(0deg, #080b10, transparent 70%);
}

.amx-hero-media__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.amx-hero-media__fallback::before,
.amx-hero-media__fallback::after,
.amx-hero-media__fallback i {
  position: absolute;
  content: "";
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 50%;
}

.amx-hero-media__fallback::before {
  width: min(66vw, 920px);
  aspect-ratio: 1;
  inset-inline-end: -10vw;
  top: -32%;
  box-shadow: inset 0 0 120px rgb(69 223 209 / 8%);
}

.amx-hero-media__fallback::after {
  width: min(40vw, 560px);
  aspect-ratio: 1;
  inset-inline-start: 7vw;
  bottom: -20%;
  border-color: rgb(255 53 91 / 17%);
}

.amx-hero-media__fallback i {
  width: 18vw;
  min-width: 220px;
  max-width: 360px;
  aspect-ratio: 1;
  top: 20%;
  right: auto;
  left: 13%;
  background: radial-gradient(circle, rgb(255 53 91 / 22%), transparent 67%);
  border: 2px solid rgb(69 223 209 / 32%);
  box-shadow:
    0 0 0 34px rgb(255 255 255 / 2.5%),
    0 0 90px rgb(69 223 209 / 17%);
  transform: rotate(-35deg);
}

.amx-hero-media__fallback i::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  content: "";
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 29px solid rgb(255 255 255 / 55%);
  filter: drop-shadow(0 8px 18px rgb(0 0 0 / 28%));
  transform: translate(-38%, -50%) rotate(35deg);
}

.amx-hero-media__fallback b {
  position: absolute;
  right: auto;
  left: 5%;
  bottom: 13%;
  color: rgb(255 255 255 / 3.5%);
  font-size: clamp(7rem, 16vw, 17rem);
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  transform: rotate(-7deg);
}

.amx-hero-grid {
  display: none;
}

.amx-hero-content {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: clamp(54px, 7vh, 92px);
  left: 0;
  width: var(--amx-page);
  max-width: none;
  padding: 0;
  margin-inline: auto;
}

.amx-hero-position {
  display: flex;
  align-items: center;
  width: fit-content;
  gap: 10px;
  margin-bottom: 16px;
  color: rgb(255 255 255 / 68%);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.amx-hero-position b {
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .8rem;
}

.amx-hero-position i {
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, var(--amx-signal), transparent);
}

.amx-hero-kicker-row {
  gap: 9px;
  margin-bottom: 14px;
}

.amx-eyebrow,
.amx-hero-edition {
  padding: 6px 11px;
  color: #fff;
  font-size: .72rem;
  font-weight: 850;
  background: rgb(7 10 15 / 54%);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.amx-eyebrow::before {
  background: var(--amx-signal);
  box-shadow: 0 0 12px rgb(69 223 209 / 75%);
}

.amx-hero h1 {
  max-width: min(940px, 19ch);
  margin: 0;
  color: #fff;
  font-family: var(--amx-display);
  font-size: clamp(3rem, 5vw, 5.45rem);
  font-weight: 950;
  line-height: .99;
  letter-spacing: -.058em;
  text-wrap: balance;
  text-shadow: 0 4px 30px rgb(0 0 0 / 38%);
  overflow-wrap: anywhere;
}

.amx-hero-content > p {
  display: -webkit-box;
  max-width: 650px;
  margin: 20px 0 0;
  overflow: hidden;
  color: rgb(255 255 255 / 78%);
  font-size: clamp(.98rem, 1.35vw, 1.16rem);
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.amx-hero-actions {
  gap: 18px;
  margin-top: 25px;
}

.amx-hero .amx-button {
  min-height: 48px;
  padding-inline: 21px;
  color: #fff;
  background: linear-gradient(135deg, #ff4569, #e61d49);
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgb(255 53 91 / 34%);
}

.amx-hero .amx-button:hover {
  box-shadow: 0 18px 50px rgb(255 53 91 / 44%);
  transform: translateY(-2px);
}

.amx-hero-meta {
  color: rgb(255 255 255 / 64%);
  font-size: .76rem;
}

.amx-hero-meta span + span::before {
  color: var(--amx-signal);
}

.amx-hero-signal {
  display: none;
}

/* Format navigation becomes a useful continuation of the hero. */
.amx-format-strip {
  color: #fff;
  background: #0a0e15;
  border-block: 1px solid rgb(255 255 255 / 9%);
}

.amx-format-strip__inner {
  min-height: 88px;
  gap: 28px;
}

.amx-format-strip p {
  color: rgb(255 255 255 / 46%);
  font-size: .73rem;
  font-weight: 850;
  letter-spacing: .04em;
}

.amx-format-strip__links {
  gap: 8px;
}

.amx-format-strip__links a {
  min-height: 52px;
  gap: 11px;
  padding: 8px 17px;
  color: rgb(255 255 255 / 76%);
  background: rgb(255 255 255 / 4%);
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 14px;
}

.amx-format-strip__links a:hover {
  color: #fff;
  background: rgb(69 223 209 / 10%);
  border-color: rgb(69 223 209 / 27%);
  transform: translateY(-2px);
}

.amx-format-icon {
  color: var(--amx-signal);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .68rem;
}

/* Editorial sections and headings. */
.amx-section {
  position: relative;
  padding-block: clamp(76px, 9vw, 128px);
  background: var(--amx-surface);
}

.amx-section--editorial,
.amx-section--stories {
  background:
    radial-gradient(circle at 92% 8%, rgb(69 223 209 / 5%), transparent 28rem),
    var(--amx-surface);
}

.amx-section--muted {
  background: var(--amx-surface-muted);
  border-block: 1px solid var(--amx-border);
}

.amx-section--dark {
  color: #fff;
  background:
    radial-gradient(circle at 84% 0%, rgb(117 92 255 / 20%), transparent 30rem),
    radial-gradient(circle at 8% 100%, rgb(255 53 91 / 13%), transparent 28rem),
    #090c12;
  border-block: 1px solid rgb(255 255 255 / 8%);
}

.amx-section-heading {
  align-items: end;
  gap: 24px;
  margin-bottom: clamp(30px, 4vw, 50px);
}

.amx-section-kicker {
  color: var(--amx-brand);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .045em;
}

.amx-section-heading h2,
.amx-page-heading h1,
.amx-library__header h1 {
  margin-top: 6px;
  color: var(--amx-ink);
  font-family: var(--amx-display);
  font-size: clamp(2.2rem, 4vw, 4.45rem);
  font-weight: 950;
  line-height: 1.04;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.amx-section-heading--inverse h2 {
  color: #fff;
}

.amx-section-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  gap: 9px;
  padding: 6px 14px;
  color: var(--amx-ink-soft);
  font-size: .78rem;
  font-weight: 850;
  border: 1px solid var(--amx-border);
  border-radius: 999px;
}

.amx-section-heading--inverse .amx-section-link {
  color: rgb(255 255 255 / 72%);
  border-color: rgb(255 255 255 / 14%);
}

.amx-section-link:hover {
  color: #fff;
  background: var(--amx-brand);
  border-color: var(--amx-brand);
}

/* Media cards: image-first, informative, and useful even without thumbnails. */
.amx-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
}

.amx-card {
  grid-column: span 3;
  min-width: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.amx-card-link {
  display: block;
  height: 100%;
  color: inherit;
}

.amx-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #111722;
  border: 1px solid var(--amx-border);
  border-radius: 18px;
  box-shadow: 0 12px 36px rgb(12 17 27 / 8%);
  transform: translateZ(0);
}

.amx-card-media::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgb(5 7 11 / 50%), transparent 55%);
  opacity: .72;
  transition: opacity 220ms ease;
}

.amx-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 480ms cubic-bezier(.2, .7, .2, 1), filter 260ms ease;
}

.amx-card:hover {
  box-shadow: none;
  transform: none;
}

.amx-card:hover .amx-card-media {
  border-color: rgb(255 53 91 / 28%);
  box-shadow: var(--amx-shadow-hover);
}

.amx-card-link:focus-visible {
  outline: none;
}

.amx-card-link:focus-visible .amx-card-media {
  border-color: var(--amx-signal);
  box-shadow: 0 0 0 3px rgb(69 223 209 / 35%), var(--amx-shadow-hover);
}

.amx-card-link:focus-visible .amx-card-title {
  color: var(--amx-brand);
}

.amx-card:hover .amx-card-media img {
  filter: saturate(1.08) contrast(1.02);
  transform: scale(1.055);
}

.amx-card:hover .amx-card-media::after {
  opacity: .42;
}

.amx-card-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 16%, rgb(69 223 209 / 32%), transparent 45%),
    radial-gradient(circle at 12% 90%, rgb(117 92 255 / 34%), transparent 48%),
    linear-gradient(145deg, #161d2a, #090d14 70%);
}

.amx-card:nth-child(4n + 2) .amx-card-placeholder {
  background:
    radial-gradient(circle at 82% 14%, rgb(255 53 91 / 30%), transparent 44%),
    radial-gradient(circle at 8% 94%, rgb(117 92 255 / 38%), transparent 50%),
    linear-gradient(145deg, #1b1728, #0b0d15 72%);
}

.amx-card:nth-child(4n + 3) .amx-card-placeholder {
  background:
    radial-gradient(circle at 76% 12%, rgb(238 181 67 / 27%), transparent 42%),
    radial-gradient(circle at 12% 88%, rgb(69 223 209 / 31%), transparent 48%),
    linear-gradient(145deg, #172128, #090d13 72%);
}

.amx-card:nth-child(4n) .amx-card-placeholder {
  background:
    radial-gradient(circle at 84% 18%, rgb(68 125 255 / 31%), transparent 44%),
    radial-gradient(circle at 10% 92%, rgb(255 53 91 / 24%), transparent 48%),
    linear-gradient(145deg, #141a2a, #080b12 72%);
}

.amx-card-placeholder::before,
.amx-card-placeholder::after,
.amx-card-placeholder i {
  position: absolute;
  content: "";
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 50%;
}

.amx-card-placeholder::before {
  width: 75%;
  aspect-ratio: 1;
  top: -45%;
  inset-inline-end: -16%;
}

.amx-card-placeholder::after {
  width: 46%;
  aspect-ratio: 1;
  bottom: -30%;
  inset-inline-start: -8%;
  border-color: rgb(255 53 91 / 22%);
}

.amx-card-placeholder i {
  width: 22%;
  aspect-ratio: 1;
  border: 8px solid rgb(255 255 255 / 8%);
  border-inline-start-color: rgb(69 223 209 / 55%);
  transform: rotate(-35deg);
}

.amx-card-placeholder b {
  color: rgb(255 255 255 / 8%);
  font-size: clamp(1.8rem, 4vw, 4.6rem);
  font-weight: 950;
  letter-spacing: -.06em;
  transform: rotate(-7deg);
}

.amx-card-body {
  padding: 15px 3px 0;
}

.amx-card-topic {
  color: var(--amx-brand);
  font-size: .71rem;
  font-weight: 900;
}

.amx-card-title {
  display: -webkit-box;
  margin: 7px 0 0;
  overflow: hidden;
  color: var(--amx-ink);
  font-family: var(--amx-display);
  font-size: clamp(1.02rem, 1.4vw, 1.28rem);
  font-weight: 900;
  line-height: 1.42;
  letter-spacing: -.025em;
  text-wrap: pretty;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.amx-card:hover .amx-card-title {
  color: var(--amx-brand);
}

.amx-card-meta {
  margin-top: 11px;
  color: var(--amx-ink-soft);
  font-size: .7rem;
}

.amx-card-type,
.amx-card-duration {
  z-index: 3;
  top: 12px;
  bottom: auto;
  padding: 5px 9px;
  color: #fff;
  font-size: .65rem;
  font-weight: 850;
  background: rgb(6 9 14 / 67%);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.amx-card-type {
  inset-inline-start: 12px;
}

.amx-card-duration {
  inset-inline-end: 12px;
}

.amx-card-play {
  z-index: 3;
  width: 45px;
  height: 45px;
  color: #fff;
  background: rgb(255 53 91 / 90%);
  border: 1px solid rgb(255 255 255 / 24%);
  box-shadow: 0 10px 28px rgb(0 0 0 / 25%);
  backdrop-filter: blur(9px);
  transition: transform 220ms ease, background 220ms ease;
}

.amx-card:hover .amx-card-play {
  background: var(--amx-brand);
  transform: translate(-50%, -50%) scale(1.08);
}

[dir="rtl"] .amx-card:hover .amx-card-play {
  transform: translate(-50%, -50%) scale(1.08);
}

.amx-grid--editorial .amx-card--lead {
  grid-column: span 7;
  grid-row: span 2;
}

.amx-grid--editorial .amx-card--lead .amx-card-media {
  aspect-ratio: 16 / 10.7;
  border-radius: 24px;
}

.amx-grid--editorial .amx-card--lead .amx-card-title {
  max-width: 24ch;
  font-size: clamp(1.55rem, 2.7vw, 2.65rem);
  line-height: 1.18;
  -webkit-line-clamp: 3;
}

.amx-card-excerpt {
  display: -webkit-box;
  max-width: 66ch;
  margin: 12px 0 0;
  overflow: hidden;
  color: var(--amx-ink-soft);
  font-size: .9rem;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.amx-grid--editorial .amx-card:not(.amx-card--lead) {
  grid-column: span 5;
}

.amx-grid--editorial .amx-card:nth-child(n + 4) {
  grid-column: span 6;
}

/* Shorts: a button-controlled reel deck. */
.amx-section--reel {
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 2%) 1px, transparent 1px) 0 0 / clamp(72px, 8vw, 138px) 100%,
    radial-gradient(circle at 84% 0%, rgb(117 92 255 / 20%), transparent 30rem),
    radial-gradient(circle at 8% 100%, rgb(255 53 91 / 13%), transparent 28rem),
    #090c12;
}

.amx-section--reel::after {
  position: absolute;
  z-index: 0;
  width: min(42vw, 620px);
  aspect-ratio: 1;
  inset-inline-end: -18%;
  bottom: -62%;
  content: "";
  background: rgb(69 223 209 / 8%);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.amx-section--reel .amx-container {
  position: relative;
  z-index: 1;
}

.amx-section--reel .amx-section-heading {
  margin-bottom: clamp(24px, 3vw, 40px);
}

.amx-reel {
  --reel-thumb-position: 0%;
  --reel-thumb-size: 32%;
  position: relative;
  isolation: isolate;
}

.amx-reel__stage {
  position: relative;
}

.amx-grid--shorts,
.amx-reel__track {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: clamp(208px, 17vw, 248px);
  gap: clamp(14px, 1.45vw, 22px);
  padding: 12px 4px 24px;
  /* The rail moves only through its previous/next controls in JavaScript. */
  overflow-x: hidden;
  overflow-y: hidden;
  cursor: default;
  overscroll-behavior-inline: none;
  scroll-behavior: smooth;
  scroll-padding-inline: 4px;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  touch-action: pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
}

.amx-grid--shorts::-webkit-scrollbar,
.amx-reel__track::-webkit-scrollbar {
  display: none;
}

.amx-reel__track:focus-visible {
  outline: 2px solid var(--amx-signal);
  outline-offset: 8px;
  border-radius: 18px;
}

.amx-grid--shorts .amx-card--short {
  width: auto;
  min-width: 0;
  grid-column: auto;
  text-align: start;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  transition: transform 320ms cubic-bezier(.2, .75, .2, 1), opacity 220ms ease;
}

.amx-card--short .amx-card-media {
  aspect-ratio: 9 / 15.5;
  border-color: rgb(255 255 255 / 12%);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgb(0 0 0 / 24%);
  transition: border-color 240ms ease, box-shadow 320ms ease, transform 320ms ease;
}

.amx-card-preview {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.025);
  transition: opacity 260ms ease, transform 700ms cubic-bezier(.2, .7, .2, 1);
  pointer-events: none;
}

.amx-card.is-previewing .amx-card-preview {
  opacity: 1;
  transform: scale(1);
}

.amx-card-preview-label {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  inset-inline-start: 12px;
  bottom: 12px;
  min-height: 30px;
  gap: 6px;
  padding: 5px 9px;
  color: #fff;
  font-size: .64rem;
  font-weight: 850;
  background: rgb(5 8 13 / 68%);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  opacity: 0;
  backdrop-filter: blur(12px);
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 220ms ease;
}

.amx-card-preview-label .amx-icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.amx-card.is-previewing .amx-card-preview-label {
  opacity: 1;
  transform: translateY(0);
}

.amx-card.is-preview-loading .amx-card-play::after {
  position: absolute;
  inset: -6px;
  content: "";
  border: 2px solid rgb(255 255 255 / 24%);
  border-top-color: #fff;
  border-radius: 50%;
  animation: amx-reel-spin 700ms linear infinite;
}

.amx-card.is-previewing .amx-card-play {
  opacity: .78;
  background: rgb(5 8 13 / 48%);
  transform: translate(-50%, -50%) scale(.84);
}

.amx-card.has-preview-error .amx-card-preview {
  display: none;
}

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

.amx-reel.is-scrolling .amx-card:not(.is-reel-active) {
  opacity: .82;
}

.amx-reel__arrow {
  position: absolute;
  z-index: 6;
  top: clamp(180px, 14.3vw, 214px);
  display: grid;
  width: 56px;
  height: 56px;
  padding: 0;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, rgb(25 31 43 / 94%), rgb(8 11 17 / 82%));
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 50%;
  box-shadow: 0 16px 44px rgb(0 0 0 / 42%), inset 0 1px 0 rgb(255 255 255 / 12%);
  backdrop-filter: blur(18px) saturate(135%);
  transform: translateY(-50%);
  transition: opacity 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.amx-reel__arrow--previous {
  inset-inline-start: -34px;
}

.amx-reel__arrow--next {
  inset-inline-end: -34px;
}

.amx-reel__arrow .amx-icon {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 180ms ease;
}

[dir="ltr"] .amx-reel__arrow--next .amx-icon,
[dir="rtl"] .amx-reel__arrow--previous .amx-icon {
  transform: scaleX(-1);
}

.amx-reel__arrow:hover:not(:disabled) {
  background: linear-gradient(145deg, var(--amx-brand), var(--amx-brand-deep));
  border-color: rgb(255 255 255 / 42%);
  box-shadow: 0 18px 48px rgb(255 53 91 / 30%), inset 0 1px 0 rgb(255 255 255 / 20%);
  transform: translateY(-50%) scale(1.07);
}

.amx-reel__arrow:focus-visible {
  outline: 3px solid var(--amx-signal);
  outline-offset: 4px;
}

.amx-reel__arrow:disabled {
  opacity: .24;
  cursor: default;
  box-shadow: none;
}

.amx-reel.is-static .amx-reel__arrow,
.amx-reel.is-static .amx-reel__navigation,
.amx-reel.is-static .amx-reel__edge {
  display: none;
}

.amx-reel__edge {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 88px;
  width: clamp(42px, 5vw, 76px);
  opacity: 1;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.amx-reel__edge--start {
  inset-inline-start: 0;
}

.amx-reel__edge--end {
  inset-inline-end: 0;
}

[dir="ltr"] .amx-reel__edge--start,
[dir="rtl"] .amx-reel__edge--end {
  background: linear-gradient(90deg, #090c12 0%, rgb(9 12 18 / 78%) 34%, transparent 100%);
}

[dir="ltr"] .amx-reel__edge--end,
[dir="rtl"] .amx-reel__edge--start {
  background: linear-gradient(270deg, #090c12 0%, rgb(9 12 18 / 78%) 34%, transparent 100%);
}

.amx-reel.is-at-start .amx-reel__edge--start,
.amx-reel.is-at-end .amx-reel__edge--end {
  opacity: 0;
}

.amx-reel__footer,
.amx-reel__navigation,
.amx-reel__hint {
  display: flex;
  align-items: center;
}

.amx-reel__footer {
  min-height: 44px;
  justify-content: space-between;
  gap: 24px;
  margin-top: 2px;
}

.amx-reel__hint {
  gap: 9px;
  margin: 0;
  color: rgb(255 255 255 / 52%);
  font-size: .7rem;
  font-weight: 750;
}

.amx-reel__hint .amx-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--amx-signal);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.amx-reel__navigation {
  width: min(38vw, 360px);
  justify-content: flex-end;
  gap: 14px;
}

.amx-reel__progress {
  flex: 1;
  min-width: 110px;
}

.amx-reel__progress > span {
  position: relative;
  display: block;
  height: 3px;
  overflow: hidden;
  background: rgb(255 255 255 / 13%);
  border-radius: 999px;
}

.amx-reel__progress i {
  position: absolute;
  inset-block: 0;
  inset-inline-start: var(--reel-thumb-position);
  width: var(--reel-thumb-size);
  background: linear-gradient(90deg, var(--amx-brand), #ff7b65 55%, var(--amx-signal));
  border-radius: inherit;
  box-shadow: 0 0 16px rgb(255 53 91 / 40%);
  transition: inset-inline-start 90ms linear, width 180ms ease;
}

.amx-reel__counter {
  min-width: 62px;
  color: rgb(255 255 255 / 67%);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .7rem;
  font-weight: 800;
  direction: ltr;
  text-align: end;
}

.amx-section--dark .amx-card-title {
  color: #fff;
  font-size: 1rem;
}

.amx-section--dark .amx-card-topic {
  color: var(--amx-signal);
}

.amx-section--dark .amx-card-meta {
  color: rgb(255 255 255 / 50%);
}

.amx-section--dark .amx-card:hover .amx-card-title,
.amx-section--dark .amx-card-link:focus-visible .amx-card-title {
  color: var(--amx-signal);
}

@media (hover: hover) and (pointer: fine) {
  .amx-grid--shorts .amx-card--short:hover {
    transform: translateY(-7px);
  }

  .amx-grid--shorts .amx-card--short:hover .amx-card-media {
    border-color: rgb(69 223 209 / 44%);
    box-shadow: 0 26px 64px rgb(0 0 0 / 42%);
  }
}

/* Creator cards and newsroom cards use the same rhythm. */
.amx-grid--creators .amx-creator-card {
  grid-column: span 3;
}

.amx-creator-card {
  overflow: hidden;
  background: var(--amx-surface-raised);
  border: 1px solid var(--amx-border);
  border-radius: 20px;
  box-shadow: 0 14px 40px rgb(14 20 32 / 6%);
}

.amx-creator-card:hover {
  border-color: rgb(255 53 91 / 30%);
  box-shadow: var(--amx-shadow);
  transform: translateY(-4px);
}

.amx-creator-card__link {
  padding: 18px;
}

.amx-creator-card img,
.amx-creator-avatar {
  box-shadow: 0 0 0 5px var(--amx-surface-muted);
}

/* Archives, search and editorial pages. */
.amx-page-heading {
  position: relative;
  padding-block: clamp(76px, 10vw, 132px) 38px;
}

.amx-page-heading::before {
  position: absolute;
  width: 170px;
  height: 5px;
  top: 48px;
  inset-inline-start: 0;
  content: "";
  background: linear-gradient(90deg, var(--amx-brand), var(--amx-signal), transparent);
  border-radius: 999px;
}

.amx-page-heading p,
.amx-page-heading > div {
  max-width: 680px;
  color: var(--amx-ink-soft);
  font-size: 1rem;
}

.amx-archive,
.amx-search-results {
  padding-bottom: clamp(80px, 10vw, 140px);
}

.amx-pagination .page-numbers {
  border-radius: 11px;
}

.amx-pagination .current,
.amx-pagination a:hover {
  color: #fff;
  background: var(--amx-brand);
  border-color: var(--amx-brand);
}

/* Single-story and viewing pages. */
.amx-single,
.amx-single--media {
  width: min(1080px, calc(100% - 48px));
  padding-block: clamp(66px, 8vw, 110px);
}

.amx-single:not(.amx-single--media) {
  width: min(860px, calc(100% - 48px));
}

.amx-single-header {
  margin-bottom: 36px;
}

.amx-single-header h1 {
  max-width: 1050px;
  margin: 12px 0 18px;
  color: var(--amx-ink);
  font-family: var(--amx-display);
  font-size: clamp(2.55rem, 5.8vw, 5.8rem);
  font-weight: 950;
  line-height: 1.04;
  letter-spacing: -.06em;
  text-wrap: balance;
}

.amx-single-meta {
  color: var(--amx-ink-soft);
  font-size: .78rem;
}

.amx-media-player {
  overflow: hidden;
  background: #030507;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 24px;
  box-shadow: 0 30px 85px rgb(4 7 13 / 25%);
}

.amx-single-details,
.amx-entry-content,
.amx-interactions {
  border-radius: 18px;
}

.amx-entry-content {
  color: var(--amx-ink);
  font-size: clamp(1.04rem, 1.4vw, 1.16rem);
  line-height: 2;
}

.amx-entry-content a {
  color: var(--amx-brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.amx-entry-content blockquote {
  padding: 24px 26px;
  background: var(--amx-brand-soft);
  border-inline-start: 4px solid var(--amx-brand);
  border-radius: 15px;
}

.amx-interaction-button,
.amx-share-button {
  border-radius: 12px;
}

/* Library and account area. */
.amx-library {
  width: var(--amx-page);
  padding-block: clamp(72px, 9vw, 120px);
}

.amx-library__header {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--amx-border);
}

.amx-library__guest {
  max-width: 800px;
  padding: clamp(28px, 5vw, 54px);
  background:
    radial-gradient(circle at 86% 4%, rgb(69 223 209 / 25%), transparent 26rem),
    radial-gradient(circle at 4% 100%, rgb(117 92 255 / 24%), transparent 26rem),
    #0d121b;
  border: 1px solid rgb(255 255 255 / 11%);
  border-radius: 26px;
  box-shadow: var(--amx-shadow);
}

.amx-library__empty {
  padding: 28px;
  border-radius: 16px;
}

/* Footer closes the page as a media product, not a generic theme. */
.amx-site-footer {
  color: #fff;
  background:
    radial-gradient(circle at 88% 0%, rgb(69 223 209 / 10%), transparent 28rem),
    #070a0f;
  border-top: 1px solid rgb(255 255 255 / 9%);
}

.amx-footer-grid {
  grid-template-columns: 1.4fr .8fr 1fr;
  gap: clamp(40px, 7vw, 110px);
  padding-block: clamp(70px, 9vw, 120px);
}

.amx-footer-copy {
  color: rgb(255 255 255 / 57%);
  line-height: 1.9;
}

.amx-footer-title {
  color: #fff;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.amx-footer-nav a,
.amx-footer-language {
  color: rgb(255 255 255 / 65%);
}

.amx-footer-nav a:hover,
.amx-footer-language:hover {
  color: var(--amx-signal);
}

.amx-footer-bottom {
  padding-block: 22px;
  color: rgb(255 255 255 / 40%);
  border-top: 1px solid rgb(255 255 255 / 8%);
}

@media (max-width: 1450px) {
  .amx-reel__arrow--previous {
    inset-inline-start: 8px;
  }

  .amx-reel__arrow--next {
    inset-inline-end: 8px;
  }
}

/* Tablet navigation and layouts. */
@media (max-width: 1100px) {
  :root {
    --amx-page: min(100% - 36px, 1320px);
  }

  .amx-primary-nav {
    color: var(--amx-ink);
  }

  .amx-primary-nav > ul,
  .amx-primary-nav .menu {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .amx-primary-nav a {
    color: var(--amx-ink-soft);
    border-radius: 10px;
  }

  .amx-primary-nav a:hover,
  .amx-primary-nav .current-menu-item > a {
    color: var(--amx-brand);
    background: var(--amx-brand-soft);
    box-shadow: none;
  }

  .amx-grid--shorts,
  .amx-reel__track {
    grid-template-columns: none;
    grid-auto-columns: clamp(190px, 24vw, 230px);
  }

  .amx-grid--shorts .amx-card {
    scroll-snap-align: start;
  }
}

@media (max-width: 820px) {
  .amx-hero {
    min-height: clamp(640px, calc(100svh - 96px), 820px);
  }

  .amx-hero-content {
    bottom: 52px;
  }

  .amx-hero h1 {
    max-width: 19ch;
    font-size: clamp(2.65rem, 9.6vw, 5rem);
  }

  .amx-hero-content > p {
    max-width: 58ch;
    font-size: .94rem;
  }

  .amx-format-strip__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-block: 18px;
  }

  .amx-format-strip__links {
    width: 100%;
    overflow-x: auto;
  }

  .amx-grid--editorial .amx-card--lead {
    grid-column: span 12;
    grid-row: auto;
  }

  .amx-grid--editorial .amx-card:not(.amx-card--lead),
  .amx-grid--editorial .amx-card:nth-child(n + 4),
  .amx-section--stories .amx-card,
  .amx-grid--creators .amx-creator-card {
    grid-column: span 6;
  }

  .amx-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .amx-footer-brand-column {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  :root {
    --amx-page: min(100% - 28px, 1320px);
  }

  .amx-header-inner {
    min-height: 64px;
    gap: 5px;
    direction: ltr;
  }

  .amx-brand {
    flex-basis: 34px;
    min-width: 34px;
  }

  .amx-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .amx-brand-wordmark,
  .amx-theme-toggle {
    display: none !important;
  }

  .amx-header-actions {
    gap: 4px;
  }

  .amx-header-control,
  .amx-language-switch,
  .amx-menu-toggle,
  .amx-install-button {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    place-content: center;
    border-radius: 10px;
  }

  .amx-install-button span {
    display: none;
  }

  .amx-primary-nav {
    top: 102px;
    inset-inline: 10px;
    color: var(--amx-ink);
    background: var(--amx-surface-raised);
    border: 1px solid var(--amx-border);
    border-radius: 18px;
    box-shadow: var(--amx-shadow);
  }

  .amx-hero {
    min-height: max(620px, calc(100svh - 91px));
  }

  .amx-hero-media img {
    object-position: center;
  }

  .amx-hero-media::before {
    background:
      linear-gradient(0deg, #080b10 0%, rgb(8 11 16 / 88%) 22%, rgb(8 11 16 / 13%) 74%, rgb(8 11 16 / 30%));
  }

  .amx-hero-content {
    bottom: 34px;
  }

  .amx-hero-position {
    margin-bottom: 12px;
  }

  .amx-hero h1 {
    max-width: 100%;
    font-size: clamp(2.12rem, 8.2vw, 2.65rem);
    line-height: 1.04;
    letter-spacing: -.05em;
  }

  .amx-hero-media__fallback i {
    width: 150px;
    min-width: 150px;
    top: 12%;
    right: auto;
    left: 10%;
    opacity: .72;
  }

  .amx-hero-media__fallback b {
    top: 24%;
    bottom: auto;
    right: auto;
    left: 7%;
    font-size: 6.5rem;
  }

  .amx-hero-content > p {
    margin-top: 14px;
    font-size: .87rem;
    line-height: 1.65;
  }

  .amx-hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-top: 19px;
  }

  .amx-hero .amx-button {
    min-height: 44px;
  }

  .amx-format-strip__links a {
    min-width: 136px;
  }

  .amx-section {
    padding-block: 68px;
  }

  .amx-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
  }

  .amx-section-heading h2,
  .amx-page-heading h1,
  .amx-library__header h1 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .amx-grid--editorial .amx-card:not(.amx-card--lead),
  .amx-grid--editorial .amx-card:nth-child(n + 4),
  .amx-section--stories .amx-card,
  .amx-grid--creators .amx-creator-card,
  .amx-library__grid .amx-card {
    grid-column: span 12;
  }

  .amx-grid--editorial .amx-card--lead .amx-card-media {
    aspect-ratio: 16 / 11;
    border-radius: 19px;
  }

  .amx-grid--editorial .amx-card--lead .amx-card-title {
    font-size: 1.65rem;
  }

  .amx-card-media {
    border-radius: 16px;
  }

  .amx-grid--shorts,
  .amx-reel__track {
    display: grid;
    width: calc(100% + 28px);
    grid-template-columns: none;
    grid-auto-columns: min(68vw, 270px);
    margin-inline: -14px;
    padding: 10px 14px 20px;
    scroll-padding-inline: 14px;
  }

  .amx-reel__arrow {
    top: clamp(150px, 43vw, 190px);
    width: 46px;
    height: 46px;
  }

  .amx-reel__arrow--previous {
    inset-inline-start: 4px;
  }

  .amx-reel__arrow--next {
    inset-inline-end: 4px;
  }

  .amx-reel__edge {
    bottom: 76px;
    width: 44px;
  }

  .amx-reel__footer {
    gap: 14px;
  }

  .amx-reel__hint {
    max-width: 18ch;
    font-size: .64rem;
    line-height: 1.45;
  }

  .amx-reel__navigation {
    width: min(49vw, 230px);
  }

  .amx-single,
  .amx-single--media,
  .amx-single:not(.amx-single--media) {
    width: min(100% - 28px, 1080px);
    padding-block: 58px 80px;
  }

  .amx-single-header h1 {
    font-size: clamp(2.15rem, 10vw, 3.65rem);
  }

  .amx-media-player {
    border-radius: 16px;
  }

  .amx-library {
    width: min(100% - 28px, 1320px);
  }

  .amx-footer-grid {
    grid-template-columns: 1fr;
  }

  .amx-footer-brand-column {
    grid-column: auto;
  }

  .amx-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 390px) {
  .amx-hero-kicker-row {
    flex-wrap: wrap;
  }

  .amx-hero h1 {
    font-size: 2.08rem;
  }

  .amx-grid--shorts,
  .amx-reel__track {
    grid-template-columns: none;
    grid-auto-columns: min(72vw, 245px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .amx-card-media img,
  .amx-card-preview,
  .amx-card,
  .amx-card-play,
  .amx-header-control,
  .amx-install-button,
  .amx-section-link,
  .amx-reel__arrow,
  .amx-reel__progress i,
  .amx-reel__edge {
    transition: none !important;
  }

  .amx-reel__track {
    scroll-behavior: auto;
  }

  .amx-card.is-preview-loading .amx-card-play::after {
    animation: none;
  }
}

/* Immersive vertical Reels viewer. The route deliberately owns the viewport. */
body.amx-reels-page {
  --amx-reels-safe-top: max(18px, env(safe-area-inset-top));
  --amx-reels-safe-bottom: max(18px, env(safe-area-inset-bottom));
  overflow: hidden;
  color: #fff;
  background: #05070b;
}

.amx-reels-page .amx-shell {
  min-height: 100dvh;
  overflow: hidden;
  background: #05070b;
}

.amx-reels-page .amx-site-header,
.amx-reels-page .amx-app-notice,
.amx-reels-page .amx-site-footer {
  display: none;
}

.amx-reels-page .amx-main {
  width: 100%;
  min-height: 100dvh;
  padding: 0;
  overflow: hidden;
}

.amx-reels-experience,
.amx-reels-experience * {
  box-sizing: border-box;
}

.amx-reels-experience {
  position: fixed;
  z-index: 900;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  color-scheme: dark;
  background:
    radial-gradient(circle at 18% 20%, rgb(255 53 91 / 8%), transparent 28rem),
    #05070b;
}

.admin-bar .amx-reels-experience {
  top: 32px;
  height: calc(100dvh - 32px);
}

.amx-reels-chrome {
  position: absolute;
  z-index: 40;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: var(--amx-reels-safe-top) clamp(20px, 3vw, 46px) 10px;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(3 5 9 / 88%), rgb(3 5 9 / 35%) 65%, transparent);
}

.amx-reels-chrome__back,
.amx-reels-chrome__identity,
.amx-reels-chrome__counter {
  pointer-events: auto;
}

.amx-reels-chrome__back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  color: rgb(255 255 255 / 84%);
  font-size: .76rem;
  font-weight: 850;
  text-decoration: none;
  background: rgb(13 16 23 / 55%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgb(0 0 0 / 16%);
  backdrop-filter: blur(18px) saturate(140%);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

[dir="rtl"] .amx-reels-chrome__back {
  padding-right: 10px;
  padding-left: 14px;
}

.amx-reels-chrome__back:hover,
.amx-reels-chrome__back:focus-visible {
  color: #fff;
  background: rgb(255 255 255 / 12%);
  border-color: rgb(255 255 255 / 28%);
  transform: translateY(-1px);
}

.amx-reels-chrome__back svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[dir="rtl"] .amx-reels-chrome__back svg {
  transform: scaleX(-1);
}

.amx-reels-chrome__identity {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgb(11 14 20 / 52%);
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 999px;
  box-shadow: 0 12px 38px rgb(0 0 0 / 16%);
  backdrop-filter: blur(18px) saturate(135%);
}

.amx-reels-chrome__identity > span {
  position: relative;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  background: linear-gradient(145deg, #ff5574, #d81742);
  border-radius: 9px;
  box-shadow: 0 7px 18px rgb(255 53 91 / 34%);
}

.amx-reels-chrome__identity > span::before,
.amx-reels-chrome__identity > span::after,
.amx-reels-chrome__identity i {
  position: absolute;
  content: "";
  border: 1.5px solid #fff;
  border-radius: 50%;
}

.amx-reels-chrome__identity > span::before {
  inset: 6px;
}

.amx-reels-chrome__identity > span::after {
  width: 4px;
  height: 4px;
  background: #fff;
  border: 0;
}

.amx-reels-chrome__identity i {
  width: 3px;
  height: 3px;
  top: 5px;
  right: 5px;
  background: #fff;
  border: 0;
}

.amx-reels-chrome__identity div {
  display: grid;
  line-height: 1.15;
}

.amx-reels-chrome__identity strong {
  font-size: .78rem;
  font-weight: 900;
}

.amx-reels-chrome__identity small {
  max-width: 24ch;
  margin-top: 3px;
  overflow: hidden;
  color: rgb(255 255 255 / 55%);
  font-size: .58rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.amx-reels-chrome__counter {
  justify-self: end;
  min-width: 75px;
  padding: 9px 12px;
  color: rgb(255 255 255 / 70%);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .7rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  text-align: center;
  background: rgb(11 14 20 / 48%);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 999px;
  backdrop-filter: blur(16px);
}

.amx-reels-viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  touch-action: pan-y;
  outline: none;
}

.amx-reels-viewport::-webkit-scrollbar {
  display: none;
}

.amx-reel-slide {
  --amx-reel-accent: #ff355b;
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 100%;
  place-items: center;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background:
    radial-gradient(circle at 28% 25%, color-mix(in srgb, var(--amx-reel-accent) 22%, transparent), transparent 31rem),
    #05070b;
  isolation: isolate;
}

.amx-reel-slide:nth-child(4n + 2) { --amx-reel-accent: #30cbbb; }
.amx-reel-slide:nth-child(4n + 3) { --amx-reel-accent: #786aff; }
.amx-reel-slide:nth-child(4n + 4) { --amx-reel-accent: #ffb84a; }

.amx-reel-slide__ambient {
  position: absolute;
  z-index: -2;
  inset: -8%;
  background:
    linear-gradient(90deg, rgb(5 7 11 / 90%), rgb(5 7 11 / 57%) 50%, rgb(5 7 11 / 90%)),
    linear-gradient(0deg, #05070b 0%, transparent 38%, #05070b 100%),
    var(--amx-reel-poster, radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--amx-reel-accent) 24%, #121722), #05070b 62%));
  background-position: center;
  background-size: cover;
  filter: blur(32px) saturate(.9);
  opacity: .64;
  transform: scale(1.08);
}

.amx-reel-slide__ambient::after {
  position: absolute;
  content: "";
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 0 20%, rgb(4 6 10 / 34%) 62%, #05070b 100%),
    linear-gradient(180deg, rgb(5 7 11 / 30%), rgb(5 7 11 / 88%));
}

.amx-reel-slide__scene {
  --amx-reel-height: min(calc(100dvh - 104px), 860px);
  --amx-reel-width: calc(var(--amx-reel-height) * .5625);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, var(--amx-reel-width)) 74px;
  align-items: end;
  gap: clamp(16px, 2vw, 26px);
  width: max-content;
  max-width: calc(100vw - 150px);
  height: var(--amx-reel-height);
  margin: 48px auto 0;
}

.amx-reel-slide__frame {
  position: relative;
  width: var(--amx-reel-width);
  height: 100%;
  overflow: hidden;
  background: #030507;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: clamp(20px, 2vw, 30px);
  box-shadow:
    0 44px 110px rgb(0 0 0 / 54%),
    0 0 0 1px rgb(255 255 255 / 3%) inset;
  transform: translateZ(0);
}

.amx-reel-slide__frame::after {
  position: absolute;
  z-index: 2;
  content: "";
  right: 0;
  bottom: 0;
  left: 0;
  height: 58%;
  background: linear-gradient(0deg, rgb(2 4 8 / 91%) 0%, rgb(2 4 8 / 56%) 42%, transparent 100%);
  pointer-events: none;
  transition: opacity 300ms ease;
}

.amx-reels-experience .amx-player--reel {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100% !important;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: #030507;
  border: 0;
  border-radius: inherit;
  box-shadow: none;
}

.amx-reels-experience .amx-player--reel .amx-player__stage {
  isolation: isolate;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  background: #030507;
}

.amx-reel-slide.has-no-poster .amx-player--reel .amx-player__stage::before,
.amx-reel-slide.has-no-poster .amx-player--reel .amx-player__stage::after {
  position: absolute;
  z-index: 1;
  content: "";
  pointer-events: none;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.amx-reel-slide.has-no-poster .amx-player--reel .amx-player__stage::before {
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--amx-reel-accent) 28%, transparent), transparent 25%),
    radial-gradient(circle at 20% 10%, rgb(255 255 255 / 7%), transparent 28%),
    linear-gradient(145deg, color-mix(in srgb, var(--amx-reel-accent) 13%, #071019), #030507 65%);
}

.amx-reel-slide.has-no-poster .amx-player--reel .amx-player__stage::after {
  top: 42%;
  left: 50%;
  width: 64px;
  height: 64px;
  background:
    radial-gradient(circle, #fff 0 3px, transparent 3px 11px, #fff 11px 13px, transparent 13px 22px, rgb(255 255 255 / 34%) 22px 23px, transparent 23px),
    linear-gradient(145deg, #ff5d79, var(--amx-brand));
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 22px;
  box-shadow:
    0 18px 42px rgb(255 53 91 / 36%),
    0 0 0 10px rgb(255 255 255 / 4%);
  transform: translate(-50%, -50%);
  animation: amx-reel-loader-pulse 1.5s ease-in-out infinite;
}

.amx-reel-slide.has-no-poster.is-media-ready .amx-player--reel .amx-player__stage::before,
.amx-reel-slide.has-no-poster.is-media-ready .amx-player--reel .amx-player__stage::after {
  visibility: hidden;
  opacity: 0;
}

.amx-reel-slide.has-no-poster .amx-player--reel .amx-player__video {
  position: relative;
  z-index: 0;
  background: transparent;
}

@keyframes amx-reel-loader-pulse {
  0%, 100% { box-shadow: 0 18px 42px rgb(255 53 91 / 28%), 0 0 0 8px rgb(255 255 255 / 3%); }
  50% { box-shadow: 0 22px 52px rgb(255 53 91 / 44%), 0 0 0 13px rgb(255 255 255 / 5%); }
}

.amx-reels-experience .amx-player--reel .amx-player__video,
.amx-reels-experience .amx-player--reel .amx-player__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #030507;
}

.amx-reels-experience [data-reel-lazy] .amx-player__controls,
.amx-reels-experience .amx-player--reel .amx-player__chapters {
  display: none;
}

.amx-reels-experience .amx-player--reel .amx-player__controls {
  z-index: 7;
  padding: 42px 12px 10px;
  background: linear-gradient(0deg, rgb(2 4 8 / 90%), rgb(2 4 8 / 38%) 64%, transparent);
}

.amx-reels-experience .amx-player--reel .amx-player__control {
  width: 40px;
  height: 40px;
}

.amx-reels-experience .amx-player--reel .amx-player__caption-toggle {
  width: 40px;
  height: 40px;
}

.amx-reel-sound {
  position: absolute;
  z-index: 10;
  top: 16px;
  inset-inline-end: 16px;
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  color: #fff;
  background: rgb(4 6 10 / 52%);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgb(0 0 0 / 25%);
  backdrop-filter: blur(16px) saturate(130%);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.amx-reel-sound:hover,
.amx-reel-sound:focus-visible {
  background: rgb(255 255 255 / 16%);
  border-color: rgb(255 255 255 / 35%);
  transform: scale(1.04);
}

.amx-reel-sound svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.amx-reel-sound svg > path:first-child {
  fill: currentcolor;
  stroke: none;
}

.amx-reel-sound [data-sound-muted] { display: none; }
.amx-reel-sound[aria-pressed="false"] [data-sound-wave] { display: none; }
.amx-reel-sound[aria-pressed="false"] [data-sound-muted] { display: block; }

.amx-reel-slide__copy {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 76px;
  left: 0;
  display: grid;
  gap: 9px;
  padding: 0 clamp(18px, 2.1vw, 27px);
  direction: inherit;
  text-align: start;
  pointer-events: none;
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 260ms ease, transform 300ms cubic-bezier(.2, .8, .2, 1), visibility 260ms step-start;
}

/* Let the footage breathe while it is playing. Pausing or finishing restores
 * the editorial context without requiring another interaction. */
.amx-reel-slide.is-active.is-video-playing .amx-reel-slide__copy {
  visibility: hidden;
  opacity: 0;
  transform: translateY(18px);
  animation: none;
  transition: opacity 220ms ease, transform 260ms ease, visibility 220ms step-end;
}

.amx-reel-slide.is-active.is-video-playing .amx-reel-slide__frame::after {
  opacity: .38;
}

.amx-reel-slide.is-active:is(.is-video-paused, .is-video-ended, .is-video-buffering, .is-video-error, .is-manual-playback) .amx-reel-slide__copy {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  animation: none;
}

.amx-reel-slide__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgb(255 255 255 / 78%);
  font-size: .68rem;
  font-weight: 850;
}

.amx-reel-slide__eyebrow span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 10px;
  color: #fff;
  background: color-mix(in srgb, var(--amx-reel-accent) 80%, #111823);
  border: 1px solid rgb(255 255 255 / 17%);
  border-radius: 999px;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--amx-reel-accent) 22%, transparent);
}

.amx-reel-slide__eyebrow time {
  padding-inline-start: 8px;
  border-inline-start: 1px solid rgb(255 255 255 / 22%);
}

.amx-reel-slide__copy h1,
.amx-reel-slide__copy h2 {
  max-width: 18ch;
  margin: 0;
  color: #fff;
  font-family: var(--amx-display);
  font-size: clamp(1.45rem, 2.25vw, 2.25rem);
  font-weight: 930;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
  text-shadow: 0 3px 24px rgb(0 0 0 / 58%);
}

.amx-reel-slide__copy > p {
  display: -webkit-box;
  max-width: 42ch;
  margin: 0;
  overflow: hidden;
  color: rgb(255 255 255 / 71%);
  font-size: .75rem;
  font-weight: 650;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.amx-reel-context-link {
  justify-self: start;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 6px 0;
  color: rgb(255 255 255 / 83%);
  font-size: .68rem;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 35%);
  text-underline-offset: 4px;
  background: transparent;
  border: 0;
  pointer-events: auto;
}

.amx-reel-context-link:hover,
.amx-reel-context-link:focus-visible {
  color: #fff;
  text-decoration-color: var(--amx-reel-accent);
}

.amx-reel-context-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.amx-reel-slide__rail {
  position: relative;
  z-index: 8;
  display: grid;
  align-self: end;
  gap: 12px;
  padding-bottom: 68px;
}

.amx-reels-actions {
  display: grid;
  width: auto;
  gap: 12px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
}

.amx-reels-action {
  position: relative;
  display: grid;
  width: 60px;
  min-height: 66px;
  padding: 0;
  place-items: center;
  align-content: start;
  gap: 5px;
  color: rgb(255 255 255 / 82%);
  font: inherit;
  background: transparent;
  border: 0;
}

button.amx-reels-action {
  cursor: pointer;
}

/* Reel controls also carry the generic engagement class. Keep its light-theme
 * active surface from painting a second rectangle around the immersive icon. */
.amx-reels-actions .amx-reels-action.is-active,
.amx-reels-actions .amx-reels-action[aria-pressed="true"] {
  color: rgb(255 255 255 / 88%);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.amx-reels-action__icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #fff;
  background: rgb(10 13 19 / 56%);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 18px;
  box-shadow: 0 13px 32px rgb(0 0 0 / 26%);
  backdrop-filter: blur(16px) saturate(135%);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

button.amx-reels-action:hover .amx-reels-action__icon,
button.amx-reels-action:focus-visible .amx-reels-action__icon {
  background: rgb(255 255 255 / 15%);
  border-color: rgb(255 255 255 / 32%);
  transform: translateY(-2px);
}

.amx-reels-action:active .amx-reels-action__icon {
  transform: scale(.94);
}

.amx-reels-action.is-active .amx-reels-action__icon,
.amx-reels-action[aria-pressed="true"] .amx-reels-action__icon {
  color: #fff;
  background: color-mix(in srgb, var(--amx-reel-accent) 82%, #121722);
  border-color: color-mix(in srgb, var(--amx-reel-accent) 72%, #fff);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--amx-reel-accent) 28%, transparent);
}

.amx-reels-action__icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.amx-reels-action--like.is-active .amx-reels-action__icon svg,
.amx-reels-action--like[aria-pressed="true"] .amx-reels-action__icon svg {
  fill: currentcolor;
}

.amx-reels-action__count {
  max-width: 72px;
  overflow: hidden;
  color: rgb(255 255 255 / 72%);
  font-size: .61rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.amx-reels-stepper {
  position: absolute;
  z-index: 30;
  top: 50%;
  inset-inline-end: clamp(22px, 3.2vw, 54px);
  display: grid;
  width: 54px;
  justify-items: center;
  gap: 10px;
  padding: 8px 0;
  transform: translateY(-50%);
}

.amx-reels-stepper button {
  display: grid;
  width: 52px;
  height: 52px;
  padding: 0;
  place-items: center;
  color: #fff;
  background: rgb(10 13 19 / 58%);
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 18px;
  box-shadow: 0 14px 35px rgb(0 0 0 / 25%);
  backdrop-filter: blur(18px) saturate(140%);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.amx-reels-stepper button:hover,
.amx-reels-stepper button:focus-visible {
  background: rgb(255 255 255 / 15%);
  border-color: rgb(255 255 255 / 32%);
  transform: translateY(-2px);
}

.amx-reels-stepper button:disabled {
  opacity: .24;
  cursor: default;
  transform: none;
}

.amx-reels-stepper button:not(:disabled) {
  cursor: pointer;
}

.amx-reels-stepper svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.amx-reels-stepper > span {
  position: relative;
  width: 3px;
  height: 72px;
  overflow: hidden;
  background: rgb(255 255 255 / 16%);
  border-radius: 999px;
}

.amx-reels-stepper > span i {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: max(8px, var(--amx-reels-progress, 0%));
  background: linear-gradient(180deg, #ff5d79, var(--amx-brand));
  border-radius: inherit;
  box-shadow: 0 0 16px rgb(255 53 91 / 62%);
  transition: height 260ms cubic-bezier(.2, .8, .2, 1);
}

.amx-reel-context[hidden] {
  display: none;
}

.amx-reel-context {
  position: fixed;
  z-index: 70;
  inset: 0;
  display: grid;
  place-items: stretch;
}

.amx-reel-context__scrim {
  position: absolute;
  inset: 0;
  background: rgb(2 4 8 / 68%);
  backdrop-filter: blur(12px);
  animation: amx-reel-context-fade 220ms ease both;
}

.amx-reel-context__panel {
  position: relative;
  z-index: 1;
  justify-self: end;
  display: flex;
  width: min(470px, 92vw);
  height: 100%;
  padding: clamp(72px, 9vw, 118px) clamp(28px, 4.5vw, 58px) 46px;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  color: #fff;
  background:
    radial-gradient(circle at 90% 8%, rgb(255 53 91 / 18%), transparent 22rem),
    rgb(10 13 19 / 96%);
  border-inline-start: 1px solid rgb(255 255 255 / 11%);
  box-shadow: -36px 0 90px rgb(0 0 0 / 42%);
  animation: amx-reel-context-in 280ms cubic-bezier(.2, .8, .2, 1) both;
}

[dir="rtl"] .amx-reel-context__panel {
  box-shadow: 36px 0 90px rgb(0 0 0 / 42%);
}

.amx-reel-context__close {
  position: absolute;
  top: max(22px, env(safe-area-inset-top));
  inset-inline-end: 24px;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  color: #fff;
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 16px;
}

.amx-reel-context__close:hover,
.amx-reel-context__close:focus-visible {
  background: rgb(255 255 255 / 14%);
  border-color: rgb(255 255 255 / 28%);
}

.amx-reel-context__close svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.amx-reel-context .amx-section-kicker {
  align-self: flex-start;
  color: #ff7390;
}

.amx-reel-context h2 {
  max-width: 16ch;
  margin: 0;
  color: #fff;
  font-family: var(--amx-display);
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 930;
  line-height: 1.05;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.amx-reel-context__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgb(255 255 255 / 60%);
  font-size: .72rem;
  font-weight: 750;
}

.amx-reel-context__meta span {
  padding: 7px 10px;
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 999px;
}

.amx-reel-context__panel > p {
  margin: 6px 0 0;
  color: rgb(255 255 255 / 76%);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.9;
}

.amx-reel-slide.is-like-burst .amx-reel-slide__frame::before {
  position: absolute;
  z-index: 20;
  top: 50%;
  left: 50%;
  content: "\2665";
  color: #fff;
  font-size: 6.2rem;
  line-height: 1;
  text-shadow: 0 12px 34px rgb(255 53 91 / 72%);
  pointer-events: none;
  animation: amx-reel-like-burst 620ms cubic-bezier(.2, .85, .2, 1) both;
}

@keyframes amx-reel-like-burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(-12deg); }
  35% { opacity: 1; transform: translate(-50%, -50%) scale(1.12) rotate(5deg); }
  70% { opacity: 1; transform: translate(-50%, -50%) scale(.96) rotate(0); }
  100% { opacity: 0; transform: translate(-50%, -66%) scale(1.08); }
}

@keyframes amx-reel-context-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes amx-reel-context-in {
  from { opacity: 0; transform: translateX(34px); }
  to { opacity: 1; transform: translateX(0); }
}

[dir="rtl"] .amx-reel-context__panel {
  animation-name: amx-reel-context-in-rtl;
}

@keyframes amx-reel-context-in-rtl {
  from { opacity: 0; transform: translateX(-34px); }
  to { opacity: 1; transform: translateX(0); }
}

.amx-reel-slide:not(.is-active) .amx-reel-slide__copy,
.amx-reel-slide:not(.is-active) .amx-reel-slide__rail,
.amx-reel-slide:not(.is-active) .amx-reel-sound {
  opacity: .34;
}

.amx-reel-slide.is-active .amx-reel-slide__copy,
.amx-reel-slide.is-active .amx-reel-slide__rail,
.amx-reel-slide.is-active .amx-reel-sound {
  animation: amx-reel-content-in 360ms cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes amx-reel-content-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .amx-reels-chrome {
    grid-template-columns: 1fr auto;
  }

  .amx-reels-chrome__identity {
    display: none;
  }

  .amx-reel-slide__scene {
    max-width: calc(100vw - 104px);
  }

  .amx-reels-stepper {
    inset-inline-end: 14px;
  }
}

@media (max-width: 767px) {
  body.amx-reels-page {
    --amx-reels-safe-top: max(10px, env(safe-area-inset-top));
    --amx-reels-safe-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .admin-bar .amx-reels-experience {
    top: 46px;
    height: calc(100dvh - 46px);
  }

  .amx-reels-chrome {
    min-height: 64px;
    padding: var(--amx-reels-safe-top) 12px 8px;
    background: linear-gradient(180deg, rgb(2 4 8 / 82%), transparent);
  }

  .amx-reels-chrome__back {
    width: 46px;
    min-height: 46px;
    padding: 0;
    justify-content: center;
    background: rgb(4 6 10 / 46%);
  }

  .amx-reels-chrome__back span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .amx-reels-chrome__counter {
    min-width: 66px;
    padding: 8px 10px;
    background: rgb(4 6 10 / 42%);
  }

  .amx-reel-slide__scene {
    --amx-reel-height: 100%;
    --amx-reel-width: 100vw;
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
  }

  .amx-reel-slide__ambient {
    display: none;
  }

  .amx-reel-slide__frame {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .amx-reel-slide__frame::after {
    height: 62%;
    background: linear-gradient(0deg, rgb(2 4 8 / 93%) 0%, rgb(2 4 8 / 52%) 38%, transparent 100%);
  }

  .amx-reel-sound {
    top: calc(var(--amx-reels-safe-top) + 54px);
    inset-inline-end: 14px;
    width: 44px;
    height: 44px;
  }

  .amx-reel-slide__copy {
    right: 76px;
    bottom: calc(78px + var(--amx-reels-safe-bottom));
    left: 0;
    gap: 7px;
    padding: 0 16px;
  }

  [dir="rtl"] .amx-reel-slide__copy {
    right: 0;
    left: 76px;
  }

  .amx-reel-slide__copy h1,
  .amx-reel-slide__copy h2 {
    max-width: 19ch;
    font-size: clamp(1.38rem, 7vw, 2.05rem);
    line-height: 1.12;
  }

  .amx-reel-slide__copy > p {
    max-width: 34ch;
    font-size: .72rem;
    line-height: 1.55;
  }

  .amx-reel-slide__eyebrow {
    font-size: .63rem;
  }

  .amx-reel-slide__eyebrow span {
    min-height: 26px;
  }

  .amx-reel-context-link {
    min-height: 34px;
  }

  .amx-reel-slide__rail {
    position: absolute;
    z-index: 9;
    inset-inline-end: 8px;
    bottom: calc(70px + var(--amx-reels-safe-bottom));
    gap: 9px;
    padding: 0;
  }

  .amx-reels-actions {
    gap: 8px;
  }

  .amx-reels-action {
    width: 62px;
    min-height: 61px;
    gap: 4px;
  }

  .amx-reels-action__icon {
    width: 48px;
    height: 48px;
    border-radius: 17px;
    background: rgb(4 6 10 / 52%);
  }

  .amx-reels-action__count {
    color: rgb(255 255 255 / 82%);
    font-size: .58rem;
  }

  .amx-reels-stepper {
    display: none;
  }

  .amx-reels-experience .amx-player--reel .amx-player__controls {
    padding-right: 10px;
    padding-bottom: calc(8px + var(--amx-reels-safe-bottom));
    padding-left: 10px;
  }

  .amx-reels-experience .amx-player--reel .amx-player__control {
    width: 36px;
    height: 36px;
  }

  .amx-reels-experience .amx-player--reel .amx-player__time,
  .amx-reels-experience .amx-player--reel .amx-player__time-separator {
    font-size: .65rem;
  }

  .amx-reel-context {
    align-items: end;
  }

  .amx-reel-context__panel {
    align-self: end;
    width: 100%;
    height: auto;
    max-height: min(76dvh, 680px);
    padding: 68px 22px calc(28px + env(safe-area-inset-bottom));
    border-top: 1px solid rgb(255 255 255 / 13%);
    border-inline-start: 0;
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -28px 72px rgb(0 0 0 / 48%);
    animation-name: amx-reel-context-up;
  }

  [dir="rtl"] .amx-reel-context__panel {
    animation-name: amx-reel-context-up;
  }

  .amx-reel-context__panel::before {
    position: absolute;
    top: 12px;
    left: 50%;
    width: 42px;
    height: 4px;
    content: "";
    background: rgb(255 255 255 / 22%);
    border-radius: 999px;
    transform: translateX(-50%);
  }

  .amx-reel-context__close {
    top: 18px;
    inset-inline-end: 18px;
    width: 44px;
    height: 44px;
    border-radius: 15px;
  }

  .amx-reel-context h2 {
    max-width: 19ch;
    font-size: clamp(1.85rem, 9vw, 3rem);
  }

  .amx-reel-context__panel > p {
    font-size: .92rem;
    line-height: 1.8;
  }

  @keyframes amx-reel-context-up {
    from { opacity: 0; transform: translateY(38px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 767px) and (orientation: landscape) {
  .amx-reel-slide__copy {
    right: 92px;
    bottom: 58px;
    max-width: 47vw;
  }

  [dir="rtl"] .amx-reel-slide__copy {
    right: 0;
    left: 92px;
  }

  .amx-reel-slide__copy > p,
  .amx-reel-context-link {
    display: none;
  }

  .amx-reel-slide__copy h1,
  .amx-reel-slide__copy h2 {
    font-size: clamp(1.12rem, 4.6vw, 1.7rem);
  }

  .amx-reel-slide__rail {
    bottom: 48px;
    grid-template-columns: repeat(2, 58px);
  }

  .amx-reels-actions {
    grid-template-columns: repeat(2, 58px);
  }

  .amx-reels-action {
    min-height: 54px;
  }

  .amx-reels-action__icon {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .amx-reels-viewport {
    scroll-behavior: auto;
  }

  .amx-reel-slide.is-active .amx-reel-slide__copy,
  .amx-reel-slide.is-active .amx-reel-slide__rail,
  .amx-reel-slide.is-active .amx-reel-sound,
  .amx-reel-context__scrim,
  .amx-reel-context__panel,
  .amx-reel-slide.is-like-burst .amx-reel-slide__frame::before {
    animation: none;
  }

  .amx-reels-stepper > span i,
  .amx-reels-action__icon,
  .amx-reel-sound,
  .amx-reels-stepper button {
    transition: none;
  }
}
