/* circleranks.com/rankings: ranked lists for search. Looks like the app's
   "Best of All-Time" list (red title, You've Rated bar, poster rows, RATE
   buttons). Colors come from site.css, which mirrors lib/app_tokens.dart. */
.rk { max-width: 760px; margin: 0 auto; padding: 18px 18px 72px; }
.rk [hidden] { display: none !important; }
.rk :focus-visible, .rk-scrim :focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.rk-crumbs { font-size: 13px; color: var(--text-3); }
.rk-crumbs a:hover { color: var(--text); }

.rk-seg { display: inline-flex; background: var(--card); border-radius: 14px; padding: 5px; margin: 18px 0 4px; }
.rk-seg a { padding: 8px 22px; border-radius: 10px; font-weight: 700; color: var(--text-3); }
.rk-seg a.on { background: #0f1318; color: var(--text); }
.rk-h1 { color: var(--red); font-size: clamp(32px, 8vw, 48px); line-height: 1.05; letter-spacing: -.02em; margin: 14px 0 10px; font-weight: 900; }
.rk-lede { color: var(--text-2); font-size: 17px; margin: 0 0 22px; }
.rk-dated { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 0; font-size: 14px; color: var(--text-2); }
.rk-dated b { color: var(--text); }
.rk-pill { background: rgba(52,199,123,.12); color: var(--green); font-weight: 700; border-radius: 999px; padding: 3px 10px; font-size: 13px; }
.rk-answer { background: var(--card); border-radius: 16px; padding: 16px 18px; margin: 18px 0; font-size: 15.5px; color: #dfe5ec; }
.rk-answer b { color: var(--text); }

.rk-prog { margin: 22px 0 6px; font-size: 17px; color: var(--text-2); }
.rk-prog b { color: var(--text); }
.rk-bar { height: 4px; background: var(--raised); border-radius: 4px; overflow: hidden; margin-bottom: 18px; }
.rk-bar i { display: block; height: 100%; width: 0; background: var(--red); transition: width .3s; }

.rk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rk-row { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: 16px; padding: 12px 14px 12px 10px; scroll-margin-top: 90px; }
.rk-n { width: 30px; flex: none; text-align: center; font-size: 20px; font-weight: 800; color: var(--text-2); }
.rk-row img { width: 62px; height: 92px; flex: none; object-fit: cover; border-radius: 8px; background: var(--raised); }
/* A poster that fails to load stays a plain gray tile (no spilled alt text). */
.rk-row img, .rk-shead img { color: transparent; font-size: 0; overflow: hidden; }
.rk-mid { flex: 1; min-width: 0; }
.rk-mid h2 { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.rk-meta { margin: 3px 0 0; color: var(--text-3); font-size: 15px; }
.rk-meta b { color: #cfd6de; }
.rk-cnt { margin: 0; font-size: 12.5px; color: var(--text-3); }
.rk-rate { flex: none; min-width: 84px; height: 46px; border-radius: 12px; border: 2px solid #3A424D; background: transparent; color: var(--text); font: inherit; font-weight: 800; letter-spacing: .06em; font-size: 15px; cursor: pointer; }
.rk-rate:hover { border-color: #5b6470; }
.rk-rate.mine { background: var(--mc); border-color: var(--mc); font-size: 19px; letter-spacing: 0; color: var(--mt, #fff); }

.rk-info { margin-top: 40px; }
.rk-info h2 { font-size: 22px; margin: 30px 0 8px; }
.rk-info p { color: #c9d1da; font-size: 15px; }
.rk-info details { background: var(--card); border-radius: 12px; padding: 12px 16px; margin: 8px 0; }
.rk-info summary { font-weight: 700; cursor: pointer; }
.rk-info details p { margin: 8px 0 2px; }
.rk-more { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; padding: 0; margin: 0; list-style: none; }
.rk-more a { display: block; height: 100%; background: var(--card); border-radius: 12px; padding: 14px 16px; font-weight: 700; }
.rk-more a:hover { background: var(--raised); }
.rk-more span { display: block; margin-top: 4px; font-weight: 400; font-size: 13px; color: var(--text-3); }
.rk-hub b { display: block; font-size: 18px; }
.rk-credit { margin-top: 28px; font-size: 12.5px !important; color: var(--text-3) !important; }
.rk-credit a { text-decoration: underline; }

/* ---------- Rating sheet: the app's ring + slider, colored by the app's tiers ---------- */
.rk-scrim { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; }
.rk-scrim[hidden], .rk-sheet[hidden], .rk-toast[hidden] { display: none; }
.rk-sheet { width: 100%; max-width: 520px; background: #11161c; border-radius: 22px 22px 0 0; padding: 14px 20px calc(26px + env(safe-area-inset-bottom)); animation: rk-up .22s ease; }
@keyframes rk-up { from { transform: translateY(40px); opacity: 0; } }
.rk-grab { width: 40px; height: 5px; border-radius: 3px; background: #3A424D; margin: 0 auto 14px; }
.rk-shead { display: flex; gap: 14px; align-items: center; }
.rk-shead img { width: 64px; height: 95px; border-radius: 8px; object-fit: cover; flex: none; background: var(--raised); }
.rk-shead h3 { margin: 0; font-size: 20px; line-height: 1.15; }
.rk-shead .rk-meta { font-size: 14px; }
.rk-tier { margin: 4px 0 0; font-size: 14px; font-weight: 700; color: var(--tc, #7F8D9E); transition: color .15s; }
.rk-ring { position: relative; width: 84px; height: 84px; margin-left: auto; flex: none; }
.rk-ring svg { width: 84px; height: 84px; transform: rotate(-90deg); }
.rk-ring circle { fill: none; stroke-width: 5; }
.rk-ring .trk { stroke: var(--raised); }
.rk-ring .arc { stroke: var(--tc, #5b6470); stroke-linecap: round; stroke-dasharray: 238.8; stroke-dashoffset: 238.8; transition: stroke-dashoffset .1s, stroke .15s; }
.rk-ring span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rk-sheet input[type=range] { width: 100%; height: 28px; margin: 22px 0 4px; accent-color: var(--tc, #5b6470); }
.rk-ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); }
.rk-btns { display: flex; gap: 10px; margin-top: 18px; }
.rk-btns button { flex: 1; height: 50px; border: 0; border-radius: 14px; background: var(--raised); color: var(--text); font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; }
.rk-btns .primary { background: linear-gradient(180deg, var(--red-top), var(--red-bottom)); }
.rk-btns .primary:disabled { opacity: .4; cursor: default; }

.rk-app { text-align: center; }
.rk-app h3 { margin: 6px 0; font-size: 24px; }
.rk-app p { margin: 0 0 18px; color: var(--text-2); }
.rk-app .stores { justify-content: center; gap: 10px; }
/* The classic store badges: black, thin gray border, small line over big line. */
.rk-app .store, .rk-app .store.dark {
  flex: none; height: 48px; min-width: 156px; padding: 0 14px 0 12px; gap: 8px; border-radius: 9px;
  background: #000; color: #fff; border: 1px solid #A6A6A6; box-shadow: none; text-align: left;
}
.rk-app .store small { font-size: 10px; opacity: 1; }
.rk-app .store b { font-size: 19px; font-weight: 600; }
.rk-later { margin-top: 14px; background: none; border: 0; color: var(--text-3); font: inherit; font-size: 14px; cursor: pointer; padding: 8px; }
.rk-toast { position: fixed; left: 50%; bottom: 22px; z-index: 60; transform: translateX(-50%); background: #232a33; padding: 10px 16px; border-radius: 999px; font-size: 14px; }

@media (max-width: 420px) {
  .rk-row { gap: 10px; padding-right: 10px; }
  .rk-n { width: 24px; font-size: 17px; }
  .rk-row img { width: 52px; height: 77px; }
  .rk-mid h2 { font-size: 17px; }
  .rk-rate { min-width: 70px; height: 44px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .rk-sheet { animation: none; }
  .rk-bar i, .rk-ring .arc, .rk-tier { transition: none; }
}
