/* Rising Stars — Legends social polish
 * Right-rail league widgets, empty state, publisher, feed cards, nav priority.
 */

/* ---- Explore links (full opacity) ---- */
body .main-side-nav a[href*="/jobs"],
body .main-side-nav a[href*="/courses"],
body .main-side-nav a[href*="/forums"] {
  opacity: 1;
}
body .main-side-nav a[href*="/jobs"]:hover,
body .main-side-nav a[href*="/courses"]:hover,
body .main-side-nav a[href*="/forums"]:hover {
  opacity: 1;
}

/* Soften side social icons */
body .main-side-nav .esports-social-btn,
body .side-nav .esports-social-btn {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(120, 160, 200, 0.12) !important;
}

/* ---- Empty feed state ---- */
.rs-empty {
  text-align: center;
  padding: 2.5rem 1.25rem 2rem;
  border: 1px solid rgba(120, 160, 200, 0.14);
  border-radius: 4px;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(40, 100, 180, 0.14), transparent 65%),
    linear-gradient(180deg, rgba(16, 22, 34, 0.8), rgba(6, 9, 14, 0.95));
  box-shadow: 0 0 0 1px rgba(80, 140, 200, 0.06), 0 18px 40px rgba(0, 0, 0, 0.4);
}
.rs-empty__mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #c5c9d2;
  font-family: var(--oc-font-display, "Cinzel"), sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  box-shadow: none;
}
.rs-empty__title {
  margin: 0 0 0.45rem;
  font-family: var(--oc-font-display, "Cinzel"), sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}
.rs-empty__lede {
  margin: 0 auto 1.25rem;
  max-width: 36ch;
  color: var(--rs-muted, #8b93a3);
  font-size: 0.9rem;
  line-height: 1.55;
}
.rs-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

/* ---- Right rail league widgets ---- */
.rs-rail {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.rs-rail__card {
  position: relative;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 4px;
  border: 1px solid rgba(120, 160, 200, 0.14);
  background:
    linear-gradient(180deg, rgba(18, 24, 36, 0.7) 0%, rgba(8, 11, 18, 0.96) 100%);
  box-shadow:
    0 0 0 1px rgba(80, 140, 200, 0.06),
    0 0 28px rgba(30, 90, 160, 0.1),
    0 16px 36px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.rs-rail__card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(140, 190, 240, 0.06), transparent 30%);
}
.rs-rail__card > * { position: relative; z-index: 1; }

.rs-rail__card--cta {
  background:
    radial-gradient(80% 90% at 90% 20%, rgba(40, 120, 200, 0.22), transparent 55%),
    linear-gradient(160deg, rgba(22, 28, 42, 0.95), rgba(6, 9, 14, 0.98));
  border-color: rgba(200, 170, 110, 0.28);
}
.rs-rail__eyebrow {
  margin: 0 0 0.35rem;
  font-family: var(--oc-font-display, "Cinzel"), sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rs-gold, #c8aa6e);
}
.rs-rail__title {
  margin: 0 0 0.45rem;
  font-family: var(--oc-font-display, "Cinzel"), sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
}
.rs-rail__lede {
  margin: 0 0 0.95rem;
  color: #a8b0c0;
  font-size: 0.82rem;
  line-height: 1.5;
}
.rs-rail__actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.rs-rail__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.55rem;
  background: linear-gradient(90deg, transparent, rgba(200, 170, 110, 0.4), transparent) bottom / 100% 1px no-repeat;
}
.rs-rail__head h3 {
  margin: 0;
  font-family: var(--oc-font-display, "Cinzel"), sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}
.rs-rail__head a {
  font-family: var(--oc-font-display, "Cinzel"), sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rs-gold, #c8aa6e) !important;
  text-decoration: none !important;
}

.rs-rail-match {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
}
.rs-rail-match__meta,
.rs-rail-match__when {
  margin: 0;
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7f8696;
}
.rs-rail-match__when { margin-top: 0.55rem; }
.rs-rail-match__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.65rem;
}
.rs-rail-match__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}
.rs-rail-match__side img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(14, 31, 61, 0.7);
}
.rs-rail-match__side img.is-glow-purple {
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.35), 0 0 18px rgba(139, 92, 246, 0.45);
}
.rs-rail-match__side img.is-glow-red {
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.35), 0 0 18px rgba(239, 68, 68, 0.45);
}
.rs-rail-match__side strong {
  font-family: var(--oc-font-display, "Cinzel"), sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #fff;
}
.rs-rail-match__vs {
  font-family: var(--oc-font-display, "Cinzel"), sans-serif;
  font-size: 0.75rem;
  color: #9aa1b0;
  letter-spacing: 0.06em;
}

.rs-rail-ranks {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rs-rail-ranks li {
  display: grid;
  grid-template-columns: 1.4rem 1fr auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.42rem 0.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.rs-rail-ranks li:last-child { border-bottom: 0; }
.rs-rail-ranks li.is-top {
  background: rgba(200, 170, 110, 0.08);
  border-radius: 3px;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}
.rs-rail-ranks__n {
  font-family: "Rajdhani", var(--oc-font-display, "Cinzel"), sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #8b93a3;
}
.rs-rail-ranks li.is-top .rs-rail-ranks__n { color: #e0c080; }
.rs-rail-ranks__team {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  color: #e8ecf4 !important;
  text-decoration: none !important;
  font-size: 0.8rem;
  font-weight: 600;
}
.rs-rail-ranks__team img,
.rs-rail-ranks__team .dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}
.rs-rail-ranks__team .dot { display: inline-block; }
.rs-rail-ranks__team span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rs-rail-ranks__wl {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.85rem;
  color: #8b93a3;
  letter-spacing: 0.04em;
}

/* ---- Publisher ---- */
body .publisher,
body #publisher-box.publisher,
body .x-form.publisher {
  background:
    linear-gradient(180deg, rgba(18, 24, 36, 0.75) 0%, rgba(8, 11, 18, 0.96) 100%) !important;
  border: 1px solid rgba(120, 160, 200, 0.16) !important;
  border-radius: 4px !important;
  box-shadow:
    0 0 0 1px rgba(80, 140, 200, 0.06),
    0 16px 40px rgba(0, 0, 0, 0.45) !important;
  overflow: hidden;
}
body .publisher-message textarea,
body .publisher .colored-text-wrapper textarea {
  background: rgba(3, 5, 10, 0.55) !important;
  border: 1px solid rgba(120, 160, 200, 0.12) !important;
  border-radius: 4px !important;
  color: #f0e6d2 !important;
}
body .publisher-message textarea:focus,
body .publisher .colored-text-wrapper textarea:focus {
  border-color: rgba(200, 170, 110, 0.45) !important;
  box-shadow: 0 0 0 0.12rem rgba(200, 170, 110, 0.12) !important;
}
body .publisher-tools-tabs {
  border-color: rgba(120, 160, 200, 0.1) !important;
  background: rgba(4, 7, 12, 0.45) !important;
}
body .publisher-tools-tab,
body.night-mode .publisher-tools-tab {
  background: transparent !important;
  border: 1px solid transparent !important;
  color: #c5c9d2 !important;
  border-radius: 4px !important;
}
body .publisher-tools-tab:hover {
  background: rgba(200, 170, 110, 0.08) !important;
  border-color: rgba(200, 170, 110, 0.2) !important;
  color: #fff !important;
}
body .publisher-tools-tab .main-icon,
body .publisher-tools-tab .main-icon *,
body .publisher-tools-tab svg {
  color: #c5c9d2 !important;
  fill: #c5c9d2 !important;
  stroke: #c5c9d2 !important;
}
body .publisher-tools-tab:hover .main-icon,
body .publisher-tools-tab:hover .main-icon * {
  color: var(--rs-gold, #c8aa6e) !important;
  fill: var(--rs-gold, #c8aa6e) !important;
  stroke: var(--rs-gold, #c8aa6e) !important;
}
body .publisher-footer {
  background: rgba(4, 7, 12, 0.5) !important;
  border-top: 1px solid rgba(120, 160, 200, 0.1) !important;
}
body .publisher-footer .js_publisher,
body .publisher-footer .btn.btn-primary.js_publisher {
  min-width: 7rem;
}

/* ---- Feed posts ---- */
body .post {
  border-radius: 4px !important;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
body .post:hover {
  border-color: rgba(200, 170, 110, 0.28) !important;
  box-shadow:
    0 0 0 1px rgba(200, 170, 110, 0.08),
    0 0 28px rgba(10, 160, 200, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.45) !important;
}
body .post-header,
body .post-title {
  letter-spacing: 0.01em;
}
body .post-header .post-meta,
body .post .text-muted,
body .post-time,
body .js_moment {
  color: #8b93a3 !important;
  font-size: 0.8rem;
}
body .post-stats,
body .post-actions {
  border-color: rgba(120, 160, 200, 0.1) !important;
}
body .post-actions li a,
body .post-actions .action-btn {
  color: #c5c9d2 !important;
  letter-spacing: 0.04em;
}
body .post-actions li a:hover,
body .post-actions .action-btn:hover {
  color: var(--rs-gold, #c8aa6e) !important;
}

/* Filter / Recent Updates */
body .feeds-filter,
body .js_posts-filter,
body .dropdown > .btn.btn-light {
  border-radius: 4px !important;
}

/* Guest header auth cluster */
body .main-header .rs-auth {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
body .main-header .rs-auth > li,
body .main-header li.rs-auth {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
body .main-header .rs-auth .rs-btn {
  white-space: nowrap;
}
body .main-header .rs-auth__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #c5c9d2 !important;
  text-decoration: none !important;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.1rem;
  line-height: 1;
}
body .main-header .rs-auth__more::after {
  display: none;
}
body .main-header .rs-auth__more:hover {
  color: var(--rs-gold, #c8aa6e) !important;
  border-color: rgba(200, 170, 110, 0.4);
}

/* Mini footer tuck under rail */
body .js_sticky-sidebar .footer-mini,
body .js_sticky-sidebar .mini-footer,
body .col-lg-4 .footer {
  opacity: 0.7;
  font-size: 0.75rem;
}

/* Profile header polish */
body .profile-header {
  border: 1px solid rgba(120, 160, 200, 0.14) !important;
  box-shadow: 0 0 40px rgba(30, 90, 160, 0.12), 0 18px 48px rgba(0, 0, 0, 0.45) !important;
}
body .profile-header-content {
  background: linear-gradient(180deg, transparent, rgba(5, 7, 11, 0.85)) !important;
}

@media (max-width: 991.98px) {
  .rs-rail { margin-top: 0.75rem; }
}

/* ---- Header language selector (replaces +) ---- */
body .main-header .rs-header-lang {
  list-style: none;
  margin: 0;
  padding: 0;
}
body .main-header .rs-header-lang__btn {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  height: 40px;
  padding: 0 0.45rem;
  color: #c5c9d2 !important;
  text-decoration: none !important;
  font-family: var(--oc-font-display, Cinzel, serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body .main-header .rs-header-lang__btn::after { display: none; }
body .main-header .rs-header-lang__btn:hover {
  color: var(--rs-gold, #c8aa6e) !important;
}
body .main-header .rs-header-lang__btn img {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
}

/* Guest auth: desktop buttons + mobile avatar */
body .main-header .rs-auth__desktop {
  display: none;
  align-items: center;
  gap: 0.4rem;
}
@media (min-width: 768px) {
  body .main-header .rs-auth__desktop {
    display: inline-flex !important;
  }
}
body .main-header .rs-auth__avatar {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(200, 170, 110, 0.45);
  overflow: hidden;
  text-decoration: none !important;
}
body .main-header .rs-auth__avatar::after { display: none; }
body .main-header .rs-auth__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body .main-header .rs-auth__avatar:hover {
  border-color: var(--rs-gold, #c8aa6e);
  box-shadow: 0 0 12px rgba(200, 170, 110, 0.25);
}
body .main-header .rs-auth .rs-btn--sm {
  padding: 0.28rem 0.7rem !important;
  font-size: 0.68rem !important;
  min-height: 0 !important;
  height: auto !important;
}

/* Post actions hover override (beats style.css gray pill) */
body .post-actions .action-btn:hover,
body.night-mode .post-actions .action-btn:hover {
  background: rgba(200, 170, 110, 0.1) !important;
  border-radius: 0 !important;
  color: var(--rs-gold, #c8aa6e) !important;
}

/* ---- Right-rail polish (Next Match / Rankings) ---- */
body .rs-rail__card {
  border-radius: 0 !important;
  border: 1px solid rgba(120, 90, 40, 0.5) !important;
  background:
    linear-gradient(180deg, rgba(22, 44, 74, 0.78) 0%, rgba(12, 28, 52, 0.94) 100%) !important;
  box-shadow:
    0 0 0 1px rgba(26, 58, 92, 0.75),
    inset 0 0 0 1px rgba(200, 170, 110, 0.12),
    0 14px 32px rgba(0, 0, 0, 0.4) !important;
}
body .rs-rail__card::before {
  inset: 5px !important;
  border: 1px solid rgba(10, 150, 170, 0.16);
  background: transparent !important;
  box-shadow: none !important;
}
/* Header: underline only — remove gold plaque / bar */
body .rs-rail__head {
  align-items: center !important;
  margin: 0 0 0.75rem !important;
  padding: 0 0 0.55rem !important;
  border: 0 !important;
  background: linear-gradient(90deg, transparent, rgba(200, 170, 110, 0.5), transparent) bottom / 100% 1px no-repeat !important;
  box-shadow: none !important;
}
body .rs-rail__head h3 {
  color: #f0e6d2 !important;
  letter-spacing: 0.16em !important;
  margin: 0 !important;
}
body .rs-rail-match {
  background: rgba(14, 31, 61, 0.28) !important;
  border-color: rgba(200, 170, 110, 0.16) !important;
}
body .rs-rail-match__row {
  gap: 0.55rem;
  margin-top: 0.55rem;
}
body .rs-rail-match__side img {
  border: 1px solid rgba(200, 170, 110, 0.28);
  background: rgba(14, 31, 61, 0.6) !important;
}
body .rs-rail-ranks {
  background: transparent !important;
}
body .rs-rail-ranks li {
  padding: 0.38rem 0.35rem;
  background: transparent !important;
}
body .rs-rail-ranks li.is-top {
  background: linear-gradient(90deg, rgba(200, 170, 110, 0.14), transparent 85%) !important;
  border-radius: 0;
  border: 1px solid rgba(200, 170, 110, 0.18);
}

/* Hide friends/chat vertical rail everywhere (social + pages) */
body .chat-sidebar,
body .chat-bar,
body #chat-box,
body .x-chat {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
@media (min-width: 1200px) {
  body .main-wrapper,
  body .main-header,
  body .top-bar {
    padding-right: 0 !important;
  }
}

/* Mobile guest avatar placement (header) */
body .main-header .navbar-wrapper > ul > li.rs-auth {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  margin: 0 !important;
  padding: 0 0.15rem !important;
}
body .main-header .rs-auth__guest {
  display: inline-flex;
  align-items: center;
  height: 50px;
}
body .main-header .rs-auth__avatar {
  width: 32px !important;
  height: 32px !important;
  margin: 0 !important;
  flex-shrink: 0;
}
body .main-header .rs-auth__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile footer guest avatar */
body .footer-bottom-bar .rs-footer-guest {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  color: inherit !important;
  text-decoration: none !important;
}
body .footer-bottom-bar .rs-footer-guest::after { display: none; }
body .footer-bottom-bar .rs-footer-guest__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(200, 170, 110, 0.45);
  background: rgba(14, 31, 61, 0.8);
  display: block;
}

/* Profile header badges under name */
body .profile-name-wrapper .rs-profile-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  margin-top: 0.45rem;
}
body .profile-name-wrapper .rs-badge-chip,
body .rs-badge-chip {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
body .profile-name-wrapper .rs-badge-chip img,
body .rs-badge-chip img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(200, 170, 110, 0.35);
  background: rgba(8, 14, 28, 0.85);
  object-fit: cover;
}

/* Livestream rail card */
body .rs-rail__card--live {
  border-color: rgba(200, 80, 80, 0.45) !important;
}
body .rs-live-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: #e74c3c;
  box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.55);
  animation: rs-live-pulse 1.6s ease-out infinite;
  vertical-align: middle;
}
@keyframes rs-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(231, 76, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}
body .rs-rail-live__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 0.65rem;
  border: 1px solid rgba(200, 170, 110, 0.22);
  background: #0a1220;
  overflow: hidden;
}
body .rs-rail-live__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
body .rs-rail-live__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none !important;
  color: #e8ecf4 !important;
}
body .rs-rail-live__meta strong {
  font-size: 0.82rem;
  font-weight: 600;
  color: #f0e6d2;
  line-height: 1.3;
}
body .rs-rail-live__meta span {
  font-size: 0.72rem;
  color: #8b93a3;
  letter-spacing: 0.02em;
}
body .rs-rail-live__meta:hover strong {
  color: var(--rs-gold, #c8aa6e);
}

