/*
Theme Name: YT Matome
Theme URI: https://github.com/example/wp-theme-yt
Author: Theme Author
Description: 動画まとめサイト向けの YouTube 風タイルレイアウトテーマ。アイキャッチ上にチャンネル名をオーバーレイ表示します。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yt-matome
*/

:root {
	--yt-bg: #ffffff;
	--yt-surface: #ffffff;
	--yt-surface-soft: #eef6ff;
	--yt-surface-hover: #e2efff;
	--yt-border: #d8e6f7;
	--yt-text: #102033;
	--yt-text-muted: #64748b;
	--yt-accent: #0b7cff;
	--yt-link: #0b7cff;
	--yt-header-h: 56px;
	--yt-gap: 12px;
	--yt-radius: 12px;
	--yt-left-sidebar-w: 240px;
	--yt-right-sidebar-w: 300px;
	--yt-page-max-w: 1600px;
	--yt-overlay-bg: rgba(15, 23, 42, 0.68);
	--yt-card-thumb-w: 184px;
	--yt-card-thumb-h: 104px;
	--yt-font: "Roboto", "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--yt-font);
	font-size: 14px;
	line-height: 1.4;
	color: var(--yt-text);
	background: var(--yt-bg);
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.site-page {
	width: 100%;
	max-width: var(--yt-page-max-w);
	margin-inline: auto;
	min-height: 100vh;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	gap: 16px;
	height: var(--yt-header-h);
	padding: 0 16px;
	background: rgba(255, 255, 255, 0.94);
	border-bottom: 1px solid var(--yt-border);
}

.site-header__brand {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.site-header__brand:hover {
	text-decoration: none;
}

.site-header__site-title {
	white-space: nowrap;
}

.site-header__tagline {
	display: none;
	margin: 0;
}

.site-header__site-icon {
	display: block;
	width: 32px;
	height: 32px;
	border-radius: 6px;
	object-fit: cover;
	flex-shrink: 0;
}

.site-header__logo-icon {
	display: inline-flex;
	width: 28px;
	height: 20px;
	background: var(--yt-accent);
	border-radius: 4px 8px 8px 4px;
	position: relative;
	flex-shrink: 0;
}

.site-header__logo-icon::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-35%, -50%);
	border-style: solid;
	border-width: 5px 0 5px 8px;
	border-color: transparent transparent transparent #fff;
}

.site-header__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
	min-width: 0;
	margin-left: auto;
}

.site-header__search {
	display: flex;
	width: min(21vw, 260px);
}

.site-header__search--mobile {
	display: none;
}

.site-header__search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 40px;
	padding: 0 16px;
	border: 1px solid var(--yt-border);
	border-right: none;
	border-radius: 40px 0 0 40px;
	background: #ffffff;
	color: var(--yt-text);
	font-size: 16px;
}

.site-header__search input[type="search"]:focus {
	outline: 2px solid rgba(11, 124, 255, 0.24);
	outline-offset: 0;
	border-color: var(--yt-accent);
}

.site-header__search button {
	width: 64px;
	height: 40px;
	border: 1px solid var(--yt-border);
	border-radius: 0 40px 40px 0;
	background: var(--yt-surface-soft);
	color: var(--yt-text);
	cursor: pointer;
}

.site-header__search button:hover {
	background: var(--yt-surface-hover);
}

.site-header__nav {
	min-width: 0;
}

.site-header__menu,
.site-header__menu ul {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-header__menu li {
	margin: 0;
}

.site-header__menu a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 8px 10px;
	border-radius: 999px;
	color: var(--yt-text);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.site-header__menu a:hover,
.site-header__menu a:focus-visible {
	background: var(--yt-surface);
	text-decoration: none;
}

.site-header__menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: var(--yt-text);
	cursor: pointer;
}

.site-header__mobile-panel {
	display: none;
}

.site-layout {
	display: grid;
	grid-template-columns: minmax(0, var(--yt-left-sidebar-w)) minmax(0, 1fr) minmax(260px, var(--yt-right-sidebar-w));
	gap: var(--yt-gap);
	align-items: start;
	width: 100%;
	min-height: calc(100vh - var(--yt-header-h));
	padding: var(--yt-gap);
}

.site-main {
	grid-column: 2;
	width: 100%;
	max-width: none;
	min-width: 0;
	padding: 0;
}

.site-sidebar {
	min-width: 0;
	color: var(--yt-text);
}

.site-sidebar--left {
	grid-column: 1;
	position: sticky;
	top: calc(var(--yt-header-h) + var(--yt-gap));
	max-height: calc(100vh - var(--yt-header-h) - (var(--yt-gap) * 2));
	overflow-y: auto;
	scrollbar-width: thin;
}

.site-sidebar--right {
	grid-column: 3;
	position: sticky;
	top: calc(var(--yt-header-h) + var(--yt-gap));
	align-self: start;
}

.site-sidebar__inner {
	display: grid;
	gap: var(--yt-gap);
}

.sidebar-section {
	padding: 12px;
	border-radius: var(--yt-radius);
	background: var(--yt-surface);
}

.sidebar-section__title {
	margin: 0 0 10px;
	padding-left: 10px;
	border-left: 4px solid var(--yt-accent);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

/* Main content headings — same left accent as sidebar-section__title */
.channel-archive-intro__title,
.page-header h1,
.static-page > .single-video__title,
.single-video > .single-video__title,
.channel-analytics__header > h2,
.single-video__related-title,
.no-results > h1 {
	padding-left: 10px;
	border-left: 4px solid var(--yt-accent);
}

.sidebar-section--share .sidebar-share {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 6px;
	margin-left: 0;
	width: 100%;
}

.sidebar-section__more {
	margin: 10px 0 0;
	text-align: right;
}

.sidebar-section__more-link {
	color: var(--yt-link);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.sidebar-section__more-link:hover,
.sidebar-section__more-link:focus-visible {
	text-decoration: underline;
}

.sidebar-menu,
.sidebar-menu ul {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sidebar-menu li {
	margin: 0;
}

.sidebar-menu a,
.sidebar-menu__item {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 38px;
	padding: 8px 10px;
	border-radius: 10px;
	color: var(--yt-text);
	font-weight: 600;
}

.sidebar-menu__icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	object-fit: contain;
}

.sidebar-menu__label {
	min-width: 0;
}

.sidebar-menu a:hover,
.sidebar-menu a:focus-visible,
.sidebar-menu__item:hover,
.sidebar-menu__item:focus-visible {
	background: var(--yt-surface-hover);
	text-decoration: none;
}

.sidebar-tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	line-height: 1.4;
}

.sidebar-tag-cloud a {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border: 1px solid var(--yt-border);
	border-radius: 999px;
	background: var(--yt-bg);
	color: var(--yt-text);
	font-size: 12px !important;
	font-weight: 600;
	text-decoration: none;
}

.sidebar-tag-cloud a:hover,
.sidebar-tag-cloud a:focus-visible {
	border-color: var(--yt-link);
	color: var(--yt-link);
	text-decoration: none;
}

.channel-list,
.channel-ranking-list,
.ranking-list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.channel-list__link,
.channel-ranking-list__link,
.ranking-list__link {
	display: grid;
	gap: 10px;
	align-items: center;
	min-width: 0;
	border-radius: 10px;
	color: inherit;
}

.channel-list__link {
	grid-template-columns: 36px minmax(0, 1fr);
	padding: 6px;
}

.channel-list__link:hover,
.channel-list__link:focus-visible,
.channel-ranking-list__link:hover,
.channel-ranking-list__link:focus-visible,
.ranking-list__link:hover,
.ranking-list__link:focus-visible {
	background: var(--yt-surface);
	text-decoration: none;
}

.channel-ranking-list__link {
	grid-template-columns: 28px 36px minmax(0, 1fr);
	padding: 6px;
}

.channel-ranking-list__rank,
.ranking-list__rank,
.channel-analytics__video-rank {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--yt-accent);
	border: 1px solid rgba(255, 255, 255, 0.72);
	box-shadow: 0 2px 6px rgba(11, 124, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	text-shadow: 0 1px 1px rgba(15, 23, 42, 0.24);
}

.channel-ranking-list__item:nth-child(-n+3) .channel-ranking-list__rank,
.ranking-list__item:nth-child(-n+3) .ranking-list__rank,
.channel-analytics__video-item--rank-1 .channel-analytics__video-rank,
.channel-analytics__video-item--rank-2 .channel-analytics__video-rank,
.channel-analytics__video-item--rank-3 .channel-analytics__video-rank {
	transform: translateY(-1px);
}

.channel-ranking-list__item:nth-child(1) .channel-ranking-list__rank,
.ranking-list__item:nth-child(1) .ranking-list__rank,
.channel-analytics__video-item--rank-1 .channel-analytics__video-rank {
	background:
		radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.9) 0 16%, transparent 17%),
		linear-gradient(135deg, #fef3c7 0%, #fbbf24 42%, #b45309 100%);
	border-color: #f59e0b;
	box-shadow: 0 4px 10px rgba(180, 83, 9, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.65);
	color: #3f2d00;
}

.channel-ranking-list__item:nth-child(2) .channel-ranking-list__rank,
.ranking-list__item:nth-child(2) .ranking-list__rank,
.channel-analytics__video-item--rank-2 .channel-analytics__video-rank {
	background:
		radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.95) 0 16%, transparent 17%),
		linear-gradient(135deg, #f8fafc 0%, #cbd5e1 46%, #64748b 100%);
	border-color: #cbd5e1;
	box-shadow: 0 4px 10px rgba(71, 85, 105, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.72);
	color: #263445;
}

.channel-ranking-list__item:nth-child(3) .channel-ranking-list__rank,
.ranking-list__item:nth-child(3) .ranking-list__rank,
.channel-analytics__video-item--rank-3 .channel-analytics__video-rank {
	background:
		radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.82) 0 16%, transparent 17%),
		linear-gradient(135deg, #fed7aa 0%, #c66b2d 46%, #7c2d12 100%);
	border-color: #c66b2d;
	box-shadow: 0 4px 10px rgba(124, 45, 18, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.58);
	color: #fff7ed;
}

.channel-list__avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--yt-surface-soft);
}

.channel-ranking-list__avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--yt-surface-soft);
}

.channel-list__avatar--placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--yt-text-muted);
	font-weight: 700;
}

.channel-ranking-list__avatar--placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.channel-list__body,
.channel-ranking-list__body,
.ranking-list__body {
	min-width: 0;
}

.channel-list__name,
.channel-ranking-list__name,
.ranking-list__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--yt-text);
	font-weight: 600;
	line-height: 1.35;
}

.channel-list__name {
	-webkit-line-clamp: 1;
}

.channel-ranking-list__name {
	-webkit-line-clamp: 1;
	font-size: 13px;
}

.channel-list__count,
.channel-ranking-list__meta,
.ranking-list__meta,
.sidebar-empty {
	color: var(--yt-text-muted);
	font-size: 12px;
}

.ranking-list__link {
	grid-template-columns: 28px 84px minmax(0, 1fr);
	padding: 6px;
}

.ranking-list__thumb-wrap {
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	overflow: hidden;
	background: var(--yt-surface);
}

.ranking-list__thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ranking-list__thumb--placeholder {
	display: block;
	background: linear-gradient(135deg, #dbeafe, #eff6ff);
}

.ranking-list__title {
	-webkit-line-clamp: 2;
	font-size: 13px;
}

.ranking-list__meta {
	display: block;
	margin-top: 4px;
}

.sidebar-empty {
	margin: 0;
}

.video-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--yt-card-thumb-w)), 1fr));
	gap: var(--yt-gap);
	width: 100%;
}

@media (min-width: 1280px) {
	.video-grid {
		gap: 16px;
		padding: 0 4px;
	}
}

.video-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
}

.video-card__link {
	display: block;
	width: 100%;
	color: inherit;
}

.video-card__link:hover {
	text-decoration: none;
}

.video-card__thumb-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: var(--yt-card-thumb-w) / var(--yt-card-thumb-h);
	border-radius: var(--yt-radius);
	overflow: hidden;
	background: var(--yt-surface);
}

.video-card__thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s ease;
}

.video-card__link:hover .video-card__thumb {
	transform: scale(1.03);
}

.video-card__channel {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
	max-width: calc(100% - 16px);
	padding: 4px 8px;
	border-radius: 4px;
	background: var(--yt-overlay-bg);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	backdrop-filter: blur(4px);
}

.video-card__duration {
	position: absolute;
	bottom: 8px;
	right: 8px;
	z-index: 2;
	padding: 2px 6px;
	border-radius: 4px;
	background: rgba(15, 23, 42, 0.82);
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.video-card__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #dbeafe, #eff6ff);
	color: var(--yt-text-muted);
	font-size: 13px;
}

.video-card__body {
	padding: 10px 4px 4px;
}

.video-card__title {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--yt-text);
}

.video-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin: 6px 0 0;
	font-size: 12px;
	color: var(--yt-text-muted);
}

.video-card__meta-date {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.video-card__meta-views {
	display: inline;
}

.video-card__new-dot {
	flex-shrink: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #ef4444;
}

.yt-matome-view-count-badge--tier-2,
.yt-matome-view-count-badge--tier-3,
.yt-matome-view-count-badge--tier-4,
.yt-matome-view-count-badge--tier-5 {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	color: #fff;
	font-weight: 700;
	line-height: 1.35;
}

.yt-matome-view-count-badge--tier-2 {
	background: #f87171;
}

.yt-matome-view-count-badge--tier-3 {
	background: #ef4444;
}

.yt-matome-view-count-badge--tier-4 {
	background: #dc2626;
}

.yt-matome-view-count-badge--tier-5 {
	background: #7c3aed;
}

.advanced-search {
	margin: 0 0 24px;
	min-width: 0;
}

.advanced-search__card {
	border: 1px solid var(--yt-border);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
	overflow: hidden;
}

.advanced-search__form {
	padding: 16px 20px 20px;
}

.advanced-search__form-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
}

.advanced-search__field {
	min-width: 0;
}

.advanced-search__field--full {
	grid-column: 1 / -1;
}

.advanced-search__label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
	color: var(--yt-text);
}

.advanced-search__label-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	color: var(--yt-accent);
	flex-shrink: 0;
}

.advanced-search__label-icon svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.advanced-search__select,
.advanced-search__input,
.advanced-search__channel-add {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--yt-border);
	border-radius: 10px;
	background: var(--yt-bg);
	color: var(--yt-text);
	font: inherit;
}

.advanced-search__input--keyword {
	padding-left: 12px;
}

.advanced-search__channel-picker {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid var(--yt-border);
	border-radius: 10px;
	background: var(--yt-bg);
}

.advanced-search__channel-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	min-height: 0;
}

.advanced-search__channel-chips:empty {
	display: none;
}

.advanced-search__channel-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 8px 4px 10px;
	border: 1px solid #bfdbfe;
	border-radius: 999px;
	background: #eff6ff;
	color: var(--yt-text);
	font-size: 13px;
	line-height: 1.3;
}

.advanced-search__channel-chip-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--yt-text-muted);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.advanced-search__channel-chip-remove:hover,
.advanced-search__channel-chip-remove:focus-visible {
	color: var(--yt-accent);
}

.advanced-search__channel-add {
	margin: 0;
	border: 1px dashed var(--yt-border);
	background: #fff;
}

.advanced-search__date-range {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 8px;
}

.advanced-search__date-range input[type="date"] {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid var(--yt-border);
	border-radius: 10px;
	background: var(--yt-bg);
	font: inherit;
}

.advanced-search__date-separator {
	color: var(--yt-text-muted);
	text-align: center;
}

.advanced-search__segments {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	padding: 3px;
	border: 1px solid var(--yt-border);
	border-radius: 10px;
	background: var(--yt-bg);
}

.advanced-search__segment-label {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
}

.advanced-search__segment-label input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.advanced-search__segment-label span {
	display: block;
	padding: 8px 10px;
	border-radius: 8px;
	color: var(--yt-text-muted);
	font-size: 12px;
	font-weight: 600;
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.advanced-search__segment-label.is-active span,
.advanced-search__segment-label input:checked + span {
	background: var(--yt-accent);
	color: #fff;
}

.advanced-search__hint {
	margin: 6px 0 0;
	font-size: 12px;
	color: var(--yt-text-muted);
	line-height: 1.5;
}

.advanced-search__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid var(--yt-border);
}

.advanced-search__clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 8px 18px;
	border: 1px solid var(--yt-border);
	border-radius: 10px;
	background: #fff;
	color: var(--yt-text);
	font-weight: 600;
	text-decoration: none;
}

.advanced-search__clear:hover,
.advanced-search__clear:focus-visible {
	border-color: var(--yt-accent);
	color: var(--yt-accent);
	text-decoration: none;
}

.advanced-search__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 28px;
	border: 0;
	border-radius: 10px;
	background: var(--yt-accent);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(11, 124, 255, 0.28);
}

.advanced-search__submit svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
	flex-shrink: 0;
}

.advanced-search__submit:hover,
.advanced-search__submit:focus-visible {
	filter: brightness(1.05);
}

@media (min-width: 768px) {
	.advanced-search__form-grid {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
		gap: 18px 20px;
	}

	.advanced-search__field--duration {
		grid-column: 1 / -1;
	}

	.advanced-search__field--order,
	.advanced-search__field--views-min {
		grid-column: span 1;
	}
}

@media (min-width: 1024px) {
	.advanced-search__form-grid {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr) minmax(0, 0.85fr);
	}

	.advanced-search__field--duration,
	.advanced-search__field--order,
	.advanced-search__field--views-min {
		grid-column: auto;
	}
}

@media (max-width: 767px) {
	.advanced-search__segments {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.advanced-search__segment-label span {
		white-space: normal;
	}
}

@media (max-width: 479px) {
	.advanced-search__date-range {
		grid-template-columns: minmax(0, 1fr);
	}

	.advanced-search__date-separator {
		display: none;
	}

	.advanced-search__actions {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.advanced-search__submit,
	.advanced-search__clear {
		width: 100%;
	}
}

.advanced-search__results {
	margin-top: 24px;
}

.advanced-search__result-count {
	margin: 0 0 12px;
	font-size: 14px;
	color: var(--yt-text-muted);
}

.advanced-search__pagination {
	margin-top: 24px;
}

.advanced-search__pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.advanced-search__pagination .page-numbers li {
	margin: 0;
}

.advanced-search__pagination a.page-numbers,
.advanced-search__pagination span.page-numbers {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 8px;
	background: var(--yt-surface);
	color: var(--yt-text);
	text-decoration: none;
}

.advanced-search__pagination span.page-numbers.current {
	background: var(--yt-accent);
	color: #fff;
}

.advanced-search__no-results {
	padding: 32px 16px;
}

.pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 32px 0 16px;
	padding: 0;
	list-style: none;
}

.pagination a,
.pagination span {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 8px;
	background: var(--yt-surface);
	color: var(--yt-text);
}

.pagination .current {
	background: var(--yt-accent);
	color: #fff;
}

.page-header {
	margin: 0 0 20px;
	padding: 0 4px;
}

.page-header--category {
	border-radius: var(--yt-radius);
}

.channel-archive-intro {
	margin: 0 0 20px;
}

.channel-archive-intro__title {
	margin: 0 0 12px;
	padding-right: 4px;
	font-size: clamp(20px, 2.4vw, 26px);
	font-weight: 700;
	line-height: 1.3;
	color: var(--yt-text);
}

.channel-archive-intro .page-header {
	margin-bottom: 0;
}

.page-header--with-banner {
	overflow: hidden;
	min-height: clamp(90px, 14vw, 140px);
	padding: clamp(32px, 6vw, 56px) 16px 16px;
	background-color: var(--yt-surface-soft);
	background-position: center;
	background-size: cover;
	box-shadow: inset 0 -70px 60px rgba(11, 124, 255, 0.16);
}

.page-header h1 {
	margin: 0;
	font-size: clamp(18px, 2.4vw, 22px);
	font-weight: 700;
	line-height: 1.35;
}

.page-header p {
	margin: 8px 0 0;
	color: var(--yt-text-muted);
}

.category-description {
	margin: 0 0 20px;
	padding: 16px;
	border-radius: var(--yt-radius);
	background: var(--yt-surface);
	color: var(--yt-text);
}

.category-description__content {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.7;
}

.category-description.is-expanded .category-description__content {
	display: block;
}

.category-description__content p {
	margin: 0 0 0.8em;
}

.category-description__content p:last-child {
	margin-bottom: 0;
}

.category-description__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--yt-link);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.category-description__toggle[hidden] {
	display: none;
}

.category-description__toggle-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--yt-surface-hover);
	line-height: 1;
}

.category-description.is-expanded .category-description__toggle-icon {
	transform: rotate(45deg);
}

.channel-header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 16px;
	padding: 14px;
	border-radius: var(--yt-radius);
	background: var(--yt-surface);
}

.page-header--with-banner .channel-header {
	background: rgba(255, 255, 255, 0.86);
	backdrop-filter: blur(8px);
}

.channel-tabs {
	margin: 0 0 20px;
	border-bottom: 1px solid var(--yt-border);
}

.channel-tabs--home {
	margin-top: 0;
}

.channel-tabs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
	margin: 0;
	padding: 0 4px;
	list-style: none;
}

.channel-tabs__item {
	margin: 0;
}

.channel-tabs__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 2px;
	border-bottom: 2px solid transparent;
	color: var(--yt-text-muted);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.channel-tabs__link:hover,
.channel-tabs__link:focus-visible {
	color: var(--yt-text);
	text-decoration: none;
}

.channel-tabs__link.is-active {
	border-bottom-color: var(--yt-link);
	color: var(--yt-link);
}

.channel-header__avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background: var(--yt-surface-soft);
}

.channel-header__body {
	min-width: 0;
}

.channel-header__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	color: var(--yt-text-muted);
	font-size: 13px;
}

.channel-header__link {
	display: inline-block;
	margin-top: 8px;
	color: var(--yt-link);
	font-weight: 600;
}

.channel-header__video-count {
	margin: 8px 0 0;
	color: var(--yt-text-muted);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.channel-directory {
	margin: 20px 0 0;
}

.channel-directory__empty {
	margin: 0;
	padding: 20px;
	border-radius: var(--yt-radius);
	background: var(--yt-surface);
	color: var(--yt-text-muted);
	text-align: center;
}

.channel-directory__table-wrap {
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	border: 1px solid var(--yt-border);
	border-radius: var(--yt-radius);
	background: var(--yt-surface);
	box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.channel-directory__table {
	width: 100%;
	min-width: 980px;
	border-collapse: collapse;
	font-size: 13px;
}

@media (min-width: 1024px) {
	.channel-directory__table-wrap {
		overflow-x: visible;
	}

	.channel-directory__table {
		min-width: 0;
		table-layout: fixed;
		font-size: 12px;
	}

	.channel-directory__table th,
	.channel-directory__table td {
		padding: 10px 6px;
	}

	.channel-directory__table thead th {
		font-size: 11px;
		line-height: 1.35;
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.channel-directory__table tbody td:not(:first-child) {
		white-space: nowrap;
	}

	.channel-directory__table thead .channel-directory__sort-button {
		justify-content: center;
		white-space: normal;
	}

	.channel-directory__table--channels thead th:nth-child(1),
	.channel-directory__table--channels .channel-directory__rank-cell {
		width: 44px;
		min-width: 44px;
		max-width: 44px;
		padding-left: 4px;
		padding-right: 4px;
	}

	.channel-directory__table--channels thead th:nth-child(2) {
		width: 260px;
		min-width: 260px;
		max-width: 260px;
		text-align: center;
	}

	.channel-directory__table--channels .channel-directory__channel-cell {
		width: 260px;
		min-width: 260px;
		max-width: 260px;
		text-align: left;
	}
}

.channel-directory__table th,
.channel-directory__table td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--yt-border);
	text-align: right;
	vertical-align: middle;
	white-space: nowrap;
}

.channel-directory__table thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: var(--yt-surface-soft);
	color: var(--yt-text-muted);
	font-size: 12px;
	font-weight: 700;
	text-align: center;
}

.channel-directory__rank-heading {
	text-align: center;
	cursor: default;
}

.channel-directory__sort-button {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: inherit;
	cursor: pointer;
}

.channel-directory__table thead .channel-directory__sort-button {
	justify-content: center;
	text-align: center;
}

.channel-directory__sort-button:hover,
.channel-directory__sort-button:focus-visible {
	color: var(--yt-link);
}

.channel-directory__sort-button:focus-visible {
	outline: 2px solid rgba(11, 124, 255, 0.35);
	outline-offset: 3px;
	border-radius: 6px;
}

.channel-directory__sort-indicator {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1em;
	color: var(--yt-link);
	font-size: 11px;
	line-height: 1;
}

.channel-directory__sort-indicator:empty {
	display: none;
}

.channel-directory__table.channel-directory__table--channels th.channel-directory__channel-cell,
.channel-directory__table.channel-directory__table--channels tbody th.channel-directory__channel-cell {
	text-align: left;
}

.video-ranking__video-cell {
	text-align: left;
}

.channel-directory__table tbody tr:last-child th,
.channel-directory__table tbody tr:last-child td {
	border-bottom: 0;
}

.channel-directory__table tbody tr:hover {
	background: #f8fbff;
}

.channel-directory__channel-cell {
	min-width: 260px;
}

.channel-directory__channel {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	align-items: center;
	justify-items: start;
	gap: 10px;
	width: 100%;
	max-width: 100%;
	color: inherit;
	text-align: left;
}

.channel-directory__channel:hover,
.channel-directory__channel:focus-visible {
	color: var(--yt-link);
	text-decoration: none;
}

.channel-directory__avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--yt-surface-soft);
}

.channel-directory__avatar--placeholder {
	display: inline-block;
	background: linear-gradient(135deg, #dbeafe, #eff6ff);
}

.channel-directory__name {
	min-width: 0;
	width: 100%;
	overflow: hidden;
	color: var(--yt-text);
	font-weight: 700;
	line-height: 1.35;
	text-align: left;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.channel-directory__channel:hover .channel-directory__name,
.channel-directory__channel:focus-visible .channel-directory__name {
	color: var(--yt-link);
}

@media (max-width: 1023px) {
	.channel-directory__table-wrap--channels {
		overflow-x: visible;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
	}

	.channel-directory__table--channels {
		min-width: 0;
		display: block;
		font-size: 14px;
	}

	.channel-directory__table--channels thead {
		display: block;
		margin-bottom: 12px;
	}

	.channel-directory__table--channels thead tr {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
	}

	.channel-directory__table--channels thead th {
		position: static;
		flex: 0 0 auto;
		padding: 0;
		border: 0;
		background: transparent;
		white-space: nowrap;
	}

	.channel-directory__table--channels .channel-directory__sort-button {
		justify-content: center;
		gap: 4px;
		padding: 8px 12px;
		border: 1px solid var(--yt-border);
		border-radius: 999px;
		background: var(--yt-surface);
		font-size: 12px;
		font-weight: 600;
		white-space: nowrap;
	}

	.channel-directory__table--channels thead th[aria-sort="ascending"] .channel-directory__sort-button,
	.channel-directory__table--channels thead th[aria-sort="descending"] .channel-directory__sort-button {
		border-color: rgba(11, 124, 255, 0.35);
		background: var(--yt-surface-soft);
		color: var(--yt-link);
	}

	.channel-directory__table--channels tbody {
		display: grid;
		gap: 12px;
	}

	.channel-directory__table--channels tbody tr {
		display: grid;
		grid-template-columns: 40px minmax(0, 1fr);
		border: 1px solid var(--yt-border);
		border-radius: var(--yt-radius);
		background: var(--yt-surface);
		box-shadow: 0 8px 20px rgba(37, 99, 235, 0.06);
		overflow: hidden;
	}

	.channel-directory__table--channels tbody tr:hover {
		background: var(--yt-surface);
	}

	.channel-directory__table--channels tbody th,
	.channel-directory__table--channels tbody td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 10px 14px;
		border-bottom: 1px solid var(--yt-border);
		text-align: right;
		white-space: normal;
	}

	.channel-directory__table--channels .channel-directory__rank-cell {
		grid-column: 1;
		grid-row: 1;
		align-self: start;
		justify-content: center;
		padding: 16px 0 0 10px;
		border: 0;
		font-size: 16px;
		text-align: center;
	}

	.channel-directory__table--channels .channel-directory__rank-cell::before {
		content: none;
		display: none;
	}

	.channel-directory__table--channels tbody th.channel-directory__channel-cell {
		grid-column: 2;
		grid-row: 1;
		display: block;
		min-width: 0;
		padding: 14px 14px 14px 0;
		border-bottom: 1px solid var(--yt-border);
		text-align: left;
	}

	.channel-directory__table--channels tbody td:not(.channel-directory__rank-cell) {
		grid-column: 1 / -1;
	}

	.channel-directory__table--channels .channel-directory__channel {
		display: grid;
		grid-template-columns: 48px minmax(0, 1fr);
		gap: 12px;
		width: 100%;
	}

	.channel-directory__table--channels .channel-directory__avatar {
		width: 48px;
		height: 48px;
	}

	.channel-directory__table--channels .channel-directory__name {
		white-space: normal;
		overflow: visible;
		text-overflow: unset;
		font-size: 15px;
		line-height: 1.45;
	}

	.channel-directory__table--channels tbody td::before {
		content: attr(data-label);
		flex: 1 1 auto;
		min-width: 0;
		color: var(--yt-text-muted);
		font-size: 12px;
		font-weight: 600;
		text-align: left;
	}

	.channel-directory__table--channels tbody td {
		font-size: 14px;
		font-weight: 700;
		font-variant-numeric: tabular-nums;
	}

	.channel-directory__table--channels tbody tr:last-child th,
	.channel-directory__table--channels tbody tr:last-child td {
		border-bottom: 1px solid var(--yt-border);
	}

	.channel-directory__table--channels tbody tr td:last-child {
		border-bottom: 0;
	}
}

.channel-directory__table--channels th:nth-child(1),
.channel-directory__rank-cell,
.video-ranking__table th:nth-child(1),
.video-ranking__rank-cell {
	text-align: center;
}

.channel-directory__rank-cell,
.video-ranking__rank-cell {
	width: 44px;
	min-width: 44px;
	max-width: 44px;
	padding-left: 4px;
	padding-right: 4px;
	font-weight: 700;
	color: var(--yt-text-muted);
	font-variant-numeric: tabular-nums;
}

.channel-directory__table--channels tbody tr:nth-child(-n+3) .channel-directory__rank-cell,
.video-ranking__table tbody tr:nth-child(-n+3) .video-ranking__rank-cell {
	color: var(--yt-link);
}

.video-ranking__video-cell {
	min-width: 280px;
	text-align: left;
}

.video-ranking__video {
	display: inline-grid;
	grid-template-columns: 72px minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	max-width: 100%;
	color: inherit;
	text-decoration: none;
}

.video-ranking__video:hover,
.video-ranking__video:focus-visible {
	color: var(--yt-link);
	text-decoration: none;
}

.video-ranking__thumb {
	width: 72px;
	height: 40px;
	border-radius: 6px;
	object-fit: cover;
	background: var(--yt-surface-soft);
}

.video-ranking__thumb--placeholder {
	display: inline-block;
	background: linear-gradient(135deg, #dbeafe, #eff6ff);
}

.video-ranking__title {
	min-width: 0;
	overflow: hidden;
	color: var(--yt-text);
	font-weight: 700;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.video-ranking__video:hover .video-ranking__title,
.video-ranking__video:focus-visible .video-ranking__title {
	color: var(--yt-link);
}

.video-ranking__channel-cell {
	min-width: 140px;
	max-width: 200px;
	text-align: left;
}

.video-ranking__channel {
	display: inline-block;
	max-width: 100%;
	overflow: hidden;
	color: var(--yt-text);
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.video-ranking__channel:hover,
.video-ranking__channel:focus-visible {
	color: var(--yt-link);
}

@media (min-width: 1024px) {
	.video-ranking__table th:nth-child(1),
	.video-ranking__table .video-ranking__rank-cell {
		width: 44px;
		min-width: 44px;
		max-width: 44px;
	}

	.video-ranking__table th:nth-child(2),
	.video-ranking__table .video-ranking__video-cell {
		width: 36%;
		min-width: 280px;
		max-width: none;
	}

	.video-ranking__table th:nth-child(3),
	.video-ranking__table .video-ranking__channel-cell {
		width: 18%;
		min-width: 120px;
	}

}

@media (max-width: 1023px) {
	.channel-directory__table-wrap--videos {
		overflow-x: visible;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
	}

	.channel-directory__table--videos {
		min-width: 0;
		display: block;
		font-size: 14px;
	}

	.channel-directory__table--videos thead {
		display: block;
		margin-bottom: 12px;
	}

	.channel-directory__table--videos thead tr {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
	}

	.channel-directory__table--videos thead th {
		position: static;
		flex: 0 0 auto;
		padding: 0;
		border: 0;
		background: transparent;
		white-space: nowrap;
	}

	.channel-directory__table--videos .channel-directory__sort-button {
		justify-content: center;
		gap: 4px;
		padding: 8px 12px;
		border: 1px solid var(--yt-border);
		border-radius: 999px;
		background: var(--yt-surface);
		font-size: 12px;
		font-weight: 600;
		white-space: nowrap;
	}

	.channel-directory__table--videos thead th[aria-sort="ascending"] .channel-directory__sort-button,
	.channel-directory__table--videos thead th[aria-sort="descending"] .channel-directory__sort-button {
		border-color: rgba(11, 124, 255, 0.35);
		background: var(--yt-surface-soft);
		color: var(--yt-link);
	}

	.channel-directory__table--videos tbody {
		display: grid;
		gap: 12px;
	}

	.channel-directory__table--videos tbody tr {
		display: grid;
		grid-template-columns: 40px minmax(0, 1fr);
		border: 1px solid var(--yt-border);
		border-radius: var(--yt-radius);
		background: var(--yt-surface);
		box-shadow: 0 8px 20px rgba(37, 99, 235, 0.06);
		overflow: hidden;
	}

	.channel-directory__table--videos tbody tr:hover {
		background: var(--yt-surface);
	}

	.channel-directory__table--videos .video-ranking__rank-cell {
		grid-column: 1;
		grid-row: 1;
		align-self: start;
		padding: 16px 0 0 10px;
		border: 0;
		font-size: 16px;
		text-align: center;
	}

	.channel-directory__table--videos .video-ranking__video-cell {
		grid-column: 2;
		grid-row: 1;
		display: block;
		min-width: 0;
		padding: 14px 14px 14px 0;
		border-bottom: 1px solid var(--yt-border);
		text-align: left;
	}

	.channel-directory__table--videos .video-ranking__video {
		display: grid;
		grid-template-columns: 80px minmax(0, 1fr);
		gap: 12px;
		width: 100%;
	}

	.channel-directory__table--videos .video-ranking__thumb {
		width: 80px;
		height: 45px;
	}

	.channel-directory__table--videos .video-ranking__title {
		white-space: normal;
		overflow: visible;
		text-overflow: unset;
		font-size: 15px;
		line-height: 1.45;
	}

	.channel-directory__table--videos .video-ranking__channel-cell,
	.channel-directory__table--videos tbody td:nth-child(4),
	.channel-directory__table--videos tbody td:nth-child(5) {
		grid-column: 1 / -1;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		min-width: 0;
		max-width: none;
		padding: 10px 14px;
		border-bottom: 1px solid var(--yt-border);
		text-align: right;
		white-space: normal;
	}

	.channel-directory__table--videos .video-ranking__channel {
		white-space: normal;
		overflow: visible;
		text-overflow: unset;
		text-align: right;
	}

	.channel-directory__table--videos tbody td::before {
		content: attr(data-label);
		flex: 1 1 auto;
		min-width: 0;
		color: var(--yt-text-muted);
		font-size: 12px;
		font-weight: 600;
		text-align: left;
	}

	.channel-directory__table--videos tbody td:nth-child(4),
	.channel-directory__table--videos tbody td:nth-child(5) {
		font-size: 14px;
		font-weight: 700;
		font-variant-numeric: tabular-nums;
	}

	.channel-directory__table--videos tbody tr:last-child th,
	.channel-directory__table--videos tbody tr:last-child td {
		border-bottom: 1px solid var(--yt-border);
	}

	.channel-directory__table--videos tbody tr td:last-child {
		border-bottom: 0;
	}
}

.channel-analytics {
	margin: 0 0 24px;
	padding: 16px;
	border-radius: var(--yt-radius);
	background: var(--yt-surface);
}

.channel-analytics__header {
	margin-bottom: 14px;
}

.channel-analytics__header h2,
.channel-analytics__panel h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
}

.channel-analytics__header p {
	margin: 6px 0 0;
	color: var(--yt-text-muted);
	font-size: 13px;
}

.channel-analytics__cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 10px;
	margin-bottom: 16px;
}

.channel-analytics__card {
	padding: 12px;
	border-radius: 10px;
	background: var(--yt-surface-soft);
}

.channel-analytics__card-label {
	display: block;
	margin-bottom: 4px;
	color: var(--yt-text-muted);
	font-size: 12px;
}

.channel-analytics__card strong {
	display: block;
	font-size: 18px;
	line-height: 1.2;
}

.channel-analytics__panels {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 12px;
}

.channel-analytics__panels--charts {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-bottom: 12px;
}

.channel-analytics__panel {
	padding: 14px;
	border-radius: 10px;
	background: var(--yt-surface);
}

.channel-analytics__panel--wide {
	margin-bottom: 12px;
}

.channel-analytics__bars {
	display: grid;
	gap: 10px;
	margin-top: 12px;
}

.channel-analytics__chart {
	position: relative;
	height: 240px;
	margin-top: 12px;
}

.channel-analytics__chart--wide {
	height: 300px;
}

.channel-analytics__chart canvas {
	width: 100% !important;
	height: 100% !important;
}

.channel-analytics__bar-row {
	display: grid;
	grid-template-columns: minmax(88px, 1.4fr) minmax(80px, 2fr) auto;
	align-items: center;
	gap: 8px;
	font-size: 12px;
}

.channel-analytics__bar-label {
	min-width: 0;
	overflow: hidden;
	color: var(--yt-text);
	text-overflow: ellipsis;
	white-space: nowrap;
}

a.channel-analytics__bar-label:hover {
	color: var(--yt-link);
	text-decoration: none;
}

.channel-analytics__bar-track {
	height: 8px;
	border-radius: 999px;
	overflow: hidden;
	background: #dbeafe;
}

.channel-analytics__bar-fill {
	display: block;
	width: var(--bar-value, 0%);
	height: 100%;
	border-radius: inherit;
	background: var(--yt-accent);
}

.channel-analytics__bar-value {
	color: var(--yt-text-muted);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.channel-analytics__video-list {
	display: grid;
	gap: 10px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.channel-analytics__video-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.channel-analytics__video-item {
	padding: 0;
}

.channel-analytics__video-link {
	display: grid;
	grid-template-columns: 28px 72px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	color: inherit;
}

.channel-analytics__video-link:hover {
	text-decoration: none;
}

.channel-analytics__video-thumb {
	width: 72px;
	aspect-ratio: 16 / 9;
	border-radius: 6px;
	object-fit: cover;
	background: var(--yt-surface-soft);
}

.channel-analytics__video-thumb--placeholder {
	display: block;
	background: linear-gradient(135deg, #dbeafe, #f8fbff);
}

.channel-analytics__video-body {
	min-width: 0;
}

.channel-analytics__video-title {
	display: block;
	color: var(--yt-text);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.channel-analytics__video-title:hover {
	color: var(--yt-link);
	text-decoration: none;
}

.channel-analytics__video-meta {
	display: block;
	margin-top: 3px;
	color: var(--yt-text-muted);
	font-size: 12px;
}

@media (max-width: 1100px) {
	.channel-analytics__panels--charts {
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	}
}

@media (max-width: 760px) {
	.channel-analytics__video-columns {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Static page */
.page-featured-image {
	margin: 0 0 16px;
	border-radius: var(--yt-radius);
	overflow: hidden;
	background: var(--yt-surface-soft);
}

.page-featured-image__img {
	display: block;
	width: 100%;
	height: auto;
}

/* Single post */
.single-layout {
	grid-column: 2;
	max-width: 960px;
	margin: 0 auto;
	padding: 0;
	width: 100%;
	min-width: 0;
}

.single-video__player {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: var(--yt-radius);
	overflow: hidden;
	background: #000;
	margin-bottom: 16px;
}

.single-video__player-link {
	display: block;
	color: #fff;
}

.single-video__player-link:hover {
	text-decoration: none;
}

.single-video__thumbnail,
.single-video__placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.single-video__thumbnail {
	object-fit: cover;
	transition: transform 0.2s ease, filter 0.2s ease;
}

.single-video__player-link:hover .single-video__thumbnail,
.single-video__player-link:focus-visible .single-video__thumbnail {
	transform: scale(1.02);
	filter: brightness(0.72);
}

.single-video__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--yt-surface);
	color: var(--yt-text-muted);
}

.single-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 52px;
	border-radius: 14px;
	background: rgba(11, 124, 255, 0.92);
	transform: translate(-50%, -50%);
	box-shadow: 0 8px 24px rgba(11, 124, 255, 0.28);
}

.single-video__play::before {
	content: "";
	margin-left: 4px;
	border-style: solid;
	border-width: 12px 0 12px 20px;
	border-color: transparent transparent transparent #fff;
}

.single-video__open-label {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 2;
	padding: 6px 10px;
	border-radius: 999px;
	background: var(--yt-overlay-bg);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	backdrop-filter: blur(4px);
}

.single-video__external-link {
	color: var(--yt-link);
	font-weight: 600;
}

.single-video__title {
	margin: 0 0 12px;
	font-size: clamp(18px, 4vw, 22px);
	font-weight: 600;
	line-height: 1.3;
}

.single-video__meta-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 16px;
	margin: 0 0 12px;
}

.single-video__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--yt-text-muted);
	font-size: 13px;
	flex: 1 1 auto;
	min-width: 0;
}

.single-video__share {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	margin-left: auto;
	flex: 0 0 auto;
}

.single-video__share-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 6px 12px;
	border: 1px solid var(--yt-border);
	border-radius: 999px;
	background: var(--yt-surface);
	color: var(--yt-text);
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.single-video__share-label {
	display: inline-block;
}

.single-video__share-button--x {
	color: #0f1419;
	border-color: #cfd9de;
}

.single-video__share-button--facebook {
	color: #1877f2;
	border-color: #b7d4fb;
}

.single-video__share-button--line {
	color: #06c755;
	border-color: #9de3b8;
	background: #f4fdf7;
}

.single-video__share-button--copy {
	color: var(--yt-text-muted);
}

a.single-video__share-button:hover,
a.single-video__share-button:focus-visible,
.single-video__share-button--copy:hover,
.single-video__share-button--copy:focus-visible {
	text-decoration: none;
}

a.single-video__share-button--x:hover,
a.single-video__share-button--x:focus-visible {
	color: #0f1419;
	border-color: #0f1419;
	background: #f7f9fa;
}

a.single-video__share-button--facebook:hover,
a.single-video__share-button--facebook:focus-visible {
	color: #1877f2;
	border-color: #1877f2;
	background: #f0f6ff;
}

a.single-video__share-button--line:hover,
a.single-video__share-button--line:focus-visible {
	color: #06c755;
	border-color: #06c755;
	background: #e8faf0;
}

.single-video__share-button--copy:hover,
.single-video__share-button--copy:focus-visible,
.single-video__share-button--copy.is-copied {
	color: var(--yt-link);
	border-color: var(--yt-link);
	background: var(--yt-surface-hover);
}

.single-video__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.single-video__meta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	color: var(--yt-text-muted);
	flex-shrink: 0;
}

.single-video__meta-icon svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.single-video__meta-item--views .single-video__meta-icon svg circle {
	fill: currentColor;
	stroke: none;
}

.single-video__channel-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	margin-bottom: 12px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--yt-surface);
	font-weight: 600;
}

.single-video__channel-badge--with-avatar {
	padding-left: 6px;
}

.single-video__channel-avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background: var(--yt-surface-soft);
}

a.single-video__channel-badge:hover {
	background: var(--yt-surface-hover);
	text-decoration: none;
}

.single-video__summary {
	margin: 0 0 18px;
	padding: 16px;
	border-radius: var(--yt-radius);
	background: var(--yt-surface);
	color: var(--yt-text);
	font-size: 15px;
	line-height: 1.7;
}

.single-video__summary h2 {
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 700;
}

.single-video__summary p {
	margin: 0 0 0.8em;
}

.single-video__summary p:last-child {
	margin-bottom: 0;
}

.single-video__content {
	color: var(--yt-text);
	font-size: 15px;
	line-height: 1.7;
}

.single-video__content p {
	margin: 0 0 1em;
}

.single-video__description {
	margin-bottom: 18px;
}

.single-video__description-content {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
}

.single-video__description.is-expanded .single-video__description-content {
	display: block;
}

.single-video__description-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 2px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--yt-link);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.single-video__description-toggle[hidden] {
	display: none;
}

.single-video__description-toggle-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--yt-surface-hover);
	line-height: 1;
}

.single-video__description.is-expanded .single-video__description-toggle-icon {
	transform: rotate(45deg);
}

.single-video__tags {
	margin: 0 0 8px;
}

.single-video__post-nav {
	margin-top: 24px;
	margin-bottom: 0;
}

.single-video__related {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid var(--yt-border);
}

.single-video__related-title {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
}

.single-video__related-grid {
	padding: 0;
}

.single-video__post-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 24px;
	border-top: 1px solid var(--yt-border);
}

.single-video__post-nav-item {
	flex: 1 1 0;
	min-width: 0;
}

.single-video__post-nav-item--next {
	text-align: right;
}

.single-video__post-nav-link {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 14px;
	border: 1px solid var(--yt-border);
	border-radius: 10px;
	color: var(--yt-link);
	font-weight: 600;
}

.single-video__post-nav-link:hover,
.single-video__post-nav-link:focus-visible {
	border-color: var(--yt-link);
	background: var(--yt-surface-soft);
	text-decoration: none;
}

.no-results {
	padding: 48px 16px;
	text-align: center;
	color: var(--yt-text-muted);
}

.site-footer {
	margin-top: 24px;
	padding: 24px 16px;
	border-top: 1px solid var(--yt-border);
	text-align: center;
	font-size: 12px;
	color: var(--yt-text-muted);
}

@media (min-width: 1024px) {
	.site-sidebar--left {
		visibility: visible;
		transform: none;
	}

	.site-header__tagline {
		display: block;
		flex: 1 1 auto;
		min-width: 0;
		padding: 0 8px 0 4px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		color: var(--yt-text-muted);
		font-size: 13px;
		font-weight: 500;
		line-height: 1.35;
	}
}

@media (max-width: 1023px) {
	.site-header__actions {
		gap: 8px;
		flex: 0 0 auto;
		min-width: 0;
	}

	.site-header__search--desktop {
		display: none;
	}

	.site-header__search--mobile {
		display: flex;
		width: 100%;
	}

	.site-header__search--mobile button {
		width: 52px;
		flex-shrink: 0;
	}

	.site-header__menu-toggle {
		display: inline-flex;
		flex-shrink: 0;
	}

	.site-layout {
		grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
	}

	.site-sidebar--left {
		position: fixed;
		top: var(--yt-header-h);
		bottom: 0;
		left: 0;
		z-index: 120;
		grid-column: auto;
		box-sizing: border-box;
		width: min(88vw, 320px);
		height: auto;
		min-height: calc(100vh - var(--yt-header-h));
		min-height: calc(100dvh - var(--yt-header-h));
		max-height: none;
		padding: 14px;
		border-right: 1px solid var(--yt-border);
		border-radius: 0;
		background: var(--yt-bg);
		box-shadow: 16px 0 32px rgba(37, 99, 235, 0.16);
		overflow-y: auto;
		transform: translateX(-100%);
		transition: transform 0.2s ease;
		visibility: hidden;
	}

	.site-main,
	.single-layout {
		grid-column: 1;
	}

	.site-sidebar--right {
		grid-column: 2;
	}

	.site-sidebar-backdrop {
		position: fixed;
		inset: var(--yt-header-h) 0 0;
		z-index: 110;
		background: rgba(15, 23, 42, 0.36);
	}

	.site-sidebar-backdrop[hidden] {
		display: none;
	}

	body.is-sidebar-open {
		overflow: hidden;
	}

	body.is-sidebar-open .site-sidebar--left {
		transform: translateX(0);
		visibility: visible;
	}
}

@media (max-width: 640px) {
	.site-header {
		gap: 10px;
	}

	.site-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		padding: 8px;
	}

	.site-main,
	.single-layout,
	.site-sidebar--right {
		grid-column: 1;
	}

	.site-sidebar--right {
		position: static;
	}

	.video-grid {
		gap: 8px;
	}

	.video-card__title {
		font-size: 13px;
	}

	.video-card__channel {
		font-size: 11px;
		top: 6px;
		left: 6px;
	}

	.channel-analytics {
		padding: 12px;
	}

	.channel-analytics__bar-row {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.channel-analytics__bar-track {
		grid-column: 1 / -1;
	}

}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}
