/* WoW Hub Forever Players — homepage race block + Forever Home. Dark panels, gold accent. */
.wfp, .wfp * { box-sizing: border-box; }
.wfp {
  --wfp-bg: #111725; --wfp-row: #0d1320; --wfp-line: #232b3d; --wfp-line2: #1f2738;
  --wfp-text: #e7e9ee; --wfp-muted: #8b93a7; --wfp-dim: #5b6478; --wfp-gold: #f5c542;
  color: var(--wfp-text);
}
.wfp-race {
  margin: 16px 0; padding: 18px 22px; border: 1px solid var(--wfp-line); border-radius: 18px;
  background: var(--wfp-bg); box-shadow: inset 0 2px 0 rgba(245, 197, 66, .33);
}
.wfp-race.is-loading { opacity: .7; }
.wfp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 0 0 14px; }
.wfp-kicker { font-size: 12px; letter-spacing: .14em; color: var(--wfp-muted); font-weight: 700; line-height: 1.3; }
.wfp .wfp-title { margin: 2px 0 0; padding: 0; font-size: 22px; line-height: 1.2; font-weight: 800; color: #fff; }
.wfp-sub { color: var(--wfp-muted); font-size: 14px; text-align: right; }

.wfp-worlds { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.wfp .wfp-world {
  margin: 0; padding: 6px 12px; border: 1px solid var(--wfp-line); border-radius: 10px; background: var(--wfp-row);
  color: var(--wfp-muted); font: inherit; font-size: 13px; font-weight: 700; line-height: 1.2; cursor: pointer;
}
.wfp .wfp-world:hover { color: var(--wfp-text); border-color: #3a4560; }
.wfp .wfp-world.is-active { background: var(--wfp-gold); border-color: var(--wfp-gold); color: #1a1300; }

.wfp-stages { display: flex; gap: 4px; margin: 0 0 14px; }
.wfp-stage {
  flex: 4 1 0; min-width: 0; display: flex; justify-content: space-between; gap: 6px; padding: 6px 8px; border-radius: 8px;
  background: #1a2131; color: var(--wfp-dim); font-size: 12px; line-height: 1.3; white-space: nowrap; overflow: hidden;
}
.wfp-stage.is-on { background: #2a2410; color: #d9c48a; }
.wfp-stage.is-front { background: var(--wfp-gold); color: #1a1300; }
.wfp-stage b { font-weight: 800; }

.wfp .wfp-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); grid-auto-flow: column; gap: 6px 12px;
}
@media (max-width: 1100px) { .wfp .wfp-list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(8, auto); } }
.wfp .wfp-row {
  min-width: 0; margin: 0; display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  background: var(--wfp-row); border: 1px solid var(--wfp-line2); border-radius: 12px;
}
.wfp .wfp-gname { color: inherit; text-decoration: none; }
.wfp a.wfp-gname:hover { text-decoration: underline; color: var(--wfp-text); }
.wfp .wfp-gname.is-promoted, .wfp .wfp-gold, .wfp a.wfp-gname.is-promoted:hover { color: var(--wfp-gold); font-weight: 700; }
.wfp-place { flex: none; min-width: 20px; margin-right: -2px; color: var(--wfp-muted); font-weight: 700; font-size: 13px; text-align: right; }
.wfp-cls { flex: none; width: 28px; height: 28px; border-radius: 6px; object-fit: cover; background: #1b2233; border: 1px solid #2a3346; }
.wfp-logo { flex: none; width: 28px; height: 28px; border-radius: 6px; object-fit: cover; background: #1b2233; }
.wfp-info { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.wfp-nick { font-weight: 800; font-size: 15px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wfp-meta { font-size: 12px; line-height: 1.3; color: var(--wfp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wfp-lvl { flex: none; font-weight: 800; font-size: 20px; color: var(--wfp-gold); white-space: nowrap; }
.wfp-lvl small { font-size: 11px; color: var(--wfp-muted); font-weight: 600; }

.wfp-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.wfp-pager { display: flex; align-items: center; gap: 8px; }
.wfp .wfp-prev, .wfp .wfp-next, .wfp .wfp-cprev, .wfp .wfp-cnext, .wfp .wfp-lprev, .wfp .wfp-lnext {
  margin: 0; width: 34px; height: 30px; padding: 0; border: 1px solid var(--wfp-line); border-radius: 8px; background: var(--wfp-row);
  color: var(--wfp-text); font: inherit; font-size: 15px; line-height: 1; cursor: pointer;
}
.wfp button:disabled { opacity: .35; cursor: default; }
.wfp-range { color: var(--wfp-muted); font-size: 13px; min-width: 70px; text-align: center; }
.wfp .wfp-all { color: var(--wfp-gold); font-weight: 700; font-size: 14px; text-decoration: none; }
.wfp .wfp-all:hover { text-decoration: underline; }

@media (max-width: 700px) {
  .wfp-race { padding: 14px; }
  .wfp-head { flex-direction: column; align-items: flex-start; }
  .wfp-sub { text-align: left; }
  .wfp .wfp-list { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  .wfp-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wfp-stage { padding: 6px 8px; }
}

/* ---------- Forever Home ---------- */
.wfp-page-head { margin: 8px 0 18px; }
.wfp .wfp-h1 { margin: 0 0 6px; padding: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.wfp .wfp-lead { margin: 0; color: var(--wfp-muted); font-size: 16px; line-height: 1.5; }
.wfp-home { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 8px 0 24px; }
@media (min-width: 1100px) { .wfp-home { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.wfp-home-main, .wfp-home-side { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.wfp-panel { padding: 18px 20px; border: 1px solid var(--wfp-line); border-radius: 18px; background: var(--wfp-bg); }
.wfp-home-race { box-shadow: inset 0 2px 0 rgba(245, 197, 66, .33); }
.wfp-panel.is-loading, .wfp-table.is-loading { opacity: .7; }
.wfp-empty { margin: 0; color: var(--wfp-muted); font-size: 14px; }
.wfp-pop-h { margin: 0 0 10px; font-size: 12px; letter-spacing: .12em; font-weight: 800; color: var(--wfp-muted); text-transform: uppercase; }

.wfp-filters { display: flex; flex-wrap: nowrap; align-items: flex-end; gap: 10px; margin: 0 0 14px; padding: 12px; border-radius: 14px; background: #0d1320; border: 1px solid var(--wfp-line2); }
.wfp .wfp-field { display: flex; flex-direction: column; gap: 4px; margin: 0; flex: 1 1 0; min-width: 0; }
.wfp .wfp-field-q { flex: 1.6 1 0; }
.wfp-home .wfp-filters .wfp-reset { flex: none; white-space: nowrap; }
@media (max-width: 900px) {
  .wfp-filters { flex-wrap: wrap; }
  .wfp .wfp-field { flex: 1 1 140px; }
  .wfp .wfp-field-q { flex: 1 1 100%; }
}
.wfp-home .wfp-filters .wfp-flabel { display: block; margin: 0; font-size: 11px !important; line-height: 1.3 !important; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--wfp-muted); }
.wfp .wfp-select {
  appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f5c542' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.wfp-home .wfp-filters .wfp-search {
  padding-left: 38px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='5' fill='none' stroke='%238b93a7' stroke-width='2'/%3E%3Cpath d='M11 11l4 4' stroke='%238b93a7' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 12px center;
}
.wfp .wfp-select.is-active, .wfp .wfp-search.is-active { border-color: var(--wfp-gold); color: #fff; }
.wfp-home .wfp-filters .wfp-reset {
  margin: 0 !important; height: 38px !important; padding: 0 14px !important; border: 1px solid var(--wfp-line) !important; border-radius: 10px !important;
  background: transparent !important; box-shadow: none !important; color: var(--wfp-gold) !important; font: inherit; font-size: 13px !important; line-height: 36px !important;
  font-weight: 700; text-transform: none !important; letter-spacing: 0 !important; cursor: pointer; align-self: flex-end;
}
.wfp-home .wfp-filters .wfp-reset:hover { border-color: var(--wfp-gold) !important; }
.wfp-home .wfp-filters .wfp-reset[hidden] { display: none !important; }
.wfp-home .wfp-filters label.wfp-field { margin: 0 !important; padding: 0; font-size: inherit; }
.wfp .wfp-search, .wfp .wfp-select {
  margin: 0; height: 38px; padding: 0 12px; border: 1px solid var(--wfp-line); border-radius: 10px; background-color: var(--wfp-row);
  color: var(--wfp-text); font: inherit; font-size: 14px; line-height: 38px;
}
.wfp .wfp-search, .wfp .wfp-select { width: 100%; min-width: 0; }
.wfp .wfp-crows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wfp .wfp-table-rows {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 6px 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(15, auto); grid-auto-flow: column;
}
@media (max-width: 900px) { .wfp .wfp-table-rows { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; } }

.wfp-pop-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 900px) { .wfp-pop-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); } }
.wfp-fac { display: flex; justify-content: space-between; margin: 0 0 8px; }
.wfp-fac b { display: block; font-size: 28px; line-height: 1.1; font-weight: 800; color: #fff; }
.wfp-fac span { font-size: 14px; font-weight: 700; }
.wfp-fac .is-right { text-align: right; }
.wfp-fac .is-a, .wfp-pop-wl .is-a { color: #6ea0ff; }
.wfp-fac span.is-h { color: #ff5a4f; }
.wfp-facbar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: #1a2131; margin: 0 0 16px; }
.wfp-facbar.is-thin { height: 8px; margin: 0; flex: 1; }
.wfp-facbar i { display: block; height: 100%; }
.wfp-facbar i.is-a { background: #5b8def; }
.wfp-facbar i.is-h { background: #e0352b; }
.wfp .wfp-pop-worlds { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wfp .wfp-pop-worlds li { display: flex; align-items: center; gap: 10px; margin: 0; }
.wfp-pop-wl { width: 64px; font-weight: 700; font-size: 14px; }
.wfp-pop-wn { width: 56px; text-align: right; color: var(--wfp-muted); font-size: 13px; }
.wfp-pop-bars { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; align-items: end; }
.wfp-pop-class { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; }
.wfp-pop-pct { font-size: 11px; font-weight: 700; color: var(--wfp-text); white-space: nowrap; }
.wfp-pop-track { display: flex; align-items: flex-end; width: 100%; height: 170px; }
.wfp-pop-bar { display: block; width: 100%; min-height: 4px; border-radius: 4px 4px 0 0; }
.wfp-pop-class .wfp-cls { width: 24px; height: 24px; }
.wfp .wfp-pop-top { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wfp .wfp-pop-top li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 12px; border: 1px solid var(--wfp-line2); border-radius: 12px; background: var(--wfp-row); }
.wfp-pop-top .wfp-cls { width: 36px; height: 36px; }
.wfp-pop-toppct { font-size: 18px; font-weight: 800; color: #fff; }

.wfp-cgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 640px) { .wfp-cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1300px) { .wfp-cgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wfp-ccard { min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--wfp-line2); border-radius: 14px; background: #0f1522; }
.wfp-chead { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; }
.wfp-ccard .wfp-row { padding: 6px 8px; gap: 8px; }
.wfp-ccard .wfp-nick { font-size: 14px; }
.wfp-ccard .wfp-lvl { font-size: 17px; }
.wfp-ccard .wfp-pager { justify-content: center; margin-top: auto; }

.wfp .wfp-pguilds, .wfp .wfp-news { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wfp .wfp-pguilds li, .wfp .wfp-news li { margin: 0; }
.wfp .wfp-pguild { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--wfp-line2); border-radius: 12px; background: var(--wfp-row); color: var(--wfp-text); text-decoration: none; }
.wfp .wfp-pguild:hover { background: #151c2c; }
.wfp-pguild .wfp-logo { width: 36px; height: 36px; }
.wfp-logo { flex: none; border-radius: 8px; object-fit: cover; background: #1b2233; }
.wfp-ini { display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--wfp-muted); }
.wfp .wfp-news a { display: block; color: var(--wfp-text); font-size: 14px; line-height: 1.4; text-decoration: none; }
.wfp .wfp-news a:hover { color: var(--wfp-gold); }
.wfp-cls-unknown { display: inline-block; }

/* ---------- Homepage sidebar: «До новин ↓» (markup in the builder above «Підтримати») ---------- */
a.wfp-to-news {
  display: flex !important; align-items: center; justify-content: center; gap: 10px; margin: 0 0 16px; padding: 14px 18px;
  border-radius: 14px; background: linear-gradient(135deg, #f5c542, #e0a91f); color: #1a1300 !important;
  font-size: 17px; font-weight: 800; line-height: 1.2; text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(245, 197, 66, .25); transition: transform .15s ease, box-shadow .15s ease;
}
a.wfp-to-news:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(245, 197, 66, .35); }
a.wfp-to-news:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.wfp-to-news-arrow { display: inline-block; font-size: 20px; animation: wfp-bob 1.4s ease-in-out infinite; }
@keyframes wfp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .wfp-to-news-arrow { animation: none; } a.wfp-to-news { transition: none; } }
