:root {
  --os-spectrum: linear-gradient(90deg, #ff375f 0%, #ff667e 18%, #1bdd99 42%, #36efbc 54%, #1d88ff 78%, #99c7ff 100%);
}
.os-spectrum, #osedgeline, body.hasnew #osedgeline {
  display: block; height: 2px; border-radius: 50%; pointer-events: none;
  background: var(--os-spectrum); background-size: 100% 100%;
  box-shadow: none; isolation: isolate;
  animation: os-spectrum-flow 7s ease-in-out infinite;
}
.os-spectrum::before, #osedgeline::before {
  content: ''; position: absolute; inset: -2px 0; border-radius: inherit;
  background: inherit; background-size: inherit; filter: blur(5px); opacity: .75;
  animation: os-spectrum-luminance 5s ease-in-out infinite alternate;
}
.os-spectrum::after, #osedgeline::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(90deg, transparent 30%, rgba(255,255,255,.8) 50%, transparent 70%);
  background-size: 240% 100%; opacity: .55;
  animation: os-spectrum-glint 7s ease-in-out infinite;
}
#osedgeline, body.hasnew #osedgeline { width: 156px; max-width: 40%; margin-left: 0; transform: translateX(-50%); }
#dock .rule::after { display: none; }
#dock .os-dock-spectrum { position: absolute; bottom: -1px; left: 18%; width: 64%; }
@keyframes os-spectrum-flow { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.3); } }
@keyframes os-spectrum-glint { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes os-spectrum-luminance { from { opacity: .38; transform: scaleX(.96); } to { opacity: .85; transform: scaleX(1.02); } }
.chart.discovery { --discovery-gutter: max(24px, 5%); padding: 72px var(--discovery-gutter) 124px; gap: 20px; align-content: start; grid-template-columns: minmax(0,1fr); overflow-x: hidden; }
.chart.discovery:has(.trending-banner:not([hidden])) { padding-top: 72px; }
.chart.discovery > .chead, .discovery:has(.trending-banner:not([hidden])) > .chead {
  grid-area: auto; position: relative; align-self: auto; margin: 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 12px 0 24px; gap: 20px; z-index: 3; pointer-events: auto;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.chart.discovery .chead h2 { font: 650 34px/1.2 var(--sans); letter-spacing: 0; margin: 6px 0 0; }
.chart.discovery .chead .eyebrow { font-size: 10px; letter-spacing: 0; }
.chart.discovery .chead .tctl { display: none; }
.trending-heading-streak { position: absolute; bottom: -1px; left: 0; width: 180px; }
.trending-mode-tabs { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); width: 276px; height: 48px; padding: 4px; border-radius: 8px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.035); box-sizing: border-box; isolation: isolate; }
.trending-tab-indicator { position: absolute; left: 4px; top: 4px; bottom: 4px; width: calc(50% - 4px); background: #303439; border-radius: 5px; box-shadow: inset 0 1px rgba(255,255,255,.09), 0 2px 6px rgba(0,0,0,.2); transition: transform 180ms cubic-bezier(.22,1,.36,1); z-index: -1; }
.trending-mode-tabs[data-view="creators"] .trending-tab-indicator { transform: translateX(100%); }
.trending-mode-tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: none; color: #aeb3ba; font: 500 13px/1 var(--sans); letter-spacing: 0; cursor: pointer; border-radius: 5px; min-width: 0; }
.trending-mode-tabs button[aria-selected="true"] { color: #fff; }
.trending-mode-tabs img, .trending-creator-actions img { filter: brightness(0) invert(1); flex: 0 0 auto; }
.trending-mode-tabs button:hover { color: #fff; }
.trending-mode-tabs button:active { opacity: .7; }
.trending-mode-tabs button:focus-visible, .trending-creator-actions :is(button,a):focus-visible { outline: 2px solid #99daff; outline-offset: 2px; }
.trending-content-panel, .trending-creators-panel { min-width: 0; outline-offset: 4px; }
.trending-content-panel { display: grid; gap: 28px; }
.discovery .trending-banner { grid-area: auto; margin-inline: 0; height: 440px; min-height: 0; max-height: none; border: 0; border-radius: 0; }
.discovery .trending-feature-copy { left: 28px; top: 24px; bottom: 86px; width: min(70%, 760px); }
.discovery .trending-feature-copy h3 { font: 650 32px/1.2 var(--sans); letter-spacing: 0; margin-bottom: 22px; }
.discovery .trending-kicker, .discovery .trending-kicker > span { letter-spacing: 0; } .discovery .trending-kicker b { letter-spacing: .02em; }
.discovery .trending-shade { background: linear-gradient(90deg, rgba(9,11,14,.87), rgba(9,11,14,.4) 58%, rgba(9,11,14,.05)), linear-gradient(0deg, rgba(9,11,14,.92), transparent 62%); }
.discovery .trending-carousel-controls { left: 28px; right: 28px; }
.discovery .trending-slide { transition-duration: 240ms; }
.trending-slide:not(.active) .trending-feature-copy { visibility: hidden; }
.trending-pages button[aria-pressed="true"] { border-image: none; border-color: #8ddfc3; }
.chart.discovery .pbar { display: flex; align-items: center; gap: 14px; min-width: 0; }
.chart.discovery .pbar .lab2 { flex: 0 0 auto; letter-spacing: 0; }
.chart.discovery .pbar .plats { display: flex; flex-wrap: wrap; gap: 6px; }
.chart.discovery .pbar .chip { display: inline-flex; align-items: center; min-height: 32px; padding: 6px 12px; font: 500 11px/1.2 var(--sans); letter-spacing: 0; text-transform: none; }
.discovery-live-controls { gap: 12px 20px; }
.discovery-live-controls select { min-height: 36px; letter-spacing: 0; }
.trending-filter-panel { min-width: 0; }
.trending-filter-panel > summary { display: none; }
.chart.discovery .discovery-summary { font-size: 11px; line-height: 1.5; }
.trending-creator-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.trending-creator-summary h3 { font: 600 18px/1.4 var(--sans); letter-spacing: 0; margin: 0; }
.trending-creator-summary > span { color: #9ea5ad; font: 400 12px/1.5 var(--sans); letter-spacing: 0; }
.trending-creator-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 26px 22px; perspective: 1400px; }
/* the creator card: a spatial object like the piece card. The still behind a hairline, the record in front. */
.trending-creator-card { position: relative; min-width: 0; border: 0; background: transparent; overflow: visible; transform-style: preserve-3d; transition: transform .42s var(--os-settle); outline: none; }
.trending-creator-card:hover, .trending-creator-card:focus-within, .trending-creator-card.open { transform: translateY(-6px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); z-index: 3; }
.trending-creator-card:focus-visible .trending-creator-art { border-color: rgba(255, 250, 248, .6); }
.trending-creator-art { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #1a1d21; border: 1px solid rgba(255, 250, 248, .12); border-radius: 8px; box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8); transition: border-color .3s ease, box-shadow .42s var(--os-settle), transform .42s var(--os-settle); transform: translateZ(0); }
.trending-creator-card:hover .trending-creator-art, .trending-creator-card:focus-within .trending-creator-art { border-color: rgba(255, 250, 248, .34); box-shadow: 0 34px 70px -26px rgba(0, 0, 0, .9); transform: translateZ(14px); }
.trending-creator-art > img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.92) brightness(.9); transition: transform .9s var(--os-settle), filter .4s ease; }
.trending-creator-card:hover .trending-creator-art > img { filter: none; transform: scale(1.03) translate(calc((50% - var(--mx, 50%)) * .04), calc((50% - var(--my, 50%)) * .04)); }
.trending-creator-art::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .5)); pointer-events: none; }
.trending-creator-card:hover .discovery-sweep { opacity: 1; }
.trending-creator-rank, .trending-creator-platform { position: absolute; top: 12px; z-index: 2; padding: 5px 8px; background: rgba(13, 15, 19, .82); border: 1px solid rgba(255, 250, 248, .1); border-radius: 4px; color: var(--bone); }
.trending-creator-rank { left: 12px; font-family: 'Doto', var(--mono); font-weight: 800; font-size: 18px; line-height: 1; padding: 6px 8px 4px; }
.trending-creator-platform { right: 12px; display: inline-flex; align-items: center; gap: 6px; font: 500 10px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.trending-creator-platform .dot { width: 5px; height: 5px; background: var(--bone-45); border-radius: 0; }
.trending-creator-platform .dot.r { background: #F04E4E; box-shadow: 0 0 6px rgba(240, 78, 78, .6); }
.trending-creator-platform .dot.g { background: #2BB673; box-shadow: 0 0 6px rgba(43, 182, 115, .6); }
.trending-creator-platform .dot.b { background: #2E44E6; box-shadow: 0 0 6px rgba(46, 68, 230, .7); }
.trending-creator-info { position: relative; display: grid; gap: 7px; padding: 14px 2px 4px; transform: translateZ(22px); }
.trending-creator-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.trending-creator-avatar { flex: none; width: 30px; height: 30px; border: 1px solid rgba(255, 250, 248, .22); background: #15161a; display: grid; place-items: center; overflow: hidden; }
.trending-creator-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trending-creator-avatar i { font-family: 'Doto', var(--mono); font-style: normal; font-weight: 800; font-size: 16px; color: var(--bone-70); }
.trending-creator-name { margin: 0; min-width: 0; font-family: 'Doto', var(--mono); font-weight: 800; font-size: 22px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; color: var(--bone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trending-creator-marks { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.trending-creator-marks .mark { display: inline-flex; align-items: center; gap: 5px; font: 500 8.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bone-45); white-space: nowrap; }
/* the platform's seal: the old scalloped check in bone, lit from within; under the hand it glows and sheds pixels */
.trending-creator-marks .mark.check { outline: none; cursor: default; }
.trending-creator-marks .mark.check .seal { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; }
.trending-creator-marks .mark.check svg { width: 18px; height: 18px; display: block; overflow: visible; filter: drop-shadow(0 0 1.5px rgba(255, 250, 248, .5)); transition: filter .35s ease, transform .5s var(--os-settle); }
.trending-creator-marks .mark.check svg .body { fill: var(--bone); }
.trending-creator-card:hover .mark.check svg, .mark.check:hover svg, .mark.check:focus-visible svg { filter: drop-shadow(0 0 2px rgba(255, 250, 248, .8)) drop-shadow(0 0 10px rgba(255, 250, 248, .35)); transform: scale(1.08); animation: seal-breathe 2.2s ease-in-out infinite; }
@keyframes seal-breathe { 50% { filter: drop-shadow(0 0 3px rgba(255, 250, 248, .95)) drop-shadow(0 0 16px rgba(255, 250, 248, .5)); } }
.trending-creator-marks .mark.check .p { position: absolute; left: 50%; top: 50%; width: 2px; height: 2px; margin: -1px 0 0 -1px; background: var(--bone); box-shadow: 0 0 4px rgba(255, 250, 248, .9); opacity: 0; pointer-events: none; }
.trending-creator-card:hover .mark.check .p, .mark.check:hover .p, .mark.check:focus-visible .p { animation: seal-float 1.9s ease-out infinite; animation-delay: calc(var(--i) * 260ms); }
.trending-creator-marks .mark.check .p:nth-child(2) { --dx: -9px; --dy: -14px; } .trending-creator-marks .mark.check .p:nth-child(3) { --dx: 7px; --dy: -16px; } .trending-creator-marks .mark.check .p:nth-child(4) { --dx: 12px; --dy: -8px; } .trending-creator-marks .mark.check .p:nth-child(5) { --dx: -12px; --dy: -6px; } .trending-creator-marks .mark.check .p:nth-child(6) { --dx: 3px; --dy: -19px; } .trending-creator-marks .mark.check .p:nth-child(7) { --dx: -4px; --dy: -11px; } .trending-creator-marks .mark.check .p:nth-child(8) { --dx: 10px; --dy: -15px; }
@keyframes seal-float { 0% { opacity: 0; transform: translate(0, 0) scale(1); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx, 0), var(--dy, -14px)) scale(.6); } }
.trending-creator-marks .mark.check small { color: var(--bone-70); }
@media (prefers-reduced-motion: reduce) { .trending-creator-marks .mark.check svg, .trending-creator-card:hover .mark.check svg { animation: none; transform: none; } .trending-creator-marks .mark.check .p { display: none; } }
.trending-creator-marks .mark.index .dot { width: 5px; height: 5px; background: #2BB673; box-shadow: 0 0 6px rgba(43, 182, 115, .6); }
.trending-creator-eyebrow { margin: 0; font: 500 9.5px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bone-45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trending-creator-eyebrow .asof { color: rgba(255, 250, 248, .3); }
.trending-creator-title { margin: 0; color: var(--bone); font: 500 14px/1.4 var(--sans); letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 0; }
.trending-creator-readout { margin: 2px 0 0; display: flex; align-items: baseline; gap: 7px; font-family: 'Doto', var(--mono); font-weight: 800; font-size: 20px; line-height: 1; color: var(--bone); }
.trending-creator-readout small { font: 500 9px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bone-45); }
.trending-creator-readout .sep { color: var(--bone-45); font-size: 14px; }
.trending-creator-menu a { text-decoration: none; }
.trending-creator-pieces { list-style: none; margin: 2px 0 0; padding: 6px 0 0; border-top: 1px solid rgba(255, 250, 248, .1); display: grid; gap: 2px; }
.trending-creator-pieces[hidden] { display: none; }
.trending-creator-pieces button { all: unset; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: baseline; width: 100%; padding: 6px 4px; border-radius: 4px; box-sizing: border-box; }
.trending-creator-pieces button:hover, .trending-creator-pieces button:focus-visible { background: rgba(255, 250, 248, .06); }
.trending-creator-pieces .t { font: 400 12.5px/1.35 var(--sans); color: var(--bone-70); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trending-creator-pieces button:hover .t { color: var(--bone); }
.trending-creator-pieces .v { font: 500 9px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bone-45); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .trending-creator-card, .trending-creator-art, .trending-creator-art > img { transition: none; } .trending-creator-card:hover, .trending-creator-card:focus-within, .trending-creator-card.open { transform: none; } .trending-creator-card:hover .trending-creator-art > img { transform: none; } }
.trending-creator-empty { padding: 44px 0; color: #aeb6bf; font: 400 14px/1.5 var(--sans); }
body.noambient :is(.os-spectrum, #osedgeline), body.still :is(.os-spectrum, #osedgeline) { animation: none; }
body.noambient :is(.os-spectrum, #osedgeline)::after { animation: none; }
body.noambient :is(.os-spectrum, #osedgeline)::before { display: none; }
body.os-spectrum-paused :is(.os-spectrum, #osedgeline), body.os-spectrum-paused :is(.os-spectrum, #osedgeline)::before, body.os-spectrum-paused :is(.os-spectrum, #osedgeline)::after,
.scene:not(.on) .os-spectrum, .scene:not(.on) .os-spectrum::before, .scene:not(.on) .os-spectrum::after { animation-play-state: paused; }
body.keyboard-nav .trending-tab-indicator { transition: none; }
@media (max-width: 1000px) { .trending-creator-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; } }
@media (max-width: 600px) {
  .chart.discovery { --discovery-gutter: 20px; padding-top: 38px; gap: 16px; }
  .chart.discovery:has(.trending-banner:not([hidden])) { padding-top: 38px; }
  .chart.discovery > .chead, .discovery:has(.trending-banner:not([hidden])) > .chead { gap: 18px; margin: 0; }
  .chart.discovery .chead h2 { font-size: 30px; }
  .trending-mode-tabs { width: 100%; }
  .trending-heading-streak { width: 132px; }
  .chart.discovery .pbar { align-items: flex-start; flex-direction: column; gap: 8px; }
  .chart.discovery .pbar .plats { width: 100%; max-width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .chart.discovery .pbar .chip { flex: 0 0 auto; }
  .trending-filter-panel { border-bottom: 1px solid rgba(255,255,255,.09); padding-bottom: 10px; }
  .trending-filter-panel > summary { display: flex; align-items: center; gap: 8px; min-height: 38px; list-style: none; color: #e2e7ec; cursor: pointer; font: 500 12px/1.4 var(--sans); letter-spacing: 0; }
  .trending-filter-panel > summary::-webkit-details-marker { display: none; }
  .trending-filter-panel > summary img { flex: 0 0 auto; filter: brightness(0) invert(1); }
  .trending-filter-panel > summary b { margin-left: auto; font-weight: 400; font-size: 10px; color: #aeb7c1; min-width: 0; overflow-wrap: anywhere; }
  .trending-filter-panel > summary:focus-visible { outline: 2px solid #99daff; outline-offset: 3px; }
  .trending-filter-panel[open] .trending-filter-chevron { transform: rotate(180deg); }
  .trending-filter-panel[open] .discovery-live-controls { margin-top: 14px; }
  .discovery-live-controls { gap: 10px; }
  .discovery-live-controls label { flex: 1 1 100px; flex-direction: column; align-items: stretch; gap: 4px; }
  .discovery-live-controls select { width: 100%; min-width: 0; }
  .discovery .trending-banner { height: 410px; min-height: 0; max-height: none; }
  .discovery .trending-feature-copy { top: 20px; left: 20px; right: 20px; width: auto; bottom: 82px; }
  .discovery .trending-feature-copy h3 { font-size: 24px; }
  .discovery .trending-carousel-controls { left: 20px; right: 20px; bottom: 20px; }
  .trending-creator-grid { grid-template-columns: minmax(0,1fr); }
  .trending-creator-summary { flex-direction: column; gap: 4px; }
  .trending-creator-info { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .os-spectrum, #osedgeline, body.hasnew #osedgeline, .os-spectrum::before, #osedgeline::before, .os-spectrum::after, #osedgeline::after { animation: none; }
  .trending-tab-indicator { transition: none; }
}
@media (prefers-contrast: more), (prefers-reduced-transparency: reduce) {
  .trending-mode-tabs, .trending-creator-card { background: #171a1e; border-color: #8a949f; }
  .os-spectrum::before, #osedgeline::before { display: none; }
}
