/* ══════════════════════════════════════════════
   seoul.is — Master Stylesheet v2.0
   Korea's #1 Daily Guide
   ══════════════════════════════════════════════ */

/* ─── CSS Variables ─── */
:root {
  --black:       #0a0a0a;
  --white:       #ffffff;
  --gray-50:     #f9f9f9;
  --gray-100:    #f0f0f0;
  --gray-200:    #e0e0e0;
  --gray-400:    #a0a0a0;
  --gray-600:    #666;
  --gray-800:    #333;

  /* Category colors */
  --kpop:        #ff1a6e;
  --kdrama:      #7c3aed;
  --kmovie:      #1a1a2e;
  --michelin:    #e63946;
  --travel:      #0077b6;
  --hotplaces:   #ff6b35;
  --food:        #f4a261;
  --ranking:     #ffd700;
  --realestate:  #2d6a4f;
  --lifestyle:   #e91e8c;

  --brand:       #ff1a6e;
  --brand-dark:  #cc0055;
  --tg-blue:     #0088cc;

  --font-main:   'Inter', 'Noto Sans KR', sans-serif;
  --font-display:'Bebas Neue', sans-serif;

  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 2px 16px rgba(0,0,0,.08);
  --shadow-md:   0 4px 24px rgba(0,0,0,.12);
  --shadow-lg:   0 8px 40px rgba(0,0,0,.18);

  --topbar-h:    40px;
  --header-h:    68px;
  --container:   1280px;
  --sidebar-w:   320px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-main); background: var(--gray-50); color: var(--gray-800); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ─── Utilities ─── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.mt-16 { margin-top: 16px; }
.pulse { animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:.5} 50%{opacity:1} }

/* ══════════════════ TOP BAR ══════════════════ */
.topbar {
  background: var(--black);
  color: var(--white);
  height: var(--topbar-h);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--brand);
}
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 11px;
  color: var(--gray-400);
  flex-shrink: 0;
}
.topbar-date { font-weight: 600; color: #fff; }
.topbar-sep { color: #444; }
.topbar-live { display: flex; align-items: center; gap: 5px; color: var(--brand); font-weight: 700; font-size: 11px; letter-spacing: .05em; }
.live-dot { width: 7px; height: 7px; background: var(--brand); border-radius: 50%; animation: blink 1s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }

.topbar-ticker {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  min-width: 0;
}
.ticker-label {
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-wrap { overflow: hidden; flex: 1; }
.ticker-items {
  display: inline-block;
  white-space: nowrap;
  font-size: 12px;
  color: #ccc;
  animation: ticker 40s linear infinite;
}
@keyframes ticker { 0%{transform:translateX(100%)} 100%{transform:translateX(-100%)} }

.topbar-tg {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  color: var(--tg-blue);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  transition: color .2s;
}
.topbar-tg:hover { color: #33aaff; }

/* ══════════════════ HEADER ══════════════════ */
.site-header {
  background: var(--white);
  height: var(--header-h);
  position: sticky;
  top: var(--topbar-h);
  z-index: 999;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Brand Logo */
.header-brand { display: flex; flex-direction: column; flex-shrink: 0; }
.brand-logo { display: flex; align-items: baseline; line-height: 1; }
.brand-seoul { font-family: var(--font-display); font-size: 32px; letter-spacing: -.02em; color: var(--black); }
.brand-dot { font-family: var(--font-display); font-size: 32px; color: var(--brand); }
.brand-is { font-family: var(--font-display); font-size: 32px; color: var(--brand); }
.brand-tagline { font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-400); margin-top: -2px; padding-left: 1px; }

/* Main Nav */
.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--gray-600);
  transition: all .2s;
  letter-spacing: .02em;
}
.nav-item:hover { background: var(--gray-100); color: var(--gray-800); }
.nav-item.kpop:hover      { background: rgba(255,26,110,.1); color: var(--kpop); }
.nav-item.kdrama:hover    { background: rgba(124,58,237,.1); color: var(--kdrama); }
.nav-item.kmovie:hover    { background: rgba(26,26,46,.1); color: var(--kmovie); }
.nav-item.michelin:hover  { background: rgba(230,57,70,.1); color: var(--michelin); }
.nav-item.travel:hover    { background: rgba(0,119,182,.1); color: var(--travel); }
.nav-item.hotplaces:hover { background: rgba(255,107,53,.1); color: var(--hotplaces); }
.nav-item.food:hover      { background: rgba(244,162,97,.1); color: var(--food); }
.nav-item.ranking:hover   { background: rgba(255,215,0,.15); color: #b8860b; }
.nav-item.realestate:hover{ background: rgba(45,106,79,.1); color: var(--realestate); }
.nav-item.lifestyle:hover { background: rgba(233,30,140,.1); color: var(--lifestyle); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.search-btn { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--gray-100); color: var(--gray-600); display: flex; align-items: center; justify-content: center; transition: all .2s; }
.search-btn:hover { background: var(--gray-200); color: var(--black); }
.header-tg-btn {
  display: flex; align-items: center; gap: 7px;
  background: var(--tg-blue); color: #fff;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700;
  transition: background .2s; white-space: nowrap;
}
.header-tg-btn:hover { background: #0077b6; }
.mobile-menu-btn { display: none; width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--gray-100); align-items: center; justify-content: center; }

/* Search Overlay */
.search-overlay {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 2px solid var(--gray-200);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
}
.search-overlay.active { display: block; }
.search-box { display: flex; gap: 8px; max-width: 700px; margin: 0 auto; }
.search-box input {
  flex: 1;
  border: 2px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 15px;
  outline: none;
  font-family: var(--font-main);
}
.search-box button {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  transition: background .2s;
}
.search-box #searchClose { background: var(--gray-100); color: var(--gray-600); }
.search-tags { max-width: 700px; margin: 10px auto 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--gray-400); }
.search-tags a { background: var(--gray-100); padding: 4px 10px; border-radius: 20px; color: var(--gray-600); transition: all .2s; }
.search-tags a:hover { background: var(--brand); color: #fff; }

/* Mobile Nav Panel */
.mobile-nav-panel {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: 280px; height: 100vh;
  background: var(--white);
  z-index: 2000;
  box-shadow: -4px 0 24px rgba(0,0,0,.2);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s ease;
}
.mobile-nav-panel.open { transform: translateX(0); }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--gray-200); font-weight: 700; font-size: 16px; }
.mobile-nav-panel a { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--gray-100); font-size: 15px; font-weight: 500; color: var(--gray-800); transition: background .2s; }
.mobile-nav-panel a:hover { background: var(--gray-50); }
.mobile-nav-tg { padding: 20px; }
.mobile-nav-tg a { background: var(--tg-blue); color: #fff; justify-content: center; border-radius: var(--radius-sm); border: none; }

/* ══════════════════ HERO ══════════════════ */
.hero-section { background: var(--black); padding: 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 380px; max-width: var(--container); margin: 0 auto; min-height: 480px; }

.hero-main {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.hero-skeleton { width: 100%; height: 100%; min-height: 480px; background: #1a1a1a; }
.hero-skeleton-sm { height: 150px; background: #1a1a1a; }
.hero-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hero-main:hover .hero-img { transform: scale(1.03); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 50%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 32px;
}
.hero-category-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 4px;
  font-size: 11px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: #fff;
  margin-bottom: 12px; width: fit-content;
}
.hero-title { font-size: 28px; font-weight: 900; color: #fff; line-height: 1.3; margin-bottom: 10px; }
.hero-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: rgba(255,255,255,.7); }
.hero-read-btn {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--black);
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700;
  transition: all .2s; width: fit-content;
}
.hero-read-btn:hover { background: var(--brand); color: #fff; }

.hero-side { display: flex; flex-direction: column; }
.hero-side-card {
  position: relative; overflow: hidden; cursor: pointer; flex: 1;
  border-left: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hero-side-card:last-child { border-bottom: none; }
.hero-side-img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.hero-side-card:hover .hero-side-img { transform: scale(1.05); }
.hero-side-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 60%);
  padding: 16px; display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-side-badge { font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 3px 8px; border-radius: 3px; color: #fff; margin-bottom: 6px; width: fit-content; }
.hero-side-title { font-size: 13px; font-weight: 700; color: #fff; line-height: 1.4; }

/* ══════════════════ CATEGORY PILLS ══════════════════ */
.cat-pills-section { background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 12px 0; position: sticky; top: calc(var(--topbar-h) + var(--header-h)); z-index: 90; }
.cat-pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cat-pills::-webkit-scrollbar { display: none; }
.cat-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  white-space: nowrap; border: 2px solid transparent;
  transition: all .2s;
}
.cat-pill span { font-size: 14px; }
.kpop-pill      { background: rgba(255,26,110,.1); color: var(--kpop); border-color: transparent; }
.kdrama-pill    { background: rgba(124,58,237,.1); color: var(--kdrama); }
.kmovie-pill    { background: rgba(26,26,46,.1); color: var(--kmovie); }
.michelin-pill  { background: rgba(230,57,70,.1); color: var(--michelin); }
.travel-pill    { background: rgba(0,119,182,.1); color: var(--travel); }
.hotplaces-pill { background: rgba(255,107,53,.1); color: var(--hotplaces); }
.food-pill      { background: rgba(244,162,97,.15); color: #c47a2a; }
.ranking-pill   { background: rgba(255,215,0,.15); color: #a07800; }
.realestate-pill{ background: rgba(45,106,79,.1); color: var(--realestate); }
.lifestyle-pill { background: rgba(233,30,140,.1); color: var(--lifestyle); }
.cat-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow); filter: brightness(1.1); }

/* ══════════════════ ADS ══════════════════ */
.ad-banner { background: var(--gray-100); border: 1px dashed var(--gray-200); border-radius: var(--radius); margin: 20px 0; padding: 0; overflow: hidden; position: relative; }
.ad-label { position: absolute; top: 4px; left: 8px; font-size: 10px; color: var(--gray-400); letter-spacing: .06em; text-transform: uppercase; }
.ad-placeholder { display: flex; align-items: center; justify-content: center; gap: 8px; height: 100px; color: var(--gray-400); font-size: 13px; }
.ad-placeholder.ad-300 { height: 260px; }
.ad-mid { margin: 24px 0; }
.ad-sidebar { margin: 16px 0; }

/* ══════════════════ MAIN LAYOUT ══════════════════ */
.site-main { padding: 28px 0 40px; }
.main-layout { display: grid; grid-template-columns: 1fr var(--sidebar-w); gap: 28px; align-items: start; }

/* ══════════════════ FEED SECTIONS ══════════════════ */
.feed-section { margin-bottom: 40px; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-200);
}
.section-title-wrap { display: flex; align-items: center; gap: 10px; }
.section-icon { font-size: 22px; }
.section-title { font-size: 20px; font-weight: 400; color: var(--gray-800); letter-spacing: -.01em; }
.section-title strong { font-weight: 900; }
.section-badge {
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  padding: 3px 8px; border-radius: 4px; color: #fff;
}
.live-badge  { background: var(--brand); animation: pulse 1.5s infinite; }
.new-badge   { background: var(--kdrama); }
.star-badge  { background: var(--michelin); }
.hot-badge   { background: var(--hotplaces); }
.weekly-badge{ background: #a07800; }
.section-more { font-size: 13px; font-weight: 600; color: var(--brand); display: flex; align-items: center; gap: 5px; transition: gap .2s; }
.section-more:hover { gap: 8px; }

.rss-source-bar {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 11px;
  color: var(--gray-400);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rss-label { display: flex; align-items: center; gap: 5px; font-weight: 600; color: var(--brand); white-space: nowrap; }
.rss-source { color: var(--gray-600); }

/* ── Feed Grid ── */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feed-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Skeleton */
.card-skeleton { height: 260px; background: var(--gray-200); border-radius: var(--radius); }
.list-skeleton { height: 64px; background: var(--gray-200); border-radius: var(--radius-sm); margin-bottom: 8px; }
.chart-skeleton { height: 44px; background: var(--gray-200); border-radius: var(--radius-sm); margin-bottom: 6px; }
.trend-skeleton { height: 36px; background: var(--gray-200); border-radius: var(--radius-sm); margin-bottom: 6px; list-style: none; }

/* ── Article Card ── */
.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-img-wrap { position: relative; aspect-ratio: 16/10; overflow: hidden; flex-shrink: 0; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.article-card:hover .card-img { transform: scale(1.05); }
.card-cat-badge {
  position: absolute; top: 10px; left: 10px;
  font-size: 10px; font-weight: 800; letter-spacing: .07em;
  padding: 3px 8px; border-radius: 4px; color: #fff;
}
.card-new-tag {
  position: absolute; top: 10px; right: 10px;
  background: var(--brand); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .06em;
  padding: 3px 7px; border-radius: 4px;
}
.card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 14px; font-weight: 700; line-height: 1.45; color: var(--gray-800); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-summary { font-size: 12px; color: var(--gray-600); line-height: 1.5; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--gray-400); margin-top: auto; }
.card-views { display: flex; align-items: center; gap: 4px; }
.card-date-tag { background: var(--gray-100); padding: 2px 7px; border-radius: 10px; font-size: 10px; font-weight: 600; }

/* Category colors for badges */
.badge-kpop       { background: var(--kpop); }
.badge-kdrama     { background: var(--kdrama); }
.badge-kmovie     { background: var(--kmovie); }
.badge-michelin   { background: var(--michelin); }
.badge-travel     { background: var(--travel); }
.badge-hotplaces  { background: var(--hotplaces); }
.badge-food       { background: var(--food); color: #333; }
.badge-ranking    { background: var(--ranking); color: #333; }
.badge-realestate { background: var(--realestate); }
.badge-lifestyle  { background: var(--lifestyle); }

/* ══════════════════ TRAVEL REGIONS ══════════════════ */
.travel-regions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }
.region-card { border-radius: var(--radius); overflow: hidden; position: relative; cursor: pointer; display: block; }
.region-img { aspect-ratio: 4/3; background-size: cover; background-position: center; transition: transform .3s; }
.region-card:hover .region-img { transform: scale(1.06); }
.region-name { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; font-weight: 800; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.region-count { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-size: 11px; color: rgba(255,255,255,.8); }

/* ══════════════════ HOT PLACES LIST ══════════════════ */
.feed-list-style { display: flex; flex-direction: column; gap: 10px; }
.hot-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--white); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow);
  cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.hot-item:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.hot-rank { font-size: 24px; font-weight: 900; min-width: 36px; color: var(--gray-200); font-family: var(--font-display); }
.hot-rank.rank-1 { color: var(--brand); }
.hot-rank.rank-2 { color: var(--hotplaces); }
.hot-rank.rank-3 { color: var(--ranking); color: #b8860b; }
.hot-img { width: 72px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.hot-body { flex: 1; min-width: 0; }
.hot-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-sub { font-size: 12px; color: var(--gray-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-tag { background: var(--gray-100); color: var(--gray-600); font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 20px; white-space: nowrap; }

/* ══════════════════ FOOD SUBCATS ══════════════════ */
.food-subcats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.food-cat-btn { padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; background: var(--gray-100); color: var(--gray-600); transition: all .2s; border: 2px solid transparent; }
.food-cat-btn.active, .food-cat-btn:hover { background: var(--food); color: #fff; border-color: var(--food); }

/* ══════════════════ RANKING ══════════════════ */
.ranking-tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.rank-tab { padding: 7px 14px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; background: var(--gray-100); color: var(--gray-600); transition: all .2s; }
.rank-tab.active, .rank-tab:hover { background: var(--ranking); color: #333; }
.ranking-list { display: flex; flex-direction: column; gap: 8px; }
.rank-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border-radius: var(--radius-sm);
  padding: 12px 16px; box-shadow: var(--shadow);
  cursor: pointer; transition: all .2s;
}
.rank-item:hover { box-shadow: var(--shadow-md); transform: translateX(3px); }
.rank-num { font-size: 20px; font-weight: 900; min-width: 28px; color: var(--gray-200); font-family: var(--font-display); text-align: center; }
.rank-num.n1 { color: var(--brand); }
.rank-num.n2 { color: var(--hotplaces); }
.rank-num.n3 { color: #b8860b; }
.rank-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.rank-info { flex: 1; min-width: 0; }
.rank-title { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.rank-sub { font-size: 12px; color: var(--gray-400); }
.rank-change { font-size: 12px; font-weight: 700; flex-shrink: 0; }
.rank-change.up { color: var(--brand); }
.rank-change.down { color: var(--travel); }
.rank-change.new { background: var(--brand); color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 10px; }

/* ══════════════════ MARKET STATS ══════════════════ */
.market-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); text-align: center; }
.stat-label { font-size: 11px; color: var(--gray-400); font-weight: 600; margin-bottom: 6px; }
.stat-value { font-size: 18px; font-weight: 800; color: var(--gray-800); margin-bottom: 4px; }
.stat-change { font-size: 12px; font-weight: 700; }
.stat-change.up { color: #e63946; }
.stat-change.down { color: #0077b6; }

/* ══════════════════ SIDEBAR ══════════════════ */
.sidebar-col { position: sticky; top: calc(var(--topbar-h) + var(--header-h) + 56px); max-height: calc(100vh - 200px); overflow-y: auto; scrollbar-width: thin; padding-bottom: 20px; }
.sidebar-col::-webkit-scrollbar { width: 4px; }
.sidebar-col::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 4px; }
.sidebar-widget { background: var(--white); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.widget-title { font-size: 14px; font-weight: 800; color: var(--gray-800); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--gray-100); }

/* Telegram Widget */
.tg-widget { background: linear-gradient(135deg, #0088cc, #0066aa); color: #fff; }
.tg-widget-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.tg-widget-header .fab { font-size: 32px; }
.tg-widget-title { font-size: 16px; font-weight: 800; }
.tg-widget-sub { font-size: 12px; opacity: .8; margin-top: 2px; }
.tg-widget p { font-size: 13px; line-height: 1.5; opacity: .9; margin-bottom: 14px; }
.tg-join-btn { display: flex; align-items: center; justify-content: center; gap: 8px; background: #fff; color: #0088cc; padding: 11px; border-radius: var(--radius-sm); font-weight: 800; font-size: 14px; transition: all .2s; }
.tg-join-btn:hover { background: #f0f8ff; transform: scale(1.02); }
.tg-stats { display: flex; gap: 14px; margin-top: 12px; font-size: 12px; opacity: .8; }
.tg-stats span { display: flex; align-items: center; gap: 5px; }

/* Trending List */
.trending-list { display: flex; flex-direction: column; gap: 4px; }
.trend-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--gray-100); cursor: pointer; transition: opacity .2s; }
.trend-item:last-child { border-bottom: none; }
.trend-item:hover { opacity: .75; }
.trend-num { font-size: 15px; font-weight: 900; min-width: 22px; color: var(--gray-200); font-family: var(--font-display); }
.trend-num.t1,.trend-num.t2,.trend-num.t3 { color: var(--brand); }
.trend-body { flex: 1; min-width: 0; }
.trend-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--gray-800); }
.trend-cat { font-size: 11px; color: var(--gray-400); }
.trend-arrow { font-size: 10px; color: var(--gray-400); }

/* Social Feed Widget */
.social-feed { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.social-item { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: var(--gray-600); line-height: 1.4; padding-bottom: 8px; border-bottom: 1px solid var(--gray-100); }
.social-item:last-child { border-bottom: none; padding-bottom: 0; }
.social-platform { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; flex-shrink: 0; }
.social-platform.tw { background: #1da1f2; }
.social-platform.ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.social-platform.tt { background: #010101; }
.social-platform.yt { background: #ff0000; }
.social-platforms { display: flex; gap: 6px; flex-wrap: wrap; }
.sp-badge { font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 20px; }
.sp-badge.tw { background: #e8f5fd; color: #1da1f2; }
.sp-badge.ig { background: #fde8f0; color: #dc2743; }
.sp-badge.tt { background: #f0f0f0; color: #010101; }
.sp-badge.yt { background: #ffeeee; color: #ff0000; }

/* Weather Widget */
.weather-body { display: flex; flex-direction: column; gap: 10px; }
.weather-main { display: flex; align-items: center; gap: 14px; }
.weather-icon { font-size: 40px; }
.weather-temp { font-size: 32px; font-weight: 800; color: var(--gray-800); }
.weather-detail { font-size: 13px; color: var(--gray-400); }
.weather-row { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--gray-100); }
.weather-row:last-child { border-bottom: none; }
.weather-row span:first-child { color: var(--gray-400); }
.weather-row span:last-child { font-weight: 600; color: var(--gray-800); }

/* Chart Widget */
.chart-list { display: flex; flex-direction: column; gap: 6px; }
.chart-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--gray-100); }
.chart-item:last-child { border-bottom: none; }
.chart-rank { font-size: 14px; font-weight: 900; min-width: 20px; color: var(--gray-400); font-family: var(--font-display); }
.chart-rank.cr1 { color: var(--kpop); }
.chart-info { flex: 1; min-width: 0; }
.chart-song { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-artist { font-size: 11px; color: var(--gray-400); }
.chart-change { font-size: 11px; font-weight: 700; }
.chart-change.up { color: var(--brand); }
.chart-change.stable { color: var(--gray-400); }
.chart-change.down { color: var(--travel); }

/* Netflix List */
.netflix-list { display: flex; flex-direction: column; gap: 6px; }
.netflix-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--gray-100); cursor: pointer; }
.netflix-item:last-child { border-bottom: none; }
.netflix-rank { font-size: 18px; font-weight: 900; min-width: 24px; color: var(--gray-200); font-family: var(--font-display); }
.netflix-rank.nr1 { color: #e50914; }
.netflix-thumb { width: 44px; height: 30px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.netflix-info { flex: 1; min-width: 0; }
.netflix-title { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.netflix-type { font-size: 11px; color: var(--gray-400); }

/* Quick Guide */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.guide-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; background: var(--gray-50); border-radius: var(--radius-sm); font-size: 12px; color: var(--gray-600); text-align: center; transition: all .2s; font-weight: 500; }
.guide-item i { font-size: 18px; color: var(--brand); }
.guide-item:hover { background: var(--brand); color: #fff; }
.guide-item:hover i { color: #fff; }

/* ══════════════════ TELEGRAM FULL BANNER ══════════════════ */
.tg-fullbanner { background: linear-gradient(135deg, #003d6b, #0088cc); padding: 36px 0; margin: 20px 0 0; }
.tg-fullbanner-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.tg-fb-left { display: flex; align-items: center; gap: 20px; }
.tg-fb-icon { font-size: 52px; color: #fff; }
.tg-fb-text h3 { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.tg-fb-text p { font-size: 14px; color: rgba(255,255,255,.8); max-width: 500px; line-height: 1.5; }
.tg-fb-btn { display: flex; align-items: center; gap: 10px; background: #fff; color: #0088cc; padding: 14px 28px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 800; white-space: nowrap; transition: all .2s; flex-shrink: 0; }
.tg-fb-btn:hover { background: #f0f8ff; transform: scale(1.02); box-shadow: 0 4px 20px rgba(0,0,0,.2); }

/* ══════════════════ SOCIAL SHARE SECTION ══════════════════ */
.social-share-section { background: var(--white); padding: 40px 0; border-top: 1px solid var(--gray-200); }
.share-title { text-align: center; font-size: 20px; font-weight: 800; color: var(--gray-800); margin-bottom: 24px; }
.social-follow-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.follow-btn { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--radius); transition: all .2s; border: 2px solid transparent; }
.follow-btn i { font-size: 22px; flex-shrink: 0; }
.follow-btn div span { font-size: 14px; font-weight: 700; display: block; }
.follow-btn div small { font-size: 11px; color: rgba(255,255,255,.7); }
.follow-btn.twitter   { background: #1da1f2; color: #fff; }
.follow-btn.instagram { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743); color: #fff; }
.follow-btn.tiktok    { background: #010101; color: #fff; }
.follow-btn.youtube   { background: #ff0000; color: #fff; }
.follow-btn.telegram  { background: #0088cc; color: #fff; }
.follow-btn.facebook  { background: #1877f2; color: #fff; }
.follow-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ══════════════════ FOOTER ══════════════════ */
.site-footer { background: var(--black); color: rgba(255,255,255,.7); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-logo { font-family: var(--font-display); font-size: 38px; color: #fff; margin-bottom: 14px; }
.footer-logo span { color: var(--brand); }
.footer-brand-col p { font-size: 13px; line-height: 1.6; margin-bottom: 16px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; transition: all .2s; }
.footer-social a:hover { background: var(--brand); color: #fff; }
.footer-links-col h4 { font-size: 13px; font-weight: 800; color: #fff; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer-links-col a { display: block; font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 9px; transition: color .2s; }
.footer-links-col a:hover { color: #fff; }
.footer-tg-col h4 { font-size: 13px; font-weight: 800; color: #fff; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer-tg-box { display: flex; gap: 12px; }
.footer-tg-box .fab { font-size: 28px; color: #0088cc; flex-shrink: 0; margin-top: 2px; }
.footer-tg-box strong { font-size: 14px; color: #fff; display: block; margin-bottom: 4px; }
.footer-tg-box p { font-size: 12px; color: rgba(255,255,255,.6); line-height: 1.5; margin-bottom: 6px; }
.footer-tg-box a { font-size: 12px; color: #0088cc; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; font-size: 12px; color: rgba(255,255,255,.4); gap: 20px; flex-wrap: wrap; }

/* ══════════════════ FLOATING BUTTONS ══════════════════ */
.float-tg-btn {
  position: fixed; bottom: 80px; right: 24px; z-index: 500;
  display: flex; align-items: center; gap: 8px;
  background: var(--tg-blue); color: #fff;
  padding: 13px 18px; border-radius: 28px;
  font-size: 14px; font-weight: 700;
  box-shadow: 0 4px 20px rgba(0,136,204,.4);
  transition: all .2s;
  animation: pulse-tg 2.5s ease-in-out infinite;
}
.float-tg-btn:hover { background: #0077b6; transform: scale(1.05); animation: none; }
.float-tg-btn .fab { font-size: 18px; }
@keyframes pulse-tg { 0%,100%{box-shadow:0 4px 20px rgba(0,136,204,.4)} 50%{box-shadow:0 4px 32px rgba(0,136,204,.7)} }

.back-to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 500;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-size: 16px; display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(255,26,110,.4);
  transition: all .2s;
}
.back-to-top.visible { display: flex; }
.back-to-top:hover { transform: scale(1.1); background: var(--brand-dark); }

/* ══════════════════ ARCHIVE HEADER BUTTON ══════════════════ */
.archive-header-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 700;
  background: #fff0f4; color: var(--brand);
  border: 1.5px solid var(--brand);
  transition: all .2s; white-space: nowrap;
}
.archive-header-btn:hover { background: var(--brand); color: #fff; }

/* ══════════════════ DAILY DIGEST STRIP ══════════════════ */
.daily-digest-strip {
  background: var(--white);
  border-top: 2px solid var(--gray-200);
  padding: 28px 0;
}
.digest-strip-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.digest-strip-title {
  font-size: 16px; font-weight: 800; color: var(--gray-800);
  display: flex; align-items: center; gap: 10px;
}
.digest-strip-title i { color: var(--brand); }
.digest-strip-more {
  font-size: 13px; font-weight: 600; color: var(--brand);
  display: flex; align-items: center; gap: 5px; transition: gap .2s;
}
.digest-strip-more:hover { gap: 8px; }
.digest-strip-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.digest-day-card {
  background: var(--gray-50); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); padding: 14px;
  cursor: pointer; transition: all .2s;
  display: block;
}
.digest-day-card:hover { border-color: var(--brand); background: #fff8fa; transform: translateY(-2px); box-shadow: var(--shadow); }
.digest-day-card.today-card { border-color: var(--brand); background: #fff0f4; }
.digest-date-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.digest-date-badge {
  font-family: var(--font-display); font-size: 16px; color: var(--brand); letter-spacing: .03em;
}
.digest-art-count {
  font-size: 11px; font-weight: 700; background: var(--brand); color: #fff;
  padding: 2px 7px; border-radius: 10px;
}
.digest-headline {
  font-size: 12px; color: var(--gray-600); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.digest-cat-dots { display: flex; gap: 4px; margin-top: 10px; flex-wrap: wrap; }
.digest-cat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.digest-skeleton { height: 110px; background: var(--gray-200); border-radius: var(--radius); }

/* ══════════════════ RESPONSIVE ══════════════════ */
@media (max-width: 1200px) {
  :root { --sidebar-w: 280px; }
  .feed-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .footer-tg-col { display: none; }
  .market-stats { grid-template-columns: repeat(2, 1fr); }
  .social-follow-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar-col { position: static; max-height: none; overflow-y: visible; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { display: none; }
  .feed-grid { grid-template-columns: repeat(2, 1fr); }
  .travel-regions { grid-template-columns: repeat(3, 1fr); }
  .cat-pills-section { position: static; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .header-tg-btn { display: none; }
  .mobile-menu-btn { display: flex; }
  .mobile-nav-panel { display: block; }
  .hero-title { font-size: 20px; }
  .hero-overlay { padding: 20px; }
  .tg-fullbanner-inner { flex-direction: column; text-align: center; }
  .tg-fb-left { flex-direction: column; align-items: center; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1/-1; }
  .social-follow-grid { grid-template-columns: repeat(2, 1fr); }
  .market-stats { grid-template-columns: repeat(2, 1fr); }
  .travel-regions { grid-template-columns: repeat(2, 1fr); }
  .float-tg-label { display: none; }
  .float-tg-btn { padding: 13px; border-radius: 50%; }
  .brand-seoul,.brand-dot,.brand-is { font-size: 26px; }
  .topbar-left { display: none; }
  .rss-source { display: none; }
}
@media (max-width: 480px) {
  .feed-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 18px; }
  .section-title { font-size: 17px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }
  .social-follow-grid { grid-template-columns: repeat(2, 1fr); }
  .travel-regions { grid-template-columns: repeat(2, 1fr); }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
}
