/* Page canvas: Hello Elementor defaults to white; keep rankings on the site dark purple. */
body.ph-rankings-page,
body.ph-rankings-page #page,
body.ph-rankings-page .site,
body.ph-rankings-page .site-content,
body.ph-rankings-page #content,
body.ph-rankings-page .site-main {
  background: #12091f !important;
  background-image: none !important;
  color: rgba(235, 235, 245, 0.86);
}

/* PH Rankings 1.0.0-t208 — plugin-scoped, Apple-style, solid purple accent */
.ph-rankings,
.ph-rankings-room,
.ph-rankings-live-link {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
.ph-rankings *,
.ph-rankings-room *,
.ph-rankings-live-link * { box-sizing: border-box; }

.ph-rankings {
  width: min(1120px, calc(100% - 32px));
  margin: 24px auto 72px;
  padding-top: 8px;
  color: rgba(235, 235, 245, 0.86);
}

.ph-rankings__crumbs {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 13px;
  color: rgba(235, 235, 245, 0.48);
}
.ph-rankings__crumbs a { color: rgba(235, 235, 245, 0.56); text-decoration: none; }
.ph-rankings__crumbs a:hover,
.ph-rankings__crumbs a:focus-visible { color: #8f45f5; text-decoration: underline; outline: none; }
.ph-rankings__crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: rgba(235, 235, 245, 0.28);
}

.ph-rankings__title {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.ph-rankings__intro {
  max-width: 640px;
  margin: 0 0 28px;
  color: rgba(235, 235, 245, 0.56);
  font-size: 17px;
  line-height: 1.47;
  font-weight: 400;
}

.ph-rankings__nav,
.ph-rankings__genders {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.ph-rankings__nav { border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding-bottom: 14px; }
.ph-rankings__nav a,
.ph-rankings__genders a {
  color: rgba(235, 235, 245, 0.56);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ph-rankings__nav a:hover,
.ph-rankings__genders a:hover,
.ph-rankings__nav a:focus-visible,
.ph-rankings__genders a:focus-visible { color: #ffffff; outline: none; }
.ph-rankings__nav a.is-current,
.ph-rankings__genders a.is-current { color: #8f45f5; }
.ph-rankings__nav img,
.ph-rankings__nav .ph-rankings__ico {
  width: 16px;
  height: 16px;
  color: currentColor;
}

.ph-rankings__meta {
  margin: 0 0 20px;
  color: rgba(235, 235, 245, 0.48);
  font-size: 13px;
  line-height: 1.4;
}

.ph-rankings__table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1a1028;
}

.ph-rankings table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.4;
}
.ph-rankings th,
.ph-rankings td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
  white-space: nowrap;
}
.ph-rankings td:nth-child(2) {
  white-space: normal;
  min-width: 8em;
  max-width: 22em;
  overflow-wrap: anywhere;
}
.ph-rankings th {
  color: rgba(235, 235, 245, 0.48);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.01em;
  background: #160a25;
}
.ph-rankings tbody tr:hover td { background: #20152f; }
.ph-rankings td.ph-rankings__rank { color: rgba(235, 235, 245, 0.56); font-variant-numeric: tabular-nums; width: 3.5em; }
.ph-rankings td.ph-rankings__metric,
.ph-rankings td.ph-rankings__growth { font-variant-numeric: tabular-nums; }
.ph-rankings .is-up { color: #8f45f5; }
.ph-rankings .is-down { color: rgba(235, 235, 245, 0.48); }
.ph-rankings a.ph-rankings__room { color: #ffffff; text-decoration: none; font-weight: 500; }
.ph-rankings a.ph-rankings__room:hover,
.ph-rankings a.ph-rankings__room:focus-visible { color: #8f45f5; text-decoration: underline; outline: none; }
.ph-rankings .ph-rankings__plain { color: #ffffff; font-weight: 500; }

.ph-rankings__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(235, 235, 245, 0.72);
}
.ph-rankings__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8f45f5;
  display: inline-block;
}
.ph-rankings__live.is-off .ph-rankings__dot { background: rgba(235, 235, 245, 0.22); }
.ph-rankings__live.is-off { color: rgba(235, 235, 245, 0.40); }

.ph-rankings__empty {
  margin: 24px 0;
  color: rgba(235, 235, 245, 0.56);
  font-size: 15px;
}

.ph-rankings__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 8px 0 36px;
}
.ph-rankings__card {
  display: block;
  padding: 20px 22px;
  background: #1a1028;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: inherit;
  text-decoration: none;
}
.ph-rankings__card:hover,
.ph-rankings__card:focus-visible { border-color: #8f45f5; outline: none; }
.ph-rankings__card h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ph-rankings__card p {
  margin: 0;
  color: rgba(235, 235, 245, 0.56);
  font-size: 14px;
  line-height: 1.45;
}
.ph-rankings__card .ph-rankings__ico { width: 18px; height: 18px; color: #8f45f5; }

.ph-rankings__note {
  margin: 20px 0 0;
  color: rgba(235, 235, 245, 0.40);
  font-size: 13px;
  line-height: 1.45;
}

/* Room page: closed until click */
.ph-rankings-room {
  margin: 16px 0 20px;
  padding: 0;
  background: #1a1028;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(235, 235, 245, 0.86);
}
.ph-rankings-room > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}
.ph-rankings-room > summary::-webkit-details-marker { display: none; }
.ph-rankings-room > summary::after {
  content: "";
  float: right;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-right: 1.5px solid rgba(255,255,255,0.55);
  border-bottom: 1.5px solid rgba(255,255,255,0.55);
  transform: rotate(45deg);
}
.ph-rankings-room[open] > summary::after { transform: rotate(225deg); margin-top: 8px; }
.ph-rankings-room__body { padding: 0 16px 16px; }
.ph-rankings-room__body ul { margin: 0; padding: 0; list-style: none; }
.ph-rankings-room__body li { margin: 0 0 8px; font-size: 14px; line-height: 1.45; color: rgba(235, 235, 245, 0.72); }
.ph-rankings-room a { color: #8f45f5; text-decoration: none; }
.ph-rankings-room a:hover,
.ph-rankings-room a:focus-visible { text-decoration: underline; outline: none; }

/* Most followed live page */
.ph-rankings-live-link {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.4;
}
.ph-rankings-live-link a { color: #8f45f5; text-decoration: none; }
.ph-rankings-live-link a:hover,
.ph-rankings-live-link a:focus-visible { text-decoration: underline; outline: none; }

@media (max-width: 800px) {
  .ph-rankings__cards { grid-template-columns: 1fr; }
  .ph-rankings { width: calc(100% - 24px); margin-top: 20px; }
  .ph-rankings th:nth-child(5),
  .ph-rankings td:nth-child(5),
  .ph-rankings th:nth-child(6),
  .ph-rankings td:nth-child(6) { /* country/gender may wrap */ }
  .ph-rankings__title { font-size: 28px; }
  .ph-rankings__intro { font-size: 16px; }
}
