/* Raw visual style (Customizer > appearance > Visual style). Square corners everywhere, condensed capitals for
   headings, menus, labels and buttons, the accent used as a stamp (rules, edges, tags) rather than as a fill, and a
   fire motif: a static glow at the foot of the page and moving flames at the bottom of profile heroes.
   Everything is scoped to body.rxm-style-raw / body.rxm-fire, so the standard style is untouched. */

body.rxm-style-raw {
    --rxm-cond: 'Oswald', 'Arial Narrow', Impact, sans-serif;
    --rxm-line: var(--rxm-border, #3b292e);
}

/* ── Square corners ─────────────────────────────────────────────────────── */
body.rxm-style-raw,
body.rxm-style-raw *,
body.rxm-style-raw *::before,
body.rxm-style-raw *::after { border-radius: 0 !important; }

/* ── Type ───────────────────────────────────────────────────────────────── */
body.rxm-style-raw h1,
body.rxm-style-raw h2,
body.rxm-style-raw h3 { font-family: var(--rxm-cond); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: 1.04; }
body.rxm-style-raw h1.rxm-article__title { font-size: clamp(28px, 3.4vw, 44px); }
body.rxm-style-raw .rxm-profile-hero h1 { font-size: clamp(44px, 6vw, 84px); }
body.rxm-style-raw #rxm-nav a,
body.rxm-style-raw #rxm-mobile-nav a,
body.rxm-style-raw .rxm-breadcrumb,
body.rxm-style-raw .rank-math-breadcrumb { font-family: var(--rxm-cond); text-transform: uppercase; letter-spacing: .05em; font-weight: 500; }
body.rxm-style-raw #rxm-nav a { font-size: 15px; }

/* ── Header: a hard accent rule under it ───────────────────────────────── */
body.rxm-style-raw #rxm-header { border-bottom: 3px solid var(--rxm-accent); box-shadow: none; }

/* ── Cards: hairline frame, no soft shadow ─────────────────────────────── */
body.rxm-style-raw .rxm-article,
body.rxm-style-raw .rxm-card,
body.rxm-style-raw .rxm-widget { border: 1px solid var(--rxm-line); box-shadow: none; }

/* ── Tags and badges: stamps ───────────────────────────────────────────── */
body.rxm-style-raw .rxmpop-badge,
body.rxm-style-raw .rxmpop-badges a,
body.rxm-style-raw .rxmpop-badges span { display: inline-block; font-family: var(--rxm-cond); text-transform: uppercase; letter-spacing: .06em; transform: rotate(-2deg); }
body.rxm-style-raw .rxm-discovery-kicker { display: inline-block; padding: 3px 8px; background: var(--rxm-accent); color: #fff; font-family: var(--rxm-cond); font-size: 14px; letter-spacing: .2em; }

/* ── Scene Info (plugin): accent edge, condensed labels, square tags ───── */
body.rxm-style-raw .rxm-scene-meta { background: var(--rxm-dark, #080506); border: 1px solid var(--rxm-line); border-left: 6px solid var(--rxm-accent); }
body.rxm-style-raw .rxm-scene-meta .rxm-scene-meta__label { font-family: var(--rxm-cond); font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--rxm-accent); opacity: 1; }
body.rxm-style-raw .rxm-scene-meta__chip { padding: 5px 10px; border: 1px solid var(--rxm-line); background: transparent; color: var(--rxm-text); font-family: var(--rxm-cond); font-size: 15px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
body.rxm-style-raw .rxm-scene-meta__chip:hover { border-color: var(--rxm-accent); background: var(--rxm-accent); color: #fff; }
body.rxm-style-raw .rxm-scene-meta__chip--av { padding: 0 10px 0 0; }
body.rxm-style-raw .rxm-scene-meta__av { width: 32px; height: 32px; }
body.rxm-style-raw .rxm-scene-meta__studio-card { background: var(--rxm-bg); border: 1px solid var(--rxm-line); border-left: 3px solid var(--rxm-accent); }
body.rxm-style-raw .rxm-scene-meta__studio-name { color: #fff; font-family: var(--rxm-cond); font-size: 20px; letter-spacing: .02em; text-transform: uppercase; }

/* ── Button under the video (plugin dock) ──────────────────────────────── */
body.rxm-style-raw .rxm-dock__label { font-family: var(--rxm-cond); font-size: 22px; font-weight: 600; letter-spacing: .04em; }
@media (max-width: 899px) { body.rxm-style-raw .rxm-dock__label { font-size: 19px; } }
@media (max-width: 599px) { body.rxm-style-raw .rxm-dock__label { font-size: 17px; } }

/* ── Profile hero (plugin): stamp stats, heavy offer button ─────────────── */
body.rxm-style-raw .rxm-profile-hero { border: 0; border-bottom: 4px solid var(--rxm-accent); box-shadow: none; }
body.rxm-style-raw .rxm-profile-stats span { border: 0; border-left: 3px solid var(--rxm-accent); background: transparent; font-family: var(--rxm-cond); letter-spacing: .04em; text-transform: uppercase; }
body.rxm-style-raw .rxm-profile-stats strong { font-size: 1.4em; }
body.rxm-style-raw .rxm-profile-offer { padding: 0; border: 0; background: transparent; box-shadow: none; }
body.rxm-style-raw .rxm-profile-cta { padding: 18px 34px; border: 0; background: var(--rxm-accent); box-shadow: 6px 6px 0 #000; font-family: var(--rxm-cond); font-size: 24px; letter-spacing: .06em; text-transform: uppercase; }
body.rxm-style-raw .rxm-profile-cta:hover { box-shadow: 3px 3px 0 #000; transform: translate(3px, 3px); }
body.rxm-style-raw .rxm-profile-hero__content p,
body.rxm-style-raw .rxm-profile-stats { text-shadow: 0 1px 3px #000, 0 0 14px rgba(0, 0, 0, .9); }

/* ── Buttons ───────────────────────────────────────────────────────────── */
body.rxm-style-raw .rxm-scene-meta__button,
body.rxm-style-raw .rxm-btn,
body.rxm-style-raw .rxm-spotlight a[class*="cta"] { font-family: var(--rxm-cond); letter-spacing: .05em; text-transform: uppercase; }

/* ── Fire: glow at the foot of the page (static fallback; fire.js replaces it with moving flames) ─────────────────────────── */
body.rxm-fire { position: relative; z-index: 0; }
body.rxm-fire::before { content: ""; position: fixed; right: 0; bottom: 0; left: 0; z-index: -1; height: 80vh; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='700' viewBox='0 0 1600 700' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012 0.0045' numOctaves='4' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 3.2 -1.3'/%3E%3C/filter%3E%3ClinearGradient id='c' x1='0' y1='1' x2='0' y2='0'%3E%3Cstop offset='0' stop-color='%23ff9a14'/%3E%3Cstop offset='.22' stop-color='%23ff5a0a'/%3E%3Cstop offset='.45' stop-color='%23c0213f'/%3E%3Cstop offset='1' stop-color='%233a0010'/%3E%3C/linearGradient%3E%3ClinearGradient id='g' x1='0' y1='1' x2='0' y2='0'%3E%3Cstop offset='0' stop-color='white' stop-opacity='.7'/%3E%3Cstop offset='.5' stop-color='white' stop-opacity='.3'/%3E%3Cstop offset='1' stop-color='white' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cmask id='n'%3E%3Crect width='1600' height='700' filter='url(%23f)'/%3E%3C/mask%3E%3Cmask id='m'%3E%3Crect width='1600' height='700' fill='url(%23g)'/%3E%3C/mask%3E%3C/defs%3E%3Cg mask='url(%23m)'%3E%3Crect width='1600' height='700' fill='url(%23c)' mask='url(%23n)'/%3E%3C/g%3E%3C/svg%3E") center bottom / 100% 100% no-repeat, linear-gradient(to top, rgba(192, 33, 63, .32), rgba(120, 10, 30, .12) 45%, transparent); }

/* ── Fire: moving flames at the bottom of profile heroes ──────────────────
   Markup added by fire.js. Two layers of white noise rise at different speeds (transform only, on the GPU); a
   static fire gradient multiplied over them gives the colour, black elsewhere, and the whole block is screened
   onto the photo so black adds nothing. */
.rxm-flames { position: absolute; right: 0; bottom: 0; left: 0; z-index: 1; height: 60%; overflow: hidden; opacity: .82; pointer-events: none; background: #000; isolation: isolate; mix-blend-mode: screen;
    -webkit-mask-image: linear-gradient(to top, #000 0%, #000 25%, rgba(0, 0, 0, .55) 55%, transparent 100%);
    mask-image: linear-gradient(to top, #000 0%, #000 25%, rgba(0, 0, 0, .55) 55%, transparent 100%); }
.rxm-flames span { position: absolute; top: 0; right: 0; left: 0; height: calc(100% + 400px); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='400'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.022 0.0075' numOctaves='4' seed='23' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 3.6 -1.45'/%3E%3C/filter%3E%3Crect width='600' height='400' filter='url(%23f)'/%3E%3C/svg%3E") 0 0 / 600px 400px repeat; will-change: transform; animation: rxm-flames-rise 3.2s linear infinite; }
.rxm-flames span + span { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='400'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.03 0.01' numOctaves='4' seed='57' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 3.6 -1.45'/%3E%3C/filter%3E%3Crect width='600' height='400' filter='url(%23f)'/%3E%3C/svg%3E"); background-position: -200px 0; opacity: .75; animation-duration: 2.1s; }
.rxm-flames::after { content: ""; position: absolute; inset: 0; mix-blend-mode: multiply; background: linear-gradient(to top, #ffd66b 0%, #ff9a14 12%, #ff5a0a 28%, #e2301d 46%, #b01e3a 64%, #3a0010 100%); animation: rxm-flames-flicker 1.4s ease-in-out infinite alternate; }
.rxm-profile-hero.has-flames .rxm-profile-hero__content,
.rxm-profile-hero.has-flames .rxm-profile-offer { position: relative; z-index: 2; }
@keyframes rxm-flames-rise { to { transform: translateY(-400px); } }
@keyframes rxm-flames-flicker { 0% { opacity: .86; } 50% { opacity: 1; } 100% { opacity: .93; } }

@media (prefers-reduced-motion: reduce) {
    .rxm-flames span,
    .rxm-flames::after { animation: none; }
    body.rxm-style-raw .rxm-profile-cta:hover { transform: none; }
}

body.rxm-fire.has-bgfire::before { display: none; }

/* ── Fire: moving flames behind the whole page (fixed, under the content), in the header, and the page made
   transparent so they show in the margins and between the blocks; the blocks themselves stay solid so text is
   never read over flames ── */
.rxm-bgfire { position: fixed; right: 0; bottom: 0; left: 0; z-index: -1; height: 70vh; overflow: hidden; opacity: .75; pointer-events: none; background: #000; isolation: isolate;
    -webkit-mask-image: linear-gradient(to top, #000 0%, #000 15%, rgba(0, 0, 0, .5) 45%, transparent 100%);
    mask-image: linear-gradient(to top, #000 0%, #000 15%, rgba(0, 0, 0, .5) 45%, transparent 100%); }
.rxm-bgfire span { position: absolute; top: 0; right: 0; left: 0; height: calc(100% + 400px); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='400'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.016 0.006' numOctaves='4' seed='31' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 3.6 -1.45'/%3E%3C/filter%3E%3Crect width='600' height='400' filter='url(%23f)'/%3E%3C/svg%3E") 0 0 / 600px 400px repeat; will-change: transform; animation: rxm-flames-rise 5s linear infinite; }
.rxm-bgfire span + span { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='400'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.024 0.009' numOctaves='4' seed='77' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 3.6 -1.45'/%3E%3C/filter%3E%3Crect width='600' height='400' filter='url(%23f)'/%3E%3C/svg%3E"); background-position: -250px 0; opacity: .7; animation-duration: 3.3s; }
.rxm-bgfire::after { content: ""; position: absolute; inset: 0; mix-blend-mode: multiply; background: linear-gradient(to top, #ffb347 0%, #ff6a10 14%, #e2301d 32%, #a01a32 55%, #3a0010 85%, #000 100%); animation: rxm-flames-flicker 1.8s ease-in-out infinite alternate; }
#rxm-header .rxm-flames { z-index: 0; height: 100%; opacity: .9; }
/* The page background and the header stay still: always on screen, so moving flames there pull the eye from the
   content and keep the graphics card busy on every page. Only the hero flames move. */
.rxm-bgfire span,
.rxm-bgfire::after,
#rxm-header .rxm-flames span,
#rxm-header .rxm-flames::after { animation: none; will-change: auto; }
body.rxm-fire #rxm-header .rxm-header-inner { position: relative; z-index: 1; }
body.rxm-fire .rxm-discovery-page { background: transparent; }
body.rxm-fire .rxm-discovery-section,
body.rxm-fire .rxmpop-section,
body.rxm-fire .rxmpi-section { background: var(--rxm-surface, #1d1417); }
@media (prefers-reduced-motion: reduce) {
    .rxm-bgfire span,
    .rxm-bgfire::after { animation: none; }
}

/* ── Homepage: the page itself transparent so the fire shows around the blocks; every block a solid card ── */
body.rxm-fire .rxm-homepage { background: transparent !important; }
body.rxm-fire .rxm-home > section,
body.rxm-fire .rxm-home > .rxm-home-intro { box-sizing: border-box; padding: 20px; border: 1px solid var(--rxm-line); background: var(--rxm-surface, #1d1417); }
body.rxm-fire .rxm-home > .rxm-home-offer-slot { padding: 0; border: 0; background: transparent; }

/* ── Homepage offer card (plugin): dark card with an accent edge instead of the light card and blue button.
   The plugin's homepage layer sets these with !important, so these must too. ── */
body.rxm-style-raw .rxm-home-offer { border: 1px solid var(--rxm-line); border-left: 6px solid var(--rxm-accent); background: var(--rxm-surface, #1d1417) !important; box-shadow: none !important; color: var(--rxm-text); }
body.rxm-style-raw .rxm-home-offer__copy { background: transparent !important; }
body.rxm-style-raw .rxm-home-offer__badge { display: inline-block; background: var(--rxm-accent) !important; color: #fff !important; font-family: var(--rxm-cond); letter-spacing: .08em; text-transform: uppercase; transform: rotate(-2deg); }
body.rxm-style-raw .rxm-home-offer__title { color: #fff !important; font-family: var(--rxm-cond); font-size: 28px; letter-spacing: .01em; text-transform: uppercase; }
body.rxm-style-raw .rxm-home-offer__text { color: var(--rxm-text) !important; }
body.rxm-style-raw .rxm-home-offer__ends { color: var(--rxm-text-muted) !important; }
body.rxm-style-raw .rxm-home-offer__cta { background: var(--rxm-accent) !important; box-shadow: 5px 5px 0 #000; color: #fff !important; font-family: var(--rxm-cond); font-size: 20px; letter-spacing: .06em; text-transform: uppercase; }

/* ── Photo galleries (plugin): same treatment as profiles and the homepage ── */
body.rxm-fire .rxm-gallery-page { background: transparent !important; }
body.rxm-fire .rxm-gallery-header { background-color: var(--rxm-surface, #1d1417); }

/* ── Scrollbars: thin accent bar instead of the system's white one (the horizontal timeline in particular) ── */
body.rxm-style-raw { scrollbar-color: var(--rxm-border-dark, #584047) var(--rxm-dark, #080506); }
body.rxm-style-raw * { scrollbar-width: thin; scrollbar-color: var(--rxm-accent) var(--rxm-line); }
body.rxm-style-raw .rxmpi-story-list,
body.rxm-style-raw [class*="--horizontal"] { padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: var(--rxm-accent) var(--rxm-line); }
body.rxm-style-raw .rxmpi-story-list::-webkit-scrollbar,
body.rxm-style-raw [class*="--horizontal"]::-webkit-scrollbar { height: 6px; }
body.rxm-style-raw .rxmpi-story-list::-webkit-scrollbar-track,
body.rxm-style-raw [class*="--horizontal"]::-webkit-scrollbar-track { background: var(--rxm-line); }
body.rxm-style-raw .rxmpi-story-list::-webkit-scrollbar-thumb,
body.rxm-style-raw [class*="--horizontal"]::-webkit-scrollbar-thumb { background: var(--rxm-accent); }
