/* A separate desktop preview; the original directory remains the mobile UI. */
body[data-page="socials"] .authors-table-prototype,
body[data-page="socials"] .authors-direction-filter,
body[data-page="socials"] .category-tabs .authors-all-filter {
  display: none;
}

body[data-page="socials"] .author-avatar {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
}

body[data-page="socials"] .author-avatar[data-avatar-role="platform-logo"] {
  border-radius: 10px;
}

body[data-page="socials"] .author-avatar[data-avatar-role="platform-logo"] img {
  padding: 2px;
}

body[data-page="socials"] .author-avatar img[src*="/reddit-"] {
  object-fit: contain;
}

body[data-page="socials"] .author-avatar:has(img[src*="/reddit-"]) {
  border-radius: 10px;
}

body[data-page="socials"] .author-avatar img[hidden] {
  display: none;
}

body[data-page="socials"] .author-avatar:not(:has(img:not([hidden]))) {
  background: var(--surface-soft);
}

body[data-page="socials"] .author-avatar svg {
  width: 24px;
  height: 24px;
}

@media (min-width: 721px) {
  /* The current tools/bookmaker palette from reference-layout.css. */
  body[data-page="socials"] .socials-page {
    --surface: #fffdfb;
    --surface-soft: #f1eafb;
    --text: #271039;
    --muted: #706280;
    --border: #e5deec;
    --accent-hover: #5c0fe2;
    --accent-soft: #f1e8ff;
  }

  .dark body[data-page="socials"] .socials-page {
    --surface: #22232b;
    --surface-soft: #2d293a;
    --text: #f6f3fb;
    --muted: #b8adc9;
    --border: #3c3748;
    --accent-hover: #976bff;
    --accent-soft: #362849;
  }

  body[data-page="socials"] .socials-page .breadcrumb,
  body[data-page="socials"] .socials-page .page-heading .page-symbol,
  body[data-page="socials"] .socials-page .page-heading > p,
  body[data-page="socials"] .socials-page .category-tabs {
    display: none;
  }

  body[data-page="socials"] .socials-page .page-heading {
    display: block;
    padding: 24px 0;
    margin: 0;
  }

  body[data-page="socials"] .socials-page .page-heading h1 {
    font: 800 40px/1.15 Inter, Arial, sans-serif;
    letter-spacing: -.035em;
  }

  body[data-page="socials"] .authors-direction-filter {
    display: block;
    min-width: 0;
  }

  body[data-page="socials"] .authors-toolbar .authors-search input {
    height: 44px;
  }

  body[data-page="socials"] .authors-search:focus-within {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  body[data-page="socials"] .authors-status {
    margin: 12px 0 16px;
    font: 400 13px/1.5 Inter, Arial, sans-serif;
  }

  body[data-page="socials"] #authors-directory {
    display: none;
  }

  body[data-page="socials"] .category-tabs .authors-all-filter {
    display: inline-flex;
  }

  body[data-page="socials"] .authors-table-prototype {
    display: block;
    min-width: 0;
    margin-top: 0;
    container: authors-comparison / inline-size;
  }

  body[data-page="socials"] .authors-table-prototype[hidden] {
    display: none;
  }

  .authors-table-prototype .licensed-table-scroll {
    min-width: 0;
  }

  .authors-table-prototype .authors-table {
    width: 100%;
    min-width: 0;
  }

  .authors-table-prototype .authors-col-author { width: 31%; }
  .authors-table-prototype .authors-col-platform { width: 10%; }
  .authors-table-prototype .authors-col-topics { width: 14%; }
  .authors-table-prototype .authors-col-description { width: 30%; }
  .authors-table-prototype .authors-col-action { width: 15%; }

  .authors-table-prototype .authors-table-person {
    display: flex;
    align-items: center;
    min-height: 48px;
    gap: 12px;
    min-width: 0;
  }

  .authors-table-prototype .authors-table-person > div {
    flex: 1;
    min-width: 0;
  }

  .authors-table-prototype .authors-table-name {
    display: block;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .authors-table-prototype .author-handle {
    margin-top: 4px;
    font-weight: 400;
  }

  .authors-table-prototype .authors-table-group {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .authors-table-prototype .authors-table-platform,
  .authors-table-prototype .authors-table-topics {
    color: var(--text);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .authors-table-prototype .authors-table-description {
    color: var(--text);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .authors-table-prototype .authors-table-description p {
    margin: 0;
    font: inherit;
  }

  .authors-table-prototype .authors-table-description .authors-table-note {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
  }

  .authors-table-prototype .authors-table-platform-inline,
  .authors-table-prototype .authors-table-topics-inline {
    display: none;
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .authors-table-prototype .licensed-table-action > span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
  }

  .authors-table-prototype .authors-table-empty {
    padding: 40px 16px;
    border-block: 1px solid var(--border);
    text-align: center;
  }

  .authors-table-prototype .authors-table-empty[hidden] {
    display: none;
  }

  .authors-table-prototype .authors-table-empty h2 {
    margin: 0;
    color: var(--text);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: normal;
  }

  .authors-table-prototype .authors-table-empty p {
    margin: 10px 0 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
  }

  .authors-table-prototype .authors-table-empty .sb-button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
  }

  /* Preserve the native action label before reducing secondary columns. */
  @container authors-comparison (max-width: 1100px) {
    .authors-table-prototype .authors-col-description { width: auto; }
    .authors-table-prototype .authors-col-action { width: 172px; }
    .authors-table-prototype .licensed-table-cta { white-space: normal; }
  }

  @container authors-comparison (max-width: 900px) {
    .authors-table-prototype .authors-col-platform,
    .authors-table-prototype .authors-table tr > :nth-child(2) {
      display: none;
    }

    .authors-table-prototype .authors-col-author { width: 32%; }
    .authors-table-prototype .authors-col-topics { width: 15%; }
    .authors-table-prototype .authors-col-description { width: auto; }

    .authors-table-prototype .authors-table-platform-inline {
      display: block;
      margin-top: 8px;
    }
  }

  @container authors-comparison (max-width: 700px) {
    .authors-table-prototype .authors-col-topics,
    .authors-table-prototype .authors-table tr > :nth-child(3) {
      display: none;
    }

    .authors-table-prototype .authors-col-author { width: 35%; }
    .authors-table-prototype .authors-col-description { width: auto; }

    .authors-table-prototype .authors-table-description .authors-table-topics-inline {
      display: block;
      margin-top: 10px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.5;
    }
  }
}

/* Define the edge where an uploaded avatar blends into the page. */
html:not(.dark) body[data-page="socials"] :is(
  [data-author-id="youtube-noplanb-channel"],
  [data-author-id="x-lookonchain"],
  [data-author-id="web-stavka-jack07"],
  [data-author-id="tips-of-jack07"],
  [data-author-id="master-deep-13060ab0402dd5225c"],
  [data-author-id="discord-1292938864251637912"],
  [data-author-id="web-bet2invest-gumis1987"],
  [data-author-id="vseprosport20"],
  [data-author-id="bk-info-channel"],
  [data-author-id="x-fridayntrades"],
  [data-author-id="denissiz"],
  [data-author-id="master-tools-r-sharpersportsbetting"],
  [data-author-id="my88game"]
) .author-avatar:has(> img:not([hidden])),
.dark body[data-page="socials"] :is(
  [data-author-id="telegram-polymarket-whale"],
  [data-author-id="sc1vqfqaqx1izthi"],
  [data-author-id="scores24ru"],
  [data-author-id="prevpred"],
  [data-author-id="lineupvalue"],
  [data-author-id="fullt-tv"],
  [data-author-id="reddit-user-no-key-128"],
  [data-author-id="nbbet-official"],
  [data-author-id="youtube-pinnaclesports"],
  [data-author-id="x-bubblemaps"],
  [data-author-id="youtube-circlesoffhq"],
  [data-author-id="web-tipstrr-gumisksc1987"],
  [data-author-id="master-deep-17b9bc120e487857fd"],
  [data-author-id="master-deep-ae851d90ae7ae5d729"],
  [data-author-id="reddit-community-betfair"]
) .author-avatar:has(> img:not([hidden])) {
  outline: 1px solid color-mix(in srgb, var(--text) 21%, transparent);
}

html:not(.dark) body[data-page="socials"] [data-author-id="reddit-user-turbulent-peace-8772"] .author-avatar img {
  filter: drop-shadow(0 0.5px 0.65px rgb(55 38 72 / 64%));
}

.dark body[data-page="socials"] :is(
  [data-author-id="telegram-polymarket-whale"],
  [data-author-id="scores24ru"]
) .author-avatar img {
  filter: brightness(1.24);
}

.dark body[data-page="socials"] [data-author-id="reddit-community-sportsbook"] .author-avatar img {
  filter: brightness(1.28) drop-shadow(0 0 0.7px rgb(231 220 240 / 48%));
}
