/* ── Language Toggle ─────────────────────────── */
.lang-toggle {
  position: absolute;
  top: 10px;
  right: 12px;
  display: flex;
  gap: 1px;
  background: #e8e8e8;
  border-radius: 4px;
  padding: 1.5px;
  cursor: pointer;
  user-select: none;
}
.lang-toggle .lang-opt {
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 600;
  color: #999;
  border-radius: 3px;
  transition: all .15s;
  font-family: inherit;
  line-height: 1.4;
}
.lang-toggle .lang-opt.active {
  background: var(--black, #111);
  color: #fff;
}
.masthead { position: relative; }

/* ── Benchmark ticker ────────────────────────── */
.ticker-bar {
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 12px;
  height: 38px;
  overflow: hidden;
}
.live-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #f00;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-track {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
}
.ticker-inner {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 70s linear infinite;
}
.ticker-inner:hover {
  animation-play-state: paused;
}
@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  border-right: 1px solid #333;
}
.ticker-item .t-rank {
  color: #888;
  font-size: 12px;
}
.ticker-item .t-score {
  font-weight: 700;
  color: #4caf50;
}
.ticker-label {
  color: #000;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  border-right: none;
  padding: 2px 8px;
  background: #f5c518;
  border-radius: 4px;
  margin-right: 4px;
}

/* ── Charts row ──────────────────────────────── */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr 1px 1fr;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  overflow: hidden;
}
.chart-divider {
  background: var(--border);
}
.chart-panel {
  padding: 8px 8px 4px;
}
.chart-title {
  font-family: "Pretendard", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
}
.chart-subtitle {
  font-size: 11px;
  color: var(--gray);
  margin-top: 2px;
  text-align: center;
}
.chart-wrapper {
  position: relative;
  height: 112px;
  margin-top: 0;
}
.chart-wrapper svg {
  width: 100%;
  height: 100%;
  display: block;
}
.chart-source {
  margin-top: 6px;
  font-size: 11px;
  color: #999;
  text-align: center;
}
.chart-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--gray);
  font-size: 13px;
}

.home-benchmark-section {
  margin-top: 4px;
}

.home-youtube-section {
  margin-top: 6px;
}
.home-dual-section-blog,
.home-dual-section-longevity {
  padding: 10px 10px 8px;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}
.home-youtube-panel {
  position: relative;
  padding: 10px 10px 8px;
  border-top: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}
.home-youtube-panel .section-label,
.home-news-band .section-label,
.home-dual-band .section-label {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  gap: 6px;
  padding: 6px 10px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  backdrop-filter: blur(6px);
  font-size: 11px;
  letter-spacing: 0.5px;
  line-height: 1;
}
.home-youtube-panel .section-label::before,
.home-news-band .section-label::before,
.home-dual-band .section-label::before {
  content: '';
  width: 2px;
  height: 10px;
  background: var(--red);
  border-radius: 1px;
  flex-shrink: 0;
}
.home-youtube-panel .section-label::after,
.home-youtube-panel .section-label .section-more,
.home-news-band .section-label::after,
.home-dual-band .section-label::after,
.home-news-band .section-label .section-more,
.home-dual-band .section-label .section-more {
  display: none;
}
.home-youtube-panel .yt-flow-track {
  margin-top: 34px;
}

/* Tooltip */
.chart-tooltip {
  position: fixed;
  background: rgba(10, 10, 10, 0.92);
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  pointer-events: none;
  z-index: 999;
  display: none;
  line-height: 1.75;
  min-width: 150px;
}
.chart-tooltip strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

/* ── Vendor legend ───────────────────────────── */
.vendor-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 8px 0 2px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--gray);
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── News lead ───────────────────────────────── */
/* ── 홈 행 레이아웃 (좌 60% + 우 40%) ──── */
.home-row {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 20px;
  padding: 4px 0;
}
.section-more {
  font-size: 12px;
  font-weight: 400;
  color: var(--gray);
  float: right;
}
.section-more:hover {
  color: var(--red);
}

/* 뉴스 리스트 */
.home-news-row {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  align-items: flex-start;
}
.home-news-row:last-child {
  border-bottom: none;
}
.home-news-row:hover h4 {
  color: var(--red);
}
.home-news-row img {
  width: 80px;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--light);
}
.home-news-row h4 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}
.home-news-meta {
  font-size: 13px;
  color: var(--gray);
  margin-top: 4px;
  display: block;
}

/* 블로그 리스트 */
.home-blog-row {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  align-items: flex-start;
}
.home-blog-row:last-child {
  border-bottom: none;
}
.home-blog-row:hover h4 {
  color: var(--red);
}
.home-blog-row img {
  width: 80px;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--light);
}
.home-blog-placeholder {
  width: 80px;
  height: 54px;
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.home-blog-company {
  font-size: 14px;
  font-weight: 700;
}
.home-blog-row h4 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}
.home-blog-time {
  font-size: 13px;
  color: var(--gray);
  margin-top: 2px;
  display: block;
}

@media (max-width: 900px) {
  .home-row {
    grid-template-columns: 1fr;
  }
}

/* ── Company grid ────────────────────────────── */
.company-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 16px;
}
.company-col {
  padding: 14px 16px;
  border-right: 1px solid var(--border);
}
.company-col:last-child {
  border-right: none;
}
.company-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--black);
  margin-bottom: 14px;
}
.company-item {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.company-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.company-item p {
  font-size: 13px;
  line-height: 1.45;
}
.c-source {
  font-size: 10px;
  color: var(--gray);
  margin-top: 5px;
}

/* ── GitHub ──────────────────────────────────── */
.github-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 0;
}
.github-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px 16px;
}
.repo-name {
  font-weight: 700;
  font-size: 13px;
  color: #0a66c2;
}
.repo-desc {
  font-size: 12px;
  color: #444;
  margin-top: 4px;
}
.repo-stars {
  font-size: 11px;
  color: var(--gray);
  margin-top: 6px;
}
.repo-stars span {
  color: var(--black);
  font-weight: 600;
}

/* ── News filter tabs ─────────────────────── */
.news-filter-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.filter-tab {
  border: none;
  background: transparent;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.filter-tab.active {
  color: var(--black);
  border-bottom-color: var(--red);
}
.filter-tab:hover:not(.active) {
  color: var(--black);
}
.filter-tab-divider {
  display: inline-block;
  width: 1px;
  background: var(--border);
  margin: 8px 8px 0;
  align-self: stretch;
}

/* ── News list layout ─────────────────────── */
.news-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
}
.news-article {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.news-thumb {
  flex-shrink: 0;
  width: 200px;
  height: 130px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--light);
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-body h3 {
  font-family: "Noto Serif KR", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}
.news-body h3 a:hover {
  color: var(--red);
}
.news-body p {
  font-size: 13px;
  color: #444;
  margin-top: 6px;
  line-height: 1.5;
}
.news-meta {
  font-size: 11px;
  color: var(--gray);
  margin-top: 8px;
}
.gn-card-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3efe8;
  color: #7a3c10;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.news-source {
  font-weight: 600;
  color: var(--red);
}

/* ── News sidebar ─────────────────────────── */
.sidebar-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--black);
  margin-bottom: 16px;
}
.sidebar-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.4;
}
.sidebar-item a:hover {
  color: var(--red);
}
.sidebar-rank {
  font-family: "Noto Serif KR", serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--border);
  flex-shrink: 0;
  width: 28px;
}

/* ── Pagination ───────────────────────────── */
.page-btn {
  border: 1px solid var(--border);
  background: var(--white);
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s;
}
.page-btn:hover {
  background: var(--black);
  color: var(--white);
}

@media (max-width: 900px) {
  .news-layout {
    grid-template-columns: 1fr;
  }
  .news-sidebar {
    display: none;
  }
  .news-thumb {
    width: 120px;
    height: 80px;
  }
}

/* ── Blog featured ────────────────────────── */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
.blog-featured-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.blog-featured-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.blog-featured-placeholder {
  width: 100%;
  height: 200px;
  background: var(--light);
}
.blog-featured-body {
  padding: 16px 20px;
}
.blog-featured-body h2 {
  font-family: "Noto Serif KR", serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 6px;
}
.blog-featured-body h2 a:hover {
  color: var(--red);
}
.blog-featured-body p {
  font-size: 13px;
  color: #444;
  margin-top: 6px;
}
.blog-company-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── Blog grid ────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.blog-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
}
.blog-card h3 {
  font-family: "Noto Serif KR", serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 6px;
}
.blog-card h3 a:hover {
  color: var(--red);
}
.blog-card p {
  font-size: 12px;
  color: #555;
  margin-top: 6px;
  line-height: 1.5;
}
.blog-meta {
  font-size: 11px;
  color: var(--gray);
  margin-top: 8px;
}

/* ── YouTube grid ─────────────────────────── */
.yt-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.yt-card {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.15s;
}
.yt-card:hover {
  transform: translateY(-2px);
}
.yt-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}
.yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.2s;
}
.yt-card:hover .yt-play {
  opacity: 1;
}
.yt-info {
  padding: 12px 4px;
}
.yt-channel {
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.yt-info h3 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 4px;
}
.yt-date {
  font-size: 11px;
  color: var(--gray);
  margin-top: 6px;
  display: block;
}

@media (max-width: 900px) {
  .blog-featured {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .yt-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .yt-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Papers grid ─────────────────────────── */
.papers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.paper-card {
  text-decoration: none;
  color: inherit;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.paper-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.paper-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: #f5f5f5;
  overflow: hidden;
}
.paper-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.paper-info {
  padding: 12px 14px;
}
.paper-info h3 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.paper-summary {
  font-size: 12px;
  color: #555;
  line-height: 1.4;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.paper-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 11px;
  color: #999;
}
.paper-org {
  color: #4a90d9;
  font-weight: 600;
}
.paper-upvotes {
  color: #10a37f;
  font-weight: 600;
}
.paper-stars {
  color: #f5c518;
  font-weight: 600;
}

@media (max-width: 900px) {
  .papers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .papers-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Home mixed content grid ──────────────── */
.home-mixed-grid {
  display: grid;
  grid-template-columns: 2fr 2fr 1.5fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-top: 16px;
}
.home-col {
  padding: 16px;
  border-right: 1px solid var(--border);
}
.home-col:last-child {
  border-right: none;
}
.home-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--black);
  margin-bottom: 14px;
}
.home-more-link {
  display: block;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.home-more-link:hover {
  text-decoration: underline;
}

/* Home news items */
.home-news-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.home-news-item:last-child {
  border-bottom: none;
}
.home-news-source {
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.home-news-item h4 {
  font-family: "Noto Serif KR", serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2px;
}
.home-news-item h4 a:hover {
  color: var(--red);
}
.home-news-time {
  font-size: 10px;
  color: var(--gray);
}

/* Home blog items */
.home-blog-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.home-blog-item:last-child {
  border-bottom: none;
}
.home-blog-company {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.home-blog-item h4 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2px;
}
.home-blog-item h4 a:hover {
  color: var(--red);
}
.home-blog-item p {
  font-size: 12px;
  color: #555;
  margin-top: 4px;
  line-height: 1.4;
}

/* Home youtube items */
.home-yt-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}
.home-yt-item:last-child {
  border-bottom: none;
}
.home-yt-item img {
  width: 120px;
  height: 68px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.home-yt-channel {
  font-size: 10px;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
}
.home-yt-item h4 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2px;
}
.home-yt-item:hover h4 {
  color: var(--red);
}

@media (max-width: 900px) {
  .home-mixed-grid {
    grid-template-columns: 1fr;
  }
  .home-col {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .home-col:last-child {
    border-bottom: none;
  }
}

/* ── 홈 듀얼 섹션 (뉴스 + 유튜브) ──────────── */
.home-dual-section {
  display: block;
  align-items: start;
}
.home-dual-left .section-label,
.home-dual-right .section-label {
  margin-bottom: 12px;
}

/* 좌측: 뉴스 카드 4x2 */
.home-dual-news {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gn-home-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.2s;
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
}
.gn-home-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
.gn-home-thumb {
  width: 100%;
  height: 130px;
  overflow: hidden;
  background: #f0efeb;
}
.home-news-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3f0ea 0%, #e5e0d7 100%);
  color: rgba(0, 0, 0, 0.28);
  font-family: "Noto Serif KR", serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
}
.gn-home-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gn-home-body {
  padding: 5px 8px 6px;
}
.gn-home-card h3 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gn-home-meta {
  font-size: 11px;
  color: var(--gray);
  margin-top: 2px;
  display: block;
}

/* 우측: 유튜브 카드 그리드 */
.home-dual-yt {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.home-yt-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.2s;
  background: #fff;
}
.home-yt-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
.home-yt-thumb {
  width: 100%;
  height: 95px;
  overflow: hidden;
  background: #000;
}
.home-yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-yt-body {
  padding: 8px 10px 10px;
}
.home-yt-body h3 {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-yt-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.home-yt-channel {
  font-size: 10px;
  color: var(--gray);
}
.home-yt-time {
  font-size: 10px;
  color: var(--gray);
}

@media (max-width: 1200px) {
  .home-dual-news {
    grid-template-columns: repeat(3, 1fr);
  }
  .home-dual-yt {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .home-dual-section {
    grid-template-columns: 1fr;
  }
  .home-dual-news {
    grid-template-columns: repeat(4, 1fr);
  }
  .home-dual-yt {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .home-dual-news {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-dual-yt {
    grid-template-columns: repeat(2, 1fr);
  }
  .gn-home-thumb {
    height: 80px;
  }
  .home-yt-thumb {
    height: 80px;
  }
}

/* ── 유튜브 플로우 애니메이션 ─────────── */
.yt-flow-track {
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.4),
    black 1.5%,
    black 98.5%,
    rgba(0, 0, 0, 0.4)
  );
  padding: 2px 0 6px;
}
.yt-flow-inner {
  display: flex;
  gap: 16px;
  animation: yt-flow-scroll 120s linear infinite;
}
.yt-flow-inner:hover {
  animation-play-state: paused;
}
@keyframes yt-flow-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.yt-flow-card {
  flex-shrink: 0;
  width: 176px;
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.yt-flow-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.yt-flow-thumb {
  width: 100%;
  height: 92px;
  overflow: hidden;
  background: #000;
}
.yt-flow-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.yt-flow-body {
  padding: 6px 8px 8px;
}
.yt-flow-channel {
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.yt-flow-body h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── 홈 풀와이드 카드 행 ──────────────── */
.home-fullrow-4 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.home-fullrow-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

/* ── 홈 3단 컬럼 ─────────────────────── */
.home-trio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  overflow: hidden;
}
.home-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.home-duo-col {
  min-width: 0;
}
.home-trio-col {
  padding: 0 16px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.home-trio-col:first-child { padding-left: 0; }
.home-trio-col:last-child { border-right: none; padding-right: 0; }
.home-trio-col > div:last-child {
  flex: 1;
}
.home-trio-col .home-blog-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.home-model-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 1200px) {
  .home-fullrow-4 {
    grid-template-columns: repeat(3, 1fr);
  }
  .home-fullrow-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .home-trio {
    grid-template-columns: 1fr;
  }
  .home-duo {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .home-trio-col {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .home-trio-col:last-child {
    border-bottom: none;
  }
  .home-fullrow-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-fullrow-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .home-fullrow-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-fullrow-6 {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-model-grid {
    grid-template-columns: 1fr;
  }
}

/* ── GeekNews 카드 그리드 ─────────────────── */
.gn-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 24px;
  margin-top: 20px;
}
.gn-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
  background: #fff;
  height: 100%;
}
.gn-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* ── News Hot Band ──────────────────────────── */
.news-hot-band {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  margin-top: 16px;
  align-items: stretch;
}
.news-hot-main {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}
.news-hot-main:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}
.news-hot-main-img {
  width: 100%;
  aspect-ratio: 16/8;
  overflow: hidden;
  background: #f0efeb;
}
.news-hot-main-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.news-hot-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-hot-main-body {
  padding: 16px 20px 20px;
}
.news-hot-main-body h2 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  margin: 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-hot-main-body p {
  font-size: 13px;
  color: #555;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.news-hot-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: #e53e3e;
  color: #fff;
}
.news-hot-sides {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
}
.news-hot-side-card {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  flex: 1;
  transition: box-shadow 0.2s, transform 0.2s;
}
.news-hot-side-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}
.news-hot-side-img {
  width: 100%;
  aspect-ratio: 16/4.7;
  overflow: hidden;
  background: #f0efeb;
}
.news-hot-side-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-hot-side-body {
  padding: 8px 10px 8px;
}
.news-hot-side-body h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin: 5px 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-hot-side-body p {
  font-size: 13px;
  color: #666;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-hot-rank-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  color: #111;
  box-shadow: 0 1px 6px rgba(0,0,0,0.16);
}
.news-hot-rank-medal {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  background-image: url("/gold-medal.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  color: transparent;
}
.news-hot-rank-gold {
  background: linear-gradient(180deg, #ffe58f 0%, #f5c242 100%);
}
.news-hot-rank-silver {
  background: linear-gradient(180deg, #f3f4f6 0%, #cfd4dc 100%);
}
.news-hot-rank-bronze {
  background: linear-gradient(180deg, #f3c6a6 0%, #cd7f32 100%);
}
@media (max-width: 768px) {
  .news-hot-band {
    grid-template-columns: 1fr;
  }
}

.gn-card-thumb {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
  background: #f0efeb;
}
.gn-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.6;
}
.badge-news {
  background: rgba(0,0,0,0.7);
  color: #fff;
}
.badge-trend {
  background: rgba(245,197,24,0.9);
  color: #000;
}
.gn-card-thumb.yt-thumb {
  height: 170px;
}
.gn-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gn-card-noimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8e6e1 0%, #d5d3ce 100%);
}
.gn-card-noimg span {
  font-size: 40px;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.12);
  font-family: "Noto Serif KR", serif;
}
.model-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 16px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  box-sizing: border-box;
}
.model-card-org {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.model-card-name {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  font-family: "Pretendard", monospace;
  word-break: break-all;
  line-height: 1.3;
  margin-top: 4px;
}
.blog-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.blog-card-company {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.gn-card-type {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 3px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.gn-card-body {
  padding: 10px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.gn-card-body h3 {
  font-family: "Noto Serif KR", serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gn-card-summary {
  font-size: 13px;
  color: #555;
  margin-top: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.gn-card-meta {
  font-size: 11px;
  color: var(--gray);
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 6px;
  align-items: center;
}
.gn-card-source {
  font-weight: 600;
  color: var(--red);
}
.yt-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
}
@media (max-width: 1100px) {
  .gn-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 800px) {
  .gn-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .gn-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .gn-card-thumb {
    height: 140px;
  }
}

/* ── GeekNews 상세 기사 ──────────────────── */
.article-detail {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 0 64px;
}
.article-back {
  font-size: 13px;
  color: var(--gray);
  display: inline-block;
  margin-bottom: 20px;
  transition: color 0.15s;
}
.article-back:hover {
  color: var(--red);
}
.article-type-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.article-title {
  font-family: "Noto Serif KR", serif;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
  word-break: keep-all;
}
.article-meta {
  font-size: 13px;
  color: var(--gray);
  display: flex;
  gap: 8px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--black);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.article-source {
  font-weight: 600;
  color: var(--red);
}
.article-summary {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  padding: 16px 20px;
  background: #f9f9f7;
  border-left: 4px solid var(--red);
  margin-bottom: 32px;
  word-break: keep-all;
}
.article-keypoints {
  margin-bottom: 36px;
  padding: 20px 24px;
  background: #f7f7f8;
  border-left: 3px solid var(--red);
  border-radius: 2px;
  color: #1a1a1a;
}
.article-keypoints-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #999;
  margin-bottom: 14px;
}
.article-keypoints-item {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: #333;
  word-break: keep-all;
}
.article-keypoints-item + .article-keypoints-item {
  margin-top: 10px;
}
.article-keypoints-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
}
.article-external-ref {
  display: block;
  margin: 0 0 36px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-left: 3px solid #111;
  border-radius: 2px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.article-external-ref:hover {
  background: #fafafa;
  border-left-color: var(--red);
}
.article-external-ref-body {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.article-external-ref-host {
  font-size: 16px;
  font-weight: 700;
  color: #111;
}
.article-external-ref-desc {
  font-size: 13px;
  color: #666;
}
.article-external-ref-url {
  font-size: 12px;
  color: #1a66d6;
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.article-body {
  font-size: 17px;
  line-height: 1.85;
  color: #1a1a1a;
  word-break: keep-all;
}
.article-body h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--black);
  color: var(--black);
}
.article-body h2:first-child {
  margin-top: 0;
}
.article-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 28px 0 8px;
  color: var(--black);
}
.article-body h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 36px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--red);
  color: #1a1a1a;
  line-height: 1.4;
}
.article-body p {
  margin: 14px 0;
}
.article-body a {
  color: #1a66d6;
  text-decoration: underline;
  text-decoration-color: rgba(26, 102, 214, 0.35);
  text-underline-offset: 2px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.article-body a:hover {
  color: #0f4fae;
  text-decoration-color: #0f4fae;
}
.article-code {
  margin: 22px 0;
  border-radius: 6px;
  overflow: hidden;
  background: #0f1419;
  border: 1px solid #1a2028;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.article-code-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 14px;
  background: #161b22;
  border-bottom: 1px solid #21262d;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.article-code-dots {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f56;
  box-shadow: 16px 0 0 #ffbd2e, 32px 0 0 #27c93f;
  margin-right: 36px;
  flex-shrink: 0;
}
.article-code-lang-label {
  flex: 1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8b949e;
}
.article-code-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid #30363d;
  border-radius: 4px;
  color: #8b949e;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.article-code-copy:hover {
  color: #c9d1d9;
  border-color: #58a6ff;
  background: rgba(88, 166, 255, 0.1);
}
.article-code-copy.copied {
  color: #3fb950;
  border-color: #3fb950;
  background: rgba(63, 185, 80, 0.08);
}
.article-code-copy svg {
  display: block;
  flex-shrink: 0;
}
.article-code pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  background: transparent;
}
.article-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.65;
  color: #e6edf3;
  background: transparent;
  white-space: pre;
  tab-size: 2;
}
.rewrite-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.rewrite-btn {
  padding: 10px 24px;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.rewrite-btn:hover {
  opacity: 0.85;
}
.rewrite-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.rewrite-gpt {
  background: #10a37f;
}
.rewrite-deepseek {
  background: #4a90d9;
}
.rewrite-gemini {
  background: #8b5cf6;
}
.rewrite-output {
  margin-top: 24px;
  padding: 24px;
  background: #f8f9fa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}
.rewrite-header {
  font-size: 13px;
  font-weight: 700;
  color: #10a37f;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e5e5;
}
.article-inline-img {
  margin: 24px 0;
  text-align: center;
}
.article-inline-img img {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 6px;
  cursor: pointer;
}
.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin: 14px 0;
}
.article-body li {
  margin-bottom: 8px;
  line-height: 1.75;
}
.article-body li::marker {
  color: var(--red);
}
.article-body code {
  background: rgba(26, 26, 46, 0.85);
  color: #fff;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
}
.article-body strong {
  font-weight: 700;
  color: #111;
}

/* ── 기사 히어로 이미지 ─────────────────── */
.article-hero-image {
  margin-bottom: 24px;
  border-radius: 6px;
  overflow: hidden;
}
.article-hero-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

/* ── 기사 이미지 캐러셀 ─────────────────── */
.article-carousel {
  position: relative;
  margin-bottom: 24px;
  border-radius: 8px;
  overflow: hidden;
  background: #0a0a0a;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  aspect-ratio: 16 / 9;
}
.carousel-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.carousel-track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: 0;
  cursor: pointer;
}
.carousel-track img.active {
  opacity: 1;
  z-index: 1;
}
.article-carousel::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  background: linear-gradient(to top, rgba(0,0,0,0.5), rgba(0,0,0,0));
  pointer-events: none;
  z-index: 1;
}
.carousel-counter {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 3;
  letter-spacing: 0.3px;
  backdrop-filter: blur(4px);
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: #111;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}
.carousel-btn:hover {
  background: #111;
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 0;
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  z-index: 2;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.2s;
  border: 1.5px solid rgba(0,0,0,0.2);
}
.carousel-dot.active {
  background: #fff;
  width: 28px;
  border-radius: 999px;
}
@media (max-width: 480px) {
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  .carousel-prev { left: 10px; }
  .carousel-next { right: 10px; }
  .carousel-counter {
    font-size: 12px;
    padding: 5px 10px;
    top: 10px;
    right: 10px;
  }
}
.article-image-credit {
  font-size: 11px;
  color: var(--gray);
  padding: 6px 0;
  text-align: right;
}
.article-image-credit a {
  color: var(--gray);
  text-decoration: underline;
}

/* ── 사이트 푸터 ─────────────────── */
.site-footer {
  margin-top: 80px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  background: #fafafa;
}
.footer-inner {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--gray);
}
.footer-inner a {
  color: var(--gray);
  text-decoration: none;
}
.footer-inner a:hover {
  color: var(--red);
}

/* ── 소셜 공유 버튼 ─────────────────── */
.article-share {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 32px 0 24px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.article-share-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-right: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--black);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  font-family: inherit;
}
.share-btn:hover {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}
.share-x:hover { background: #000; border-color: #000; }
.share-fb:hover { background: #1877f2; border-color: #1877f2; }
.share-copy { min-width: 72px; }
.share-native { min-width: 56px; }
@media (min-width: 769px) {
  .share-native { display: none; }
}

/* ── 관련 기사 추천 ─────────────────── */
.related-articles {
  margin: 32px 0 24px;
  padding-top: 24px;
  border-top: 2px solid var(--black);
}
.related-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0 0 16px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.related-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.15s;
}
.related-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.related-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f0f0f0;
}
.related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-text {
  padding: 10px 12px;
}
.related-card-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-excerpt {
  font-size: 12px;
  color: var(--gray);
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 600px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* ── AdSense 광고 슬롯 ─────────────────── */
.ad-slot {
  margin: 0;
  padding: 0;
  text-align: center;
  overflow: hidden;
  min-height: 0;
}
.ad-slot:not(.ad-loaded) {
  display: none !important;
}
.ad-slot.ad-loaded { margin: 16px 0; display: block; }
.ad-slot ins {
  display: block;
  width: 100%;
}

/* ── 이미지 라이트박스 ─────────────────── */
.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.img-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

@media (max-width: 600px) {
  .article-title {
    font-size: 24px;
  }
  .article-body {
    font-size: 15px;
  }
  .article-hero-image img {
    width: 100%;
  }
}

/* ── 모델 카드 그리드 ─────────────────── */
.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.model-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  transition: all 0.2s;
  background: #fff;
  position: relative;
}
.model-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  border-color: #a78bfa;
}
.model-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.model-pipe-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.model-date-badge {
  font-size: 11px;
  color: var(--gray);
}
.model-card-name {
  font-family: "Pretendard", monospace;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
  word-break: break-all;
}
.model-card-org {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 16px;
}
.model-card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}
.model-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.model-badge-params {
  background: #f0f0ff;
  color: #6366f1;
}
.model-badge-downloads {
  background: #f0fdf4;
  color: #16a34a;
}
.model-badge-likes {
  background: #fef2f2;
  color: #ef4444;
}
.model-badge-likes::before {
  content: "\2665";
}
@media (max-width: 900px) {
  .model-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .model-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Arena 리더보드 ─────────────────────── */
/* ── 홈 차트 소스 토글 ─────────────────── */
.source-toggle {
  position: relative;
  display: flex;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}
.source-toggle-label {
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #999;
  background: #fff;
  transition: all 0.2s;
  white-space: nowrap;
  pointer-events: none;
}
.source-toggle-label.active {
  background: #111;
  color: #fff;
}

.arena-arenas {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.arena-arena-btn {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 700;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  color: #555;
  transition: all 0.15s;
}
.arena-arena-btn.active {
  background: #111;
  color: #fff;
  border-color: #111;
}
.arena-arena-btn:hover:not(.active) {
  background: #eaeaea;
}
.arena-subs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.arena-subs::-webkit-scrollbar { display: none; }
.arena-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 20px;
}
.arena-tab {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  color: #767676;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  flex-shrink: 0;
}
.arena-tab.active {
  color: #111;
  border-bottom-color: var(--red, #c0392b);
}

.arena-filters {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.arena-filter {
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 20px;
  cursor: pointer;
  color: #767676;
  transition: all 0.15s;
}
.arena-filter.active {
  background: #111;
  color: #fff;
  border-color: #111;
}
.arena-filter:hover:not(.active) {
  border-color: #999;
}

.arena-chart-box {
  padding: 16px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.arena-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 26px;
}
.arena-bar-label {
  width: 200px;
  min-width: 200px;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.arena-bar-track {
  flex: 1;
  height: 20px;
  background: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
}
.arena-bar-fill {
  height: 100%;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
  min-width: 40px;
  transition: width 0.4s ease;
}
.arena-bar-score {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.arena-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 48px;
}
.arena-table thead {
  position: sticky;
  top: 0;
  background: #fff;
}
.arena-table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #767676;
  padding: 10px 10px;
  border-bottom: 2px solid #111;
  text-align: left;
  white-space: nowrap;
}
.arena-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #e5e5e5;
  vertical-align: middle;
}
.arena-table tr:hover {
  background: #fafafa;
}
.arena-rank {
  font-family: "Noto Serif KR", serif;
  font-size: 16px;
  font-weight: 900;
  color: #ccc;
  width: 36px;
  text-align: center;
}
.arena-rank.top-3 {
  color: var(--red, #c0392b);
}
.arena-model-name {
  font-weight: 700;
  font-size: 13px;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.arena-elo {
  font-weight: 800;
  font-size: 14px;
}
.arena-ci {
  font-size: 10px;
  color: #999;
  font-weight: 400;
}

/* Arena view toggle (Ranking / Pareto) */
.arena-view-toggle {
  display: flex;
  gap: 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}
.arena-view-btn {
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  border: none;
  cursor: pointer;
  color: #999;
  transition: all 0.15s;
}
.arena-view-btn.active {
  background: #111;
  color: #fff;
}
.arena-view-btn:not(:last-child) {
  border-right: 1px solid #ddd;
}

/* Pareto Frontier chart */
.pareto-wrapper {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border: 1px solid #3b3632;
  border-radius: 10px;
  overflow: hidden;
  background: #2a2623;
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}
.pareto-container {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 16px 14px 14px 18px;
  background: linear-gradient(180deg, #2f2b28 0%, #272320 100%);
}
.pareto-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.pareto-title {
  font-size: 15px;
  font-weight: 700;
  color: #f0ebe3;
  margin-right: 10px;
}
.pareto-subtitle {
  font-size: 11px;
  color: #a39a8f;
}
.pareto-svg {
  width: 100%;
  height: auto;
  display: block;
}
.pareto-dot {
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}
.pareto-dot-g:hover .pareto-dot {
  opacity: 1;
  filter: brightness(1.15);
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(1.06);
}
.pareto-label {
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.38);
}
.pareto-tooltip {
  display: none;
  position: absolute;
  background: rgba(30,28,26,0.96);
  color: #f2ede5;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.6;
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
  border: 1px solid #4a443e;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}

/* Right panel */
.pareto-panel {
  width: 280px;
  flex-shrink: 0;
  background: #26221f;
  border-left: 1px solid #3b3632;
  overflow-y: auto;
  max-height: 600px;
  padding: 12px 0;
}
.pareto-panel-header {
  font-size: 14px;
  font-weight: 700;
  color: #eee7dd;
  padding: 4px 16px 12px;
  border-bottom: 1px solid #393430;
  margin-bottom: 4px;
}
.pareto-panel-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  transition: background 0.12s;
  cursor: default;
}
.pareto-panel-item:hover {
  background: rgba(255,255,255,0.03);
}
.pareto-panel-guide {
  width: 1px;
  align-self: stretch;
  background: #6eaa5a;
  opacity: 0.9;
  margin-right: 2px;
}
.pareto-panel-logo {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.pareto-panel-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.pareto-panel-name {
  font-size: 12px;
  font-weight: 600;
  color: #efe9e0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pareto-panel-meta {
  font-size: 10px;
  color: #958d84;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pareto-panel-stats {
  flex-shrink: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.pareto-panel-elo {
  font-size: 13px;
  font-weight: 700;
  color: #efe8de;
}
.pareto-panel-price {
  font-size: 10px;
  color: #a0998e;
}

@media (max-width: 900px) {
  .pareto-wrapper { flex-direction: column; }
  .pareto-panel { width: 100%; max-height: 300px; border-left: none; border-top: 1px solid #3b3632; }
}

@media (max-width: 900px) {
  .arena-bar-label { width: 140px; min-width: 140px; font-size: 11px; }
  .arena-table { font-size: 12px; }
  .arena-model-name { max-width: 160px; }
}
@media (max-width: 600px) {
  .arena-bar-label { width: 100px; min-width: 100px; font-size: 10px; }
  .arena-tab { padding: 8px 12px; font-size: 12px; }
  .arena-table td, .arena-table th { padding: 7px 6px; }
  .ticker-inner { animation-duration: 30s; }
}

/* ── Home Magazine Layout ────── */
.home-news-band,
.home-dual-band {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}
.home-news-band {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.95fr);
  gap: 14px;
  align-items: stretch;
}
.home-dual-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.home-news-lead,
.home-news-side,
.home-dual-section {
  min-width: 0;
}
.home-news-lead {
  position: relative;
  padding-right: 18px;
  border-right: 1px solid var(--border);
}
.home-dual-section {
  position: relative;
}
.home-news-side {
  display: flex;
  flex-direction: column;
}
.home-news-side .mag-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
  gap: 6px;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.home-dual-section:first-child {
  padding-right: 0;
  border-right: none;
}
.home-dual-section:last-child {
  padding-left: 0;
}
.home-dual-section-blog:first-child {
  border-right: none;
}
.home-dual-section-longevity:last-child {
  border-left: none;
}
.mag-split {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.home-dual-band .mag-split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.75fr);
  gap: 14px;
  align-items: start;
}

/* Featured card (shared by news, blog, model) */
.mag-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.mag-card:hover h3 { color: var(--red); }
.mag-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 4px;
  overflow: hidden;
  background: var(--light);
  margin-bottom: 8px;
}
.mag-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mag-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3f0ea 0%, #e5e0d7 100%);
  color: rgba(0,0,0,0.2);
  font-size: 11px;
  font-weight: 700;
}
.mag-card h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.36;
  margin-bottom: 4px;
  transition: color 0.15s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mag-card-desc {
  font-size: 12px;
  color: #555;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 2px;
}
.mag-card-body { min-width: 0; }
.mag-time {
  font-size: 11px;
  color: var(--gray);
  display: block;
  margin-top: 2px;
}

/* Featured news hero */
.mag-news-featured {
  display: block;
}
.mag-news-featured-img {
  width: 100%;
    aspect-ratio: 16/8;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 8px;
    background: #f0efeb;
  }
.mag-news-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mag-news-featured-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: #f0efeb;
}
.mag-news-featured-duo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mag-news-featured-body {
  display: block;
}
.mag-news-featured h3 {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 5px;
  -webkit-line-clamp: 2;
}
.mag-news-featured .mag-card-desc {
  font-size: 12px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
}
.mag-news-featured .mag-time {
  margin-top: 5px;
}

/* 2x2 small card grid (news bottom) */
.mag-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
    gap: 8px;
    margin-top: 12px;
    padding-top: 0;
    border-top: none;
  }
.mag-small-card {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    text-decoration: none;
    color: inherit;
    height: 100%;
  }
.mag-small-card:hover h4 { color: var(--red); }
  .mag-small-img {
    width: 100%;
    aspect-ratio: 16/8.6;
  border-radius: 4px;
  overflow: hidden;
  background: var(--light);
  margin-bottom: 0;
}
.mag-small-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
  .mag-small-card h4 {
      font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
  }
.mag-small-card .mag-time {
    margin-top: 2px;
    font-size: 10px;
  }
.mag-small-body {
    display: block;
    min-width: 0;
}
.mag-small-desc {
      margin: 3px 0 0;
      font-size: 12px;
    line-height: 1.35;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mag-grid-3x2 {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 8px;
}
.mag-topic-card {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: none;
}
.mag-topic-card:hover h4 {
    color: var(--red);
}
.mag-topic-img {
    width: 100%;
    aspect-ratio: 16/6.4;
    border-radius: 4px;
    overflow: hidden;
    background: var(--light);
    margin-bottom: 5px;
}
.mag-topic-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mag-topic-body {
    display: block;
    padding: 0 8px 8px;
}
.mag-topic-body h4 {
      margin: 0;
      font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
}
.mag-topic-desc {
      margin: 3px 0 0;
      font-size: 13px;
    line-height: 1.45;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* List items with thumbnails (blog & model right column) */
.mag-list-wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.mag-list-item {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 74px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}
.mag-list-item:first-child { padding-top: 0; }
.mag-list-item:last-child { border-bottom: none; padding-bottom: 0; }
.mag-list-item:hover h4 { color: var(--red); }
.mag-list-thumb {
  width: 72px;
  height: 50px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--light);
}
.mag-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mag-list-body {
  min-width: 0;
  flex: 1;
}
.mag-list-item h4 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}
.mag-list-body .mag-time {
  margin-top: 4px;
}

/* ── Magazine responsive ─────────── */
@media (max-width: 1100px) {
  .home-news-band,
  .home-dual-band {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .home-news-lead,
  .home-dual-section:first-child,
  .home-dual-section:last-child {
    padding-right: 0;
    padding-left: 0;
    border-right: none;
  }
  .home-news-lead,
  .home-dual-section:first-child {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
  }
  .home-news-side .mag-grid-2x2 {
      margin-top: 0;
    }
  .mag-grid-3x2 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
  @media (max-width: 768px) {
  .mag-grid-3x2 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .mag-news-featured h3 {
        font-size: 18px;
      }
  .mag-news-featured-img {
      width: 100%;
    }
  }
  @media (max-width: 480px) {
    .mag-news-featured-img img {
      width: 100%;
    }
    .mag-grid-2x2 {
      grid-template-columns: 1fr;
    }
  .mag-grid-3x2 {
      grid-template-columns: 1fr;
    }
  }

/* 기사 내부 KO/EN 토글은 모바일 전용 — 데스크탑은 헤더 토글로 충분 */
@media (min-width: 768px) {
  .article-lang-toggle { display: none !important; }
}
