/* Extracted rules from m.youtube.com stylesheet bundle, fetched 2026-08-28.
   Source URL recorded in ytmweb-url.txt. Only rules matching the selectors we
   cite in surfaces.md are kept; the full bundle is 409 KB. */

.YtmCompactMediaItemHost .video-thumbnail-container-compact.video-thumbnail-container-compact {width:100%;height:auto;padding-bottom:56.25%}
.YtmCompactMediaItemMetadata[data-has-badges=true] .YtmCompactMediaItemHeadline {display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.YtmCompactMediaItemMetadata[data-has-badges=true] .YtmCompactMediaItemHeadline {max-height:2.5em;-webkit-line-clamp:2}
.YtmCompactMediaItemMetadata.has-engagement-bar .YtmCompactMediaItemHeadline {max-height:2.5em;-webkit-line-clamp:2}
.YtmCompactMediaItemMetadata.has-engagement-bar[data-has-badges=true] .YtmCompactMediaItemHeadline {max-height:1.25em;-webkit-line-clamp:1}
.YtmCompactMediaItemMetadata[data-has-badges=true] .YtmCompactMediaItemHeadline {display:-webkit-box;white-space:normal}
.YtmCompactMediaItemHeadlinePlaceholder {height:16px;max-width:300px;margin-bottom:8px;background-color:var(--tf3fc855af2285f5f);border-radius:2px}
.YtmCompactMediaItemHeadline {display:-webkit-box;-webkit-box-orient:vertical;max-height:2.5em;-webkit-line-clamp:2;line-height:1.25;text-overflow:ellipsis;font-weight:400;margin:0 0 3px;font-size:1.3rem;overflow:hidden;margin:0;font-size:1.4rem}
.YtmCompactMediaItemHeadline .ytm-channel-name {font-size:1.4rem}
.YtmCompactMediaItemHeadline {max-height:3.75em;-webkit-line-clamp:3}
html {color:var(--tffc2fd3a644f6275);background-color:var(--t3e41d7b17b187f69);font-size:10px;font-family:Roboto,Arial,sans-serif}
html {word-wrap:break-word;color:var(--tffc2fd3a644f6275);background-color:var(--t3e41d7b17b187f69);-webkit-text-size-adjust:100%}
h3 {display:-webkit-box;-webkit-box-orient:vertical;max-height:2.5em;-webkit-line-clamp:2;overflow:hidden;line-height:1.25;text-overflow:ellipsis;font-weight:400;margin:0 0 3px;font-size:1.4rem;margin-bottom:0}
ytm-engagement-panel-section-list-renderer .YtmCompactMediaItemHeadline {margin-bottom:4px}
.video-thumbnail-container-compact,.video-thumbnail-container-large {position:relative;-webkit-flex-shrink:0;flex-shrink:0;overflow:hidden}
.video-thumbnail-container-large {display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;padding-bottom:56.25%}
.video-thumbnail-container-large.stacked {border-radius:12px;border-top:1px solid var(--t3e41d7b17b187f69)}
.video-thumbnail-container-compact {display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;width:160px;height:90px}
.video-thumbnail-container-compact-rounded {border-radius:8px}
.big-shorts-singleton .video-thumbnail-container-large {padding-bottom:125%}
.big-shorts-singleton .video-thumbnail-container-large img {object-fit:cover;width:100%}
ytm-item-section-renderer:first-of-type .video-thumbnail-container-large {margin-top:0}
.video-thumbnail-container-large:where(.not-rendered-from-rich-item) {margin:-13px -12px 0;padding-top:13px}
.style-recommendations-in-portrait .video-thumbnail-container-large.rounded-thumbnail {border-radius:12px;margin:0;padding-top:0}
.video-thumbnail-container-large {margin:0;padding-top:0}
.video-thumbnail-container-large.thumbnail-cover-rounded {border-radius:12px}
.video-thumbnail-container-large.rounded-thumbnail {border-radius:12px}
.video-thumbnail-container-large.rounded-thumbnail {border-radius:12px}
.style-recommendations-in-portrait .video-thumbnail-container-large.rounded-thumbnail,player-fullscreen-controls .video-thumbnail-container-large.rounded-thumbnail {border-radius:12px}
.ytm-player-endscreen .autonav-endscreen-countdown-container .autonav-endscreen-cued-video-container .cued-thumbnail-overlay-v2 .video-thumbnail-container-compact {width:100%;height:auto;padding-bottom:56.25%}
ytm-rich-grid-renderer {--ytm-rich-grid-shorts-gallery-column-count:2;display:block}
.is-shorts .rich-grid-renderer-contents {display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start}
ytm-rich-grid-renderer.rich-grid-single-column.is-shorts .channel-page-grid-header ytm-feed-filter-chip-bar-renderer.chip-bar {margin-bottom:12px}
ytm-rich-grid-renderer.rich-grid-single-column .rich-grid-sticky-header {margin-bottom:50px}
ytm-rich-grid-renderer .channel-page-grid-header {margin-top:16px}
ytm-rich-grid-renderer.rich-grid-single-column.is-hashtag .rich-grid-sticky-header ytm-feed-filter-chip-bar-renderer {margin-left:0;padding-left:0}
.rich-grid-renderer-title {display:-webkit-box;-webkit-box-orient:vertical;max-height:2.5em;-webkit-line-clamp:2;overflow:hidden;line-height:1.25;text-overflow:ellipsis;font-weight:400;margin:0 0 3px;font-size:1.8rem;font-size:2rem;font-weight:500;line-height:2.4rem;margin:24px 0}
ytm-rich-grid-renderer .spinner {margin-top:80px}
.rich-grid-renderer-contents>ytm-rich-section-renderer:first-child {padding-top:12px}
.rich-grid-renderer-contents>ytm-channel-list-sub-menu-renderer {margin-bottom:4px}
.rich-grid-renderer-contents>ytm-statement-banner-renderer:first-child {border-top:none}
.is-shorts ytm-rich-item-renderer {--shorts-grid-width:calc(100vw/var(--ytm-rich-grid-shorts-gallery-column-count) - var(--ytm-rich-item-margin, 1px)*2);width:var(--shorts-grid-width)}
.YtmBrandVideoShelfRendererBrandVideoShelfVideoContainer ytm-video-with-context-renderer ytm-media-item .video-thumbnail-container-large {display:block;margin:0;padding:0}
.YtmBrandVideoShelfRendererBrandVideoShelfVideoContainer ytm-video-with-context-renderer ytm-media-item .video-thumbnail-container-large:before {display:block;content:"";padding-top:56.25%;width:100%}
ytm-rich-item-renderer {--ytm-rich-item-margin:8px;--ytm-rich-item-container-margin:0;--ytm-rich-item-dismissal-margin:0;display:inline-block;vertical-align:top;margin-left:var(--ytm-rich-item-margin)}
ytm-rich-item-renderer.is-in-first-col {margin-left:var(--ytm-rich-item-container-margin)}
ytm-rich-item-renderer.is-shorts {--ytm-rich-item-margin:1px;margin:0 var(--ytm-rich-item-margin)}
:where(ytm-rich-item-renderer.rich-item-single-standard-column) ytm-media-item .media-item-details {margin-bottom:16px;margin-left:12px}
ytm-rich-item-renderer.rich-item-single-standard-column ytm-media-item .video-thumbnail-container-large {display:block;margin:0;padding:0}
ytm-rich-item-renderer.rich-item-single-standard-column ytm-media-item .video-thumbnail-container-large:before {display:block;content:"";width:100%;padding-top:56.25%}
ytm-rich-item-renderer.rich-item-single-standard-column ytm-media-item .media-item-endorsement-container {margin-left:12px}
ytm-rich-item-renderer.rich-item-single-standard-column .YtmCompactMediaItemHeadlinePlaceholder {max-width:95%}
ytm-rich-item-renderer.rich-item-single-standard-column ytm-notification-multi-action-renderer,ytm-rich-item-renderer.rich-item-single-standard-column ytm-notification-text-renderer {margin-left:var(--ytm-rich-item-dismissal-margin);margin-right:var(--ytm-rich-item-dismissal-margin)}
ytm-rich-item-renderer.rich-item-single-standard-column ytm-notification-multi-action-renderer,ytm-rich-item-renderer.rich-item-single-standard-column ytm-notification-text-renderer {margin-bottom:16px}
ytm-rich-item-renderer.rich-item-single-standard-column ytm-notification-multi-action-renderer,ytm-rich-item-renderer.rich-item-single-standard-column ytm-notification-text-renderer {margin-bottom:24px}
ytm-rich-item-renderer.rich-item-single-standard-column ytm-notification-text-renderer {padding:12px}
ytm-rich-item-renderer.rich-item-single-standard-column ytm-notification-multi-action-renderer {padding:0}
ytm-rich-item-renderer.rich-item-single-standard-column:first-child ytm-notification-multi-action-renderer {margin-top:12px}
ytm-rich-item-renderer:not(.rich-item-single-standard-column).is-compact-list {width:100%}
ytm-rich-item-renderer {margin-top:8px;margin-bottom:8px}
ytm-rich-item-renderer ytm-media-item .media-item-details {margin-bottom:0;margin-left:0}
ytm-rich-item-renderer ytm-media-item .media-item-endorsement-container {margin-left:0}
ytm-rich-item-renderer ytm-menu-renderer .icon-button {margin-top:8px;padding:0 0 0 8px;width:24px;height:24px}
ytm-rich-item-renderer.add-top-and-bottom-margin {margin-top:6px;margin-bottom:6px}
ytm-rich-item-renderer ytm-notification-text-renderer {display:block;position:relative}
ytm-rich-item-renderer ytm-notification-multi-action-renderer,ytm-rich-item-renderer ytm-notification-text-renderer {border-radius:12px;box-shadow:0 2px 8px var(--tf3fc855af2285f5f);margin-bottom:12px;padding:28.125% 12px 28.125%}
ytm-rich-item-renderer ytm-notification-text-renderer .notification-text-wrapper {position:absolute;top:0;bottom:0;left:0;right:0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}
ytm-rich-item-renderer ytm-notification-text-renderer .notification-text-wrapper {position:relative}
ytm-rich-item-renderer .media-item-headline,ytm-rich-item-renderer ytm-thumbnail-overlay-time-status-renderer {font-weight:500}
ytm-rich-item-renderer ytm-compact-video-renderer .YtmCompactMediaItemHost {padding-top:12px}
ytm-rich-item-renderer ytm-compact-playlist-renderer .YtmCompactMediaItemHost {padding-top:12px}
ytm-rich-item-renderer yt-lockup-view-model {display:-webkit-box;display:-webkit-flex;display:flex;margin-bottom:24px}
ytm-rich-item-renderer.is-compact-list yt-lockup-view-model {margin-bottom:12px}
