.ymt-home { padding-top: 15px; }
.ymt-home-grid { display: grid; grid-template-columns: minmax(0, 2.48fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.ymt-home-primary { min-width: 0; }

.ymt-hero { position: relative; overflow: hidden; height: 270px; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: #fff; box-shadow: var(--shadow-card); }
.ymt-hero-track { position: relative; height: 100%; }
.ymt-hero-slide { position: absolute; inset: 0; display: grid; grid-template-columns: 50% 50%; opacity: 0; visibility: hidden; transition: opacity .35s ease; }
.ymt-hero-slide.is-active { opacity: 1; visibility: visible; }
.ymt-hero-image { overflow: hidden; }
.ymt-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.ymt-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 20px 22px 24px; background: #fff; }
.ymt-hero-copy h2 { margin: 10px 0 8px; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.45; letter-spacing: .01em; }
.ymt-hero-copy p { display: -webkit-box; overflow: hidden; margin: 0; color: #455164; font-size: 17px; line-height: 1.7; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ymt-meta { display: flex; align-items: center; gap: 9px; margin-top: 13px; color: var(--color-text-muted); font-size: 12px; }
.ymt-slider-controls { position: absolute; bottom: -1px; left: 50%; z-index: 5; display: flex; align-items: center; gap: 3px; transform: translateX(-50%); }
.ymt-slider-prev, .ymt-slider-next { width: 28px; height: 28px; border: 0; background: transparent; color: transparent; cursor: pointer; opacity: 0; }
.ymt-hero:hover .ymt-slider-prev, .ymt-hero:hover .ymt-slider-next, .ymt-slider-prev:focus-visible, .ymt-slider-next:focus-visible { border-radius: 50%; background: rgba(255,255,255,.95); color: var(--color-primary); opacity: 1; }
.ymt-slider-dots { display: flex; padding: 2px 4px; border-radius: 99px; background: rgba(255,255,255,.92); }
.ymt-slider-dots button { display: grid; place-items: center; width: 18px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.ymt-slider-dots button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #cbd5e1; }
.ymt-slider-dots button.is-active::before { background: var(--color-primary-dark); }

.ymt-featured-cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin: 12px 0; }
.ymt-card { overflow: hidden; min-width: 0; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: #fff; box-shadow: var(--shadow-card); transition: transform .18s ease, box-shadow .18s ease; }
.ymt-card:hover { transform: translateY(-2px); box-shadow: 0 5px 12px rgba(36,72,110,.11); }
.ymt-card-image { display: block; overflow: hidden; aspect-ratio: 2.35/1; }
.ymt-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.ymt-card:hover img { transform: scale(1.025); }
.ymt-card-body { position: relative; padding: 11px 10px 9px; }
.ymt-card-body .ymt-category-label { position: absolute; top: -14px; left: 8px; }
.ymt-card h3 { display: -webkit-box; overflow: hidden; min-height: 52px; margin: 3px 0 5px; font-size: 17px; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ymt-card time { color: var(--color-text-muted); font-size: 12px; }

.ymt-latest { overflow: hidden; }
.ymt-latest-list { padding: 0 12px; }
.ymt-latest-item { display: grid; grid-template-columns: 152px minmax(0,1fr) auto; gap: 15px; align-items: center; min-height: 108px; padding: 8px 0; border-bottom: 1px solid var(--color-border); }
.ymt-latest-item:last-child { border-bottom: 0; }
.ymt-latest-image { overflow: hidden; height: 92px; border-radius: 5px; }
.ymt-latest-image img { width: 100%; height: 100%; object-fit: cover; }
.ymt-latest-copy h3 { display: inline; margin: 0 0 0 6px; font-size: 17px; line-height: 1.5; }
.ymt-latest-copy p { display: -webkit-box; overflow: hidden; margin: 5px 0 0; color: var(--color-text-muted); font-size: 15px; line-height: 1.65; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ymt-latest-meta { display: flex; gap: 10px; align-self: end; padding-bottom: 2px; color: var(--color-text-muted); font-size: 12px; white-space: nowrap; }

.ymt-home-sidebar { display: grid; gap: 12px; }
.ymt-side-panel { padding: 10px 12px; }
.ymt-side-panel > h2 { margin: 0 0 9px; padding-bottom: 7px; border-bottom: 1px solid var(--color-border); font-size: 17px; }
.ymt-side-panel > h2 span { color: var(--color-primary); }
.ymt-side-panel .ymt-crown { color: #e6a719; }
.ymt-cocoon-ranking .popular-entry-cards { display: grid; gap: 7px; }
.ymt-cocoon-ranking .popular-entry-card-link { display: block; margin: 0; padding: 4px 0; border: 0; }
.ymt-cocoon-ranking .popular-entry-card { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 10px; align-items: center; min-height: 62px; }
.ymt-cocoon-ranking .popular-entry-card-content { display: block; min-width: 0; margin: 0; padding: 0; }
.ymt-cocoon-ranking .popular-entry-card-thumb { float: none; width: 92px; margin: 0; padding: 0; }
.ymt-cocoon-ranking .popular-entry-card-thumb img { width: 92px; height: 58px; border-radius: 4px; object-fit: cover; }
.ymt-cocoon-ranking .popular-entry-card-title { display: -webkit-box; overflow: hidden; margin: 0; font-size: 14px; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ymt-cocoon-ranking .popular-entry-card-pv { color: var(--color-text-muted); font-size: 12px; }
.ymt-cocoon-ranking .popular-entry-card-meta { margin: 0; padding: 0; }
.ymt-cocoon-ranking .card-thumb::before { border-radius: 50%; background: var(--color-primary); }
.ymt-cocoon-ranking .popular-entry-card-link:nth-child(1) .card-thumb::before { background: #e5a713; }
.ymt-cocoon-ranking .popular-entry-card-link:nth-child(2) .card-thumb::before { background: #8994a4; }
.ymt-cocoon-ranking .popular-entry-card-link:nth-child(3) .card-thumb::before { background: #bd6c27; }
.ymt-tag-chips, .ymt-focus-words { display: flex; flex-wrap: wrap; gap: 6px; }
.ymt-tag-chips a { padding: 5px 9px; border-radius: 5px; background: #f0f3f7; font-size: 13px; font-weight: 650; }
.ymt-focus-words a { padding: 5px 11px; border: 1px solid #cfdced; border-radius: 99px; color: var(--color-primary-dark); font-size: 13px; font-weight: 700; }

.ymt-pickup-section { margin-top: 10px; }
.ymt-pickup-section > .ymt-section-heading { min-height: 28px; padding-left: 0; border-bottom: 0; }
.ymt-pickup-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.ymt-pickup-card { display: grid; grid-template-columns: 56% 44%; overflow: hidden; min-height: 122px; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: #fff; box-shadow: var(--shadow-card); }
.ymt-pickup-copy { position: relative; z-index: 1; padding: 10px 8px 8px 14px; }
.ymt-pickup-card h3 { margin: 0; color: var(--category-text-color); font-size: 17px; }
.ymt-pickup-card p { display: -webkit-box; overflow: hidden; margin: 3px 0 7px; color: var(--color-text-muted); font-size: 14px; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ymt-pickup-image { overflow: hidden; }
.ymt-pickup-image img { width: 100%; height: 100%; object-fit: cover; }
.ymt-more { display: inline-block; padding: 3px 11px; border: 1px solid var(--category-text-color); border-radius: 99px; color: var(--category-text-color); font-size: 13px; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .ymt-hero-slide, .ymt-card, .ymt-card img { transition: none; }
}
