/* ════════════════════════════════════════
   핫핫 🔥 — 밝고 귀엽고 부담없는 트렌드 포탈
   ════════════════════════════════════════ */

/* ── 변수 ── */
:root {
  --hot:       #FF4757;
  --hot2:      #FF6B81;
  --hot-pale:  #FFF0F1;
  --orange:    #FF6348;
  --orange-p:  #FFF4F2;
  --mint:      #1DD1A1;
  --mint-p:    #EAFAF5;
  --sky:       #54A0FF;
  --sky-p:     #EBF4FF;
  --yellow:    #FECA57;
  --yel-p:     #FFFBE6;
  --purple:    #A29BFE;
  --purple-p:  #F5F3FF;

  --bg:        #F8F9FA;
  --bg2:       #FFFFFF;
  --surface:   #FFFFFF;
  --border:    #E9ECEF;
  --border2:   #DEE2E6;
  --text:      #212529;
  --text2:     #495057;
  --muted:     #868E96;

  --shadow-xs: 0 1px 4px rgba(0,0,0,.06);
  --shadow-sm: 0 2px 12px rgba(0,0,0,.08);
  --shadow-md: 0 6px 24px rgba(0,0,0,.10);
  --shadow-hot: 0 4px 20px rgba(255,71,87,.20);

  --radius:    14px;
  --radius-sm: 8px;
  --radius-xs: 5px;
  --tr:        .18s ease;
}

[data-theme="dark"] {
  --bg:       #0D0D0D;
  --bg2:      #161616;
  --surface:  #1C1C1C;
  --border:   #2A2A2A;
  --border2:  #383838;
  --text:     #F1F3F5;
  --text2:    #ADB5BD;
  --muted:    #6C757D;
  --hot-pale: #2D0A0E;
  --orange-p: #2D1208;
  --mint-p:   #0A2920;
  --sky-p:    #0A1E36;
  --yel-p:    #2D2400;
  --purple-p: #1A1540;
  --shadow-sm: 0 2px 12px rgba(0,0,0,.4);
  --shadow-md: 0 6px 24px rgba(0,0,0,.5);
}

/* ── 기초 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea { font-family: inherit; border: none; outline: none; background: none; }

.container { max-width: 1260px; margin: 0 auto; padding: 0 16px; }

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 99px; }
* { scrollbar-width: thin; scrollbar-color: var(--border2) transparent; }

/* ════════ TOPBAR ════════ */
.topbar {
  position: sticky; top: 0; z-index: 200;
  background: var(--surface);
  border-bottom: 2px solid var(--hot);
  box-shadow: var(--shadow-sm);
}
.topbar-inner {
  max-width: 1260px; margin: 0 auto; padding: 0 16px;
  height: 30px; display: flex; align-items: center; gap: 12px;
}

.brand {
  display: flex; align-items: center; gap: 5px;
  text-decoration: none; flex-shrink: 0;
}
.brand-fire { font-size: 18px; }
.brand-txt {
  font-size: 13px; font-weight: 900; color: var(--hot);
  letter-spacing: -.3px; line-height: 1.15;
  display: flex; flex-direction: column; align-items: flex-start;
}
.brand-sub {
  font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: 0;
}
.live-dot {
  font-size: 10px; font-weight: 800; color: var(--hot);
  animation: livePulse 1.5s ease-in-out infinite;
  letter-spacing: .04em; flex-shrink: 0;
}
@keyframes livePulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .35; }
}

.topbar-mid {
  flex: 1; display: flex; align-items: center; gap: 10px;
  min-width: 0; overflow: visible; /* 드롭다운 허용 */
}
.top-greeting {
  font-size: 12px; font-weight: 700; color: var(--hot);
  flex-shrink: 0; white-space: nowrap;
}
.top-date {
  font-size: 12px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ════════ 로또 탑바 ════════ */
.lotto-tb {
  display: flex; align-items: center; gap: 5px;
  position: relative; flex: 1; min-width: 0;
}
.lotto-tb-label {
  font-size: 11px; font-weight: 800; color: var(--hot);
  white-space: nowrap; flex-shrink: 0;
}
.lotto-tb-balls { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.lotto-tb-ball {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 900; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  box-shadow: 0 1px 3px rgba(0,0,0,.18); flex-shrink: 0;
}
.lotto-tb-plus { font-size: 10px; color: var(--muted); flex-shrink: 0; }
.lotto-tb-btn {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--border2);
  font-size: 10px; display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--tr), border-color var(--tr); flex-shrink: 0; color: var(--text2);
  line-height: 1;
}
.lotto-tb-btn:hover { background: var(--hot-pale); border-color: var(--hot); }
#lottoExpandBtn { font-size: 8px; transition: transform var(--tr), background var(--tr), border-color var(--tr); }
#lottoExpandBtn.expanded { transform: rotate(180deg); }
.lotto-tb-dice.spinning { animation: diceRoll .4s ease; }
@keyframes diceRoll { 0%{transform:rotate(0)} 100%{transform:rotate(720deg)} }
.lotto-tb-analysis {
  font-size: 10.5px; font-weight: 900; color: #fff;
  white-space: nowrap; flex-shrink: 0;
  padding: 3px 9px; background: var(--hot);
  border-radius: 999px; border: 1.5px solid #d63031;
  box-shadow: var(--shadow-hot);
  transition: opacity var(--tr), transform var(--tr);
  letter-spacing: -.2px;
}
.lotto-tb-analysis:hover { opacity: .85; transform: translateY(-1px); }

/* 로또 확률 설명 텍스트 */
.lotto-prob-text {
  font-size: 12.5px; font-weight: 800; color: var(--hot);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1; min-width: 0; letter-spacing: -.3px;
  border-left: 2.5px solid var(--hot); padding-left: 8px; margin-left: 2px;
  line-height: 1;
}
@media (max-width: 860px) { .lotto-prob-text { display: none; } }

/* 5줄 드롭다운 패널 */
.lotto-expand-panel {
  position: absolute; top: calc(100% + 10px); left: 0;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 10px 14px;
  box-shadow: var(--shadow-md); z-index: 500;
  display: none; flex-direction: column; gap: 7px;
  min-width: 340px;
}
.lotto-expand-panel.open { display: flex; }
.lotto-ep-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-weight: 800; color: var(--text2);
  padding-bottom: 6px; border-bottom: 1.5px solid var(--hot-pale);
}
.lotto-ep-total { color: var(--hot); font-weight: 900; font-size: 12px; }
.lotto-ep-desc {
  font-size: 10.5px; color: var(--text2); font-weight: 600;
  background: var(--hot-pale); border-left: 3px solid var(--hot);
  padding: 4px 8px; border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  margin-bottom: 2px;
}
.lotto-exp-line { display: flex; align-items: center; gap: 5px; }
.lotto-exp-idx {
  font-size: 10px; font-weight: 800; color: var(--muted);
  min-width: 14px; text-align: right; flex-shrink: 0;
}
.lotto-exp-balls { display: flex; align-items: center; gap: 3px; flex: 1; }
.lotto-exp-ball {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 900; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  box-shadow: 0 2px 4px rgba(0,0,0,.15); flex-shrink: 0;
}
.lotto-exp-cost {
  font-size: 10px; color: var(--hot); font-weight: 800;
  white-space: nowrap; margin-left: 2px; flex-shrink: 0;
}

.topbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; white-space: nowrap; }
.tb-clock {
  font-size: 13px; font-weight: 700; color: var(--text2);
  font-variant-numeric: tabular-nums; letter-spacing: .04em;
  background: var(--bg); border: 1.5px solid var(--border2);
  border-radius: 8px; padding: 3px 8px;
  white-space: nowrap; flex-shrink: 0;
}
@media (max-width: 480px) { .tb-clock { display: none; } }
.tbtn {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--border2);
  font-size: 14px; display: grid; place-items: center;
  transition: all var(--tr);
}
.tbtn:hover { border-color: var(--hot); background: var(--hot-pale); }

/* ════════ HERO (더욱 compact — 달력/운세/날씨/시세는 사이드로 이동) ════════ */
.hero {
  background: linear-gradient(135deg, #fff 0%, #FFF0F1 60%, #FFF4F2 100%);
  border-bottom: 1px solid var(--border);
  padding: 3px 0;
}
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, var(--bg) 0%, var(--hot-pale) 60%, var(--orange-p) 100%);
}
.hero-inner { max-width: 1260px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }

/* 히어로 3컬럼: 검색 | 달력 | 날씨 — 왼쪽이 높이 결정, 오른쪽이 맞춤 */
.hero-layout {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.hero-search-col {
  margin-right: 214px; /* 210px + 4px gap */
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  padding: 0;
}
.hero-right-wrap {
  position: absolute;
  top: 0;
  right: 0;
  width: 210px;
  height: 100%;
  display: flex; gap: 4px;
  overflow: hidden;
}
.hero-cal-col {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2px 6px 2px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
/* 히어로 달력: 컴팩트하게 꽉 채우기 */
.hero-cal-col .hcal-title  { font-size: 9.5px; margin-bottom: 0; font-weight: 700; }
.hero-cal-col .hcal-grid   { gap: 0px; flex: 1; align-content: space-between; }
.hero-cal-col .hcal-day    { font-size: 9px; padding: 0; }
.hero-cal-col .hcal-day.header { font-size: 8.5px; padding: 0; }

.hero-weather-col {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2px 6px 2px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
}
/* 히어로 날씨: 컴팩트하게 꽉 채우기 */
.hero-weather-col .hinfo-head   { font-size: 9px; font-weight: 700; color: var(--muted); }
.hero-weather-col .wth-main     { display:flex; align-items:center; gap:3px; margin: 0; }
.hero-weather-col .wth-icon     { font-size: 22px; line-height:1; }
.hero-weather-col .wth-temp     { font-size: 22px; font-weight: 900; line-height:1; letter-spacing:-1px; }
.hero-weather-col .wth-town-link { display: none; }
.hero-weather-col .wth-desc     { font-size: 9.5px; font-weight:600; color: var(--text); margin:0; }
.hero-weather-col .wth-feels    { font-size: 9px; color: var(--muted); }
.hero-weather-col .wth-hilo     { font-size: 9px; color: var(--muted); margin:0; }
.hero-weather-col .wth-hilo .hi { color:#e74c3c; font-weight:700; }
.hero-weather-col .wth-hilo .lo { color:#3498db; font-weight:700; }
.hero-weather-col .wth-air      { font-size: 9px; padding-top:1px; border-top:1px solid var(--border); margin-top:0; }
.hero-weather-col .wth-air-val  { font-weight:700; }

/* 검색 박스 */
.hero-search {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1.5px solid var(--border);
  padding: 3px 8px; margin: 0;
}
.hero-eng-tabs {
  display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 1px;
}
.heng2 {
  background: var(--bg); border: 1.5px solid var(--border2);
  color: var(--text2); border-radius: 999px;
  padding: 2px 9px; font-size: 11px; font-weight: 600;
  transition: all var(--tr); white-space: nowrap;
}
.heng2:hover { background: var(--hot-pale); border-color: var(--hot); color: var(--hot); }
.heng2.active {
  background: var(--hot); border-color: transparent;
  color: #fff; font-weight: 700;
  box-shadow: var(--shadow-hot);
}
.hero-input-row { display: flex; gap: 7px; }
.hero-input {
  flex: 1; background: var(--bg); border: 1.5px solid var(--border2);
  border-radius: var(--radius-sm); padding: 3px 12px;
  font-size: 13px; color: var(--text);
  transition: border-color var(--tr), box-shadow var(--tr);
}
.hero-input:focus {
  border-color: var(--hot);
  box-shadow: 0 0 0 3px rgba(255,71,87,.12);
}
.hero-input::placeholder { color: var(--muted); }
.hero-sbtn {
  background: var(--hot); color: #fff;
  border-radius: var(--radius-sm); padding: 5px 18px;
  font-size: 14px; font-weight: 700; white-space: nowrap;
  box-shadow: var(--shadow-hot);
  transition: opacity var(--tr), transform var(--tr);
}
.hero-sbtn:hover { opacity: .9; transform: translateY(-1px); }
.hero-sbtn:active { transform: translateY(0); }

/* 오늘의 한마디 */
.quote-strip {
  display: flex; align-items: center; gap: 6px;
  margin: 0; padding: 1px 9px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 11.5px;
  min-height: 22px; max-height: 22px; box-sizing: border-box;
  overflow: hidden;
}
.qt-icon { font-size: 13px; flex-shrink: 0; }
.qt-text { color: var(--text2); font-style: italic; flex: 1; line-height: 1.35; }
.qt-author { color: var(--muted); font-size: 10px; white-space: nowrap; flex-shrink: 0; }

/* 최근 검색어 */
.recent-search-row {
  display: flex; align-items: center; gap: 5px;
  flex-wrap: wrap; margin: 0; min-height: 0;
}
.recent-search-row:empty { display: none; }
.rs-label { font-size: 10.5px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.rs-chip { display: flex; align-items: center; gap: 0; }
.rs-q {
  font-size: 11px; color: var(--text2); background: var(--bg);
  border: 1px solid var(--border2); border-right: none;
  border-radius: 12px 0 0 12px; padding: 2px 8px;
  cursor: pointer; transition: all var(--tr);
}
.rs-q:hover { background: var(--hot-pale); color: var(--hot); border-color: var(--hot); }
.rs-del {
  font-size: 11px; color: var(--muted); background: var(--bg);
  border: 1px solid var(--border2); border-left: 1px solid var(--border);
  border-radius: 0 12px 12px 0; padding: 2px 5px;
  cursor: pointer; line-height: 1;
}
.rs-del:hover { background: #ff4757; color: #fff; border-color: #ff4757; }
.rs-clear {
  font-size: 10px; color: var(--muted); background: transparent;
  border: none; cursor: pointer; padding: 2px 4px;
  text-decoration: underline;
}
.rs-clear:hover { color: var(--hot); }

/* 5일 날씨 예보 */
.wth-forecast {
  display: flex; gap: 2px; margin: 1px 0 0;
  border-top: 1px solid var(--border); padding-top: 1px;
}
.wth-fc-day {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; gap: 0;
}
.wth-fc-wd  { font-size: 8px; color: var(--muted); font-weight: 700; }
.wth-fc-ic  { font-size: 11px; }
.wth-fc-hi  { font-size: 9px; font-weight: 800; color: var(--text); }
.wth-fc-lo  { font-size: 8px; color: var(--muted); }

/* 실시간 트렌드 스트립 */
.trends-strip {
  display: flex; align-items: center; gap: 6px;
  margin: 0; padding: 1px 8px;
  background: var(--surface); border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-xs);
  min-height: 22px; max-height: 22px; box-sizing: border-box;
  overflow: hidden;
}
.trends-label {
  font-size: 11px; font-weight: 800; color: var(--hot);
  white-space: nowrap; flex-shrink: 0; letter-spacing: .03em;
}
.trending-pills {
  display: flex; gap: 5px; overflow-x: auto;
  scrollbar-width: none; flex: 1; align-items: center;
}
.trending-pills::-webkit-scrollbar { display: none; }
.trends-loading { font-size: 12px; color: var(--muted); }
.trends-refresh {
  font-size: 16px; color: var(--muted); flex-shrink: 0;
  transition: transform .4s ease, color var(--tr);
  line-height: 1;
}
.trends-refresh:hover { color: var(--hot); }

/* 뉴스/커뮤 업데이트 버튼 */
.feed-refresh-btn {
  font-size: 11px; color: var(--hot); background: rgba(255,71,87,0.08);
  border: 1px solid rgba(255,71,87,0.3); border-radius: 12px;
  padding: 3px 10px; cursor: pointer; flex-shrink: 0;
  transition: all .3s ease; font-weight: 600; white-space: nowrap;
}
.feed-refresh-btn:hover { background: rgba(255,71,87,0.18); transform: scale(1.05); }
.feed-refresh-btn.refreshing {
  animation: refreshPulse 0.8s ease-in-out;
  pointer-events: none;
}
@keyframes refreshPulse {
  0% { transform: scale(1); opacity: 1; }
  30% { transform: scale(1.15); opacity: 0.7; background: rgba(255,71,87,0.3); }
  60% { transform: scale(0.95); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

.t-pill {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--surface); border: 1px solid var(--border2);
  color: var(--text2); border-radius: 999px;
  padding: 1px 8px; font-size: 11px; font-weight: 500;
  cursor: pointer; transition: all var(--tr);
  white-space: nowrap; flex-shrink: 0;
}
.t-pill:hover { background: var(--hot-pale); border-color: var(--hot); color: var(--hot); }
.t-pill.hot {
  background: var(--hot-pale); border-color: var(--hot2);
  color: var(--hot); font-weight: 700;
}
.t-pill .t-rank {
  font-size: 10px; font-weight: 900; color: var(--muted);
  min-width: 14px;
}
.t-pill.hot .t-rank { color: var(--hot); }
.t-pill:nth-child(1) .t-rank, .t-pill:nth-child(2) .t-rank, .t-pill:nth-child(3) .t-rank {
  color: var(--hot);
}

/* 달력 + 운세 + 날씨 + 시세 (4컬럼) */
.hero-info-row {
  display: grid;
  grid-template-columns: auto 1.5fr 0.8fr 0.9fr;
  gap: 10px;
  align-items: stretch; /* 모든 카드 동일 높이 */
  height: 185px; /* 날씨 5일예보 포함 */
}

/* 환율·주가/날씨 공통 카드 */
.hinfo-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 8px 10px;
  box-shadow: var(--shadow-sm); min-width: 0;
  overflow: hidden; height: 100%;
}
.hinfo-head {
  font-size: 11.5px; font-weight: 800; color: var(--text);
  margin-bottom: 6px; letter-spacing: -.1px;
  border-bottom: 1.5px solid var(--hot-pale); padding-bottom: 4px;
}
.hinfo-loading { font-size: 11px; color: var(--muted); padding: 4px 0; }

/* 환율 행 */
.hex-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 3.5px 0; border-bottom: 1px solid var(--border);
}
.hex-row:last-child { border-bottom: none; }
.hex-left { display: flex; align-items: center; gap: 4px; }
.hex-flag { font-size: 12px; }
.hex-name { font-size: 11px; font-weight: 700; color: var(--text2); }
.hex-val { font-size: 11.5px; font-weight: 900; color: var(--text); }

/* 주가 행 */
.stk-row {
  display: flex; align-items: center; gap: 4px;
  padding: 3.5px 0; border-bottom: 1px solid var(--border);
}
.stk-row:last-child { border-bottom: none; }
.stk-name { font-size: 11px; font-weight: 700; color: var(--text2); min-width: 50px; }
.stk-val { font-size: 11px; font-weight: 900; color: var(--text); flex: 1; }
.stk-chg { font-size: 10.5px; font-weight: 800; white-space: nowrap; flex-shrink: 0; }
.stk-chg.pos { color: var(--hot); }
.stk-chg.neg { color: var(--sky); }
.stk-err { font-size: 11px; text-align: center; padding: 6px 0; }

/* 달력 미니 */
.hero-mini-cal {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 8px 10px;
  box-shadow: var(--shadow-sm); flex-shrink: 0;
  overflow: hidden; height: 100%;
}
.hcal-title {
  font-size: 11.5px; font-weight: 800; color: var(--text); text-align: center;
  margin-bottom: 5px; letter-spacing: -.2px;
}
.hcal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px;
}
.hcal-day {
  text-align: center; font-size: 10.5px; padding: 3px 1px;
  border-radius: 4px; font-weight: 500; color: var(--text2);
  transition: all var(--tr);
}
.hcal-day.header { font-size: 10px; font-weight: 800; color: var(--muted); padding-bottom: 4px; }
.hcal-day.sun { color: var(--hot); }
.hcal-day.sat { color: var(--sky); }
.hcal-day.today {
  background: var(--hot); color: #fff; font-weight: 900;
  border-radius: 50%;
}
.hcal-day.empty { color: transparent; }

/* ════════ 날씨 카드 ════════ */
.wth-main {
  display: flex; align-items: center; gap: 4px; margin: 3px 0 2px; flex-wrap: nowrap;
}
.wth-icon  { font-size: 20px; line-height: 1; flex-shrink: 0; }
.wth-temp  { font-size: 20px; font-weight: 900; color: var(--text); letter-spacing: -1px; flex-shrink: 0; }
.wth-town-link {
  margin-left: auto; font-size: 9.5px; color: var(--hot); font-weight: 700;
  white-space: nowrap; text-decoration: none; flex-shrink: 0;
  border: 1px solid var(--hot-pale); border-radius: 6px; padding: 2px 5px;
}
.wth-town-link:hover { background: var(--hot-pale); }
.wth-desc  { font-size: 10.5px; color: var(--text2); margin-bottom: 2px; }
.wth-city  { font-size: 10px; color: var(--muted); margin-left: 3px; font-weight: 500; }
.wth-air   { font-size: 10.5px; color: var(--text2); }
.wth-air-val { font-weight: 900; }
.wth-link  { display: none; }

/* ════════ 사주/운세 카드 ════════ */
.saju-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 9px 12px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; overflow: hidden;
  height: 100%; /* 부모 행 높이에 맞춤 */
}
.saju-head {
  font-size: 12.5px; font-weight: 800; color: var(--text);
  margin-bottom: 6px; display: flex; align-items: center; gap: 4px;
}
.saju-input-row {
  display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 8px; flex-shrink: 0;
}
.saju-inp {
  flex: 2; min-width: 110px; background: var(--bg);
  border: 1.5px solid var(--border2); border-radius: var(--radius-xs);
  padding: 6px 8px; font-size: 12px; color: var(--text);
  transition: border-color var(--tr);
}
.saju-inp-sm { flex: 1; min-width: 44px; }
.saju-inp:focus { border-color: var(--hot); }
.saju-inp::placeholder { color: var(--muted); font-size: 11px; }
.saju-btn {
  background: var(--hot); color: #fff;
  border-radius: var(--radius-xs); padding: 6px 14px;
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
  flex-shrink: 0; box-shadow: var(--shadow-hot);
  transition: opacity var(--tr);
}
.saju-btn:hover { opacity: .85; }

.saju-hint {
  font-size: 12px; color: var(--muted); text-align: center;
  padding: 6px 0; line-height: 1.7; flex-shrink: 0;
}
.saju-hint small { font-size: 11px; }

/* 운세 결과: flex 나머지 공간 채움 + 넘치면 스크롤 */
.saju-result {
  flex: 1; min-height: 0; overflow-y: auto;
}

/* 운세 결과 */
.saju-zodiac {
  font-size: 14px; font-weight: 800; color: var(--text);
  margin-bottom: 3px;
}
.saju-stars {
  font-size: 15px; margin-bottom: 7px; letter-spacing: 1px;
  display: flex; align-items: center; gap: 6px;
}
.saju-score { font-size: 12px; font-weight: 800; color: var(--hot); }

.saju-bars { margin-bottom: 8px; }
.saju-bar-row {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--text2); margin-bottom: 4px;
}
.saju-bar-row > span:first-child {
  min-width: 26px; font-weight: 700; font-size: 11px;
}
.saju-bar-row > span:last-child {
  min-width: 32px; text-align: right; font-weight: 800; font-size: 11px;
}
.saju-bar-wrap {
  flex: 1; height: 8px; background: var(--border2);
  border-radius: 999px; overflow: hidden;
}
.saju-bar-fill {
  height: 100%; border-radius: 999px;
  transition: width .6s cubic-bezier(.4,0,.2,1);
}

.saju-lucky {
  font-size: 11.5px; color: var(--text2); margin-bottom: 7px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.saju-lucky-dot { font-size: 16px; line-height: 1; }

.saju-msg {
  font-size: 12.5px; color: var(--text2); line-height: 1.65;
  background: var(--hot-pale); border-left: 3px solid var(--hot);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  padding: 7px 10px; margin-bottom: 7px;
  word-break: keep-all;
}

.saju-links {
  display: flex; gap: 10px;
}
.saju-links a {
  font-size: 11px; color: var(--hot); font-weight: 700;
  padding: 3px 9px; background: var(--hot-pale);
  border-radius: 999px; transition: opacity var(--tr);
}
.saju-links a:hover { opacity: .75; }

/* 사주 한 줄 요약 (팝업 열기) */
.saju-summary {
  cursor: pointer; display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  padding: 8px 10px; background: var(--hot-pale); border-radius: var(--radius-sm);
  border: 1.5px solid var(--hot2); font-size: 12.5px;
  transition: background var(--tr);
}
.saju-summary:hover { background: #FFD6DA; }
.saju-summary-msg {
  flex: 1; min-width: 0; font-size: 11.5px; color: var(--text2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.saju-popup-btn {
  font-size: 11px; font-weight: 800; color: var(--hot);
  white-space: nowrap; flex-shrink: 0; text-decoration: underline;
}

/* 운세 탭 */
.fortune-tab-row {
  display: flex; gap: 0; margin-bottom: 8px;
  border-radius: var(--radius-sm); overflow: hidden;
  border: 1.5px solid var(--border2);
  flex-shrink: 0; /* 탭은 항상 고정 */
}
.fortune-tab {
  flex: 1; padding: 5px 8px; font-size: 12px; font-weight: 700;
  color: var(--muted); background: var(--bg);
  transition: all var(--tr); border: none;
  border-right: 1.5px solid var(--border2);
}
.fortune-tab:last-child { border-right: none; }
.fortune-tab:hover { color: var(--hot); background: var(--hot-pale); }
.fortune-tab.active { background: var(--hot); color: #fff; }
.fortune-panel {
  flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden;
}

/* 시세 구분선 (환율↔금/은) */
.hex-divider {
  border-top: 1px solid var(--border2);
  margin: 3px 0;
}

/* ════════ QUICK BAR ════════ */
.quick-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
  overflow: hidden;
}
.quick-bar::-webkit-scrollbar { height: 0; }
.qbar-outer {
  max-width: 1260px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; gap: 10px;
  overflow-x: auto; white-space: nowrap;
}
.qbar-outer::-webkit-scrollbar { height: 0; }
.qbar-label {
  flex-shrink: 0;
  font-size: 11px; font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  padding-right: 4px;
  border-right: 1.5px solid var(--border2);
}
.qbar-inner {
  display: flex; gap: 8px; align-items: center;
  flex-shrink: 0;
}
.qlink {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg); border: 1.5px solid var(--border2);
  color: var(--text2); border-radius: 999px;
  padding: 5px 14px; font-size: 12.5px; font-weight: 600;
  text-decoration: none; flex-shrink: 0;
  transition: all var(--tr);
}
.qlink:hover { background: var(--hot-pale); border-color: var(--hot); color: var(--hot); }
.qlink-icon { font-size: 15px; }

/* ════════ MAIN GRID (3컬럼: 좌정보 | 피드 | 우사이드) ════════ */
.main-wrap { padding: 4px 0 28px; }
.main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 210px;
  gap: 8px 4px; /* 세로 8px, 가로 4px */
  align-items: start;
}

.col-news, .col-comm, .col-side { min-width: 0; }
.col-side { position: sticky; top: 8px; display: flex; flex-direction: column; gap: 4px; }

/* 구버전 클래스 호환 */
.col-left-info { display: none; }

/* ── 오늘 요약 카드 ── */
.today-sum-card { padding: 10px 10px 10px; }
/* 달력 — 사이드바 폭(210px)에 맞춰 축소 */
.ts-cal-wrap { margin-bottom: 8px; }
.ts-cal-wrap .hcal-title { font-size: 12px; font-weight: 900; text-align: center; margin-bottom: 4px; color: var(--text); }
.ts-cal-wrap .hcal-grid  { gap: 1px; }
.ts-cal-wrap .hcal-day   { font-size: 10px; padding: 3px 0; }
/* date-big/greeting은 달력으로 대체 — 숨김 */
.ts-greeting { display: none; }
.ts-date-big { display: none; }
.ts-month  { font-size: 16px; font-weight: 900; color: var(--hot); }
.ts-day    { font-size: 30px; font-weight: 900; color: var(--text); line-height: 1; }
.ts-week   { font-size: 13px; font-weight: 700; color: var(--text2); }
.ts-weather-row {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 8px; padding: 7px 10px;
  background: var(--sky-p); border-radius: var(--radius-sm);
  min-height: 38px;
}
.ts-wth-loading { font-size: 11px; color: var(--muted); }
.ts-wth-icon  { font-size: 22px; line-height: 1; }
.ts-wth-temp  { font-size: 20px; font-weight: 900; color: var(--text); }
.ts-wth-air   { font-size: 11px; font-weight: 800; margin-left: auto; }
.ts-lotto-row {
  display: flex; align-items: center; gap: 3px; flex-wrap: wrap;
  margin-bottom: 8px; padding: 8px 10px;
  background: var(--yel-p); border-radius: var(--radius-sm);
}
.ts-lotto-label { font-size: 10.5px; font-weight: 800; color: var(--text2); width: 100%; margin-bottom: 5px; }
.ts-ball {
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 900; color: #fff; flex-shrink: 0;
}
.ts-ball-bonus { opacity: 0.75; }
.ts-fortune-row {
  padding: 8px 10px;
  background: var(--purple-p); border-radius: var(--radius-sm);
}
.ts-fortune-txt { font-size: 11.5px; font-weight: 600; color: var(--text2); line-height: 1.5; }

/* ── 커스텀 즐겨찾기 ── */
.custom-bm-card .side-card-head { padding-bottom: 6px; }
.bm-edit-btn {
  font-size: 11px; color: var(--sky); font-weight: 700;
  padding: 2px 8px; border: 1px solid var(--sky); border-radius: 99px;
  transition: all var(--tr);
}
.bm-edit-btn:hover { background: var(--sky-p); }
.bm-item-row {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-bottom: 1px solid var(--border);
}
.bm-item-row:last-child { border-bottom: none; }
.bm-link {
  display: flex; align-items: center; gap: 8px; flex: 1;
  color: var(--text); font-size: 13px; font-weight: 500;
  transition: color var(--tr);
}
.bm-link:hover { color: var(--hot); }
.bm-ico  { font-size: 16px; }
.bm-del  { color: var(--hot); font-size: 13px; padding: 2px 5px; border-radius: 4px; opacity: .7; }
.bm-del:hover { opacity: 1; background: var(--hot-pale); }
.bm-add-form {
  padding: 10px 14px; display: flex; flex-direction: column; gap: 6px;
  border-top: 1px solid var(--border);
}
.bm-add-input {
  border: 1.5px solid var(--border2); border-radius: var(--radius-xs);
  padding: 6px 10px; font-size: 12.5px; color: var(--text);
  background: var(--bg); width: 100%;
  transition: border-color var(--tr);
}
.bm-add-input:focus { border-color: var(--sky); }
.bm-add-confirm {
  background: var(--hot); color: #fff; border-radius: var(--radius-xs);
  padding: 7px 10px; font-size: 13px; font-weight: 700; width: 100%;
  transition: opacity var(--tr);
}
.bm-add-confirm:hover { opacity: .88; }

/* ── 오른쪽 날씨/시세를 side-card처럼 ── */
.col-side .hinfo-card.side-card {
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 8px;
  padding: 10px 12px;
}

/* feed-split-wrap — 구버전 호환용 (미사용) */
.feed-split-wrap { display: contents; }
.feed-col-news, .feed-col-comm { min-width: 0; }

/* ════════ FEED CARD ════════ */
.feed-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); margin-bottom: 10px;
}
.feed-card:last-child { margin-bottom: 0; }

.feed-card-head {
  padding: 4px 14px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.feed-title-row {
  display: flex; align-items: center; justify-content: center;
  position: relative; min-height: 22px; width: 100%;
}
.feed-title-row > div:last-child {
  position: absolute; right: 0; display: flex; align-items: center; gap: 6px;
}
.feed-title {
  font-size: 16px; font-weight: 900; color: var(--hot); letter-spacing: -.4px;
}
.feed-update-info { font-size: 11px; color: var(--muted); }
.feed-sub { font-size: 12px; color: var(--muted); margin-left: 8px; }

/* 최신순 / 인기순 정렬 버튼 */
.feed-sort-row {
  display: flex; gap: 3px; align-items: center;
}
.fsort {
  padding: 3px 10px; border-radius: 20px;
  border: 1.5px solid var(--border2); background: var(--bg);
  color: var(--muted); font-size: 11.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: all var(--tr);
}
.fsort:hover { border-color: var(--hot); color: var(--hot); background: var(--hot-pale); }
.fsort.active { background: var(--hot); color: #fff; border-color: var(--hot); font-weight: 700; }

/* ════════ 핫 피드 리스트 ════════ */
.hot-feed { padding: 0; }

/* ── 뉴스·커뮤 카드 — 고정 영역 ── */
.col-news .feed-card,
.col-comm .feed-card {
  display: flex;
  flex-direction: column;
}
.col-news .feed-card-head,
.col-comm .feed-card-head {
  flex-shrink: 0;
  padding-bottom: 10px;
}
/* hot-feed 고정 높이 = 18줄 × 36px (border-box) = 648px */
.col-news .hot-feed,
.col-comm .hot-feed {
  height: 648px;
  overflow: hidden;
  flex-shrink: 0;
}

/* 빈 채우기 행 — 실제 .fi 와 동일한 높이 유지 */
.fi.fi-empty {
  display: block;
  height: 36px;
  box-sizing: border-box;
  pointer-events: none;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
}

/* 하단 페이저 — 리스트 바로 아래 붙음 */
.feed-pager {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: nowrap; gap: 3px;
  padding: 8px 10px; border-top: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
  box-shadow: 0 -2px 8px rgba(0,0,0,.06);
}
.fp-num, .fp-nav {
  min-width: 26px; height: 26px; border-radius: 6px;
  border: 1.5px solid var(--border2); background: var(--bg);
  font-size: 11.5px; font-weight: 700; color: var(--text2);
  cursor: pointer; transition: all var(--tr); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fp-num:hover, .fp-nav:hover { border-color: var(--hot); color: var(--hot); background: var(--hot-pale); }
.fp-num.active { background: var(--hot); color: #fff; border-color: var(--hot); }
.fp-nav.disabled, .fp-nav:disabled { opacity: .3; cursor: default; pointer-events: none; }
.fp-nav { font-size: 14px; }
.fp-ellipsis { font-size: 12px; color: var(--muted); padding: 0 2px; display: flex; align-items: center; }

/* 24h 경계 페이지 버튼 — 점선 왼쪽 구분 */
.fp-boundary {
  border-left: 2px dashed var(--border2) !important;
  margin-left: 2px;
}

/* 더 보기 버튼 */
.fp-loadmore {
  padding: 5px 16px; border-radius: 20px;
  border: 1.5px solid var(--border2); background: var(--bg);
  color: var(--text2); font-size: 12px; font-weight: 700;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: all var(--tr);
}
.fp-loadmore:hover { border-color: var(--hot); color: var(--hot); background: var(--hot-pale); }
.fp-end { font-size: 11px; color: var(--muted); padding: 0 6px; }

/* 전체보기 버튼 — 페이지네이션 행 우측 */
.fp-allview {
  margin-left: auto; padding: 3px 11px;
  border: 1.5px solid var(--hot); border-radius: 20px;
  color: var(--hot); background: none; font-size: 11px; font-weight: 800;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: all var(--tr);
}
.fp-allview:hover { background: var(--hot); color: #fff; }

/* 커뮤 더 보기 행 */
.comm-pg-row {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 10px; border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

/* 스켈레톤 */
.feed-loading { padding: 8px 14px; display: flex; flex-direction: column; gap: 5px; }
.skel {
  height: 36px; border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--bg) 25%, var(--bg2) 50%, var(--bg) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer {
  0% { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}

/* ════════ 피드 아이템 호버 썸네일 미리보기 ════════ */
.fi-preview {
  position: fixed; z-index: 9999;
  width: 320px;
  background: var(--panel, #fff);
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 10px;
  box-shadow: 0 10px 32px rgba(0,0,0,.22);
  padding: 8px;
  opacity: 0; pointer-events: none;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease;
}
.fi-preview.visible { opacity: 1; transform: translateY(0); }
.fi-preview-img {
  display: block; width: 100%; height: 180px;
  object-fit: cover; border-radius: 6px;
  background: linear-gradient(90deg, #f0f0f0 0%, #e8e8e8 50%, #f0f0f0 100%);
}
.fi-preview-title {
  margin-top: 6px; font-size: 12.5px; font-weight: 600;
  color: var(--text, #222); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (hover: none), (max-width: 768px) {
  .fi-preview { display: none !important; }
}

/* ════════ 피드 아이템 (.fi) — 고정 높이 36px ════════ */
.fi {
  display: flex; align-items: center; gap: 7px;
  height: 36px;
  box-sizing: border-box;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid var(--src-color, var(--hot));
  text-decoration: none; color: var(--text);
  transition: background var(--tr);
  min-width: 0; overflow: hidden;
  flex-shrink: 0;
}
.fi:hover { background: var(--hot-pale); }

/* 랭크 번호 */
.fi-rank {
  font-size: 12px; font-weight: 900; min-width: 18px; text-align: right;
  flex-shrink: 0; color: var(--muted); line-height: 1;
}
.fi-rank.r1 { color: var(--hot);    font-size: 13px; text-shadow: 0 0 8px rgba(255,71,87,.4); }
.fi-rank.r2 { color: var(--orange); font-size: 12.5px; }
.fi-rank.r3 { color: var(--yellow); font-size: 12.5px; }

/* 소스 컬러 dot */
.fi-dot {
  width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0;
}

/* 제목 — 한 줄, ellipsis */
.fi-title {
  flex: 1; font-size: 13.5px; font-weight: 600;
  letter-spacing: -.2px; line-height: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--text); transition: color var(--tr); min-width: 0;
}
.fi:hover .fi-title { color: var(--hot); }
/* 읽은 글 */
.fi-visited .fi-title { color: #aaa; }
.fi-visited .fi-rank { color: #ccc; }
.fi-visited .fi-dot { opacity: 0.4; }
/* 검색 키워드 하이라이트 — 노란 형광펜 */
.fi-title .search-hit {
  background: linear-gradient(180deg, transparent 55%, #ffe773 55%);
  color: var(--hot); font-weight: 800; padding: 0 1px; border-radius: 2px;
}
.fi-visited .fi-title .search-hit { color: #d49b00; }

/* 소스·시간 — 오른쪽 고정 */
.fi-meta-inline {
  display: flex; align-items: center; gap: 3px; flex-shrink: 0;
}
.fi-src {
  font-size: 10px; font-weight: 800;
  white-space: nowrap;
}
.fi-sep {
  font-size: 9px; color: var(--border2); flex-shrink: 0;
}
.fi-time {
  font-size: 10px; font-weight: 600; white-space: nowrap;
}

/* 시간 신선도 색상 */
.tc-hot  { color: var(--hot);    font-weight: 800; }  /* < 10분 — 빨강 */
.tc-warm { color: var(--orange); font-weight: 700; }  /* 10분~6시간 — 오렌지 */
.tc-mild { color: var(--mint);   font-weight: 600; }  /* 6~24시간 — 민트 */
.tc-old  { color: var(--muted);  font-weight: 500; }  /* 24시간+ — 회색 */

/* 배지 영역 */
.fi-badges {
  display: flex; align-items: center; gap: 3px; flex-shrink: 0;
}

/* NEW 배지 — 30분 이내 */
.badge-new {
  font-size: 9px; font-weight: 900; letter-spacing: .04em;
  color: #fff; background: var(--hot);
  padding: 2px 5px; border-radius: 4px;
  animation: badgePulse 1.8s ease-in-out infinite;
  white-space: nowrap; flex-shrink: 0;
}
@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .75; transform: scale(.93); }
}

/* 🔥 배지 — top 3 */
.badge-fire {
  font-size: 13px; line-height: 1; flex-shrink: 0;
  animation: fireShake 2.4s ease-in-out infinite;
}

/* 🔥포텐 배지 — 인기글/포텐 스크레이핑된 글 */
.badge-poten {
  font-size: 9px; font-weight: 900; letter-spacing: .02em;
  color: #fff;
  background: linear-gradient(90deg, #FF3B30, #FF9500);
  padding: 2px 6px; border-radius: 4px; flex-shrink: 0;
  animation: potenPulse 2.5s ease-in-out infinite;
}
@keyframes potenPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .7; }
}
.fi-poten { border-left: 3px solid #FF3B30 !important; }
@keyframes fireShake {
  0%, 100% { transform: rotate(0deg); }
  20%       { transform: rotate(-8deg); }
  40%       { transform: rotate(8deg); }
  60%       { transform: rotate(-4deg); }
  80%       { transform: rotate(4deg); }
}

/* 24h 이내 아이템 (fi-new) — 배경 미세 강조 */
.fi.fi-new {
  background: linear-gradient(90deg, rgba(var(--src-color-r,255),var(--src-color-g,71),var(--src-color-b,87),.04) 0%, transparent 80%);
}

/* r1 상위 1위 특별 강조 */
.fi-rank.r1 {
  text-shadow: 0 0 8px rgba(255,71,87,.5);
}

/* ════════ 라이브 방문자 카운터 ════════ */
.live-count {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; color: var(--hot);
  background: var(--hot-pale); border: 1px solid rgba(255,71,87,.25);
  border-radius: 999px; padding: 2px 8px; white-space: nowrap;
  animation: countFlicker 4s ease-in-out infinite;
}
.live-count::before {
  content: '●'; font-size: 7px; color: var(--hot);
  animation: livePulse 1.2s ease-in-out infinite;
}
@keyframes countFlicker {
  0%, 90%, 100% { opacity: 1; }
  95%            { opacity: .7; }
}

/* ════════ FOMO 새 글 알림 배너 ════════ */
.new-items-notice {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; margin: 0;
  background: linear-gradient(90deg, #e84040 0%, #ff6348 100%);
  color: #fff; font-size: 13px; font-weight: 800;
  cursor: pointer; letter-spacing: -.1px;
  animation: noticePop .35s cubic-bezier(.34,1.56,.64,1);
  transition: opacity var(--tr), transform var(--tr);
  border-bottom: 1px solid rgba(0,0,0,.12);
  border-top: 2px solid rgba(255,255,255,.25);
}
.new-items-notice:hover { opacity: .92; transform: translateY(-1px); }
.new-items-notice strong { font-size: 15px; }
@keyframes noticePop {
  0%   { transform: scaleY(0) translateY(-8px); opacity: 0; }
  100% { transform: scaleY(1) translateY(0);    opacity: 1; }
}

/* 레거시 호환 (혹시 남아있는 .fi-meta/.fi-source/.fi-hot-badge) */
.fi-meta   { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.fi-source { font-size: 10.5px; font-weight: 700; color: var(--hot);
             background: var(--hot-pale); padding: 1px 6px; border-radius: 999px; }
.fi-hot-badge { font-size: 12px; }

.feed-error {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 40px 20px; text-align: center; color: var(--muted);
}
.retry-btn {
  background: var(--hot-pale); border: 1.5px solid var(--hot);
  color: var(--hot); border-radius: 999px; padding: 7px 20px;
  font-size: 13px; font-weight: 700;
  transition: all var(--tr);
}
.retry-btn:hover { background: var(--hot); color: #fff; }

/* ════════ SIDEBAR ════════ */
.side-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); margin-bottom: 8px;
}
.side-card:last-child { margin-bottom: 0; }

.side-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 12px 4px; border-bottom: 1px solid var(--border);
}
.side-title { font-size: 14px; font-weight: 800; letter-spacing: -.3px; }
.side-more {
  font-size: 11.5px; color: var(--hot); font-weight: 700;
  transition: opacity var(--tr);
}
.side-more:hover { opacity: .7; }

/* 커뮤니티 카테고리 탭 */
.comm-cat-tabs {
  display: flex; gap: 4px; padding: 6px 10px;
  overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border);
}
.comm-cat-tabs::-webkit-scrollbar { display: none; }
.cc-tab {
  background: var(--bg); border: 1.5px solid var(--border2);
  color: var(--muted); border-radius: 999px;
  padding: 3px 11px; font-size: 12px; font-weight: 700;
  white-space: nowrap; flex-shrink: 0; transition: all var(--tr);
}
.cc-tab:hover { color: var(--hot); border-color: var(--hot); background: var(--hot-pale); }
.cc-tab.active { background: var(--hot); color: #fff; border-color: transparent; }

/* 커뮤니티 리스트 */
.comm-list { display: flex; flex-direction: column; }
.citem {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text);
  transition: background var(--tr);
}
.citem:last-child { border-bottom: none; }
.citem:hover { background: var(--hot-pale); }
.citem-icon { font-size: 18px; flex-shrink: 0; }
.citem-body { flex: 1; min-width: 0; }
.citem-name { font-size: 12.5px; font-weight: 700; }
.citem-desc { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.citem-tag {
  font-size: 10px; font-weight: 800; padding: 1px 6px;
  border-radius: 999px; flex-shrink: 0; background: var(--hot-pale); color: var(--hot);
}

/* ════════ 커뮤니티 인기글 포스트 아이템 ════════ */
.comm-posts-list { display: flex; flex-direction: column; max-height: 460px; overflow-y: auto; }
.cp-loading { padding: 16px 12px; font-size: 12px; color: var(--muted); text-align: center; }
.cp-item {
  display: flex; align-items: flex-start; gap: 6px;
  padding: 7px 12px; border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text); transition: background var(--tr);
}
.cp-item:last-child { border-bottom: none; }
.cp-item:hover { background: var(--hot-pale); }
.cp-src {
  font-size: 9px; font-weight: 900; color: #fff;
  padding: 2px 5px; border-radius: 4px;
  white-space: nowrap; flex-shrink: 0; margin-top: 2px;
}
.cp-title {
  flex: 1; font-size: 12px; font-weight: 600; line-height: 1.4;
  color: var(--text); overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.cp-item:hover .cp-title { color: var(--hot); }
.cp-time { font-size: 10px; color: var(--muted); white-space: nowrap; margin-top: 2px; flex-shrink: 0; }

/* ════════ 유튜브 급상승 ════════ */
.yt-feed { padding: 2px 0; }
.yt-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text); transition: background var(--tr);
}
.yt-item:last-child { border-bottom: none; }
.yt-item:hover { background: #FFF0F1; }
.yt-rank {
  font-size: 13px; font-weight: 900; min-width: 22px; text-align: center;
  flex-shrink: 0; color: var(--muted);
}
.yt-item:nth-child(1) .yt-rank { color: #FF0000; }
.yt-item:nth-child(2) .yt-rank { color: #FF4757; }
.yt-item:nth-child(3) .yt-rank { color: var(--orange); }
.yt-thumb {
  width: 64px; height: 36px; border-radius: 5px;
  object-fit: cover; flex-shrink: 0; background: var(--border2);
}
.yt-info { flex: 1; min-width: 0; }
.yt-title {
  font-size: 13px; font-weight: 600; line-height: 1.35;
  color: var(--text); letter-spacing: -.2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.yt-item:hover .yt-title { color: #FF0000; }
.yt-ch { font-size: 10.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yt-badge {
  font-size: 9px; font-weight: 900; background: #FF0000; color: #fff;
  padding: 1px 5px; border-radius: 3px; white-space: nowrap; flex-shrink: 0;
}

/* ════════ 분야별 뉴스 ════════ */
.multi-news-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; padding: 0;
}
.mn-col {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.mn-col:nth-child(2n) { border-right: none; }
.mn-col:nth-child(3), .mn-col:nth-child(4) { border-bottom: none; }
.mn-col-head {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 10px; background: var(--bg);
  font-size: 11.5px; font-weight: 800; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mn-col-icon { font-size: 14px; }
.mn-item {
  display: block; padding: 5px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 11.5px; font-weight: 500; color: var(--text2);
  text-decoration: none; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: all var(--tr);
}
.mn-item:last-child { border-bottom: none; }
.mn-item:hover { background: var(--hot-pale); color: var(--hot); }
.mn-loading { padding: 10px; font-size: 11px; color: var(--muted); text-align: center; }

/* 오늘 꼭 확인 그리드 */
.daily-check-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px; padding: 8px 10px 10px;
}
.dcheck-item {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 10px; background: var(--bg);
  border: 1.5px solid var(--border2); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text2);
  font-size: 12px; font-weight: 600;
  transition: all var(--tr);
}
.dcheck-item:hover { border-color: var(--hot); background: var(--hot-pale); color: var(--hot); transform: translateY(-1px); }
.dcheck-icon { font-size: 15px; flex-shrink: 0; }
.dcheck-label { font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 메모 */
.memo-clear-btn {
  font-size: 11.5px; color: var(--muted); background: var(--bg);
  border: 1.5px solid var(--border2); border-radius: 999px;
  padding: 3px 10px; transition: all var(--tr);
}
.memo-clear-btn:hover { border-color: var(--hot); color: var(--hot); }
.memo-ta {
  width: 100%; padding: 12px 14px;
  font-size: 13.5px; line-height: 1.7; color: var(--text);
  background: var(--bg); min-height: 110px; max-height: 240px;
  resize: vertical; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.memo-ta::placeholder { color: var(--muted); }
.memo-saved { font-size: 11px; color: var(--mint); font-weight: 600; padding: 7px 14px; height: 28px; }

/* 환율 */
.ex-list { padding: 5px 10px 8px; display: flex; flex-direction: column; gap: 4px; }
.ex-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 8px; background: var(--bg); border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.ex-left { display: flex; align-items: center; gap: 6px; }
.ex-flag { font-size: 15px; }
.ex-name { font-size: 12px; font-weight: 700; color: var(--text2); }
.ex-rate { font-size: 13px; font-weight: 900; color: var(--text); }
.ex-loading { font-size: 12px; color: var(--muted); text-align: center; padding: 10px; }

/* 쇼핑 미니 — 가로 pill */
.shop-mini-grid {
  display: flex; flex-wrap: wrap;
  gap: 5px; padding: 8px 10px 10px;
}
.shop-mini {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; background: var(--bg);
  border: 1.5px solid var(--border2); border-radius: 999px;
  text-decoration: none; color: var(--text);
  transition: all var(--tr);
}
.shop-mini:hover { border-color: var(--hot); background: var(--hot-pale); color: var(--hot); }
.shop-mini-icon { font-size: 13px; }
.shop-mini-name { font-size: 12px; font-weight: 700; white-space: nowrap; }

/* ════════ 커뮤니티 풀 섹션 ════════ */
.full-comm-section {
  background: var(--surface);
  padding: 18px 0 24px;
  border-top: 2px solid var(--border);
}
[data-theme="dark"] .full-comm-section {
  background: var(--bg2);
}

.section-hd {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px;
}
.sh2 { font-size: 16px; font-weight: 900; letter-spacing: -.3px; }
.sh2-sub { font-size: 12px; color: var(--muted); }

/* pill 스타일로 */
.full-comm-grid {
  display: flex; flex-wrap: wrap; gap: 7px;
}
.fcomm {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg); border: 1.5px solid var(--border2);
  border-radius: 999px; padding: 6px 14px;
  text-decoration: none; color: var(--text);
  transition: all var(--tr);
}
.fcomm:hover { border-color: var(--hot); background: var(--hot-pale); color: var(--hot); }
.fcomm-icon { font-size: 15px; }
.fcomm-name { font-size: 13px; font-weight: 700; letter-spacing: -.2px; }
.fcomm-desc { display: none; }
.fcomm-tag { display: none; }

/* ════════ 로또 행운번호 ════════ */
.lotto-wrap {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  padding: 8px 14px 10px;
}
.lotto-ball {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 900; color: #fff; flex-shrink: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  box-shadow: 0 2px 5px rgba(0,0,0,.18);
}
.lotto-plus { font-size: 14px; font-weight: 900; color: var(--muted); }
.lotto-bonus { border: 2.5px solid rgba(0,0,0,.25); }
.lotto-note { font-size: 10.5px; color: var(--muted); padding: 0 14px 8px; }

/* ════════ 사이드 위젯 공통 ════════ */
.col-side .side-card { margin-bottom: 0; }

.sw-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 12px 4px; border-bottom: 1px solid var(--border);
}
.sw-title { font-size: 12.5px; font-weight: 900; color: var(--text); letter-spacing: -.3px; }
.sw-refresh {
  background: none; border: none; cursor: pointer; font-size: 15px;
  color: var(--muted); transition: color var(--tr), transform .3s;
}
.sw-refresh:hover { color: var(--hot); transform: rotate(180deg); }

/* ── 날씨 카드 ── */
.sw-weather-card { padding: 10px 12px; }
.sw-loading { font-size: 12px; color: var(--muted); }
.sw-wth-main { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.sw-wth-icon { font-size: 28px; line-height: 1; }
.sw-wth-temp { font-size: 26px; font-weight: 900; color: var(--text); line-height: 1; }
.sw-wth-info { display: flex; flex-direction: column; gap: 2px; }
.sw-wth-city { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.sw-wth-desc { font-size: 11.5px; color: var(--text2); }
.sw-wth-air  { font-size: 11px; font-weight: 700; }
.sw-wth-link { font-size: 11px; color: var(--hot); text-decoration: none; }
.sw-wth-link:hover { text-decoration: underline; }

/* 날씨 5일 예보 */
.sw-wth-forecast {
  display: flex; gap: 4px; padding: 8px 12px 10px;
  border-top: 1px solid var(--border); margin-top: 4px;
  overflow-x: auto; scrollbar-width: none;
}
.sw-wth-forecast::-webkit-scrollbar { display: none; }
.sw-fc-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 36px; flex: 1;
}
.sw-fc-day  { font-size: 10px; color: var(--muted); font-weight: 700; }
.sw-fc-icon { font-size: 15px; line-height: 1.3; }
.sw-fc-hi   { font-size: 11px; font-weight: 700; color: #e74c3c; }
.sw-fc-lo   { font-size: 11px; color: #3498db; }

/* ── 시세 카드 (다크 터미널 느낌) ── */
/* ── 유튜브 인기 키워드 카드 ── */
.sw-yt-card { padding: 0; overflow: hidden; }
.sw-yt-pills {
  display: flex; flex-direction: column;
  padding: 2px 0;
}
.yt-pill {
  display: flex; align-items: center; gap: 7px;
  padding: 4px 10px;
  border: none; background: none;
  cursor: pointer; text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text); font-size: 12px;
  width: 100%; overflow: hidden;
  white-space: nowrap; text-overflow: ellipsis;
  transition: background var(--tr);
}
.yt-pill:last-child { border-bottom: none; }
.yt-pill:hover { background: rgba(255,0,0,0.05); }
.yt-pill-num {
  font-size: 11px; font-weight: 900; color: #ff4444;
  min-width: 16px; flex-shrink: 0;
}

.sw-ticker-card { padding: 0; overflow: hidden; }
.sw-ticker-time { font-size: 10px; color: var(--muted); }
.sw-ticker-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
}
.sw-tick-loading { padding: 12px; font-size: 12px; color: var(--muted); grid-column: 1/-1; }
.sw-tick-item {
  padding: 8px 10px; border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.sw-tick-item:nth-child(even) { border-right: none; }
.sw-tick-item:nth-last-child(-n+2) { border-bottom: none; }
.sw-tick-label { font-size: 10px; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.sw-tick-val   { font-size: 13.5px; font-weight: 900; color: var(--text); line-height: 1.2; }
.sw-tick-chg   { font-size: 10px; font-weight: 700; margin-top: 1px; }
.sw-tick-chg.up   { color: #e74c3c; }
.sw-tick-chg.down { color: #2980b9; }
.sw-tick-chg.flat { color: var(--muted); }

/* ── 운세 카드 ── */
.sw-fortune-card { padding: 0; overflow: hidden; }
.sw-fortune-inputs { padding: 4px 8px; display: flex; flex-direction: column; gap: 3px; }
.sw-fs-inp {
  background: var(--bg); border: 1.5px solid var(--border2);
  border-radius: 7px; padding: 4px 8px; font-size: 12px;
  color: var(--text); width: 100%; box-sizing: border-box;
  text-align: center; transition: border-color var(--tr);
}
.sw-fs-inp:focus { border-color: var(--hot); outline: none; }
.sw-fs-row2 { display: flex; gap: 5px; }
.sw-fs-sm { flex: 1; }
.sw-fs-btns { display: flex; gap: 5px; }
.sw-fs-btn {
  background: linear-gradient(135deg, #8B5CF6, #EC4899);
  color: #fff; border-radius: 8px; padding: 5px;
  font-size: 12px; font-weight: 700; cursor: pointer;
  transition: opacity var(--tr); flex: 1;
}
.sw-fs-btn:hover { opacity: .88; }
.sw-saju-btn {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #fff; border-radius: 8px; padding: 5px;
  font-size: 12px; font-weight: 700; cursor: pointer;
  transition: opacity var(--tr); flex: 1;
}
.sw-saju-btn:hover { opacity: .88; }
.sw-fortune-result {
  padding: 8px 12px 10px;
  border-top: 1px solid var(--border);
}
.sw-fortune-row {
  display: flex; align-items: flex-start; gap: 6px;
  padding: 5px 0; border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.sw-fortune-row:last-child { border-bottom: none; padding-bottom: 0; }
.sw-ft-label { flex-shrink: 0; font-weight: 800; width: 48px; color: var(--text2); }
.sw-ft-val   { color: var(--text); line-height: 1.4; }
.sw-fortune-lucky {
  margin-top: 6px; padding: 6px 10px;
  background: linear-gradient(135deg, var(--hot-pale), #f0e6ff);
  border-radius: 8px; text-align: center;
  font-size: 12px; font-weight: 700; color: var(--text2);
}

/* ════════ 유튜브 트렌딩 ════════ */
.yt-trend-card { padding: 0; overflow: hidden; }

.yt-trend-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 6px;
  border-bottom: 1px solid var(--border);
}
.yt-trend-title {
  font-size: 13px; font-weight: 900; color: #FF0000;
  letter-spacing: -.3px;
}
.yt-refresh-btn {
  background: none; border: none; cursor: pointer;
  font-size: 16px; color: var(--muted); padding: 2px 4px;
  border-radius: 4px; transition: opacity var(--tr), color var(--tr);
}
.yt-refresh-btn:hover { color: var(--text); }

.yt-cat-tabs {
  display: flex; flex-wrap: wrap; gap: 4px;
  padding: 7px 10px 5px;
  border-bottom: 1px solid var(--border);
}
.yt-tab {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 3px 10px;
  font-size: 11px; font-weight: 700; color: var(--text2);
  cursor: pointer; transition: all var(--tr);
  white-space: nowrap;
}
.yt-tab:hover { border-color: #FF0000; color: #FF0000; }
.yt-tab.active {
  background: #FF0000; border-color: #FF0000;
  color: #fff;
}

.yt-trend-list { display: flex; flex-direction: column; }

.yt-loading {
  padding: 20px 14px; text-align: center;
  font-size: 12px; color: var(--muted); line-height: 1.8;
}

.yt-item {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 8px 10px; text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background var(--tr);
}
.yt-item:last-child { border-bottom: none; }
.yt-item:hover { background: var(--hover); }

.yt-rank {
  flex-shrink: 0; width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; border-radius: 50%;
  background: var(--surface); color: var(--text2);
  margin-top: 1px;
}
.yt-rank.gold   { background: #FFD700; color: #5a4000; }
.yt-rank.silver { background: #C0C0C0; color: #333; }
.yt-rank.bronze { background: #CD7F32; color: #fff; }

.yt-info {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}
.yt-title {
  font-size: 12px; font-weight: 700; color: var(--text);
  line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.yt-meta {
  font-size: 10.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ════════ 커뮤 더보기 행 ════════ */
.comm-pg-btn {
  background: var(--bg); border: 1.5px solid var(--border2);
  border-radius: 6px; padding: 4px 10px; font-size: 12px;
  font-weight: 700; color: var(--text2); cursor: pointer;
  transition: all var(--tr);
}
.comm-pg-btn:hover:not(:disabled) { background: var(--hot); color: #fff; border-color: var(--hot); }
.comm-pg-btn:disabled { opacity: .35; cursor: default; }
.comm-pg-info { font-size: 12px; font-weight: 800; color: var(--text2); padding: 0 4px; }

/* ════════ 운세 사이드 카드 ════════ */
.fortune-side-card { padding: 0; overflow: hidden; }
.fortune-side-card .side-card-head { padding: 10px 12px 8px; border-bottom: 1px solid var(--border); }

.fs-input-wrap { padding: 10px 10px 6px; }
.fs-input-row { display: flex; gap: 5px; margin-bottom: 7px; }
.fs-inp {
  flex: 1; background: var(--bg); border: 1.5px solid var(--border2);
  border-radius: 7px; padding: 6px 8px; font-size: 12px;
  color: var(--text); text-align: center;
  transition: border-color var(--tr);
}
.fs-inp:focus { border-color: var(--hot); outline: none; }
.fs-inp-sm { flex: 0 0 46px; }
.fs-btn {
  width: 100%; background: var(--hot); color: #fff;
  border-radius: 8px; padding: 7px; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: opacity var(--tr);
}
.fs-btn:hover { opacity: .88; }

.fs-result {
  padding: 8px 12px 4px; min-height: 36px;
}
.fs-sum-item { font-size: 12.5px; color: var(--text); font-weight: 600; line-height: 1.5; }
.fs-placeholder { font-size: 12px; color: var(--muted); }
.fs-detail-btn {
  display: block; width: calc(100% - 24px); margin: 4px 12px 10px;
  background: none; border: 1.5px solid var(--border2);
  border-radius: 8px; padding: 6px; font-size: 12px; font-weight: 700;
  color: var(--text2); cursor: pointer; transition: all var(--tr);
  text-align: center;
}
.fs-detail-btn:hover { background: var(--hot-pale); border-color: var(--hot); color: var(--hot); }

/* ════════ 하단 전체보기 ════════ */
.allview-section {
  background: var(--surface); border-top: 2px solid var(--border);
  padding: 0 0 8px;
}
.allview-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; cursor: pointer;
  transition: background var(--tr);
}
.allview-head:hover { background: var(--hover); }
.allview-title { font-size: 15px; font-weight: 900; color: var(--text); }
.allview-tabs { display: flex; gap: 5px; flex-wrap: wrap; }
.av-tab {
  background: var(--bg); border: 1.5px solid var(--border2);
  border-radius: 20px; padding: 3px 11px;
  font-size: 11.5px; font-weight: 700; color: var(--text2);
  cursor: pointer; transition: all var(--tr);
}
.av-tab:hover, .av-tab.active { background: var(--hot); border-color: var(--hot); color: #fff; }
.allview-toggle-btn {
  background: var(--hot); color: #fff; border-radius: 8px;
  padding: 5px 14px; font-size: 12.5px; font-weight: 700; cursor: pointer;
  white-space: nowrap; transition: opacity var(--tr);
}
.allview-toggle-btn:hover { opacity: .88; }
.allview-body { border-top: 1px solid var(--border); }
.allview-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0; max-height: 600px; overflow-y: auto;
}
.av-item {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 14px; text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background var(--tr);
}
.av-item:hover { background: var(--hover); }
.av-rank {
  flex-shrink: 0; font-size: 11px; font-weight: 900;
  color: var(--muted); width: 22px; text-align: center;
}
.av-dot { flex-shrink:0; width:4px; height:4px; border-radius:50%; }
.av-title {
  font-size: 12.5px; font-weight: 600; color: var(--text); flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.av-meta { font-size: 10.5px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }

/* ════════ FOOTER ════════ */
.footer {
  background: var(--surface); border-top: 2px solid var(--hot);
  padding: 16px 0 14px;
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
}
.footer-brand { font-size: 18px; font-weight: 900; color: var(--hot); }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.footer-links a { font-size: 13px; color: var(--text2); font-weight: 500; transition: color var(--tr); }
.footer-links a:hover { color: var(--hot); }
.footer-copy { font-size: 12px; color: var(--muted); }
.footer-contact { font-size: 12px; color: var(--muted); margin-top: 4px; }
.footer-contact a { color: var(--muted); text-decoration: none; }
.footer-contact a:hover { color: var(--hot); text-decoration: underline; }

/* ════════ 홈버튼 ════════ */
.tbtn-home { background: linear-gradient(135deg,#FF6B81,#FF4757) !important; color:#fff !important; font-size:13px; }
.tbtn-home:hover { transform: scale(1.12); box-shadow: 0 2px 10px rgba(255,71,87,.45); }

/* ════════ 시작페이지 설정 모달 ════════ */
.home-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.52);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; padding: 16px;
}
.home-modal {
  background: var(--surface); border-radius: 18px;
  padding: 22px 20px 18px; max-width: 380px; width: 100%;
  box-shadow: 0 12px 48px rgba(0,0,0,.22);
  position: relative; animation: modalIn .2s ease;
}
@keyframes modalIn { from{transform:scale(.92);opacity:0} to{transform:scale(1);opacity:1} }
.home-modal-close {
  position: absolute; top: 14px; right: 14px;
  background: var(--bg); border: none; border-radius: 50%;
  width: 26px; height: 26px; font-size: 13px; cursor: pointer;
  color: var(--muted); display: flex; align-items: center; justify-content: center;
}
.home-modal-close:hover { background: var(--hot); color: #fff; }
.home-modal-title { font-size: 17px; font-weight: 900; color: var(--text); margin-bottom: 10px; }
.home-modal-url {
  background: var(--bg); border: 1.5px solid var(--border2);
  border-radius: 8px; padding: 8px 12px; font-size: 13px; font-weight: 700;
  color: var(--hot); margin-bottom: 8px; word-break: break-all;
}
.home-modal-copy {
  width: 100%; padding: 8px; border-radius: 8px;
  background: var(--hot); color: #fff; border: none;
  font-size: 13px; font-weight: 700; cursor: pointer; margin-bottom: 14px;
  transition: opacity var(--tr);
}
.home-modal-copy:hover { opacity: .88; }
.hms-tab-row { display: flex; gap: 4px; margin-bottom: 10px; }
.hms-tab {
  flex: 1; padding: 5px 4px; border-radius: 8px;
  border: 1.5px solid var(--border2); background: var(--bg);
  font-size: 11.5px; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: all var(--tr);
}
.hms-tab.active { background: var(--hot); color: #fff; border-color: var(--hot); }
.hms-content ol { padding-left: 18px; }
.hms-content li { font-size: 12.5px; color: var(--text2); margin-bottom: 5px; line-height: 1.6; }
.hms-content li strong { color: var(--hot); }
.home-modal-tip { font-size: 11.5px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.home-modal-tip strong { color: var(--text2); }

/* ════════ RESPONSIVE ════════ */
/* ════ 태블릿 (1100px 이하) ════ */
@media (max-width: 1100px) {
  .main-grid { grid-template-columns: 1fr 1fr; }
  .col-yt { grid-column: 1 / -1; }
  .col-yt .yt-trend-list { display: grid; grid-template-columns: repeat(2, 1fr); }
  .col-side { position: static; }
}

/* 모바일 큐스틸 광고 카드 */
.ad-mobile-qsteel {
  display: none;
  background: var(--surface, #fff);
  border: 1.5px solid var(--border, #E9ECEF);
  border-top: 3px solid var(--hot, #FF4757);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  position: relative;
  overflow: hidden;
}
.ad-mobile-qsteel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 50px;
  background: linear-gradient(180deg, rgba(255,71,87,.05) 0%, transparent 100%);
  pointer-events: none;
}
/* ════ 모바일 (768px 이하) ════ */
@media (max-width: 768px) {
  .sw-ticker-card { display: none; }
  .ad-mobile-qsteel { display: block; }
  /* 히어로: 달력/날씨 숨기고 검색만 */
  .hero-right-wrap { display: none; }
  .hero-layout { display: flex; flex-direction: column; gap: 4px; }
  .hero-search-col { margin-right: 0; justify-content: center; gap: 4px; }
  .hero-inner { padding: 0 10px; }
  .hero { padding: 6px 0; }

  /* 상단바 — 로또 기본 숨김, 하단바에서 토글 */
  .topbar-mid .lotto-tb-balls, .topbar-mid .lotto-prob-text { display: none; }
  .topbar-mid .lotto-expand-panel { display: none; }
  .topbar-mid .lotto-expand-panel.open { display: block !important; }
  .topbar-mid .lotto-tb { gap: 4px; flex-wrap: wrap; }
  .topbar-mid .lotto-tb-label { font-size: 12px; background: var(--hot); color: #fff; padding: 2px 8px; border-radius: 10px; font-weight: 700; }
  .topbar-mid #lottoExpandBtn { display: none; }
  .topbar-inner { height: auto; min-height: 34px; }
  .topbar-right { gap: 4px; }
  .topbar-right button { font-size: 10px !important; padding: 2px 6px !important; }
  .brand-txt { font-size: 13px; }
  .brand-sub { font-size: 9px; }

  /* 검색 엔진 탭 */
  .hero-eng-tabs { gap: 3px; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .heng2 { padding: 3px 8px; font-size: 11px; white-space: nowrap; }

  /* 검색창 */
  .hero-input { font-size: 14px; padding: 8px 12px; border-radius: 10px; }
  .hero-sbtn { font-size: 13px; padding: 8px 14px; border-radius: 10px; }

  /* 실시간 키워드 */
  .trends-strip { padding: 3px 8px; max-height: none; min-height: auto; overflow-x: auto; }
  .trends-label { font-size: 11px; }
  .t-pill { padding: 2px 7px; font-size: 10px; }

  /* 명언 */
  .quote-strip { font-size: 11px; padding: 4px 8px; max-height: none; min-height: auto; }
  .qt-text { font-size: 11px; }

  /* 메인 그리드: 1컬럼 */
  .main-grid { grid-template-columns: 1fr; gap: 6px; }
  .container { padding: 0 8px; }
  .main-wrap { padding: 4px 0 60px; } /* 하단바 여백 */

  /* 피드 카드 */
  .feed-card { border-radius: 10px; }
  .feed-card-head { padding: 6px 12px; }
  .feed-title { font-size: 15px; }
  .feed-update-info { font-size: 10px; }
  .feed-title-row > div:last-child { position: static; } /* 모바일에서 absolute 해제 */
  .feed-title-row { justify-content: space-between; }

  /* 피드 아이템 — 터치 친화적 */
  .fi { padding: 10px 12px; gap: 6px; }
  .fi-rank { min-width: 20px; font-size: 12px; }
  .fi-dot { display: none; } /* 모바일에서 dot 숨기기 */
  .fi-title { font-size: 14px; line-height: 1.4; white-space: normal; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .fi-time { font-size: 10px; }
  .fi-src { display: none; }
  .fi-sep { display: none; }
  .badge-new { font-size: 8px; padding: 1px 4px; }
  .badge-fire { font-size: 11px; }
  .fi-meta-inline { gap: 3px; flex-shrink: 0; }
  .fi-visited .fi-title { color: #bbb; }

  /* 페이저 — 터치 친화적 */
  .feed-pager { padding: 8px 8px; gap: 3px; flex-wrap: wrap; justify-content: center; }
  .fp-num, .fp-nav { min-width: 32px; height: 32px; font-size: 12px; border-radius: 8px; }
  .fp-grp { min-width: 28px; }

  /* 사이드 카드 */
  .col-side { gap: 6px; position: static; }
  .side-card { border-radius: 10px; }
  .sw-head { padding: 6px 12px; }
  .sw-title { font-size: 14px; }

  /* 인사이트 키워드 */
  .sw-yt-pills { padding: 4px 0; }
  .yt-pill { font-size: 13px; padding: 8px 12px; }
  .yt-pill-num { font-size: 12px; min-width: 20px; }

  /* 시세 — 2열 그리드 */
  .sw-tick-grid { display: grid; grid-template-columns: 1fr 1fr; }
  .sw-tick-item { padding: 6px 10px; }
  .sw-tick-label { font-size: 13px; }
  .sw-tick-val { font-size: 14px; font-weight: 700; }

  /* 운세 */
  .sw-fortune-inputs { padding: 8px 12px; gap: 6px; }
  .sw-fs-inp { padding: 8px 10px; font-size: 14px; }
  .sw-fs-btn, .sw-saju-btn { padding: 10px; font-size: 13px; }

  /* 로또 */
  .lotto-panel { padding: 4px 8px; }
  .lotto-tb-ball { width: 26px; height: 26px; font-size: 12px; }

  /* 라이브 카운터 */
  .live-count { font-size: 10px; padding: 2px 6px; }

  /* 모바일 하단 바 여백 */
  body { padding-bottom: 56px; }

  /* 시작페이지 버튼 숨기기 */
  .topbar-right button[onclick*="openHomePageGuide"] { display: none; }
}

/* ════ 작은 모바일 (400px 이하) ════ */
@media (max-width: 400px) {
  .tb-clock { display: none; }
  .hero-input { font-size: 13px; padding: 8px 10px; }
  .fi { padding: 8px 10px; }
  .fi-title { font-size: 13px; }
  .fi-rank { min-width: 18px; font-size: 11px; }
  .feed-title { font-size: 14px; }
  .fp-num, .fp-nav { min-width: 28px; height: 28px; font-size: 11px; }
  .yt-pill { font-size: 12px; padding: 6px 10px; }
  .sw-fs-inp { padding: 6px 8px; font-size: 13px; }
}

/* ════ 모바일 하단 네비게이션 바 ════ */
.mobile-nav {
  display: none; /* PC에서 숨김 */
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 9990;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px rgba(0,0,0,.08);
  height: 54px;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
@media (max-width: 768px) {
  .mobile-nav { display: flex; }
}
.mnav-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 4px 0;
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 10px;
  flex: 1; transition: color .2s;
}
.mnav-btn.mnav-active { color: var(--hot); }
.mnav-btn:active { transform: scale(0.95); }
.mnav-icon { font-size: 20px; line-height: 1; }
.mnav-label { font-weight: 600; letter-spacing: -.3px; }

/* ══════════ 좌우 광고 패널 ══════════ */
.ad-panel {
  display: none;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: calc((100vw - 1260px) / 2 - 16px);
  z-index: 100;
  align-items: center;
  justify-content: center;
}
.ad-panel-inner {
  background: var(--card, #fff);
  border: 2px dashed #e0e0e0;
  border-radius: 16px;
  padding: 28px 16px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  width: 100%;
  box-sizing: border-box;
}
.ad-label {
  font-size: 16px;
  font-weight: 800;
  color: var(--hot, #FF4757);
  margin-bottom: 10px;
  line-height: 1.5;
}
.ad-email {
  display: block;
  font-size: 13px;
  color: var(--muted, #888);
  word-break: break-all;
  text-decoration: none;
}
.ad-email:hover { color: var(--hot, #FF4757); text-decoration: underline; }
/* 큐스틸 광고 */
.ad-qsteel {
  background: var(--surface, #fff);
  border: none;
  border-top: 3px solid var(--hot, #FF4757);
  color: var(--text, #212529);
  box-shadow: 0 4px 20px rgba(0,0,0,.10);
  position: relative;
  overflow: hidden;
}
.ad-qsteel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(180deg, rgba(255,71,87,.06) 0%, transparent 100%);
  pointer-events: none;
}
.ad-qs-items {
  font-size: 12px;
  color: var(--text2, #495057);
  margin-bottom: 5px;
  letter-spacing: .2px;
  font-weight: 600;
}
.ad-qs-spec {
  font-size: 11px;
  color: var(--muted, #868E96);
  line-height: 1.7;
  margin-bottom: 10px;
}
.ad-qs-tag {
  display: inline-block;
  font-size: 10px;
  color: var(--hot, #FF4757);
  background: rgba(255,71,87,.08);
  border: 1px solid rgba(255,71,87,.2);
  border-radius: 4px;
  padding: 1px 6px;
  margin-bottom: 10px;
  letter-spacing: .5px;
  font-weight: 700;
}
.ad-qs-icon {
  margin-bottom: 10px;
}
.ad-qs-catch {
  font-size: 16px;
  font-weight: 900;
  color: var(--hot, #FF4757);
  line-height: 1.4;
  margin-bottom: 10px;
  letter-spacing: -.3px;
}
.ad-qs-name {
  font-size: 14px;
  font-weight: 900;
  color: var(--text, #212529);
  margin-bottom: 4px;
  letter-spacing: -.3px;
}
.ad-qs-info {
  font-size: 11px;
  color: var(--muted, #868E96);
  margin-bottom: 12px;
}
.ad-qs-tel {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  background: var(--hot, #FF4757);
  border-radius: 8px;
  padding: 9px 4px;
  text-align: center;
  transition: opacity .15s;
}
.ad-qs-tel:hover { opacity: .88; }
.ad-qs-contact {
  margin-top: 12px;
  font-size: 10px;
  color: var(--muted, #868E96);
  line-height: 1.7;
  border-top: 1px solid var(--border, #E9ECEF);
  padding-top: 10px;
  text-align: center;
}
.ad-qs-contact a { color: var(--muted, #868E96); text-decoration: none; }
.ad-qs-contact a:hover { color: var(--hot, #FF4757); text-decoration: underline; }
.ad-left  { left: 8px; }
.ad-right { right: 8px; }
@media (min-width: 1560px) {
  .ad-panel { display: flex; }
}

/* ── 피드 검색창 ── */
.feed-search-bar {
  border-top: 1px solid var(--border);
  padding: 7px 10px;
  display: flex;
  gap: 5px;
  align-items: center;
}
.feed-search-bar input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 12px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  font-family: inherit;
}
.feed-search-bar input:focus { border-color: var(--hot); }
.feed-search-bar input::placeholder { color: var(--muted); }
.fsb-all {
  flex-shrink: 0;
  font-size: 11px; font-weight: 700;
  padding: 5px 9px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  background: var(--bg);
  color: var(--text2);
  cursor: pointer;
  white-space: nowrap;
}
.fsb-all:hover { border-color: var(--hot); color: var(--hot); }
.fsb-btn {
  flex-shrink: 0;
  font-size: 11px; font-weight: 700;
  padding: 5px 11px;
  border: none;
  border-radius: 7px;
  background: var(--hot);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}
.fsb-btn:hover { opacity: .88; }

/* 검색 키워드 하이라이트 */
mark.srch-hl {
  background: rgba(255,71,87,.13);
  color: var(--hot);
  font-weight: 700;
  border-radius: 2px;
  padding: 0 1px;
}
