.community-page {
  background: #070a0b;
  color: #dfe3df;
}

.community-spotlight {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
  background:
    linear-gradient(90deg, rgba(5, 9, 10, .97) 0%, rgba(5, 9, 10, .82) 52%, rgba(5, 9, 10, .6) 100%),
    url("/assets/images/wow-forever/og/world-of-warcraft-forever-launches-november-4.webp") center 22% / cover no-repeat;
}

.community-spotlight::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 82% 16%, rgba(145, 71, 255, .13), transparent 24rem),
    linear-gradient(180deg, transparent 38%, #070a0b 84%);
}

.community-spotlight::after {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(211, 171, 96, .48), transparent);
}

.community-spotlight-inner { position: relative; }
.community-hero { max-width: 920px; }

.community-wf-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .33em;
  margin-bottom: clamp(1.5rem, 3vw, 2.3rem);
  color: #e4c98f;
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.community-wf-wordmark span {
  color: #f2e5c8;
  font-size: 1.42em;
  letter-spacing: .02em;
}

.community-kicker {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 .65rem;
  color: #c69e59;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.community-kicker::before {
  width: 2.5rem;
  height: 1px;
  content: "";
  background: #a9803f;
}

.community-hero h1 {
  max-width: 900px;
  margin: 0;
  color: #f3f0e8;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7.2vw, 6rem);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: .9;
  text-transform: uppercase;
}

.community-hero h1 span { color: #d0aa66; }

.community-streamer-name {
  margin: .8rem 0 0;
  color: #fff;
  font-family: var(--sans);
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
  text-shadow: 0 0 34px rgba(145, 71, 255, .2);
}

.community-intro {
  margin: .7rem 0 0;
  color: #b8c0bc;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.streamer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.5rem;
}

.streamer-actions .button {
  min-width: 180px;
  justify-content: center;
}

.button-twitch {
  color: #fff;
  border-color: #a77cff;
  background: linear-gradient(180deg, #9147ff, #6f31c8);
  box-shadow: 0 12px 32px rgba(91, 40, 155, .22);
}

.button-twitch:hover { background: linear-gradient(180deg, #a66cff, #7b3ce0); }

.spotlight-player {
  overflow: hidden;
  margin-top: clamp(2rem, 4vw, 3.2rem);
  border: 1px solid rgba(211, 171, 96, .3);
  background: rgba(5, 8, 9, .96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .48);
}

.spotlight-player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: .85rem clamp(1rem, 2.5vw, 1.7rem);
  border-bottom: 1px solid rgba(211, 171, 96, .2);
  background: linear-gradient(90deg, rgba(18, 25, 26, .98), rgba(10, 14, 15, .98));
}

.spotlight-player-header p {
  margin: 0 0 .15rem;
  color: #b28a49;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.spotlight-player-header h2 {
  margin: 0;
  color: #f2eee5;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1;
}

.spotlight-player-header > span {
  color: #9fa7a3;
  font-size: .78rem;
  letter-spacing: .04em;
}

.twitch-experience {
  display: block;
  width: 100%;
  min-height: 300px;
  aspect-ratio: 16 / 9;
  background: #030405;
}

.twitch-player-slot {
  min-width: 400px;
  min-height: 300px;
  width: 100%;
  height: 100%;
}

.twitch-player-slot iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.twitch-load {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 300px;
  place-items: center;
  padding: 2rem;
  border: 0;
  color: #f2eee5;
  background:
    radial-gradient(circle at center, rgba(145, 71, 255, .16), transparent 32%),
    linear-gradient(145deg, rgba(17, 25, 26, .98), rgba(5, 8, 9, .98));
  cursor: pointer;
}

.twitch-load[hidden],
.twitch-player-slot[hidden],
.twitch-fallback[hidden] {
  display: none !important;
}

.twitch-load::before {
  position: absolute;
  inset: clamp(.75rem, 2vw, 1.4rem);
  border: 1px solid rgba(211, 171, 96, .14);
  content: "";
  pointer-events: none;
}

.twitch-load-copy {
  position: relative;
  display: grid;
  max-width: 34rem;
  justify-items: center;
  gap: .65rem;
}

.twitch-play-mark {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(211, 171, 96, .58);
  border-radius: 50%;
  color: #d9b674;
  background: rgba(4, 6, 7, .82);
  font-size: 1.55rem;
  box-shadow: 0 0 28px rgba(145, 71, 255, .15);
}

.twitch-load strong {
  font: 600 clamp(1.6rem, 4vw, 2.5rem)/1 var(--serif);
}

.twitch-load small {
  color: #9fa7a3;
  font-size: .82rem;
}

.twitch-fallback {
  display: grid;
  min-height: 300px;
  height: 100%;
  place-items: center;
  padding: 2rem;
  color: #f2eee5;
  background: #0a0e0f;
  text-align: center;
}

.community-note {
  max-width: 760px;
  margin: 1rem auto 0;
  color: #7f8984;
  font-size: .78rem;
  text-align: center;
}

@media (max-width: 640px) {
  .community-spotlight { padding-top: 2.2rem; background-position: 62% top; }
  .community-wf-wordmark { margin-bottom: 1.35rem; }
  .community-hero h1 { font-size: clamp(2.6rem, 13vw, 4.4rem); }
  .streamer-actions { display: grid; }
  .streamer-actions .button { width: 100%; }
  .spotlight-player { width: 100vw; margin-top: 1.7rem; margin-left: calc(50% - 50vw); }
  .spotlight-player-header { min-height: 62px; }
  .spotlight-player-header > span { display: none; }
}

@media (max-width: 768px) {
  .community-page:has(.analytics-consent:not([hidden])) .twitch-load-copy {
    transform: translateY(-3.5rem);
  }
}

@media (max-width: 399px) {
  .spotlight-player { width: auto; margin-left: 0; }
  .twitch-load { display: none; }
  .twitch-experience { aspect-ratio: auto; }
  .twitch-fallback[hidden] { display: grid !important; }
}

@media (prefers-reduced-motion: reduce) {
  .community-page * { scroll-behavior: auto !important; transition: none !important; }
}
