:root {
  --rh-bg: #0b0f14;
  --rh-bg-2: #0f151c;
  --rh-panel: #111821;
  --rh-panel-2: #0e141b;
  --rh-line: rgba(255, 255, 255, 0.08);
  --rh-text: #f4f7fb;
  --rh-muted: #9aa6b2;
  --rh-accent: #36f1cd;
  --rh-accent-2: #ffb14a;
  --rh-accent-3: #ff6b5a;
  --rh-glow: rgba(54, 241, 205, 0.22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--rh-text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(54, 241, 205, 0.12), transparent 60%),
    radial-gradient(1000px 700px at 85% 5%, rgba(255, 177, 74, 0.16), transparent 65%),
    linear-gradient(180deg, #0b0f14 0%, #090d12 100%);
  font-family: "Trebuchet MS", "Verdana", "Geneva", sans-serif;
}

.rh-page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.rh-page::before,
.rh-page::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(0);
  opacity: 0.4;
}

.rh-page::before {
  width: 380px;
  height: 380px;
  background: rgba(54, 241, 205, 0.08);
  top: -180px;
  left: -120px;
}

.rh-page::after {
  width: 460px;
  height: 460px;
  background: rgba(255, 177, 74, 0.08);
  right: -160px;
  top: 120px;
}

.rh-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  gap: 18px;
  align-items: center;
  padding: 18px 26px;
  background: rgba(10, 14, 18, 0.88);
  border-bottom: 1px solid var(--rh-line);
  backdrop-filter: blur(14px);
}

.rh-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rh-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1c2530, #0c1117);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.rh-logo::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 10px;
  border: 2px solid var(--rh-accent);
  box-shadow: 0 0 12px var(--rh-glow);
}

.rh-brand h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.8px;
  font-family: "Georgia", "Palatino", serif;
}

.rh-brand span {
  display: block;
  font-size: 12px;
  color: var(--rh-muted);
}

.rh-stats {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 13px;
  color: var(--rh-muted);
}

.rh-stats strong {
  color: var(--rh-text);
}

.rh-country {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.rh-flag {
  border: 1px solid var(--rh-line);
  background: var(--rh-panel-2);
  color: var(--rh-text);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, border 0.2s ease;
}

.rh-flag.is-active {
  border-color: var(--rh-accent);
  box-shadow: 0 0 0 2px rgba(54, 241, 205, 0.2);
}

.rh-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 28px 26px 64px;
}

.rh-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  background: var(--rh-panel-2);
  border: 1px solid var(--rh-line);
  border-radius: 20px;
  padding: 20px;
  display: grid;
  gap: 18px;
}

.rh-auth {
  background: linear-gradient(180deg, rgba(54, 241, 205, 0.12), rgba(54, 241, 205, 0.02));
  border: 1px solid rgba(54, 241, 205, 0.25);
  padding: 16px;
  border-radius: 14px;
}

.rh-auth-member {
  margin-top: 10px;
}

.rh-page[data-auth="guest"] .rh-auth-member {
  display: none;
}

.rh-page[data-auth="member"] .rh-auth-guest {
  display: none;
}

.rh-nick {
  font-size: 16px;
  font-weight: 700;
  color: var(--rh-accent);
  margin-bottom: 10px;
}

.rh-auth-actions {
  display: grid;
  gap: 8px;
}

.rh-auth-actions a {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--rh-line);
  background: #0d1319;
  color: var(--rh-text);
  text-decoration: none;
  font-size: 12px;
}

.rh-login {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.rh-login label {
  display: block;
  font-size: 12px;
  color: var(--rh-muted);
}

.rh-login label span {
  display: block;
  margin-bottom: 6px;
}

.rh-login input {
  width: 100%;
  border: 1px solid rgba(54, 241, 205, 0.18);
  border-radius: 14px;
  padding: 10px 12px;
  background: #0b1117;
  color: var(--rh-text);
  font-size: 13px;
  appearance: none;
}

.rh-password-field {
  position: relative;
}

.rh-password-input {
  padding-right: 44px;
}

.rh-password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(54, 241, 205, 0.2);
  background: #0d151a;
  color: var(--rh-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.rh-password-toggle svg {
  width: 18px;
  height: 18px;
}

.rh-password-toggle.is-visible {
  color: var(--rh-accent);
  border-color: rgba(54, 241, 205, 0.5);
}

.rh-password-toggle .rh-eye-off {
  opacity: 1;
}

.rh-password-toggle.is-visible .rh-eye-off {
  opacity: 0;
}

.rh-login-box {
  border: 1px solid rgba(54, 241, 205, 0.25);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(54, 241, 205, 0.1), rgba(54, 241, 205, 0.02));
  box-shadow: 0 14px 26px rgba(8, 12, 16, 0.4);
}

.rh-login-box h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.rh-login .rh-btn {
  width: 100%;
  border-radius: 12px;
}

.rh-online {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: #0f151c;
  border: 1px solid var(--rh-line);
  font-size: 13px;
  color: var(--rh-muted);
}

.rh-online strong {
  display: block;
  color: var(--rh-text);
  font-size: 18px;
  margin-top: 4px;
}

.rh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #1c242d;
  color: var(--rh-text);
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rh-btn:hover {
  transform: translateY(-1px);
}

.rh-btn-primary {
  background: linear-gradient(135deg, #2fd1b6, #1b8f81);
  color: #081011;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(46, 209, 182, 0.2);
}

.rh-menu {
  display: grid;
  gap: 8px;
}

.rh-menu a {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--rh-line);
  color: var(--rh-muted);
  text-decoration: none;
  background: #0d1319;
  transition: color 0.2s ease, border 0.2s ease;
}

.rh-menu a:hover {
  color: var(--rh-text);
  border-color: rgba(54, 241, 205, 0.3);
}

.rh-side-search {
  border: 1px solid var(--rh-line);
  border-radius: 12px;
  padding: 12px;
  background: #0d1319;
}

.rh-side-search label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--rh-muted);
}

.rh-side-search input {
  border: 1px solid var(--rh-line);
  border-radius: 10px;
  padding: 8px 10px;
  background: #0c1218;
  color: var(--rh-text);
  font-size: 13px;
}

.rh-main {
  display: grid;
  gap: 22px;
  position: relative;
  z-index: 1;
}

.rh-hero {
  background: linear-gradient(135deg, rgba(54, 241, 205, 0.14), rgba(255, 177, 74, 0.1));
  border: 1px solid var(--rh-line);
  border-radius: 24px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 20px;
  animation: fade-in 0.6s ease both;
}

.rh-hero h2 {
  margin: 0 0 12px;
  font-size: 30px;
  font-family: "Georgia", "Palatino", serif;
}

.rh-hero p {
  margin: 0 0 16px;
  color: var(--rh-muted);
}

.rh-search {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  background: var(--rh-panel);
  border: 1px solid var(--rh-line);
  padding: 12px;
  border-radius: 16px;
}

.rh-search input {
  background: transparent;
  border: none;
  color: var(--rh-text);
  font-size: 14px;
  outline: none;
}

.rh-chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--rh-line);
  background: #10151a;
  color: var(--rh-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rh-chip.is-active {
  color: #081011;
  background: var(--rh-accent);
  border-color: transparent;
}

.rh-panel {
  border: 1px solid var(--rh-line);
  border-radius: 18px;
  padding: 18px;
  background: #0d1318;
  color: var(--rh-muted);
  display: grid;
  gap: 16px;
}

.rh-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.rh-radio-grid {
  display: grid;
  gap: 14px;
}

.rh-radio-card {
  background: #0f1419;
  border: 1px solid var(--rh-line);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  grid-template-columns: 74px 1fr 160px;
  gap: 16px;
  align-items: center;
  animation: rise 0.6s ease both;
}

.rh-radio-card:nth-child(1) { animation-delay: 0.05s; }
.rh-radio-card:nth-child(2) { animation-delay: 0.1s; }
.rh-radio-card:nth-child(3) { animation-delay: 0.15s; }
.rh-radio-card:nth-child(4) { animation-delay: 0.2s; }

.rh-radio-rank {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #222b34, #141a20);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: var(--rh-accent-2);
  font-weight: 800;
  font-size: 16px;
}

.rh-radio-meta h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.rh-radio-meta a {
  color: var(--rh-text);
  text-decoration: none;
}

.rh-radio-meta p {
  margin: 0 0 6px;
  color: var(--rh-muted);
  font-size: 13px;
}

.rh-radio-owner {
  font-size: 12px;
  color: var(--rh-accent);
}

.rh-radio-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
  text-align: right;
}

.rh-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(54, 241, 205, 0.5);
  background: #0d151a;
  color: var(--rh-accent);
  text-decoration: none;
  font-size: 13px;
}

.rh-country-tag {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--rh-muted);
}

.rh-footer {
  border-top: 1px solid var(--rh-line);
  margin-top: 30px;
  padding-top: 20px;
  color: var(--rh-muted);
  font-size: 13px;
}

.rh-muted {
  color: var(--rh-muted);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .rh-topbar {
    grid-template-columns: 1fr;
  }
  .rh-layout {
    grid-template-columns: 1fr;
  }
  .rh-sidebar {
    position: static;
  }
  .rh-hero {
    grid-template-columns: 1fr;
  }
  .rh-search {
    grid-template-columns: 1fr;
  }
  .rh-radio-card {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .rh-radio-actions {
    justify-items: start;
    text-align: left;
  }
}
