/* Aumaujaya YouTube — front-end styles */

.aumyt-subscribe {
	display: block;
	margin: 0.75rem 0;
}

.aumyt-subscribe.aumyt-align-left   { text-align: left; }
.aumyt-subscribe.aumyt-align-center { text-align: center; }
.aumyt-subscribe.aumyt-align-right  { text-align: right; }

/* Native subscribe button */
.aumyt-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.7rem 1.25rem;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.01em;
	text-decoration: none;
	border-radius: 8px;
	transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.aumyt-btn__icon {
	display: inline-flex;
	color: #ff0033;
}

.aumyt-btn--light {
	background: #ffffff;
	color: #2a2620;
	border: 1px solid #e6ddcd;
}

.aumyt-btn--light:hover,
.aumyt-btn--light:focus-visible {
	background: #fffdf8;
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.aumyt-btn--light .aumyt-btn__icon { color: #ff0033; }

.aumyt-btn--dark {
	background: #1f1b16;
	color: #fffdf8;
	border: 1px solid #322c24;
}

.aumyt-btn--dark:hover,
.aumyt-btn--dark:focus-visible {
	background: #2a241d;
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.aumyt-btn--dark .aumyt-btn__icon { color: #ff4d6a; }

.aumyt-btn:focus-visible {
	outline: 3px solid #d99c2b;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.aumyt-btn { transition: none; }
	.aumyt-btn:hover { transform: none; }
}

.aumyt-notice {
	padding: 0.75rem 1rem;
	background: #fff8ec;
	border-left: 3px solid #d99c2b;
	color: #5a4a29;
	font-size: 0.9rem;
}

/* Video grid */
.aumyt-videos {
	--aumyt-accent: #d99c2b;
	--aumyt-ink: #2a2620;
	--aumyt-muted: #6b6357;
	--aumyt-surface: #fffdf8;
	--aumyt-line: #ece4d6;
	margin: 1.5rem 0;
}

.aumyt-videos__heading {
	font-size: 1.35rem;
	letter-spacing: 0.01em;
	color: var(--aumyt-ink);
	margin: 0 0 1rem;
}

.aumyt-grid {
	display: grid;
	gap: 1.25rem;
}

.aumyt-grid--cols-1 { grid-template-columns: 1fr; }
.aumyt-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.aumyt-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.aumyt-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
	.aumyt-grid--cols-3,
	.aumyt-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
	.aumyt-grid { grid-template-columns: 1fr !important; }
}

.aumyt-card {
	display: flex;
	flex-direction: column;
	background: var(--aumyt-surface);
	border: 1px solid var(--aumyt-line);
	border-radius: 10px;
	overflow: hidden;
}

.aumyt-videos .aumyt-card .aumyt-card__thumb {
	position: relative;
	display: block !important;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	background: #000;
	cursor: pointer;
	line-height: 0;
	overflow: hidden;
	font-size: 0;
	text-decoration: none !important;
	box-shadow: none !important;
}

/* High specificity + !important so other video/gallery plugins
   (e.g. All-in-One Video Gallery) can't override these and re-crop.
   Height is auto so the image keeps its natural 16:9 ratio and is
   never clipped — a fixed height was causing the crop. */
.aumyt-videos .aumyt-card .aumyt-card__thumb img {
	width: 100% !important;
	height: auto !important;
	max-width: 100% !important;
	aspect-ratio: 16 / 9 !important;
	object-fit: cover !important;
	object-position: center !important;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #000;
	transition: transform 0.35s ease, opacity 0.35s ease;
}

.aumyt-videos .aumyt-card .aumyt-card__thumb:hover img,
.aumyt-videos .aumyt-card .aumyt-card__thumb:focus-visible img {
	transform: scale(1.04);
	opacity: 0.92;
}

/* Signature play affordance: a calm saffron disc, not YouTube red */
.aumyt-card__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 54px;
	height: 54px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: var(--aumyt-accent);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.aumyt-card__play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 10px 0 10px 16px;
	border-color: transparent transparent transparent #fffdf8;
}

.aumyt-card__thumb:focus-visible {
	outline: 3px solid var(--aumyt-accent);
	outline-offset: 2px;
}

.aumyt-card__title {
	display: block;
	padding: 0.75rem 0.9rem 0.95rem;
	font-size: 0.98rem;
	line-height: 1.35;
	color: var(--aumyt-ink);
	text-decoration: none;
	font-weight: 600;
}

.aumyt-card__title:hover {
	color: var(--aumyt-accent);
}

/* Inline player replaces the thumb once clicked */
.aumyt-card__player {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

.aumyt-card__player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.aumyt-card__thumb img { transition: none; }
}

/* ---------- Single song page (/lyrics/...) ---------- */
.aumyt-song {
	max-width: 1180px;
	margin: 2rem auto;
	padding: 0 1rem;
}

/* Two columns on tablet/desktop: main content + related rail.
   Collapses to a single stacked column on narrow screens. */
.aumyt-song__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 1.75rem;
	align-items: start;
}

@media (max-width: 900px) {
	.aumyt-song__layout {
		grid-template-columns: 1fr;
	}
}

.aumyt-song__title {
	font-size: 1.6rem;
	line-height: 1.3;
	color: #2a2620;
	margin: 0 0 1rem;
}

.aumyt-song__ratio {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 10px;
	overflow: hidden;
}

.aumyt-song__ratio iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.aumyt-song__share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin: 1rem 0 1.5rem;
}

.aumyt-song__share-label {
	font-weight: 600;
	color: #6b6357;
	margin-right: 0.25rem;
}

.aumyt-share {
	display: inline-block;
	padding: 0.45rem 0.9rem;
	font-size: 0.9rem;
	font-weight: 600;
	border-radius: 6px;
	text-decoration: none;
	color: #fff;
	border: 0;
	cursor: pointer;
	line-height: 1.2;
}

.aumyt-share--wa   { background: #25d366; }
.aumyt-share--fb   { background: #1877f2; }
.aumyt-share--x    { background: #111; }
.aumyt-share--tg   { background: #229ed9; }
.aumyt-share--copy { background: #d99c2b; }

.aumyt-share:hover { opacity: 0.92; }

.aumyt-song__lyrics {
	background: #fffdf8;
	border: 1px solid #ece4d6;
	border-radius: 10px;
	padding: 1.25rem 1.4rem;
	margin: 1.5rem 0;
}

.aumyt-song__lyrics-h {
	font-size: 1.2rem;
	color: #2a2620;
	margin: 0 0 0.75rem;
}

.aumyt-song__lyrics-body {
	font-size: 1.05rem;
	line-height: 1.8;
	color: #2a2620;
	word-wrap: break-word;
}

.aumyt-song__sub {
	text-align: left;
	margin: 0 0 1.5rem;
}

.aumyt-song__related-h {
	font-size: 1.25rem;
	color: #2a2620;
	margin: 0 0 1rem;
}

/* On mobile the rail sits below the main column with a divider. */
@media (max-width: 900px) {
	.aumyt-song__aside {
		border-top: 1px solid #ece4d6;
		padding-top: 1.5rem;
		margin-top: 0.5rem;
	}
}

/* Vertical related-videos rail (YouTube-style: thumb left, title right). */
.aumyt-rail {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.aumyt-rail__item {
	display: flex;
	gap: 0.7rem;
	text-decoration: none;
	align-items: flex-start;
}

.aumyt-rail__thumb {
	position: relative;
	flex: 0 0 168px;
	width: 168px;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	overflow: hidden;
	background: #000;
	display: block;
}

.aumyt-rail__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.aumyt-rail__thumb .aumyt-card__play {
	width: 34px;
	height: 34px;
}

.aumyt-rail__title {
	flex: 1 1 auto;
	font-size: 0.92rem;
	line-height: 1.35;
	color: #2a2620;
	font-weight: 600;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.aumyt-rail__item:hover .aumyt-rail__title {
	color: #b8791f;
}

/* On very narrow phones, let rail thumbs shrink a touch. */
@media (max-width: 400px) {
	.aumyt-rail__thumb { flex-basis: 140px; width: 140px; }
}

@media (max-width: 600px) {
	.aumyt-song__title { font-size: 1.3rem; }
	.aumyt-song__lyrics-body { font-size: 1rem; }
}

/* ---------- Playlists index (compact tiles) ---------- */
.aumyt-plwrap, .aumyt-plsingle {
	max-width: 1180px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.aumyt-plwrap__h1 {
	font-size: 1.7rem;
	color: #2a2620;
	margin: 0 0 1.25rem;
}

.aumyt-pltiles {
	display: grid;
	gap: 14px;
}

.aumyt-pltiles--cols-2 { grid-template-columns: repeat(2, 1fr); }
.aumyt-pltiles--cols-3 { grid-template-columns: repeat(3, 1fr); }
.aumyt-pltiles--cols-4 { grid-template-columns: repeat(4, 1fr); }
.aumyt-pltiles--cols-5 { grid-template-columns: repeat(5, 1fr); }
.aumyt-pltiles--cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 900px) {
	.aumyt-pltiles--cols-4,
	.aumyt-pltiles--cols-5,
	.aumyt-pltiles--cols-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
	.aumyt-pltiles { grid-template-columns: repeat(2, 1fr) !important; }
}

.aumyt-pltile {
	position: relative;
	display: flex;
	align-items: flex-end;
	aspect-ratio: 1 / 1;
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	padding: 10px;
	background: #3a2410;
}

.aumyt-pltile__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 0;
	transition: transform 0.35s ease;
}

.aumyt-pltile::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(transparent 40%, rgba(0,0,0,0.68));
	z-index: 1;
}

.aumyt-pltile:hover .aumyt-pltile__bg { transform: scale(1.05); }

.aumyt-pltile__title {
	position: relative;
	z-index: 2;
	color: #fff;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.25;
	text-shadow: 0 1px 5px rgba(0,0,0,0.7);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.aumyt-pltile__count {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	background: rgba(0,0,0,0.65);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 4px;
}

/* ---------- Single playlist page ---------- */
.aumyt-plsingle__head {
	display: flex;
	gap: 1.25rem;
	align-items: center;
	padding: 1.1rem;
	background: #fffdf8;
	border: 1px solid #ece4d6;
	border-radius: 12px;
	margin-bottom: 1.5rem;
}

.aumyt-plsingle__cover {
	position: relative;
	flex: 0 0 240px;
	width: 240px;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	overflow: hidden;
	background: #000;
}

.aumyt-plsingle__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.aumyt-plsingle__count {
	position: absolute;
	bottom: 8px;
	right: 8px;
	background: rgba(0,0,0,0.7);
	color: #fff;
	font-size: 0.8rem;
	padding: 3px 9px;
	border-radius: 5px;
}

.aumyt-plsingle__title {
	font-size: 1.5rem;
	color: #2a2620;
	margin: 0 0 0.5rem;
}

.aumyt-plsingle__desc {
	font-size: 0.98rem;
	color: #6b6357;
	line-height: 1.6;
	margin: 0;
}

@media (max-width: 640px) {
	.aumyt-plsingle__head { flex-direction: column; align-items: flex-start; }
	.aumyt-plsingle__cover { flex-basis: auto; width: 100%; }
}

/* Number badge on playlist video thumbnails */
.aumyt-card__num {
	position: absolute;
	top: 6px;
	left: 6px;
	z-index: 2;
	background: rgba(0,0,0,0.72);
	color: #fff;
	font-size: 0.75rem;
	min-width: 22px;
	height: 22px;
	padding: 0 5px;
	border-radius: 11px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
}

/* ---------- Channel tab bar (Videos / Shorts / Live / Playlists) ---------- */
.aumyt-channel {
	max-width: 1180px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.aumyt-channel__h1 {
	font-size: 1.7rem;
	color: #2a2620;
	margin: 0 0 1rem;
}

.aumyt-tabs {
	display: flex;
	gap: 0.25rem;
	border-bottom: 2px solid #ece4d6;
	margin-bottom: 1.5rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.aumyt-tabs__tab {
	flex: 0 0 auto;
	padding: 0.7rem 1.25rem;
	font-size: 1rem;
	font-weight: 600;
	color: #6b6357;
	text-decoration: none;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	transition: color 0.2s ease, border-color 0.2s ease;
	white-space: nowrap;
}

.aumyt-tabs__tab:hover {
	color: #2a2620;
}

.aumyt-tabs__tab.is-active {
	color: #b8791f;
	border-bottom-color: #d99c2b;
}

.aumyt-channel__empty {
	padding: 2rem 0;
	color: #6b6357;
	font-size: 1rem;
}

/* ---------- Shorts grid (vertical 9:16 thumbnails) ---------- */
.aumyt-grid--shorts {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
}

@media (max-width: 900px) {
	.aumyt-grid--shorts { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
	.aumyt-grid--shorts { grid-template-columns: repeat(2, 1fr); }
}

.aumyt-card__thumb--vertical {
	aspect-ratio: 9 / 16 !important;
	background: #000;
}

.aumyt-videos .aumyt-card .aumyt-card__thumb--vertical img {
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: auto !important;
	object-fit: cover !important;
	object-position: center !important;
}

/* ---------- Immersive Shorts viewer ---------- */
body.aumyt-sv-open {
	overflow: hidden;
}

.aumyt-sv {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: #000;
}

.aumyt-sv[hidden] {
	display: none;
}

.aumyt-sv__track {
	position: absolute;
	inset: 0;
	overflow-y: scroll;
	scroll-snap-type: y mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.aumyt-sv__track::-webkit-scrollbar {
	display: none;
}

.aumyt-sv__panel {
	position: relative;
	height: 100vh;
	height: 100dvh;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	display: flex;
	align-items: center;
	justify-content: center;
}

.aumyt-sv__frame {
	position: relative;
	height: 100%;
	aspect-ratio: 9 / 16;
	max-width: 100vw;
	background: #000;
	overflow: hidden;
}

.aumyt-sv__thumb {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}

.aumyt-sv__frame.is-playing .aumyt-sv__thumb {
	display: none;
}

.aumyt-sv__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.aumyt-sv__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 20px 16px 28px;
	color: #fff;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	text-shadow: 0 1px 6px rgba(0,0,0,0.8);
	background: linear-gradient(transparent, rgba(0,0,0,0.7));
	z-index: 3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	pointer-events: none;
}

.aumyt-sv__close {
	position: absolute;
	top: 14px;
	right: 16px;
	z-index: 10;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(0,0,0,0.55);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.aumyt-sv__close:hover {
	background: rgba(0,0,0,0.8);
}

.aumyt-sv__hint {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	color: rgba(255,255,255,0.75);
	font-size: 0.8rem;
	pointer-events: none;
	animation: aumyt-sv-fade 3s ease-in-out 2;
}

@keyframes aumyt-sv-fade {
	0%, 100% { opacity: 0; }
	50% { opacity: 1; }
}
