:root{
  --bg:#f5f7fb;
  --bg-dark:#0f172a;
  --bg-dark-2:#111827;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;
  --line-dark:#d1d5db;
  --primary:#111827;
  --primary-2:#1f2937;
  --white:#ffffff;
  --brand:#2563eb;
  --brand2:#16a34a;
  --shadow:0 18px 40px rgba(15,23,42,.08);
  --shadow-soft:0 8px 24px rgba(15,23,42,.06);
  --radius-xl:24px;
  --radius-lg:18px;
  --radius-md:14px;
}

*{box-sizing:border-box}
html,body{
  margin:0;
  padding:0;
  overflow-x:hidden;
}
body.rhSearchBody{
  overflow-x:hidden;
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans KR","Apple SD Gothic Neo",sans-serif;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

.rhContainer{
  width:min(100% - 40px, 1200px);
  margin:0 auto;
}

.rhPage{
  min-height:calc(100vh - 180px);
}

/* top */
.rhTop{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(229,231,235,.85);
}
.rhTopRow{display:flex;align-items:center;justify-content:space-between;gap:16px}
.rhTopRowMain{min-height:74px;padding:12px 0}
.rhTopRowNav{min-height:56px}
.rhTopNavBar{border-top:1px solid rgba(229,231,235,.75);background:rgba(255,255,255,.92)}
.rhTopBrandGroup{display:flex;align-items:center;gap:12px;min-width:0;flex:0 0 auto}
.rhTopSymbol{
  width:44px;height:44px;border-radius:14px;background:#fff;
  display:flex;align-items:center;justify-content:center;overflow:hidden;
}
.rhTopSymbol img{width:38px;height:38px;object-fit:contain}
.rhTopSubName{
  display:inline-flex;align-items:center;height:44px;border-radius:14px;
  font-weight:900;font-size:22px;letter-spacing:-0.02em;white-space:nowrap;color:#111827;
}
.rhTopSubNameMo{display:none}
.rhTopSearch{
  flex:1 1 auto;max-width:500px;display:flex;align-items:center;gap:8px;min-width:0;
}
.rhTopSearch input{
  flex:1;height:44px;border:1px solid var(--line);border-radius:14px;background:#fff;
  padding:0 16px;outline:none;color:var(--text);
}
.rhTopSearch input::placeholder{color:#9aa3b2}
.rhTopSearch input:focus{border-color:#9ca3af;box-shadow:0 0 0 3px rgba(17,24,39,.06)}
.rhTopSearch button{
  height:44px;padding:0 16px;border:0;border-radius:14px;background:var(--primary);color:#fff;cursor:pointer;font-weight:800;white-space:nowrap;
}
.rhTopActions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto}
.rhNavBtn{
  display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 16px;border-radius:14px;
  text-decoration:none;background:var(--primary);color:#fff;font-weight:800;border:0;cursor:pointer;white-space:nowrap;
}
.rhNavBtnGhost{background:#fff;color:#111827;border:1px solid var(--line)}
.rhUserMenuWrap{position:relative}
.rhUserMenuWrapDesktop{display:block}
.rhHamburgerBtn{
  display:none;align-items:center;justify-content:center;flex-direction:column;gap:4px;
  width:44px;height:44px;border-radius:14px;border:1px solid var(--line);background:#fff;cursor:pointer;flex:0 0 44px;
}
.rhHamburgerBtn span{display:block;width:18px;height:2px;background:#111827;border-radius:999px}
.rhUserMenuBtn{
  display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 14px 0 16px;border-radius:14px;
  border:1px solid var(--line);background:#fff;color:#111827;font-weight:800;cursor:pointer;
}
.rhUserMenuBtn[aria-expanded="true"]{border-color:#111827;box-shadow:0 8px 24px rgba(15,23,42,.08)}
.rhUserMenuName{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rhUserMenuCaret{font-size:12px;color:#6b7280}
.rhUserDropdown{
  position:absolute;top:calc(100% + 8px);right:0;min-width:164px;padding:8px;border-radius:16px;
  border:1px solid var(--line);background:#fff;box-shadow:0 18px 36px rgba(15,23,42,.12);
}
.rhUserDropdown a{
  display:flex;align-items:center;min-height:42px;padding:0 12px;border-radius:12px;text-decoration:none;color:#111827;font-weight:700;
}
.rhUserDropdown a:hover{background:#f3f4f6}
.rhGnb{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.rhGnbLink{
  display:inline-flex;align-items:center;height:40px;padding:0 14px;border-radius:12px;text-decoration:none;color:#4b5563;font-weight:800;white-space:nowrap;
}
.rhGnbLink:hover{background:#f3f4f6;color:#111827}
.rhGnbLink.is-on{background:#111827;color:#fff}

/* mobile drawer */
.rhMobileDrawer[hidden]{display:none !important}
.rhMobileDrawer{position:fixed;inset:0;z-index:100001}
.rhMobileDrawerDim{position:absolute;inset:0;background:rgba(15,23,42,.42)}
.rhMobileDrawerPanel{
  position:absolute;top:0;right:0;width:min(340px,100vw);height:100%;background:#f8fafc;
  box-shadow:-12px 0 40px rgba(15,23,42,.16);padding:18px 16px 22px;overflow-y:auto;
}
.rhMobileDrawerHead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.rhMobileDrawerTitle{margin:0;font-size:18px;font-weight:950;color:#111827}
.rhMobileDrawerClose{
  width:40px;height:40px;border-radius:14px;border:1px solid #d1d5db;background:#fff;color:#111827;font-size:26px;line-height:1;cursor:pointer;
}
.rhMobileProfileCard,.rhMobileGuestCard{
  border:1px solid #d1d5db;background:#fff;border-radius:22px;padding:16px;box-shadow:0 10px 28px rgba(15,23,42,.08);margin-bottom:16px;
}
.rhMobileMenuList{display:flex;flex-direction:column;gap:10px}
.rhMobileMenuItem{
  display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:0 16px;border-radius:16px;
  border:1px solid #d1d5db;background:#fff;font-size:15px;font-weight:900;color:#111827;
}
.rhMobileMenuItem.is-on{background:rgba(37,99,235,.08);border-color:rgba(37,99,235,.25)}
.rhMobileMenuCount{color:#2563eb;font-size:15px;font-weight:900}
body.isMobileMenuOpen{overflow:hidden}

/* user popup card */
.rhUserCardDropdown{
  min-width:278px;
  padding:16px;
  border-radius:22px;
  border:1px solid #d1d5db;
  background:#fff;
  box-shadow:0 20px 50px rgba(15,23,42,.18);
}
.rhUserCardTop{
  display:flex;
  align-items:center;
  gap:14px;
}
.rhUserAvatar{
  width:56px;
  height:56px;
  border-radius:18px;
  background:#0f172a;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 56px;
  overflow:hidden;
}
.rhUserAvatar span{
  font-size:28px;
  font-weight:900;
  line-height:1;
}
.rhUserAvatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.rhUserMetaBox{
  min-width:0;
  flex:1 1 auto;
}
.rhUserDisplay{
  font-size:16px;
  line-height:1.25;
  font-weight:900;
  color:#111827;
  margin-bottom:8px;
}
.rhUserPointBtn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
  text-align:left;
}
.rhUserPointLabel{
  font-size:14px;
  color:#6b7280;
  font-weight:700;
}
.rhUserPointValue{
  font-size:16px;
  color:#111827;
  font-weight:900;
}
.rhUserCardActions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:16px;
}
.rhUserCardAction{
  display:flex !important;
  align-items:center;
  justify-content:center;
  min-height:46px;
  border-radius:16px !important;
  padding:0 14px !important;
  font-size:15px;
  font-weight:900 !important;
}
.rhUserCardActionGhost{
  background:#fff;
  color:#111827 !important;
  border:1px solid #d1d5db;
}
.rhUserCardActionGhost:hover{
  background:#f9fafb !important;
}
.rhUserCardActionPrimary{
  background:#0f172a;
  color:#fff !important;
  border:1px solid #0f172a;
}
.rhUserCardActionPrimary:hover{
  background:#111827 !important;
}

/* point iframe modal */
.rhPointModal[hidden]{display:none !important}
.rhPointModal{
  position:fixed;
  inset:0;
  z-index:99999;
}
.rhPointModalDim{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.55);
}
.rhPointModalDialog{
  position:relative;
  width:min(760px, calc(100vw - 24px));
  height:min(80vh, 760px);
  margin:56px auto 0;
  background:#fff;
  border-radius:24px;
  box-shadow:0 30px 80px rgba(15,23,42,.28);
  overflow:hidden;
}
.rhPointModalHead{
  height:64px;
  padding:0 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid #e5e7eb;
  background:#fff;
}
.rhPointModalTitle{
  margin:0;
  font-size:20px;
  line-height:1.2;
  font-weight:900;
  color:#111827;
}
.rhPointModalClose{
  width:40px;
  height:40px;
  border-radius:12px;
  border:1px solid #d1d5db;
  background:#fff;
  color:#111827;
  font-size:24px;
  line-height:1;
  cursor:pointer;
}
.rhPointModalBody{
  height:calc(100% - 64px);
  background:#fff;
}
.rhPointModalFrame{
  width:100%;
  height:100%;
  border:0;
  display:block;
  background:#fff;
}
body.isPointModalOpen{
  overflow:hidden;
}

/* page blocks */
.rhHero{padding:22px 0 0}
.rhHeroCard{
  border:1px solid var(--line);background:#fff;border-radius:var(--radius-xl);box-shadow:var(--shadow-soft);padding:18px;
}
.rhHeroTop{display:flex;gap:14px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}
.rhHeroEyebrow{font-size:12px;font-weight:900;color:var(--muted);letter-spacing:.08em}
.rhTitle{margin:4px 0 0;font-size:22px;font-weight:950;letter-spacing:-0.02em}
.rhSub{margin:6px 0 0;color:var(--muted);line-height:1.7}
.rhSub b{color:var(--text)}
.rhResultStat{min-width:120px;text-align:right;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:#f8fafc}
.rhStatLabel{font-size:12px;color:var(--muted);font-weight:900}
.rhStatValue{font-size:22px;font-weight:950;color:var(--brand)}
.rhSearch{
  display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:#fff;border:1px solid #d6dbe5;
  border-radius:14px;padding:10px 12px;margin-top:14px;
}
.rhSearch input{
  flex:1;min-width:220px;background:transparent;border:none;outline:none;color:var(--text);font-size:14px;
}
.rhSearch input::placeholder{color:#9ca3af}
.rhSearch button{
  border:none;cursor:pointer;height:40px;padding:0 16px;border-radius:12px;background:#111827;color:#fff;font-weight:900;
}
.rhChipRow{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.rhChip{
  display:inline-flex;align-items:center;gap:8px;padding:7px 11px;border-radius:999px;background:rgba(15,23,42,.04);
  border:1px solid var(--line);color:var(--muted);font-size:12px;font-weight:950;
}
.rhChip b{color:var(--text)}
.rhChip.isActive{background:rgba(37,99,235,.1);border-color:rgba(37,99,235,.22)}
.rhGrid{display:grid;grid-template-columns:7.5fr 2.5fr;gap:14px;margin-top:14px}
.rhCard{
  border:1px solid var(--line);background:var(--card);border-radius:22px;box-shadow:var(--shadow-soft);padding:16px;
}
.rhSticky{position:sticky;top:150px}
.rhSectionHead{display:flex;justify-content:space-between;align-items:flex-end;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.rhSectionHead h2{margin:0;font-size:16px;font-weight:950}
.rhMuted{color:var(--muted);font-size:12px;line-height:1.7}
.rhQuickGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.rhQuickItem{
  display:flex;align-items:center;justify-content:center;min-height:56px;padding:10px 12px;text-align:center;
  border:1px solid var(--line);border-radius:14px;background:#fff;font-weight:950;box-shadow:0 10px 22px rgba(15,23,42,.05);
}
.rhQuickItem:hover{transform:translateY(-1px)}
.rhList{list-style:none;margin:0;padding:0}
.rhList li{padding:10px 0;border-bottom:1px solid var(--line)}
.rhList li:last-child{border-bottom:none}
.rhEmpty{
  border:1px dashed var(--line-dark);border-radius:18px;padding:26px 18px;text-align:center;color:var(--muted);background:#fff;
}
.rhResultList{display:flex;flex-direction:column;gap:12px}
.rhResultItem{
  display:flex;gap:14px;border:1px solid var(--line);border-radius:18px;background:#fff;padding:12px;box-shadow:0 10px 22px rgba(15,23,42,.05);
}
.rhResultThumb{
  flex:0 0 180px;width:180px;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:rgba(15,23,42,.03);
  display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:950;color:rgba(17,24,39,.55);
}
.rhResultThumb img{width:100%;height:100%;object-fit:cover;display:block}
.rhResultBody{flex:1;min-width:0}
.rhResultTop{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.rhBadge{
  display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;border:1px solid var(--line);
  background:rgba(15,23,42,.03);font-size:12px;font-weight:950;color:var(--text);
}
.rhMeta{font-size:12px;color:var(--muted);font-weight:900}
.rhResultTitle{margin:8px 0 0;font-size:18px;font-weight:950;line-height:1.45;letter-spacing:-0.02em}
.rhResultTitle a{color:#2563eb}
.rhResultTitle a:hover{text-decoration:underline}
.rhResultDesc{margin:8px 0 0;color:var(--muted);font-size:13px;line-height:1.75}
.rhResultBottom{margin-top:10px}
.rhLink{font-size:12px;color:rgba(22,163,74,.95);font-weight:900;word-break:break-all}
.rhSideTabs{display:flex;flex-direction:column;gap:8px}
.rhSideTab{
  display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:12px;border:1px solid var(--line);background:#fff;font-weight:900;
}
.rhSideTab.isActive{border-color:rgba(37,99,235,.25);background:rgba(37,99,235,.06)}
.rhSideTab b{color:var(--brand)}
.rhPager{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:16px}
.rhPageBtn{
  display:inline-flex;align-items:center;justify-content:center;height:36px;min-width:36px;padding:0 12px;border-radius:10px;
  border:1px solid var(--line);background:#fff;font-weight:950;font-size:13px;
}
.rhPageBtn.isActive{background:#111827;border-color:#111827;color:#fff}
.rhFooter{border-top:1px solid var(--line);padding:18px 0;background:rgba(255,255,255,.7);margin-top:16px}
.rhFooterIn{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap}

@media (max-width: 1100px){
  .rhTopRowMain{flex-wrap:wrap}
  .rhTopSearch{order:3;flex:1 1 100%;max-width:none}
  .rhGrid{grid-template-columns:1fr}
}
@media (max-width:980px){
  .rhQuickGrid{grid-template-columns:repeat(2,1fr)}
  .rhSticky{position:static}
}
@media (max-width:760px){
  .rhContainer{width:min(100% - 24px, 1200px)}
  .rhTopRowMain{
    align-items:center;
    gap:10px;
    padding:10px 0;
    flex-wrap:nowrap;
  }
  .rhTopBrandGroup{gap:8px;flex:0 0 auto}
  .rhTopSymbol{width:38px;height:38px;border-radius:10px}
  .rhTopSymbol img{width:32px;height:32px}
  .rhTopSubName{height:38px;font-size:18px;padding:0}
  .rhTopSubNamePc{display:none}
  .rhTopSubNameMo{display:inline}

  .rhTopSearch{
    flex:1 1 auto;
    max-width:none;
    gap:0;
    min-width:0;
    order:0;
  }
  .rhTopSearch input{height:40px;border-radius:12px 0 0 12px;padding:0 12px;font-size:14px}
  .rhTopSearch button{height:40px;border-radius:0 12px 12px 0;padding:0 14px;flex:0 0 auto}

  .rhTopActions{
    width:auto;
    flex:0 0 44px;
    margin-left:auto;
    justify-content:flex-end;
  }

  .rhUserMenuWrapDesktop{display:none}
  .rhHamburgerBtn{
    display:inline-flex;
    margin-left:auto;
  }

  .rhTopNavBar{overflow-x:auto}
  .rhTopRowNav{min-height:auto;padding:10px 0}
  .rhGnb{flex-wrap:nowrap;overflow-x:auto;-ms-overflow-style:none;scrollbar-width:none;gap:10px}
  .rhGnb::-webkit-scrollbar{display:none}
  .rhGnbLink{height:40px;padding:0 18px;font-size:15px;flex:0 0 auto}
  .rhResultItem{flex-direction:column}
  .rhResultThumb{width:100%;flex:0 0 auto}

  .rhPointModalDialog{
    width:calc(100vw - 16px);
    height:calc(100vh - 32px);
    margin:16px auto 0;
    border-radius:20px;
  }
}
@media (max-width:560px){
  .rhQuickGrid{grid-template-columns:1fr}
  .rhUserCardDropdown{min-width:272px;padding:14px;border-radius:20px}
  .rhUserDisplay{font-size:15px}
  .rhUserPointValue{font-size:15px}
  .rhMobileDrawerPanel{width:min(352px,100vw);padding:14px 12px 18px}
}

.rhSectionHeadSub{
  margin-top:22px;
}

.rhPopularList{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.rhPopularItem{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:54px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  box-shadow:0 10px 22px rgba(15,23,42,.05);
}

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

.rhPopularRank{
  width:28px;
  height:28px;
  border-radius:999px;
  background:#111827;
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:900;
  flex:0 0 28px;
}

.rhPopularText{
  min-width:0;
  flex:1 1 auto;
  font-size:15px;
  font-weight:900;
  color:#111827;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.rhPopularMeta{
  flex:0 0 auto;
  font-size:12px;
  font-weight:900;
  color:#2563eb;
}

@media (max-width:760px){
  .rhPopularItem{
    min-height:50px;
    padding:0 12px;
    border-radius:14px;
  }

  .rhPopularText{
    font-size:14px;
  }
}

.rhPopularListSide{
  margin-bottom:4px;
  gap:8px;
}

.rhPopularItemSide{
  min-height:44px;
  padding:0 12px;
  border-radius:14px;
  box-shadow:none;
}

.rhPopularRankSide{
  width:22px;
  height:22px;
  flex:0 0 22px;
  font-size:12px;
}

.rhPopularTextSide{
  font-size:14px;
}

.rhPopularMetaSide{
  font-size:11px;
}

@media (max-width:980px){
  .rhPopularListSide{
    margin-bottom:8px;
  }
}