/* Wyoming Applied Kinetics Videos — front-end styles.
 * Dark gunmetal palette with a brass accent, to sit on a dark theme. Fonts inherit from the theme.
 * Override any --wakv-* token in your theme's CSS to fine-tune. */

.wakv {
	--wakv-bg:      #121412;   /* page */
	--wakv-card:    #1b1e1c;   /* raised panels */
	--wakv-ink:     #eef0ec;
	--wakv-soft:    #a4aaa5;
	--wakv-line:    #323733;
	--wakv-accent:  #c9973f;   /* brass */
	--wakv-accent-ink: #121412;
	--wakv-radius:  10px;
	--wakv-shadow:  0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);

	color-scheme: dark;
	color: var(--wakv-ink);
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 16px;
	box-sizing: border-box;
}
.wakv *, .wakv *::before, .wakv *::after { box-sizing: border-box; }
.wakv img { max-width: 100%; display: block; }
.wakv button { font: inherit; color: inherit; }
.wakv [hidden] { display: none !important; }

/* ---------- Header ---------- */
.wakv-head {
	display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
	gap: 20px 40px;
	padding: 32px 0 24px;
	border-bottom: 1px solid var(--wakv-line);
	margin-bottom: 28px;
}
.wakv-head__text { flex: 1 1 420px; max-width: 680px; }
.wakv-head__title {
	margin: 0 0 10px;
	font-size: clamp(1.9rem, 3.2vw, 2.8rem);
	line-height: 1.1;
	color: var(--wakv-ink);
}
.wakv-head__dek { margin: 0; color: var(--wakv-soft); font-size: 1.05rem; line-height: 1.55; }
.wakv-stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.wakv-stats div { display: flex; flex-direction: column-reverse; }
.wakv-stats dd { margin: 0; font-size: 1.5rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.wakv-stats dt { font-size: .85rem; color: var(--wakv-soft); }

/* ---------- Featured player ---------- */
.wakv-feature {
	display: grid;
	grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
	gap: 0;
	background: var(--wakv-card);
	border: 1px solid var(--wakv-line);
	border-radius: var(--wakv-radius);
	overflow: hidden;
	box-shadow: var(--wakv-shadow);
	scroll-margin-top: 90px;
}
.wakv-feature__player { position: relative; aspect-ratio: 16 / 9; background: #0e1011; }
.wakv-feature__player iframe,
.wakv-feature__poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wakv-feature__poster { padding: 0; background: #0e1011; cursor: pointer; }
.wakv-feature__poster img { width: 100%; height: 100%; object-fit: cover; }
.wakv-feature__body { padding: 24px 26px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wakv-feature__title { margin: 0; font-size: 1.35rem; font-weight: 700; line-height: 1.25; color: var(--wakv-ink); }
.wakv-feature__meta { margin: 0; color: var(--wakv-soft); font-size: .92rem; }
.wakv-feature__desc {
	margin: 0; color: var(--wakv-soft); font-size: .95rem; line-height: 1.55;
	display: -webkit-box; line-clamp: 6; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
.wakv-feature__actions { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 10px; }
.wakv-live-pill {
	align-self: flex-start;
	background: var(--wakv-accent); color: var(--wakv-accent-ink);
	font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.wakv-live-pill::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: currentColor; vertical-align: 1px; animation: wakv-pulse 1.4s infinite; }
@keyframes wakv-pulse { 50% { opacity: .3; } }

/* Play glyph */
.wakv-play {
	position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%);
	background: rgba(14,16,17,.72); border-radius: 12px; transition: background .15s;
}
.wakv-play::after {
	content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%);
	border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff;
}
.wakv-feature__poster:hover .wakv-play,
.wakv-card__btn:hover .wakv-play,
.wakv-feature__poster:focus-visible .wakv-play { background: var(--wakv-accent); }

/* Buttons */
.wakv-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 10px 18px; border-radius: 6px; border: 1px solid var(--wakv-accent);
	background: var(--wakv-accent); color: var(--wakv-accent-ink) !important;
	font-weight: 600; font-size: .95rem; text-decoration: none !important; cursor: pointer;
	transition: filter .15s, background .15s;
}
.wakv-btn:hover { filter: brightness(1.08); }
.wakv-btn--ghost { background: transparent; color: var(--wakv-ink) !important; border-color: var(--wakv-line); }
.wakv-btn--ghost:hover { border-color: var(--wakv-accent); filter: none; }

/* ---------- Playlist rows ---------- */
.wakv-rails { margin-top: 40px; display: flex; flex-direction: column; gap: 36px; }
.wakv-rail__head {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
	margin-bottom: 14px;
}
.wakv-rail__title { margin: 0; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.2; color: var(--wakv-ink); }
.wakv-rail__count { color: var(--wakv-soft); font-size: .9rem; }
.wakv-rail__all { color: var(--wakv-accent); font-weight: 600; font-size: .92rem; text-decoration: none; }
.wakv-rail__all:hover { text-decoration: underline; }
.wakv-rail__nav { margin-left: auto; display: inline-flex; gap: 6px; }
.wakv-rail__nav button {
	width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid var(--wakv-line);
	background: var(--wakv-card); color: var(--wakv-ink); font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.wakv-rail__nav button:hover:not(:disabled) {
	background-color: inherit;
	border-color: var(--wakv-ink);
}
.wakv-rail__nav button:disabled { opacity: .35; cursor: default; }
.wakv-rail__track {
	list-style: none; margin: 0; padding: 0 0 8px;
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, calc((100% - 60px) / 4));
	gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
	scrollbar-width: thin;
}
.wakv-rail__track > .wakv-card { scroll-snap-align: start; }
.wakv-rail--grid .wakv-grid { margin-top: 4px; }
.wakv-standalone { margin: 24px auto; }

.wakv-all { margin-top: 48px; }
.wakv-all__title { margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.7rem); color: var(--wakv-ink); }

/* ---------- Toolbar ---------- */
.wakv-toolbar {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
	margin: 14px 0 18px;
}
.wakv-search { flex: 1 1 280px; }
.wakv-search input, .wakv-sort select {
	width: 100%; height: 42px; padding: 0 14px;
	border: 1px solid var(--wakv-line); border-radius: 6px; background: var(--wakv-card);
	color: var(--wakv-ink); font: inherit; font-size: .95rem;
}
.wakv-search input:focus, .wakv-sort select:focus { outline: 2px solid var(--wakv-accent); outline-offset: 1px; border-color: transparent; }
.wakv-sort select { width: auto; padding-right: 32px; }
.wakv-seg { display: inline-flex; border: 1px solid var(--wakv-line); border-radius: 6px; overflow: hidden; background: var(--wakv-card); }
.wakv-seg button { border: 0; background: transparent; padding: 0 14px; height: 40px; cursor: pointer; font-size: .92rem; }
.wakv-seg button + button { border-left: 1px solid var(--wakv-line); }
.wakv-seg button.is-active { background: var(--wakv-accent); color: var(--wakv-accent-ink); }
.wakv-count { color: var(--wakv-soft); font-size: .9rem; margin-left: auto; font-variant-numeric: tabular-nums; }

/* ---------- Grid ---------- */
.wakv-grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: 26px 20px;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.wakv-card { margin: 0; padding: 0; min-width: 0; }
.wakv-card__btn {
	display: flex; flex-direction: column; gap: 6px; width: 100%;
	padding: 0; border: 0; background: none; text-align: left; cursor: pointer;
}
.wakv-card__btn:hover { background-color: transparent; }
.wakv-card__thumb {
	position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
	border-radius: 8px; background: var(--wakv-line); margin-bottom: 4px;
}
.wakv-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.wakv-card__btn:hover .wakv-card__thumb img { transform: scale(1.03); }
.wakv-card__btn.is-done { cursor: default; }
.wakv-card__btn:focus-visible { outline: 2px solid var(--wakv-accent); outline-offset: 4px; border-radius: 8px; }
.wakv-card__thumb--playing iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wakv-card__title {
	font-weight: 600; font-size: 1rem; line-height: 1.35; color: var(--wakv-ink);
	display: -webkit-box; line-clamp: 2; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wakv-card__meta { font-size: .85rem; color: var(--wakv-soft); }
.wakv-badge {
	position: absolute; bottom: 8px; padding: 2px 7px; border-radius: 4px;
	font-size: .75rem; font-weight: 600; line-height: 1.4; color: #fff; background: rgba(14,16,17,.82);
}
.wakv-badge--dur { right: 8px; font-variant-numeric: tabular-nums; }
.wakv-badge--short { left: 8px; background: var(--wakv-accent); }
.wakv-card__now {
	position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
	background: rgba(14,16,17,.62); color: #fff; font-weight: 700; font-size: .9rem;
}
.wakv-card.is-playing .wakv-card__now { display: flex; }
.wakv-card.is-playing .wakv-card__thumb { box-shadow: 0 0 0 3px var(--wakv-accent); }

.wakv-more { text-align: center; margin: 34px 0 10px; }
.wakv-none, .wakv-empty { color: var(--wakv-soft); text-align: center; padding: 40px 0; }

/* ---------- Compact latest block ---------- */
.wakv-latest { margin: 0 0 30px; padding: 8px 16px; }
.wakv-latest__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 18px; }
.wakv-latest__title { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--wakv-ink); }
.wakv-latest__all { color: var(--wakv-accent); font-weight: 600; text-decoration: none; }
.wakv-latest__all:hover { text-decoration: underline; }
.wakv .wakv-grid--latest { grid-template-columns: repeat(var(--wakv-cols, 3), minmax(0, 1fr)) !important; }
@media (max-width: 900px) { .wakv .wakv-grid--latest { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 600px) { .wakv .wakv-grid--latest { grid-template-columns: 1fr !important; } }

/* ---------- Theme-proofing ----------
 * Some themes and page builders restyle every ul/li/button on the page
 * (block lists, floats, full-width items, uppercase buttons). Lock ours. */
.wakv ul.wakv-grid { display: grid !important; list-style: none !important; margin: 0 !important; padding: 0 !important; }
.wakv ul.wakv-rail__track { display: grid !important; list-style: none !important; margin: 0 !important; }
.wakv ul.wakv-grid > li.wakv-card,
.wakv ul.wakv-rail__track > li.wakv-card { float: none !important; width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.wakv li.wakv-card::before, .wakv li.wakv-card::marker { content: none !important; display: none !important; }
.wakv .wakv-card__btn { text-transform: none; letter-spacing: normal; font-weight: inherit; box-shadow: none; min-height: 0; height: auto; white-space: normal; }
.wakv .wakv-card__thumb img { height: 100% !important; max-width: 100% !important; margin: 0 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.wakv-feature { grid-template-columns: 1fr; }
	.wakv-feature__body { padding: 18px; }
}
@media (max-width: 900px) {
	.wakv-rail__track { grid-auto-columns: minmax(220px, 70%); }
}
@media (max-width: 560px) {
	.wakv-rail__nav { display: none; }
	.wakv-rail__track { grid-auto-columns: 82%; }
	.wakv-head { padding-top: 20px; }
	.wakv-stats dd { font-size: 1.2rem; }
	.wakv-grid { grid-template-columns: 1fr; }
	.wakv-count { margin-left: 0; width: 100%; }
	.wakv-sort, .wakv-seg { flex: 1 1 auto; }
	.wakv-sort select { width: 100%; }
	.wakv-seg button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.wakv * { transition: none !important; animation: none !important; }
}
