/* Shared presentation only. Category, status and membership colors remain semantic. */
body.ydg-ui-refined :is(.page-head,.page-head--typed) { padding: 26px 0 18px; border-radius: 0; background: transparent; box-shadow: none; }
body.ydg-ui-refined .page-head--typed { border: 0; border-bottom: 1px solid var(--ydg-type-line); }
body.ydg-ui-refined .page-head--typed::after,
body.ydg-ui-refined .page-head--typed h1::before { content: none; }
body.ydg-ui-refined :is(.page-head h1,.article-header h1,.legal-page__head h1) { font-size: clamp(26px,2.6vw,36px); line-height: 1.35; font-weight: 650; }
body.ydg-ui-refined :is(.page-kicker,.article-kicker,.legal-page__head > span) { font-size: 12px; font-weight: 500; letter-spacing: 0; }
body.ydg-ui-refined .page-head .ydg-type-badge { padding: 0; border: 0; background: transparent; box-shadow: none; color: var(--ydg-type-accent); }
body.ydg-ui-refined .term-child-nav { padding: 14px 0 0; border: 0; background: transparent; box-shadow: none; }
body.ydg-ui-refined .term-child-nav__list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px 12px; }
body.ydg-ui-refined .term-child-nav__item { min-width: 0; justify-content: space-between; padding: 10px; border: 0; border-radius: 5px; background: #ffffff04; font-size: 13px; font-weight: 500; box-shadow: none; transform: none; }
body.ydg-ui-refined .term-child-nav__item[hidden],
body.ydg-ui-refined .term-child-nav__toggle[hidden] { display: none; }
body.ydg-ui-refined .term-child-nav__item em { flex-shrink: 0; }
body.ydg-ui-refined .term-child-nav__toggle { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; padding: 8px 0; border: 0; background: transparent; color: var(--ydg-type-accent,var(--accent)); font: inherit; font-size: 12px; cursor: pointer; }
body.ydg-ui-refined .term-child-nav__toggle:focus-visible { outline: 2px solid var(--ydg-type-accent,var(--accent)); outline-offset: 3px; }
body.ydg-ui-refined .term-child-nav__item em { min-width: 0; padding: 0; background: transparent; font-size: 11px; }
body.ydg-ui-refined :is(.term-child-nav__label,.video-archive-sort__label) { font-weight: 500; }
body.ydg-ui-refined .video-archive-sort__options { padding: 0; gap: 4px; border: 0; border-radius: 0; background: transparent; }
body.ydg-ui-refined .video-archive-sort__option { border-radius: 5px; font-weight: 500; box-shadow: none; }
body.ydg-ui-refined .video-archive-sort__option.is-active { background: #ffffff12; box-shadow: inset 0 -2px var(--ydg-type-accent,var(--accent)); }

/* The same straight cover and quiet metadata on category, collection and author lists. */
body.ydg-ui-refined :is(.video-card,.ydg-author-collection-card,.collection-card) { border: 0; background: transparent; box-shadow: none; transform: none; }
body.ydg-ui-refined :is(.video-card,.ydg-author-collection-card,.collection-card):hover { background: transparent; box-shadow: none; transform: none; }
body.ydg-ui-refined .video-card__media,
body.ydg-ui-refined .video-card__link:hover .video-card__media,
body.ydg-ui-refined .video-card__thumb { border-radius: 7px; box-shadow: none; }
body.ydg-ui-refined .video-card__link:hover img { transform: none; }
body.ydg-ui-refined :is(.video-card__title,.ydg-author-collection-title) { font-size: 16px; line-height: 1.5; font-weight: 600; text-align: left; }
body.ydg-ui-refined .ydg-author-collection-title { min-height: 3em; }
body.ydg-ui-refined .ydg-author-collection-cover-stack { aspect-ratio: 16/10; border-radius: 7px; overflow: hidden; box-shadow: none; }
body.ydg-ui-refined .ydg-author-collection-card--page .ydg-author-collection-cover-stack { width: 100%; margin: 0; }
body.ydg-ui-refined .ydg-author-collection-card--page { padding: 0; }
body.ydg-ui-refined .ydg-author-collection-cover-stack::after { content: none; }
body.ydg-ui-refined .ydg-author-collection-cover--1 { inset: 0; width: 100%; height: 100%; transform: none; border: 0; border-radius: 0; box-shadow: none; opacity: 1; filter: none; }
body.ydg-ui-refined :is(.ydg-author-collection-cover--2,.ydg-author-collection-cover--3) { display: none; }
body.ydg-ui-refined .ydg-author-collection-body { padding-top: 10px; gap: 7px; }
body.ydg-ui-refined :is(.collection-badge,.collection-update-badge) { top: 8px; border: 0; border-radius: 4px; padding: 4px 7px; font-size: 11px; font-weight: 600; letter-spacing: 0; box-shadow: none; backdrop-filter: none; }
body.ydg-ui-refined .collection-badge { right: 8px; background: #dc2851; }
body.ydg-ui-refined .collection-update-badge { left: 8px; }
body.ydg-ui-refined .collection-update-badge::before { content: none; }
body.ydg-ui-refined .collection-play-icon { width: 42px; height: 42px; box-shadow: none; }
body.ydg-ui-refined .collection-play-icon::before { left: 17px; top: 13px; border-left-width: 12px; border-top-width: 8px; border-bottom-width: 8px; }
body.ydg-ui-refined .video-card__subcategory { padding: 0; min-height: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 12px; font-weight: 500; transform: none; }
body.ydg-ui-refined :is(.ydg-author-collection-meta,.video-card__meta) { font-size: 11px; font-weight: 400; gap: 10px; }
body.ydg-ui-refined :is(.ydg-author-collection-meta span,.video-card__meta span)::before { content: none; }
body.ydg-ui-refined .ydg-author-collection-desc { color: #999da9; font-size: 13px; line-height: 1.65; height: 3.3em; }
body.ydg-ui-refined .ydg-author-collection-desc.is-expanded { height: auto; }
body.ydg-ui-refined .ydg-author-collection-desc-toggle { justify-self: start; margin: 0; padding: 4px 0; font-size: 12px; font-weight: 500; }
body.ydg-ui-refined .ydg-collections-filter__item { border-radius: 5px; box-shadow: none; }
body.ydg-ui-refined :is(.video-pagination,.pagination) { background: transparent; border: 0; box-shadow: none; border-radius: 0; }
body.ydg-ui-refined :is(.video-pagination .page-numbers,.video-pagination__edge,.video-pagination__jump button,.pagination .page-numbers) { border-radius: 5px; box-shadow: none; font-weight: 500; }

/* Search has its own template styles, so keep these selectors explicitly scoped. */
body.ydg-ui-refined .search-page__hero { padding: 12px 0 24px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; gap: 24px; }
body.ydg-ui-refined .search-page__hero::after { content: none; }
body.ydg-ui-refined .search-page__keyword { font-size: clamp(28px,3vw,38px); line-height: 1.35; }
body.ydg-ui-refined .search-page__stat { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.ydg-ui-refined .search-control { border-radius: 5px; font-weight: 500; box-shadow: none; }
body.ydg-ui-refined .collection-card { padding: 0; }
body.ydg-ui-refined .collection-card__covers { height: auto; aspect-ratio: 16/10; overflow: hidden; border-radius: 7px; }
body.ydg-ui-refined .collection-card__cover--1 { inset: 0; height: 100%; width: 100%; border: 0; border-radius: 0; box-shadow: none; transform: none; }
body.ydg-ui-refined :is(.collection-card__cover--2,.collection-card__cover--3) { display: none; }
body.ydg-ui-refined .collection-card__badge { top: 8px; left: 8px; padding: 4px 7px; border-radius: 4px; font-weight: 600; }
body.ydg-ui-refined .collection-card .collection-card__title { padding-right: 0; text-align: left; font-size: 16px; font-weight: 600; line-height: 1.5; }
body.ydg-ui-refined .collection-card__meta { flex-wrap: wrap; font-size: 11px; gap: 4px 10px; }
body.ydg-ui-refined .collection-card__meta span { white-space: nowrap; }
body.ydg-ui-refined .collection-card__meta span::before { content: none; }
body.ydg-ui-refined .search-page__kicker::before { content: none; }
body.ydg-ui-refined .search-page__kicker { font-size: 12px; letter-spacing: 0; font-weight: 500; }
body.ydg-ui-refined .search-page__form :is(input,button) { border-radius: 6px; box-shadow: none; }
body.ydg-ui-refined .search-page__form button { background: #c32d47; }
body.ydg-ui-refined .collection-card__description-toggle { margin-left: 0; font-size: 12px; font-weight: 500; }
body.ydg-ui-refined .search-page .video-card__body { padding: 10px 0 0; }

/* Portraits and real artwork remain; remove the decorative frames around them. */
body.ydg-ui-refined :is(.author-card,.author-result-card,.friend-link-card,.contact-card) { border-radius: 7px; background: #ffffff03; box-shadow: none; transform: none; }
body.ydg-ui-refined :is(.author-card,.author-result-card,.friend-link-card,.contact-card):hover { transform: none; box-shadow: none; background: #ffffff08; }
body.ydg-ui-refined :is(.author-card__body strong,.friend-link-card__body strong,.contact-card__body strong) { font-size: 16px; font-weight: 600; }
body.ydg-ui-refined .author-card__link { grid-template-columns: 44px minmax(0,1fr); min-height: 76px; padding: 12px 14px; }
body.ydg-ui-refined .author-card__avatar { width: 44px; height: 44px; }
body.ydg-ui-refined .author-card__body em { font-weight: 500; }
body.ydg-ui-refined :is(.ydg-author-hero,.author-profile) { border-radius: 8px; box-shadow: none; }
body.ydg-ui-refined .author-profile { background: var(--panel); }
body.ydg-ui-refined .ydg-author-hero,
body.ydg-ui-refined .ydg-author-hero__content { min-height: 220px; }
body.ydg-ui-refined .ydg-author-hero__content { padding: 24px; }
body.ydg-ui-refined .ydg-author-hero h1 { font-size: clamp(26px,2.6vw,36px); font-weight: 650; line-height: 1.35; }
body.ydg-ui-refined .ydg-author-hero__count { padding: 0; border: 0; border-radius: 0; background: transparent; font-weight: 500; }
body.ydg-ui-refined :is(.ydg-collection-path,.video-category-path) { border-radius: 5px; box-shadow: none; font-weight: 500; }
body.ydg-ui-refined .single-video__header h1 { font-size: clamp(23px,2.3vw,32px); font-weight: 600; line-height: 1.45; }
body.ydg-ui-refined .video-meta span { padding: 3px 0; border: 0; border-radius: 0; background: transparent; font-size: 12px; }
body.ydg-ui-refined .video-meta { gap: 8px 16px; }
body.ydg-ui-refined .single-video-author,
body.ydg-ui-refined .single-video-author:hover,
body.ydg-ui-refined .single-video-author-desc { border-radius: 6px; background: #ffffff04; box-shadow: none; transform: none; }
body.ydg-ui-refined .single-video-author-desc__head::before { content: none; }
body.ydg-ui-refined .single-video-author-desc p { font-weight: 400; font-size: 14px; }
body.ydg-ui-refined .single-video-vip-promo { border-radius: 8px; background: var(--panel); box-shadow: none; }
body.ydg-ui-refined .single-video-vip-promo::before,
body.ydg-ui-refined .single-video-vip-promo::after { content: none; }
body.ydg-ui-refined .single-video-vip-promo h2 { font-size: 24px; line-height: 1.4; font-weight: 600; }
body.ydg-ui-refined .single-video-vip-promo p { font-weight: 400; }
body.ydg-ui-refined .single-video-vip-promo__eyebrow { padding: 0; border: 0; border-radius: 0; background: transparent; font-weight: 500; }
body.ydg-ui-refined .single-video-vip-promo__benefits span { padding: 2px 0; margin-right: 12px; border: 0; border-radius: 0; background: transparent; font-size: 12px; font-weight: 400; }
body.ydg-ui-refined .single-video-vip-promo__button { border-radius: 6px; box-shadow: none; font-weight: 600; }
body.ydg-ui-refined .watch-limit-notice { border-radius: 8px; box-shadow: none; }
body.ydg-ui-refined :is(.single-video__content,.single-video__info,.single-video__related,.comments-area) { box-shadow: none; border-radius: 8px; }

/* Account and forms: keep tier-dependent membership elements untouched. */
body.ydg-ui-refined :is(.auth-panel,.article-card,.legal-page,.account-panel) { border-radius: 8px; box-shadow: none; }
body.ydg-ui-refined :is(.account-panel,.legal-page__actions,.clips-empty,.watch-limit-notice) .button { border-radius: 6px; box-shadow: none; font-weight: 600; }
body.ydg-ui-refined :is(.auth-panel h1,.account-panel > h1) { font-size: 26px; font-weight: 600; }
body.ydg-ui-refined .auth-form label { font-weight: 500; }
body.ydg-ui-refined .auth-form input { border-radius: 6px; }
body.ydg-ui-refined .auth-form .auth-submit { border-radius: 6px; box-shadow: none; font-weight: 600; }
body.ydg-ui-refined .account-overview { min-height: 160px; padding: 26px; border-radius: 8px; background: var(--panel); box-shadow: none; }
body.ydg-ui-refined .account-overview::before { content: none; }
body.ydg-ui-refined .account-overview__glow { display: none; }
body.ydg-ui-refined :is(.account-stat,.account-action) { border-radius: 7px; box-shadow: none; transform: none; }
body.ydg-ui-refined :is(.account-stat,.account-action):hover { transform: none; box-shadow: none; }
body.ydg-ui-refined .account-identity__avatar { border-radius: 12px; box-shadow: none; background: #ffffff08; }
body.ydg-ui-refined .account-identity__avatar::after { box-shadow: none; }
body.ydg-ui-refined .account-overview h1 { font-size: 28px; font-weight: 600; }
body.ydg-ui-refined :is(.account-renewal,.history-item,.history-privacy,.legal-page__sections section) { border-radius: 7px; box-shadow: none; }
body.ydg-ui-refined .legal-page__sections section { padding: 6px 0 16px; border: 0; background: transparent; }
body.ydg-ui-refined .legal-page__sections h2 { font-size: 18px; font-weight: 600; }
body.ydg-ui-refined :is(.site-search,.search-page__form) { border-radius: 7px; box-shadow: none; }
body.ydg-ui-refined .site-header .auth-links .button { box-shadow: none; }
body.ydg-ui-refined .site-header .button { border-radius: 6px; box-shadow: none; }
body.ydg-ui-refined :is(.latest-video-section__load,.episode-order) { border-radius: 6px; box-shadow: none; }
body.ydg-ui-refined :is(.empty-state,.search-page__empty) { border-radius: 7px; box-shadow: none; }
@media (max-width: 767px) {
 body.ydg-ui-refined :is(.page-head,.page-head--typed) { padding: 20px 0 16px; }
 body.ydg-ui-refined :is(.page-head h1,.article-header h1,.legal-page__head h1) { font-size: 25px; }
 body.ydg-ui-refined :is(.video-card__title,.ydg-author-collection-title) { font-size: 14px; }
 body.ydg-ui-refined .collection-card .collection-card__title { font-size: 14px; }
 body.ydg-ui-refined .ydg-author-collection-desc { font-size: 12px; }
 body.ydg-ui-refined .video-card__subcategory { font-size: 11px; }
 body.ydg-ui-refined :is(.collection-badge,.collection-update-badge) { top: 5px; padding: 3px 5px; font-size: 10px; }
 body.ydg-ui-refined .term-child-nav__list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px 10px; }
 body.ydg-ui-refined .term-child-nav__item { font-size: 12px; }
 body.ydg-ui-refined .video-archive-sort { justify-content: flex-start; }
 body.ydg-ui-refined .ydg-author-hero__content { padding: 18px; }
 body.ydg-ui-refined .account-overview { padding: 20px; }
}
