/* Preserve the existing type tokens: 2.0 purple, 1.0 blue. */
body.ydg-ui-refined .home-category-section {
 margin: 28px 0 36px; padding: 18px; border: 1px solid var(--ydg-type-line);
 border-radius: 8px; background: var(--ydg-type-bg); box-shadow: none;
}
body.ydg-ui-refined .home-category-section:hover { box-shadow: none; border-color: var(--ydg-type-line); }
body.ydg-ui-refined .home-category-section__head {
 min-height: 36px; margin-bottom: 16px; padding: 0; border: 0;
}
body.ydg-ui-refined .home-category-section__head h2 { font-size: 20px; font-weight: 650; line-height: 1.4; letter-spacing: 0; }
body.ydg-ui-refined .home-category-section__head h2::before { content: none; }
body.ydg-ui-refined .home-category-section__title { gap: 10px; }
body.ydg-ui-refined .home-category-section .ydg-type-badge {
 padding: 0; border: 0; border-radius: 0; background: transparent;
 color: var(--ydg-type-accent); font-size: 12px; font-weight: 600;
}
body.ydg-ui-refined .home-category-section__head > a {
 display: inline-flex; align-items: center; min-height: 40px; padding: 4px 0 4px 12px;
 border: 0; border-radius: 3px; background: transparent; color: #aaaeba;
 font-size: 12px; font-weight: 500; transform: none;
}
body.ydg-ui-refined .home-category-section__head > a:hover { color: var(--ydg-type-accent); text-decoration: underline; text-underline-offset: 4px; }
body.ydg-ui-refined .home-category-section .home-section-page { gap: 24px 18px; }
/* A collection uses its primary cover, without decorative duplicate layers. */
body.ydg-ui-refined .home-category-section .ydg-author-collection-card { transform: none; }
body.ydg-ui-refined .home-category-section .ydg-author-collection-cover-stack {
 aspect-ratio: 16 / 10; overflow: hidden; border-radius: 7px; box-shadow: none;
}
body.ydg-ui-refined .home-category-section .ydg-author-collection-cover-stack::after { content: none; }
body.ydg-ui-refined .home-category-section .ydg-author-collection-cover--1 {
 inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0;
 opacity: 1; filter: none; transform: none; box-shadow: none; transition: none;
}
body.ydg-ui-refined .home-category-section :is(.ydg-author-collection-cover--2,.ydg-author-collection-cover--3) { display: none; }
body.ydg-ui-refined .home-category-section .collection-badge,
body.ydg-ui-refined .home-category-section .collection-update-badge {
 top: 8px; padding: 4px 7px; border: 0; border-radius: 4px; box-shadow: none;
 font-size: 11px; font-weight: 600; letter-spacing: 0; backdrop-filter: none;
}
body.ydg-ui-refined .home-category-section .collection-badge { right: 8px; background: #dc2851; }
body.ydg-ui-refined .home-category-section .collection-update-badge { left: 8px; }
body.ydg-ui-refined .home-category-section .collection-play-icon { width: 42px; height: 42px; box-shadow: none; }
body.ydg-ui-refined .home-category-section .ydg-author-collection-body { gap: 7px; padding-top: 10px; }
body.ydg-ui-refined .home-category-section .ydg-author-collection-title,
body.ydg-ui-refined .home-category-section .video-card .video-card__title {
 padding: 0; text-align: left; font-size: 16px; font-weight: 600; line-height: 1.5;
}
body.ydg-ui-refined .home-category-section .ydg-author-collection-title { min-height: 3em; }
body.ydg-ui-refined .home-category-section .video-card .video-card__title { min-height: 3em; margin-top: 10px; }
body.ydg-ui-refined .home-category-section .video-card__media { border-radius: 7px; box-shadow: none; }
body.ydg-ui-refined .home-category-section .ydg-author-collection-footer { gap: 5px 12px; align-items: baseline; }
body.ydg-ui-refined .home-category-section .video-card__subcategory {
 min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent;
 box-shadow: none; color: var(--ydg-type-accent); font-size: 12px; font-weight: 500;
}
body.ydg-ui-refined .home-category-section .ydg-author-collection-meta { gap: 10px; }
body.ydg-ui-refined .home-category-section .ydg-author-collection-meta span { font-size: 11px; font-weight: 400; }
body.ydg-ui-refined .home-category-section .ydg-author-collection-meta span::before { content: none; }
body.ydg-ui-refined .home-category-section .ydg-author-collection-desc { font-size: 13px; line-height: 1.65; height: 3.3em; color: #999da9; }
body.ydg-ui-refined .home-category-section .ydg-author-collection-desc.is-expanded { height: auto; }
body.ydg-ui-refined .home-category-section .ydg-author-collection-desc-toggle { justify-self: start; margin: 0; padding: 4px 0; font-size: 12px; font-weight: 500; color: var(--ydg-type-accent); }
body.ydg-ui-refined .home-category-section .home-section-arrow {
 width: 34px; height: 34px; border: 1px solid #ffffff29; background: #15171de8;
 color: #eeeef2; box-shadow: none; backdrop-filter: none;
}
body.ydg-ui-refined .home-category-section .home-section-arrow::before { width: 8px; height: 8px; border-width: 2px 2px 0 0; }
body.ydg-ui-refined .home-category-section .home-section-arrow:hover { background: #252831; }
body.ydg-ui-refined .home-category-section :is(a,button):focus-visible { outline: 2px solid var(--ydg-type-accent); outline-offset: 3px; }
@media (max-width: 767px) {
 body.ydg-ui-refined .home-category-section { padding: 12px; margin: 20px 0 26px; border-radius: 6px; }
 body.ydg-ui-refined .home-category-section__head { gap: 8px; margin-bottom: 12px; }
 body.ydg-ui-refined .home-category-section__head h2 { font-size: 17px; }
 body.ydg-ui-refined .home-category-section__title { gap: 7px; }
 body.ydg-ui-refined .home-category-section .ydg-type-badge { font-size: 11px; }
 body.ydg-ui-refined .home-category-section .home-section-page { gap: 20px 12px; }
 body.ydg-ui-refined .home-category-section .ydg-author-collection-title,
 body.ydg-ui-refined .home-category-section .video-card .video-card__title { font-size: 14px; }
 body.ydg-ui-refined .home-category-section .collection-badge,
 body.ydg-ui-refined .home-category-section .collection-update-badge { top: 5px; padding: 3px 5px; font-size: 10px; }
 body.ydg-ui-refined .home-category-section .collection-badge { right: 5px; }
 body.ydg-ui-refined .home-category-section .collection-update-badge { left: 5px; }
 body.ydg-ui-refined .home-category-section .ydg-author-collection-footer { gap: 4px 8px; }
 body.ydg-ui-refined .home-category-section .ydg-author-collection-meta { gap: 6px; }
 body.ydg-ui-refined .home-category-section .ydg-author-collection-meta span { font-size: 10px; }
 body.ydg-ui-refined .home-category-section .video-card__subcategory { font-size: 11px; }
 body.ydg-ui-refined .home-category-section .ydg-author-collection-desc { font-size: 12px; }
}
