:root {
  --sr-bg: #000000;
  --sr-panel: rgba(20, 20, 20, 0.45);   
  --sr-panel-2: rgba(255, 255, 255, 0.02);
  --sr-line: rgba(255, 255, 255, 0.06);
  --sr-card-line: rgba(255, 255, 255, 0.05);
  --sr-ink: #ffffff;
  --sr-ink-2: #e5e5ea;
  --sr-muted: #8e8e93;
  --sr-accent: #34c759;                
  --sr-accent-2: #16a06a;
  --sr-accent-ink: #04210f;
  --sr-max: #ffd60a;           
  --sr-hot: #34c759;             
  --sr-mid: #ffab00;            
  --sr-low: #ff9500;             
  --sr-vlow: #ff453a;           
  --sr-radius: 16px;
  --sr-blur: blur(35px);
  --sr-font: "Prompt", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body.sr-page {
  margin: 0;
  min-height: 100vh;
  background: var(--sr-bg);
  color: var(--sr-ink-2);
  font-family: var(--sr-font);
}

.sr-wrap { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 104px 16px 48px; }
.sr-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sr-head h1 { margin: 0; font-size: clamp(20px, 3vw, 28px); font-weight: 600; color: var(--sr-ink); }
.sr-head p { margin: 4px 0 0; color: var(--sr-muted); font-size: 13px; font-weight: 300; }
.sr-updated { font-size: 12px; color: var(--sr-muted); display: inline-flex; align-items: center; gap: 6px; }
.sr-updated::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sr-accent); box-shadow: 0 0 8px rgba(52, 199, 89, .8); }
.sr-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.sr-brand {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--sr-line);
  border-radius: var(--sr-radius);
  background: var(--sr-panel-2) center / cover no-repeat;
  color: #fff;
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 10px 12px;
  text-align: left;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .35);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.sr-brand::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .85)); }
.sr-brand span { position: relative; text-shadow: 0 1px 4px rgba(0, 0, 0, .9); }
.sr-brand:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .14); }
.sr-brand.is-on { border-color: var(--sr-accent); box-shadow: 0 0 0 1px var(--sr-accent), 0 8px 24px rgba(52, 199, 89, .22); }
.sr-rooms { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: none; }
.sr-rooms::-webkit-scrollbar { display: none; }
.sr-room {
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--sr-muted);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.sr-room:hover { color: var(--sr-ink); background: rgba(255, 255, 255, 0.1); }
.sr-room b { margin-left: 6px; color: var(--sr-accent); font-weight: 600; }
.sr-room.is-on { background: var(--sr-accent); border-color: var(--sr-accent); color: var(--sr-accent-ink); font-weight: 600; }
.sr-room.is-on b { color: var(--sr-accent-ink); }

.sr-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.sr-tools input, .sr-tools select {
  height: 42px;
  padding: 0 15px;
  border: 1px solid var(--sr-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--sr-ink);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.sr-tools input:focus, .sr-tools select:focus { border-color: rgba(52, 199, 89, .55); box-shadow: 0 0 0 3px rgba(52, 199, 89, .12); }
.sr-tools input { flex: 1 1 220px; min-width: 0; }
.sr-tools input::placeholder { color: rgba(255, 255, 255, 0.3); }
.sr-tools select option { color: #000; background: #fff; }

.sr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.sr-card {
  --c: var(--sr-mid);
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--sr-card-line);
  border-radius: var(--sr-radius);
  background: var(--sr-panel);
  backdrop-filter: var(--sr-blur);
  -webkit-backdrop-filter: var(--sr-blur);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  animation: sr-pop .5s cubic-bezier(.2, .85, .3, 1.2) both;
  animation-delay: calc(var(--i, 0) * .04s);
}
@keyframes sr-pop {
  0%   { opacity: 0; transform: translateY(16px) scale(.9); }
  55%  { opacity: 1; transform: translateY(-3px) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.sr-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .12); box-shadow: 0 16px 32px rgba(0, 0, 0, .5); }
.sr-card.t-max  { --c: var(--sr-max); border-color: rgba(255, 214, 10, .5); box-shadow: 0 0 20px rgba(255, 214, 10, .18), 0 10px 24px rgba(0, 0, 0, .4); }
.sr-card.t-hot  { --c: var(--sr-hot); }
.sr-card.t-mid  { --c: var(--sr-mid); }
.sr-card.t-low  { --c: var(--sr-low); }
.sr-card.t-vlow { --c: var(--sr-vlow); }

.sr-media { position: relative; aspect-ratio: 1 / 1; background: #0a0a0a; overflow: hidden; }
.sr-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.sr-card:hover .sr-media img { transform: scale(1.05); }
.sr-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--sr-muted); font-size: 12px; }
.sr-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .55)); pointer-events: none; }

.sr-rank {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  min-width: 26px; height: 26px; padding: 0 7px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .1);
  font-size: 12.5px; font-weight: 700; color: #fff;
}
.sr-rank.r1 { background: var(--sr-max); color: #2a1b04; border-color: rgba(255, 240, 180, .6); }
.sr-rank.r2 { background: rgba(224, 228, 234, .9); color: #16181d; }
.sr-rank.r3 { background: rgba(205, 139, 90, .92); color: #16181d; }
.sr-badge {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--c);
  color: #0a0a0a;
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
}

.sr-body { padding: 11px 13px 13px; display: grid; gap: 8px; }
.sr-name {
  margin: 0;
  font-size: 13px; font-weight: 500; line-height: 1.35;
  color: var(--sr-ink-2);
  min-height: 2.7em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sr-pct { font-size: 28px; font-weight: 700; line-height: 1; color: var(--c); font-variant-numeric: tabular-nums; }
.sr-pct small { font-size: .5em; margin-left: 2px; opacity: .8; }
.sr-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.sr-bar i {
  position: relative;
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: var(--c);
  box-shadow: 0 0 10px var(--c);
  overflow: hidden;               
  transition: width .5s ease;
}
.sr-bar i::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent);
  filter: blur(1px);
  animation: sr-bar-run 1.6s linear infinite;
}
@keyframes sr-bar-run {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(260%); }
}

.sr-empty { grid-column: 1 / -1; padding: 44px 0; text-align: center; color: var(--sr-muted); font-weight: 300; }
.sr-empty small { color: rgba(255, 255, 255, .3); font-size: 12px; }
.sr-note { margin-top: 22px; font-size: 11.5px; color: rgba(255, 255, 255, .32); text-align: center; font-weight: 300; }

@media (max-width: 1024px) { .sr-wrap { padding-top: 92px; } }
@media (max-width: 620px) {
  .sr-wrap { padding-top: 84px; }
  .sr-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sr-pct { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .sr-brand, .sr-card, .sr-media img, .sr-bar i, .sr-room { transition: none; }
  .sr-card, .sr-bar i::after { animation: none !important; }
  .sr-card:hover { transform: none; }
  .sr-card:hover .sr-media img { transform: none; }
}