/* NW:nwa — National Wrestling Alliance hub. Every rule is scoped to #v-nwa, body.nw-on or the homepage tile/tab,
   so the rest of WWE Unlimited is untouched. Look: Ten Pounds of Gold on black velvet, seen through a late-night CRT. */

/* ---------- homepage tile + tab ---------- */
.x-chan__mark--nwa { position: relative; padding: 10% 8%; background: radial-gradient(90% 80% at 50% 45%, #2a1f05, #000 70%); }
.x-chan__mark--nwa::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.28) 0 1px, transparent 1px 3px);
}
.x-chan__mark--nwa img { position: relative; filter: drop-shadow(0 0 8px rgba(242, 183, 5, 0.35)); }
.x-chan:hover .x-chan__mark--nwa { outline-color: #f2b705; }
.x-tl--nwa { height: 22px; border-radius: 50%; opacity: .85; }
.x-tabbar a[aria-current="page"] .x-tl--nwa { opacity: 1; box-shadow: 0 0 0 1px #f2b705, 0 0 8px rgba(242, 183, 5, .6); }

/* ---------- the world switch ---------- */
body.nw-on {
  --x-red: #f2b705;
  --nw-black: #050505;
  --nw-velvet: #0d0b08;
  --nw-gold: #f2b705;
  --nw-gold-hi: #ffe58a;
  --nw-gold-lo: #9a6a00;
  --nw-cream: #f5ecd2;
  --nw-dim: #b9ab88;
  --nw-osd: #eaf6ff;
  background: var(--nw-black);
  color: var(--nw-cream);
}
body.nw-on .page { background: transparent; }
body.nw-on::before {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(130% 95% at 50% 35%, transparent 55%, rgba(0, 0, 0, 0.7) 100%);
}
body.nw-on::after {
  /* CRT scanlines over the whole world */
  content: ""; position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0.35;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.35) 0 1px, transparent 1px 3px);
}
body.nw-on .x-top { background: rgba(5, 5, 5, 0.9); border-bottom: 1px solid rgba(242, 183, 5, 0.4); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); }
body.nw-on .x-nav a { color: var(--nw-dim); }
body.nw-on .x-nav a:hover { color: var(--nw-gold-hi); }
body.nw-on .x-nav a[aria-current="page"] { color: var(--nw-gold-hi); box-shadow: inset 0 -2px 0 var(--nw-gold); }
body.nw-on .x-count, body.nw-on .foot { color: var(--nw-dim); }
body.nw-on .x-tabbar { background: rgba(5, 5, 5, 0.94); border-top-color: rgba(242, 183, 5, 0.4); }
body.nw-on .x-tabbar a[aria-current="page"] { box-shadow: inset 0 2px 0 var(--nw-gold); color: var(--nw-gold-hi); }

/* ---------- hub ---------- */
#v-nwa { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; color: var(--nw-cream); font-family: "Oswald", "Arial Narrow", Arial, sans-serif; position: relative; z-index: 3; }
#v-nwa button { font-family: inherit; }
.nw-gold-text, .nw-tag, .nw-sec h2 {
  background: linear-gradient(180deg, #fff6c9 0%, #ffd55a 28%, #c98f0a 52%, #ffe08a 70%, #a66f00 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* hero: the NWA starfield, through a CRT */
.nw-hero {
  min-width: 0; position: relative; overflow: hidden; border-radius: 18px; isolation: isolate;
  min-height: clamp(380px, 46vw, 540px); display: grid; place-items: center; text-align: center;
  background: radial-gradient(60% 70% at 50% 45%, #1c1404 0%, #070604 55%, #000 100%);
  border: 1px solid rgba(242, 183, 5, 0.35);
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.9), 0 30px 80px rgba(0, 0, 0, 0.6);
}
.nw-stars { position: absolute; inset: 0; z-index: 0; }
.nw-stars i {
  position: absolute; width: 34px; height: 34px; margin: -17px; transform: scale(var(--s)); opacity: .2;
  background:
    radial-gradient(circle, hsla(var(--h), 100%, 85%, 1) 0 2px, hsla(var(--h), 100%, 60%, .55) 3px, transparent 7px),
    linear-gradient(90deg, transparent 0 46%, hsla(var(--h), 100%, 70%, .7) 50%, transparent 54%) center / 100% 2px no-repeat,
    linear-gradient(0deg, transparent 0 46%, hsla(var(--h), 100%, 70%, .7) 50%, transparent 54%) center / 2px 100% no-repeat;
  animation: nw-twinkle 4s ease-in-out infinite;
}
@keyframes nw-twinkle { 0%, 100% { opacity: .15; transform: scale(calc(var(--s) * .7)) rotate(0deg); } 50% { opacity: 1; transform: scale(var(--s)) rotate(12deg); } }
.nw-scan { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .4) 0 2px, transparent 2px 4px); mix-blend-mode: multiply; }
.nw-track {
  position: absolute; left: 0; right: 0; height: 26px; z-index: 2; pointer-events: none; top: -30px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .06) 40%, rgba(255, 255, 255, .12) 50%, rgba(255, 255, 255, .06) 60%, transparent);
  animation: nw-track 7s linear infinite;
}
@keyframes nw-track { 0% { top: -30px; } 70%, 100% { top: 110%; } }
.nw-rec, .nw-clock {
  position: absolute; z-index: 3; top: 16px; font: 700 clamp(13px, 1.4vw, 17px)/1 "Courier Prime", "Courier New", monospace; letter-spacing: .08em;
  color: var(--nw-osd); text-shadow: 2px 0 0 rgba(0, 140, 255, .55), -2px 0 0 rgba(255, 40, 80, .45);
}
.nw-rec { left: 20px; display: flex; align-items: center; gap: 8px; }
.nw-rec b { width: 0; height: 0; border-left: 11px solid var(--nw-osd); border-top: 7px solid transparent; border-bottom: 7px solid transparent; animation: nw-blink 1.2s steps(2) infinite; }
.nw-clock { right: 20px; }
@keyframes nw-blink { 50% { opacity: 0; } }
.nw-hero__in { position: relative; z-index: 3; display: grid; justify-items: center; gap: 10px; padding: 56px 20px 40px; }
.nw-logo { margin: 0; line-height: 0; }
.nw-logo img { width: clamp(220px, 34vw, 400px); height: auto; filter: drop-shadow(0 0 22px rgba(242, 183, 5, .35)) drop-shadow(0 6px 10px rgba(0, 0, 0, .8)); animation: nw-glow 5s ease-in-out infinite; }
@keyframes nw-glow { 50% { filter: drop-shadow(0 0 36px rgba(242, 183, 5, .55)) drop-shadow(0 6px 10px rgba(0, 0, 0, .8)); } }
.nw-tag { margin: 6px 0 0; font: 400 clamp(30px, 5vw, 58px)/1 "Anton", Impact, "Arial Narrow", sans-serif; letter-spacing: .06em; text-transform: uppercase; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .9)); }
.nw-sub { margin: 0; font: 400 clamp(13px, 1.4vw, 16px)/1.4 "Courier Prime", "Courier New", monospace; color: var(--nw-dim); letter-spacing: .06em; text-transform: uppercase; }
.nw-sub b { color: var(--nw-gold); }
.nw-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.nw-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 4px; cursor: pointer;
  font: 600 15px/1 "Oswald", "Arial Narrow", sans-serif !important; letter-spacing: .12em; text-transform: uppercase;
  color: var(--nw-cream); background: rgba(255, 255, 255, .06); border: 1px solid rgba(242, 183, 5, .45);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.nw-btn svg { width: 18px; height: 18px; }
.nw-btn:hover { background: rgba(242, 183, 5, .14); transform: translateY(-1px); }
.nw-btn--gold { color: #1a1200; border: 0; background: linear-gradient(180deg, #ffeaa0, #f2b705 45%, #c78a00 100%); box-shadow: 0 0 0 1px #6b4a00 inset, 0 8px 22px rgba(242, 183, 5, .3); }
.nw-btn--gold:hover { background: linear-gradient(180deg, #fff3c4, #ffc928 45%, #d69500 100%); box-shadow: 0 0 0 1px #6b4a00 inset, 0 10px 30px rgba(242, 183, 5, .45); }
.nw-snd .nw-ico-on, .nw-float .nw-ico-on { display: none; }
.nw-snd.is-live .nw-ico-on, .nw-float.is-live .nw-ico-on { display: block; }
.nw-snd.is-live .nw-ico-off, .nw-float.is-live .nw-ico-off { display: none; }
.nw-hint { margin: 2px 0 0; font: 400 13px/1 "Courier Prime", monospace; color: var(--nw-dim); letter-spacing: .08em; text-transform: uppercase; animation: nw-blink 1.6s steps(2) infinite; }

/* channel dial */
.nw-dial {
  position: sticky; top: var(--x-top-h, 60px); z-index: 5; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin: 18px 0 6px; padding: 10px 2px; background: linear-gradient(180deg, rgba(5, 5, 5, .96), rgba(5, 5, 5, .88));
  border-top: 1px solid rgba(242, 183, 5, .25); border-bottom: 1px solid rgba(242, 183, 5, .25);
}
.nw-dial::-webkit-scrollbar { display: none; }
.nw-dial button {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 3px; cursor: pointer;
  font: 600 14px/1 "Oswald", sans-serif !important; letter-spacing: .1em; text-transform: uppercase; color: var(--nw-cream);
  background: #141109; border: 1px solid rgba(242, 183, 5, .25);
}
.nw-dial button span { font: 700 12px/1 "Courier Prime", monospace; color: var(--nw-gold); padding: 3px 5px; border: 1px solid rgba(242, 183, 5, .5); border-radius: 2px; }
.nw-dial button:hover { border-color: var(--nw-gold); color: var(--nw-gold-hi); }

/* sections */
.nw-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; padding-top: 14px; }
.nw-sec { min-width: 0; scroll-margin-top: calc(var(--x-top-h, 60px) + 70px); }
.nw-sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.nw-sec__ttl { min-width: 0; max-width: 100%; position: relative; padding-left: 16px; border-left: 4px solid var(--nw-gold); }
.nw-sec__ch { position: absolute; right: 0; top: 0; }
.nw-sec__ch { display: none; }
.nw-sec__kick { margin: 0 0 4px; font: 700 12px/1 "Courier Prime", monospace; letter-spacing: .2em; text-transform: uppercase; color: var(--nw-gold); }
.nw-sec h2 { margin: 0; font: 400 clamp(26px, 3.2vw, 38px)/1.05 "Anton", Impact, sans-serif; letter-spacing: .03em; text-transform: uppercase; }
.nw-sec__blurb { margin: 6px 0 0; font: 400 14px/1.4 "Oswald", sans-serif; color: var(--nw-dim); letter-spacing: .02em; max-width: 60ch; }
.nw-all { flex: none; min-height: 38px; padding: 0 14px; border-radius: 3px; cursor: pointer; font: 600 13px/1 "Oswald", sans-serif !important; letter-spacing: .12em; text-transform: uppercase; color: var(--nw-gold-hi); background: transparent; border: 1px solid rgba(242, 183, 5, .45); }
.nw-all:hover { background: rgba(242, 183, 5, .12); }
.nw-rail { list-style: none; margin: 0; padding: 4px 2px 12px; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 23vw, 290px); gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #5a4300 transparent; }
.nw-rail > li { scroll-snap-align: start; }
.nw-sec.is-grid .nw-rail { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); overflow: visible; }
.nw-more { display: block; margin: 8px auto 0; min-height: 42px; padding: 0 26px; border-radius: 3px; cursor: pointer; font: 600 14px/1 "Oswald", sans-serif !important; letter-spacing: .14em; text-transform: uppercase; color: #1a1200; border: 0; background: linear-gradient(180deg, #ffeaa0, #f2b705 45%, #c78a00); }
.nw-more[hidden] { display: none; }

/* cards: a tape on the shelf */
.nw-card { display: grid; gap: 8px; width: 100%; padding: 0; text-align: left; cursor: pointer; color: inherit; background: none; border: 0; }
.nw-card__art { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: #111; border: 1px solid rgba(242, 183, 5, .2); transition: border-color .2s, box-shadow .2s, transform .25s; }
.nw-card__art img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.9) contrast(1.05); transition: filter .25s, transform .4s; }
.nw-card__art::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px), linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .65)); }
.nw-osd { position: absolute; z-index: 2; font: 700 12px/1 "Courier Prime", "Courier New", monospace; letter-spacing: .06em; color: var(--nw-osd); text-shadow: 1px 0 0 rgba(0, 140, 255, .7), -1px 0 0 rgba(255, 40, 80, .6), 0 1px 2px #000; }
.nw-osd--tl { left: 8px; top: 8px; opacity: 0; transition: opacity .2s; }
.nw-osd--br { right: 8px; bottom: 8px; }
.nw-card__play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px; border-radius: 50%; display: grid; place-items: center; color: #1a1200; background: linear-gradient(180deg, #ffeaa0, #f2b705 50%, #c78a00); box-shadow: 0 6px 18px rgba(0, 0, 0, .6); opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s; }
.nw-card__play svg { width: 22px; height: 22px; margin-left: 3px; }
.nw-card__bar { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .2); }
.nw-card__bar i { display: block; height: 100%; background: var(--nw-gold); }
.nw-card__bar[hidden] { display: none; }
.nw-card:hover .nw-card__art, .nw-card:focus-visible .nw-card__art { border-color: var(--nw-gold); box-shadow: 0 0 0 1px var(--nw-gold), 0 12px 30px rgba(242, 183, 5, .18); transform: translateY(-2px); }
.nw-card:hover .nw-card__art img { filter: saturate(1.1) contrast(1.1); transform: scale(1.04); }
.nw-card:hover .nw-osd--tl, .nw-card:focus-visible .nw-osd--tl { opacity: 1; animation: nw-blink 1s steps(2) infinite; }
.nw-card:hover .nw-card__play, .nw-card:focus-visible .nw-card__play { opacity: 1; transform: scale(1); }
.nw-card:focus-visible { outline: none; }
.nw-card__b { display: grid; gap: 3px; }
.nw-card__k { font: 700 11px/1 "Courier Prime", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--nw-gold); }
.nw-card__t { font: 400 15px/1.3 "Oswald", "Arial Narrow", sans-serif; color: var(--nw-cream); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.nw-foot { margin: 34px 0 10px; text-align: center; font: 400 13px/1.5 "Courier Prime", monospace; color: var(--nw-dim); letter-spacing: .04em; }
.nw-foot a { color: var(--nw-gold-hi); }

/* floating sound button */
.nw-float {
  position: fixed; z-index: 40; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; cursor: pointer; font: 600 13px/1 "Oswald", sans-serif !important; letter-spacing: .12em; text-transform: uppercase;
  color: var(--nw-cream); background: rgba(10, 8, 4, .92); border: 1px solid rgba(242, 183, 5, .5); box-shadow: 0 8px 24px rgba(0, 0, 0, .6);
}
.nw-float svg { width: 18px; height: 18px; }
.nw-eq { display: none; align-items: flex-end; gap: 2px; height: 14px; }
.nw-float.is-live .nw-eq { display: inline-flex; }
.nw-eq i { width: 3px; background: var(--nw-gold); animation: nw-eq .8s ease-in-out infinite; }
.nw-eq i:nth-child(2) { animation-delay: -.2s; } .nw-eq i:nth-child(3) { animation-delay: -.45s; } .nw-eq i:nth-child(4) { animation-delay: -.65s; }
@keyframes nw-eq { 0%, 100% { height: 3px; } 50% { height: 14px; } }
body:not(.nw-on) .nw-float { display: none; }

@media (max-width: 699px) {
  .nw-hero { border-radius: 12px; min-height: 0; }
  .nw-hero__in { padding: 52px 16px 28px; }
  .nw-rec, .nw-clock { top: 12px; font-size: 12px; }
  .nw-rec { left: 12px; } .nw-clock { right: 12px; }
  .nw-acts { width: 100%; }
  .nw-btn { flex: 1 1 auto; justify-content: center; }
  .nw-sec__head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .nw-rail { grid-auto-columns: 74%; }
  .nw-sec.is-grid .nw-rail { grid-template-columns: 1fr 1fr; gap: 12px; }
  .nw-sec.is-grid .nw-card__t { font-size: 13px; }
  .nw-float { bottom: calc(env(safe-area-inset-bottom, 0px) + 76px); left: 12px; min-height: 40px; padding: 0 12px; }
  .nw-float [data-nw-sndlabel] { display: none; }
  .nw-sec.is-grid .nw-rail > li, .nw-rail > li { min-width: 0; }
  .nw-dial { top: var(--x-top-h, 56px); }
}
@media (prefers-reduced-motion: reduce) {
  .nw-stars i, .nw-track, .nw-logo img, .nw-rec b, .nw-hint, .nw-eq i { animation: none !important; }
  .nw-stars i { opacity: .6; }
}

/* homepage promo banner (full row under the NXT / WCW / ECW promos) */
.x-promo--nwa {
  grid-column: 1 / -1; justify-content: center; gap: 22px; min-height: 104px; color: #f5ecd2; isolation: isolate;
  background: radial-gradient(50% 120% at 50% 50%, #241a03, #000 75%); box-shadow: inset 0 0 0 1px rgba(242, 183, 5, .45);
}
.x-promo--nwa::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .3) 0 1px, transparent 1px 3px); }
.x-promo--nwa .x-promo__mark { height: 74px; width: auto; filter: drop-shadow(0 0 12px rgba(242, 183, 5, .35)); }
.x-promo--nwa strong { font-family: "Anton", Impact, "Arial Narrow", sans-serif; font-weight: 400; letter-spacing: .05em; text-transform: uppercase; font-size: 22px; color: #ffd55a; }
.x-promo--nwa small { font-family: "Courier Prime", "Courier New", monospace; letter-spacing: .06em; text-transform: uppercase; color: #cdbd93; }
.x-promo--nwa:hover { box-shadow: inset 0 0 0 1px #f2b705, 0 0 30px rgba(242, 183, 5, .15); }
.x-promo--nwa .nw-pst { position: absolute; z-index: -1; width: 22px; height: 22px; margin: -11px; opacity: .7; background: radial-gradient(circle, #fff 0 1.5px, rgba(255, 213, 90, .5) 2.5px, transparent 6px), linear-gradient(90deg, transparent 45%, rgba(255, 213, 90, .7) 50%, transparent 55%) center / 100% 1.5px no-repeat, linear-gradient(0deg, transparent 45%, rgba(255, 213, 90, .7) 50%, transparent 55%) center / 1.5px 100% no-repeat; animation: nw-twinkle 4s ease-in-out infinite; --s: 1; }
@keyframes nw-twinkle { 0%, 100% { opacity: .15; transform: scale(calc(var(--s) * .7)) rotate(0deg); } 50% { opacity: 1; transform: scale(var(--s)) rotate(12deg); } }
@media (max-width: 699px) { .x-promo--nwa { justify-content: flex-start; } .x-promo--nwa .x-promo__mark { height: 60px; } .x-promo--nwa strong { font-size: 19px; } }

/* tidier mobile tab bar: smaller, evenly sized logos (applies site-wide) */
@media (max-width: 699px) {
  nav.x-tabbar a { grid-template-rows: 20px auto; align-content: center; align-items: center; gap: 4px; padding: 0 1px; overflow: hidden; }
  nav.x-tabbar a > img, nav.x-tabbar a > svg { align-self: center; justify-self: center; margin: 0 auto; }
  nav.x-tabbar .x-tl { height: 15px; max-width: 30px; width: auto; }
  nav.x-tabbar .x-tl.x-tl--lucha { height: 19px; max-width: 22px; }
  nav.x-tabbar .x-tl.x-tl--nwa { height: 19px; width: 19px; max-width: 19px; }
  nav.x-tabbar svg { width: 19px; height: 19px; }
}
