/* AEMAZON v061 — stable weekly ranking, shared header/sidebar retained. */
:root { --wb-brand:#e95223; --wb-ink:#202124; --wb-muted:#72757c; --wb-line:#ececef; --line:#e6e7e9; --sbw:270px; --side-left-gap:30px; }
html:has(.wb-page) { overflow-x:clip; scrollbar-gutter:stable; }
.wb-page { margin:0; max-width:100%; overflow-x:clip; background:#fff; color:var(--wb-ink); font-family:Pretendard,"Noto Sans KR",system-ui,sans-serif; -webkit-font-smoothing:antialiased; }
@supports not (overflow:clip) { .wb-page { overflow-x:hidden; } }
.wb-page *, .wb-page *::before, .wb-page *::after { box-sizing:border-box; }
.wb-main a { color:inherit; text-decoration:none; }
.wb-main button, .wb-main select { font:inherit; }
.wb-main button, .wb-main a, .wb-main summary, .wb-main select { -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
.wb-main :focus-visible { outline:2px solid var(--wb-brand); outline-offset:4px; }
.wb-main [hidden] { display:none!important; }
.wb-shell { display:grid; grid-template-columns:var(--sbw) minmax(0,1fr); width:100%; max-width:100%; align-items:start; }
.wb-shell>.sidebar { grid-column:1; position:sticky; top:calc(var(--safe-top,0px) + var(--topbar-h,50px)); min-height:calc(100vh - var(--topbar-h,50px)); padding:12px 0 12px var(--side-left-gap); border-right:1px solid var(--line); background:#fff; z-index:150; }
.wb-page .sidebar a { text-decoration:none; color:inherit; }
.wb-main { grid-column:2; width:100%; min-width:0; max-width:1112px; margin:0 auto; padding:32px 40px 72px; }
#wbView, #wbResults { min-width:0; max-width:100%; }
#wbResults { overflow-anchor:none; }
.wb-intro { position:relative; padding:25px 28px 22px; border-radius:20px; color:#fff; background:radial-gradient(ellipse at 100% 100%,#65402f 0,transparent 65%),#202020; }
.wb-eyebrow { margin:0 0 9px; color:#e7aa8f; font-size:10px; font-weight:800; letter-spacing:.15em; }
.wb-intro h1 { margin:0; font-size:30px; line-height:1.25; letter-spacing:-.055em; word-break:keep-all; overflow-wrap:break-word; }
.wb-intro-copy { margin:10px 0 0; color:#d9d7d6; font-size:13px; line-height:1.6; word-break:keep-all; }
.wb-rules { margin-top:13px; font-size:12px; color:#eee; }
.wb-rules summary { width:fit-content; min-height:30px; display:flex; align-items:center; gap:6px; cursor:pointer; list-style:none; text-decoration:underline; text-underline-offset:4px; }
.wb-rules summary::-webkit-details-marker { display:none; }
.wb-rules-body { max-width:590px; padding:14px 0 0; line-height:1.7; }
.wb-rules-body p { margin:7px 0; color:#e2dfdd; }
.wb-rules-body ul { display:flex; gap:8px; flex-wrap:wrap; padding:0; list-style:none; }
.wb-rules-body li { padding:7px 10px; border-radius:8px; background:#ffffff14; }
.wb-rules-body b { color:#ffc8af; }
.wb-toolbar { position:sticky; top:calc(var(--safe-top,0px) + var(--topbar-h,50px)); z-index:20; padding:17px 0 12px; margin-bottom:20px; background:#fff; border-bottom:1px solid var(--wb-line); }
.wb-week-row { display:flex; align-items:center; justify-content:space-between; gap:10px; min-width:0; margin-bottom:13px; }
.wb-week-form { display:flex; align-items:center; min-width:0; gap:6px; margin:0; }
.wb-week-form select { min-width:0; max-width:100%; border:1px solid #e5e5e8; border-radius:8px; padding:8px 26px 8px 10px; color:#3a3b3f; background:#fff; font-size:12px; font-weight:700; min-height:38px; }
.wb-nojs-submit { border:1px solid #ddd; padding:8px; border-radius:6px; background:#fff; font-size:12px!important; }
.wb-ready .wb-nojs-submit { display:none; }
.wb-week-shortcuts { display:flex; align-items:center; gap:10px; flex-shrink:0; font-size:12px; font-weight:700; color:#65666b; }
.wb-week-shortcuts a { min-height:38px; display:flex; align-items:center; gap:4px; white-space:nowrap; }
.wb-week-shortcuts a:last-child:not(:first-child) { color:var(--wb-brand); }
.wb-filters { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:6px; min-width:0; }
.wb-filter { display:flex; align-items:center; justify-content:center; min-height:40px; padding:0 6px; border-radius:9px; background:#f4f4f5; color:#666!important; font-size:13px; font-weight:700; white-space:nowrap; }
.wb-filter.is-active { color:#fff!important; background:#252525; }
.wb-filter:hover:not(.is-active) { background:#eaeaec; }
.wb-loading-line { display:none; position:absolute; bottom:-1px; height:2px; left:0; right:0; background:linear-gradient(90deg,#f1dbd2,#e95223,#f1dbd2); }
.wb-is-loading .wb-loading-line { display:block; }
.wb-notice,.wb-refresh { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px; margin-bottom:16px; border-radius:10px; background:#fff4ee; color:#884127; font-size:12px; line-height:1.5; }
.wb-notice button,.wb-refresh button { flex-shrink:0; min-height:36px; padding:4px 9px; border:1px solid #e9caba; border-radius:7px; background:#fff; color:#944624; font-size:12px; font-weight:700; cursor:pointer; }
.wb-section { margin:0 0 30px; }
.wb-section-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 14px; }
.wb-section-head h2 { margin:0; font-size:18px; line-height:1.4; letter-spacing:-.04em; }
.wb-section-head>span,.wb-section-head>a { flex-shrink:0; font-size:11px; color:var(--wb-muted); }
.wb-section-head>a { min-height:32px; display:flex; align-items:center; font-weight:700; }
.wb-podium { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:start; gap:14px; }
.wb-item { min-width:0; scroll-margin-top:200px; }
.wb-card { position:relative; min-width:0; border:1px solid var(--wb-line); border-radius:16px; background:#fff; }
.wb-top-card { display:flex; flex-direction:column; height:auto; overflow:hidden; }
.wb-top-card.is-first { border-color:#efcbbd; }
.wb-rank { position:absolute; display:flex; align-items:center; justify-content:center; z-index:2; width:30px; height:30px; font-size:14px; font-weight:850; border-radius:9px; color:#333; background:#fff; box-shadow:0 1px 5px #0000000b; }
.wb-top-card .wb-rank { left:12px; top:12px; }
.wb-top-card.is-first .wb-rank { background:var(--wb-brand); color:#fff; }
.wb-thumb { position:relative; display:block; flex-shrink:0; overflow:hidden; background:#f2f0ed; aspect-ratio:16/10; isolation:isolate; }
.wb-thumb img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:1; }
.wb-thumb-empty { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:8px; color:#aaa39c; background:linear-gradient(140deg,#f5f3ef,#eae7e2); font-size:9px; font-weight:750; letter-spacing:.08em; }
.wb-thumb-empty svg { width:32px; height:32px; }
.wb-card-content { min-width:0; padding:15px; }
.wb-category { display:block; margin-bottom:6px; color:#b35334; font-size:10px; font-weight:750; line-height:1.3; }
.wb-card-title { margin:0 0 11px; color:#252528; font-size:16px; line-height:1.5; font-weight:750; word-break:keep-all; overflow-wrap:anywhere; letter-spacing:-.035em; }
.wb-card-title a { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.wb-card-title a:hover { text-decoration:underline; text-underline-offset:3px; }
.wb-top-card .wb-card-title { min-height:3em; }
.wb-author { display:flex; flex-wrap:nowrap; align-items:center; gap:5px; min-width:0; color:#6f7178; font-size:11px; line-height:1.5; }
.wb-avatar { flex-shrink:0; width:20px; height:20px; border-radius:50%; object-fit:cover; background:#f2f2f3; }
.wb-author-name { min-width:0; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.wb-author .user-badges,.wb-author .aemazon-badges,.wb-author [data-badge-more],.wb-author .badge-more { max-width:45px; overflow:hidden; }
.wb-time { flex-shrink:0; margin-left:auto; color:#999ba1; font-size:10px; white-space:nowrap; }
.wb-card-footer { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:7px; margin-top:12px; }
.wb-metrics { display:flex; flex-wrap:wrap; align-items:center; column-gap:9px; row-gap:4px; font-size:11px; color:#696c72; }
.wb-metrics span { white-space:nowrap; }
.wb-metrics b { font-weight:650; }
.wb-score { color:#b75332; }
.wb-preview-toggle { border:0; background:transparent; padding:3px 0 3px 5px; min-height:32px; font-size:10px!important; color:#777; white-space:nowrap; cursor:pointer; }
.wb-preview-toggle[aria-expanded=true] { color:var(--wb-brand); }
.wb-list { border-top:1px solid var(--wb-line); }
.wb-list .wb-item { border-bottom:1px solid var(--wb-line); }
.wb-row-card { display:grid; grid-template-columns:30px minmax(0,1fr) 90px; align-items:center; gap:14px; padding:19px 0; border:0; border-radius:0; }
.wb-row-card .wb-rank { position:static; grid-row:1; grid-column:1; background:transparent; box-shadow:none; color:#888a90; }
.wb-row-card .wb-thumb { grid-column:3; grid-row:1; width:90px; aspect-ratio:1; border-radius:10px; }
.wb-row-card .wb-card-content { grid-row:1; grid-column:2; padding:0; }
.wb-row-card .wb-card-title { margin-bottom:7px; }
.wb-row-card .wb-card-footer { margin-top:5px; }
.wb-preview { margin-top:10px; padding:12px; border:1px solid #e6e6e9; border-radius:12px; background:#fafafa; min-width:0; }
.wb-list .wb-preview { margin:0 0 16px 44px; }
.wb-preview-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:9px; color:#9d472c; font-size:12px; font-weight:650; }
.wb-preview-head button { border:0; border-radius:7px; background:#f0f0f2; color:#666; padding:8px 10px; min-height:36px; cursor:pointer; font-size:11px; }
.wb-preview-body { min-width:0; max-width:100%; min-height:60px; max-height:min(55vh,460px); overflow:auto; overflow-wrap:anywhere; overscroll-behavior-y:contain; line-height:1.7; font-size:13px; }
.wb-preview-body img,.wb-preview-body video { display:block; max-width:100%; width:auto; height:auto; max-height:370px; margin:9px auto; border-radius:9px; object-fit:contain; }
.wb-preview-body iframe { max-width:100%; }
.wb-preview-body table { width:100%!important; table-layout:fixed; }
.wb-preview-body pre { white-space:pre-wrap; overflow-wrap:anywhere; }
.wb-preview-body .wf-files { display:flex; gap:8px; flex-wrap:wrap; }
.wb-preview-body .wf-file { font-size:11px; padding:5px 8px; border:1px solid #ddd; border-radius:7px; }
.wb-preview-loading { padding:18px 0; color:#888; font-size:12px; }
.wb-preview-error { padding:10px 0; color:#94442d; }
.wb-preview-error button { display:block; margin-top:10px; padding:7px 11px; color:inherit; border:1px solid #d6b8ae; border-radius:7px; background:#fff; cursor:pointer; }
.wb-empty { border:1px solid var(--wb-line); border-radius:16px; padding:35px 20px; text-align:center; }
.wb-empty-mark { color:#ba694b; display:block; font-size:29px; margin-bottom:10px; }
.wb-empty h2 { margin:0; font-size:18px; word-break:keep-all; line-height:1.5; }
.wb-empty p { color:#83858b; font-size:12px; line-height:1.7; margin:10px 0 20px; word-break:keep-all; }
.wb-empty-actions { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; }
.wb-button { display:inline-flex; justify-content:center; align-items:center; min-height:41px; padding:8px 15px; background:#252525; color:#fff!important; border-radius:9px; font-size:12px; font-weight:700; }
.wb-button.is-light { background:#f1f1f3; color:#444!important; }
.wb-archive-note { margin:0 0 19px; padding:12px 14px; border-radius:10px; background:#f7f6f3; color:#7a736a; font-size:11px; line-height:1.7; }
.wb-ghost-section { margin-top:35px; border-top:1px solid var(--wb-line); padding-top:24px; }
.wb-ghost-copy { color:#81838a; font-size:12px; line-height:1.6; margin:-7px 0 14px; word-break:keep-all; }
.wb-ghost-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.wb-ghost-card { min-width:0; overflow:hidden; border:1px solid var(--wb-line); border-radius:13px; background:#fff; }
.wb-ghost-map { display:block; height:132px; background:#eeefe9; }
.wb-ghost-map .ghost-course-map { position:relative; overflow:hidden; width:100%; height:132px; min-height:132px; border:0; border-radius:0; }
.wb-ghost-map .ghost-course-map::before,.wb-ghost-map .ghost-course-map::after { display:none; }
.wb-map-placeholder { display:flex; height:100%; align-items:center; justify-content:center; color:#899184; font-size:11px; }
.wb-ghost-content { padding:13px; }
.wb-ghost-content h3 { margin:0 0 6px; font-size:14px; line-height:1.4; word-break:keep-all; overflow-wrap:anywhere; }
.wb-ghost-content p { margin:5px 0 0; font-size:10px; color:#86898d; line-height:1.6; }
.wb-ghost-content .wb-ghost-week { color:#55595e; margin-top:10px; }
.wb-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; clip:rect(0,0,0,0); overflow:hidden; white-space:nowrap; border:0; }
.wb-page .sb-dim { display:none; }
@media(max-width:1200px) {
 .wb-main { padding:25px 25px 60px; }
 .wb-podium { gap:10px; }
 .wb-card-content { padding:12px; }
 .wb-top-card .wb-time { display:none; }
}
@media(max-width:1050px) {
 .wb-shell { display:block; }
 .wb-shell>.sidebar { position:fixed!important; top:calc(var(--safe-top,0px) + var(--topbar-h,50px))!important; left:0; bottom:0; width:min(300px,84vw); min-height:0; height:auto; z-index:9999; transform:translateX(-110%); }
 .wb-page.mobile-sidebar-open .wb-shell>.sidebar { transform:translateX(0); }
 .wb-page.mobile-sidebar-open .sb-dim { display:block; position:fixed; inset:0; background:#0005; z-index:9998; }
 .wb-page .topbar .mobile-toggle { display:inline-flex!important; }
 .wb-main { max-width:860px; }
}
@media(max-width:620px) {
 .wb-main { padding:14px 16px 48px; }
 .wb-intro { padding:19px 19px 14px; border-radius:16px; }
 .wb-intro h1 { font-size:27px; }
 .wb-intro-copy { font-size:12px; margin-top:7px; }
 .wb-eyebrow { font-size:9px; margin-bottom:7px; }
 .wb-rules { margin-top:7px; font-size:11px; }
 .wb-rules-body ul { display:block; }
 .wb-rules-body li { margin-top:5px; }
 .wb-toolbar { padding:11px 0 10px; margin-bottom:18px; }
 .wb-week-row { gap:7px; margin-bottom:8px; }
 .wb-week-shortcuts { gap:7px; font-size:11px; }
 .wb-week-form select { font-size:11px; min-height:36px; padding-left:7px; padding-right:19px; }
 .wb-filter { font-size:11px; min-height:38px; padding:0 3px; border-radius:8px; }
 .wb-filters { gap:5px; }
 .wb-section-head { margin-bottom:12px; }
 .wb-section-head h2 { font-size:17px; }
 .wb-section-head>span { font-size:10px; }
 .wb-podium { grid-template-columns:1fr; gap:10px; }
 .wb-top-card { display:grid; grid-template-columns:26px minmax(0,1fr) 78px; align-items:start; gap:8px; padding:14px 12px; border-radius:12px; overflow:visible; }
 .wb-top-card .wb-rank { position:static; grid-column:1; grid-row:1; width:25px; height:25px; font-size:12px; border-radius:7px; background:#f1f1f3; }
 .wb-top-card .wb-thumb { grid-column:3; grid-row:1; width:78px; aspect-ratio:1; border-radius:9px; }
 .wb-top-card .wb-card-content { grid-column:2; grid-row:1; padding:0; }
 .wb-top-card .wb-card-title { min-height:0; margin-bottom:7px; }
 .wb-card-title { font-size:15px; line-height:1.45; }
 .wb-category { font-size:10px; margin-bottom:5px; }
 .wb-author { font-size:11px; gap:4px; }
 .wb-avatar { width:17px; height:17px; }
 .wb-time { font-size:9px; }
 .wb-top-card .wb-time { display:none; }
 .wb-card-footer { margin-top:7px; gap:3px; }
 .wb-metrics { font-size:11px; column-gap:7px; }
 .wb-preview-toggle { font-size:11px!important; min-height:32px; padding:4px 0; }
 .wb-row-card { grid-template-columns:25px minmax(0,1fr) 70px; gap:8px; padding:16px 0; }
 .wb-row-card .wb-thumb { width:70px; border-radius:8px; }
 .wb-row-card .wb-rank { font-size:13px; width:25px; }
 .wb-row-card .wb-time { display:none; }
 .wb-thumb-empty svg { width:26px; height:26px; }
 .wb-thumb-empty { font-size:7px; gap:3px; }
 .wb-list .wb-preview { margin-left:0; }
 .wb-ghost-grid { grid-template-columns:1fr; gap:10px; }
 .wb-ghost-card { display:grid; grid-template-columns:104px minmax(0,1fr); }
 .wb-ghost-map,.wb-ghost-map .ghost-course-map { height:100%; min-height:132px; }
 .wb-ghost-content { padding:12px; }
 .wb-ghost-content h3 { font-size:13px; }
 .wb-empty { padding:28px 16px; }
 .wb-empty h2 { font-size:17px; }
 .wb-section { margin-bottom:25px; }
}
@media(max-width:360px) {
 .wb-main { padding-right:12px; padding-left:12px; }
 .wb-intro h1 { font-size:25px; }
 .wb-week-shortcuts { gap:5px; font-size:10px; }
 .wb-week-form select { max-width:163px; font-size:10px; }
 .wb-filters { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .wb-top-card { grid-template-columns:23px minmax(0,1fr) 64px; gap:6px; padding:12px 10px; }
 .wb-top-card .wb-thumb { width:64px; }
 .wb-metrics { font-size:10px; column-gap:5px; }
}
@media(prefers-reduced-motion:reduce) { .wb-main *, .wb-main *::before, .wb-main *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
@supports (-webkit-touch-callout:none) {
 @media(max-width:620px) {
  .wb-week-form { flex:1; }
  .wb-week-form select { width:100%; max-width:100%; font-size:16px; }
 }
}
