/**
 * 말레이 iN · PC 메인 카드 섹션 — malayin.php / index.php
 */

#container:has(#hm_malayin_page) #container_title,
#container:has(#hm_home_page) #container_title { display: none; }

#hm_malayin_page,
#hm_home_page {
  --color-background-primary: #fff;
  --color-background-secondary: #f7f8fa;
  --color-background-tertiary: #f0f2f5;
  --color-border-tertiary: #ececec;
  --color-text-primary: #111;
  --color-text-secondary: #3a3f46;
  --color-text-tertiary: #6a7078;
  --color-text-quaternary: #9197a0;
  --border-radius-lg: 10px;
  --border-radius-md: 8px;
}

.hm_card_page .panel { display:flex; flex-direction:column; gap:12px; padding:0; }
.hm_card_page .sec { background:var(--color-background-primary); border:1px solid var(--color-border-tertiary); border-radius:var(--border-radius-lg); overflow:hidden; }
.hm_card_page .sec-header { display:flex; align-items:flex-end; justify-content:space-between; padding:12px 16px 10px; border-bottom:1px solid rgba(255,255,255,0.12); gap:12px; background:#101c84; }
.hm_card_page .sec-title { min-width:0; line-height:1; }
.hm_card_page .sec-title-main { display:inline-block; font-size:0.9375rem; font-weight:700; line-height:1.25; color:#fff; vertical-align:bottom; }
.hm_card_page .sec-title-en { display:inline-block; margin-left:8px; font-size:0.8125rem; color:rgba(255,255,255,0.72); font-weight:400; line-height:1.25; vertical-align:bottom; }
.hm_card_page .col-title-sub,
.hm_card_page .sec-title-sub { display:inline-block; margin-left:3px; font-size:0.8125rem; font-weight:400; line-height:1.25; vertical-align:baseline; position:relative; top:0; }
.hm_card_page .news-columns--split-col .col-badge .col-title-sub,
.hm_card_page .news-columns--community .col-badge .col-title-sub { color:rgba(255,255,255,0.72); }
.hm_card_page .sec-header .sec-title-sub { color:rgba(255,255,255,0.72); }
.hm_card_page .sec-more { font-size:12px; font-weight:400; cursor:pointer; display:flex; align-items:center; gap:0.35em; flex-shrink:0; margin-bottom:1px; }
.hm_card_page .col-more { font-size:11px; font-weight:400; cursor:pointer; display:flex; align-items:center; gap:0.35em; flex-shrink:0; white-space:nowrap; }
.hm_card_page .sec-more,
.hm_card_page a.sec-more,
.hm_card_page a.sec-more:visited,
.hm_card_page a.sec-more:hover { color:rgba(255,255,255,0.88); }
.hm_card_page .col-more,
.hm_card_page a.col-more,
.hm_card_page a.col-more:visited,
.hm_card_page a.col-more:hover { color:var(--color-text-tertiary); }
.hm_card_page .sec-more i { font-size:14px; line-height:1; }
.hm_card_page .col-more i { font-size:13px; line-height:1; }
.hm_card_page .sec-more i,
.hm_card_page .col-more i { color:inherit; opacity:1; }
.hm_card_page .news-columns { display:grid; border-bottom:none; }
.hm_card_page .news-columns--2 { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
.hm_card_page .news-columns--community { grid-template-columns:minmax(0,3fr) minmax(0,2fr); }
.hm_card_page .hm-split-row { display:grid; gap:12px; align-items:stretch; }
.hm_card_page .hm-split-row > .sec { min-width:0; }
.hm_card_page .hm-split-row--64 { grid-template-columns:minmax(0,3fr) minmax(0,2fr); }
.hm_card_page .hm-split-row--2 { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
.hm_card_page .news-columns--split-col { grid-template-columns:minmax(0,1fr); }
.hm_card_page .news-columns--split-col .news-col { border-right:none; }
.hm_card_page .news-columns--community .news-col-header,
.hm_card_page .news-columns--split-col .news-col-header,
.hm_card_page .news-columns--desk-net .news-col-header { padding:12px 16px 10px; border-bottom:1px solid rgba(255,255,255,0.12); background:#101c84; align-items:flex-end; }
.hm_card_page .news-columns--community .news-col-header .col-badge,
.hm_card_page .news-columns--split-col .news-col-header .col-badge,
.hm_card_page .news-columns--desk-net .news-col-header .col-badge { background:transparent; color:#fff; font-size:0.9375rem; font-weight:700; padding:0; border-radius:0; }
.hm_card_page .news-columns--community .news-col-header .col-more,
.hm_card_page .news-columns--community .news-col-header a.col-more,
.hm_card_page .news-columns--community .news-col-header a.col-more:visited,
.hm_card_page .news-columns--community .news-col-header a.col-more:hover,
.hm_card_page .news-columns--split-col .news-col-header .col-more,
.hm_card_page .news-columns--split-col .news-col-header a.col-more,
.hm_card_page .news-columns--split-col .news-col-header a.col-more:visited,
.hm_card_page .news-columns--split-col .news-col-header a.col-more:hover,
.hm_card_page .news-columns--desk-net .news-col-header .col-more,
.hm_card_page .news-columns--desk-net .news-col-header a.col-more,
.hm_card_page .news-columns--desk-net .news-col-header a.col-more:visited,
.hm_card_page .news-columns--desk-net .news-col-header a.col-more:hover { color:rgba(255,255,255,0.88); font-size:12px; margin-bottom:1px; }
.hm_card_page .news-columns--community .news-col-header .col-more i,
.hm_card_page .news-columns--split-col .news-col-header .col-more i,
.hm_card_page .news-columns--desk-net .news-col-header .col-more i { font-size:14px; }
.hm_card_page .news-col { border-right:1px solid var(--color-border-tertiary); padding:0; min-width:0; }
.hm_card_page .news-col:last-child { border-right:none; }
.hm_card_page .news-col-header { padding:8px 12px 7px; border-bottom:1px solid var(--color-border-tertiary); display:flex; align-items:center; justify-content:space-between; gap:8px; }
.hm_card_page .col-badge { font-size:14px; font-weight:500; padding:2px 7px; border-radius:4px; flex-shrink:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hm_card_page .badge-my { background:#E6F1FB; color:#0C447C; }
.hm_card_page .badge-gl { background:#EAF3DE; color:#27500A; }
.hm_card_page .badge-mofa { background:#FCEBEB; color:#791F1F; }
.hm_card_page .badge-travel { background:#EAF3DE; color:#27500A; }
.hm_card_page .badge-free { background:#E6F1FB; color:#0C447C; }
.hm_card_page .badge-market { background:#FAEEDA; color:#633806; }
.hm_card_page .badge-biz { background:#E6F1FB; color:#0C447C; }
.hm_card_page .badge-helpdesk { background:#EAF3DE; color:#27500A; }
.hm_card_page a.col-more,
.hm_card_page a.sec-more,
.hm_card_page a.news-item { text-decoration:none; color:inherit; }
.hm_card_page .news-columns--curate .news-item--thumb { display:flex; align-items:flex-start; gap:8px; padding:8px 10px; border-bottom:1px solid var(--color-border-tertiary); cursor:pointer; }
.hm_card_page .news-columns--curate .news-item--plain { display:block; padding:8px 12px; border-bottom:1px solid var(--color-border-tertiary); cursor:pointer; min-width:0; }
.hm_card_page .news-columns--curate .news-item--badge { display:grid; grid-template-columns:auto 1fr; column-gap:6px; row-gap:2px; align-items:center; padding-top:10px; padding-bottom:10px; }
.hm_card_page .news-col-empty { margin:0; padding:14px 12px; font-size:13px; color:var(--color-text-tertiary); }
.hm_card_page .news-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.hm_card_page .news-columns--curate .news-item--plain:last-child { border-bottom:none; }
.hm_card_page .news-thumb { width:77px; height:77px; flex-shrink:0; border-radius:8px; overflow:hidden; background:var(--color-background-secondary); border:1px solid var(--color-border-tertiary); box-sizing:border-box; display:flex; align-items:center; justify-content:center; }
.hm_card_page .news-thumb i { font-size:22px; opacity:0.35; }
.hm_card_page .news-columns--curate .news-item--thumb .news-body { flex:1; min-width:0; }
.hm_card_page .news-title { font-size:15px; color:var(--color-text-primary); line-height:1.45; margin:0 0 3px; }
.hm_card_page .news-columns--curate .news-item--thumb .news-title { margin:3px 0 4px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.hm_card_page .news-columns--curate .news-item--plain .news-title { margin:0 0 2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hm_card_page .news-item--badge .news-title-row { display:contents; }
.hm_card_page .news-item--badge .news-corner-badge { grid-column:1; grid-row:1; }
.hm_card_page .news-item--badge .news-title-row .news-title { grid-column:2; grid-row:1; flex:initial; min-width:0; margin:0; }
.hm_card_page .news-item--badge .news-meta-row { grid-column:2; grid-row:2; }
.hm_card_page .news-meta-row { display:flex; align-items:center; gap:5px; min-width:0; }
.hm_card_page .news-meta-avatar { flex-shrink:0; width:16px; height:16px; line-height:0; }
.hm_card_page .news-meta-avatar img { width:16px; height:16px; border-radius:50%; object-fit:cover; display:block; }
.hm_card_page .news-meta-row .news-meta { flex:1; min-width:0; }
.hm_card_page .news-corner-badge { flex-shrink:0; display:inline-block; max-width:100%; padding:2px 6px; border-radius:999px; border:1px solid; font-size:10px; font-weight:600; line-height:1.25; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; background:transparent; }
.hm_card_page .news-corner-badge--default { color:#6b7280; border-color:#6b7280; }
.hm_card_page .news-corner-badge--default-etc { color:#6b7280; border-color:#adb5bd; }
.hm_card_page .news-meta { font-size:13px; color:var(--color-text-quaternary); }

.hm_card_page .news-col--market { display:flex; flex-direction:column; }
.hm_card_page .market-mini-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:8px 10px 10px; flex:1; align-content:start; }
#hm_home_page > .panel > .sec .market-mini-grid { grid-template-columns:repeat(5,minmax(0,1fr)); }
.hm_card_page .market-mini-grid--list { grid-template-columns:minmax(0,1fr); gap:0; padding:0; }
.hm_card_page a.market-mini-card { display:flex; flex-direction:column; min-width:0; border:1px solid var(--color-border-tertiary); border-radius:8px; overflow:hidden; background:#fff; text-decoration:none; color:inherit; transition:border-color .15s ease, box-shadow .15s ease; }
.hm_card_page a.market-mini-card--list { flex-direction:row; align-items:center; gap:10px; border:0; border-bottom:1px solid var(--color-border-tertiary); border-radius:0; padding:8px 12px; }
.hm_card_page a.market-mini-card--list:last-child { border-bottom:none; }
.hm_card_page a.market-mini-card:hover { }
.hm_card_page .market-mini-thumb { position:relative; width:100%; aspect-ratio:4/3; overflow:hidden; background:var(--color-background-secondary); border-bottom:1px solid var(--color-border-tertiary); }
.hm_card_page a.market-mini-card--list .market-mini-thumb { flex:0 0 72px; width:72px; height:54px; aspect-ratio:auto; border:1px solid var(--color-border-tertiary); border-radius:7px; }
.hm_card_page .market-mini-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.hm_card_page .market-mini-thumb--empty { display:flex; align-items:center; justify-content:center; }
.hm_card_page .market-mini-no-img { color:#c4c9d1; font-size:20px; }
.hm_card_page .market-mini-cate-wrap { position:absolute; left:0; top:0; z-index:1; }
.hm_card_page .market-mini-body { display:flex; flex-direction:column; gap:0; min-width:0; padding:6px 8px 8px; }
.hm_card_page a.market-mini-card--list .market-mini-body { flex:1; padding:0; }
.hm_card_page .market-mini-cate {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px 5px 8px;
  border-radius: 0 0 8px 0;
  background: rgba(15,15,25,0.78);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.hm_card_page .market-mini-cate::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot-color, #9ca3af);
  flex-shrink: 0;
}
.hm_card_page .market-mini-cate--default { background: rgba(15,15,25,0.78); }
.hm_card_page .market-mini-cate--default-etc { background: rgba(15,15,25,0.78); }
.hm_card_page .market-mini-cate-label {
  flex-shrink: 0;
}
.hm_card_page .market-mini-cate-done {
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hm_card_page .market-mini-title { font-size:12px; font-weight:500; line-height:1.35; color:var(--color-text-primary); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.hm_card_page a.market-mini-card--list .market-mini-title { font-size:14px; line-height:1.4; }
.hm_card_page a.market-mini-card:hover .market-mini-title { }

.hm_card_page .thumb-my { background:linear-gradient(135deg,#dce8f5 0%,#b8d0e8 100%); }
.hm_card_page .thumb-my i { color:#6090b8; }
.hm_card_page .thumb-gl { background:linear-gradient(135deg,#eaf3de 0%,#c8ddb0 100%); }
.hm_card_page .thumb-gl i { color:#508040; }
.hm_card_page .thumb-free { background:linear-gradient(135deg,#dce8f5 0%,#b8d0e8 100%); }
.hm_card_page .thumb-free i { color:#6090b8; }
.hm_card_page .thumb-market { background:linear-gradient(135deg,#f5e8d8 0%,#e8d0b8 100%); }
.hm_card_page .thumb-market i { color:#b87840; }
.hm_card_page .badge-new { background:#FCEBEB; color:#791F1F; font-size:13px; padding:1px 5px; border-radius:3px; font-weight:500; }

.hm_card_page .banner-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:8px; }
.hm_card_page .banner-slot { height:80px; background:var(--color-background-secondary); border:1px solid var(--color-border-tertiary); display:flex; align-items:center; justify-content:center; font-size:13px; color:#b8bcc4; }

.hm_card_page .photo-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; padding:12px 16px; }
.hm_card_page a.photo-card { display:block; text-decoration:none; color:inherit; border-radius:var(--border-radius-md); overflow:hidden; position:relative; cursor:pointer; }
.hm_card_page .photo-thumb { width:100%; aspect-ratio:4/3; display:flex; align-items:center; justify-content:center; position:relative; background:var(--color-background-secondary); overflow:hidden; }
.hm_card_page .photo-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.hm_card_page .photo-grid-empty { margin:0; padding:14px 16px; font-size:13px; color:var(--color-text-tertiary); }
.hm_card_page .photo-label { position:absolute; bottom:0; left:0; right:0; padding:6px 10px; background:rgba(0,0,0,0.55); }
.hm_card_page .photo-thumb i { font-size:32px; opacity:0.4; }
.hm_card_page .photo-label-text { font-size:15px; color:rgba(255,255,255,0.9); line-height:1.3; }
.hm_card_page .photo-label-date { font-size:13px; color:rgba(255,255,255,0.78); }

:is(#hm_home_page, #hm_malayin_page).hm_card_page .sec-header,
:is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--community .news-col-header,
:is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--split-col .news-col-header,
:is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--desk-net .news-col-header { background:#f3f4f6; border-bottom:1px solid var(--color-border-tertiary); }

:is(#hm_home_page, #hm_malayin_page).hm_card_page .sec-title-main,
:is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--community .news-col-header .col-badge,
:is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--split-col .news-col-header .col-badge,
:is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--desk-net .news-col-header .col-badge { color:#1f2937; }

:is(#hm_home_page, #hm_malayin_page).hm_card_page .sec-title-en,
:is(#hm_home_page, #hm_malayin_page).hm_card_page .sec-header .sec-title-sub,
:is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--community .col-badge .col-title-sub,
:is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--split-col .col-badge .col-title-sub,
:is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--desk-net .col-badge .col-title-sub { color:#6b7280; }

:is(#hm_home_page, #hm_malayin_page).hm_card_page .sec-header .sec-more,
:is(#hm_home_page, #hm_malayin_page).hm_card_page .sec-header a.sec-more,
:is(#hm_home_page, #hm_malayin_page).hm_card_page .sec-header a.sec-more:visited,
:is(#hm_home_page, #hm_malayin_page).hm_card_page .sec-header a.sec-more:hover,
:is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--community .news-col-header .col-more,
:is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--community .news-col-header a.col-more,
:is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--community .news-col-header a.col-more:visited,
:is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--community .news-col-header a.col-more:hover,
:is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--split-col .news-col-header .col-more,
:is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--split-col .news-col-header a.col-more,
:is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--split-col .news-col-header a.col-more:visited,
:is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--split-col .news-col-header a.col-more:hover,
:is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--desk-net .news-col-header .col-more,
:is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--desk-net .news-col-header a.col-more,
:is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--desk-net .news-col-header a.col-more:visited,
:is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--desk-net .news-col-header a.col-more:hover { color:#6b7280; }

html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page {
  --color-background-primary: #111827;
  --color-background-secondary: #0f172a;
  --color-background-tertiary: #172033;
  --color-border-tertiary: #293241;
  --color-text-primary: #e5e7eb;
  --color-text-secondary: #cbd5e1;
  --color-text-tertiary: #94a3b8;
  --color-text-quaternary: #7c8797;
}

html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .sec,
html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page a.market-mini-card {
  background: var(--color-background-primary);
  border-color: var(--color-border-tertiary);
}

html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .sec-header,
html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--community .news-col-header,
html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--split-col .news-col-header,
html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--desk-net .news-col-header {
  background: #182235;
  border-bottom-color: var(--color-border-tertiary);
}

html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .sec-title-main,
html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--community .news-col-header .col-badge,
html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--split-col .news-col-header .col-badge,
html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--desk-net .news-col-header .col-badge {
  color: #e5e7eb;
}

html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .sec-title-en,
html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .sec-header .sec-title-sub,
html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--community .col-badge .col-title-sub,
html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--split-col .col-badge .col-title-sub,
html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--desk-net .col-badge .col-title-sub,
html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .sec-header .sec-more,
html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .sec-header a.sec-more,
html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .sec-header a.sec-more:visited,
html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .sec-header a.sec-more:hover,
html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-col-header .col-more,
html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-col-header a.col-more,
html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-col-header a.col-more:visited,
html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-col-header a.col-more:hover {
  color: #94a3b8;
}

html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-col,
html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-col-header,
html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--curate .news-item--thumb,
html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--curate .news-item--plain,
html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .market-mini-thumb {
  border-color: var(--color-border-tertiary);
}

html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-thumb,
html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .market-mini-thumb,
html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .photo-thumb,
html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .banner-slot {
  background: var(--color-background-secondary);
  border-color: var(--color-border-tertiary);
}

html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page a.market-mini-card:hover { }

html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page a.market-mini-card:hover .market-mini-title { }

html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .market-mini-no-img,
html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .banner-slot {
  color: #64748b;
}

@media (prefers-color-scheme: dark) {
  :is(#hm_home_page, #hm_malayin_page).hm_card_page {
    --color-background-primary: #111827;
    --color-background-secondary: #0f172a;
    --color-background-tertiary: #172033;
    --color-border-tertiary: #293241;
    --color-text-primary: #e5e7eb;
    --color-text-secondary: #cbd5e1;
    --color-text-tertiary: #94a3b8;
    --color-text-quaternary: #7c8797;
  }

  :is(#hm_home_page, #hm_malayin_page).hm_card_page .sec,
  :is(#hm_home_page, #hm_malayin_page).hm_card_page a.market-mini-card {
    background: var(--color-background-primary);
    border-color: var(--color-border-tertiary);
  }

  :is(#hm_home_page, #hm_malayin_page).hm_card_page .sec-header,
  :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--community .news-col-header,
  :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--split-col .news-col-header,
  :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--desk-net .news-col-header {
    background: #182235;
    border-bottom-color: var(--color-border-tertiary);
  }

  :is(#hm_home_page, #hm_malayin_page).hm_card_page .sec-title-main,
  :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--community .news-col-header .col-badge,
  :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--split-col .news-col-header .col-badge,
  :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--desk-net .news-col-header .col-badge {
    color: #e5e7eb;
  }

  :is(#hm_home_page, #hm_malayin_page).hm_card_page .sec-title-en,
  :is(#hm_home_page, #hm_malayin_page).hm_card_page .sec-header .sec-title-sub,
  :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--community .col-badge .col-title-sub,
  :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--split-col .col-badge .col-title-sub,
  :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--desk-net .col-badge .col-title-sub,
  :is(#hm_home_page, #hm_malayin_page).hm_card_page .sec-header .sec-more,
  :is(#hm_home_page, #hm_malayin_page).hm_card_page .sec-header a.sec-more,
  :is(#hm_home_page, #hm_malayin_page).hm_card_page .sec-header a.sec-more:visited,
  :is(#hm_home_page, #hm_malayin_page).hm_card_page .sec-header a.sec-more:hover,
  :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-col-header .col-more,
  :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-col-header a.col-more,
  :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-col-header a.col-more:visited,
  :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-col-header a.col-more:hover {
    color: #94a3b8;
  }

  :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-col,
  :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-col-header,
  :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--curate .news-item--thumb,
  :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-columns--curate .news-item--plain,
  :is(#hm_home_page, #hm_malayin_page).hm_card_page .market-mini-thumb {
    border-color: var(--color-border-tertiary);
  }

  :is(#hm_home_page, #hm_malayin_page).hm_card_page .news-thumb,
  :is(#hm_home_page, #hm_malayin_page).hm_card_page .market-mini-thumb,
  :is(#hm_home_page, #hm_malayin_page).hm_card_page .photo-thumb,
  :is(#hm_home_page, #hm_malayin_page).hm_card_page .banner-slot {
    background: var(--color-background-secondary);
    border-color: var(--color-border-tertiary);
  }

  :is(#hm_home_page, #hm_malayin_page).hm_card_page a.market-mini-card:hover { }

  :is(#hm_home_page, #hm_malayin_page).hm_card_page a.market-mini-card:hover .market-mini-title { }

  :is(#hm_home_page, #hm_malayin_page).hm_card_page .market-mini-no-img,
  :is(#hm_home_page, #hm_malayin_page).hm_card_page .banner-slot {
    color: #64748b;
  }
}

/* ── 홈 퀵 큐레이션 4열 카드 ── */
:is(#hm_home_page, #hm_malayin_page).hm_card_page .hm-qc-sec {
  margin-bottom: 0;
}

:is(#hm_home_page, #hm_malayin_page).hm_card_page .hm-qc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

:is(#hm_home_page, #hm_malayin_page).hm_card_page .hm-qc-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  border: 1px solid #e8ecf0;
  overflow: hidden;
  text-decoration: none;
  background: #fff;
}

:is(#hm_home_page, #hm_malayin_page).hm_card_page .hm-qc-card:hover { }

:is(#hm_home_page, #hm_malayin_page).hm_card_page .hm-qc-card:hover .hm-qc-thumb img { }

:is(#hm_home_page, #hm_malayin_page).hm_card_page .hm-qc-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
}

:is(#hm_home_page, #hm_malayin_page).hm_card_page .hm-qc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

:is(#hm_home_page, #hm_malayin_page).hm_card_page .hm-qc-card:hover .hm-qc-thumb img { }

:is(#hm_home_page, #hm_malayin_page).hm_card_page .hm-qc-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0bec5;
  font-size: 1.6rem;
}

:is(#hm_home_page, #hm_malayin_page).hm_card_page .hm-qc-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(15, 15, 25, 0.78);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 5px 10px 5px 8px;
  border-radius: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
}

:is(#hm_home_page, #hm_malayin_page).hm_card_page .hm-qc-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--qc-dot-color, #9ca3af);
  flex-shrink: 0;
}

:is(#hm_home_page, #hm_malayin_page).hm_card_page .hm-qc-body {
  padding: 10px 11px 11px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

:is(#hm_home_page, #hm_malayin_page).hm_card_page .hm-qc-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
  letter-spacing: -0.02em;
}

:is(#hm_home_page, #hm_malayin_page).hm_card_page .hm-qc-meta {
  font-size: 0.7rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

:is(#hm_home_page, #hm_malayin_page).hm_card_page .hm-qc-source {
  color: #64748b;
  font-weight: 500;
}

:is(#hm_home_page, #hm_malayin_page).hm_card_page .hm-qc-empty {
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 16px 0;
}

/* 다크모드 */
@media (prefers-color-scheme: dark) {
  html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .hm-qc-card {
    background: var(--color-background-secondary);
    border-color: var(--color-border-tertiary);
  }
  html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .hm-qc-card:hover { }
  html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .hm-qc-title {
    color: #e2e8f0;
  }
  html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .hm-qc-source {
    color: #94a3b8;
  }
  html[data-hm-theme="dark"] :is(#hm_home_page, #hm_malayin_page).hm_card_page .hm-qc-thumb {
    background: var(--color-background-secondary);
  }
}
