/* YouTube page: dark, YouTube-style. */
.page-youtube .site-main { padding-block: 0; }
.page-youtube { background: #0f0f0f; }
.page-youtube .yt-channel, .page-youtube .yt-watch, .page-youtube .yt-library { color: #f1f1f1; }

.yt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; padding: 0.7rem 1.4rem; font-family: var(--oao-font); font-size: 0.9375rem; font-weight: 600; text-decoration: none; border: 0; border-radius: 999px; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.yt-btn--sub { color: #fff; background: #f00; }
.yt-btn--sub:hover { background: #cc0000; }
.yt-btn--ghost { color: #f1f1f1; background: rgba(255,255,255,0.1); }
.yt-btn--ghost:hover { background: rgba(255,255,255,0.2); }
.yt-btn--sm { padding: 0.55rem 1.1rem; font-size: 0.875rem; }
.yt-btn--lg { padding: 1rem 2rem; font-size: 1rem; }
.yt-btn:focus-visible, .yt-chip:focus-visible, .yt-card__link:focus-visible, .yt-next__item:focus-visible, .yt-player__poster:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.yt-btn .yt-ico { width: 24px; height: auto; background: #fff; border-radius: 6px; }

/* Channel header */
.yt-banner { position: relative; height: clamp(120px, 20vw, 240px); overflow: hidden; background: radial-gradient(600px 240px at 85% 30%, rgba(255,0,0,0.35), transparent 70%), radial-gradient(700px 300px at 10% 80%, rgba(30,70,160,0.55), transparent 70%), linear-gradient(120deg, #000a1f, #061a45); }
.yt-banner__word { position: absolute; right: 4%; bottom: -12%; font-size: clamp(6rem, 22vw, 17rem); font-weight: 800; font-style: italic; letter-spacing: -0.04em; line-height: 1; color: rgba(255,255,255,0.07); }
.yt-channel__row { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); padding-block: clamp(2rem, 4vw, 3rem) 2rem; }
.yt-avatar { flex: none; display: grid; place-items: center; width: clamp(80px, 12vw, 128px); aspect-ratio: 1; border-radius: 50%; background: #000f2e; border: 4px solid #0f0f0f; overflow: hidden; }
.yt-avatar img { width: 100%; height: 100%; object-fit: cover; }
.yt-channel__name { margin: 0; font-size: clamp(1.6rem, 3.6vw, 2.5rem); font-weight: 700; line-height: 1.15; color: #fff; }
.yt-channel__meta { margin: 0.35rem 0 0; font-size: 0.9375rem; color: #aaa; }
.yt-channel__about { max-width: 40rem; margin: 0.6rem 0 1rem; font-size: 0.9375rem; line-height: 1.6; color: #aaa; }
.yt-channel__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* Watch layout */
.yt-watch { padding: clamp(1rem, 2.5vw, 1.75rem) 0 clamp(2rem, 4vw, 3rem); border-top: 1px solid rgba(255,255,255,0.1); }
.yt-watch__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: clamp(1.25rem, 2.5vw, 1.75rem); align-items: start; padding-top: clamp(1.25rem, 2.5vw, 1.75rem); }
.yt-player { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 20px 50px -20px rgba(0,0,0,0.8); }
.yt-player iframe, .yt-player__poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-player__poster { display: block; padding: 0; background: #000; cursor: pointer; }
.yt-player__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s, opacity 0.3s; }
.yt-player__poster:hover img { transform: scale(1.03); opacity: 0.85; }
.yt-player__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; filter: drop-shadow(0 6px 16px rgba(0,0,0,0.5)); transition: transform 0.2s; }
.yt-player__play svg { width: clamp(56px, 8vw, 84px); height: auto; }
.yt-player__poster:hover .yt-player__play { transform: translate(-50%, -50%) scale(1.1); }
.yt-watch__title { margin: 1rem 0 0.75rem; font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 700; line-height: 1.35; color: #fff; }
.yt-watch__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.yt-watch__views { margin: 0 auto 0 0; font-size: 0.9375rem; color: #aaa; }

.yt-next__title { margin: 0 0 0.9rem; font-size: 1rem; font-weight: 600; color: #fff; }
.yt-next__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.yt-next__item { display: flex; gap: 0.75rem; text-decoration: none; color: inherit; border-radius: 10px; }
.yt-next__item:hover .yt-next__name { color: #fff; }
.yt-next__item .yt-thumb { flex: none; width: 10.5rem; }
.yt-next__text { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.yt-next__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.9rem; font-weight: 600; line-height: 1.35; color: #f1f1f1; }
.yt-next__meta { font-size: 0.78rem; line-height: 1.4; color: #aaa; }

/* Thumbs */
.yt-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #272727; }
.yt-thumb--sm { border-radius: 8px; }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.yt-thumb__time { position: absolute; right: 6px; bottom: 6px; padding: 2px 6px; font-size: 0.75rem; font-weight: 600; line-height: 1.3; color: #fff; background: rgba(0,0,0,0.8); border-radius: 4px; }
.yt-thumb__play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,0.35); opacity: 0; transition: opacity 0.25s; }
.yt-thumb__play svg { padding: 0.55rem 0.55rem 0.55rem 0.7rem; width: 3.4rem; height: 3.4rem; background: #f00; border-radius: 50%; }

/* Library */
.yt-library { padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem); border-top: 1px solid rgba(255,255,255,0.1); }
.yt-library__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.yt-library__title { margin: 0; font-size: 1.4rem; font-weight: 700; color: #fff; }
.yt-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.yt-chips[hidden] { display: none; }
.yt-chip { padding: 0.5rem 1rem; font-family: var(--oao-font); font-size: 0.875rem; font-weight: 500; color: #f1f1f1; background: rgba(255,255,255,0.1); border: 0; border-radius: 8px; cursor: pointer; transition: background 0.2s; }
.yt-chip:hover { background: rgba(255,255,255,0.2); }
.yt-chip.is-active { color: #0f0f0f; background: #f1f1f1; }
.yt-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem 1rem; }
.yt-card[hidden] { display: none; }
.yt-card__link { display: flex; flex-direction: column; gap: 0.75rem; text-decoration: none; color: inherit; border-radius: 12px; }
.yt-card__link:hover .yt-thumb img { transform: scale(1.05); }
.yt-card__link:hover .yt-thumb__play, .yt-card__link:focus-visible .yt-thumb__play { opacity: 1; }
.yt-card__body { display: flex; flex-direction: column; gap: 0.25rem; padding-inline: 0.15rem; }
.yt-card__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.97rem; font-weight: 600; line-height: 1.4; color: #f1f1f1; }
.yt-card__meta { font-size: 0.8125rem; color: #aaa; }
.yt-more { margin: 2.5rem 0 0; text-align: center; }
.yt-more[hidden] { display: none; }

/* Subscribe band */
.yt-cta { padding: clamp(2.5rem, 5vw, 4rem) 0; background: linear-gradient(90deg, #8a0000, #c40000 55%, #8a0000); color: #fff; }
.yt-cta__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; }
.yt-cta__copy { flex: 1 1 20rem; }
.yt-cta__title { margin: 0 0 0.4rem; font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; color: #fff; }
.yt-cta__copy p { margin: 0; font-size: 1.05rem; line-height: 1.6; color: rgba(255,255,255,0.9); }
.yt-cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.yt-cta .yt-btn--sub { background: #fff; color: #c40000; }
.yt-cta .yt-btn--sub:hover { background: #f1f1f1; }
.yt-cta .yt-btn--ghost { background: rgba(0,0,0,0.3); color: #fff; }
.yt-cta .yt-btn--ghost:hover { background: rgba(0,0,0,0.45); }
.yt-cta__logo { display: none; flex: none; }
.yt-cta__logo .yt-ico { background: #fff; border-radius: 16px; }

@media (min-width: 900px) { .yt-cta__logo { display: block; } }
@media (max-width: 1100px) { .yt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
	.yt-watch__grid { grid-template-columns: 1fr; }
	.yt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.yt-channel__row { flex-direction: column; align-items: flex-start; }
	.yt-grid { grid-template-columns: 1fr; gap: 1.5rem; }
	.yt-thumb { border-radius: 0; }
	.yt-next__item .yt-thumb { width: 9rem; border-radius: 8px; }
	.yt-watch__views { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .yt-thumb img, .yt-player__poster img, .yt-player__play { transition: none; } }

.yt-card__meta:empty, .yt-watch__views:empty { display: none; }
